diff --git a/Changelog.md b/Changelog.md
index aa1c62909e4b8b732c82db7f1dd3040a8750e505..2e573a9f62680aab2606530150da63dba37e149d 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -2,6 +2,9 @@
 
 All notable changes to this project will be documented in this file.
 
+## [0.87] - 2025-02-05
+- Use separate entrypoints for report & survey to reduce bundle sizes & load time
+
 ## [0.86] - 2025-02-05
 - Fix old_db_2022 survey publisher to not use enum value when saving external connections
 
diff --git a/compendium-frontend/src/App.tsx b/compendium-frontend/src/App.tsx
index 28b3398e25b3b92f841e58e94543e36af74dd7e7..a0e07e28fbb649c180a08c88f851bfc92fcc3239 100644
--- a/compendium-frontend/src/App.tsx
+++ b/compendium-frontend/src/App.tsx
@@ -1,4 +1,4 @@
-import { ReactElement } from "react";
+import { ReactElement, useEffect } from "react";
 import { createBrowserRouter, RouterProvider, Outlet, useLocation } from "react-router-dom";
 import Providers from "./Providers";
 import { ConnectivityPage, ServiceCategory } from "./Schema";
@@ -67,12 +67,6 @@ import NetworkWeatherMapPage from "./pages/Network/WeatherMap";
 // Services Matrix
 import ServicesPage from "./pages/Services/Services";
 
-// Survey pages
-import SurveyLanding from "./survey/Landing";
-import SurveyContainerComponent from "./survey/SurveyContainerComponent";
-import SurveyManagementComponent from "./survey/management/SurveyManagementComponent";
-import UserManagementComponent from "./survey/management/UserManagementComponent";
-
 const GlobalLayout = () => {
   // this component is needed to provide a global layout for the app, including the navbar and footer,
   // and make them part of the react-router-dom context
@@ -93,6 +87,21 @@ const GlobalLayout = () => {
   )
 }
 
+const RedirectToSurvey = () => {
+  const { pathname } = useLocation();
+
+  useEffect(() => {
+    // Only redirect if we're not already on a survey path
+    if (!pathname.startsWith('/survey')) {
+      window.location.replace(`/survey${pathname}`);
+    } else {
+      window.location.replace(pathname);
+    }
+  }, [pathname]);
+
+  return <Landing />
+}
+
 const router = createBrowserRouter([
   {
     "path": "",
@@ -161,18 +170,12 @@ const router = createBrowserRouter([
       { path: "/service-management-framework", element: <ServiceManagementFrameworkPage /> },
       { path: "/service-level-targets", element: <ServiceLevelTargetsPage /> },
       { path: "/corporate-strategy", element: <CorporateStrategyPage /> },
-      { path: "survey/admin/surveys", element: <SurveyManagementComponent /> },
-      { path: "survey/admin/users", element: <UserManagementComponent /> },
-      { path: "survey/admin/inspect/:year", element: <SurveyContainerComponent loadFrom={"/api/response/inspect/"} /> },
-      { path: "survey/admin/try/:year", element: <SurveyContainerComponent loadFrom={"/api/response/try/"} /> },
-      { path: "survey/response/:year/:nren", element: <SurveyContainerComponent loadFrom={"/api/response/load/"} /> },
-      { path: "survey/*", element: <SurveyLanding /> },
+      { path: "/survey/*", element: <RedirectToSurvey /> },
       { path: "*", element: <Landing /> },
     ]
   }
 ]);
 
-
 function App(): ReactElement {
   return (
     <div className="app">
diff --git a/compendium-frontend/src/components/DataPage.tsx b/compendium-frontend/src/components/DataPage.tsx
index 747a851471f9985550dd949714b76b665f4c02a2..68e9ec376130ee58549f392fa72988e14ffddcd4 100644
--- a/compendium-frontend/src/components/DataPage.tsx
+++ b/compendium-frontend/src/components/DataPage.tsx
@@ -9,7 +9,6 @@ import { Sections } from "../helpers/constants";
 import PolicySidebar from "./sidebar/PolicySidebar";
 
 import { Chart as ChartJS } from 'chart.js';
-import { usePreview } from "../helpers/usePreview";
 import NetworkSidebar from "./sidebar/NetworkSidebar";
 import ConnectedUsersSidebar from "./sidebar/ConnectedUsersSidebar";
 import ServicesSidebar from "./sidebar/ServicesSidebar";
@@ -34,8 +33,7 @@ interface inputProps {
 }
 
 function DataPage({ title, description, filter, children, category, data, filename }: inputProps): ReactElement {
-    const { setPreview } = useContext(PreviewContext);
-    const preview = usePreview();
+    const { preview, setPreview } = useContext(PreviewContext);
     const locationWithoutPreview = window.location.origin + window.location.pathname;
 
     const { trackPageView } = useMatomo()
diff --git a/compendium-frontend/src/index.tsx b/compendium-frontend/src/index.tsx
index 02df09a3eebf4b6fb1ab5f9a57712a952afe882f..8cca5a6c1ff3f6991063cc9ecef40afef8681c01 100644
--- a/compendium-frontend/src/index.tsx
+++ b/compendium-frontend/src/index.tsx
@@ -1,4 +1,3 @@
-
 import React from 'react';
 import { createRoot } from 'react-dom/client';
 import App from "./App";
diff --git a/compendium-frontend/src/survey/App.tsx b/compendium-frontend/src/survey/App.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..488ce6f53d6286443b53a09d3c3201bd5de896d5
--- /dev/null
+++ b/compendium-frontend/src/survey/App.tsx
@@ -0,0 +1,71 @@
+import { useEffect } from "react";
+import { createBrowserRouter, RouterProvider, Outlet, useLocation } from "react-router-dom";
+import Providers from "../Providers";
+import ExternalPageNavBar from "../components/global/ExternalPageNavBar";
+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 RedirectToReport = ({ pathname }) => {
+
+    useEffect(() => {
+        console.log(pathname)
+        // Only redirect if we're not already on a survey path
+        if (!pathname.startsWith('/survey')) {
+            window.location.replace(`${pathname}`);
+        }
+    }, [pathname]);
+
+    return null;
+}
+
+const GlobalLayout = () => {
+    // this component is needed to provide a global layout for the app, including the navbar and footer,
+    // and make them part of the react-router-dom context
+    const { pathname } = useLocation();
+    // hacky workaround for supporting a landing page on the root path, as well as any undefined path
+    const hasOutlet = pathname !== "/survey"
+    return (
+        <>
+            <Providers>
+                <RedirectToReport pathname={pathname} />
+                <ExternalPageNavBar />
+                <main className="grow">
+                    {hasOutlet ? <Outlet /> : <SurveyLanding />}
+                </main>
+                <PrivacyModal />
+            </Providers>
+            <GeantFooter />
+        </>
+    )
+}
+
+const router = createBrowserRouter([
+    {
+        "path": "",
+        "element": <GlobalLayout />,
+        "children": [
+            { path: "/survey/admin/surveys", element: <SurveyManagementComponent /> },
+            { path: "/survey/admin/users", element: <UserManagementComponent /> },
+            { path: "/survey/admin/inspect/:year", element: <SurveyContainerComponent loadFrom={"/api/response/inspect/"} /> },
+            { path: "/survey/admin/try/:year", element: <SurveyContainerComponent loadFrom={"/api/response/try/"} /> },
+            { path: "/survey/response/:year/:nren", element: <SurveyContainerComponent loadFrom={"/api/response/load/"} /> },
+            { path: "*", element: <SurveyLanding /> },
+        ]
+    }
+])
+
+function App() {
+    return (
+        <div className="app">
+            <RouterProvider router={router} />
+        </div>
+    );
+}
+
+export default App
+
diff --git a/compendium-frontend/src/survey/index.tsx b/compendium-frontend/src/survey/index.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..5aa6d5bf91bd75c00a572688559bd14ad634f182
--- /dev/null
+++ b/compendium-frontend/src/survey/index.tsx
@@ -0,0 +1,13 @@
+import React from 'react';
+import { createRoot } from 'react-dom/client';
+import App from "./App";
+import 'bootstrap/dist/css/bootstrap.min.css';
+import '../main.scss';
+
+const container = document.getElementById('root') as HTMLElement;
+const root = createRoot(container);
+root.render(
+  <React.StrictMode>
+    <App />
+  </React.StrictMode>
+)
\ No newline at end of file
diff --git a/compendium-frontend/survey.html b/compendium-frontend/survey.html
new file mode 100644
index 0000000000000000000000000000000000000000..0b50b4accf9ace201254975fb22a96dfa30010bb
--- /dev/null
+++ b/compendium-frontend/survey.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <title>Compendium Survey</title>
+</head>
+<body>
+  <div id="root"></div>
+  <script type="module" src="./src/survey/index.tsx"></script>
+</body>
+</html>
\ No newline at end of file
diff --git a/compendium-frontend/vite.config.ts b/compendium-frontend/vite.config.ts
index 78d3fc45d9bfce17c0c482f014c34d62707030e7..479d7afecfda2b70df1a6e887c6e24edb409589e 100644
--- a/compendium-frontend/vite.config.ts
+++ b/compendium-frontend/vite.config.ts
@@ -3,7 +3,7 @@ import react from '@vitejs/plugin-react'
 import license from 'rollup-plugin-license'
 import path from 'path'
 
-const ReactCompilerConfig = { 
+const ReactCompilerConfig = {
     target: "19"
 };
 const outDir = path.resolve(__dirname, '..', 'compendium_v2', 'static');
@@ -22,7 +22,7 @@ export default defineConfig({
             }
         }), license({
             thirdParty: {
-                output: path.join(outDir, 'bundle.js.LICENSE.txt')
+                output: path.join(outDir, 'third-party-licenses.txt'),
             }
         })],
     base: isProduction ? '/static/' : '/',
@@ -53,22 +53,21 @@ export default defineConfig({
         outDir: outDir,
         sourcemap: process.env.NODE_ENV !== 'production',
         rollupOptions: {
+            input: {
+                report: path.resolve(__dirname, 'index.html'),
+                survey: path.resolve(__dirname, 'survey.html'),
+            },
             output: {
-                entryFileNames: "bundle.js",
+                entryFileNames: '[name].js',
                 assetFileNames: function (assetInfo) {
                     const names = assetInfo.names;
                     if (names.some(name => name.endsWith('.css'))) {
-                        // put all css into a single file
-                        return 'bundle.css';
+                        return '[name].[ext]';
                     }
                     return '[hash].[ext]';
 
                 },
-                //split surveyjs and chartjs into separate chunks, they are large and not always needed
-                manualChunks: {
-                    survey: ['survey-react-ui', 'survey-core'],
-                    report: ['chart.js', 'chartjs-plugin-datalabels', 'cartesian-product-multiple-arrays'],
-                },
+                manualChunks: undefined,
                 chunkFileNames: '[name]-[hash].js',
             },
         },
diff --git a/compendium_v2/routes/default.py b/compendium_v2/routes/default.py
index 42ee4b082384e7e941c790a87a24270eb4af68b4..da63095b365c53ed5eb853757d938ab9c8f8c07b 100644
--- a/compendium_v2/routes/default.py
+++ b/compendium_v2/routes/default.py
@@ -67,7 +67,7 @@ def survey_index(path):
 
     # fallback to serving the SPA through index.html for all other requests
     # https://flask.palletsprojects.com/en/2.0.x/patterns/singlepageapplications/
-    return current_app.send_static_file("index.html")
+    return current_app.send_static_file("survey.html")
 
 
 @routes.route('/version', methods=['GET', 'POST'])
diff --git a/compendium_v2/static/bundle.js b/compendium_v2/static/bundle.js
deleted file mode 100644
index b4d7458c0e8c44bfccb8cfb00d96c39f3cf9ad63..0000000000000000000000000000000000000000
--- a/compendium_v2/static/bundle.js
+++ /dev/null
@@ -1,417 +0,0 @@
-var eT=Object.defineProperty;var tT=(e,t,n)=>t in e?eT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var a_=(e,t,n)=>tT(e,typeof t!="symbol"?t+"":t,n);import{r as $2,g as U1,a as EE,b as nT,c as rT,d as og}from"./survey-s5I1rSwQ.js";import{C as on,L as aT,B as iT,r as lT,a as fl,b as ul,P as I1,c as Y1,p as dl,d as Bi,e as hl,f as J0,g as iu}from"./report-C0OEVICj.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var Uv={exports:{}},r1={};/**
- * @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 i_;function sT(){if(i_)return r1;i_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var o=null;if(s!==void 0&&(o=""+s),i.key!==void 0&&(o=""+i.key),"key"in i){s={};for(var u in i)u!=="key"&&(s[u]=i[u])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:o,ref:i!==void 0?i:null,props:s}}return r1.Fragment=t,r1.jsx=n,r1.jsxs=n,r1}var l_;function oT(){return l_||(l_=1,Uv.exports=sT()),Uv.exports}var g=oT(),k=$2();const Hn=U1(k);var Iv={exports:{}},a1={},Yv={exports:{}},Hv={};/**
- * @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 s_;function cT(){return s_||(s_=1,function(e){function t(ce,Te){var Ne=ce.length;ce.push(Te);e:for(;0<Ne;){var $e=Ne-1>>>1,Pe=ce[$e];if(0<i(Pe,Te))ce[$e]=Te,ce[Ne]=Pe,Ne=$e;else break e}}function n(ce){return ce.length===0?null:ce[0]}function r(ce){if(ce.length===0)return null;var Te=ce[0],Ne=ce.pop();if(Ne!==Te){ce[0]=Ne;e:for(var $e=0,Pe=ce.length,et=Pe>>>1;$e<et;){var J=2*($e+1)-1,ie=ce[J],ee=J+1,K=ce[ee];if(0>i(ie,Ne))ee<Pe&&0>i(K,ie)?(ce[$e]=K,ce[ee]=Ne,$e=ee):(ce[$e]=ie,ce[J]=Ne,$e=J);else if(ee<Pe&&0>i(K,Ne))ce[$e]=K,ce[ee]=Ne,$e=ee;else break e}}return Te}function i(ce,Te){var Ne=ce.sortIndex-Te.sortIndex;return Ne!==0?Ne:ce.id-Te.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 o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var d=[],p=[],x=1,y=null,v=3,w=!1,b=!1,S=!1,T=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function A(ce){for(var Te=n(p);Te!==null;){if(Te.callback===null)r(p);else if(Te.startTime<=ce)r(p),Te.sortIndex=Te.expirationTime,t(d,Te);else break;Te=n(p)}}function j(ce){if(S=!1,A(ce),!b)if(n(d)!==null)b=!0,_e();else{var Te=n(p);Te!==null&&ye(j,Te.startTime-ce)}}var O=!1,B=-1,L=5,I=-1;function U(){return!(e.unstable_now()-I<L)}function W(){if(O){var ce=e.unstable_now();I=ce;var Te=!0;try{e:{b=!1,S&&(S=!1,C(B),B=-1),w=!0;var Ne=v;try{t:{for(A(ce),y=n(d);y!==null&&!(y.expirationTime>ce&&U());){var $e=y.callback;if(typeof $e=="function"){y.callback=null,v=y.priorityLevel;var Pe=$e(y.expirationTime<=ce);if(ce=e.unstable_now(),typeof Pe=="function"){y.callback=Pe,A(ce),Te=!0;break t}y===n(d)&&r(d),A(ce)}else r(d);y=n(d)}if(y!==null)Te=!0;else{var et=n(p);et!==null&&ye(j,et.startTime-ce),Te=!1}}break e}finally{y=null,v=Ne,w=!1}Te=void 0}}finally{Te?X():O=!1}}}var X;if(typeof R=="function")X=function(){R(W)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ne=te.port2;te.port1.onmessage=W,X=function(){ne.postMessage(null)}}else X=function(){T(W,0)};function _e(){O||(O=!0,X())}function ye(ce,Te){B=T(function(){ce(e.unstable_now())},Te)}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(ce){ce.callback=null},e.unstable_continueExecution=function(){b||w||(b=!0,_e())},e.unstable_forceFrameRate=function(ce){0>ce||125<ce?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<ce?Math.floor(1e3/ce):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(ce){switch(v){case 1:case 2:case 3:var Te=3;break;default:Te=v}var Ne=v;v=Te;try{return ce()}finally{v=Ne}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(ce,Te){switch(ce){case 1:case 2:case 3:case 4:case 5:break;default:ce=3}var Ne=v;v=ce;try{return Te()}finally{v=Ne}},e.unstable_scheduleCallback=function(ce,Te,Ne){var $e=e.unstable_now();switch(typeof Ne=="object"&&Ne!==null?(Ne=Ne.delay,Ne=typeof Ne=="number"&&0<Ne?$e+Ne:$e):Ne=$e,ce){case 1:var Pe=-1;break;case 2:Pe=250;break;case 5:Pe=1073741823;break;case 4:Pe=1e4;break;default:Pe=5e3}return Pe=Ne+Pe,ce={id:x++,callback:Te,priorityLevel:ce,startTime:Ne,expirationTime:Pe,sortIndex:-1},Ne>$e?(ce.sortIndex=Ne,t(p,ce),n(d)===null&&ce===n(p)&&(S?(C(B),B=-1):S=!0,ye(j,Ne-$e))):(ce.sortIndex=Pe,t(d,ce),b||w||(b=!0,_e())),ce},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(ce){var Te=v;return function(){var Ne=v;v=Te;try{return ce.apply(this,arguments)}finally{v=Ne}}}}(Hv)),Hv}var o_;function fT(){return o_||(o_=1,Yv.exports=cT()),Yv.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 c_;function uT(){if(c_)return a1;c_=1;var e=fT(),t=$2(),n=EE();function r(a){var l="https://react.dev/errors/"+a;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)l+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+a+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}var s=Symbol.for("react.element"),o=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),v=Symbol.for("react.consumer"),w=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),j=Symbol.for("react.memo_cache_sentinel"),O=Symbol.iterator;function B(a){return a===null||typeof a!="object"?null:(a=O&&a[O]||a["@@iterator"],typeof a=="function"?a:null)}var L=Symbol.for("react.client.reference");function I(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===L?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case d:return"Fragment";case u:return"Portal";case x:return"Profiler";case p:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case w:return(a.displayName||"Context")+".Provider";case v:return(a._context.displayName||"Context")+".Consumer";case b:var l=a.render;return a=a.displayName,a||(a=l.displayName||l.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case C:return l=a.displayName||null,l!==null?l:I(a.type)||"Memo";case R:l=a._payload,a=a._init;try{return I(a(l))}catch{}}return null}var U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.assign,X,te;function ne(a){if(X===void 0)try{throw Error()}catch(c){var l=c.stack.trim().match(/\n( *(at )?)/);X=l&&l[1]||"",te=-1<c.stack.indexOf(`
-    at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
-`+X+a+te}var _e=!1;function ye(a,l){if(!a||_e)return"";_e=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(l){var Ve=function(){throw Error()};if(Object.defineProperty(Ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ve,[])}catch(Le){var Ae=Le}Reflect.construct(a,[],Ve)}else{try{Ve.call()}catch(Le){Ae=Le}a.call(Ve.prototype)}}else{try{throw Error()}catch(Le){Ae=Le}(Ve=a())&&typeof Ve.catch=="function"&&Ve.catch(function(){})}}catch(Le){if(Le&&Ae&&typeof Le.stack=="string")return[Le.stack,Ae.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var _=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");_&&_.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var N=m.DetermineComponentFrameRoot(),F=N[0],z=N[1];if(F&&z){var re=F.split(`
-`),ue=z.split(`
-`);for(_=m=0;m<re.length&&!re[m].includes("DetermineComponentFrameRoot");)m++;for(;_<ue.length&&!ue[_].includes("DetermineComponentFrameRoot");)_++;if(m===re.length||_===ue.length)for(m=re.length-1,_=ue.length-1;1<=m&&0<=_&&re[m]!==ue[_];)_--;for(;1<=m&&0<=_;m--,_--)if(re[m]!==ue[_]){if(m!==1||_!==1)do if(m--,_--,0>_||re[m]!==ue[_]){var Me=`
-`+re[m].replace(" at new "," at ");return a.displayName&&Me.includes("<anonymous>")&&(Me=Me.replace("<anonymous>",a.displayName)),Me}while(1<=m&&0<=_);break}}}finally{_e=!1,Error.prepareStackTrace=c}return(c=a?a.displayName||a.name:"")?ne(c):""}function ce(a){switch(a.tag){case 26:case 27:case 5:return ne(a.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 15:return a=ye(a.type,!1),a;case 11:return a=ye(a.type.render,!1),a;case 1:return a=ye(a.type,!0),a;default:return""}}function Te(a){try{var l="";do l+=ce(a),a=a.return;while(a);return l}catch(c){return`
-Error generating stack: `+c.message+`
-`+c.stack}}function Ne(a){var l=a,c=a;if(a.alternate)for(;l.return;)l=l.return;else{a=l;do l=a,l.flags&4098&&(c=l.return),a=l.return;while(a)}return l.tag===3?c:null}function $e(a){if(a.tag===13){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function Pe(a){if(Ne(a)!==a)throw Error(r(188))}function et(a){var l=a.alternate;if(!l){if(l=Ne(a),l===null)throw Error(r(188));return l!==a?null:a}for(var c=a,m=l;;){var _=c.return;if(_===null)break;var N=_.alternate;if(N===null){if(m=_.return,m!==null){c=m;continue}break}if(_.child===N.child){for(N=_.child;N;){if(N===c)return Pe(_),a;if(N===m)return Pe(_),l;N=N.sibling}throw Error(r(188))}if(c.return!==m.return)c=_,m=N;else{for(var F=!1,z=_.child;z;){if(z===c){F=!0,c=_,m=N;break}if(z===m){F=!0,m=_,c=N;break}z=z.sibling}if(!F){for(z=N.child;z;){if(z===c){F=!0,c=N,m=_;break}if(z===m){F=!0,m=N,c=_;break}z=z.sibling}if(!F)throw Error(r(189))}}if(c.alternate!==m)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?a:l}function J(a){var l=a.tag;if(l===5||l===26||l===27||l===6)return a;for(a=a.child;a!==null;){if(l=J(a),l!==null)return l;a=a.sibling}return null}var ie=Array.isArray,ee=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},xe=[],Fe=-1;function Ce(a){return{current:a}}function me(a){0>Fe||(a.current=xe[Fe],xe[Fe]=null,Fe--)}function oe(a,l){Fe++,xe[Fe]=a.current,a.current=l}var Be=Ce(null),Xe=Ce(null),rt=Ce(null),Qe=Ce(null);function ft(a,l){switch(oe(rt,l),oe(Xe,a),oe(Be,null),a=l.nodeType,a){case 9:case 11:l=(l=l.documentElement)&&(l=l.namespaceURI)?zp(l):0;break;default:if(a=a===8?l.parentNode:l,l=a.tagName,a=a.namespaceURI)a=zp(a),l=Gp(a,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}me(Be),oe(Be,l)}function xt(){me(Be),me(Xe),me(rt)}function We(a){a.memoizedState!==null&&oe(Qe,a);var l=Be.current,c=Gp(l,a.type);l!==c&&(oe(Xe,a),oe(Be,c))}function tn(a){Xe.current===a&&(me(Be),me(Xe)),Qe.current===a&&(me(Qe),Pf._currentValue=K)}var gn=Object.prototype.hasOwnProperty,Jt=e.unstable_scheduleCallback,Bt=e.unstable_cancelCallback,An=e.unstable_shouldYield,Rn=e.unstable_requestPaint,$t=e.unstable_now,cn=e.unstable_getCurrentPriorityLevel,yt=e.unstable_ImmediatePriority,dn=e.unstable_UserBlockingPriority,nn=e.unstable_NormalPriority,Lr=e.unstable_LowPriority,Yn=e.unstable_IdlePriority,Er=e.log,Sr=e.unstable_setDisableYieldValue,er=null,En=null;function br(a){if(En&&typeof En.onCommitFiberRoot=="function")try{En.onCommitFiberRoot(er,a,void 0,(a.current.flags&128)===128)}catch{}}function Pn(a){if(typeof Er=="function"&&Sr(a),En&&typeof En.setStrictMode=="function")try{En.setStrictMode(er,a)}catch{}}var ut=Math.clz32?Math.clz32:Ga,tr=Math.log,_a=Math.LN2;function Ga(a){return a>>>=0,a===0?32:31-(tr(a)/_a|0)|0}var ca=128,Wr=4194304;function nr(a){var l=a&42;if(l!==0)return l;switch(a&-a){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 a&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Mr(a,l){var c=a.pendingLanes;if(c===0)return 0;var m=0,_=a.suspendedLanes,N=a.pingedLanes,F=a.warmLanes;a=a.finishedLanes!==0;var z=c&134217727;return z!==0?(c=z&~_,c!==0?m=nr(c):(N&=z,N!==0?m=nr(N):a||(F=z&~F,F!==0&&(m=nr(F))))):(z=c&~_,z!==0?m=nr(z):N!==0?m=nr(N):a||(F=c&~F,F!==0&&(m=nr(F)))),m===0?0:l!==0&&l!==m&&!(l&_)&&(_=m&-m,F=l&-l,_>=F||_===32&&(F&4194176)!==0)?l:m}function fa(a,l){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&l)===0}function Ui(a,l){switch(a){case 1:case 2:case 4:case 8:return l+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 l+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 le(){var a=ca;return ca<<=1,!(ca&4194176)&&(ca=128),a}function ve(){var a=Wr;return Wr<<=1,!(Wr&62914560)&&(Wr=4194304),a}function De(a){for(var l=[],c=0;31>c;c++)l.push(a);return l}function Ge(a,l){a.pendingLanes|=l,l!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function st(a,l,c,m,_,N){var F=a.pendingLanes;a.pendingLanes=c,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=c,a.entangledLanes&=c,a.errorRecoveryDisabledLanes&=c,a.shellSuspendCounter=0;var z=a.entanglements,re=a.expirationTimes,ue=a.hiddenUpdates;for(c=F&~c;0<c;){var Me=31-ut(c),Ve=1<<Me;z[Me]=0,re[Me]=-1;var Ae=ue[Me];if(Ae!==null)for(ue[Me]=null,Me=0;Me<Ae.length;Me++){var Le=Ae[Me];Le!==null&&(Le.lane&=-536870913)}c&=~Ve}m!==0&&vt(a,m,0),N!==0&&_===0&&a.tag!==0&&(a.suspendedLanes|=N&~(F&~l))}function vt(a,l,c){a.pendingLanes|=l,a.suspendedLanes&=~l;var m=31-ut(l);a.entangledLanes|=l,a.entanglements[m]=a.entanglements[m]|1073741824|c&4194218}function Nt(a,l){var c=a.entangledLanes|=l;for(a=a.entanglements;c;){var m=31-ut(c),_=1<<m;_&l|a[m]&l&&(a[m]|=l),c&=~_}}function ht(a){return a&=-a,2<a?8<a?a&134217727?32:268435456:8:2}function pt(){var a=ee.p;return a!==0?a:(a=window.event,a===void 0?32:rg(a.type))}function M(a,l){var c=ee.p;try{return ee.p=a,l()}finally{ee.p=c}}var V=Math.random().toString(36).slice(2),Y="__reactFiber$"+V,G="__reactProps$"+V,Z="__reactContainer$"+V,Q="__reactEvents$"+V,he="__reactListeners$"+V,Re="__reactHandles$"+V,we="__reactResources$"+V,Ee="__reactMarker$"+V;function Se(a){delete a[Y],delete a[G],delete a[Q],delete a[he],delete a[Re]}function Ie(a){var l=a[Y];if(l)return l;for(var c=a.parentNode;c;){if(l=c[Z]||c[Y]){if(c=l.alternate,l.child!==null||c!==null&&c.child!==null)for(a=Vp(a);a!==null;){if(c=a[Y])return c;a=Vp(a)}return l}a=c,c=a.parentNode}return null}function tt(a){if(a=a[Y]||a[Z]){var l=a.tag;if(l===5||l===6||l===13||l===26||l===27||l===3)return a}return null}function at(a){var l=a.tag;if(l===5||l===26||l===27||l===6)return a.stateNode;throw Error(r(33))}function qe(a){var l=a[we];return l||(l=a[we]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Je(a){a[Ee]=!0}var Ct=new Set,Tt={};function Ot(a,l){Sn(a,l),Sn(a+"Capture",l)}function Sn(a,l){for(Tt[a]=l,a=0;a<l.length;a++)Ct.add(l[a])}var rr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bn=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]*$"),Vr={},wa={};function Bs(a){return gn.call(wa,a)?!0:gn.call(Vr,a)?!1:bn.test(a)?wa[a]=!0:(Vr[a]=!0,!1)}function ua(a,l,c){if(Bs(l))if(c===null)a.removeAttribute(l);else{switch(typeof c){case"undefined":case"function":case"symbol":a.removeAttribute(l);return;case"boolean":var m=l.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){a.removeAttribute(l);return}}a.setAttribute(l,""+c)}}function Yc(a,l,c){if(c===null)a.removeAttribute(l);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(l);return}a.setAttribute(l,""+c)}}function Ii(a,l,c,m){if(m===null)a.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(c);return}a.setAttributeNS(l,c,""+m)}}function Ea(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function mu(a){var l=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Ox(a){var l=mu(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,l),m=""+a[l];if(!a.hasOwnProperty(l)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var _=c.get,N=c.set;return Object.defineProperty(a,l,{configurable:!0,get:function(){return _.call(this)},set:function(F){m=""+F,N.call(this,F)}}),Object.defineProperty(a,l,{enumerable:c.enumerable}),{getValue:function(){return m},setValue:function(F){m=""+F},stopTracking:function(){a._valueTracker=null,delete a[l]}}}}function Hc(a){a._valueTracker||(a._valueTracker=Ox(a))}function $c(a){if(!a)return!1;var l=a._valueTracker;if(!l)return!0;var c=l.getValue(),m="";return a&&(m=mu(a)?a.checked?"true":"false":a.value),a=m,a!==c?(l.setValue(a),!0):!1}function zc(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var Dx=/[\n"\\]/g;function Sa(a){return a.replace(Dx,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function pu(a,l,c,m,_,N,F,z){a.name="",F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?a.type=F:a.removeAttribute("type"),l!=null?F==="number"?(l===0&&a.value===""||a.value!=l)&&(a.value=""+Ea(l)):a.value!==""+Ea(l)&&(a.value=""+Ea(l)):F!=="submit"&&F!=="reset"||a.removeAttribute("value"),l!=null?sd(a,F,Ea(l)):c!=null?sd(a,F,Ea(c)):m!=null&&a.removeAttribute("value"),_==null&&N!=null&&(a.defaultChecked=!!N),_!=null&&(a.checked=_&&typeof _!="function"&&typeof _!="symbol"),z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?a.name=""+Ea(z):a.removeAttribute("name")}function gu(a,l,c,m,_,N,F,z){if(N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(a.type=N),l!=null||c!=null){if(!(N!=="submit"&&N!=="reset"||l!=null))return;c=c!=null?""+Ea(c):"",l=l!=null?""+Ea(l):c,z||l===a.value||(a.value=l),a.defaultValue=l}m=m??_,m=typeof m!="function"&&typeof m!="symbol"&&!!m,a.checked=z?a.checked:!!m,a.defaultChecked=!!m,F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"&&(a.name=F)}function sd(a,l,c){l==="number"&&zc(a.ownerDocument)===a||a.defaultValue===""+c||(a.defaultValue=""+c)}function Ps(a,l,c,m){if(a=a.options,l){l={};for(var _=0;_<c.length;_++)l["$"+c[_]]=!0;for(c=0;c<a.length;c++)_=l.hasOwnProperty("$"+a[c].value),a[c].selected!==_&&(a[c].selected=_),_&&m&&(a[c].defaultSelected=!0)}else{for(c=""+Ea(c),l=null,_=0;_<a.length;_++){if(a[_].value===c){a[_].selected=!0,m&&(a[_].defaultSelected=!0);return}l!==null||a[_].disabled||(l=a[_])}l!==null&&(l.selected=!0)}}function xu(a,l,c){if(l!=null&&(l=""+Ea(l),l!==a.value&&(a.value=l),c==null)){a.defaultValue!==l&&(a.defaultValue=l);return}a.defaultValue=c!=null?""+Ea(c):""}function vu(a,l,c,m){if(l==null){if(m!=null){if(c!=null)throw Error(r(92));if(ie(m)){if(1<m.length)throw Error(r(93));m=m[0]}c=m}c==null&&(c=""),l=c}c=Ea(l),a.defaultValue=c,m=a.textContent,m===c&&m!==""&&m!==null&&(a.value=m)}function fi(a,l){if(l){var c=a.firstChild;if(c&&c===a.lastChild&&c.nodeType===3){c.nodeValue=l;return}}a.textContent=l}var cm=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 od(a,l,c){var m=l.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?m?a.setProperty(l,""):l==="float"?a.cssFloat="":a[l]="":m?a.setProperty(l,c):typeof c!="number"||c===0||cm.has(l)?l==="float"?a.cssFloat=c:a[l]=(""+c).trim():a[l]=c+"px"}function fm(a,l,c){if(l!=null&&typeof l!="object")throw Error(r(62));if(a=a.style,c!=null){for(var m in c)!c.hasOwnProperty(m)||l!=null&&l.hasOwnProperty(m)||(m.indexOf("--")===0?a.setProperty(m,""):m==="float"?a.cssFloat="":a[m]="");for(var _ in l)m=l[_],l.hasOwnProperty(_)&&c[_]!==m&&od(a,_,m)}else for(var N in l)l.hasOwnProperty(N)&&od(a,N,l[N])}function yu(a){if(a.indexOf("-")===-1)return!1;switch(a){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 um=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"]]),dm=/^[\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 Gc(a){return dm.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}var cd=null;function fd(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Ao=null,Us=null;function hm(a){var l=tt(a);if(l&&(a=l.stateNode)){var c=a[G]||null;e:switch(a=l.stateNode,l.type){case"input":if(pu(a,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),l=c.name,c.type==="radio"&&l!=null){for(c=a;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Sa(""+l)+'"][type="radio"]'),l=0;l<c.length;l++){var m=c[l];if(m!==a&&m.form===a.form){var _=m[G]||null;if(!_)throw Error(r(90));pu(m,_.value,_.defaultValue,_.defaultValue,_.checked,_.defaultChecked,_.type,_.name)}}for(l=0;l<c.length;l++)m=c[l],m.form===a.form&&$c(m)}break e;case"textarea":xu(a,c.value,c.defaultValue);break e;case"select":l=c.value,l!=null&&Ps(a,!!c.multiple,l,!1)}}}var ud=!1;function mm(a,l,c){if(ud)return a(l,c);ud=!0;try{var m=a(l);return m}finally{if(ud=!1,(Ao!==null||Us!==null)&&(u0(),Ao&&(l=Ao,a=Us,Us=Ao=null,hm(l),a)))for(l=0;l<a.length;l++)hm(a[l])}}function Wc(a,l){var c=a.stateNode;if(c===null)return null;var m=c[G]||null;if(m===null)return null;c=m[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(a=a.type,m=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!m;break e;default:a=!1}if(a)return null;if(c&&typeof c!="function")throw Error(r(231,l,typeof c));return c}var Vc=!1;if(rr)try{var Xc={};Object.defineProperty(Xc,"passive",{get:function(){Vc=!0}}),window.addEventListener("test",Xc,Xc),window.removeEventListener("test",Xc,Xc)}catch{Vc=!1}var Kl=null,dd=null,_u=null;function pm(){if(_u)return _u;var a,l=dd,c=l.length,m,_="value"in Kl?Kl.value:Kl.textContent,N=_.length;for(a=0;a<c&&l[a]===_[a];a++);var F=c-a;for(m=1;m<=F&&l[c-m]===_[N-m];m++);return _u=_.slice(a,1<m?1-m:void 0)}function On(a){var l=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&l===13&&(a=13)):a=l,a===10&&(a=13),32<=a||a===13?a:0}function Tn(){return!0}function gm(){return!1}function da(a){function l(c,m,_,N,F){this._reactName=c,this._targetInst=_,this.type=m,this.nativeEvent=N,this.target=F,this.currentTarget=null;for(var z in a)a.hasOwnProperty(z)&&(c=a[z],this[z]=c?c(N):N[z]);return this.isDefaultPrevented=(N.defaultPrevented!=null?N.defaultPrevented:N.returnValue===!1)?Tn:gm,this.isPropagationStopped=gm,this}return W(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Tn)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Tn)},persist:function(){},isPersistent:Tn}),l}var Is={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wu=da(Is),qc=W({},Is,{view:0,detail:0}),jx=da(qc),Eu,hd,cr,Ro=W({},qc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yi,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==cr&&(cr&&a.type==="mousemove"?(Eu=a.screenX-cr.screenX,hd=a.screenY-cr.screenY):hd=Eu=0,cr=a),Eu)},movementY:function(a){return"movementY"in a?a.movementY:hd}}),Zl=da(Ro),xm=W({},Ro,{dataTransfer:0}),md=da(xm),Wa=W({},qc,{relatedTarget:0}),Su=da(Wa),vm=W({},Is,{animationName:0,elapsedTime:0,pseudoElement:0}),ym=da(vm),_m=W({},Is,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),wm=da(_m),Em=W({},Is,{data:0}),ha=da(Em),kx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Va={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"},Fx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sm(a){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(a):(a=Fx[a])?!!l[a]:!1}function Yi(){return Sm}var bu=W({},qc,{key:function(a){if(a.key){var l=kx[a.key]||a.key;if(l!=="Unidentified")return l}return a.type==="keypress"?(a=On(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?Va[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yi,charCode:function(a){return a.type==="keypress"?On(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?On(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),pd=da(bu),$n=W({},Ro,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pl=da($n),gd=W({},qc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yi}),Lx=da(gd),xd=W({},Is,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mx=da(xd),Bx=W({},Ro,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),Px=da(Bx),bm=W({},Is,{newState:0,oldState:0}),Tu=da(bm),Oo=[9,13,27,32],vd=rr&&"CompositionEvent"in window,Do=null;rr&&"documentMode"in document&&(Do=document.documentMode);var Tm=rr&&"TextEvent"in window&&!Do,Nu=rr&&(!vd||Do&&8<Do&&11>=Do),Cu=" ",yd=!1;function Nm(a,l){switch(a){case"keyup":return Oo.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Au(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Ql=!1;function Ux(a,l){switch(a){case"compositionend":return Au(l);case"keypress":return l.which!==32?null:(yd=!0,Cu);case"textInput":return a=l.data,a===Cu&&yd?null:a;default:return null}}function Cm(a,l){if(Ql)return a==="compositionend"||!vd&&Nm(a,l)?(a=pm(),_u=dd=Kl=null,Ql=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Nu&&l.locale!=="ko"?null:l.data;default:return null}}var ba={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 Ru(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l==="input"?!!ba[a.type]:l==="textarea"}function jo(a,l,c,m){Ao?Us?Us.push(m):Us=[m]:Ao=m,l=p0(l,"onChange"),0<l.length&&(c=new wu("onChange","change",null,c,m),a.push({event:c,listeners:l}))}var ko=null,Fo=null;function Ix(a){Hp(a,0)}function Ou(a){var l=at(a);if($c(l))return a}function Am(a,l){if(a==="change")return l}var Rm=!1;if(rr){var _d;if(rr){var Jl="oninput"in document;if(!Jl){var Om=document.createElement("div");Om.setAttribute("oninput","return;"),Jl=typeof Om.oninput=="function"}_d=Jl}else _d=!1;Rm=_d&&(!document.documentMode||9<document.documentMode)}function Dm(){ko&&(ko.detachEvent("onpropertychange",Du),Fo=ko=null)}function Du(a){if(a.propertyName==="value"&&Ou(Fo)){var l=[];jo(l,Fo,a,fd(a)),mm(Ix,l)}}function jm(a,l,c){a==="focusin"?(Dm(),ko=l,Fo=c,ko.attachEvent("onpropertychange",Du)):a==="focusout"&&Dm()}function es(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Ou(Fo)}function ju(a,l){if(a==="click")return Ou(l)}function Yx(a,l){if(a==="input"||a==="change")return Ou(l)}function Hx(a,l){return a===l&&(a!==0||1/a===1/l)||a!==a&&l!==l}var Ta=typeof Object.is=="function"?Object.is:Hx;function Hi(a,l){if(Ta(a,l))return!0;if(typeof a!="object"||a===null||typeof l!="object"||l===null)return!1;var c=Object.keys(a),m=Object.keys(l);if(c.length!==m.length)return!1;for(m=0;m<c.length;m++){var _=c[m];if(!gn.call(l,_)||!Ta(a[_],l[_]))return!1}return!0}function Xa(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function wd(a,l){var c=Xa(a);a=0;for(var m;c;){if(c.nodeType===3){if(m=a+c.textContent.length,a<=l&&m>=l)return{node:c,offset:l-a};a=m}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=Xa(c)}}function km(a,l){return a&&l?a===l?!0:a&&a.nodeType===3?!1:l&&l.nodeType===3?km(a,l.parentNode):"contains"in a?a.contains(l):a.compareDocumentPosition?!!(a.compareDocumentPosition(l)&16):!1:!1}function Fm(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var l=zc(a.document);l instanceof a.HTMLIFrameElement;){try{var c=typeof l.contentWindow.location.href=="string"}catch{c=!1}if(c)a=l.contentWindow;else break;l=zc(a.document)}return l}function Ed(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l&&(l==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||l==="textarea"||a.contentEditable==="true")}function $x(a,l){var c=Fm(l);l=a.focusedElem;var m=a.selectionRange;if(c!==l&&l&&l.ownerDocument&&km(l.ownerDocument.documentElement,l)){if(m!==null&&Ed(l)){if(a=m.start,c=m.end,c===void 0&&(c=a),"selectionStart"in l)l.selectionStart=a,l.selectionEnd=Math.min(c,l.value.length);else if(c=(a=l.ownerDocument||document)&&a.defaultView||window,c.getSelection){c=c.getSelection();var _=l.textContent.length,N=Math.min(m.start,_);m=m.end===void 0?N:Math.min(m.end,_),!c.extend&&N>m&&(_=m,m=N,N=_),_=wd(l,N);var F=wd(l,m);_&&F&&(c.rangeCount!==1||c.anchorNode!==_.node||c.anchorOffset!==_.offset||c.focusNode!==F.node||c.focusOffset!==F.offset)&&(a=a.createRange(),a.setStart(_.node,_.offset),c.removeAllRanges(),N>m?(c.addRange(a),c.extend(F.node,F.offset)):(a.setEnd(F.node,F.offset),c.addRange(a)))}}for(a=[],c=l;c=c.parentNode;)c.nodeType===1&&a.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<a.length;l++)c=a[l],c.element.scrollLeft=c.left,c.element.scrollTop=c.top}}var zx=rr&&"documentMode"in document&&11>=document.documentMode,ui=null,de=null,je=null,Oe=!1;function dt(a,l,c){var m=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Oe||ui==null||ui!==zc(m)||(m=ui,"selectionStart"in m&&Ed(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),je&&Hi(je,m)||(je=m,m=p0(de,"onSelect"),0<m.length&&(l=new wu("onSelect","select",null,l,c),a.push({event:l,listeners:m}),l.target=ui)))}function At(a,l){var c={};return c[a.toLowerCase()]=l.toLowerCase(),c["Webkit"+a]="webkit"+l,c["Moz"+a]="moz"+l,c}var rn={animationend:At("Animation","AnimationEnd"),animationiteration:At("Animation","AnimationIteration"),animationstart:At("Animation","AnimationStart"),transitionrun:At("Transition","TransitionRun"),transitionstart:At("Transition","TransitionStart"),transitioncancel:At("Transition","TransitionCancel"),transitionend:At("Transition","TransitionEnd")},fr={},Dn={};rr&&(Dn=document.createElement("div").style,"AnimationEvent"in window||(delete rn.animationend.animation,delete rn.animationiteration.animation,delete rn.animationstart.animation),"TransitionEvent"in window||delete rn.transitionend.transition);function gl(a){if(fr[a])return fr[a];if(!rn[a])return a;var l=rn[a],c;for(c in l)if(l.hasOwnProperty(c)&&c in Dn)return fr[a]=l[c];return a}var Lm=gl("animationend"),Na=gl("animationiteration"),Kc=gl("animationstart"),Gx=gl("transitionrun"),Lo=gl("transitionstart"),ku=gl("transitioncancel"),Zc=gl("transitionend"),vn=new Map,Mm="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 qa(a,l){vn.set(a,l),Ot(l,[a])}var Xr=[],Mo=0,Sd=0;function Fu(){for(var a=Mo,l=Sd=Mo=0;l<a;){var c=Xr[l];Xr[l++]=null;var m=Xr[l];Xr[l++]=null;var _=Xr[l];Xr[l++]=null;var N=Xr[l];if(Xr[l++]=null,m!==null&&_!==null){var F=m.pending;F===null?_.next=_:(_.next=F.next,F.next=_),m.pending=_}N!==0&&bd(c,_,N)}}function Ys(a,l,c,m){Xr[Mo++]=a,Xr[Mo++]=l,Xr[Mo++]=c,Xr[Mo++]=m,Sd|=m,a.lanes|=m,a=a.alternate,a!==null&&(a.lanes|=m)}function $i(a,l,c,m){return Ys(a,l,c,m),Hs(a)}function di(a,l){return Ys(a,null,null,l),Hs(a)}function bd(a,l,c){a.lanes|=c;var m=a.alternate;m!==null&&(m.lanes|=c);for(var _=!1,N=a.return;N!==null;)N.childLanes|=c,m=N.alternate,m!==null&&(m.childLanes|=c),N.tag===22&&(a=N.stateNode,a===null||a._visibility&1||(_=!0)),a=N,N=N.return;_&&l!==null&&a.tag===3&&(N=a.stateNode,_=31-ut(c),N=N.hiddenUpdates,a=N[_],a===null?N[_]=[l]:a.push(l),l.lane=c|536870912)}function Hs(a){if(50<Of)throw Of=0,Sh=null,Error(r(185));for(var l=a.return;l!==null;)a=l,l=a.return;return a.tag===3?a.stateNode:null}var $s={},Td=new WeakMap;function qr(a,l){if(typeof a=="object"&&a!==null){var c=Td.get(a);return c!==void 0?c:(l={value:a,source:l,stack:Te(l)},Td.set(a,l),l)}return{value:a,source:l,stack:Te(l)}}var zs=[],zi=0,Gi=null,Gs=0,Ka=[],Za=0,Ws=null,Qa=1,Ja="";function xl(a,l){zs[zi++]=Gs,zs[zi++]=Gi,Gi=a,Gs=l}function Bm(a,l,c){Ka[Za++]=Qa,Ka[Za++]=Ja,Ka[Za++]=Ws,Ws=a;var m=Qa;a=Ja;var _=32-ut(m)-1;m&=~(1<<_),c+=1;var N=32-ut(l)+_;if(30<N){var F=_-_%5;N=(m&(1<<F)-1).toString(32),m>>=F,_-=F,Qa=1<<32-ut(l)+_|c<<_|m,Ja=N+a}else Qa=1<<N|c<<_|m,Ja=a}function Lu(a){a.return!==null&&(xl(a,1),Bm(a,1,0))}function Nd(a){for(;a===Gi;)Gi=zs[--zi],zs[zi]=null,Gs=zs[--zi],zs[zi]=null;for(;a===Ws;)Ws=Ka[--Za],Ka[Za]=null,Ja=Ka[--Za],Ka[Za]=null,Qa=Ka[--Za],Ka[Za]=null}var Kr=null,an=null,kt=!1,hi=null,Wi=!1,Mu=Error(r(519));function Vs(a){var l=Error(r(418,""));throw vl(qr(l,a)),Mu}function Bu(a){var l=a.stateNode,c=a.type,m=a.memoizedProps;switch(l[Y]=a,l[G]=m,c){case"dialog":ln("cancel",l),ln("close",l);break;case"iframe":case"object":case"embed":ln("load",l);break;case"video":case"audio":for(c=0;c<kf.length;c++)ln(kf[c],l);break;case"source":ln("error",l);break;case"img":case"image":case"link":ln("error",l),ln("load",l);break;case"details":ln("toggle",l);break;case"input":ln("invalid",l),gu(l,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0),Hc(l);break;case"select":ln("invalid",l);break;case"textarea":ln("invalid",l),vu(l,m.value,m.defaultValue,m.children),Hc(l)}c=m.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||l.textContent===""+c||m.suppressHydrationWarning===!0||Yt(l.textContent,c)?(m.popover!=null&&(ln("beforetoggle",l),ln("toggle",l)),m.onScroll!=null&&ln("scroll",l),m.onScrollEnd!=null&&ln("scrollend",l),m.onClick!=null&&(l.onclick=g0),l=!0):l=!1,l||Vs(a)}function Bo(a){for(Kr=a.return;Kr;)switch(Kr.tag){case 3:case 27:Wi=!0;return;case 5:case 13:Wi=!1;return;default:Kr=Kr.return}}function Xs(a){if(a!==Kr)return!1;if(!kt)return Bo(a),kt=!0,!1;var l=!1,c;if((c=a.tag!==3&&a.tag!==27)&&((c=a.tag===5)&&(c=a.type,c=!(c!=="form"&&c!=="button")||Lf(a.type,a.memoizedProps)),c=!c),c&&(l=!0),l&&an&&Vs(a),Bo(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));e:{for(a=a.nextSibling,l=0;a;){if(a.nodeType===8)if(c=a.data,c==="/$"){if(l===0){an=bi(a.nextSibling);break e}l--}else c!=="$"&&c!=="$!"&&c!=="$?"||l++;a=a.nextSibling}an=null}}else an=Kr?bi(a.stateNode.nextSibling):null;return!0}function Vi(){an=Kr=null,kt=!1}function vl(a){hi===null?hi=[a]:hi.push(a)}var yl=Error(r(460)),Qc=Error(r(474)),ts={then:function(){}};function Pm(a){return a=a.status,a==="fulfilled"||a==="rejected"}function Pu(){}function Um(a,l,c){switch(c=a[c],c===void 0?a.push(l):c!==l&&(l.then(Pu,Pu),l=c),l.status){case"fulfilled":return l.value;case"rejected":throw a=l.reason,a===yl?Error(r(483)):a;default:if(typeof l.status=="string")l.then(Pu,Pu);else{if(a=jn,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=l,a.status="pending",a.then(function(m){if(l.status==="pending"){var _=l;_.status="fulfilled",_.value=m}},function(m){if(l.status==="pending"){var _=l;_.status="rejected",_.reason=m}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw a=l.reason,a===yl?Error(r(483)):a}throw Jc=l,yl}}var Jc=null;function Im(){if(Jc===null)throw Error(r(459));var a=Jc;return Jc=null,a}var _l=null,wl=0;function ef(a){var l=wl;return wl+=1,_l===null&&(_l=[]),Um(_l,a,l)}function H(a,l){l=l.props.ref,a.ref=l!==void 0?l:null}function El(a,l){throw l.$$typeof===s?Error(r(525)):(a=Object.prototype.toString.call(l),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":a)))}function tf(a){var l=a._init;return l(a._payload)}function Ca(a){function l(ge,fe){if(a){var be=ge.deletions;be===null?(ge.deletions=[fe],ge.flags|=16):be.push(fe)}}function c(ge,fe){if(!a)return null;for(;fe!==null;)l(ge,fe),fe=fe.sibling;return null}function m(ge){for(var fe=new Map;ge!==null;)ge.key!==null?fe.set(ge.key,ge):fe.set(ge.index,ge),ge=ge.sibling;return fe}function _(ge,fe){return ge=xs(ge,fe),ge.index=0,ge.sibling=null,ge}function N(ge,fe,be){return ge.index=be,a?(be=ge.alternate,be!==null?(be=be.index,be<fe?(ge.flags|=33554434,fe):be):(ge.flags|=33554434,fe)):(ge.flags|=1048576,fe)}function F(ge){return a&&ge.alternate===null&&(ge.flags|=33554434),ge}function z(ge,fe,be,Ye){return fe===null||fe.tag!==6?(fe=ph(be,ge.mode,Ye),fe.return=ge,fe):(fe=_(fe,be),fe.return=ge,fe)}function re(ge,fe,be,Ye){var mt=be.type;return mt===d?Me(ge,fe,be.props.children,Ye,be.key):fe!==null&&(fe.elementType===mt||typeof mt=="object"&&mt!==null&&mt.$$typeof===R&&tf(mt)===fe.type)?(fe=_(fe,be.props),H(fe,be),fe.return=ge,fe):(fe=Tf(be.type,be.key,be.props,null,ge.mode,Ye),H(fe,be),fe.return=ge,fe)}function ue(ge,fe,be,Ye){return fe===null||fe.tag!==4||fe.stateNode.containerInfo!==be.containerInfo||fe.stateNode.implementation!==be.implementation?(fe=gh(be,ge.mode,Ye),fe.return=ge,fe):(fe=_(fe,be.children||[]),fe.return=ge,fe)}function Me(ge,fe,be,Ye,mt){return fe===null||fe.tag!==7?(fe=no(be,ge.mode,Ye,mt),fe.return=ge,fe):(fe=_(fe,be),fe.return=ge,fe)}function Ve(ge,fe,be){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return fe=ph(""+fe,ge.mode,be),fe.return=ge,fe;if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case o:return be=Tf(fe.type,fe.key,fe.props,null,ge.mode,be),H(be,fe),be.return=ge,be;case u:return fe=gh(fe,ge.mode,be),fe.return=ge,fe;case R:var Ye=fe._init;return fe=Ye(fe._payload),Ve(ge,fe,be)}if(ie(fe)||B(fe))return fe=no(fe,ge.mode,be,null),fe.return=ge,fe;if(typeof fe.then=="function")return Ve(ge,ef(fe),be);if(fe.$$typeof===w)return Ve(ge,a0(ge,fe),be);El(ge,fe)}return null}function Ae(ge,fe,be,Ye){var mt=fe!==null?fe.key:null;if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return mt!==null?null:z(ge,fe,""+be,Ye);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case o:return be.key===mt?re(ge,fe,be,Ye):null;case u:return be.key===mt?ue(ge,fe,be,Ye):null;case R:return mt=be._init,be=mt(be._payload),Ae(ge,fe,be,Ye)}if(ie(be)||B(be))return mt!==null?null:Me(ge,fe,be,Ye,null);if(typeof be.then=="function")return Ae(ge,fe,ef(be),Ye);if(be.$$typeof===w)return Ae(ge,fe,a0(ge,be),Ye);El(ge,be)}return null}function Le(ge,fe,be,Ye,mt){if(typeof Ye=="string"&&Ye!==""||typeof Ye=="number"||typeof Ye=="bigint")return ge=ge.get(be)||null,z(fe,ge,""+Ye,mt);if(typeof Ye=="object"&&Ye!==null){switch(Ye.$$typeof){case o:return ge=ge.get(Ye.key===null?be:Ye.key)||null,re(fe,ge,Ye,mt);case u:return ge=ge.get(Ye.key===null?be:Ye.key)||null,ue(fe,ge,Ye,mt);case R:var Kt=Ye._init;return Ye=Kt(Ye._payload),Le(ge,fe,be,Ye,mt)}if(ie(Ye)||B(Ye))return ge=ge.get(be)||null,Me(fe,ge,Ye,mt,null);if(typeof Ye.then=="function")return Le(ge,fe,be,ef(Ye),mt);if(Ye.$$typeof===w)return Le(ge,fe,be,a0(fe,Ye),mt);El(fe,Ye)}return null}function _t(ge,fe,be,Ye){for(var mt=null,Kt=null,Et=fe,Rt=fe=0,xn=null;Et!==null&&Rt<be.length;Rt++){Et.index>Rt?(xn=Et,Et=null):xn=Et.sibling;var un=Ae(ge,Et,be[Rt],Ye);if(un===null){Et===null&&(Et=xn);break}a&&Et&&un.alternate===null&&l(ge,Et),fe=N(un,fe,Rt),Kt===null?mt=un:Kt.sibling=un,Kt=un,Et=xn}if(Rt===be.length)return c(ge,Et),kt&&xl(ge,Rt),mt;if(Et===null){for(;Rt<be.length;Rt++)Et=Ve(ge,be[Rt],Ye),Et!==null&&(fe=N(Et,fe,Rt),Kt===null?mt=Et:Kt.sibling=Et,Kt=Et);return kt&&xl(ge,Rt),mt}for(Et=m(Et);Rt<be.length;Rt++)xn=Le(Et,ge,Rt,be[Rt],Ye),xn!==null&&(a&&xn.alternate!==null&&Et.delete(xn.key===null?Rt:xn.key),fe=N(xn,fe,Rt),Kt===null?mt=xn:Kt.sibling=xn,Kt=xn);return a&&Et.forEach(function(bs){return l(ge,bs)}),kt&&xl(ge,Rt),mt}function Lt(ge,fe,be,Ye){if(be==null)throw Error(r(151));for(var mt=null,Kt=null,Et=fe,Rt=fe=0,xn=null,un=be.next();Et!==null&&!un.done;Rt++,un=be.next()){Et.index>Rt?(xn=Et,Et=null):xn=Et.sibling;var bs=Ae(ge,Et,un.value,Ye);if(bs===null){Et===null&&(Et=xn);break}a&&Et&&bs.alternate===null&&l(ge,Et),fe=N(bs,fe,Rt),Kt===null?mt=bs:Kt.sibling=bs,Kt=bs,Et=xn}if(un.done)return c(ge,Et),kt&&xl(ge,Rt),mt;if(Et===null){for(;!un.done;Rt++,un=be.next())un=Ve(ge,un.value,Ye),un!==null&&(fe=N(un,fe,Rt),Kt===null?mt=un:Kt.sibling=un,Kt=un);return kt&&xl(ge,Rt),mt}for(Et=m(Et);!un.done;Rt++,un=be.next())un=Le(Et,ge,Rt,un.value,Ye),un!==null&&(a&&un.alternate!==null&&Et.delete(un.key===null?Rt:un.key),fe=N(un,fe,Rt),Kt===null?mt=un:Kt.sibling=un,Kt=un);return a&&Et.forEach(function(Fv){return l(ge,Fv)}),kt&&xl(ge,Rt),mt}function Kn(ge,fe,be,Ye){if(typeof be=="object"&&be!==null&&be.type===d&&be.key===null&&(be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case o:e:{for(var mt=be.key;fe!==null;){if(fe.key===mt){if(mt=be.type,mt===d){if(fe.tag===7){c(ge,fe.sibling),Ye=_(fe,be.props.children),Ye.return=ge,ge=Ye;break e}}else if(fe.elementType===mt||typeof mt=="object"&&mt!==null&&mt.$$typeof===R&&tf(mt)===fe.type){c(ge,fe.sibling),Ye=_(fe,be.props),H(Ye,be),Ye.return=ge,ge=Ye;break e}c(ge,fe);break}else l(ge,fe);fe=fe.sibling}be.type===d?(Ye=no(be.props.children,ge.mode,Ye,be.key),Ye.return=ge,ge=Ye):(Ye=Tf(be.type,be.key,be.props,null,ge.mode,Ye),H(Ye,be),Ye.return=ge,ge=Ye)}return F(ge);case u:e:{for(mt=be.key;fe!==null;){if(fe.key===mt)if(fe.tag===4&&fe.stateNode.containerInfo===be.containerInfo&&fe.stateNode.implementation===be.implementation){c(ge,fe.sibling),Ye=_(fe,be.children||[]),Ye.return=ge,ge=Ye;break e}else{c(ge,fe);break}else l(ge,fe);fe=fe.sibling}Ye=gh(be,ge.mode,Ye),Ye.return=ge,ge=Ye}return F(ge);case R:return mt=be._init,be=mt(be._payload),Kn(ge,fe,be,Ye)}if(ie(be))return _t(ge,fe,be,Ye);if(B(be)){if(mt=B(be),typeof mt!="function")throw Error(r(150));return be=mt.call(be),Lt(ge,fe,be,Ye)}if(typeof be.then=="function")return Kn(ge,fe,ef(be),Ye);if(be.$$typeof===w)return Kn(ge,fe,a0(ge,be),Ye);El(ge,be)}return typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint"?(be=""+be,fe!==null&&fe.tag===6?(c(ge,fe.sibling),Ye=_(fe,be),Ye.return=ge,ge=Ye):(c(ge,fe),Ye=ph(be,ge.mode,Ye),Ye.return=ge,ge=Ye),F(ge)):c(ge,fe)}return function(ge,fe,be,Ye){try{wl=0;var mt=Kn(ge,fe,be,Ye);return _l=null,mt}catch(Et){if(Et===yl)throw Et;var Kt=Fa(29,Et,null,ge.mode);return Kt.lanes=Ye,Kt.return=ge,Kt}finally{}}}var zt=Ca(!0),Ym=Ca(!1),Po=Ce(null),Uu=Ce(0);function ns(a,l){a=kl,oe(Uu,a),oe(Po,l),kl=a|l.baseLanes}function Cd(){oe(Uu,kl),oe(Po,Po.current)}function Ad(){kl=Uu.current,me(Po),me(Uu)}var ei=Ce(null),Xi=null;function rs(a){var l=a.alternate;oe(xr,xr.current&1),oe(ei,a),Xi===null&&(l===null||Po.current!==null||l.memoizedState!==null)&&(Xi=a)}function qi(a){if(a.tag===22){if(oe(xr,xr.current),oe(ei,a),Xi===null){var l=a.alternate;l!==null&&l.memoizedState!==null&&(Xi=a)}}else as()}function as(){oe(xr,xr.current),oe(ei,ei.current)}function Sl(a){me(ei),Xi===a&&(Xi=null),me(xr)}var xr=Ce(0);function Iu(a){for(var l=a;l!==null;){if(l.tag===13){var c=l.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if(l.flags&128)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Wx=typeof AbortController<"u"?AbortController:function(){var a=[],l=this.signal={aborted:!1,addEventListener:function(c,m){a.push(m)}};this.abort=function(){l.aborted=!0,a.forEach(function(c){return c()})}},bl=e.unstable_scheduleCallback,Vx=e.unstable_NormalPriority,vr={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Rd(){return{controller:new Wx,data:new Map,refCount:0}}function nf(a){a.refCount--,a.refCount===0&&bl(Vx,function(){a.controller.abort()})}var rf=null,Tl=0,Uo=0,Io=null;function mi(a,l){if(rf===null){var c=rf=[];Tl=0,Uo=kh(),Io={status:"pending",value:void 0,then:function(m){c.push(m)}}}return Tl++,l.then(Hm,Hm),l}function Hm(){if(--Tl===0&&rf!==null){Io!==null&&(Io.status="fulfilled");var a=rf;rf=null,Uo=0,Io=null;for(var l=0;l<a.length;l++)(0,a[l])()}}function Xx(a,l){var c=[],m={status:"pending",value:null,reason:null,then:function(_){c.push(_)}};return a.then(function(){m.status="fulfilled",m.value=l;for(var _=0;_<c.length;_++)(0,c[_])(l)},function(_){for(m.status="rejected",m.reason=_,_=0;_<c.length;_++)(0,c[_])(void 0)}),m}var $m=U.S;U.S=function(a,l){typeof l=="object"&&l!==null&&typeof l.then=="function"&&mi(a,l),$m!==null&&$m(a,l)};var qs=Ce(null);function Od(){var a=qs.current;return a!==null?a:jn.pooledCache}function af(a,l){l===null?oe(qs,qs.current):oe(qs,l.pool)}function Dd(){var a=Od();return a===null?null:{parent:vr._currentValue,pool:a}}var is=0,Xt=null,yn=null,zn=null,Ks=!1,Yo=!1,ls=!1,Yu=0,Aa=0,ss=null,Zs=0;function pn(){throw Error(r(321))}function jd(a,l){if(l===null)return!1;for(var c=0;c<l.length&&c<a.length;c++)if(!Ta(a[c],l[c]))return!1;return!0}function Hu(a,l,c,m,_,N){return is=N,Xt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,U.H=a===null||a.memoizedState===null?pa:Ki,ls=!1,N=c(m,_),ls=!1,Yo&&(N=Ho(l,c,m,_)),kd(a),N}function kd(a){U.H=ar;var l=yn!==null&&yn.next!==null;if(is=0,zn=yn=Xt=null,Ks=!1,Aa=0,ss=null,l)throw Error(r(300));a===null||yr||(a=a.dependencies,a!==null&&r0(a)&&(yr=!0))}function Ho(a,l,c,m){Xt=a;var _=0;do{if(Yo&&(ss=null),Aa=0,Yo=!1,25<=_)throw Error(r(301));if(_+=1,zn=yn=null,a.updateQueue!=null){var N=a.updateQueue;N.lastEffect=null,N.events=null,N.stores=null,N.memoCache!=null&&(N.memoCache.index=0)}U.H=fs,N=l(c,m)}while(Yo);return N}function os(){var a=U.H,l=a.useState()[0];return l=typeof l.then=="function"?Qs(l):l,a=a.useState()[0],(yn!==null?yn.memoizedState:null)!==a&&(Xt.flags|=1024),l}function $u(){var a=Yu!==0;return Yu=0,a}function Fd(a,l,c){l.updateQueue=a.updateQueue,l.flags&=-2053,a.lanes&=~c}function $o(a){if(Ks){for(a=a.memoizedState;a!==null;){var l=a.queue;l!==null&&(l.pending=null),a=a.next}Ks=!1}is=0,zn=yn=Xt=null,Yo=!1,Aa=Yu=0,ss=null}function ma(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zn===null?Xt.memoizedState=zn=a:zn=zn.next=a,zn}function ur(){if(yn===null){var a=Xt.alternate;a=a!==null?a.memoizedState:null}else a=yn.next;var l=zn===null?Xt.memoizedState:zn.next;if(l!==null)zn=l,yn=a;else{if(a===null)throw Xt.alternate===null?Error(r(467)):Error(r(310));yn=a,a={memoizedState:yn.memoizedState,baseState:yn.baseState,baseQueue:yn.baseQueue,queue:yn.queue,next:null},zn===null?Xt.memoizedState=zn=a:zn=zn.next=a}return zn}var dr;dr=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Qs(a){var l=Aa;return Aa+=1,ss===null&&(ss=[]),a=Um(ss,a,l),l=Xt,(zn===null?l.memoizedState:zn.next)===null&&(l=l.alternate,U.H=l===null||l.memoizedState===null?pa:Ki),a}function lf(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Qs(a);if(a.$$typeof===w)return Pr(a)}throw Error(r(438,String(a)))}function ti(a){var l=null,c=Xt.updateQueue;if(c!==null&&(l=c.memoCache),l==null){var m=Xt.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(l={data:m.data.map(function(_){return _.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),c===null&&(c=dr(),Xt.updateQueue=c),c.memoCache=l,c=l.data[l.index],c===void 0)for(c=l.data[l.index]=Array(a),m=0;m<a;m++)c[m]=j;return l.index++,c}function pi(a,l){return typeof l=="function"?l(a):l}function Js(a){var l=ur();return Nl(l,yn,a)}function Nl(a,l,c){var m=a.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=c;var _=a.baseQueue,N=m.pending;if(N!==null){if(_!==null){var F=_.next;_.next=N.next,N.next=F}l.baseQueue=_=N,m.pending=null}if(N=a.baseState,_===null)a.memoizedState=N;else{l=_.next;var z=F=null,re=null,ue=l,Me=!1;do{var Ve=ue.lane&-536870913;if(Ve!==ue.lane?(fn&Ve)===Ve:(is&Ve)===Ve){var Ae=ue.revertLane;if(Ae===0)re!==null&&(re=re.next={lane:0,revertLane:0,action:ue.action,hasEagerState:ue.hasEagerState,eagerState:ue.eagerState,next:null}),Ve===Uo&&(Me=!0);else if((is&Ae)===Ae){ue=ue.next,Ae===Uo&&(Me=!0);continue}else Ve={lane:0,revertLane:ue.revertLane,action:ue.action,hasEagerState:ue.hasEagerState,eagerState:ue.eagerState,next:null},re===null?(z=re=Ve,F=N):re=re.next=Ve,Xt.lanes|=Ae,vs|=Ae;Ve=ue.action,ls&&c(N,Ve),N=ue.hasEagerState?ue.eagerState:c(N,Ve)}else Ae={lane:Ve,revertLane:ue.revertLane,action:ue.action,hasEagerState:ue.hasEagerState,eagerState:ue.eagerState,next:null},re===null?(z=re=Ae,F=N):re=re.next=Ae,Xt.lanes|=Ve,vs|=Ve;ue=ue.next}while(ue!==null&&ue!==l);if(re===null?F=N:re.next=z,!Ta(N,a.memoizedState)&&(yr=!0,Me&&(c=Io,c!==null)))throw c;a.memoizedState=N,a.baseState=F,a.baseQueue=re,m.lastRenderedState=N}return _===null&&(m.lanes=0),[a.memoizedState,m.dispatch]}function zu(a){var l=ur(),c=l.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=a;var m=c.dispatch,_=c.pending,N=l.memoizedState;if(_!==null){c.pending=null;var F=_=_.next;do N=a(N,F.action),F=F.next;while(F!==_);Ta(N,l.memoizedState)||(yr=!0),l.memoizedState=N,l.baseQueue===null&&(l.baseState=N),c.lastRenderedState=N}return[N,m]}function Br(a,l,c){var m=Xt,_=ur(),N=kt;if(N){if(c===void 0)throw Error(r(407));c=c()}else c=l();var F=!Ta((yn||_).memoizedState,c);if(F&&(_.memoizedState=c,yr=!0),_=_.queue,Xu(Gm.bind(null,m,_,a),[a]),_.getSnapshot!==l||F||zn!==null&&zn.memoizedState.tag&1){if(m.flags|=2048,cs(9,zm.bind(null,m,_,c,l),{destroy:void 0},null),jn===null)throw Error(r(349));N||is&60||Gu(m,l,c)}return c}function Gu(a,l,c){a.flags|=16384,a={getSnapshot:l,value:c},l=Xt.updateQueue,l===null?(l=dr(),Xt.updateQueue=l,l.stores=[a]):(c=l.stores,c===null?l.stores=[a]:c.push(a))}function zm(a,l,c,m){l.value=c,l.getSnapshot=m,Wm(l)&&Wu(a)}function Gm(a,l,c){return c(function(){Wm(l)&&Wu(a)})}function Wm(a){var l=a.getSnapshot;a=a.value;try{var c=l();return!Ta(a,c)}catch{return!0}}function Wu(a){var l=di(a,2);l!==null&&Ir(l,a,2)}function Ld(a){var l=ma();if(typeof a=="function"){var c=a;if(a=c(),ls){Pn(!0);try{c()}finally{Pn(!1)}}}return l.memoizedState=l.baseState=a,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:a},l}function zo(a,l,c,m){return a.baseState=c,Nl(a,yn,typeof m=="function"?m:pi)}function Vm(a,l,c,m,_){if(qo(a))throw Error(r(485));if(a=l.action,a!==null){var N={payload:_,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(F){N.listeners.push(F)}};U.T!==null?c(!0):N.isTransition=!1,m(N),c=l.pending,c===null?(N.next=l.pending=N,Xm(l,N)):(N.next=c.next,l.pending=c.next=N)}}function Xm(a,l){var c=l.action,m=l.payload,_=a.state;if(l.isTransition){var N=U.T,F={};U.T=F;try{var z=c(_,m),re=U.S;re!==null&&re(F,z),qm(a,l,z)}catch(ue){Md(a,l,ue)}finally{U.T=N}}else try{N=c(_,m),qm(a,l,N)}catch(ue){Md(a,l,ue)}}function qm(a,l,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(m){Go(a,l,m)},function(m){return Md(a,l,m)}):Go(a,l,c)}function Go(a,l,c){l.status="fulfilled",l.value=c,Km(l),a.state=c,l=a.pending,l!==null&&(c=l.next,c===l?a.pending=null:(c=c.next,l.next=c,Xm(a,c)))}function Md(a,l,c){var m=a.pending;if(a.pending=null,m!==null){m=m.next;do l.status="rejected",l.reason=c,Km(l),l=l.next;while(l!==m)}a.action=null}function Km(a){a=a.listeners;for(var l=0;l<a.length;l++)(0,a[l])()}function Vu(a,l){return l}function Bd(a,l){if(kt){var c=jn.formState;if(c!==null){e:{var m=Xt;if(kt){if(an){t:{for(var _=an,N=Wi;_.nodeType!==8;){if(!N){_=null;break t}if(_=bi(_.nextSibling),_===null){_=null;break t}}N=_.data,_=N==="F!"||N==="F"?_:null}if(_){an=bi(_.nextSibling),m=_.data==="F!";break e}}Vs(m)}m=!1}m&&(l=c[0])}}return c=ma(),c.memoizedState=c.baseState=l,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vu,lastRenderedState:l},c.queue=m,c=Ra.bind(null,Xt,m),m.dispatch=c,m=Ld(!1),N=Xo.bind(null,Xt,!1,m.queue),m=ma(),_={state:l,dispatch:null,action:a,pending:null},m.queue=_,c=Vm.bind(null,Xt,_,N,c),_.dispatch=c,m.memoizedState=a,[l,c,!1]}function Zm(a){var l=ur();return Qm(l,yn,a)}function Qm(a,l,c){l=Nl(a,l,Vu)[0],a=Js(pi)[0],l=typeof l=="object"&&l!==null&&typeof l.then=="function"?Qs(l):l;var m=ur(),_=m.queue,N=_.dispatch;return c!==m.memoizedState&&(Xt.flags|=2048,cs(9,qx.bind(null,_,c),{destroy:void 0},null)),[l,N,a]}function qx(a,l){a.action=l}function Pd(a){var l=ur(),c=yn;if(c!==null)return Qm(l,c,a);ur(),l=l.memoizedState,c=ur();var m=c.queue.dispatch;return c.memoizedState=a,[l,m,!1]}function cs(a,l,c,m){return a={tag:a,create:l,inst:c,deps:m,next:null},l=Xt.updateQueue,l===null&&(l=dr(),Xt.updateQueue=l),c=l.lastEffect,c===null?l.lastEffect=a.next=a:(m=c.next,c.next=a,a.next=m,l.lastEffect=a),a}function Jm(){return ur().memoizedState}function Wo(a,l,c,m){var _=ma();Xt.flags|=a,_.memoizedState=cs(1|l,c,{destroy:void 0},m===void 0?null:m)}function sf(a,l,c,m){var _=ur();m=m===void 0?null:m;var N=_.memoizedState.inst;yn!==null&&m!==null&&jd(m,yn.memoizedState.deps)?_.memoizedState=cs(l,c,N,m):(Xt.flags|=a,_.memoizedState=cs(1|l,c,N,m))}function Ud(a,l){Wo(8390656,8,a,l)}function Xu(a,l){sf(2048,8,a,l)}function of(a,l){return sf(4,2,a,l)}function ep(a,l){return sf(4,4,a,l)}function Id(a,l){if(typeof l=="function"){a=a();var c=l(a);return function(){typeof c=="function"?c():l(null)}}if(l!=null)return a=a(),l.current=a,function(){l.current=null}}function Yd(a,l,c){c=c!=null?c.concat([a]):null,sf(4,4,Id.bind(null,l,a),c)}function Hd(){}function $d(a,l){var c=ur();l=l===void 0?null:l;var m=c.memoizedState;return l!==null&&jd(l,m[1])?m[0]:(c.memoizedState=[a,l],a)}function tp(a,l){var c=ur();l=l===void 0?null:l;var m=c.memoizedState;if(l!==null&&jd(l,m[1]))return m[0];if(m=a(),ls){Pn(!0);try{a()}finally{Pn(!1)}}return c.memoizedState=[m,l],m}function cf(a,l,c){return c===void 0||is&1073741824?a.memoizedState=l:(a.memoizedState=c,a=Np(),Xt.lanes|=a,vs|=a,c)}function zd(a,l,c,m){return Ta(c,l)?c:Po.current!==null?(a=cf(a,c,m),Ta(a,l)||(yr=!0),a):is&42?(a=Np(),Xt.lanes|=a,vs|=a,l):(yr=!0,a.memoizedState=c)}function qu(a,l,c,m,_){var N=ee.p;ee.p=N!==0&&8>N?N:8;var F=U.T,z={};U.T=z,Xo(a,!1,l,c);try{var re=_(),ue=U.S;if(ue!==null&&ue(z,re),re!==null&&typeof re=="object"&&typeof re.then=="function"){var Me=Xx(re,m);uf(a,l,Me,Ma(a))}else uf(a,l,m,Ma(a))}catch(Ve){uf(a,l,{then:function(){},status:"rejected",reason:Ve},Ma())}finally{ee.p=N,U.T=F}}function Kx(){}function ff(a,l,c,m){if(a.tag!==5)throw Error(r(476));var _=Vt(a).queue;qu(a,_,l,K,c===null?Kx:function(){return np(a),c(m)})}function Vt(a){var l=a.memoizedState;if(l!==null)return l;l={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:K},next:null};var c={};return l.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:c},next:null},a.memoizedState=l,a=a.alternate,a!==null&&(a.memoizedState=l),l}function np(a){var l=Vt(a).next.queue;uf(a,l,{},Ma())}function Gd(){return Pr(Pf)}function Vo(){return ur().memoizedState}function Wd(){return ur().memoizedState}function Zx(a){for(var l=a.return;l!==null;){switch(l.tag){case 24:case 3:var c=Ma();a=_i(c);var m=Oa(l,a,c);m!==null&&(Ir(m,l,c),St(m,l,c)),l={cache:Rd()},a.payload=l;return}l=l.return}}function Qx(a,l,c){var m=Ma();c={lane:m,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},qo(a)?Vd(l,c):(c=$i(a,l,c,m),c!==null&&(Ir(c,a,m),Xd(c,l,m)))}function Ra(a,l,c){var m=Ma();uf(a,l,c,m)}function uf(a,l,c,m){var _={lane:m,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(qo(a))Vd(l,_);else{var N=a.alternate;if(a.lanes===0&&(N===null||N.lanes===0)&&(N=l.lastRenderedReducer,N!==null))try{var F=l.lastRenderedState,z=N(F,c);if(_.hasEagerState=!0,_.eagerState=z,Ta(z,F))return Ys(a,l,_,0),jn===null&&Fu(),!1}catch{}finally{}if(c=$i(a,l,_,m),c!==null)return Ir(c,a,m),Xd(c,l,m),!0}return!1}function Xo(a,l,c,m){if(m={lane:2,revertLane:kh(),action:m,hasEagerState:!1,eagerState:null,next:null},qo(a)){if(l)throw Error(r(479))}else l=$i(a,c,m,2),l!==null&&Ir(l,a,2)}function qo(a){var l=a.alternate;return a===Xt||l!==null&&l===Xt}function Vd(a,l){Yo=Ks=!0;var c=a.pending;c===null?l.next=l:(l.next=c.next,c.next=l),a.pending=l}function Xd(a,l,c){if(c&4194176){var m=l.lanes;m&=a.pendingLanes,c|=m,l.lanes=c,Nt(a,c)}}var ar={readContext:Pr,use:lf,useCallback:pn,useContext:pn,useEffect:pn,useImperativeHandle:pn,useLayoutEffect:pn,useInsertionEffect:pn,useMemo:pn,useReducer:pn,useRef:pn,useState:pn,useDebugValue:pn,useDeferredValue:pn,useTransition:pn,useSyncExternalStore:pn,useId:pn};ar.useCacheRefresh=pn,ar.useMemoCache=pn,ar.useHostTransitionStatus=pn,ar.useFormState=pn,ar.useActionState=pn,ar.useOptimistic=pn;var pa={readContext:Pr,use:lf,useCallback:function(a,l){return ma().memoizedState=[a,l===void 0?null:l],a},useContext:Pr,useEffect:Ud,useImperativeHandle:function(a,l,c){c=c!=null?c.concat([a]):null,Wo(4194308,4,Id.bind(null,l,a),c)},useLayoutEffect:function(a,l){return Wo(4194308,4,a,l)},useInsertionEffect:function(a,l){Wo(4,2,a,l)},useMemo:function(a,l){var c=ma();l=l===void 0?null:l;var m=a();if(ls){Pn(!0);try{a()}finally{Pn(!1)}}return c.memoizedState=[m,l],m},useReducer:function(a,l,c){var m=ma();if(c!==void 0){var _=c(l);if(ls){Pn(!0);try{c(l)}finally{Pn(!1)}}}else _=l;return m.memoizedState=m.baseState=_,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:_},m.queue=a,a=a.dispatch=Qx.bind(null,Xt,a),[m.memoizedState,a]},useRef:function(a){var l=ma();return a={current:a},l.memoizedState=a},useState:function(a){a=Ld(a);var l=a.queue,c=Ra.bind(null,Xt,l);return l.dispatch=c,[a.memoizedState,c]},useDebugValue:Hd,useDeferredValue:function(a,l){var c=ma();return cf(c,a,l)},useTransition:function(){var a=Ld(!1);return a=qu.bind(null,Xt,a.queue,!0,!1),ma().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,l,c){var m=Xt,_=ma();if(kt){if(c===void 0)throw Error(r(407));c=c()}else{if(c=l(),jn===null)throw Error(r(349));fn&60||Gu(m,l,c)}_.memoizedState=c;var N={value:c,getSnapshot:l};return _.queue=N,Ud(Gm.bind(null,m,N,a),[a]),m.flags|=2048,cs(9,zm.bind(null,m,N,c,l),{destroy:void 0},null),c},useId:function(){var a=ma(),l=jn.identifierPrefix;if(kt){var c=Ja,m=Qa;c=(m&~(1<<32-ut(m)-1)).toString(32)+c,l=":"+l+"R"+c,c=Yu++,0<c&&(l+="H"+c.toString(32)),l+=":"}else c=Zs++,l=":"+l+"r"+c.toString(32)+":";return a.memoizedState=l},useCacheRefresh:function(){return ma().memoizedState=Zx.bind(null,Xt)}};pa.useMemoCache=ti,pa.useHostTransitionStatus=Gd,pa.useFormState=Bd,pa.useActionState=Bd,pa.useOptimistic=function(a){var l=ma();l.memoizedState=l.baseState=a;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=c,l=Xo.bind(null,Xt,!0,c),c.dispatch=l,[a,l]};var Ki={readContext:Pr,use:lf,useCallback:$d,useContext:Pr,useEffect:Xu,useImperativeHandle:Yd,useInsertionEffect:of,useLayoutEffect:ep,useMemo:tp,useReducer:Js,useRef:Jm,useState:function(){return Js(pi)},useDebugValue:Hd,useDeferredValue:function(a,l){var c=ur();return zd(c,yn.memoizedState,a,l)},useTransition:function(){var a=Js(pi)[0],l=ur().memoizedState;return[typeof a=="boolean"?a:Qs(a),l]},useSyncExternalStore:Br,useId:Vo};Ki.useCacheRefresh=Wd,Ki.useMemoCache=ti,Ki.useHostTransitionStatus=Gd,Ki.useFormState=Zm,Ki.useActionState=Zm,Ki.useOptimistic=function(a,l){var c=ur();return zo(c,yn,a,l)};var fs={readContext:Pr,use:lf,useCallback:$d,useContext:Pr,useEffect:Xu,useImperativeHandle:Yd,useInsertionEffect:of,useLayoutEffect:ep,useMemo:tp,useReducer:zu,useRef:Jm,useState:function(){return zu(pi)},useDebugValue:Hd,useDeferredValue:function(a,l){var c=ur();return yn===null?cf(c,a,l):zd(c,yn.memoizedState,a,l)},useTransition:function(){var a=zu(pi)[0],l=ur().memoizedState;return[typeof a=="boolean"?a:Qs(a),l]},useSyncExternalStore:Br,useId:Vo};fs.useCacheRefresh=Wd,fs.useMemoCache=ti,fs.useHostTransitionStatus=Gd,fs.useFormState=Pd,fs.useActionState=Pd,fs.useOptimistic=function(a,l){var c=ur();return yn!==null?zo(c,yn,a,l):(c.baseState=a,[a,c.queue.dispatch])};function Ko(a,l,c,m){l=a.memoizedState,c=c(m,l),c=c==null?l:W({},l,c),a.memoizedState=c,a.lanes===0&&(a.updateQueue.baseState=c)}var Ku={isMounted:function(a){return(a=a._reactInternals)?Ne(a)===a:!1},enqueueSetState:function(a,l,c){a=a._reactInternals;var m=Ma(),_=_i(m);_.payload=l,c!=null&&(_.callback=c),l=Oa(a,_,m),l!==null&&(Ir(l,a,m),St(l,a,m))},enqueueReplaceState:function(a,l,c){a=a._reactInternals;var m=Ma(),_=_i(m);_.tag=1,_.payload=l,c!=null&&(_.callback=c),l=Oa(a,_,m),l!==null&&(Ir(l,a,m),St(l,a,m))},enqueueForceUpdate:function(a,l){a=a._reactInternals;var c=Ma(),m=_i(c);m.tag=2,l!=null&&(m.callback=l),l=Oa(a,m,c),l!==null&&(Ir(l,a,c),St(l,a,c))}};function Zu(a,l,c,m,_,N,F){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(m,N,F):l.prototype&&l.prototype.isPureReactComponent?!Hi(c,m)||!Hi(_,N):!0}function qd(a,l,c,m){a=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(c,m),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(c,m),l.state!==a&&Ku.enqueueReplaceState(l,l.state,null)}function Cl(a,l){var c=l;if("ref"in l){c={};for(var m in l)m!=="ref"&&(c[m]=l[m])}if(a=a.defaultProps){c===l&&(c=W({},c));for(var _ in a)c[_]===void 0&&(c[_]=a[_])}return c}var Zo=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)};function Al(a){Zo(a)}function rp(a){console.error(a)}function Rl(a){Zo(a)}function df(a,l){try{var c=a.onUncaughtError;c(l.value,{componentStack:l.stack})}catch(m){setTimeout(function(){throw m})}}function Kd(a,l,c){try{var m=a.onCaughtError;m(c.value,{componentStack:c.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(_){setTimeout(function(){throw _})}}function hf(a,l,c){return c=_i(c),c.tag=3,c.payload={element:null},c.callback=function(){df(a,l)},c}function ap(a){return a=_i(a),a.tag=3,a}function ip(a,l,c,m){var _=c.type.getDerivedStateFromError;if(typeof _=="function"){var N=m.value;a.payload=function(){return _(N)},a.callback=function(){Kd(l,c,m)}}var F=c.stateNode;F!==null&&typeof F.componentDidCatch=="function"&&(a.callback=function(){Kd(l,c,m),typeof _!="function"&&(rl===null?rl=new Set([this]):rl.add(this));var z=m.stack;this.componentDidCatch(m.value,{componentStack:z!==null?z:""})})}function Jx(a,l,c,m,_){if(c.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(l=c.alternate,l!==null&&nc(l,c,_,!0),c=ei.current,c!==null){switch(c.tag){case 13:return Xi===null?Th():c.alternate===null&&lr===0&&(lr=3),c.flags&=-257,c.flags|=65536,c.lanes=_,m===ts?c.flags|=16384:(l=c.updateQueue,l===null?c.updateQueue=new Set([m]):l.add(m),Ch(a,m,_)),!1;case 22:return c.flags|=65536,m===ts?c.flags|=16384:(l=c.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([m])},c.updateQueue=l):(c=l.retryQueue,c===null?l.retryQueue=new Set([m]):c.add(m)),Ch(a,m,_)),!1}throw Error(r(435,c.tag))}return Ch(a,m,_),Th(),!1}if(kt)return l=ei.current,l!==null?(!(l.flags&65536)&&(l.flags|=256),l.flags|=65536,l.lanes=_,m!==Mu&&(a=Error(r(422),{cause:m}),vl(qr(a,c)))):(m!==Mu&&(l=Error(r(423),{cause:m}),vl(qr(l,c))),a=a.current.alternate,a.flags|=65536,_&=-_,a.lanes|=_,m=qr(m,c),_=hf(a.stateNode,m,_),rc(a,_),lr!==4&&(lr=2)),!1;var N=Error(r(520),{cause:m});if(N=qr(N,c),Cf===null?Cf=[N]:Cf.push(N),lr!==4&&(lr=2),l===null)return!0;m=qr(m,c),c=l;do{switch(c.tag){case 3:return c.flags|=65536,a=_&-_,c.lanes|=a,a=hf(c.stateNode,m,a),rc(c,a),!1;case 1:if(l=c.type,N=c.stateNode,(c.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&(rl===null||!rl.has(N))))return c.flags|=65536,_&=-_,c.lanes|=_,_=ap(_),ip(_,a,c,m),rc(c,_),!1}c=c.return}while(c!==null);return!1}var Zd=Error(r(461)),yr=!1;function Or(a,l,c,m){l.child=a===null?Ym(l,null,c,m):zt(l,a.child,c,m)}function Qd(a,l,c,m,_){c=c.render;var N=l.ref;if("ref"in m){var F={};for(var z in m)z!=="ref"&&(F[z]=m[z])}else F=m;return ms(l),m=Hu(a,l,c,F,N,_),z=$u(),a!==null&&!yr?(Fd(a,l,_),xi(a,l,_)):(kt&&z&&Lu(l),l.flags|=1,Or(a,l,m,_),l.child)}function Jd(a,l,c,m,_){if(a===null){var N=c.type;return typeof N=="function"&&!mh(N)&&N.defaultProps===void 0&&c.compare===null?(l.tag=15,l.type=N,Zr(a,l,N,m,_)):(a=Tf(c.type,null,m,l,l.mode,_),a.ref=l.ref,a.return=l,l.child=a)}if(N=a.child,!ec(a,_)){var F=N.memoizedProps;if(c=c.compare,c=c!==null?c:Hi,c(F,m)&&a.ref===l.ref)return xi(a,l,_)}return l.flags|=1,a=xs(N,m),a.ref=l.ref,a.return=l,l.child=a}function Zr(a,l,c,m,_){if(a!==null){var N=a.memoizedProps;if(Hi(N,m)&&a.ref===l.ref)if(yr=!1,l.pendingProps=m=N,ec(a,_))a.flags&131072&&(yr=!0);else return l.lanes=a.lanes,xi(a,l,_)}return Qo(a,l,c,m,_)}function gi(a,l,c){var m=l.pendingProps,_=m.children,N=(l.stateNode._pendingVisibility&2)!==0,F=a!==null?a.memoizedState:null;if(mf(a,l),m.mode==="hidden"||N){if(l.flags&128){if(m=F!==null?F.baseLanes|c:c,a!==null){for(_=l.child=a.child,N=0;_!==null;)N=N|_.lanes|_.childLanes,_=_.sibling;l.childLanes=N&~m}else l.childLanes=0,l.child=null;return lp(a,l,m,c)}if(c&536870912)l.memoizedState={baseLanes:0,cachePool:null},a!==null&&af(l,F!==null?F.cachePool:null),F!==null?ns(l,F):Cd(),qi(l);else return l.lanes=l.childLanes=536870912,lp(a,l,F!==null?F.baseLanes|c:c,c)}else F!==null?(af(l,F.cachePool),ns(l,F),as(),l.memoizedState=null):(a!==null&&af(l,null),Cd(),as());return Or(a,l,_,c),l.child}function lp(a,l,c,m){var _=Od();return _=_===null?null:{parent:vr._currentValue,pool:_},l.memoizedState={baseLanes:c,cachePool:_},a!==null&&af(l,null),Cd(),qi(l),a!==null&&nc(a,l,m,!0),null}function mf(a,l){var c=l.ref;if(c===null)a!==null&&a.ref!==null&&(l.flags|=2097664);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(a===null||a.ref!==c)&&(l.flags|=2097664)}}function Qo(a,l,c,m,_){return ms(l),c=Hu(a,l,c,m,void 0,_),m=$u(),a!==null&&!yr?(Fd(a,l,_),xi(a,l,_)):(kt&&m&&Lu(l),l.flags|=1,Or(a,l,c,_),l.child)}function eo(a,l,c,m,_,N){return ms(l),l.updateQueue=null,c=Ho(l,m,c,_),kd(a),m=$u(),a!==null&&!yr?(Fd(a,l,N),xi(a,l,N)):(kt&&m&&Lu(l),l.flags|=1,Or(a,l,c,N),l.child)}function eh(a,l,c,m,_){if(ms(l),l.stateNode===null){var N=$s,F=c.contextType;typeof F=="object"&&F!==null&&(N=Pr(F)),N=new c(m,N),l.memoizedState=N.state!==null&&N.state!==void 0?N.state:null,N.updater=Ku,l.stateNode=N,N._reactInternals=l,N=l.stateNode,N.props=m,N.state=l.memoizedState,N.refs={},xf(l),F=c.contextType,N.context=typeof F=="object"&&F!==null?Pr(F):$s,N.state=l.memoizedState,F=c.getDerivedStateFromProps,typeof F=="function"&&(Ko(l,c,F,m),N.state=l.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof N.getSnapshotBeforeUpdate=="function"||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(F=N.state,typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount(),F!==N.state&&Ku.enqueueReplaceState(N,N.state,null),_f(l,m,N,_),wi(),N.state=l.memoizedState),typeof N.componentDidMount=="function"&&(l.flags|=4194308),m=!0}else if(a===null){N=l.stateNode;var z=l.memoizedProps,re=Cl(c,z);N.props=re;var ue=N.context,Me=c.contextType;F=$s,typeof Me=="object"&&Me!==null&&(F=Pr(Me));var Ve=c.getDerivedStateFromProps;Me=typeof Ve=="function"||typeof N.getSnapshotBeforeUpdate=="function",z=l.pendingProps!==z,Me||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(z||ue!==F)&&qd(l,N,m,F),Ji=!1;var Ae=l.memoizedState;N.state=Ae,_f(l,m,N,_),wi(),ue=l.memoizedState,z||Ae!==ue||Ji?(typeof Ve=="function"&&(Ko(l,c,Ve,m),ue=l.memoizedState),(re=Ji||Zu(l,c,re,m,Ae,ue,F))?(Me||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount()),typeof N.componentDidMount=="function"&&(l.flags|=4194308)):(typeof N.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=m,l.memoizedState=ue),N.props=m,N.state=ue,N.context=F,m=re):(typeof N.componentDidMount=="function"&&(l.flags|=4194308),m=!1)}else{N=l.stateNode,vf(a,l),F=l.memoizedProps,Me=Cl(c,F),N.props=Me,Ve=l.pendingProps,Ae=N.context,ue=c.contextType,re=$s,typeof ue=="object"&&ue!==null&&(re=Pr(ue)),z=c.getDerivedStateFromProps,(ue=typeof z=="function"||typeof N.getSnapshotBeforeUpdate=="function")||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(F!==Ve||Ae!==re)&&qd(l,N,m,re),Ji=!1,Ae=l.memoizedState,N.state=Ae,_f(l,m,N,_),wi();var Le=l.memoizedState;F!==Ve||Ae!==Le||Ji||a!==null&&a.dependencies!==null&&r0(a.dependencies)?(typeof z=="function"&&(Ko(l,c,z,m),Le=l.memoizedState),(Me=Ji||Zu(l,c,Me,m,Ae,Le,re)||a!==null&&a.dependencies!==null&&r0(a.dependencies))?(ue||typeof N.UNSAFE_componentWillUpdate!="function"&&typeof N.componentWillUpdate!="function"||(typeof N.componentWillUpdate=="function"&&N.componentWillUpdate(m,Le,re),typeof N.UNSAFE_componentWillUpdate=="function"&&N.UNSAFE_componentWillUpdate(m,Le,re)),typeof N.componentDidUpdate=="function"&&(l.flags|=4),typeof N.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof N.componentDidUpdate!="function"||F===a.memoizedProps&&Ae===a.memoizedState||(l.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||F===a.memoizedProps&&Ae===a.memoizedState||(l.flags|=1024),l.memoizedProps=m,l.memoizedState=Le),N.props=m,N.state=Le,N.context=re,m=Me):(typeof N.componentDidUpdate!="function"||F===a.memoizedProps&&Ae===a.memoizedState||(l.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||F===a.memoizedProps&&Ae===a.memoizedState||(l.flags|=1024),m=!1)}return N=m,mf(a,l),m=(l.flags&128)!==0,N||m?(N=l.stateNode,c=m&&typeof c.getDerivedStateFromError!="function"?null:N.render(),l.flags|=1,a!==null&&m?(l.child=zt(l,a.child,null,_),l.child=zt(l,null,c,_)):Or(a,l,c,_),l.memoizedState=N.state,a=l.child):a=xi(a,l,_),a}function th(a,l,c,m){return Vi(),l.flags|=256,Or(a,l,c,m),l.child}var nh={dehydrated:null,treeContext:null,retryLane:0};function Qu(a){return{baseLanes:a,cachePool:Dd()}}function us(a,l,c){return a=a!==null?a.childLanes&~c:0,l&&(a|=ni),a}function Jo(a,l,c){var m=l.pendingProps,_=!1,N=(l.flags&128)!==0,F;if((F=N)||(F=a!==null&&a.memoizedState===null?!1:(xr.current&2)!==0),F&&(_=!0,l.flags&=-129),F=(l.flags&32)!==0,l.flags&=-33,a===null){if(kt){if(_?rs(l):as(),kt){var z=an,re;if(re=z){e:{for(re=z,z=Wi;re.nodeType!==8;){if(!z){z=null;break e}if(re=bi(re.nextSibling),re===null){z=null;break e}}z=re}z!==null?(l.memoizedState={dehydrated:z,treeContext:Ws!==null?{id:Qa,overflow:Ja}:null,retryLane:536870912},re=Fa(18,null,null,0),re.stateNode=z,re.return=l,l.child=re,Kr=l,an=null,re=!0):re=!1}re||Vs(l)}if(z=l.memoizedState,z!==null&&(z=z.dehydrated,z!==null))return z.data==="$!"?l.lanes=16:l.lanes=536870912,null;Sl(l)}return z=m.children,m=m.fallback,_?(as(),_=l.mode,z=Ju({mode:"hidden",children:z},_),m=no(m,_,c,null),z.return=l,m.return=l,z.sibling=m,l.child=z,_=l.child,_.memoizedState=Qu(c),_.childLanes=us(a,F,c),l.memoizedState=nh,m):(rs(l),rh(l,z))}if(re=a.memoizedState,re!==null&&(z=re.dehydrated,z!==null)){if(N)l.flags&256?(rs(l),l.flags&=-257,l=e0(a,l,c)):l.memoizedState!==null?(as(),l.child=a.child,l.flags|=128,l=null):(as(),_=m.fallback,z=l.mode,m=Ju({mode:"visible",children:m.children},z),_=no(_,z,c,null),_.flags|=2,m.return=l,_.return=l,m.sibling=_,l.child=m,zt(l,a.child,null,c),m=l.child,m.memoizedState=Qu(c),m.childLanes=us(a,F,c),l.memoizedState=nh,l=_);else if(rs(l),z.data==="$!"){if(F=z.nextSibling&&z.nextSibling.dataset,F)var ue=F.dgst;F=ue,m=Error(r(419)),m.stack="",m.digest=F,vl({value:m,source:null,stack:null}),l=e0(a,l,c)}else if(yr||nc(a,l,c,!1),F=(c&a.childLanes)!==0,yr||F){if(F=jn,F!==null){if(m=c&-c,m&42)m=1;else switch(m){case 2:m=1;break;case 8:m=4;break;case 32:m=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:m=64;break;case 268435456:m=134217728;break;default:m=0}if(m=m&(F.suspendedLanes|c)?0:m,m!==0&&m!==re.retryLane)throw re.retryLane=m,di(a,m),Ir(F,a,m),Zd}z.data==="$?"||Th(),l=e0(a,l,c)}else z.data==="$?"?(l.flags|=128,l.child=a.child,l=fv.bind(null,a),z._reactRetry=l,l=null):(a=re.treeContext,an=bi(z.nextSibling),Kr=l,kt=!0,hi=null,Wi=!1,a!==null&&(Ka[Za++]=Qa,Ka[Za++]=Ja,Ka[Za++]=Ws,Qa=a.id,Ja=a.overflow,Ws=l),l=rh(l,m.children),l.flags|=4096);return l}return _?(as(),_=m.fallback,z=l.mode,re=a.child,ue=re.sibling,m=xs(re,{mode:"hidden",children:m.children}),m.subtreeFlags=re.subtreeFlags&31457280,ue!==null?_=xs(ue,_):(_=no(_,z,c,null),_.flags|=2),_.return=l,m.return=l,m.sibling=_,l.child=m,m=_,_=l.child,z=a.child.memoizedState,z===null?z=Qu(c):(re=z.cachePool,re!==null?(ue=vr._currentValue,re=re.parent!==ue?{parent:ue,pool:ue}:re):re=Dd(),z={baseLanes:z.baseLanes|c,cachePool:re}),_.memoizedState=z,_.childLanes=us(a,F,c),l.memoizedState=nh,m):(rs(l),c=a.child,a=c.sibling,c=xs(c,{mode:"visible",children:m.children}),c.return=l,c.sibling=null,a!==null&&(F=l.deletions,F===null?(l.deletions=[a],l.flags|=16):F.push(a)),l.child=c,l.memoizedState=null,c)}function rh(a,l){return l=Ju({mode:"visible",children:l},a.mode),l.return=a,a.child=l}function Ju(a,l){return Ep(a,l,0,null)}function e0(a,l,c){return zt(l,a.child,null,c),a=rh(l,l.pendingProps.children),a.flags|=2,l.memoizedState=null,a}function pf(a,l,c){a.lanes|=l;var m=a.alternate;m!==null&&(m.lanes|=l),yi(a.return,l,c)}function t0(a,l,c,m,_){var N=a.memoizedState;N===null?a.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:m,tail:c,tailMode:_}:(N.isBackwards=l,N.rendering=null,N.renderingStartTime=0,N.last=m,N.tail=c,N.tailMode=_)}function gf(a,l,c){var m=l.pendingProps,_=m.revealOrder,N=m.tail;if(Or(a,l,m.children,c),m=xr.current,m&2)m=m&1|2,l.flags|=128;else{if(a!==null&&a.flags&128)e:for(a=l.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&pf(a,c,l);else if(a.tag===19)pf(a,c,l);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}m&=1}switch(oe(xr,m),_){case"forwards":for(c=l.child,_=null;c!==null;)a=c.alternate,a!==null&&Iu(a)===null&&(_=c),c=c.sibling;c=_,c===null?(_=l.child,l.child=null):(_=c.sibling,c.sibling=null),t0(l,!1,_,c,N);break;case"backwards":for(c=null,_=l.child,l.child=null;_!==null;){if(a=_.alternate,a!==null&&Iu(a)===null){l.child=_;break}a=_.sibling,_.sibling=c,c=_,_=a}t0(l,!0,c,null,N);break;case"together":t0(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function xi(a,l,c){if(a!==null&&(l.dependencies=a.dependencies),vs|=l.lanes,!(c&l.childLanes))if(a!==null){if(nc(a,l,c,!1),(c&l.childLanes)===0)return null}else return null;if(a!==null&&l.child!==a.child)throw Error(r(153));if(l.child!==null){for(a=l.child,c=xs(a,a.pendingProps),l.child=c,c.return=l;a.sibling!==null;)a=a.sibling,c=c.sibling=xs(a,a.pendingProps),c.return=l;c.sibling=null}return l.child}function ec(a,l){return a.lanes&l?!0:(a=a.dependencies,!!(a!==null&&r0(a)))}function ev(a,l,c){switch(l.tag){case 3:ft(l,l.stateNode.containerInfo),hs(l,vr,a.memoizedState.cache),Vi();break;case 27:case 5:We(l);break;case 4:ft(l,l.stateNode.containerInfo);break;case 10:hs(l,l.type,l.memoizedProps.value);break;case 13:var m=l.memoizedState;if(m!==null)return m.dehydrated!==null?(rs(l),l.flags|=128,null):c&l.child.childLanes?Jo(a,l,c):(rs(l),a=xi(a,l,c),a!==null?a.sibling:null);rs(l);break;case 19:var _=(a.flags&128)!==0;if(m=(c&l.childLanes)!==0,m||(nc(a,l,c,!1),m=(c&l.childLanes)!==0),_){if(m)return gf(a,l,c);l.flags|=128}if(_=l.memoizedState,_!==null&&(_.rendering=null,_.tail=null,_.lastEffect=null),oe(xr,xr.current),m)break;return null;case 22:case 23:return l.lanes=0,gi(a,l,c);case 24:hs(l,vr,a.memoizedState.cache)}return xi(a,l,c)}function ah(a,l,c){if(a!==null)if(a.memoizedProps!==l.pendingProps)yr=!0;else{if(!ec(a,c)&&!(l.flags&128))return yr=!1,ev(a,l,c);yr=!!(a.flags&131072)}else yr=!1,kt&&l.flags&1048576&&Bm(l,Gs,l.index);switch(l.lanes=0,l.tag){case 16:e:{a=l.pendingProps;var m=l.elementType,_=m._init;if(m=_(m._payload),l.type=m,typeof m=="function")mh(m)?(a=Cl(m,a),l.tag=1,l=eh(null,l,m,a,c)):(l.tag=0,l=Qo(null,l,m,a,c));else{if(m!=null){if(_=m.$$typeof,_===b){l.tag=11,l=Qd(null,l,m,a,c);break e}else if(_===C){l.tag=14,l=Jd(null,l,m,a,c);break e}}throw l=I(m)||m,Error(r(306,l,""))}}return l;case 0:return Qo(a,l,l.type,l.pendingProps,c);case 1:return m=l.type,_=Cl(m,l.pendingProps),eh(a,l,m,_,c);case 3:e:{if(ft(l,l.stateNode.containerInfo),a===null)throw Error(r(387));var N=l.pendingProps;_=l.memoizedState,m=_.element,vf(a,l),_f(l,N,null,c);var F=l.memoizedState;if(N=F.cache,hs(l,vr,N),N!==_.cache&&n0(l,[vr],c,!0),wi(),N=F.element,_.isDehydrated)if(_={element:N,isDehydrated:!1,cache:F.cache},l.updateQueue.baseState=_,l.memoizedState=_,l.flags&256){l=th(a,l,N,c);break e}else if(N!==m){m=qr(Error(r(424)),l),vl(m),l=th(a,l,N,c);break e}else for(an=bi(l.stateNode.containerInfo.firstChild),Kr=l,kt=!0,hi=null,Wi=!0,c=Ym(l,null,N,c),l.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(Vi(),N===m){l=xi(a,l,c);break e}Or(a,l,N,c)}l=l.child}return l;case 26:return mf(a,l),a===null?(c=Vh(l.type,null,l.pendingProps,null))?l.memoizedState=c:kt||(c=l.type,a=l.pendingProps,m=x0(rt.current).createElement(c),m[Y]=l,m[G]=a,jr(m,c,a),Je(m),l.stateNode=m):l.memoizedState=Vh(l.type,a.memoizedProps,l.pendingProps,a.memoizedState),null;case 27:return We(l),a===null&&kt&&(m=l.stateNode=Wh(l.type,l.pendingProps,rt.current),Kr=l,Wi=!0,an=bi(m.firstChild)),m=l.pendingProps.children,a!==null||kt?Or(a,l,m,c):l.child=zt(l,null,m,c),mf(a,l),l.child;case 5:return a===null&&kt&&((_=m=an)&&(m=xv(m,l.type,l.pendingProps,Wi),m!==null?(l.stateNode=m,Kr=l,an=bi(m.firstChild),Wi=!1,_=!0):_=!1),_||Vs(l)),We(l),_=l.type,N=l.pendingProps,F=a!==null?a.memoizedProps:null,m=N.children,Lf(_,N)?m=null:F!==null&&Lf(_,F)&&(l.flags|=32),l.memoizedState!==null&&(_=Hu(a,l,os,null,null,c),Pf._currentValue=_),mf(a,l),Or(a,l,m,c),l.child;case 6:return a===null&&kt&&((a=c=an)&&(c=vv(c,l.pendingProps,Wi),c!==null?(l.stateNode=c,Kr=l,an=null,a=!0):a=!1),a||Vs(l)),null;case 13:return Jo(a,l,c);case 4:return ft(l,l.stateNode.containerInfo),m=l.pendingProps,a===null?l.child=zt(l,null,m,c):Or(a,l,m,c),l.child;case 11:return Qd(a,l,l.type,l.pendingProps,c);case 7:return Or(a,l,l.pendingProps,c),l.child;case 8:return Or(a,l,l.pendingProps.children,c),l.child;case 12:return Or(a,l,l.pendingProps.children,c),l.child;case 10:return m=l.pendingProps,hs(l,l.type,m.value),Or(a,l,m.children,c),l.child;case 9:return _=l.type._context,m=l.pendingProps.children,ms(l),_=Pr(_),m=m(_),l.flags|=1,Or(a,l,m,c),l.child;case 14:return Jd(a,l,l.type,l.pendingProps,c);case 15:return Zr(a,l,l.type,l.pendingProps,c);case 19:return gf(a,l,c);case 22:return gi(a,l,c);case 24:return ms(l),m=Pr(vr),a===null?(_=Od(),_===null&&(_=jn,N=Rd(),_.pooledCache=N,N.refCount++,N!==null&&(_.pooledCacheLanes|=c),_=N),l.memoizedState={parent:m,cache:_},xf(l),hs(l,vr,_)):(a.lanes&c&&(vf(a,l),_f(l,null,null,c),wi()),_=a.memoizedState,N=l.memoizedState,_.parent!==m?(_={parent:m,cache:m},l.memoizedState=_,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=_),hs(l,vr,m)):(m=N.cache,hs(l,vr,m),m!==_.cache&&n0(l,[vr],c,!0))),Or(a,l,l.pendingProps.children,c),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}var tc=Ce(null),ds=null,vi=null;function hs(a,l,c){oe(tc,l._currentValue),l._currentValue=c}function Zi(a){a._currentValue=tc.current,me(tc)}function yi(a,l,c){for(;a!==null;){var m=a.alternate;if((a.childLanes&l)!==l?(a.childLanes|=l,m!==null&&(m.childLanes|=l)):m!==null&&(m.childLanes&l)!==l&&(m.childLanes|=l),a===c)break;a=a.return}}function n0(a,l,c,m){var _=a.child;for(_!==null&&(_.return=a);_!==null;){var N=_.dependencies;if(N!==null){var F=_.child;N=N.firstContext;e:for(;N!==null;){var z=N;N=_;for(var re=0;re<l.length;re++)if(z.context===l[re]){N.lanes|=c,z=N.alternate,z!==null&&(z.lanes|=c),yi(N.return,c,a),m||(F=null);break e}N=z.next}}else if(_.tag===18){if(F=_.return,F===null)throw Error(r(341));F.lanes|=c,N=F.alternate,N!==null&&(N.lanes|=c),yi(F,c,a),F=null}else F=_.child;if(F!==null)F.return=_;else for(F=_;F!==null;){if(F===a){F=null;break}if(_=F.sibling,_!==null){_.return=F.return,F=_;break}F=F.return}_=F}}function nc(a,l,c,m){a=null;for(var _=l,N=!1;_!==null;){if(!N){if(_.flags&524288)N=!0;else if(_.flags&262144)break}if(_.tag===10){var F=_.alternate;if(F===null)throw Error(r(387));if(F=F.memoizedProps,F!==null){var z=_.type;Ta(_.pendingProps.value,F.value)||(a!==null?a.push(z):a=[z])}}else if(_===Qe.current){if(F=_.alternate,F===null)throw Error(r(387));F.memoizedState.memoizedState!==_.memoizedState.memoizedState&&(a!==null?a.push(Pf):a=[Pf])}_=_.return}a!==null&&n0(l,a,c,m),l.flags|=262144}function r0(a){for(a=a.firstContext;a!==null;){if(!Ta(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function ms(a){ds=a,vi=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function Pr(a){return Qi(ds,a)}function a0(a,l){return ds===null&&ms(a),Qi(a,l)}function Qi(a,l){var c=l._currentValue;if(l={context:l,memoizedValue:c,next:null},vi===null){if(a===null)throw Error(r(308));vi=l,a.dependencies={lanes:0,firstContext:l},a.flags|=524288}else vi=vi.next=l;return c}var Ji=!1;function xf(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vf(a,l){a=a.updateQueue,l.updateQueue===a&&(l.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function _i(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Oa(a,l,c){var m=a.updateQueue;if(m===null)return null;if(m=m.shared,Xn&2){var _=m.pending;return _===null?l.next=l:(l.next=_.next,_.next=l),m.pending=l,l=Hs(a),bd(a,null,c),l}return Ys(a,m,l,c),Hs(a)}function St(a,l,c){if(l=l.updateQueue,l!==null&&(l=l.shared,(c&4194176)!==0)){var m=l.lanes;m&=a.pendingLanes,c|=m,l.lanes=c,Nt(a,c)}}function rc(a,l){var c=a.updateQueue,m=a.alternate;if(m!==null&&(m=m.updateQueue,c===m)){var _=null,N=null;if(c=c.firstBaseUpdate,c!==null){do{var F={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};N===null?_=N=F:N=N.next=F,c=c.next}while(c!==null);N===null?_=N=l:N=N.next=l}else _=N=l;c={baseState:m.baseState,firstBaseUpdate:_,lastBaseUpdate:N,shared:m.shared,callbacks:m.callbacks},a.updateQueue=c;return}a=c.lastBaseUpdate,a===null?c.firstBaseUpdate=l:a.next=l,c.lastBaseUpdate=l}var yf=!1;function wi(){if(yf){var a=Io;if(a!==null)throw a}}function _f(a,l,c,m){yf=!1;var _=a.updateQueue;Ji=!1;var N=_.firstBaseUpdate,F=_.lastBaseUpdate,z=_.shared.pending;if(z!==null){_.shared.pending=null;var re=z,ue=re.next;re.next=null,F===null?N=ue:F.next=ue,F=re;var Me=a.alternate;Me!==null&&(Me=Me.updateQueue,z=Me.lastBaseUpdate,z!==F&&(z===null?Me.firstBaseUpdate=ue:z.next=ue,Me.lastBaseUpdate=re))}if(N!==null){var Ve=_.baseState;F=0,Me=ue=re=null,z=N;do{var Ae=z.lane&-536870913,Le=Ae!==z.lane;if(Le?(fn&Ae)===Ae:(m&Ae)===Ae){Ae!==0&&Ae===Uo&&(yf=!0),Me!==null&&(Me=Me.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var _t=a,Lt=z;Ae=l;var Kn=c;switch(Lt.tag){case 1:if(_t=Lt.payload,typeof _t=="function"){Ve=_t.call(Kn,Ve,Ae);break e}Ve=_t;break e;case 3:_t.flags=_t.flags&-65537|128;case 0:if(_t=Lt.payload,Ae=typeof _t=="function"?_t.call(Kn,Ve,Ae):_t,Ae==null)break e;Ve=W({},Ve,Ae);break e;case 2:Ji=!0}}Ae=z.callback,Ae!==null&&(a.flags|=64,Le&&(a.flags|=8192),Le=_.callbacks,Le===null?_.callbacks=[Ae]:Le.push(Ae))}else Le={lane:Ae,tag:z.tag,payload:z.payload,callback:z.callback,next:null},Me===null?(ue=Me=Le,re=Ve):Me=Me.next=Le,F|=Ae;if(z=z.next,z===null){if(z=_.shared.pending,z===null)break;Le=z,z=Le.next,Le.next=null,_.lastBaseUpdate=Le,_.shared.pending=null}}while(!0);Me===null&&(re=Ve),_.baseState=re,_.firstBaseUpdate=ue,_.lastBaseUpdate=Me,N===null&&(_.shared.lanes=0),vs|=F,a.lanes=F,a.memoizedState=Ve}}function i0(a,l){if(typeof a!="function")throw Error(r(191,a));a.call(l)}function ih(a,l){var c=a.callbacks;if(c!==null)for(a.callbacks=null,a=0;a<c.length;a++)i0(c[a],l)}function hr(a,l){try{var c=l.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var _=m.next;c=_;do{if((c.tag&a)===a){m=void 0;var N=c.create,F=c.inst;m=N(),F.destroy=m}c=c.next}while(c!==_)}}catch(z){kn(l,l.return,z)}}function ps(a,l,c){try{var m=l.updateQueue,_=m!==null?m.lastEffect:null;if(_!==null){var N=_.next;m=N;do{if((m.tag&a)===a){var F=m.inst,z=F.destroy;if(z!==void 0){F.destroy=void 0,_=l;var re=c;try{z()}catch(ue){kn(_,re,ue)}}}m=m.next}while(m!==N)}}catch(ue){kn(l,l.return,ue)}}function sp(a){var l=a.updateQueue;if(l!==null){var c=a.stateNode;try{ih(l,c)}catch(m){kn(a,a.return,m)}}}function lh(a,l,c){c.props=Cl(a.type,a.memoizedProps),c.state=a.memoizedState;try{c.componentWillUnmount()}catch(m){kn(a,l,m)}}function to(a,l){try{var c=a.ref;if(c!==null){var m=a.stateNode;switch(a.tag){case 26:case 27:case 5:var _=m;break;default:_=m}typeof c=="function"?a.refCleanup=c(_):c.current=_}}catch(N){kn(a,l,N)}}function ga(a,l){var c=a.ref,m=a.refCleanup;if(c!==null)if(typeof m=="function")try{m()}catch(_){kn(a,l,_)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(_){kn(a,l,_)}else c.current=null}function op(a){var l=a.type,c=a.memoizedProps,m=a.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":c.autoFocus&&m.focus();break e;case"img":c.src?m.src=c.src:c.srcSet&&(m.srcset=c.srcSet)}}catch(_){kn(a,a.return,_)}}function cp(a,l,c){try{var m=a.stateNode;ws(m,a.type,c,l),m[G]=l}catch(_){kn(a,a.return,_)}}function fp(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27||a.tag===4}function Ei(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||fp(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==27&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Dr(a,l,c){var m=a.tag;if(m===5||m===6)a=a.stateNode,l?c.nodeType===8?c.parentNode.insertBefore(a,l):c.insertBefore(a,l):(c.nodeType===8?(l=c.parentNode,l.insertBefore(a,c)):(l=c,l.appendChild(a)),c=c._reactRootContainer,c!=null||l.onclick!==null||(l.onclick=g0));else if(m!==4&&m!==27&&(a=a.child,a!==null))for(Dr(a,l,c),a=a.sibling;a!==null;)Dr(a,l,c),a=a.sibling}function ac(a,l,c){var m=a.tag;if(m===5||m===6)a=a.stateNode,l?c.insertBefore(a,l):c.appendChild(a);else if(m!==4&&m!==27&&(a=a.child,a!==null))for(ac(a,l,c),a=a.sibling;a!==null;)ac(a,l,c),a=a.sibling}var Ol=!1,Gn=!1,sh=!1,up=typeof WeakSet=="function"?WeakSet:Set,ir=null,oh=!1;function dp(a,l){if(a=a.containerInfo,Ih=Uf,a=Fm(a),Ed(a)){if("selectionStart"in a)var c={start:a.selectionStart,end:a.selectionEnd};else e:{c=(c=a.ownerDocument)&&c.defaultView||window;var m=c.getSelection&&c.getSelection();if(m&&m.rangeCount!==0){c=m.anchorNode;var _=m.anchorOffset,N=m.focusNode;m=m.focusOffset;try{c.nodeType,N.nodeType}catch{c=null;break e}var F=0,z=-1,re=-1,ue=0,Me=0,Ve=a,Ae=null;t:for(;;){for(var Le;Ve!==c||_!==0&&Ve.nodeType!==3||(z=F+_),Ve!==N||m!==0&&Ve.nodeType!==3||(re=F+m),Ve.nodeType===3&&(F+=Ve.nodeValue.length),(Le=Ve.firstChild)!==null;)Ae=Ve,Ve=Le;for(;;){if(Ve===a)break t;if(Ae===c&&++ue===_&&(z=F),Ae===N&&++Me===m&&(re=F),(Le=Ve.nextSibling)!==null)break;Ve=Ae,Ae=Ve.parentNode}Ve=Le}c=z===-1||re===-1?null:{start:z,end:re}}else c=null}c=c||{start:0,end:0}}else c=null;for(Yh={focusedElem:a,selectionRange:c},Uf=!1,ir=l;ir!==null;)if(l=ir,a=l.child,(l.subtreeFlags&1028)!==0&&a!==null)a.return=l,ir=a;else for(;ir!==null;){switch(l=ir,N=l.alternate,a=l.flags,l.tag){case 0:break;case 11:case 15:break;case 1:if(a&1024&&N!==null){a=void 0,c=l,_=N.memoizedProps,N=N.memoizedState,m=c.stateNode;try{var _t=Cl(c.type,_,c.elementType===c.type);a=m.getSnapshotBeforeUpdate(_t,N),m.__reactInternalSnapshotBeforeUpdate=a}catch(Lt){kn(c,c.return,Lt)}}break;case 3:if(a&1024){if(a=l.stateNode.containerInfo,c=a.nodeType,c===9)Gh(a);else if(c===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Gh(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(a&1024)throw Error(r(163))}if(a=l.sibling,a!==null){a.return=l.return,ir=a;break}ir=l.return}return _t=oh,oh=!1,_t}function hp(a,l,c){var m=c.flags;switch(c.tag){case 0:case 11:case 15:tl(a,c),m&4&&hr(5,c);break;case 1:if(tl(a,c),m&4)if(a=c.stateNode,l===null)try{a.componentDidMount()}catch(z){kn(c,c.return,z)}else{var _=Cl(c.type,l.memoizedProps);l=l.memoizedState;try{a.componentDidUpdate(_,l,a.__reactInternalSnapshotBeforeUpdate)}catch(z){kn(c,c.return,z)}}m&64&&sp(c),m&512&&to(c,c.return);break;case 3:if(tl(a,c),m&64&&(m=c.updateQueue,m!==null)){if(a=null,c.child!==null)switch(c.child.tag){case 27:case 5:a=c.child.stateNode;break;case 1:a=c.child.stateNode}try{ih(m,a)}catch(z){kn(c,c.return,z)}}break;case 26:tl(a,c),m&512&&to(c,c.return);break;case 27:case 5:tl(a,c),l===null&&m&4&&op(c),m&512&&to(c,c.return);break;case 12:tl(a,c);break;case 13:tl(a,c),m&4&&pp(a,c);break;case 22:if(_=c.memoizedState!==null||Ol,!_){l=l!==null&&l.memoizedState!==null||Gn;var N=Ol,F=Gn;Ol=_,(Gn=l)&&!F?xa(a,c,(c.subtreeFlags&8772)!==0):tl(a,c),Ol=N,Gn=F}m&512&&(c.memoizedProps.mode==="manual"?to(c,c.return):ga(c,c.return));break;default:tl(a,c)}}function mp(a){var l=a.alternate;l!==null&&(a.alternate=null,mp(l)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(l=a.stateNode,l!==null&&Se(l)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var mr=null,Da=!1;function el(a,l,c){for(c=c.child;c!==null;)ch(a,l,c),c=c.sibling}function ch(a,l,c){if(En&&typeof En.onCommitFiberUnmount=="function")try{En.onCommitFiberUnmount(er,c)}catch{}switch(c.tag){case 26:Gn||ga(c,l),el(a,l,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Gn||ga(c,l);var m=mr,_=Da;for(mr=c.stateNode,el(a,l,c),c=c.stateNode,l=c.attributes;l.length;)c.removeAttributeNode(l[0]);Se(c),mr=m,Da=_;break;case 5:Gn||ga(c,l);case 6:_=mr;var N=Da;if(mr=null,el(a,l,c),mr=_,Da=N,mr!==null)if(Da)try{a=mr,m=c.stateNode,a.nodeType===8?a.parentNode.removeChild(m):a.removeChild(m)}catch(F){kn(c,l,F)}else try{mr.removeChild(c.stateNode)}catch(F){kn(c,l,F)}break;case 18:mr!==null&&(Da?(l=mr,c=c.stateNode,l.nodeType===8?zh(l.parentNode,c):l.nodeType===1&&zh(l,c),zf(l)):zh(mr,c.stateNode));break;case 4:m=mr,_=Da,mr=c.stateNode.containerInfo,Da=!0,el(a,l,c),mr=m,Da=_;break;case 0:case 11:case 14:case 15:Gn||ps(2,c,l),Gn||ps(4,c,l),el(a,l,c);break;case 1:Gn||(ga(c,l),m=c.stateNode,typeof m.componentWillUnmount=="function"&&lh(c,l,m)),el(a,l,c);break;case 21:el(a,l,c);break;case 22:Gn||ga(c,l),Gn=(m=Gn)||c.memoizedState!==null,el(a,l,c),Gn=m;break;default:el(a,l,c)}}function pp(a,l){if(l.memoizedState===null&&(a=l.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{zf(a)}catch(c){kn(l,l.return,c)}}function fh(a){switch(a.tag){case 13:case 19:var l=a.stateNode;return l===null&&(l=a.stateNode=new up),l;case 22:return a=a.stateNode,l=a._retryCache,l===null&&(l=a._retryCache=new up),l;default:throw Error(r(435,a.tag))}}function l0(a,l){var c=fh(a);l.forEach(function(m){var _=uv.bind(null,a,m);c.has(m)||(c.add(m),m.then(_,_))})}function Ur(a,l){var c=l.deletions;if(c!==null)for(var m=0;m<c.length;m++){var _=c[m],N=a,F=l,z=F;e:for(;z!==null;){switch(z.tag){case 27:case 5:mr=z.stateNode,Da=!1;break e;case 3:mr=z.stateNode.containerInfo,Da=!0;break e;case 4:mr=z.stateNode.containerInfo,Da=!0;break e}z=z.return}if(mr===null)throw Error(r(160));ch(N,F,_),mr=null,Da=!1,N=_.alternate,N!==null&&(N.return=null),_.return=null}if(l.subtreeFlags&13878)for(l=l.child;l!==null;)uh(l,a),l=l.sibling}var ja=null;function uh(a,l){var c=a.alternate,m=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Ur(l,a),ka(a),m&4&&(ps(3,a,a.return),hr(3,a),ps(5,a,a.return));break;case 1:Ur(l,a),ka(a),m&512&&(Gn||c===null||ga(c,c.return)),m&64&&Ol&&(a=a.updateQueue,a!==null&&(m=a.callbacks,m!==null&&(c=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=c===null?m:c.concat(m))));break;case 26:var _=ja;if(Ur(l,a),ka(a),m&512&&(Gn||c===null||ga(c,c.return)),m&4){var N=c!==null?c.memoizedState:null;if(m=a.memoizedState,c===null)if(m===null)if(a.stateNode===null){e:{m=a.type,c=a.memoizedProps,_=_.ownerDocument||_;t:switch(m){case"title":N=_.getElementsByTagName("title")[0],(!N||N[Ee]||N[Y]||N.namespaceURI==="http://www.w3.org/2000/svg"||N.hasAttribute("itemprop"))&&(N=_.createElement(m),_.head.insertBefore(N,_.querySelector("head > title"))),jr(N,m,c),N[Y]=a,Je(N),m=N;break e;case"link":var F=Zp("link","href",_).get(m+(c.href||""));if(F){for(var z=0;z<F.length;z++)if(N=F[z],N.getAttribute("href")===(c.href==null?null:c.href)&&N.getAttribute("rel")===(c.rel==null?null:c.rel)&&N.getAttribute("title")===(c.title==null?null:c.title)&&N.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){F.splice(z,1);break t}}N=_.createElement(m),jr(N,m,c),_.head.appendChild(N);break;case"meta":if(F=Zp("meta","content",_).get(m+(c.content||""))){for(z=0;z<F.length;z++)if(N=F[z],N.getAttribute("content")===(c.content==null?null:""+c.content)&&N.getAttribute("name")===(c.name==null?null:c.name)&&N.getAttribute("property")===(c.property==null?null:c.property)&&N.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&N.getAttribute("charset")===(c.charSet==null?null:c.charSet)){F.splice(z,1);break t}}N=_.createElement(m),jr(N,m,c),_.head.appendChild(N);break;default:throw Error(r(468,m))}N[Y]=a,Je(N),m=N}a.stateNode=m}else Qp(_,a.type,a.stateNode);else a.stateNode=Mf(_,m,a.memoizedProps);else N!==m?(N===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):N.count--,m===null?Qp(_,a.type,a.stateNode):Mf(_,m,a.memoizedProps)):m===null&&a.stateNode!==null&&cp(a,a.memoizedProps,c.memoizedProps)}break;case 27:if(m&4&&a.alternate===null){_=a.stateNode,N=a.memoizedProps;try{for(var re=_.firstChild;re;){var ue=re.nextSibling,Me=re.nodeName;re[Ee]||Me==="HEAD"||Me==="BODY"||Me==="SCRIPT"||Me==="STYLE"||Me==="LINK"&&re.rel.toLowerCase()==="stylesheet"||_.removeChild(re),re=ue}for(var Ve=a.type,Ae=_.attributes;Ae.length;)_.removeAttributeNode(Ae[0]);jr(_,Ve,N),_[Y]=a,_[G]=N}catch(_t){kn(a,a.return,_t)}}case 5:if(Ur(l,a),ka(a),m&512&&(Gn||c===null||ga(c,c.return)),a.flags&32){_=a.stateNode;try{fi(_,"")}catch(_t){kn(a,a.return,_t)}}m&4&&a.stateNode!=null&&(_=a.memoizedProps,cp(a,_,c!==null?c.memoizedProps:_)),m&1024&&(sh=!0);break;case 6:if(Ur(l,a),ka(a),m&4){if(a.stateNode===null)throw Error(r(162));m=a.memoizedProps,c=a.stateNode;try{c.nodeValue=m}catch(_t){kn(a,a.return,_t)}}break;case 3:if(S0=null,_=ja,ja=_0(l.containerInfo),Ur(l,a),ja=_,ka(a),m&4&&c!==null&&c.memoizedState.isDehydrated)try{zf(l.containerInfo)}catch(_t){kn(a,a.return,_t)}sh&&(sh=!1,wf(a));break;case 4:m=ja,ja=_0(a.stateNode.containerInfo),Ur(l,a),ka(a),ja=m;break;case 12:Ur(l,a),ka(a);break;case 13:Ur(l,a),ka(a),a.child.flags&8192&&a.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(_h=$t()),m&4&&(m=a.updateQueue,m!==null&&(a.updateQueue=null,l0(a,m)));break;case 22:if(m&512&&(Gn||c===null||ga(c,c.return)),re=a.memoizedState!==null,ue=c!==null&&c.memoizedState!==null,Me=Ol,Ve=Gn,Ol=Me||re,Gn=Ve||ue,Ur(l,a),Gn=Ve,Ol=Me,ka(a),l=a.stateNode,l._current=a,l._visibility&=-3,l._visibility|=l._pendingVisibility&2,m&8192&&(l._visibility=re?l._visibility&-2:l._visibility|1,re&&(l=Ol||Gn,c===null||ue||l||Qr(a)),a.memoizedProps===null||a.memoizedProps.mode!=="manual"))e:for(c=null,l=a;;){if(l.tag===5||l.tag===26||l.tag===27){if(c===null){ue=c=l;try{if(_=ue.stateNode,re)N=_.style,typeof N.setProperty=="function"?N.setProperty("display","none","important"):N.display="none";else{F=ue.stateNode,z=ue.memoizedProps.style;var Le=z!=null&&z.hasOwnProperty("display")?z.display:null;F.style.display=Le==null||typeof Le=="boolean"?"":(""+Le).trim()}}catch(_t){kn(ue,ue.return,_t)}}}else if(l.tag===6){if(c===null){ue=l;try{ue.stateNode.nodeValue=re?"":ue.memoizedProps}catch(_t){kn(ue,ue.return,_t)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===a)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break e;for(;l.sibling===null;){if(l.return===null||l.return===a)break e;c===l&&(c=null),l=l.return}c===l&&(c=null),l.sibling.return=l.return,l=l.sibling}m&4&&(m=a.updateQueue,m!==null&&(c=m.retryQueue,c!==null&&(m.retryQueue=null,l0(a,c))));break;case 19:Ur(l,a),ka(a),m&4&&(m=a.updateQueue,m!==null&&(a.updateQueue=null,l0(a,m)));break;case 21:break;default:Ur(l,a),ka(a)}}function ka(a){var l=a.flags;if(l&2){try{if(a.tag!==27){e:{for(var c=a.return;c!==null;){if(fp(c)){var m=c;break e}c=c.return}throw Error(r(160))}switch(m.tag){case 27:var _=m.stateNode,N=Ei(a);ac(a,N,_);break;case 5:var F=m.stateNode;m.flags&32&&(fi(F,""),m.flags&=-33);var z=Ei(a);ac(a,z,F);break;case 3:case 4:var re=m.stateNode.containerInfo,ue=Ei(a);Dr(a,ue,re);break;default:throw Error(r(161))}}}catch(Me){kn(a,a.return,Me)}a.flags&=-3}l&4096&&(a.flags&=-4097)}function wf(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var l=a;wf(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),a=a.sibling}}function tl(a,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)hp(a,l.alternate,l),l=l.sibling}function Qr(a){for(a=a.child;a!==null;){var l=a;switch(l.tag){case 0:case 11:case 14:case 15:ps(4,l,l.return),Qr(l);break;case 1:ga(l,l.return);var c=l.stateNode;typeof c.componentWillUnmount=="function"&&lh(l,l.return,c),Qr(l);break;case 26:case 27:case 5:ga(l,l.return),Qr(l);break;case 22:ga(l,l.return),l.memoizedState===null&&Qr(l);break;default:Qr(l)}a=a.sibling}}function xa(a,l,c){for(c=c&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var m=l.alternate,_=a,N=l,F=N.flags;switch(N.tag){case 0:case 11:case 15:xa(_,N,c),hr(4,N);break;case 1:if(xa(_,N,c),m=N,_=m.stateNode,typeof _.componentDidMount=="function")try{_.componentDidMount()}catch(ue){kn(m,m.return,ue)}if(m=N,_=m.updateQueue,_!==null){var z=m.stateNode;try{var re=_.shared.hiddenCallbacks;if(re!==null)for(_.shared.hiddenCallbacks=null,_=0;_<re.length;_++)i0(re[_],z)}catch(ue){kn(m,m.return,ue)}}c&&F&64&&sp(N),to(N,N.return);break;case 26:case 27:case 5:xa(_,N,c),c&&m===null&&F&4&&op(N),to(N,N.return);break;case 12:xa(_,N,c);break;case 13:xa(_,N,c),c&&F&4&&pp(_,N);break;case 22:N.memoizedState===null&&xa(_,N,c),to(N,N.return);break;default:xa(_,N,c)}l=l.sibling}}function dh(a,l){var c=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==c&&(a!=null&&a.refCount++,c!=null&&nf(c))}function s0(a,l){a=null,l.alternate!==null&&(a=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==a&&(l.refCount++,a!=null&&nf(a))}function gs(a,l,c,m){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)gp(a,l,c,m),l=l.sibling}function gp(a,l,c,m){var _=l.flags;switch(l.tag){case 0:case 11:case 15:gs(a,l,c,m),_&2048&&hr(9,l);break;case 3:gs(a,l,c,m),_&2048&&(a=null,l.alternate!==null&&(a=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==a&&(l.refCount++,a!=null&&nf(a)));break;case 12:if(_&2048){gs(a,l,c,m),a=l.stateNode;try{var N=l.memoizedProps,F=N.id,z=N.onPostCommit;typeof z=="function"&&z(F,l.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(re){kn(l,l.return,re)}}else gs(a,l,c,m);break;case 23:break;case 22:N=l.stateNode,l.memoizedState!==null?N._visibility&4?gs(a,l,c,m):Ef(a,l):N._visibility&4?gs(a,l,c,m):(N._visibility|=4,ic(a,l,c,m,(l.subtreeFlags&10256)!==0)),_&2048&&dh(l.alternate,l);break;case 24:gs(a,l,c,m),_&2048&&s0(l.alternate,l);break;default:gs(a,l,c,m)}}function ic(a,l,c,m,_){for(_=_&&(l.subtreeFlags&10256)!==0,l=l.child;l!==null;){var N=a,F=l,z=c,re=m,ue=F.flags;switch(F.tag){case 0:case 11:case 15:ic(N,F,z,re,_),hr(8,F);break;case 23:break;case 22:var Me=F.stateNode;F.memoizedState!==null?Me._visibility&4?ic(N,F,z,re,_):Ef(N,F):(Me._visibility|=4,ic(N,F,z,re,_)),_&&ue&2048&&dh(F.alternate,F);break;case 24:ic(N,F,z,re,_),_&&ue&2048&&s0(F.alternate,F);break;default:ic(N,F,z,re,_)}l=l.sibling}}function Ef(a,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var c=a,m=l,_=m.flags;switch(m.tag){case 22:Ef(c,m),_&2048&&dh(m.alternate,m);break;case 24:Ef(c,m),_&2048&&s0(m.alternate,m);break;default:Ef(c,m)}l=l.sibling}}var Sf=8192;function lc(a){if(a.subtreeFlags&Sf)for(a=a.child;a!==null;)xp(a),a=a.sibling}function xp(a){switch(a.tag){case 26:lc(a),a.flags&Sf&&a.memoizedState!==null&&Tv(ja,a.memoizedState,a.memoizedProps);break;case 5:lc(a);break;case 3:case 4:var l=ja;ja=_0(a.stateNode.containerInfo),lc(a),ja=l;break;case 22:a.memoizedState===null&&(l=a.alternate,l!==null&&l.memoizedState!==null?(l=Sf,Sf=16777216,lc(a),Sf=l):lc(a));break;default:lc(a)}}function vp(a){var l=a.alternate;if(l!==null&&(a=l.child,a!==null)){l.child=null;do l=a.sibling,a.sibling=null,a=l;while(a!==null)}}function bf(a){var l=a.deletions;if(a.flags&16){if(l!==null)for(var c=0;c<l.length;c++){var m=l[c];ir=m,hh(m,a)}vp(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)yp(a),a=a.sibling}function yp(a){switch(a.tag){case 0:case 11:case 15:bf(a),a.flags&2048&&ps(9,a,a.return);break;case 3:bf(a);break;case 12:bf(a);break;case 22:var l=a.stateNode;a.memoizedState!==null&&l._visibility&4&&(a.return===null||a.return.tag!==13)?(l._visibility&=-5,o0(a)):bf(a);break;default:bf(a)}}function o0(a){var l=a.deletions;if(a.flags&16){if(l!==null)for(var c=0;c<l.length;c++){var m=l[c];ir=m,hh(m,a)}vp(a)}for(a=a.child;a!==null;){switch(l=a,l.tag){case 0:case 11:case 15:ps(8,l,l.return),o0(l);break;case 22:c=l.stateNode,c._visibility&4&&(c._visibility&=-5,o0(l));break;default:o0(l)}a=a.sibling}}function hh(a,l){for(;ir!==null;){var c=ir;switch(c.tag){case 0:case 11:case 15:ps(8,c,l);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var m=c.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:nf(c.memoizedState.cache)}if(m=c.child,m!==null)m.return=c,ir=m;else e:for(c=a;ir!==null;){m=ir;var _=m.sibling,N=m.return;if(mp(m),m===c){ir=null;break e}if(_!==null){_.return=N,ir=_;break e}ir=N}}}function _p(a,l,c,m){this.tag=a,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fa(a,l,c,m){return new _p(a,l,c,m)}function mh(a){return a=a.prototype,!(!a||!a.isReactComponent)}function xs(a,l){var c=a.alternate;return c===null?(c=Fa(a.tag,l,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=l,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=a.flags&31457280,c.childLanes=a.childLanes,c.lanes=a.lanes,c.child=a.child,c.memoizedProps=a.memoizedProps,c.memoizedState=a.memoizedState,c.updateQueue=a.updateQueue,l=a.dependencies,c.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},c.sibling=a.sibling,c.index=a.index,c.ref=a.ref,c.refCleanup=a.refCleanup,c}function wp(a,l){a.flags&=31457282;var c=a.alternate;return c===null?(a.childLanes=0,a.lanes=l,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,l=c.dependencies,a.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),a}function Tf(a,l,c,m,_,N){var F=0;if(m=a,typeof a=="function")mh(a)&&(F=1);else if(typeof a=="string")F=Sv(a,c,Be.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case d:return no(c.children,_,N,l);case p:F=8,_|=24;break;case x:return a=Fa(12,c,l,_|2),a.elementType=x,a.lanes=N,a;case S:return a=Fa(13,c,l,_),a.elementType=S,a.lanes=N,a;case T:return a=Fa(19,c,l,_),a.elementType=T,a.lanes=N,a;case A:return Ep(c,_,N,l);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case y:case w:F=10;break e;case v:F=9;break e;case b:F=11;break e;case C:F=14;break e;case R:F=16,m=null;break e}F=29,c=Error(r(130,a===null?"null":typeof a,"")),m=null}return l=Fa(F,c,l,_),l.elementType=a,l.type=m,l.lanes=N,l}function no(a,l,c,m){return a=Fa(7,a,m,l),a.lanes=c,a}function Ep(a,l,c,m){a=Fa(22,a,m,l),a.elementType=A,a.lanes=c;var _={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var N=_._current;if(N===null)throw Error(r(456));if(!(_._pendingVisibility&2)){var F=di(N,2);F!==null&&(_._pendingVisibility|=2,Ir(F,N,2))}},attach:function(){var N=_._current;if(N===null)throw Error(r(456));if(_._pendingVisibility&2){var F=di(N,2);F!==null&&(_._pendingVisibility&=-3,Ir(F,N,2))}}};return a.stateNode=_,a}function ph(a,l,c){return a=Fa(6,a,null,l),a.lanes=c,a}function gh(a,l,c){return l=Fa(4,a.children!==null?a.children:[],a.key,l),l.lanes=c,l.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},l}function Dl(a){a.flags|=4}function Sp(a,l){if(l.type!=="stylesheet"||l.state.loading&4)a.flags&=-16777217;else if(a.flags|=16777216,!Jp(l)){if(l=ei.current,l!==null&&((fn&4194176)===fn?Xi!==null:(fn&62914560)!==fn&&!(fn&536870912)||l!==Xi))throw Jc=ts,Qc;a.flags|=8192}}function Jr(a,l){l!==null&&(a.flags|=4),a.flags&16384&&(l=a.tag!==22?ve():536870912,a.lanes|=l,oc|=l)}function Nf(a,l){if(!kt)switch(a.tailMode){case"hidden":l=a.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?a.tail=null:c.sibling=null;break;case"collapsed":c=a.tail;for(var m=null;c!==null;)c.alternate!==null&&(m=c),c=c.sibling;m===null?l||a.tail===null?a.tail=null:a.tail.sibling=null:m.sibling=null}}function Vn(a){var l=a.alternate!==null&&a.alternate.child===a.child,c=0,m=0;if(l)for(var _=a.child;_!==null;)c|=_.lanes|_.childLanes,m|=_.subtreeFlags&31457280,m|=_.flags&31457280,_.return=a,_=_.sibling;else for(_=a.child;_!==null;)c|=_.lanes|_.childLanes,m|=_.subtreeFlags,m|=_.flags,_.return=a,_=_.sibling;return a.subtreeFlags|=m,a.childLanes=c,l}function tv(a,l,c){var m=l.pendingProps;switch(Nd(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vn(l),null;case 1:return Vn(l),null;case 3:return c=l.stateNode,m=null,a!==null&&(m=a.memoizedState.cache),l.memoizedState.cache!==m&&(l.flags|=2048),Zi(vr),xt(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(a===null||a.child===null)&&(Xs(l)?Dl(l):a===null||a.memoizedState.isDehydrated&&!(l.flags&256)||(l.flags|=1024,hi!==null&&(cc(hi),hi=null))),Vn(l),null;case 26:return c=l.memoizedState,a===null?(Dl(l),c!==null?(Vn(l),Sp(l,c)):(Vn(l),l.flags&=-16777217)):c?c!==a.memoizedState?(Dl(l),Vn(l),Sp(l,c)):(Vn(l),l.flags&=-16777217):(a.memoizedProps!==m&&Dl(l),Vn(l),l.flags&=-16777217),null;case 27:tn(l),c=rt.current;var _=l.type;if(a!==null&&l.stateNode!=null)a.memoizedProps!==m&&Dl(l);else{if(!m){if(l.stateNode===null)throw Error(r(166));return Vn(l),null}a=Be.current,Xs(l)?Bu(l):(a=Wh(_,m,c),l.stateNode=a,Dl(l))}return Vn(l),null;case 5:if(tn(l),c=l.type,a!==null&&l.stateNode!=null)a.memoizedProps!==m&&Dl(l);else{if(!m){if(l.stateNode===null)throw Error(r(166));return Vn(l),null}if(a=Be.current,Xs(l))Bu(l);else{switch(_=x0(rt.current),a){case 1:a=_.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:a=_.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":a=_.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":a=_.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":a=_.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof m.is=="string"?_.createElement("select",{is:m.is}):_.createElement("select"),m.multiple?a.multiple=!0:m.size&&(a.size=m.size);break;default:a=typeof m.is=="string"?_.createElement(c,{is:m.is}):_.createElement(c)}}a[Y]=l,a[G]=m;e:for(_=l.child;_!==null;){if(_.tag===5||_.tag===6)a.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===l)break e;for(;_.sibling===null;){if(_.return===null||_.return===l)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}l.stateNode=a;e:switch(jr(a,c,m),c){case"button":case"input":case"select":case"textarea":a=!!m.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Dl(l)}}return Vn(l),l.flags&=-16777217,null;case 6:if(a&&l.stateNode!=null)a.memoizedProps!==m&&Dl(l);else{if(typeof m!="string"&&l.stateNode===null)throw Error(r(166));if(a=rt.current,Xs(l)){if(a=l.stateNode,c=l.memoizedProps,m=null,_=Kr,_!==null)switch(_.tag){case 27:case 5:m=_.memoizedProps}a[Y]=l,a=!!(a.nodeValue===c||m!==null&&m.suppressHydrationWarning===!0||Yt(a.nodeValue,c)),a||Vs(l)}else a=x0(a).createTextNode(m),a[Y]=l,l.stateNode=a}return Vn(l),null;case 13:if(m=l.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(_=Xs(l),m!==null&&m.dehydrated!==null){if(a===null){if(!_)throw Error(r(318));if(_=l.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(r(317));_[Y]=l}else Vi(),!(l.flags&128)&&(l.memoizedState=null),l.flags|=4;Vn(l),_=!1}else hi!==null&&(cc(hi),hi=null),_=!0;if(!_)return l.flags&256?(Sl(l),l):(Sl(l),null)}if(Sl(l),l.flags&128)return l.lanes=c,l;if(c=m!==null,a=a!==null&&a.memoizedState!==null,c){m=l.child,_=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(_=m.alternate.memoizedState.cachePool.pool);var N=null;m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(N=m.memoizedState.cachePool.pool),N!==_&&(m.flags|=2048)}return c!==a&&c&&(l.child.flags|=8192),Jr(l,l.updateQueue),Vn(l),null;case 4:return xt(),a===null&&Ph(l.stateNode.containerInfo),Vn(l),null;case 10:return Zi(l.type),Vn(l),null;case 19:if(me(xr),_=l.memoizedState,_===null)return Vn(l),null;if(m=(l.flags&128)!==0,N=_.rendering,N===null)if(m)Nf(_,!1);else{if(lr!==0||a!==null&&a.flags&128)for(a=l.child;a!==null;){if(N=Iu(a),N!==null){for(l.flags|=128,Nf(_,!1),a=N.updateQueue,l.updateQueue=a,Jr(l,a),l.subtreeFlags=0,a=c,c=l.child;c!==null;)wp(c,a),c=c.sibling;return oe(xr,xr.current&1|2),l.child}a=a.sibling}_.tail!==null&&$t()>c0&&(l.flags|=128,m=!0,Nf(_,!1),l.lanes=4194304)}else{if(!m)if(a=Iu(N),a!==null){if(l.flags|=128,m=!0,a=a.updateQueue,l.updateQueue=a,Jr(l,a),Nf(_,!0),_.tail===null&&_.tailMode==="hidden"&&!N.alternate&&!kt)return Vn(l),null}else 2*$t()-_.renderingStartTime>c0&&c!==536870912&&(l.flags|=128,m=!0,Nf(_,!1),l.lanes=4194304);_.isBackwards?(N.sibling=l.child,l.child=N):(a=_.last,a!==null?a.sibling=N:l.child=N,_.last=N)}return _.tail!==null?(l=_.tail,_.rendering=l,_.tail=l.sibling,_.renderingStartTime=$t(),l.sibling=null,a=xr.current,oe(xr,m?a&1|2:a&1),l):(Vn(l),null);case 22:case 23:return Sl(l),Ad(),m=l.memoizedState!==null,a!==null?a.memoizedState!==null!==m&&(l.flags|=8192):m&&(l.flags|=8192),m?c&536870912&&!(l.flags&128)&&(Vn(l),l.subtreeFlags&6&&(l.flags|=8192)):Vn(l),c=l.updateQueue,c!==null&&Jr(l,c.retryQueue),c=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),m=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==c&&(l.flags|=2048),a!==null&&me(qs),null;case 24:return c=null,a!==null&&(c=a.memoizedState.cache),l.memoizedState.cache!==c&&(l.flags|=2048),Zi(vr),Vn(l),null;case 25:return null}throw Error(r(156,l.tag))}function bp(a,l){switch(Nd(l),l.tag){case 1:return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 3:return Zi(vr),xt(),a=l.flags,a&65536&&!(a&128)?(l.flags=a&-65537|128,l):null;case 26:case 27:case 5:return tn(l),null;case 13:if(Sl(l),a=l.memoizedState,a!==null&&a.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Vi()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 19:return me(xr),null;case 4:return xt(),null;case 10:return Zi(l.type),null;case 22:case 23:return Sl(l),Ad(),a!==null&&me(qs),a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 24:return Zi(vr),null;case 25:return null;default:return null}}function Tp(a,l){switch(Nd(l),l.tag){case 3:Zi(vr),xt();break;case 26:case 27:case 5:tn(l);break;case 4:xt();break;case 13:Sl(l);break;case 19:me(xr);break;case 10:Zi(l.type);break;case 22:case 23:Sl(l),Ad(),a!==null&&me(qs);break;case 24:Zi(vr)}}var nv={getCacheForType:function(a){var l=Pr(vr),c=l.data.get(a);return c===void 0&&(c=a(),l.data.set(a,c)),c}},rv=typeof WeakMap=="function"?WeakMap:Map,Xn=0,jn=null,en=null,fn=0,Un=0,La=null,jl=!1,sc=!1,xh=!1,kl=0,lr=0,vs=0,ro=0,vh=0,ni=0,oc=0,Cf=null,nl=null,yh=!1,_h=0,c0=1/0,f0=null,rl=null,Af=!1,ao=null,Rf=0,wh=0,Eh=null,Of=0,Sh=null;function Ma(){if(Xn&2&&fn!==0)return fn&-fn;if(U.T!==null){var a=Uo;return a!==0?a:kh()}return pt()}function Np(){ni===0&&(ni=!(fn&536870912)||kt?le():536870912);var a=ei.current;return a!==null&&(a.flags|=32),ni}function Ir(a,l,c){(a===jn&&Un===2||a.cancelPendingCommit!==null)&&(fc(a,0),Fl(a,fn,ni,!1)),Ge(a,c),(!(Xn&2)||a!==jn)&&(a===jn&&(!(Xn&2)&&(ro|=c),lr===4&&Fl(a,fn,ni,!1)),Si(a))}function Cp(a,l,c){if(Xn&6)throw Error(r(327));var m=!c&&(l&60)===0&&(l&a.expiredLanes)===0||fa(a,l),_=m?lv(a,l):Nh(a,l,!0),N=m;do{if(_===0){sc&&!m&&Fl(a,l,0,!1);break}else if(_===6)Fl(a,l,0,!jl);else{if(c=a.current.alternate,N&&!av(c)){_=Nh(a,l,!1),N=!1;continue}if(_===2){if(N=l,a.errorRecoveryDisabledLanes&N)var F=0;else F=a.pendingLanes&-536870913,F=F!==0?F:F&536870912?536870912:0;if(F!==0){l=F;e:{var z=a;_=Cf;var re=z.current.memoizedState.isDehydrated;if(re&&(fc(z,F).flags|=256),F=Nh(z,F,!1),F!==2){if(xh&&!re){z.errorRecoveryDisabledLanes|=N,ro|=N,_=4;break e}N=nl,nl=_,N!==null&&cc(N)}_=F}if(N=!1,_!==2)continue}}if(_===1){fc(a,0),Fl(a,l,0,!0);break}e:{switch(m=a,_){case 0:case 1:throw Error(r(345));case 4:if((l&4194176)===l){Fl(m,l,ni,!jl);break e}break;case 2:nl=null;break;case 3:case 5:break;default:throw Error(r(329))}if(m.finishedWork=c,m.finishedLanes=l,(l&62914560)===l&&(N=_h+300-$t(),10<N)){if(Fl(m,l,ni,!jl),Mr(m,0)!==0)break e;m.timeoutHandle=$h(Ap.bind(null,m,c,nl,f0,yh,l,ni,ro,oc,jl,2,-0,0),N);break e}Ap(m,c,nl,f0,yh,l,ni,ro,oc,jl,0,-0,0)}}break}while(!0);Si(a)}function cc(a){nl===null?nl=a:nl.push.apply(nl,a)}function Ap(a,l,c,m,_,N,F,z,re,ue,Me,Ve,Ae){var Le=l.subtreeFlags;if((Le&8192||(Le&16785408)===16785408)&&(Bf={stylesheets:null,count:0,unsuspend:bv},xp(l),l=Nv(),l!==null)){a.cancelPendingCommit=l(Lp.bind(null,a,c,m,_,F,z,re,1,Ve,Ae)),Fl(a,N,F,!ue);return}Lp(a,c,m,_,F,z,re,Me,Ve,Ae)}function av(a){for(var l=a;;){var c=l.tag;if((c===0||c===11||c===15)&&l.flags&16384&&(c=l.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var m=0;m<c.length;m++){var _=c[m],N=_.getSnapshot;_=_.value;try{if(!Ta(N(),_))return!1}catch{return!1}}if(c=l.child,l.subtreeFlags&16384&&c!==null)c.return=l,l=c;else{if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Fl(a,l,c,m){l&=~vh,l&=~ro,a.suspendedLanes|=l,a.pingedLanes&=~l,m&&(a.warmLanes|=l),m=a.expirationTimes;for(var _=l;0<_;){var N=31-ut(_),F=1<<N;m[N]=-1,_&=~F}c!==0&&vt(a,c,l)}function u0(){return Xn&6?!0:(so(0),!1)}function bh(){if(en!==null){if(Un===0)var a=en.return;else a=en,vi=ds=null,$o(a),_l=null,wl=0,a=en;for(;a!==null;)Tp(a.alternate,a),a=a.return;en=null}}function fc(a,l){a.finishedWork=null,a.finishedLanes=0;var c=a.timeoutHandle;c!==-1&&(a.timeoutHandle=-1,v0(c)),c=a.cancelPendingCommit,c!==null&&(a.cancelPendingCommit=null,c()),bh(),jn=a,en=c=xs(a.current,null),fn=l,Un=0,La=null,jl=!1,sc=fa(a,l),xh=!1,oc=ni=vh=ro=vs=lr=0,nl=Cf=null,yh=!1,l&8&&(l|=l&32);var m=a.entangledLanes;if(m!==0)for(a=a.entanglements,m&=l;0<m;){var _=31-ut(m),N=1<<_;l|=a[_],m&=~N}return kl=l,Fu(),c}function Rp(a,l){Xt=null,U.H=ar,l===yl?(l=Im(),Un=3):l===Qc?(l=Im(),Un=4):Un=l===Zd?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,La=l,en===null&&(lr=1,df(a,qr(l,a.current)))}function Op(){var a=U.H;return U.H=ar,a===null?ar:a}function Dp(){var a=U.A;return U.A=nv,a}function Th(){lr=4,jl||(fn&4194176)!==fn&&ei.current!==null||(sc=!0),!(vs&134217727)&&!(ro&134217727)||jn===null||Fl(jn,fn,ni,!1)}function Nh(a,l,c){var m=Xn;Xn|=2;var _=Op(),N=Dp();(jn!==a||fn!==l)&&(f0=null,fc(a,l)),l=!1;var F=lr;e:do try{if(Un!==0&&en!==null){var z=en,re=La;switch(Un){case 8:bh(),F=6;break e;case 3:case 2:case 6:ei.current===null&&(l=!0);var ue=Un;if(Un=0,La=null,io(a,z,re,ue),c&&sc){F=0;break e}break;default:ue=Un,Un=0,La=null,io(a,z,re,ue)}}iv(),F=lr;break}catch(Me){Rp(a,Me)}while(!0);return l&&a.shellSuspendCounter++,vi=ds=null,Xn=m,U.H=_,U.A=N,en===null&&(jn=null,fn=0,Fu()),F}function iv(){for(;en!==null;)jp(en)}function lv(a,l){var c=Xn;Xn|=2;var m=Op(),_=Dp();jn!==a||fn!==l?(f0=null,c0=$t()+500,fc(a,l)):sc=fa(a,l);e:do try{if(Un!==0&&en!==null){l=en;var N=La;t:switch(Un){case 1:Un=0,La=null,io(a,l,N,1);break;case 2:if(Pm(N)){Un=0,La=null,kp(l);break}l=function(){Un===2&&jn===a&&(Un=7),Si(a)},N.then(l,l);break e;case 3:Un=7;break e;case 4:Un=5;break e;case 7:Pm(N)?(Un=0,La=null,kp(l)):(Un=0,La=null,io(a,l,N,7));break;case 5:var F=null;switch(en.tag){case 26:F=en.memoizedState;case 5:case 27:var z=en;if(!F||Jp(F)){Un=0,La=null;var re=z.sibling;if(re!==null)en=re;else{var ue=z.return;ue!==null?(en=ue,Df(ue)):en=null}break t}}Un=0,La=null,io(a,l,N,5);break;case 6:Un=0,La=null,io(a,l,N,6);break;case 8:bh(),lr=6;break e;default:throw Error(r(462))}}sv();break}catch(Me){Rp(a,Me)}while(!0);return vi=ds=null,U.H=m,U.A=_,Xn=c,en!==null?0:(jn=null,fn=0,Fu(),lr)}function sv(){for(;en!==null&&!An();)jp(en)}function jp(a){var l=ah(a.alternate,a,kl);a.memoizedProps=a.pendingProps,l===null?Df(a):en=l}function kp(a){var l=a,c=l.alternate;switch(l.tag){case 15:case 0:l=eo(c,l,l.pendingProps,l.type,void 0,fn);break;case 11:l=eo(c,l,l.pendingProps,l.type.render,l.ref,fn);break;case 5:$o(l);default:Tp(c,l),l=en=wp(l,kl),l=ah(c,l,kl)}a.memoizedProps=a.pendingProps,l===null?Df(a):en=l}function io(a,l,c,m){vi=ds=null,$o(l),_l=null,wl=0;var _=l.return;try{if(Jx(a,_,l,c,fn)){lr=1,df(a,qr(c,a.current)),en=null;return}}catch(N){if(_!==null)throw en=_,N;lr=1,df(a,qr(c,a.current)),en=null;return}l.flags&32768?(kt||m===1?a=!0:sc||fn&536870912?a=!1:(jl=a=!0,(m===2||m===3||m===6)&&(m=ei.current,m!==null&&m.tag===13&&(m.flags|=16384))),Fp(l,a)):Df(l)}function Df(a){var l=a;do{if(l.flags&32768){Fp(l,jl);return}a=l.return;var c=tv(l.alternate,l,kl);if(c!==null){en=c;return}if(l=l.sibling,l!==null){en=l;return}en=l=a}while(l!==null);lr===0&&(lr=5)}function Fp(a,l){do{var c=bp(a.alternate,a);if(c!==null){c.flags&=32767,en=c;return}if(c=a.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!l&&(a=a.sibling,a!==null)){en=a;return}en=a=c}while(a!==null);lr=6,en=null}function Lp(a,l,c,m,_,N,F,z,re,ue){var Me=U.T,Ve=ee.p;try{ee.p=2,U.T=null,ov(a,l,c,m,Ve,_,N,F,z,re,ue)}finally{U.T=Me,ee.p=Ve}}function ov(a,l,c,m,_,N,F,z){do Ll();while(ao!==null);if(Xn&6)throw Error(r(327));var re=a.finishedWork;if(m=a.finishedLanes,re===null)return null;if(a.finishedWork=null,a.finishedLanes=0,re===a.current)throw Error(r(177));a.callbackNode=null,a.callbackPriority=0,a.cancelPendingCommit=null;var ue=re.lanes|re.childLanes;if(ue|=Sd,st(a,m,ue,N,F,z),a===jn&&(en=jn=null,fn=0),!(re.subtreeFlags&10256)&&!(re.flags&10256)||Af||(Af=!0,wh=ue,Eh=c,dv(nn,function(){return Ll(),null})),c=(re.flags&15990)!==0,re.subtreeFlags&15990||c?(c=U.T,U.T=null,N=ee.p,ee.p=2,F=Xn,Xn|=4,dp(a,re),uh(re,a),$x(Yh,a.containerInfo),Uf=!!Ih,Yh=Ih=null,a.current=re,hp(a,re.alternate,re),Rn(),Xn=F,ee.p=N,U.T=c):a.current=re,Af?(Af=!1,ao=a,Rf=m):Mp(a,ue),ue=a.pendingLanes,ue===0&&(rl=null),br(re.stateNode),Si(a),l!==null)for(_=a.onRecoverableError,re=0;re<l.length;re++)ue=l[re],_(ue.value,{componentStack:ue.stack});return Rf&3&&Ll(),ue=a.pendingLanes,m&4194218&&ue&42?a===Sh?Of++:(Of=0,Sh=a):Of=0,so(0),null}function Mp(a,l){(a.pooledCacheLanes&=l)===0&&(l=a.pooledCache,l!=null&&(a.pooledCache=null,nf(l)))}function Ll(){if(ao!==null){var a=ao,l=wh;wh=0;var c=ht(Rf),m=U.T,_=ee.p;try{if(ee.p=32>c?32:c,U.T=null,ao===null)var N=!1;else{c=Eh,Eh=null;var F=ao,z=Rf;if(ao=null,Rf=0,Xn&6)throw Error(r(331));var re=Xn;if(Xn|=4,yp(F.current),gp(F,F.current,z,c),Xn=re,so(0,!1),En&&typeof En.onPostCommitFiberRoot=="function")try{En.onPostCommitFiberRoot(er,F)}catch{}N=!0}return N}finally{ee.p=_,U.T=m,Mp(a,l)}}return!1}function Bp(a,l,c){l=qr(c,l),l=hf(a.stateNode,l,2),a=Oa(a,l,2),a!==null&&(Ge(a,2),Si(a))}function kn(a,l,c){if(a.tag===3)Bp(a,a,c);else for(;l!==null;){if(l.tag===3){Bp(l,a,c);break}else if(l.tag===1){var m=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(rl===null||!rl.has(m))){a=qr(c,a),c=ap(2),m=Oa(l,c,2),m!==null&&(ip(c,m,l,a),Ge(m,2),Si(m));break}}l=l.return}}function Ch(a,l,c){var m=a.pingCache;if(m===null){m=a.pingCache=new rv;var _=new Set;m.set(l,_)}else _=m.get(l),_===void 0&&(_=new Set,m.set(l,_));_.has(c)||(xh=!0,_.add(c),a=cv.bind(null,a,l,c),l.then(a,a))}function cv(a,l,c){var m=a.pingCache;m!==null&&m.delete(l),a.pingedLanes|=a.suspendedLanes&c,a.warmLanes&=~c,jn===a&&(fn&c)===c&&(lr===4||lr===3&&(fn&62914560)===fn&&300>$t()-_h?!(Xn&2)&&fc(a,0):vh|=c,oc===fn&&(oc=0)),Si(a)}function Pp(a,l){l===0&&(l=ve()),a=di(a,l),a!==null&&(Ge(a,l),Si(a))}function fv(a){var l=a.memoizedState,c=0;l!==null&&(c=l.retryLane),Pp(a,c)}function uv(a,l){var c=0;switch(a.tag){case 13:var m=a.stateNode,_=a.memoizedState;_!==null&&(c=_.retryLane);break;case 19:m=a.stateNode;break;case 22:m=a.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(l),Pp(a,c)}function dv(a,l){return Jt(a,l)}var d0=null,uc=null,Ah=!1,lo=!1,Rh=!1,ys=0;function Si(a){a!==uc&&a.next===null&&(uc===null?d0=uc=a:uc=uc.next=a),lo=!0,Ah||(Ah=!0,hv(Up))}function so(a,l){if(!Rh&&lo){Rh=!0;do for(var c=!1,m=d0;m!==null;){if(a!==0){var _=m.pendingLanes;if(_===0)var N=0;else{var F=m.suspendedLanes,z=m.pingedLanes;N=(1<<31-ut(42|a)+1)-1,N&=_&~(F&~z),N=N&201326677?N&201326677|1:N?N|2:0}N!==0&&(c=!0,jh(m,N))}else N=fn,N=Mr(m,m===jn?N:0),!(N&3)||fa(m,N)||(c=!0,jh(m,N));m=m.next}while(c);Rh=!1}}function Up(){lo=Ah=!1;var a=0;ys!==0&&(Ml()&&(a=ys),ys=0);for(var l=$t(),c=null,m=d0;m!==null;){var _=m.next,N=Oh(m,l);N===0?(m.next=null,c===null?d0=_:c.next=_,_===null&&(uc=c)):(c=m,(a!==0||N&3)&&(lo=!0)),m=_}so(a)}function Oh(a,l){for(var c=a.suspendedLanes,m=a.pingedLanes,_=a.expirationTimes,N=a.pendingLanes&-62914561;0<N;){var F=31-ut(N),z=1<<F,re=_[F];re===-1?(!(z&c)||z&m)&&(_[F]=Ui(z,l)):re<=l&&(a.expiredLanes|=z),N&=~z}if(l=jn,c=fn,c=Mr(a,a===l?c:0),m=a.callbackNode,c===0||a===l&&Un===2||a.cancelPendingCommit!==null)return m!==null&&m!==null&&Bt(m),a.callbackNode=null,a.callbackPriority=0;if(!(c&3)||fa(a,c)){if(l=c&-c,l===a.callbackPriority)return l;switch(m!==null&&Bt(m),ht(c)){case 2:case 8:c=dn;break;case 32:c=nn;break;case 268435456:c=Yn;break;default:c=nn}return m=Dh.bind(null,a),c=Jt(c,m),a.callbackPriority=l,a.callbackNode=c,l}return m!==null&&m!==null&&Bt(m),a.callbackPriority=2,a.callbackNode=null,2}function Dh(a,l){var c=a.callbackNode;if(Ll()&&a.callbackNode!==c)return null;var m=fn;return m=Mr(a,a===jn?m:0),m===0?null:(Cp(a,m,l),Oh(a,$t()),a.callbackNode!=null&&a.callbackNode===c?Dh.bind(null,a):null)}function jh(a,l){if(Ll())return null;Cp(a,l,!0)}function hv(a){sr(function(){Xn&6?Jt(yt,a):a()})}function kh(){return ys===0&&(ys=le()),ys}function Ip(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Gc(""+a)}function jf(a,l){var c=l.ownerDocument.createElement("input");return c.name=l.name,c.value=l.value,a.id&&c.setAttribute("form",a.id),l.parentNode.insertBefore(c,l),a=new FormData(a),c.parentNode.removeChild(c),a}function h0(a,l,c,m,_){if(l==="submit"&&c&&c.stateNode===_){var N=Ip((_[G]||null).action),F=m.submitter;F&&(l=(l=F[G]||null)?Ip(l.formAction):F.getAttribute("formAction"),l!==null&&(N=l,F=null));var z=new wu("action","action",null,m,_);a.push({event:z,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(ys!==0){var re=F?jf(_,F):new FormData(_);ff(c,{pending:!0,data:re,method:_.method,action:N},null,re)}}else typeof N=="function"&&(z.preventDefault(),re=F?jf(_,F):new FormData(_),ff(c,{pending:!0,data:re,method:_.method,action:N},N,re))},currentTarget:_}]})}}for(var Fh=0;Fh<Mm.length;Fh++){var Lh=Mm[Fh],Mh=Lh.toLowerCase(),Yp=Lh[0].toUpperCase()+Lh.slice(1);qa(Mh,"on"+Yp)}qa(Lm,"onAnimationEnd"),qa(Na,"onAnimationIteration"),qa(Kc,"onAnimationStart"),qa("dblclick","onDoubleClick"),qa("focusin","onFocus"),qa("focusout","onBlur"),qa(Gx,"onTransitionRun"),qa(Lo,"onTransitionStart"),qa(ku,"onTransitionCancel"),qa(Zc,"onTransitionEnd"),Sn("onMouseEnter",["mouseout","mouseover"]),Sn("onMouseLeave",["mouseout","mouseover"]),Sn("onPointerEnter",["pointerout","pointerover"]),Sn("onPointerLeave",["pointerout","pointerover"]),Ot("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ot("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ot("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ot("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ot("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ot("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kf="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(" "),mv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kf));function Hp(a,l){l=(l&4)!==0;for(var c=0;c<a.length;c++){var m=a[c],_=m.event;m=m.listeners;e:{var N=void 0;if(l)for(var F=m.length-1;0<=F;F--){var z=m[F],re=z.instance,ue=z.currentTarget;if(z=z.listener,re!==N&&_.isPropagationStopped())break e;N=z,_.currentTarget=ue;try{N(_)}catch(Me){Zo(Me)}_.currentTarget=null,N=re}else for(F=0;F<m.length;F++){if(z=m[F],re=z.instance,ue=z.currentTarget,z=z.listener,re!==N&&_.isPropagationStopped())break e;N=z,_.currentTarget=ue;try{N(_)}catch(Me){Zo(Me)}_.currentTarget=null,N=re}}}}function ln(a,l){var c=l[Q];c===void 0&&(c=l[Q]=new Set);var m=a+"__bubble";c.has(m)||($p(l,a,2,!1),c.add(m))}function Bh(a,l,c){var m=0;l&&(m|=4),$p(c,a,m,l)}var m0="_reactListening"+Math.random().toString(36).slice(2);function Ph(a){if(!a[m0]){a[m0]=!0,Ct.forEach(function(c){c!=="selectionchange"&&(mv.has(c)||Bh(c,!1,a),Bh(c,!0,a))});var l=a.nodeType===9?a:a.ownerDocument;l===null||l[m0]||(l[m0]=!0,Bh("selectionchange",!1,l))}}function $p(a,l,c,m){switch(rg(l)){case 2:var _=Av;break;case 8:_=Rv;break;default:_=Jh}c=_.bind(null,l,c,a),_=void 0,!Vc||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(_=!0),m?_!==void 0?a.addEventListener(l,c,{capture:!0,passive:_}):a.addEventListener(l,c,!0):_!==void 0?a.addEventListener(l,c,{passive:_}):a.addEventListener(l,c,!1)}function Uh(a,l,c,m,_){var N=m;if(!(l&1)&&!(l&2)&&m!==null)e:for(;;){if(m===null)return;var F=m.tag;if(F===3||F===4){var z=m.stateNode.containerInfo;if(z===_||z.nodeType===8&&z.parentNode===_)break;if(F===4)for(F=m.return;F!==null;){var re=F.tag;if((re===3||re===4)&&(re=F.stateNode.containerInfo,re===_||re.nodeType===8&&re.parentNode===_))return;F=F.return}for(;z!==null;){if(F=Ie(z),F===null)return;if(re=F.tag,re===5||re===6||re===26||re===27){m=N=F;continue e}z=z.parentNode}}m=m.return}mm(function(){var ue=N,Me=fd(c),Ve=[];e:{var Ae=vn.get(a);if(Ae!==void 0){var Le=wu,_t=a;switch(a){case"keypress":if(On(c)===0)break e;case"keydown":case"keyup":Le=pd;break;case"focusin":_t="focus",Le=Su;break;case"focusout":_t="blur",Le=Su;break;case"beforeblur":case"afterblur":Le=Su;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Le=Zl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Le=md;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Le=Lx;break;case Lm:case Na:case Kc:Le=ym;break;case Zc:Le=Mx;break;case"scroll":case"scrollend":Le=jx;break;case"wheel":Le=Px;break;case"copy":case"cut":case"paste":Le=wm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Le=pl;break;case"toggle":case"beforetoggle":Le=Tu}var Lt=(l&4)!==0,Kn=!Lt&&(a==="scroll"||a==="scrollend"),ge=Lt?Ae!==null?Ae+"Capture":null:Ae;Lt=[];for(var fe=ue,be;fe!==null;){var Ye=fe;if(be=Ye.stateNode,Ye=Ye.tag,Ye!==5&&Ye!==26&&Ye!==27||be===null||ge===null||(Ye=Wc(fe,ge),Ye!=null&&Lt.push(Ff(fe,Ye,be))),Kn)break;fe=fe.return}0<Lt.length&&(Ae=new Le(Ae,_t,null,c,Me),Ve.push({event:Ae,listeners:Lt}))}}if(!(l&7)){e:{if(Ae=a==="mouseover"||a==="pointerover",Le=a==="mouseout"||a==="pointerout",Ae&&c!==cd&&(_t=c.relatedTarget||c.fromElement)&&(Ie(_t)||_t[Z]))break e;if((Le||Ae)&&(Ae=Me.window===Me?Me:(Ae=Me.ownerDocument)?Ae.defaultView||Ae.parentWindow:window,Le?(_t=c.relatedTarget||c.toElement,Le=ue,_t=_t?Ie(_t):null,_t!==null&&(Kn=Ne(_t),Lt=_t.tag,_t!==Kn||Lt!==5&&Lt!==27&&Lt!==6)&&(_t=null)):(Le=null,_t=ue),Le!==_t)){if(Lt=Zl,Ye="onMouseLeave",ge="onMouseEnter",fe="mouse",(a==="pointerout"||a==="pointerover")&&(Lt=pl,Ye="onPointerLeave",ge="onPointerEnter",fe="pointer"),Kn=Le==null?Ae:at(Le),be=_t==null?Ae:at(_t),Ae=new Lt(Ye,fe+"leave",Le,c,Me),Ae.target=Kn,Ae.relatedTarget=be,Ye=null,Ie(Me)===ue&&(Lt=new Lt(ge,fe+"enter",_t,c,Me),Lt.target=be,Lt.relatedTarget=Kn,Ye=Lt),Kn=Ye,Le&&_t)t:{for(Lt=Le,ge=_t,fe=0,be=Lt;be;be=dc(be))fe++;for(be=0,Ye=ge;Ye;Ye=dc(Ye))be++;for(;0<fe-be;)Lt=dc(Lt),fe--;for(;0<be-fe;)ge=dc(ge),be--;for(;fe--;){if(Lt===ge||ge!==null&&Lt===ge.alternate)break t;Lt=dc(Lt),ge=dc(ge)}Lt=null}else Lt=null;Le!==null&&ri(Ve,Ae,Le,Lt,!1),_t!==null&&Kn!==null&&ri(Ve,Kn,_t,Lt,!0)}}e:{if(Ae=ue?at(ue):window,Le=Ae.nodeName&&Ae.nodeName.toLowerCase(),Le==="select"||Le==="input"&&Ae.type==="file")var mt=Am;else if(Ru(Ae))if(Rm)mt=Yx;else{mt=es;var Kt=jm}else Le=Ae.nodeName,!Le||Le.toLowerCase()!=="input"||Ae.type!=="checkbox"&&Ae.type!=="radio"?ue&&yu(ue.elementType)&&(mt=Am):mt=ju;if(mt&&(mt=mt(a,ue))){jo(Ve,mt,c,Me);break e}Kt&&Kt(a,Ae,ue),a==="focusout"&&ue&&Ae.type==="number"&&ue.memoizedProps.value!=null&&sd(Ae,"number",Ae.value)}switch(Kt=ue?at(ue):window,a){case"focusin":(Ru(Kt)||Kt.contentEditable==="true")&&(ui=Kt,de=ue,je=null);break;case"focusout":je=de=ui=null;break;case"mousedown":Oe=!0;break;case"contextmenu":case"mouseup":case"dragend":Oe=!1,dt(Ve,c,Me);break;case"selectionchange":if(zx)break;case"keydown":case"keyup":dt(Ve,c,Me)}var Et;if(vd)e:{switch(a){case"compositionstart":var Rt="onCompositionStart";break e;case"compositionend":Rt="onCompositionEnd";break e;case"compositionupdate":Rt="onCompositionUpdate";break e}Rt=void 0}else Ql?Nm(a,c)&&(Rt="onCompositionEnd"):a==="keydown"&&c.keyCode===229&&(Rt="onCompositionStart");Rt&&(Nu&&c.locale!=="ko"&&(Ql||Rt!=="onCompositionStart"?Rt==="onCompositionEnd"&&Ql&&(Et=pm()):(Kl=Me,dd="value"in Kl?Kl.value:Kl.textContent,Ql=!0)),Kt=p0(ue,Rt),0<Kt.length&&(Rt=new ha(Rt,a,null,c,Me),Ve.push({event:Rt,listeners:Kt}),Et?Rt.data=Et:(Et=Au(c),Et!==null&&(Rt.data=Et)))),(Et=Tm?Ux(a,c):Cm(a,c))&&(Rt=p0(ue,"onBeforeInput"),0<Rt.length&&(Kt=new ha("onBeforeInput","beforeinput",null,c,Me),Ve.push({event:Kt,listeners:Rt}),Kt.data=Et)),h0(Ve,a,ue,c,Me)}Hp(Ve,l)})}function Ff(a,l,c){return{instance:a,listener:l,currentTarget:c}}function p0(a,l){for(var c=l+"Capture",m=[];a!==null;){var _=a,N=_.stateNode;_=_.tag,_!==5&&_!==26&&_!==27||N===null||(_=Wc(a,c),_!=null&&m.unshift(Ff(a,_,N)),_=Wc(a,l),_!=null&&m.push(Ff(a,_,N))),a=a.return}return m}function dc(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function ri(a,l,c,m,_){for(var N=l._reactName,F=[];c!==null&&c!==m;){var z=c,re=z.alternate,ue=z.stateNode;if(z=z.tag,re!==null&&re===m)break;z!==5&&z!==26&&z!==27||ue===null||(re=ue,_?(ue=Wc(c,N),ue!=null&&F.unshift(Ff(c,ue,re))):_||(ue=Wc(c,N),ue!=null&&F.push(Ff(c,ue,re)))),c=c.return}F.length!==0&&a.push({event:l,listeners:F})}var pv=/\r\n?/g,gv=/\u0000|\uFFFD/g;function _s(a){return(typeof a=="string"?a:""+a).replace(pv,`
-`).replace(gv,"")}function Yt(a,l){return l=_s(l),_s(a)===l}function g0(){}function Gt(a,l,c,m,_,N){switch(c){case"children":typeof m=="string"?l==="body"||l==="textarea"&&m===""||fi(a,m):(typeof m=="number"||typeof m=="bigint")&&l!=="body"&&fi(a,""+m);break;case"className":Yc(a,"class",m);break;case"tabIndex":Yc(a,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Yc(a,c,m);break;case"style":fm(a,m,N);break;case"data":if(l!=="object"){Yc(a,"data",m);break}case"src":case"href":if(m===""&&(l!=="a"||c!=="href")){a.removeAttribute(c);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){a.removeAttribute(c);break}m=Gc(""+m),a.setAttribute(c,m);break;case"action":case"formAction":if(typeof m=="function"){a.setAttribute(c,"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 N=="function"&&(c==="formAction"?(l!=="input"&&Gt(a,l,"name",_.name,_,null),Gt(a,l,"formEncType",_.formEncType,_,null),Gt(a,l,"formMethod",_.formMethod,_,null),Gt(a,l,"formTarget",_.formTarget,_,null)):(Gt(a,l,"encType",_.encType,_,null),Gt(a,l,"method",_.method,_,null),Gt(a,l,"target",_.target,_,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){a.removeAttribute(c);break}m=Gc(""+m),a.setAttribute(c,m);break;case"onClick":m!=null&&(a.onclick=g0);break;case"onScroll":m!=null&&ln("scroll",a);break;case"onScrollEnd":m!=null&&ln("scrollend",a);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(c=m.__html,c!=null){if(_.children!=null)throw Error(r(60));a.innerHTML=c}}break;case"multiple":a.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":a.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){a.removeAttribute("xlink:href");break}c=Gc(""+m),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?a.setAttribute(c,""+m):a.removeAttribute(c);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":m&&typeof m!="function"&&typeof m!="symbol"?a.setAttribute(c,""):a.removeAttribute(c);break;case"capture":case"download":m===!0?a.setAttribute(c,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?a.setAttribute(c,m):a.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?a.setAttribute(c,m):a.removeAttribute(c);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?a.removeAttribute(c):a.setAttribute(c,m);break;case"popover":ln("beforetoggle",a),ln("toggle",a),ua(a,"popover",m);break;case"xlinkActuate":Ii(a,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Ii(a,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Ii(a,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Ii(a,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Ii(a,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Ii(a,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Ii(a,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Ii(a,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Ii(a,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":ua(a,"is",m);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=um.get(c)||c,ua(a,c,m))}}function qn(a,l,c,m,_,N){switch(c){case"style":fm(a,m,N);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(c=m.__html,c!=null){if(_.children!=null)throw Error(r(60));a.innerHTML=c}}break;case"children":typeof m=="string"?fi(a,m):(typeof m=="number"||typeof m=="bigint")&&fi(a,""+m);break;case"onScroll":m!=null&&ln("scroll",a);break;case"onScrollEnd":m!=null&&ln("scrollend",a);break;case"onClick":m!=null&&(a.onclick=g0);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tt.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(_=c.endsWith("Capture"),l=c.slice(2,_?c.length-7:void 0),N=a[G]||null,N=N!=null?N[c]:null,typeof N=="function"&&a.removeEventListener(l,N,_),typeof m=="function")){typeof N!="function"&&N!==null&&(c in a?a[c]=null:a.hasAttribute(c)&&a.removeAttribute(c)),a.addEventListener(l,m,_);break e}c in a?a[c]=m:m===!0?a.setAttribute(c,""):ua(a,c,m)}}}function jr(a,l,c){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ln("error",a),ln("load",a);var m=!1,_=!1,N;for(N in c)if(c.hasOwnProperty(N)){var F=c[N];if(F!=null)switch(N){case"src":m=!0;break;case"srcSet":_=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Gt(a,l,N,F,c,null)}}_&&Gt(a,l,"srcSet",c.srcSet,c,null),m&&Gt(a,l,"src",c.src,c,null);return;case"input":ln("invalid",a);var z=N=F=_=null,re=null,ue=null;for(m in c)if(c.hasOwnProperty(m)){var Me=c[m];if(Me!=null)switch(m){case"name":_=Me;break;case"type":F=Me;break;case"checked":re=Me;break;case"defaultChecked":ue=Me;break;case"value":N=Me;break;case"defaultValue":z=Me;break;case"children":case"dangerouslySetInnerHTML":if(Me!=null)throw Error(r(137,l));break;default:Gt(a,l,m,Me,c,null)}}gu(a,N,z,re,ue,F,_,!1),Hc(a);return;case"select":ln("invalid",a),m=F=N=null;for(_ in c)if(c.hasOwnProperty(_)&&(z=c[_],z!=null))switch(_){case"value":N=z;break;case"defaultValue":F=z;break;case"multiple":m=z;default:Gt(a,l,_,z,c,null)}l=N,c=F,a.multiple=!!m,l!=null?Ps(a,!!m,l,!1):c!=null&&Ps(a,!!m,c,!0);return;case"textarea":ln("invalid",a),N=_=m=null;for(F in c)if(c.hasOwnProperty(F)&&(z=c[F],z!=null))switch(F){case"value":m=z;break;case"defaultValue":_=z;break;case"children":N=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(91));break;default:Gt(a,l,F,z,c,null)}vu(a,m,_,N),Hc(a);return;case"option":for(re in c)if(c.hasOwnProperty(re)&&(m=c[re],m!=null))switch(re){case"selected":a.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:Gt(a,l,re,m,c,null)}return;case"dialog":ln("cancel",a),ln("close",a);break;case"iframe":case"object":ln("load",a);break;case"video":case"audio":for(m=0;m<kf.length;m++)ln(kf[m],a);break;case"image":ln("error",a),ln("load",a);break;case"details":ln("toggle",a);break;case"embed":case"source":case"link":ln("error",a),ln("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ue in c)if(c.hasOwnProperty(ue)&&(m=c[ue],m!=null))switch(ue){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Gt(a,l,ue,m,c,null)}return;default:if(yu(l)){for(Me in c)c.hasOwnProperty(Me)&&(m=c[Me],m!==void 0&&qn(a,l,Me,m,c,void 0));return}}for(z in c)c.hasOwnProperty(z)&&(m=c[z],m!=null&&Gt(a,l,z,m,c,null))}function ws(a,l,c,m){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var _=null,N=null,F=null,z=null,re=null,ue=null,Me=null;for(Le in c){var Ve=c[Le];if(c.hasOwnProperty(Le)&&Ve!=null)switch(Le){case"checked":break;case"value":break;case"defaultValue":re=Ve;default:m.hasOwnProperty(Le)||Gt(a,l,Le,null,m,Ve)}}for(var Ae in m){var Le=m[Ae];if(Ve=c[Ae],m.hasOwnProperty(Ae)&&(Le!=null||Ve!=null))switch(Ae){case"type":N=Le;break;case"name":_=Le;break;case"checked":ue=Le;break;case"defaultChecked":Me=Le;break;case"value":F=Le;break;case"defaultValue":z=Le;break;case"children":case"dangerouslySetInnerHTML":if(Le!=null)throw Error(r(137,l));break;default:Le!==Ve&&Gt(a,l,Ae,Le,m,Ve)}}pu(a,F,z,re,ue,Me,N,_);return;case"select":Le=F=z=Ae=null;for(N in c)if(re=c[N],c.hasOwnProperty(N)&&re!=null)switch(N){case"value":break;case"multiple":Le=re;default:m.hasOwnProperty(N)||Gt(a,l,N,null,m,re)}for(_ in m)if(N=m[_],re=c[_],m.hasOwnProperty(_)&&(N!=null||re!=null))switch(_){case"value":Ae=N;break;case"defaultValue":z=N;break;case"multiple":F=N;default:N!==re&&Gt(a,l,_,N,m,re)}l=z,c=F,m=Le,Ae!=null?Ps(a,!!c,Ae,!1):!!m!=!!c&&(l!=null?Ps(a,!!c,l,!0):Ps(a,!!c,c?[]:"",!1));return;case"textarea":Le=Ae=null;for(z in c)if(_=c[z],c.hasOwnProperty(z)&&_!=null&&!m.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:Gt(a,l,z,null,m,_)}for(F in m)if(_=m[F],N=c[F],m.hasOwnProperty(F)&&(_!=null||N!=null))switch(F){case"value":Ae=_;break;case"defaultValue":Le=_;break;case"children":break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(91));break;default:_!==N&&Gt(a,l,F,_,m,N)}xu(a,Ae,Le);return;case"option":for(var _t in c)if(Ae=c[_t],c.hasOwnProperty(_t)&&Ae!=null&&!m.hasOwnProperty(_t))switch(_t){case"selected":a.selected=!1;break;default:Gt(a,l,_t,null,m,Ae)}for(re in m)if(Ae=m[re],Le=c[re],m.hasOwnProperty(re)&&Ae!==Le&&(Ae!=null||Le!=null))switch(re){case"selected":a.selected=Ae&&typeof Ae!="function"&&typeof Ae!="symbol";break;default:Gt(a,l,re,Ae,m,Le)}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 Lt in c)Ae=c[Lt],c.hasOwnProperty(Lt)&&Ae!=null&&!m.hasOwnProperty(Lt)&&Gt(a,l,Lt,null,m,Ae);for(ue in m)if(Ae=m[ue],Le=c[ue],m.hasOwnProperty(ue)&&Ae!==Le&&(Ae!=null||Le!=null))switch(ue){case"children":case"dangerouslySetInnerHTML":if(Ae!=null)throw Error(r(137,l));break;default:Gt(a,l,ue,Ae,m,Le)}return;default:if(yu(l)){for(var Kn in c)Ae=c[Kn],c.hasOwnProperty(Kn)&&Ae!==void 0&&!m.hasOwnProperty(Kn)&&qn(a,l,Kn,void 0,m,Ae);for(Me in m)Ae=m[Me],Le=c[Me],!m.hasOwnProperty(Me)||Ae===Le||Ae===void 0&&Le===void 0||qn(a,l,Me,Ae,m,Le);return}}for(var ge in c)Ae=c[ge],c.hasOwnProperty(ge)&&Ae!=null&&!m.hasOwnProperty(ge)&&Gt(a,l,ge,null,m,Ae);for(Ve in m)Ae=m[Ve],Le=c[Ve],!m.hasOwnProperty(Ve)||Ae===Le||Ae==null&&Le==null||Gt(a,l,Ve,Ae,m,Le)}var Ih=null,Yh=null;function x0(a){return a.nodeType===9?a:a.ownerDocument}function zp(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gp(a,l){if(a===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&l==="foreignObject"?0:a}function Lf(a,l){return a==="textarea"||a==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Hh=null;function Ml(){var a=window.event;return a&&a.type==="popstate"?a===Hh?!1:(Hh=a,!0):(Hh=null,!1)}var $h=typeof setTimeout=="function"?setTimeout:void 0,v0=typeof clearTimeout=="function"?clearTimeout:void 0,Wn=typeof Promise=="function"?Promise:void 0,sr=typeof queueMicrotask=="function"?queueMicrotask:typeof Wn<"u"?function(a){return Wn.resolve(null).then(a).catch(Wp)}:$h;function Wp(a){setTimeout(function(){throw a})}function zh(a,l){var c=l,m=0;do{var _=c.nextSibling;if(a.removeChild(c),_&&_.nodeType===8)if(c=_.data,c==="/$"){if(m===0){a.removeChild(_),zf(l);return}m--}else c!=="$"&&c!=="$?"&&c!=="$!"||m++;c=_}while(c);zf(l)}function Gh(a){var l=a.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var c=l;switch(l=l.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":Gh(c),Se(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}a.removeChild(c)}}function xv(a,l,c,m){for(;a.nodeType===1;){var _=c;if(a.nodeName.toLowerCase()!==l.toLowerCase()){if(!m&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(m){if(!a[Ee])switch(l){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(N=a.getAttribute("rel"),N==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(N!==_.rel||a.getAttribute("href")!==(_.href==null?null:_.href)||a.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin)||a.getAttribute("title")!==(_.title==null?null:_.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(N=a.getAttribute("src"),(N!==(_.src==null?null:_.src)||a.getAttribute("type")!==(_.type==null?null:_.type)||a.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin))&&N&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(l==="input"&&a.type==="hidden"){var N=_.name==null?null:""+_.name;if(_.type==="hidden"&&a.getAttribute("name")===N)return a}else return a;if(a=bi(a.nextSibling),a===null)break}return null}function vv(a,l,c){if(l==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!c||(a=bi(a.nextSibling),a===null))return null;return a}function bi(a){for(;a!=null;a=a.nextSibling){var l=a.nodeType;if(l===1||l===3)break;if(l===8){if(l=a.data,l==="$"||l==="$!"||l==="$?"||l==="F!"||l==="F")break;if(l==="/$")return null}}return a}function Vp(a){a=a.previousSibling;for(var l=0;a;){if(a.nodeType===8){var c=a.data;if(c==="$"||c==="$!"||c==="$?"){if(l===0)return a;l--}else c==="/$"&&l++}a=a.previousSibling}return null}function Wh(a,l,c){switch(l=x0(c),a){case"html":if(a=l.documentElement,!a)throw Error(r(452));return a;case"head":if(a=l.head,!a)throw Error(r(453));return a;case"body":if(a=l.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}var Yr=new Map,y0=new Set;function _0(a){return typeof a.getRootNode=="function"?a.getRootNode():a.ownerDocument}var al=ee.d;ee.d={f:w0,r:Ba,D:yv,C:_v,L:wv,m:Ev,X:Bl,S:qp,M:Wt};function w0(){var a=al.f(),l=u0();return a||l}function Ba(a){var l=tt(a);l!==null&&l.tag===5&&l.type==="form"?np(l):al.r(a)}var Ti=typeof document>"u"?null:document;function Xp(a,l,c){var m=Ti;if(m&&typeof l=="string"&&l){var _=Sa(l);_='link[rel="'+a+'"][href="'+_+'"]',typeof c=="string"&&(_+='[crossorigin="'+c+'"]'),y0.has(_)||(y0.add(_),a={rel:a,crossOrigin:c,href:l},m.querySelector(_)===null&&(l=m.createElement("link"),jr(l,"link",a),Je(l),m.head.appendChild(l)))}}function yv(a){al.D(a),Xp("dns-prefetch",a,null)}function _v(a,l){al.C(a,l),Xp("preconnect",a,l)}function wv(a,l,c){al.L(a,l,c);var m=Ti;if(m&&a&&l){var _='link[rel="preload"][as="'+Sa(l)+'"]';l==="image"&&c&&c.imageSrcSet?(_+='[imagesrcset="'+Sa(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(_+='[imagesizes="'+Sa(c.imageSizes)+'"]')):_+='[href="'+Sa(a)+'"]';var N=_;switch(l){case"style":N=kr(a);break;case"script":N=mc(a)}Yr.has(N)||(a=W({rel:"preload",href:l==="image"&&c&&c.imageSrcSet?void 0:a,as:l},c),Yr.set(N,a),m.querySelector(_)!==null||l==="style"&&m.querySelector(hc(N))||l==="script"&&m.querySelector(pc(N))||(l=m.createElement("link"),jr(l,"link",a),Je(l),m.head.appendChild(l)))}}function Ev(a,l){al.m(a,l);var c=Ti;if(c&&a){var m=l&&typeof l.as=="string"?l.as:"script",_='link[rel="modulepreload"][as="'+Sa(m)+'"][href="'+Sa(a)+'"]',N=_;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":N=mc(a)}if(!Yr.has(N)&&(a=W({rel:"modulepreload",href:a},l),Yr.set(N,a),c.querySelector(_)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(pc(N)))return}m=c.createElement("link"),jr(m,"link",a),Je(m),c.head.appendChild(m)}}}function qp(a,l,c){al.S(a,l,c);var m=Ti;if(m&&a){var _=qe(m).hoistableStyles,N=kr(a);l=l||"default";var F=_.get(N);if(!F){var z={loading:0,preload:null};if(F=m.querySelector(hc(N)))z.loading=5;else{a=W({rel:"stylesheet",href:a,"data-precedence":l},c),(c=Yr.get(N))&&Xh(a,c);var re=F=m.createElement("link");Je(re),jr(re,"link",a),re._p=new Promise(function(ue,Me){re.onload=ue,re.onerror=Me}),re.addEventListener("load",function(){z.loading|=1}),re.addEventListener("error",function(){z.loading|=2}),z.loading|=4,E0(F,l,m)}F={type:"stylesheet",instance:F,count:1,state:z},_.set(N,F)}}}function Bl(a,l){al.X(a,l);var c=Ti;if(c&&a){var m=qe(c).hoistableScripts,_=mc(a),N=m.get(_);N||(N=c.querySelector(pc(_)),N||(a=W({src:a,async:!0},l),(l=Yr.get(_))&&qh(a,l),N=c.createElement("script"),Je(N),jr(N,"link",a),c.head.appendChild(N)),N={type:"script",instance:N,count:1,state:null},m.set(_,N))}}function Wt(a,l){al.M(a,l);var c=Ti;if(c&&a){var m=qe(c).hoistableScripts,_=mc(a),N=m.get(_);N||(N=c.querySelector(pc(_)),N||(a=W({src:a,async:!0,type:"module"},l),(l=Yr.get(_))&&qh(a,l),N=c.createElement("script"),Je(N),jr(N,"link",a),c.head.appendChild(N)),N={type:"script",instance:N,count:1,state:null},m.set(_,N))}}function Vh(a,l,c,m){var _=(_=rt.current)?_0(_):null;if(!_)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(l=kr(c.href),c=qe(_).hoistableStyles,m=c.get(l),m||(m={type:"style",instance:null,count:0,state:null},c.set(l,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){a=kr(c.href);var N=qe(_).hoistableStyles,F=N.get(a);if(F||(_=_.ownerDocument||_,F={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},N.set(a,F),(N=_.querySelector(hc(a)))&&!N._p&&(F.instance=N,F.state.loading=5),Yr.has(a)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},Yr.set(a,c),N||_n(_,a,c,F.state))),l&&m===null)throw Error(r(528,""));return F}if(l&&m!==null)throw Error(r(529,""));return null;case"script":return l=c.async,c=c.src,typeof c=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=mc(c),c=qe(_).hoistableScripts,m=c.get(l),m||(m={type:"script",instance:null,count:0,state:null},c.set(l,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function kr(a){return'href="'+Sa(a)+'"'}function hc(a){return'link[rel="stylesheet"]['+a+"]"}function Kp(a){return W({},a,{"data-precedence":a.precedence,precedence:null})}function _n(a,l,c,m){a.querySelector('link[rel="preload"][as="style"]['+l+"]")?m.loading=1:(l=a.createElement("link"),m.preload=l,l.addEventListener("load",function(){return m.loading|=1}),l.addEventListener("error",function(){return m.loading|=2}),jr(l,"link",c),Je(l),a.head.appendChild(l))}function mc(a){return'[src="'+Sa(a)+'"]'}function pc(a){return"script[async]"+a}function Mf(a,l,c){if(l.count++,l.instance===null)switch(l.type){case"style":var m=a.querySelector('style[data-href~="'+Sa(c.href)+'"]');if(m)return l.instance=m,Je(m),m;var _=W({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return m=(a.ownerDocument||a).createElement("style"),Je(m),jr(m,"style",_),E0(m,c.precedence,a),l.instance=m;case"stylesheet":_=kr(c.href);var N=a.querySelector(hc(_));if(N)return l.state.loading|=4,l.instance=N,Je(N),N;m=Kp(c),(_=Yr.get(_))&&Xh(m,_),N=(a.ownerDocument||a).createElement("link"),Je(N);var F=N;return F._p=new Promise(function(z,re){F.onload=z,F.onerror=re}),jr(N,"link",m),l.state.loading|=4,E0(N,c.precedence,a),l.instance=N;case"script":return N=mc(c.src),(_=a.querySelector(pc(N)))?(l.instance=_,Je(_),_):(m=c,(_=Yr.get(N))&&(m=W({},c),qh(m,_)),a=a.ownerDocument||a,_=a.createElement("script"),Je(_),jr(_,"link",m),a.head.appendChild(_),l.instance=_);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&!(l.state.loading&4)&&(m=l.instance,l.state.loading|=4,E0(m,c.precedence,a));return l.instance}function E0(a,l,c){for(var m=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),_=m.length?m[m.length-1]:null,N=_,F=0;F<m.length;F++){var z=m[F];if(z.dataset.precedence===l)N=z;else if(N!==_)break}N?N.parentNode.insertBefore(a,N.nextSibling):(l=c.nodeType===9?c.head:c,l.insertBefore(a,l.firstChild))}function Xh(a,l){a.crossOrigin==null&&(a.crossOrigin=l.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=l.referrerPolicy),a.title==null&&(a.title=l.title)}function qh(a,l){a.crossOrigin==null&&(a.crossOrigin=l.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=l.referrerPolicy),a.integrity==null&&(a.integrity=l.integrity)}var S0=null;function Zp(a,l,c){if(S0===null){var m=new Map,_=S0=new Map;_.set(c,m)}else _=S0,m=_.get(c),m||(m=new Map,_.set(c,m));if(m.has(a))return m;for(m.set(a,null),c=c.getElementsByTagName(a),_=0;_<c.length;_++){var N=c[_];if(!(N[Ee]||N[Y]||a==="link"&&N.getAttribute("rel")==="stylesheet")&&N.namespaceURI!=="http://www.w3.org/2000/svg"){var F=N.getAttribute(l)||"";F=a+F;var z=m.get(F);z?z.push(N):m.set(F,[N])}}return m}function Qp(a,l,c){a=a.ownerDocument||a,a.head.insertBefore(c,l==="title"?a.querySelector("head > title"):null)}function Sv(a,l,c){if(c===1||l.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return a=l.disabled,typeof l.precedence=="string"&&a==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function Jp(a){return!(a.type==="stylesheet"&&!(a.state.loading&3))}var Bf=null;function bv(){}function Tv(a,l,c){if(Bf===null)throw Error(r(475));var m=Bf;if(l.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&!(l.state.loading&4)){if(l.instance===null){var _=kr(c.href),N=a.querySelector(hc(_));if(N){a=N._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(m.count++,m=b0.bind(m),a.then(m,m)),l.state.loading|=4,l.instance=N,Je(N);return}N=a.ownerDocument||a,c=Kp(c),(_=Yr.get(_))&&Xh(c,_),N=N.createElement("link"),Je(N);var F=N;F._p=new Promise(function(z,re){F.onload=z,F.onerror=re}),jr(N,"link",c),l.instance=N}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(l,a),(a=l.state.preload)&&!(l.state.loading&3)&&(m.count++,l=b0.bind(m),a.addEventListener("load",l),a.addEventListener("error",l))}}function Nv(){if(Bf===null)throw Error(r(475));var a=Bf;return a.stylesheets&&a.count===0&&Kh(a,a.stylesheets),0<a.count?function(l){var c=setTimeout(function(){if(a.stylesheets&&Kh(a,a.stylesheets),a.unsuspend){var m=a.unsuspend;a.unsuspend=null,m()}},6e4);return a.unsuspend=l,function(){a.unsuspend=null,clearTimeout(c)}}:null}function b0(){if(this.count--,this.count===0){if(this.stylesheets)Kh(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var gc=null;function Kh(a,l){a.stylesheets=null,a.unsuspend!==null&&(a.count++,gc=new Map,l.forEach(Zh,a),gc=null,b0.call(a))}function Zh(a,l){if(!(l.state.loading&4)){var c=gc.get(a);if(c)var m=c.get(null);else{c=new Map,gc.set(a,c);for(var _=a.querySelectorAll("link[data-precedence],style[data-precedence]"),N=0;N<_.length;N++){var F=_[N];(F.nodeName==="LINK"||F.getAttribute("media")!=="not all")&&(c.set(F.dataset.precedence,F),m=F)}m&&c.set(null,m)}_=l.instance,F=_.getAttribute("data-precedence"),N=c.get(F)||m,N===m&&c.set(null,_),c.set(F,_),this.count++,m=b0.bind(this),_.addEventListener("load",m),_.addEventListener("error",m),N?N.parentNode.insertBefore(_,N.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(_,a.firstChild)),l.state.loading|=4}}var Pf={$$typeof:w,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Cv(a,l,c,m,_,N,F,z){this.tag=1,this.containerInfo=a,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=De(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=De(0),this.hiddenUpdates=De(null),this.identifierPrefix=m,this.onUncaughtError=_,this.onCaughtError=N,this.onRecoverableError=F,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function eg(a,l,c,m,_,N,F,z,re,ue,Me,Ve){return a=new Cv(a,l,c,F,z,re,ue,Ve),l=1,N===!0&&(l|=24),N=Fa(3,null,null,l),a.current=N,N.stateNode=a,l=Rd(),l.refCount++,a.pooledCache=l,l.refCount++,N.memoizedState={element:m,isDehydrated:c,cache:l},xf(N),a}function _r(a){return a?(a=$s,a):$s}function ea(a,l,c,m,_,N){_=_r(_),m.context===null?m.context=_:m.pendingContext=_,m=_i(l),m.payload={element:c},N=N===void 0?null:N,N!==null&&(m.callback=N),c=Oa(a,m,l),c!==null&&(Ir(c,a,l),St(c,a,l))}function tg(a,l){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var c=a.retryLane;a.retryLane=c!==0&&c<l?c:l}}function Qh(a,l){tg(a,l),(a=a.alternate)&&tg(a,l)}function ng(a){if(a.tag===13){var l=di(a,67108864);l!==null&&Ir(l,a,67108864),Qh(a,67108864)}}var Uf=!0;function Av(a,l,c,m){var _=U.T;U.T=null;var N=ee.p;try{ee.p=2,Jh(a,l,c,m)}finally{ee.p=N,U.T=_}}function Rv(a,l,c,m){var _=U.T;U.T=null;var N=ee.p;try{ee.p=8,Jh(a,l,c,m)}finally{ee.p=N,U.T=_}}function Jh(a,l,c,m){if(Uf){var _=T0(m);if(_===null)Uh(a,l,m,N0,c),ag(a,m);else if(Dv(_,a,l,c,m))m.stopPropagation();else if(ag(a,m),l&4&&-1<Ov.indexOf(a)){for(;_!==null;){var N=tt(_);if(N!==null)switch(N.tag){case 3:if(N=N.stateNode,N.current.memoizedState.isDehydrated){var F=nr(N.pendingLanes);if(F!==0){var z=N;for(z.pendingLanes|=2,z.entangledLanes|=2;F;){var re=1<<31-ut(F);z.entanglements[1]|=re,F&=~re}Si(N),!(Xn&6)&&(c0=$t()+500,so(0))}}break;case 13:z=di(N,2),z!==null&&Ir(z,N,2),u0(),Qh(N,2)}if(N=T0(m),N===null&&Uh(a,l,m,N0,c),N===_)break;_=N}_!==null&&m.stopPropagation()}else Uh(a,l,m,null,c)}}function T0(a){return a=fd(a),e1(a)}var N0=null;function e1(a){if(N0=null,a=Ie(a),a!==null){var l=Ne(a);if(l===null)a=null;else{var c=l.tag;if(c===13){if(a=$e(l),a!==null)return a;a=null}else if(c===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;a=null}else l!==a&&(a=null)}}return N0=a,null}function rg(a){switch(a){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(cn()){case yt:return 2;case dn:return 8;case nn:case Lr:return 32;case Yn:return 268435456;default:return 32}default:return 32}}var C0=!1,Pl=null,Es=null,Ss=null,If=new Map,Yf=new Map,Pa=[],Ov="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 ag(a,l){switch(a){case"focusin":case"focusout":Pl=null;break;case"dragenter":case"dragleave":Es=null;break;case"mouseover":case"mouseout":Ss=null;break;case"pointerover":case"pointerout":If.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yf.delete(l.pointerId)}}function Hf(a,l,c,m,_,N){return a===null||a.nativeEvent!==N?(a={blockedOn:l,domEventName:c,eventSystemFlags:m,nativeEvent:N,targetContainers:[_]},l!==null&&(l=tt(l),l!==null&&ng(l)),a):(a.eventSystemFlags|=m,l=a.targetContainers,_!==null&&l.indexOf(_)===-1&&l.push(_),a)}function Dv(a,l,c,m,_){switch(l){case"focusin":return Pl=Hf(Pl,a,l,c,m,_),!0;case"dragenter":return Es=Hf(Es,a,l,c,m,_),!0;case"mouseover":return Ss=Hf(Ss,a,l,c,m,_),!0;case"pointerover":var N=_.pointerId;return If.set(N,Hf(If.get(N)||null,a,l,c,m,_)),!0;case"gotpointercapture":return N=_.pointerId,Yf.set(N,Hf(Yf.get(N)||null,a,l,c,m,_)),!0}return!1}function ig(a){var l=Ie(a.target);if(l!==null){var c=Ne(l);if(c!==null){if(l=c.tag,l===13){if(l=$e(c),l!==null){a.blockedOn=l,M(a.priority,function(){if(c.tag===13){var m=Ma(),_=di(c,m);_!==null&&Ir(_,c,m),Qh(c,m)}});return}}else if(l===3&&c.stateNode.current.memoizedState.isDehydrated){a.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}a.blockedOn=null}function $f(a){if(a.blockedOn!==null)return!1;for(var l=a.targetContainers;0<l.length;){var c=T0(a.nativeEvent);if(c===null){c=a.nativeEvent;var m=new c.constructor(c.type,c);cd=m,c.target.dispatchEvent(m),cd=null}else return l=tt(c),l!==null&&ng(l),a.blockedOn=c,!1;l.shift()}return!0}function t1(a,l,c){$f(a)&&c.delete(l)}function jv(){C0=!1,Pl!==null&&$f(Pl)&&(Pl=null),Es!==null&&$f(Es)&&(Es=null),Ss!==null&&$f(Ss)&&(Ss=null),If.forEach(t1),Yf.forEach(t1)}function A0(a,l){a.blockedOn===l&&(a.blockedOn=null,C0||(C0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,jv)))}var R0=null;function lg(a){R0!==a&&(R0=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){R0===a&&(R0=null);for(var l=0;l<a.length;l+=3){var c=a[l],m=a[l+1],_=a[l+2];if(typeof m!="function"){if(e1(m||c)===null)continue;break}var N=tt(c);N!==null&&(a.splice(l,3),l-=3,ff(N,{pending:!0,data:_,method:c.method,action:m},m,_))}}))}function zf(a){function l(re){return A0(re,a)}Pl!==null&&A0(Pl,a),Es!==null&&A0(Es,a),Ss!==null&&A0(Ss,a),If.forEach(l),Yf.forEach(l);for(var c=0;c<Pa.length;c++){var m=Pa[c];m.blockedOn===a&&(m.blockedOn=null)}for(;0<Pa.length&&(c=Pa[0],c.blockedOn===null);)ig(c),c.blockedOn===null&&Pa.shift();if(c=(a.ownerDocument||a).$$reactFormReplay,c!=null)for(m=0;m<c.length;m+=3){var _=c[m],N=c[m+1],F=_[G]||null;if(typeof N=="function")F||lg(c);else if(F){var z=null;if(N&&N.hasAttribute("formAction")){if(_=N,F=N[G]||null)z=F.formAction;else if(e1(_)!==null)continue}else z=F.action;typeof z=="function"?c[m+1]=z:(c.splice(m,3),m-=3),lg(c)}}}function n1(a){this._internalRoot=a}O0.prototype.render=n1.prototype.render=function(a){var l=this._internalRoot;if(l===null)throw Error(r(409));var c=l.current,m=Ma();ea(c,m,a,l,null,null)},O0.prototype.unmount=n1.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var l=a.containerInfo;a.tag===0&&Ll(),ea(a.current,2,null,a,null,null),u0(),l[Z]=null}};function O0(a){this._internalRoot=a}O0.prototype.unstable_scheduleHydration=function(a){if(a){var l=pt();a={blockedOn:null,target:a,priority:l};for(var c=0;c<Pa.length&&l!==0&&l<Pa[c].priority;c++);Pa.splice(c,0,a),c===0&&ig(a)}};var sg=t.version;if(sg!=="19.0.0")throw Error(r(527,sg,"19.0.0"));ee.findDOMNode=function(a){var l=a._reactInternals;if(l===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=et(l),a=a!==null?J(a):null,a=a===null?null:a.stateNode,a};var kv={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:U,findFiberByHostInstance:Ie,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var D0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!D0.isDisabled&&D0.supportsFiber)try{er=D0.inject(kv),En=D0}catch{}}return a1.createRoot=function(a,l){if(!i(a))throw Error(r(299));var c=!1,m="",_=Al,N=rp,F=Rl,z=null;return l!=null&&(l.unstable_strictMode===!0&&(c=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(_=l.onUncaughtError),l.onCaughtError!==void 0&&(N=l.onCaughtError),l.onRecoverableError!==void 0&&(F=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(z=l.unstable_transitionCallbacks)),l=eg(a,1,!1,null,null,c,m,_,N,F,z,null),a[Z]=l.current,Ph(a.nodeType===8?a.parentNode:a),new n1(l)},a1.hydrateRoot=function(a,l,c){if(!i(a))throw Error(r(299));var m=!1,_="",N=Al,F=rp,z=Rl,re=null,ue=null;return c!=null&&(c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(_=c.identifierPrefix),c.onUncaughtError!==void 0&&(N=c.onUncaughtError),c.onCaughtError!==void 0&&(F=c.onCaughtError),c.onRecoverableError!==void 0&&(z=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(re=c.unstable_transitionCallbacks),c.formState!==void 0&&(ue=c.formState)),l=eg(a,1,!0,l,c??null,m,_,N,F,z,re,ue),l.context=_r(null),c=l.current,m=Ma(),_=_i(m),_.callback=null,Oa(c,_,m),l.current.lanes=m,Ge(l,m),Si(l),a[Z]=l.current,Ph(a),new O0(l)},a1.version="19.0.0",a1}var f_;function dT(){if(f_)return Iv.exports;f_=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(),Iv.exports=uT(),Iv.exports}var hT=dT(),$v={exports:{}},zv={};/**
- * @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 u_;function mT(){if(u_)return zv;u_=1;var e=$2().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return zv.c=function(t){return e.H.useMemoCache(t)},zv}var d_;function pT(){return d_||(d_=1,$v.exports=mT()),$v.exports}var Ke=pT(),i1={},h_;function gT(){if(h_)return i1;h_=1,Object.defineProperty(i1,"__esModule",{value:!0}),i1.parse=o,i1.serialize=p;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,s=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function o(v,w){const b=new s,S=v.length;if(S<2)return b;const T=(w==null?void 0:w.decode)||x;let C=0;do{const R=v.indexOf("=",C);if(R===-1)break;const A=v.indexOf(";",C),j=A===-1?S:A;if(R>j){C=v.lastIndexOf(";",R-1)+1;continue}const O=u(v,C,R),B=d(v,R,O),L=v.slice(O,B);if(b[L]===void 0){let I=u(v,R+1,j),U=d(v,j,I);const W=T(v.slice(I,U));b[L]=W}C=j+1}while(C<S);return b}function u(v,w,b){do{const S=v.charCodeAt(w);if(S!==32&&S!==9)return w}while(++w<b);return b}function d(v,w,b){for(;w>b;){const S=v.charCodeAt(--w);if(S!==32&&S!==9)return w+1}return b}function p(v,w,b){const S=(b==null?void 0:b.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const T=S(w);if(!t.test(T))throw new TypeError(`argument val is invalid: ${w}`);let C=v+"="+T;if(!b)return C;if(b.maxAge!==void 0){if(!Number.isInteger(b.maxAge))throw new TypeError(`option maxAge is invalid: ${b.maxAge}`);C+="; Max-Age="+b.maxAge}if(b.domain){if(!n.test(b.domain))throw new TypeError(`option domain is invalid: ${b.domain}`);C+="; Domain="+b.domain}if(b.path){if(!r.test(b.path))throw new TypeError(`option path is invalid: ${b.path}`);C+="; Path="+b.path}if(b.expires){if(!y(b.expires)||!Number.isFinite(b.expires.valueOf()))throw new TypeError(`option expires is invalid: ${b.expires}`);C+="; Expires="+b.expires.toUTCString()}if(b.httpOnly&&(C+="; HttpOnly"),b.secure&&(C+="; Secure"),b.partitioned&&(C+="; Partitioned"),b.priority)switch(typeof b.priority=="string"?b.priority.toLowerCase():void 0){case"low":C+="; Priority=Low";break;case"medium":C+="; Priority=Medium";break;case"high":C+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${b.priority}`)}if(b.sameSite)switch(typeof b.sameSite=="string"?b.sameSite.toLowerCase():b.sameSite){case!0:case"strict":C+="; SameSite=Strict";break;case"lax":C+="; SameSite=Lax";break;case"none":C+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${b.sameSite}`)}return C}function x(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function y(v){return i.call(v)==="[object Date]"}return i1}gT();/**
- * 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 m_="popstate";function xT(e={}){function t(r,i){let{pathname:s,search:o,hash:u}=r.location;return R1("",{pathname:s,search:o,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Dc(i)}return yT(t,n,null,e)}function mn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Gr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function vT(){return Math.random().toString(36).substring(2,10)}function p_(e,t){return{usr:e.state,key:e.key,idx:t}}function R1(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Mc(t):t,state:n,key:t&&t.key||r||vT()}}function Dc({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Mc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function yT(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,u="POP",d=null,p=x();p==null&&(p=0,o.replaceState({...o.state,idx:p},""));function x(){return(o.state||{idx:null}).idx}function y(){u="POP";let T=x(),C=T==null?null:T-p;p=T,d&&d({action:u,location:S.location,delta:C})}function v(T,C){u="PUSH";let R=R1(S.location,T,C);p=x()+1;let A=p_(R,p),j=S.createHref(R);try{o.pushState(A,"",j)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;i.location.assign(j)}s&&d&&d({action:u,location:S.location,delta:1})}function w(T,C){u="REPLACE";let R=R1(S.location,T,C);p=x();let A=p_(R,p),j=S.createHref(R);o.replaceState(A,"",j),s&&d&&d({action:u,location:S.location,delta:0})}function b(T){let C=i.location.origin!=="null"?i.location.origin:i.location.href,R=typeof T=="string"?T:Dc(T);return R=R.replace(/ $/,"%20"),mn(C,`No window.location.(origin|href) available to create URL for href: ${R}`),new URL(R,C)}let S={get action(){return u},get location(){return e(i,o)},listen(T){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(m_,y),d=T,()=>{i.removeEventListener(m_,y),d=null}},createHref(T){return t(i,T)},createURL:b,encodeLocation(T){let C=b(T);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:v,replace:w,go(T){return o.go(T)}};return S}var _T=new Set(["lazy","caseSensitive","path","id","index","children"]);function wT(e){return e.index===!0}function Dg(e,t,n=[],r={}){return e.map((i,s)=>{let o=[...n,String(s)],u=typeof i.id=="string"?i.id:o.join("-");if(mn(i.index!==!0||!i.children,"Cannot specify children on an index route"),mn(!r[u],`Found a route id collision on id "${u}".  Route id's must be globally unique within Data Router usages`),wT(i)){let d={...i,...t(i),id:u};return r[u]=d,d}else{let d={...i,...t(i),id:u,children:void 0};return r[u]=d,i.children&&(d.children=Dg(i.children,t,o,r)),d}})}function Ec(e,t,n="/"){return bg(e,t,n,!1)}function bg(e,t,n,r){let i=typeof t=="string"?Mc(t):t,s=Fi(i.pathname||"/",n);if(s==null)return null;let o=SE(e);ST(o);let u=null;for(let d=0;u==null&&d<o.length;++d){let p=FT(s);u=jT(o[d],p,r)}return u}function ET(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function SE(e,t=[],n=[],r=""){let i=(s,o,u)=>{let d={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};d.relativePath.startsWith("/")&&(mn(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length));let p=Os([r,d.relativePath]),x=n.concat(d);s.children&&s.children.length>0&&(mn(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),SE(s.children,t,x,p)),!(s.path==null&&!s.index)&&t.push({path:p,score:OT(p,s.index),routesMeta:x})};return e.forEach((s,o)=>{var u;if(s.path===""||!((u=s.path)!=null&&u.includes("?")))i(s,o);else for(let d of bE(s.path))i(s,o,d)}),t}function bE(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=bE(r.join("/")),u=[];return u.push(...o.map(d=>d===""?s:[s,d].join("/"))),i&&u.push(...o),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function ST(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:DT(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var bT=/^:[\w-]+$/,TT=3,NT=2,CT=1,AT=10,RT=-2,g_=e=>e==="*";function OT(e,t){let n=e.split("/"),r=n.length;return n.some(g_)&&(r+=RT),t&&(r+=NT),n.filter(i=>!g_(i)).reduce((i,s)=>i+(bT.test(s)?TT:s===""?CT:AT),r)}function DT(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function jT(e,t,n=!1){let{routesMeta:r}=e,i={},s="/",o=[];for(let u=0;u<r.length;++u){let d=r[u],p=u===r.length-1,x=s==="/"?t:t.slice(s.length)||"/",y=jg({path:d.relativePath,caseSensitive:d.caseSensitive,end:p},x),v=d.route;if(!y&&p&&n&&!r[r.length-1].route.index&&(y=jg({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},x)),!y)return null;Object.assign(i,y.params),o.push({params:i,pathname:Os([s,y.pathname]),pathnameBase:BT(Os([s,y.pathnameBase])),route:v}),y.pathnameBase!=="/"&&(s=Os([s,y.pathnameBase]))}return o}function jg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=kT(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:r.reduce((p,{paramName:x,isOptional:y},v)=>{if(x==="*"){let b=u[v]||"";o=s.slice(0,s.length-b.length).replace(/(.)\/+$/,"$1")}const w=u[v];return y&&!w?p[x]=void 0:p[x]=(w||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:o,pattern:e}}function kT(e,t=!1,n=!0){Gr(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 r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function FT(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Gr(!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 Fi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function LT(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Mc(e):e;return{pathname:n?n.startsWith("/")?n:MT(n,t):t,search:PT(r),hash:UT(i)}}function MT(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Gv(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function TE(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function z2(e){let t=TE(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function G2(e,t,n,r=!1){let i;typeof e=="string"?i=Mc(e):(i={...e},mn(!i.pathname||!i.pathname.includes("?"),Gv("?","pathname","search",i)),mn(!i.pathname||!i.pathname.includes("#"),Gv("#","pathname","hash",i)),mn(!i.search||!i.search.includes("#"),Gv("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,u;if(o==null)u=n;else{let y=t.length-1;if(!r&&o.startsWith("..")){let v=o.split("/");for(;v[0]==="..";)v.shift(),y-=1;i.pathname=v.join("/")}u=y>=0?t[y]:"/"}let d=LT(i,u),p=o&&o!=="/"&&o.endsWith("/"),x=(s||o===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(p||x)&&(d.pathname+="/"),d}var Os=e=>e.join("/").replace(/\/\/+/g,"/"),BT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),PT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,UT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,kg=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function ix(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var NE=["POST","PUT","PATCH","DELETE"],IT=new Set(NE),YT=["GET",...NE],HT=new Set(YT),$T=new Set([301,302,303,307,308]),zT=new Set([307,308]),Wv={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},GT={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},P0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},W2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,WT=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),CE="remix-router-transitions",AE=Symbol("ResetLoaderData");function VT(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";mn(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.mapRouteProperties||WT,i={},s=Dg(e.routes,r,void 0,i),o,u=e.basename||"/",d=e.dataStrategy||QT,p=e.patchRoutesOnNavigation,x={...e.future},y=null,v=new Set,w=null,b=null,S=null,T=e.hydrationData!=null,C=Ec(s,e.history.location,u),R=null;if(C==null&&!p){let le=ll(404,{pathname:e.history.location.pathname}),{matches:ve,route:De}=C_(s);C=ve,R={[De.id]:le}}C&&!e.hydrationData&&nr(C,s,e.history.location.pathname).active&&(C=null);let A;if(C)if(C.some(le=>le.route.lazy))A=!1;else if(!C.some(le=>le.route.loader))A=!0;else{let le=e.hydrationData?e.hydrationData.loaderData:null,ve=e.hydrationData?e.hydrationData.errors:null;if(ve){let De=C.findIndex(Ge=>ve[Ge.route.id]!==void 0);A=C.slice(0,De+1).every(Ge=>!E2(Ge.route,le,ve))}else A=C.every(De=>!E2(De.route,le,ve))}else{A=!1,C=[];let le=nr(null,s,e.history.location.pathname);le.active&&le.matches&&(C=le.matches)}let j,O={historyAction:e.history.action,location:e.history.location,matches:C,initialized:A,navigation:Wv,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||R,fetchers:new Map,blockers:new Map},B="POP",L=!1,I,U=!1,W=new Map,X=null,te=!1,ne=!1,_e=new Set,ye=new Map,ce=0,Te=-1,Ne=new Map,$e=new Set,Pe=new Map,et=new Map,J=new Set,ie=new Map,ee,K=null;function xe(){if(y=e.history.listen(({action:le,location:ve,delta:De})=>{if(ee){ee(),ee=void 0;return}Gr(ie.size===0||De!=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 Ge=ut({currentLocation:O.location,nextLocation:ve,historyAction:le});if(Ge&&De!=null){let st=new Promise(vt=>{ee=vt});e.history.go(De*-1),Pn(Ge,{state:"blocked",location:ve,proceed(){Pn(Ge,{state:"proceeding",proceed:void 0,reset:void 0,location:ve}),st.then(()=>e.history.go(De))},reset(){let vt=new Map(O.blockers);vt.set(Ge,P0),me({blockers:vt})}});return}return rt(le,ve)}),n){cN(t,W);let le=()=>fN(t,W);t.addEventListener("pagehide",le),X=()=>t.removeEventListener("pagehide",le)}return O.initialized||rt("POP",O.location,{initialHydration:!0}),j}function Fe(){y&&y(),X&&X(),v.clear(),I&&I.abort(),O.fetchers.forEach((le,ve)=>nn(ve)),O.blockers.forEach((le,ve)=>br(ve))}function Ce(le){return v.add(le),()=>v.delete(le)}function me(le,ve={}){O={...O,...le};let De=[],Ge=[];O.fetchers.forEach((st,vt)=>{st.state==="idle"&&(J.has(vt)?De.push(vt):Ge.push(vt))}),J.forEach(st=>{!O.fetchers.has(st)&&!ye.has(st)&&De.push(st)}),[...v].forEach(st=>st(O,{deletedFetchers:De,viewTransitionOpts:ve.viewTransitionOpts,flushSync:ve.flushSync===!0})),De.forEach(st=>nn(st)),Ge.forEach(st=>O.fetchers.delete(st))}function oe(le,ve,{flushSync:De}={}){var M,V;let Ge=O.actionData!=null&&O.navigation.formMethod!=null&&$l(O.navigation.formMethod)&&O.navigation.state==="loading"&&((M=le.state)==null?void 0:M._isRedirect)!==!0,st;ve.actionData?Object.keys(ve.actionData).length>0?st=ve.actionData:st=null:Ge?st=O.actionData:st=null;let vt=ve.loaderData?T_(O.loaderData,ve.loaderData,ve.matches||[],ve.errors):O.loaderData,Nt=O.blockers;Nt.size>0&&(Nt=new Map(Nt),Nt.forEach((Y,G)=>Nt.set(G,P0)));let ht=L===!0||O.navigation.formMethod!=null&&$l(O.navigation.formMethod)&&((V=le.state)==null?void 0:V._isRedirect)!==!0;o&&(s=o,o=void 0),te||B==="POP"||(B==="PUSH"?e.history.push(le,le.state):B==="REPLACE"&&e.history.replace(le,le.state));let pt;if(B==="POP"){let Y=W.get(O.location.pathname);Y&&Y.has(le.pathname)?pt={currentLocation:O.location,nextLocation:le}:W.has(le.pathname)&&(pt={currentLocation:le,nextLocation:O.location})}else if(U){let Y=W.get(O.location.pathname);Y?Y.add(le.pathname):(Y=new Set([le.pathname]),W.set(O.location.pathname,Y)),pt={currentLocation:O.location,nextLocation:le}}me({...ve,actionData:st,loaderData:vt,historyAction:B,location:le,initialized:!0,navigation:Wv,revalidation:"idle",restoreScrollPosition:Wr(le,ve.matches||O.matches),preventScrollReset:ht,blockers:Nt},{viewTransitionOpts:pt,flushSync:De===!0}),B="POP",L=!1,U=!1,te=!1,ne=!1,K==null||K.resolve(),K=null}async function Be(le,ve){if(typeof le=="number"){e.history.go(le);return}let De=w2(O.location,O.matches,u,le,ve==null?void 0:ve.fromRouteId,ve==null?void 0:ve.relative),{path:Ge,submission:st,error:vt}=x_(!1,De,ve),Nt=O.location,ht=R1(O.location,Ge,ve&&ve.state);ht={...ht,...e.history.encodeLocation(ht)};let pt=ve&&ve.replace!=null?ve.replace:void 0,M="PUSH";pt===!0?M="REPLACE":pt===!1||st!=null&&$l(st.formMethod)&&st.formAction===O.location.pathname+O.location.search&&(M="REPLACE");let V=ve&&"preventScrollReset"in ve?ve.preventScrollReset===!0:void 0,Y=(ve&&ve.flushSync)===!0,G=ut({currentLocation:Nt,nextLocation:ht,historyAction:M});if(G){Pn(G,{state:"blocked",location:ht,proceed(){Pn(G,{state:"proceeding",proceed:void 0,reset:void 0,location:ht}),Be(le,ve)},reset(){let Z=new Map(O.blockers);Z.set(G,P0),me({blockers:Z})}});return}await rt(M,ht,{submission:st,pendingError:vt,preventScrollReset:V,replace:ve&&ve.replace,enableViewTransition:ve&&ve.viewTransition,flushSync:Y})}function Xe(){K||(K=uN()),$t(),me({revalidation:"loading"});let le=K.promise;return O.navigation.state==="submitting"?le:O.navigation.state==="idle"?(rt(O.historyAction,O.location,{startUninterruptedRevalidation:!0}),le):(rt(B||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:U===!0}),le)}async function rt(le,ve,De){I&&I.abort(),I=null,B=le,te=(De&&De.startUninterruptedRevalidation)===!0,ca(O.location,O.matches),L=(De&&De.preventScrollReset)===!0,U=(De&&De.enableViewTransition)===!0;let Ge=o||s,st=De&&De.overrideNavigation,vt=Ec(Ge,ve,u),Nt=(De&&De.flushSync)===!0,ht=nr(vt,Ge,ve.pathname);if(ht.active&&ht.matches&&(vt=ht.matches),!vt){let{error:Q,notFoundMatches:he,route:Re}=tr(ve.pathname);oe(ve,{matches:he,loaderData:{},errors:{[Re.id]:Q}},{flushSync:Nt});return}if(O.initialized&&!ne&&aN(O.location,ve)&&!(De&&De.submission&&$l(De.submission.formMethod))){oe(ve,{matches:vt},{flushSync:Nt});return}I=new AbortController;let pt=j0(e.history,ve,I.signal,De&&De.submission),M;if(De&&De.pendingError)M=[Vf(vt).route.id,{type:"error",error:De.pendingError}];else if(De&&De.submission&&$l(De.submission.formMethod)){let Q=await Qe(pt,ve,De.submission,vt,ht.active,{replace:De.replace,flushSync:Nt});if(Q.shortCircuited)return;if(Q.pendingActionResult){let[he,Re]=Q.pendingActionResult;if(Oi(Re)&&ix(Re.error)&&Re.error.status===404){I=null,oe(ve,{matches:Q.matches,loaderData:{},errors:{[he]:Re.error}});return}}vt=Q.matches||vt,M=Q.pendingActionResult,st=Vv(ve,De.submission),Nt=!1,ht.active=!1,pt=j0(e.history,pt.url,pt.signal)}let{shortCircuited:V,matches:Y,loaderData:G,errors:Z}=await ft(pt,ve,vt,ht.active,st,De&&De.submission,De&&De.fetcherSubmission,De&&De.replace,De&&De.initialHydration===!0,Nt,M);V||(I=null,oe(ve,{matches:Y||vt,...N_(M),loaderData:G,errors:Z}))}async function Qe(le,ve,De,Ge,st,vt={}){$t();let Nt=sN(ve,De);if(me({navigation:Nt},{flushSync:vt.flushSync===!0}),st){let M=await Mr(Ge,ve.pathname,le.signal);if(M.type==="aborted")return{shortCircuited:!0};if(M.type==="error"){let V=Vf(M.partialMatches).route.id;return{matches:M.partialMatches,pendingActionResult:[V,{type:"error",error:M.error}]}}else if(M.matches)Ge=M.matches;else{let{notFoundMatches:V,error:Y,route:G}=tr(ve.pathname);return{matches:V,pendingActionResult:[G.id,{type:"error",error:Y}]}}}let ht,pt=m1(Ge,ve);if(!pt.route.action&&!pt.route.lazy)ht={type:"error",error:ll(405,{method:le.method,pathname:ve.pathname,routeId:pt.route.id})};else if(ht=(await An("action",O,le,[pt],Ge,null))[pt.route.id],le.signal.aborted)return{shortCircuited:!0};if(Zf(ht)){let M;return vt&&vt.replace!=null?M=vt.replace:M=E_(ht.response.headers.get("Location"),new URL(le.url),u)===O.location.pathname+O.location.search,await Bt(le,ht,!0,{submission:De,replace:M}),{shortCircuited:!0}}if(Oi(ht)){let M=Vf(Ge,pt.route.id);return(vt&&vt.replace)!==!0&&(B="PUSH"),{matches:Ge,pendingActionResult:[M.route.id,ht]}}return{matches:Ge,pendingActionResult:[pt.route.id,ht]}}async function ft(le,ve,De,Ge,st,vt,Nt,ht,pt,M,V){let Y=st||Vv(ve,vt),G=vt||Nt||R_(Y),Z=!te&&!pt;if(Ge){if(Z){let Ot=xt(V);me({navigation:Y,...Ot!==void 0?{actionData:Ot}:{}},{flushSync:M})}let Tt=await Mr(De,ve.pathname,le.signal);if(Tt.type==="aborted")return{shortCircuited:!0};if(Tt.type==="error"){let Ot=Vf(Tt.partialMatches).route.id;return{matches:Tt.partialMatches,loaderData:{},errors:{[Ot]:Tt.error}}}else if(Tt.matches)De=Tt.matches;else{let{error:Ot,notFoundMatches:Sn,route:rr}=tr(ve.pathname);return{matches:Sn,loaderData:{},errors:{[rr.id]:Ot}}}}let Q=o||s,[he,Re]=y_(e.history,O,De,G,ve,pt===!0,ne,_e,J,Pe,$e,Q,u,V);if(Te=++ce,he.length===0&&Re.length===0){let Tt=Sr();return oe(ve,{matches:De,loaderData:{},errors:V&&Oi(V[1])?{[V[0]]:V[1].error}:null,...N_(V),...Tt?{fetchers:new Map(O.fetchers)}:{}},{flushSync:M}),{shortCircuited:!0}}if(Z){let Tt={};if(!Ge){Tt.navigation=Y;let Ot=xt(V);Ot!==void 0&&(Tt.actionData=Ot)}Re.length>0&&(Tt.fetchers=We(Re)),me(Tt,{flushSync:M})}Re.forEach(Tt=>{Yn(Tt.key),Tt.controller&&ye.set(Tt.key,Tt.controller)});let we=()=>Re.forEach(Tt=>Yn(Tt.key));I&&I.signal.addEventListener("abort",we);let{loaderResults:Ee,fetcherResults:Se}=await Rn(O,De,he,Re,le);if(le.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",we),Re.forEach(Tt=>ye.delete(Tt.key));let Ie=cg(Ee);if(Ie)return await Bt(le,Ie.result,!0,{replace:ht}),{shortCircuited:!0};if(Ie=cg(Se),Ie)return $e.add(Ie.key),await Bt(le,Ie.result,!0,{replace:ht}),{shortCircuited:!0};let{loaderData:tt,errors:at}=b_(O,De,Ee,V,Re,Se);pt&&O.errors&&(at={...O.errors,...at});let qe=Sr(),Je=er(Te),Ct=qe||Je||Re.length>0;return{matches:De,loaderData:tt,errors:at,...Ct?{fetchers:new Map(O.fetchers)}:{}}}function xt(le){if(le&&!Oi(le[1]))return{[le[0]]:le[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function We(le){return le.forEach(ve=>{let De=O.fetchers.get(ve.key),Ge=l1(void 0,De?De.data:void 0);O.fetchers.set(ve.key,Ge)}),new Map(O.fetchers)}async function tn(le,ve,De,Ge){Yn(le);let st=(Ge&&Ge.flushSync)===!0,vt=o||s,Nt=w2(O.location,O.matches,u,De,ve,Ge==null?void 0:Ge.relative),ht=Ec(vt,Nt,u),pt=nr(ht,vt,Nt);if(pt.active&&pt.matches&&(ht=pt.matches),!ht){yt(le,ve,ll(404,{pathname:Nt}),{flushSync:st});return}let{path:M,submission:V,error:Y}=x_(!0,Nt,Ge);if(Y){yt(le,ve,Y,{flushSync:st});return}let G=m1(ht,M),Z=(Ge&&Ge.preventScrollReset)===!0;if(V&&$l(V.formMethod)){await gn(le,ve,M,G,ht,pt.active,st,Z,V);return}Pe.set(le,{routeId:ve,path:M}),await Jt(le,ve,M,G,ht,pt.active,st,Z,V)}async function gn(le,ve,De,Ge,st,vt,Nt,ht,pt){$t(),Pe.delete(le);function M(bn){if(!bn.route.action&&!bn.route.lazy){let Vr=ll(405,{method:pt.formMethod,pathname:De,routeId:ve});return yt(le,ve,Vr,{flushSync:Nt}),!0}return!1}if(!vt&&M(Ge))return;let V=O.fetchers.get(le);cn(le,oN(pt,V),{flushSync:Nt});let Y=new AbortController,G=j0(e.history,De,Y.signal,pt);if(vt){let bn=await Mr(st,De,G.signal);if(bn.type==="aborted")return;if(bn.type==="error"){yt(le,ve,bn.error,{flushSync:Nt});return}else if(bn.matches){if(st=bn.matches,Ge=m1(st,De),M(Ge))return}else{yt(le,ve,ll(404,{pathname:De}),{flushSync:Nt});return}}ye.set(le,Y);let Z=ce,he=(await An("action",O,G,[Ge],st,le))[Ge.route.id];if(G.signal.aborted){ye.get(le)===Y&&ye.delete(le);return}if(J.has(le)){if(Zf(he)||Oi(he)){cn(le,yc(void 0));return}}else{if(Zf(he))if(ye.delete(le),Te>Z){cn(le,yc(void 0));return}else return $e.add(le),cn(le,l1(pt)),Bt(G,he,!1,{fetcherSubmission:pt,preventScrollReset:ht});if(Oi(he)){yt(le,ve,he.error);return}}let Re=O.navigation.location||O.location,we=j0(e.history,Re,Y.signal),Ee=o||s,Se=O.navigation.state!=="idle"?Ec(Ee,O.navigation.location,u):O.matches;mn(Se,"Didn't find any matches after fetcher action");let Ie=++ce;Ne.set(le,Ie);let tt=l1(pt,he.data);O.fetchers.set(le,tt);let[at,qe]=y_(e.history,O,Se,pt,Re,!1,ne,_e,J,Pe,$e,Ee,u,[Ge.route.id,he]);qe.filter(bn=>bn.key!==le).forEach(bn=>{let Vr=bn.key,wa=O.fetchers.get(Vr),Bs=l1(void 0,wa?wa.data:void 0);O.fetchers.set(Vr,Bs),Yn(Vr),bn.controller&&ye.set(Vr,bn.controller)}),me({fetchers:new Map(O.fetchers)});let Je=()=>qe.forEach(bn=>Yn(bn.key));Y.signal.addEventListener("abort",Je);let{loaderResults:Ct,fetcherResults:Tt}=await Rn(O,Se,at,qe,we);if(Y.signal.aborted)return;Y.signal.removeEventListener("abort",Je),Ne.delete(le),ye.delete(le),qe.forEach(bn=>ye.delete(bn.key));let Ot=cg(Ct);if(Ot)return Bt(we,Ot.result,!1,{preventScrollReset:ht});if(Ot=cg(Tt),Ot)return $e.add(Ot.key),Bt(we,Ot.result,!1,{preventScrollReset:ht});let{loaderData:Sn,errors:rr}=b_(O,Se,Ct,void 0,qe,Tt);if(O.fetchers.has(le)){let bn=yc(he.data);O.fetchers.set(le,bn)}er(Ie),O.navigation.state==="loading"&&Ie>Te?(mn(B,"Expected pending action"),I&&I.abort(),oe(O.navigation.location,{matches:Se,loaderData:Sn,errors:rr,fetchers:new Map(O.fetchers)})):(me({errors:rr,loaderData:T_(O.loaderData,Sn,Se,rr),fetchers:new Map(O.fetchers)}),ne=!1)}async function Jt(le,ve,De,Ge,st,vt,Nt,ht,pt){let M=O.fetchers.get(le);cn(le,l1(pt,M?M.data:void 0),{flushSync:Nt});let V=new AbortController,Y=j0(e.history,De,V.signal);if(vt){let he=await Mr(st,De,Y.signal);if(he.type==="aborted")return;if(he.type==="error"){yt(le,ve,he.error,{flushSync:Nt});return}else if(he.matches)st=he.matches,Ge=m1(st,De);else{yt(le,ve,ll(404,{pathname:De}),{flushSync:Nt});return}}ye.set(le,V);let G=ce,Q=(await An("loader",O,Y,[Ge],st,le))[Ge.route.id];if(ye.get(le)===V&&ye.delete(le),!Y.signal.aborted){if(J.has(le)){cn(le,yc(void 0));return}if(Zf(Q))if(Te>G){cn(le,yc(void 0));return}else{$e.add(le),await Bt(Y,Q,!1,{preventScrollReset:ht});return}if(Oi(Q)){yt(le,ve,Q.error);return}cn(le,yc(Q.data))}}async function Bt(le,ve,De,{submission:Ge,fetcherSubmission:st,preventScrollReset:vt,replace:Nt}={}){ve.response.headers.has("X-Remix-Revalidate")&&(ne=!0);let ht=ve.response.headers.get("Location");mn(ht,"Expected a Location header on the redirect Response"),ht=E_(ht,new URL(le.url),u);let pt=R1(O.location,ht,{_isRedirect:!0});if(n){let Q=!1;if(ve.response.headers.has("X-Remix-Reload-Document"))Q=!0;else if(W2.test(ht)){const he=e.history.createURL(ht);Q=he.origin!==t.location.origin||Fi(he.pathname,u)==null}if(Q){Nt?t.location.replace(ht):t.location.assign(ht);return}}I=null;let M=Nt===!0||ve.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:V,formAction:Y,formEncType:G}=O.navigation;!Ge&&!st&&V&&Y&&G&&(Ge=R_(O.navigation));let Z=Ge||st;if(zT.has(ve.response.status)&&Z&&$l(Z.formMethod))await rt(M,pt,{submission:{...Z,formAction:ht},preventScrollReset:vt||L,enableViewTransition:De?U:void 0});else{let Q=Vv(pt,Ge);await rt(M,pt,{overrideNavigation:Q,fetcherSubmission:st,preventScrollReset:vt||L,enableViewTransition:De?U:void 0})}}async function An(le,ve,De,Ge,st,vt){let Nt,ht={};try{Nt=await JT(d,le,ve,De,Ge,st,vt,i,r)}catch(pt){return Ge.forEach(M=>{ht[M.route.id]={type:"error",error:pt}}),ht}for(let[pt,M]of Object.entries(Nt))if(iN(M)){let V=M.result;ht[pt]={type:"redirect",response:nN(V,De,pt,st,u)}}else ht[pt]=await tN(M);return ht}async function Rn(le,ve,De,Ge,st){let vt=An("loader",le,st,De,ve,null),Nt=Promise.all(Ge.map(async M=>{if(M.matches&&M.match&&M.controller){let Y=(await An("loader",le,j0(e.history,M.path,M.controller.signal),[M.match],M.matches,M.key))[M.match.route.id];return{[M.key]:Y}}else return Promise.resolve({[M.key]:{type:"error",error:ll(404,{pathname:M.path})}})})),ht=await vt,pt=(await Nt).reduce((M,V)=>Object.assign(M,V),{});return{loaderResults:ht,fetcherResults:pt}}function $t(){ne=!0,Pe.forEach((le,ve)=>{ye.has(ve)&&_e.add(ve),Yn(ve)})}function cn(le,ve,De={}){O.fetchers.set(le,ve),me({fetchers:new Map(O.fetchers)},{flushSync:(De&&De.flushSync)===!0})}function yt(le,ve,De,Ge={}){let st=Vf(O.matches,ve);nn(le),me({errors:{[st.route.id]:De},fetchers:new Map(O.fetchers)},{flushSync:(Ge&&Ge.flushSync)===!0})}function dn(le){return et.set(le,(et.get(le)||0)+1),J.has(le)&&J.delete(le),O.fetchers.get(le)||GT}function nn(le){let ve=O.fetchers.get(le);ye.has(le)&&!(ve&&ve.state==="loading"&&Ne.has(le))&&Yn(le),Pe.delete(le),Ne.delete(le),$e.delete(le),J.delete(le),_e.delete(le),O.fetchers.delete(le)}function Lr(le){let ve=(et.get(le)||0)-1;ve<=0?(et.delete(le),J.add(le)):et.set(le,ve),me({fetchers:new Map(O.fetchers)})}function Yn(le){let ve=ye.get(le);ve&&(ve.abort(),ye.delete(le))}function Er(le){for(let ve of le){let De=dn(ve),Ge=yc(De.data);O.fetchers.set(ve,Ge)}}function Sr(){let le=[],ve=!1;for(let De of $e){let Ge=O.fetchers.get(De);mn(Ge,`Expected fetcher: ${De}`),Ge.state==="loading"&&($e.delete(De),le.push(De),ve=!0)}return Er(le),ve}function er(le){let ve=[];for(let[De,Ge]of Ne)if(Ge<le){let st=O.fetchers.get(De);mn(st,`Expected fetcher: ${De}`),st.state==="loading"&&(Yn(De),Ne.delete(De),ve.push(De))}return Er(ve),ve.length>0}function En(le,ve){let De=O.blockers.get(le)||P0;return ie.get(le)!==ve&&ie.set(le,ve),De}function br(le){O.blockers.delete(le),ie.delete(le)}function Pn(le,ve){let De=O.blockers.get(le)||P0;mn(De.state==="unblocked"&&ve.state==="blocked"||De.state==="blocked"&&ve.state==="blocked"||De.state==="blocked"&&ve.state==="proceeding"||De.state==="blocked"&&ve.state==="unblocked"||De.state==="proceeding"&&ve.state==="unblocked",`Invalid blocker state transition: ${De.state} -> ${ve.state}`);let Ge=new Map(O.blockers);Ge.set(le,ve),me({blockers:Ge})}function ut({currentLocation:le,nextLocation:ve,historyAction:De}){if(ie.size===0)return;ie.size>1&&Gr(!1,"A router only supports one blocker at a time");let Ge=Array.from(ie.entries()),[st,vt]=Ge[Ge.length-1],Nt=O.blockers.get(st);if(!(Nt&&Nt.state==="proceeding")&&vt({currentLocation:le,nextLocation:ve,historyAction:De}))return st}function tr(le){let ve=ll(404,{pathname:le}),De=o||s,{matches:Ge,route:st}=C_(De);return{notFoundMatches:Ge,route:st,error:ve}}function _a(le,ve,De){if(w=le,S=ve,b=De||null,!T&&O.navigation===Wv){T=!0;let Ge=Wr(O.location,O.matches);Ge!=null&&me({restoreScrollPosition:Ge})}return()=>{w=null,S=null,b=null}}function Ga(le,ve){return b&&b(le,ve.map(Ge=>ET(Ge,O.loaderData)))||le.key}function ca(le,ve){if(w&&S){let De=Ga(le,ve);w[De]=S()}}function Wr(le,ve){if(w){let De=Ga(le,ve),Ge=w[De];if(typeof Ge=="number")return Ge}return null}function nr(le,ve,De){if(p)if(le){if(Object.keys(le[0].params).length>0)return{active:!0,matches:bg(ve,De,u,!0)}}else return{active:!0,matches:bg(ve,De,u,!0)||[]};return{active:!1,matches:null}}async function Mr(le,ve,De){if(!p)return{type:"success",matches:le};let Ge=le;for(;;){let st=o==null,vt=o||s,Nt=i;try{await p({path:ve,matches:Ge,patch:(M,V)=>{De.aborted||w_(M,V,vt,Nt,r)}})}catch(M){return{type:"error",error:M,partialMatches:Ge}}finally{st&&!De.aborted&&(s=[...s])}if(De.aborted)return{type:"aborted"};let ht=Ec(vt,ve,u);if(ht)return{type:"success",matches:ht};let pt=bg(vt,ve,u,!0);if(!pt||Ge.length===pt.length&&Ge.every((M,V)=>M.route.id===pt[V].route.id))return{type:"success",matches:null};Ge=pt}}function fa(le){i={},o=Dg(le,r,void 0,i)}function Ui(le,ve){let De=o==null;w_(le,ve,o||s,i,r),De&&(s=[...s],me({}))}return j={get basename(){return u},get future(){return x},get state(){return O},get routes(){return s},get window(){return t},initialize:xe,subscribe:Ce,enableScrollRestoration:_a,navigate:Be,fetch:tn,revalidate:Xe,createHref:le=>e.history.createHref(le),encodeLocation:le=>e.history.encodeLocation(le),getFetcher:dn,deleteFetcher:Lr,dispose:Fe,getBlocker:En,deleteBlocker:br,patchRoutes:Ui,_internalFetchControllers:ye,_internalSetRoutes:fa},j}function XT(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function w2(e,t,n,r,i,s){let o,u;if(i){o=[];for(let p of t)if(o.push(p),p.route.id===i){u=p;break}}else o=t,u=t[t.length-1];let d=G2(r||".",z2(o),Fi(e.pathname,n)||e.pathname,s==="path");if(r==null&&(d.search=e.search,d.hash=e.hash),(r==null||r===""||r===".")&&u){let p=V2(d.search);if(u.route.index&&!p)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&p){let x=new URLSearchParams(d.search),y=x.getAll("index");x.delete("index"),y.filter(w=>w).forEach(w=>x.append("index",w));let v=x.toString();d.search=v?`?${v}`:""}}return n!=="/"&&(d.pathname=d.pathname==="/"?n:Os([n,d.pathname])),Dc(d)}function x_(e,t,n){if(!n||!XT(n))return{path:t};if(n.formMethod&&!lN(n.formMethod))return{path:t,error:ll(405,{method:n.formMethod})};let r=()=>({path:t,error:ll(400,{type:"invalid-body"})}),s=(n.formMethod||"get").toUpperCase(),o=OE(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!$l(s))return r();let y=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((v,[w,b])=>`${v}${w}=${b}
-`,""):String(n.body);return{path:t,submission:{formMethod:s,formAction:o,formEncType:n.formEncType,formData:void 0,json:void 0,text:y}}}else if(n.formEncType==="application/json"){if(!$l(s))return r();try{let y=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:s,formAction:o,formEncType:n.formEncType,formData:void 0,json:y,text:void 0}}}catch{return r()}}}mn(typeof FormData=="function","FormData is not available in this environment");let u,d;if(n.formData)u=S2(n.formData),d=n.formData;else if(n.body instanceof FormData)u=S2(n.body),d=n.body;else if(n.body instanceof URLSearchParams)u=n.body,d=S_(u);else if(n.body==null)u=new URLSearchParams,d=new FormData;else try{u=new URLSearchParams(n.body),d=S_(u)}catch{return r()}let p={formMethod:s,formAction:o,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if($l(p.formMethod))return{path:t,submission:p};let x=Mc(t);return e&&x.search&&V2(x.search)&&u.append("index",""),x.search=`?${u}`,{path:Dc(x),submission:p}}function v_(e,t,n=!1){let r=e.findIndex(i=>i.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function y_(e,t,n,r,i,s,o,u,d,p,x,y,v,w){let b=w?Oi(w[1])?w[1].error:w[1].data:void 0,S=e.createURL(t.location),T=e.createURL(i),C=n;s&&t.errors?C=v_(n,Object.keys(t.errors)[0],!0):w&&Oi(w[1])&&(C=v_(n,w[0]));let R=w?w[1].statusCode:void 0,A=R&&R>=400,j=C.filter((B,L)=>{let{route:I}=B;if(I.lazy)return!0;if(I.loader==null)return!1;if(s)return E2(I,t.loaderData,t.errors);if(qT(t.loaderData,t.matches[L],B))return!0;let U=t.matches[L],W=B;return __(B,{currentUrl:S,currentParams:U.params,nextUrl:T,nextParams:W.params,...r,actionResult:b,actionStatus:R,defaultShouldRevalidate:A?!1:o||S.pathname+S.search===T.pathname+T.search||S.search!==T.search||KT(U,W)})}),O=[];return p.forEach((B,L)=>{if(s||!n.some(te=>te.route.id===B.routeId)||d.has(L))return;let I=Ec(y,B.path,v);if(!I){O.push({key:L,routeId:B.routeId,path:B.path,matches:null,match:null,controller:null});return}let U=t.fetchers.get(L),W=m1(I,B.path),X=!1;x.has(L)?X=!1:u.has(L)?(u.delete(L),X=!0):U&&U.state!=="idle"&&U.data===void 0?X=o:X=__(W,{currentUrl:S,currentParams:t.matches[t.matches.length-1].params,nextUrl:T,nextParams:n[n.length-1].params,...r,actionResult:b,actionStatus:R,defaultShouldRevalidate:A?!1:o}),X&&O.push({key:L,routeId:B.routeId,path:B.path,matches:I,match:W,controller:new AbortController})}),[j,O]}function E2(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function qT(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function KT(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function __(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function w_(e,t,n,r,i){let s;if(e){let d=r[e];mn(d,`No route found to patch children into: routeId = ${e}`),d.children||(d.children=[]),s=d.children}else s=n;let o=t.filter(d=>!s.some(p=>RE(d,p))),u=Dg(o,i,[e||"_","patch",String((s==null?void 0:s.length)||"0")],r);s.push(...u)}function RE(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((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(s=>RE(n,s))}):!1}async function ZT(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];mn(i,"No route found in manifest");let s={};for(let o in r){let d=i[o]!==void 0&&o!=="hasErrorBoundary";Gr(!d,`Route "${i.id}" has a static property "${o}" defined but its lazy function is also returning a value for this property. The lazy route property "${o}" will be ignored.`),!d&&!_T.has(o)&&(s[o]=r[o])}Object.assign(i,s),Object.assign(i,{...t(i),lazy:void 0})}async function QT({matches:e}){let t=e.filter(r=>r.shouldLoad);return(await Promise.all(t.map(r=>r.resolve()))).reduce((r,i,s)=>Object.assign(r,{[t[s].route.id]:i}),{})}async function JT(e,t,n,r,i,s,o,u,d,p){let x=s.map(w=>w.route.lazy?ZT(w.route,d,u):void 0),y=s.map((w,b)=>{let S=x[b],T=i.some(R=>R.route.id===w.route.id);return{...w,shouldLoad:T,resolve:async R=>(R&&r.method==="GET"&&(w.route.lazy||w.route.loader)&&(T=!0),T?eN(t,r,w,S,R,p):Promise.resolve({type:"data",result:void 0}))}}),v=await e({matches:y,request:r,params:s[0].params,fetcherKey:o,context:p});try{await Promise.all(x)}catch{}return v}async function eN(e,t,n,r,i,s){let o,u,d=p=>{let x,y=new Promise((b,S)=>x=S);u=()=>x(),t.signal.addEventListener("abort",u);let v=b=>typeof p!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${e}" [routeId: ${n.route.id}]`)):p({request:t,params:n.params,context:s},...b!==void 0?[b]:[]),w=(async()=>{try{return{type:"data",result:await(i?i(S=>v(S)):v())}}catch(b){return{type:"error",result:b}}})();return Promise.race([w,y])};try{let p=n.route[e];if(r)if(p){let x,[y]=await Promise.all([d(p).catch(v=>{x=v}),r]);if(x!==void 0)throw x;o=y}else if(await r,p=n.route[e],p)o=await d(p);else if(e==="action"){let x=new URL(t.url),y=x.pathname+x.search;throw ll(405,{method:t.method,pathname:y,routeId:n.route.id})}else return{type:"data",result:void 0};else if(p)o=await d(p);else{let x=new URL(t.url),y=x.pathname+x.search;throw ll(404,{pathname:y})}}catch(p){return{type:"error",result:p}}finally{u&&t.signal.removeEventListener("abort",u)}return o}async function tN(e){var r,i,s,o;let{result:t,type:n}=e;if(DE(t)){let u;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(d){return{type:"error",error:d}}return n==="error"?{type:"error",error:new kg(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:"data",data:u,statusCode:t.status,headers:t.headers}}if(n==="error"){if(A_(t)){if(t.data instanceof Error)return{type:"error",error:t.data,statusCode:(r=t.init)==null?void 0:r.status};t=new kg(((i=t.init)==null?void 0:i.status)||500,void 0,t.data)}return{type:"error",error:t,statusCode:ix(t)?t.status:void 0}}return A_(t)?{type:"data",data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function nN(e,t,n,r,i){let s=e.headers.get("Location");if(mn(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!W2.test(s)){let o=r.slice(0,r.findIndex(u=>u.route.id===n)+1);s=w2(new URL(t.url),o,i,s),e.headers.set("Location",s)}return e}function E_(e,t,n){if(W2.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),s=Fi(i.pathname,n)!=null;if(i.origin===t.origin&&s)return i.pathname+i.search+i.hash}return e}function j0(e,t,n,r){let i=e.createURL(OE(t)).toString(),s={signal:n};if(r&&$l(r.formMethod)){let{formMethod:o,formEncType:u}=r;s.method=o.toUpperCase(),u==="application/json"?(s.headers=new Headers({"Content-Type":u}),s.body=JSON.stringify(r.json)):u==="text/plain"?s.body=r.text:u==="application/x-www-form-urlencoded"&&r.formData?s.body=S2(r.formData):s.body=r.formData}return new Request(i,s)}function S2(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function S_(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function rN(e,t,n,r=!1,i=!1){let s={},o=null,u,d=!1,p={},x=n&&Oi(n[1])?n[1].error:void 0;return e.forEach(y=>{if(!(y.route.id in t))return;let v=y.route.id,w=t[v];if(mn(!Zf(w),"Cannot handle redirect results in processLoaderData"),Oi(w)){let b=w.error;if(x!==void 0&&(b=x,x=void 0),o=o||{},i)o[v]=b;else{let S=Vf(e,v);o[S.route.id]==null&&(o[S.route.id]=b)}r||(s[v]=AE),d||(d=!0,u=ix(w.error)?w.error.status:500),w.headers&&(p[v]=w.headers)}else s[v]=w.data,w.statusCode&&w.statusCode!==200&&!d&&(u=w.statusCode),w.headers&&(p[v]=w.headers)}),x!==void 0&&n&&(o={[n[0]]:x},s[n[0]]=void 0),{loaderData:s,errors:o,statusCode:u||200,loaderHeaders:p}}function b_(e,t,n,r,i,s){let{loaderData:o,errors:u}=rN(t,n,r);return i.forEach(d=>{let{key:p,match:x,controller:y}=d,v=s[p];if(mn(v,"Did not find corresponding fetcher result"),!(y&&y.signal.aborted))if(Oi(v)){let w=Vf(e.matches,x==null?void 0:x.route.id);u&&u[w.route.id]||(u={...u,[w.route.id]:v.error}),e.fetchers.delete(p)}else if(Zf(v))mn(!1,"Unhandled fetcher revalidation redirect");else{let w=yc(v.data);e.fetchers.set(p,w)}}),{loaderData:o,errors:u}}function T_(e,t,n,r){let i=Object.entries(t).filter(([,s])=>s!==AE).reduce((s,[o,u])=>(s[o]=u,s),{});for(let s of n){let o=s.route.id;if(!t.hasOwnProperty(o)&&e.hasOwnProperty(o)&&s.route.loader&&(i[o]=e[o]),r&&r.hasOwnProperty(o))break}return i}function N_(e){return e?Oi(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Vf(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function C_(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ll(e,{pathname:t,routeId:n,method:r,type:i,message:s}={}){let o="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(o="Bad Request",r&&t&&n?u=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i==="invalid-body"&&(u="Unable to encode submission body")):e===403?(o="Forbidden",u=`Route "${n}" does not match URL "${t}"`):e===404?(o="Not Found",u=`No route matches URL "${t}"`):e===405&&(o="Method Not Allowed",r&&t&&n?u=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(u=`Invalid request method "${r.toUpperCase()}"`)),new kg(e||500,o,new Error(u),!0)}function cg(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(Zf(i))return{key:r,result:i}}}function OE(e){let t=typeof e=="string"?Mc(e):e;return Dc({...t,hash:""})}function aN(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function iN(e){return DE(e.result)&&$T.has(e.result.status)}function Oi(e){return e.type==="error"}function Zf(e){return(e&&e.type)==="redirect"}function A_(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function DE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function lN(e){return HT.has(e.toUpperCase())}function $l(e){return IT.has(e.toUpperCase())}function V2(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function m1(e,t){let n=typeof t=="string"?Mc(t).search:t.search;if(e[e.length-1].route.index&&V2(n||""))return e[e.length-1];let r=TE(e);return r[r.length-1]}function R_(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:s,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:t,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Vv(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 sN(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 l1(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 oN(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 yc(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 cN(e,t){try{let n=e.sessionStorage.getItem(CE);if(n){let r=JSON.parse(n);for(let[i,s]of Object.entries(r||{}))s&&Array.isArray(s)&&t.set(i,new Set(s||[]))}}catch{}}function fN(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(CE,JSON.stringify(n))}catch(r){Gr(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function uN(){let e,t,n=new Promise((r,i)=>{e=async s=>{r(s);try{await n}catch{}},t=async s=>{i(s);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var lu=k.createContext(null);lu.displayName="DataRouter";var H1=k.createContext(null);H1.displayName="DataRouterState";var X2=k.createContext({isTransitioning:!1});X2.displayName="ViewTransition";var jE=k.createContext(new Map);jE.displayName="Fetchers";var dN=k.createContext(null);dN.displayName="Await";var Fs=k.createContext(null);Fs.displayName="Navigation";var lx=k.createContext(null);lx.displayName="Location";var Vl=k.createContext({outlet:null,matches:[],isDataRoute:!1});Vl.displayName="Route";var q2=k.createContext(null);q2.displayName="RouteError";function hN(e,{relative:t}={}){mn($1(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=k.useContext(Fs),{hash:i,pathname:s,search:o}=z1(e,{relative:t}),u=s;return n!=="/"&&(u=s==="/"?n:Os([n,s])),r.createHref({pathname:u,search:o,hash:i})}function $1(){return k.useContext(lx)!=null}function Ls(){return mn($1(),"useLocation() may be used only in the context of a <Router> component."),k.useContext(lx).location}var kE="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function FE(e){k.useContext(Fs).static||k.useLayoutEffect(e)}function sx(){let{isDataRoute:e}=k.useContext(Vl);return e?RN():mN()}function mN(){mn($1(),"useNavigate() may be used only in the context of a <Router> component.");let e=k.useContext(lu),{basename:t,navigator:n}=k.useContext(Fs),{matches:r}=k.useContext(Vl),{pathname:i}=Ls(),s=JSON.stringify(z2(r)),o=k.useRef(!1);return FE(()=>{o.current=!0}),k.useCallback((d,p={})=>{if(Gr(o.current,kE),!o.current)return;if(typeof d=="number"){n.go(d);return}let x=G2(d,JSON.parse(s),i,p.relative==="path");e==null&&t!=="/"&&(x.pathname=x.pathname==="/"?t:Os([t,x.pathname])),(p.replace?n.replace:n.push)(x,p.state,p)},[t,n,s,i,e])}var pN=k.createContext(null);function gN(e){let t=k.useContext(Vl).outlet;return t&&k.createElement(pN.Provider,{value:e},t)}function xN(){let{matches:e}=k.useContext(Vl),t=e[e.length-1];return t?t.params:{}}function z1(e,{relative:t}={}){let{matches:n}=k.useContext(Vl),{pathname:r}=Ls(),i=JSON.stringify(z2(n));return k.useMemo(()=>G2(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function vN(e,t,n,r){mn($1(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=k.useContext(Fs),{matches:s}=k.useContext(Vl),o=s[s.length-1],u=o?o.params:{},d=o?o.pathname:"/",p=o?o.pathnameBase:"/",x=o&&o.route;{let C=x&&x.path||"";BE(d,!x||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${C}">) 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="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let y=Ls(),v;v=y;let w=v.pathname||"/",b=w;if(p!=="/"){let C=p.replace(/^\//,"").split("/");b="/"+w.replace(/^\//,"").split("/").slice(C.length).join("/")}let S=Ec(e,{pathname:b});return Gr(x||S!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Gr(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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.`),SN(S&&S.map(C=>Object.assign({},C,{params:Object.assign({},u,C.params),pathname:Os([p,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?p:Os([p,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),s,n,r)}function yN(){let e=NN(),t=ix(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:s},"ErrorBoundary")," or"," ",k.createElement("code",{style:s},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:i},n):null,o)}var _N=k.createElement(yN,null),wN=class extends k.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?k.createElement(Vl.Provider,{value:this.props.routeContext},k.createElement(q2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function EN({routeContext:e,match:t,children:n}){let r=k.useContext(lu);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement(Vl.Provider,{value:e},n)}function SN(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=n==null?void 0:n.errors;if(s!=null){let d=i.findIndex(p=>p.route.id&&(s==null?void 0:s[p.route.id])!==void 0);mn(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,d+1))}let o=!1,u=-1;if(n)for(let d=0;d<i.length;d++){let p=i[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=d),p.route.id){let{loaderData:x,errors:y}=n,v=p.route.loader&&!x.hasOwnProperty(p.route.id)&&(!y||y[p.route.id]===void 0);if(p.route.lazy||v){o=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,p,x)=>{let y,v=!1,w=null,b=null;n&&(y=s&&p.route.id?s[p.route.id]:void 0,w=p.route.errorElement||_N,o&&(u<0&&x===0?(BE("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,b=null):u===x&&(v=!0,b=p.route.hydrateFallbackElement||null)));let S=t.concat(i.slice(0,x+1)),T=()=>{let C;return y?C=w:v?C=b:p.route.Component?C=k.createElement(p.route.Component,null):p.route.element?C=p.route.element:C=d,k.createElement(EN,{match:p,routeContext:{outlet:d,matches:S,isDataRoute:n!=null},children:C})};return n&&(p.route.ErrorBoundary||p.route.errorElement||x===0)?k.createElement(wN,{location:n.location,revalidation:n.revalidation,component:w,error:y,children:T(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):T()},null)}function K2(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function LE(e){let t=k.useContext(lu);return mn(t,K2(e)),t}function ME(e){let t=k.useContext(H1);return mn(t,K2(e)),t}function bN(e){let t=k.useContext(Vl);return mn(t,K2(e)),t}function Z2(e){let t=bN(e),n=t.matches[t.matches.length-1];return mn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function TN(){return Z2("useRouteId")}function NN(){var r;let e=k.useContext(q2),t=ME("useRouteError"),n=Z2("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}var CN=0;function AN(e){let{router:t,basename:n}=LE("useBlocker"),r=ME("useBlocker"),[i,s]=k.useState(""),o=k.useCallback(u=>{if(typeof e!="function")return!!e;if(n==="/")return e(u);let{currentLocation:d,nextLocation:p,historyAction:x}=u;return e({currentLocation:{...d,pathname:Fi(d.pathname,n)||d.pathname},nextLocation:{...p,pathname:Fi(p.pathname,n)||p.pathname},historyAction:x})},[n,e]);return k.useEffect(()=>{let u=String(++CN);return s(u),()=>t.deleteBlocker(u)},[t]),k.useEffect(()=>{i!==""&&t.getBlocker(i,o)},[t,i,o]),i&&r.blockers.has(i)?r.blockers.get(i):P0}function RN(){let{router:e}=LE("useNavigate"),t=Z2("useNavigate"),n=k.useRef(!1);return FE(()=>{n.current=!0}),k.useCallback(async(i,s={})=>{Gr(n.current,kE),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...s}))},[e,t])}var O_={};function BE(e,t,n){!t&&!O_[e]&&(O_[e]=!0,Gr(!1,n))}var D_={};function j_(e,t){!e&&!D_[t]&&(D_[t]=!0,console.warn(t))}function ON(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Gr(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:k.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Gr(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:k.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Gr(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:k.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var DN=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function jN({router:e,flushSync:t}){let[n,r]=k.useState(e.state),[i,s]=k.useState(),[o,u]=k.useState({isTransitioning:!1}),[d,p]=k.useState(),[x,y]=k.useState(),[v,w]=k.useState(),b=k.useRef(new Map),S=k.useCallback((A,{deletedFetchers:j,flushSync:O,viewTransitionOpts:B})=>{A.fetchers.forEach((I,U)=>{I.data!==void 0&&b.current.set(U,I.data)}),j.forEach(I=>b.current.delete(I)),j_(O===!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 L=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(j_(B==null||L,"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."),!B||!L){t&&O?t(()=>r(A)):k.startTransition(()=>r(A));return}if(t&&O){t(()=>{x&&(d&&d.resolve(),x.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let I=e.window.document.startViewTransition(()=>{t(()=>r(A))});I.finished.finally(()=>{t(()=>{p(void 0),y(void 0),s(void 0),u({isTransitioning:!1})})}),t(()=>y(I));return}x?(d&&d.resolve(),x.skipTransition(),w({state:A,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(s(A),u({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[e.window,t,x,d]);k.useLayoutEffect(()=>e.subscribe(S),[e,S]),k.useEffect(()=>{o.isTransitioning&&!o.flushSync&&p(new DN)},[o]),k.useEffect(()=>{if(d&&i&&e.window){let A=i,j=d.promise,O=e.window.document.startViewTransition(async()=>{k.startTransition(()=>r(A)),await j});O.finished.finally(()=>{p(void 0),y(void 0),s(void 0),u({isTransitioning:!1})}),y(O)}},[i,d,e.window]),k.useEffect(()=>{d&&i&&n.location.key===i.location.key&&d.resolve()},[d,x,n.location,i]),k.useEffect(()=>{!o.isTransitioning&&v&&(s(v.state),u({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),w(void 0))},[o.isTransitioning,v]);let T=k.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:A=>e.navigate(A),push:(A,j,O)=>e.navigate(A,{state:j,preventScrollReset:O==null?void 0:O.preventScrollReset}),replace:(A,j,O)=>e.navigate(A,{replace:!0,state:j,preventScrollReset:O==null?void 0:O.preventScrollReset})}),[e]),C=e.basename||"/",R=k.useMemo(()=>({router:e,navigator:T,static:!1,basename:C}),[e,T,C]);return k.createElement(k.Fragment,null,k.createElement(lu.Provider,{value:R},k.createElement(H1.Provider,{value:n},k.createElement(jE.Provider,{value:b.current},k.createElement(X2.Provider,{value:o},k.createElement(MN,{basename:C,location:n.location,navigationType:n.historyAction,navigator:T},k.createElement(kN,{routes:e.routes,future:e.future,state:n})))))),null)}var kN=k.memo(FN);function FN({routes:e,future:t,state:n}){return vN(e,void 0,n,t)}function LN(e){return gN(e.context)}function MN({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:s=!1}){mn(!$1(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),u=k.useMemo(()=>({basename:o,navigator:i,static:s,future:{}}),[o,i,s]);typeof n=="string"&&(n=Mc(n));let{pathname:d="/",search:p="",hash:x="",state:y=null,key:v="default"}=n,w=k.useMemo(()=>{let b=Fi(d,o);return b==null?null:{location:{pathname:b,search:p,hash:x,state:y,key:v},navigationType:r}},[o,d,p,x,y,v,r]);return Gr(w!=null,`<Router basename="${o}"> is not able to match the URL "${d}${p}${x}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:k.createElement(Fs.Provider,{value:u},k.createElement(lx.Provider,{children:t,value:w}))}var Tg="get",Ng="application/x-www-form-urlencoded";function ox(e){return e!=null&&typeof e.tagName=="string"}function BN(e){return ox(e)&&e.tagName.toLowerCase()==="button"}function PN(e){return ox(e)&&e.tagName.toLowerCase()==="form"}function UN(e){return ox(e)&&e.tagName.toLowerCase()==="input"}function IN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function YN(e,t){return e.button===0&&(!t||t==="_self")&&!IN(e)}function b2(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function HN(e,t){let n=b2(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}var fg=null;function $N(){if(fg===null)try{new FormData(document.createElement("form"),0),fg=!1}catch{fg=!0}return fg}var zN=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xv(e){return e!=null&&!zN.has(e)?(Gr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ng}"`),null):e}function GN(e,t){let n,r,i,s,o;if(PN(e)){let u=e.getAttribute("action");r=u?Fi(u,t):null,n=e.getAttribute("method")||Tg,i=Xv(e.getAttribute("enctype"))||Ng,s=new FormData(e)}else if(BN(e)||UN(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(r=d?Fi(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||Tg,i=Xv(e.getAttribute("formenctype"))||Xv(u.getAttribute("enctype"))||Ng,s=new FormData(u,e),!$N()){let{name:p,type:x,value:y}=e;if(x==="image"){let v=p?`${p}.`:"";s.append(`${v}x`,"0"),s.append(`${v}y`,"0")}else p&&s.append(p,y)}}else{if(ox(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Tg,r=null,i=Ng,o=e}return s&&i==="text/plain"&&(o=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:o}}function Q2(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function WN(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function VN(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 XN(e,t,n){let r=await Promise.all(e.map(async i=>{let s=t.routes[i.route.id];if(s){let o=await WN(s,n);return o.links?o.links():[]}return[]}));return QN(r.flat(1).filter(VN).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function k_(e,t,n,r,i,s){let o=(d,p)=>n[p]?d.route.id!==n[p].route.id:!0,u=(d,p)=>{var x;return n[p].pathname!==d.pathname||((x=n[p].route.path)==null?void 0:x.endsWith("*"))&&n[p].params["*"]!==d.params["*"]};return s==="assets"?t.filter((d,p)=>o(d,p)||u(d,p)):s==="data"?t.filter((d,p)=>{var y;let x=r.routes[d.route.id];if(!x||!x.hasLoader)return!1;if(o(d,p)||u(d,p))return!0;if(d.route.shouldRevalidate){let v=d.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((y=n[0])==null?void 0:y.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function qN(e,t){return KN(e.map(n=>{let r=t.routes[n.route.id];if(!r)return[];let i=[r.module];return r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function KN(e){return[...new Set(e)]}function ZN(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function QN(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let s=JSON.stringify(ZN(i));return n.has(s)||(n.add(s),r.push({key:s,link:i})),r},[])}function JN(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 e6(){let e=k.useContext(lu);return Q2(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function t6(){let e=k.useContext(H1);return Q2(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var J2=k.createContext(void 0);J2.displayName="FrameworkContext";function PE(){let e=k.useContext(J2);return Q2(e,"You must render this element inside a <HydratedRouter> element"),e}function n6(e,t){let n=k.useContext(J2),[r,i]=k.useState(!1),[s,o]=k.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:p,onMouseLeave:x,onTouchStart:y}=t,v=k.useRef(null);k.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let S=C=>{C.forEach(R=>{o(R.isIntersecting)})},T=new IntersectionObserver(S,{threshold:.5});return v.current&&T.observe(v.current),()=>{T.disconnect()}}},[e]),k.useEffect(()=>{if(r){let S=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(S)}}},[r]);let w=()=>{i(!0)},b=()=>{i(!1),o(!1)};return n?e!=="intent"?[s,v,{}]:[s,v,{onFocus:s1(u,w),onBlur:s1(d,b),onMouseEnter:s1(p,w),onMouseLeave:s1(x,b),onTouchStart:s1(y,w)}]:[!1,v,{}]}function s1(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function r6({page:e,...t}){let{router:n}=e6(),r=k.useMemo(()=>Ec(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?k.createElement(i6,{page:e,matches:r,...t}):null}function a6(e){let{manifest:t,routeModules:n}=PE(),[r,i]=k.useState([]);return k.useEffect(()=>{let s=!1;return XN(e,t,n).then(o=>{s||i(o)}),()=>{s=!0}},[e,t,n]),r}function i6({page:e,matches:t,...n}){let r=Ls(),{manifest:i,routeModules:s}=PE(),{loaderData:o,matches:u}=t6(),d=k.useMemo(()=>k_(e,t,u,i,r,"data"),[e,t,u,i,r]),p=k.useMemo(()=>k_(e,t,u,i,r,"assets"),[e,t,u,i,r]),x=k.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,b=!1;if(t.forEach(T=>{var R;let C=i.routes[T.route.id];!C||!C.hasLoader||(!d.some(A=>A.route.id===T.route.id)&&T.route.id in o&&((R=s[T.route.id])!=null&&R.shouldRevalidate)||C.hasClientLoader?b=!0:w.add(T.route.id))}),w.size===0)return[];let S=JN(e);return b&&w.size>0&&S.searchParams.set("_routes",t.filter(T=>w.has(T.route.id)).map(T=>T.route.id).join(",")),[S.pathname+S.search]},[o,r,i,d,t,e,s]),y=k.useMemo(()=>qN(p,i),[p,i]),v=a6(p);return k.createElement(k.Fragment,null,x.map(w=>k.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),y.map(w=>k.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),v.map(({key:w,link:b})=>k.createElement("link",{key:w,...b})))}function l6(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var UE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{UE&&(window.__reactRouterVersion="7.1.3")}catch{}function s6(e,t){return VT({basename:t==null?void 0:t.basename,future:t==null?void 0:t.future,history:xT({window:t==null?void 0:t.window}),hydrationData:o6(),routes:e,mapRouteProperties:ON,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function o6(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:c6(e.errors)}),e}function c6(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new kg(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let s=window[i.__subType];if(typeof s=="function")try{let o=new s(i.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let s=new Error(i.message);s.stack="",n[r]=s}}else n[r]=i;return n}var IE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lt=k.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:s,replace:o,state:u,target:d,to:p,preventScrollReset:x,viewTransition:y,...v},w){let{basename:b}=k.useContext(Fs),S=typeof p=="string"&&IE.test(p),T,C=!1;if(typeof p=="string"&&S&&(T=p,UE))try{let U=new URL(window.location.href),W=p.startsWith("//")?new URL(U.protocol+p):new URL(p),X=Fi(W.pathname,b);W.origin===U.origin&&X!=null?p=X+W.search+W.hash:C=!0}catch{Gr(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=hN(p,{relative:i}),[A,j,O]=n6(r,v),B=h6(p,{replace:o,state:u,target:d,preventScrollReset:x,relative:i,viewTransition:y});function L(U){t&&t(U),U.defaultPrevented||B(U)}let I=k.createElement("a",{...v,...O,href:T||R,onClick:C||s?t:L,ref:l6(w,j),target:d,"data-discover":!S&&n==="render"?"true":void 0});return A&&!S?k.createElement(k.Fragment,null,I,k.createElement(r6,{page:R})):I});lt.displayName="Link";var f6=k.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:s,to:o,viewTransition:u,children:d,...p},x){let y=z1(o,{relative:p.relative}),v=Ls(),w=k.useContext(H1),{navigator:b,basename:S}=k.useContext(Fs),T=w!=null&&y6(y)&&u===!0,C=b.encodeLocation?b.encodeLocation(y).pathname:y.pathname,R=v.pathname,A=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;n||(R=R.toLowerCase(),A=A?A.toLowerCase():null,C=C.toLowerCase()),A&&S&&(A=Fi(A,S)||A);const j=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let O=R===C||!i&&R.startsWith(C)&&R.charAt(j)==="/",B=A!=null&&(A===C||!i&&A.startsWith(C)&&A.charAt(C.length)==="/"),L={isActive:O,isPending:B,isTransitioning:T},I=O?t:void 0,U;typeof r=="function"?U=r(L):U=[r,O?"active":null,B?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let W=typeof s=="function"?s(L):s;return k.createElement(lt,{...p,"aria-current":I,className:U,ref:x,style:W,to:o,viewTransition:u},typeof d=="function"?d(L):d)});f6.displayName="NavLink";var u6=k.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:s,method:o=Tg,action:u,onSubmit:d,relative:p,preventScrollReset:x,viewTransition:y,...v},w)=>{let b=x6(),S=v6(u,{relative:p}),T=o.toLowerCase()==="get"?"get":"post",C=typeof u=="string"&&IE.test(u),R=A=>{if(d&&d(A),A.defaultPrevented)return;A.preventDefault();let j=A.nativeEvent.submitter,O=(j==null?void 0:j.getAttribute("formmethod"))||o;b(j||A.currentTarget,{fetcherKey:t,method:O,navigate:n,replace:i,state:s,relative:p,preventScrollReset:x,viewTransition:y})};return k.createElement("form",{ref:w,method:T,action:S,onSubmit:r?d:R,...v,"data-discover":!C&&e==="render"?"true":void 0})});u6.displayName="Form";function d6(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function YE(e){let t=k.useContext(lu);return mn(t,d6(e)),t}function h6(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:s,viewTransition:o}={}){let u=sx(),d=Ls(),p=z1(e,{relative:s});return k.useCallback(x=>{if(YN(x,t)){x.preventDefault();let y=n!==void 0?n:Dc(d)===Dc(p);u(e,{replace:y,state:r,preventScrollReset:i,relative:s,viewTransition:o})}},[d,u,p,n,r,t,e,i,s,o])}function m6(e){Gr(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=k.useRef(b2(e)),n=k.useRef(!1),r=Ls(),i=k.useMemo(()=>HN(r.search,n.current?null:t.current),[r.search]),s=sx(),o=k.useCallback((u,d)=>{const p=b2(typeof u=="function"?u(i):u);n.current=!0,s("?"+p,d)},[s,i]);return[i,o]}var p6=0,g6=()=>`__${String(++p6)}__`;function x6(){let{router:e}=YE("useSubmit"),{basename:t}=k.useContext(Fs),n=TN();return k.useCallback(async(r,i={})=>{let{action:s,method:o,encType:u,formData:d,body:p}=GN(r,t);if(i.navigate===!1){let x=i.fetcherKey||g6();await e.fetch(x,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:p,formMethod:i.method||o,formEncType:i.encType||u,flushSync:i.flushSync})}else await e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:p,formMethod:i.method||o,formEncType:i.encType||u,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function v6(e,{relative:t}={}){let{basename:n}=k.useContext(Fs),r=k.useContext(Vl);mn(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...z1(e||".",{relative:t})},o=Ls();if(e==null){s.search=o.search;let u=new URLSearchParams(s.search),d=u.getAll("index");if(d.some(x=>x==="")){u.delete("index"),d.filter(y=>y).forEach(y=>u.append("index",y));let x=u.toString();s.search=x?`?${x}`:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Os([n,s.pathname])),Dc(s)}function y6(e,t={}){let n=k.useContext(X2);mn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=YE("useViewTransitionState"),i=z1(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Fi(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Fi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return jg(i.pathname,o)!=null||jg(i.pathname,s)!=null}new TextEncoder;var HE=EE();const Y0=U1(HE);/**
- * 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 _6(e){return k.createElement(jN,{flushSync:HE.flushSync,...e})}const w6=k.createContext({show:!1,toggle:()=>{}}),E6=e=>{const t=Ke.c(8),{children:n}=e,[r,i]=k.useState(!1);let s;t[0]!==r?(s=()=>{i(!r)},t[0]=r,t[1]=s):s=t[1];const o=s;let u;t[2]!==r||t[3]!==o?(u={show:r,toggle:o},t[2]=r,t[3]=o,t[4]=u):u=t[4];let d;return t[5]!==n||t[6]!==u?(d=g.jsx(w6.Provider,{value:u,children:n}),t[5]=n,t[6]=u,t[7]=d):d=t[7],d};async function S6(){return await(await fetch("/api/user/")).json()}const T2={name:"",email:"",permissions:{admin:!1,active:!1},id:"",nrens:[],oidc_sub:"",role:""},su=k.createContext({user:T2,logout:()=>{},setUser:()=>{}}),b6=e=>{const t=Ke.c(8),{children:n}=e,[r,i]=k.useState(T2);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=async function(){await fetch("/logout"),i(T2)},t[0]=s):s=t[0];const o=s;let u,d;t[1]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{S6().then(y=>{i(y)})},d=[],t[1]=u,t[2]=d):(u=t[1],d=t[2]),k.useEffect(u,d);let p;t[3]!==r?(p={user:r,logout:o,setUser:i},t[3]=r,t[4]=p):p=t[4];let x;return t[5]!==n||t[6]!==p?(x=g.jsx(su.Provider,{value:p,children:n}),t[5]=n,t[6]=p,t[7]=x):x=t[7],x},Mt=k.createContext({filterSelection:{selectedYears:[],selectedNrens:[]},setFilterSelection:()=>{}}),T6=e=>{const t=Ke.c(6),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={selectedYears:[],selectedNrens:[]},t[0]=r):r=t[0];const[i,s]=k.useState(r);let o;t[1]!==i?(o={filterSelection:i,setFilterSelection:s},t[1]=i,t[2]=o):o=t[2];let u;return t[3]!==n||t[4]!==o?(u=g.jsx(Mt.Provider,{value:o,children:n}),t[3]=n,t[4]=o,t[5]=u):u=t[5],u},ey=k.createContext(null),N6=e=>{const t=Ke.c(2),{children:n}=e,r=k.useRef(null);let i;return t[0]!==n?(i=g.jsx(ey.Provider,{value:r,children:n}),t[0]=n,t[1]=i):i=t[1],i},ty=k.createContext({preview:!1,setPreview:()=>{}}),C6=e=>{const t=Ke.c(5),{children:n}=e,[r,i]=k.useState(!1);let s;t[0]!==r?(s={preview:r,setPreview:i},t[0]=r,t[1]=s):s=t[1];let o;return t[2]!==n||t[3]!==s?(o=g.jsx(ty.Provider,{value:s,children:n}),t[2]=n,t[3]=s,t[4]=o):o=t[4],o};async function A6(){try{return await(await fetch("/api/nren/list")).json()}catch{return[]}}const $E=k.createContext({nrens:[],setNrens:()=>{}}),R6=e=>{const t=Ke.c(8),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=[],t[0]=r):r=t[0];const[i,s]=k.useState(r);let o,u;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{A6().then(x=>s(x))},u=[],t[1]=o,t[2]=u):(o=t[1],u=t[2]),k.useEffect(o,u);let d;t[3]!==i?(d={nrens:i,setNrens:s},t[3]=i,t[4]=d):d=t[4];let p;return t[5]!==n||t[6]!==d?(p=g.jsx($E.Provider,{value:d,children:n}),t[5]=n,t[6]=d,t[7]=p):p=t[7],p},qv={TRACK_EVENT:"trackEvent",TRACK_LINK:"trackLink",TRACK_VIEW:"trackPageView"};class O6{constructor(t){a_(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:n,userId:r,trackerUrl:i,srcUrl:s,disabled:o,heartBeat:u,requireConsent:d=!1,configurations:p={}}){const x=t[t.length-1]!=="/"?`${t}/`:t;if(typeof window>"u"||(window._paq=window._paq||[],window._paq.length!==0)||o)return;d&&this.pushInstruction("requireConsent"),this.pushInstruction("setTrackerUrl",i??`${x}matomo.php`),this.pushInstruction("setSiteId",n),r&&this.pushInstruction("setUserId",r),Object.entries(p).forEach(([b,S])=>{S instanceof Array?this.pushInstruction(b,...S):this.pushInstruction(b,S)}),(!u||u&&u.active)&&this.enableHeartBeatTimer((u&&u.seconds)??15);const y=document,v=y.createElement("script"),w=y.getElementsByTagName("script")[0];v.type="text/javascript",v.async=!0,v.defer=!0,v.src=s||`${x}matomo.js`,w&&w.parentNode&&w.parentNode.insertBefore(v,w)}enableHeartBeatTimer(t){this.pushInstruction("enableHeartBeatTimer",t)}trackEventsForElements(t){t.length&&t.forEach(n=>{n.addEventListener("click",()=>{const{matomoCategory:r,matomoAction:i,matomoName:s,matomoValue:o}=n.dataset;if(r&&i)this.trackEvent({category:r,action:i,name:s,value:Number(o)});else throw new Error("Error: data-matomo-category and data-matomo-action are required.")})})}trackEvents(){const t='[data-matomo-event="click"]';let n=!1;if(this.mutationObserver||(n=!0,this.mutationObserver=new MutationObserver(r=>{r.forEach(i=>{i.addedNodes.forEach(s=>{if(!(s instanceof HTMLElement))return;s.matches(t)&&this.trackEventsForElements([s]);const o=Array.from(s.querySelectorAll(t));this.trackEventsForElements(o)})})})),this.mutationObserver.observe(document,{childList:!0,subtree:!0}),n){const r=Array.from(document.querySelectorAll(t));this.trackEventsForElements(r)}}stopObserving(){this.mutationObserver&&this.mutationObserver.disconnect()}trackEvent({category:t,action:n,name:r,value:i,...s}){if(t&&n)this.track({data:[qv.TRACK_EVENT,t,n,r,i],...s});else throw new Error("Error: category and action are required.")}giveConsent(){this.pushInstruction("setConsentGiven")}trackLink({href:t,linkType:n="link"}){this.pushInstruction(qv.TRACK_LINK,t,n)}trackPageView(t){this.track({data:[qv.TRACK_VIEW],...t})}track({data:t=[],documentTitle:n=window.document.title,href:r,customDimensions:i=!1}){t.length&&(i&&Array.isArray(i)&&i.length&&i.map(s=>this.pushInstruction("setCustomDimension",s.id,s.value)),this.pushInstruction("setCustomUrl",r??window.location.href),this.pushInstruction("setDocumentTitle",n),this.pushInstruction(...t))}pushInstruction(t,...n){return typeof window<"u"&&window._paq.push([t,...n]),this}}function D6(e){return window.location.hostname==="localhost"&&(console.log("Matomo tracking disabled in development mode."),e.disabled=!0),new O6(e)}const ny=k.createContext({consent:null,setConsent:()=>{}}),j6=e=>{const t=Ke.c(7),{children:n}=e,r=k6;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=r(),t[0]=i):i=t[0];const[s,o]=k.useState(i);let u;t[1]===Symbol.for("react.memo_cache_sentinel")?(u=x=>o(x),t[1]=u):u=t[1];let d;t[2]!==s?(d={setConsent:u,consent:s},t[2]=s,t[3]=d):d=t[3];let p;return t[4]!==n||t[5]!==d?(p=g.jsx(ny.Provider,{value:d,children:n}),t[4]=n,t[5]=d,t[6]=p):p=t[6],p};function k6(){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 zE=k.createContext(null),F6=function(e){const t=Ke.c(5),{children:n}=e,i=!k.useContext(ny).consent;let s;t[0]!==i?(s=D6({urlBase:"https://prod-swd-webanalytics01.geant.org/",siteId:1,disabled:i}),t[0]=i,t[1]=s):s=t[1];const o=s;let u;return t[2]!==n||t[3]!==o?(u=g.jsx(zE.Provider,{value:o,children:n}),t[2]=n,t[3]=o,t[4]=u):u=t[4],u},L6=()=>{const e=JSON.parse(localStorage.getItem("config")??"{}"),t={};for(const n in e){const r=e[n];r.expireTime&&r.expireTime<Date.now()||r&&(t[n]=r)}return t},Kv=e=>{localStorage.setItem("config",JSON.stringify(e))},GE=k.createContext({getConfig:()=>{},setConfig:()=>{}}),M6=e=>{const t=Ke.c(12),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=L6(),t[0]=r):r=t[0];const[i,s]=k.useState(r);let o;t[1]!==i?(o=(v,w,b)=>{var R;if(!v)throw new Error("Valid config key must be provided");if(w==null){const A={...i};delete A[v],s(A),Kv(A);return}const S=JSON.stringify(w),T=JSON.stringify((R=i[v])==null?void 0:R.value);if(S===T)return;const C=b?b.getTime():null;if(C&&C<Date.now())throw new Error("Timeout must be in the future");C?(s({...i,[v]:{value:w,expireTime:C}}),Kv({...i,[v]:{value:w,expireTime:C}})):(s({...i,[v]:{value:w}}),Kv({...i,[v]:{value:w}}))},t[1]=i,t[2]=o):o=t[2];const u=o;let d;t[3]!==i||t[4]!==u?(d=v=>{const w=i[v];if(w!=null&&w.expireTime&&w.expireTime<Date.now()){u(v);return}if(w!=null)return w.value},t[3]=i,t[4]=u,t[5]=d):d=t[5];const p=d;let x;t[6]!==p||t[7]!==u?(x={getConfig:p,setConfig:u},t[6]=p,t[7]=u,t[8]=x):x=t[8];let y;return t[9]!==n||t[10]!==x?(y=g.jsx(GE.Provider,{value:x,children:n}),t[9]=n,t[10]=x,t[11]=y):y=t[11],y};function B6(e){const t=Ke.c(2),{children:n}=e;let r;return t[0]!==n?(r=g.jsx(M6,{children:g.jsx(j6,{children:g.jsx(F6,{children:g.jsx(E6,{children:g.jsx(b6,{children:g.jsx(T6,{children:g.jsx(N6,{children:g.jsx(C6,{children:g.jsx(R6,{children:n})})})})})})})})}),t[0]=n,t[1]=r):r=t[1],r}var qt=(e=>(e.ConnectedProportion="proportion",e.ConnectivityLevel="level",e.ConnectionCarrier="carrier",e.ConnectivityLoad="load",e.ConnectivityGrowth="growth",e.CommercialConnectivity="commercial",e.CommercialChargingLevel="charging",e))(qt||{}),Zn=(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))(Zn||{}),Zv={exports:{}};/*!
-	Copyright (c) 2018 Jed Watson.
-	Licensed under the MIT License (MIT), see
-	http://jedwatson.github.io/classnames
-*/var F_;function P6(){return F_||(F_=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(s=i(s,r(u)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var o="";for(var u in s)t.call(s,u)&&s[u]&&(o=i(o,u));return o}function i(s,o){return o?s?s+" "+o:s+o:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Zv)),Zv.exports}var U6=P6();const bt=U1(U6);function N2(){return N2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N2.apply(null,arguments)}function WE(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function L_(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function I6(e){var t=Y6(e,"string");return typeof t=="symbol"?t:String(t)}function Y6(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function H6(e,t,n){var r=k.useRef(e!==void 0),i=k.useState(t),s=i[0],o=i[1],u=e!==void 0,d=r.current;return r.current=u,!u&&d&&s!==t&&o(t),[u?e:s,k.useCallback(function(p){for(var x=arguments.length,y=new Array(x>1?x-1:0),v=1;v<x;v++)y[v-1]=arguments[v];n&&n.apply(void 0,[p].concat(y)),o(p)},[n])]}function VE(e,t){return Object.keys(t).reduce(function(n,r){var i,s=n,o=s[L_(r)],u=s[r],d=WE(s,[L_(r),r].map(I6)),p=t[r],x=H6(u,o,e[p]),y=x[0],v=x[1];return N2({},d,(i={},i[r]=y,i[p]=v,i))},e)}function C2(e,t){return C2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},C2(e,t)}function $6(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,C2(e,t)}const z6=["xxl","xl","lg","md","sm","xs"],G6="xs",cx=k.createContext({prefixes:{},breakpoints:z6,minBreakpoint:G6});function Ft(e,t){const{prefixes:n}=k.useContext(cx);return e||n[t]||t}function XE(){const{breakpoints:e}=k.useContext(cx);return e}function qE(){const{minBreakpoint:e}=k.useContext(cx);return e}function KE(){const{dir:e}=k.useContext(cx);return e==="rtl"}function G1(e){return e&&e.ownerDocument||document}function W6(e){var t=G1(e);return t&&t.defaultView||window}function V6(e,t){return W6(e).getComputedStyle(e,t)}var X6=/([A-Z])/g;function q6(e){return e.replace(X6,"-$1").toLowerCase()}var K6=/^ms-/;function ug(e){return q6(e).replace(K6,"-ms-")}var Z6=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function Q6(e){return!!(e&&Z6.test(e))}function ho(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(ug(t))||V6(e).getPropertyValue(ug(t));Object.keys(t).forEach(function(i){var s=t[i];!s&&s!==0?e.style.removeProperty(ug(i)):Q6(i)?r+=i+"("+s+") ":n+=ug(i)+": "+s+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var Qv={exports:{}},Jv,M_;function J6(){if(M_)return Jv;M_=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Jv=e,Jv}var e2,B_;function e5(){if(B_)return e2;B_=1;var e=J6();function t(){}function n(){}return n.resetWarningCache=t,e2=function(){function r(o,u,d,p,x,y){if(y!==e){var v=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 v.name="Invariant Violation",v}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},e2}var P_;function t5(){return P_||(P_=1,Qv.exports=e5()()),Qv.exports}var n5=t5();const mo=U1(n5),U_={disabled:!1},ZE=Hn.createContext(null);var r5=function(t){return t.scrollTop},p1="unmounted",_c="exited",fo="entering",Sc="entered",Fg="exiting",bo=function(e){$6(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var o=i,u=o&&!o.isMounting?r.enter:r.appear,d;return s.appearStatus=null,r.in?u?(d=_c,s.appearStatus=fo):d=Sc:r.unmountOnExit||r.mountOnEnter?d=p1:d=_c,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var o=i.in;return o&&s.status===p1?{status:_c}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==fo&&o!==Sc&&(s=fo):(o===fo||o===Sc)&&(s=Fg)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,o,u;return s=o=u=i,i!=null&&typeof i!="number"&&(s=i.exit,o=i.enter,u=i.appear!==void 0?i.appear:o),{exit:s,enter:o,appear:u}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===fo){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Y0.findDOMNode(this);o&&r5(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_c&&this.setState({status:p1})},n.performEnter=function(i){var s=this,o=this.props.enter,u=this.context?this.context.isMounting:i,d=this.props.nodeRef?[u]:[Y0.findDOMNode(this),u],p=d[0],x=d[1],y=this.getTimeouts(),v=u?y.appear:y.enter;if(!i&&!o||U_.disabled){this.safeSetState({status:Sc},function(){s.props.onEntered(p)});return}this.props.onEnter(p,x),this.safeSetState({status:fo},function(){s.props.onEntering(p,x),s.onTransitionEnd(v,function(){s.safeSetState({status:Sc},function(){s.props.onEntered(p,x)})})})},n.performExit=function(){var i=this,s=this.props.exit,o=this.getTimeouts(),u=this.props.nodeRef?void 0:Y0.findDOMNode(this);if(!s||U_.disabled){this.safeSetState({status:_c},function(){i.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Fg},function(){i.props.onExiting(u),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:_c},function(){i.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,o=!0;return this.nextCallback=function(u){o&&(o=!1,s.nextCallback=null,i(u))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var o=this.props.nodeRef?this.props.nodeRef.current:Y0.findDOMNode(this),u=i==null&&!this.props.addEndListener;if(!o||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],p=d[0],x=d[1];this.props.addEndListener(p,x)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===p1)return null;var s=this.props,o=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 u=WE(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Hn.createElement(ZE.Provider,{value:null},typeof o=="function"?o(i,u):Hn.cloneElement(Hn.Children.only(o),u))},t}(Hn.Component);bo.contextType=ZE;bo.propTypes={};function k0(){}bo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:k0,onEntering:k0,onEntered:k0,onExit:k0,onExiting:k0,onExited:k0};bo.UNMOUNTED=p1;bo.EXITED=_c;bo.ENTERING=fo;bo.ENTERED=Sc;bo.EXITING=Fg;function a5(e){return e.code==="Escape"||e.keyCode===27}function i5(){const e=k.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function ry(e){if(!e||typeof e=="function")return null;const{major:t}=i5();return t>=19?e.props.ref:e.ref}const ed=!!(typeof window<"u"&&window.document&&window.document.createElement);var A2=!1,R2=!1;try{var t2={get passive(){return A2=!0},get once(){return R2=A2=!0}};ed&&(window.addEventListener("test",t2,t2),window.removeEventListener("test",t2,!0))}catch{}function ay(e,t,n,r){if(r&&typeof r!="boolean"&&!R2){var i=r.once,s=r.capture,o=n;!R2&&i&&(o=n.__once||function u(d){this.removeEventListener(t,u,s),n.call(this,d)},n.__once=o),e.addEventListener(t,o,A2?r:s)}e.addEventListener(t,n,r)}function O2(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}function Tc(e,t,n,r){return ay(e,t,n,r),function(){O2(e,t,n,r)}}function l5(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function s5(e){var t=ho(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function o5(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||l5(e,"transitionend",!0)},t+n),s=Tc(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),s()}}function QE(e,t,n,r){n==null&&(n=s5(e)||0);var i=o5(e,n,r),s=Tc(e,"transitionend",t);return function(){i(),s()}}function I_(e,t){const n=ho(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function JE(e,t){const n=I_(e,"transitionDuration"),r=I_(e,"transitionDelay"),i=QE(e,s=>{s.target===e&&(i(),t(s))},n+r)}function o1(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...i){t.apply(this,i),n.apply(this,i)}},null)}function eS(e){e.offsetHeight}const Y_=e=>!e||typeof e=="function"?e:t=>{e.current=t};function c5(e,t){const n=Y_(e),r=Y_(t);return i=>{n&&n(i),r&&r(i)}}function fx(e,t){return k.useMemo(()=>c5(e,t),[e,t])}function f5(e){return e&&"setState"in e?Y0.findDOMNode(e):e??null}const tS=Hn.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:s,addEndListener:o,children:u,childRef:d,...p},x)=>{const y=k.useRef(null),v=fx(y,d),w=B=>{v(f5(B))},b=B=>L=>{B&&y.current&&B(y.current,L)},S=k.useCallback(b(e),[e]),T=k.useCallback(b(t),[t]),C=k.useCallback(b(n),[n]),R=k.useCallback(b(r),[r]),A=k.useCallback(b(i),[i]),j=k.useCallback(b(s),[s]),O=k.useCallback(b(o),[o]);return g.jsx(bo,{ref:x,...p,onEnter:S,onEntered:C,onEntering:T,onExit:R,onExited:j,onExiting:A,addEndListener:O,nodeRef:y,children:typeof u=="function"?(B,L)=>u(B,{...L,ref:w}):Hn.cloneElement(u,{ref:w})})}),u5={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function d5(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],i=u5[e];return r+parseInt(ho(t,i[0]),10)+parseInt(ho(t,i[1]),10)}const h5={[_c]:"collapse",[Fg]:"collapsing",[fo]:"collapsing",[Sc]:"collapse show"},m5=Hn.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,className:s,children:o,dimension:u="height",in:d=!1,timeout:p=300,mountOnEnter:x=!1,unmountOnExit:y=!1,appear:v=!1,getDimensionValue:w=d5,...b},S)=>{const T=typeof u=="function"?u():u,C=k.useMemo(()=>o1(B=>{B.style[T]="0"},e),[T,e]),R=k.useMemo(()=>o1(B=>{const L=`scroll${T[0].toUpperCase()}${T.slice(1)}`;B.style[T]=`${B[L]}px`},t),[T,t]),A=k.useMemo(()=>o1(B=>{B.style[T]=null},n),[T,n]),j=k.useMemo(()=>o1(B=>{B.style[T]=`${w(T,B)}px`,eS(B)},r),[r,w,T]),O=k.useMemo(()=>o1(B=>{B.style[T]=null},i),[T,i]);return g.jsx(tS,{ref:S,addEndListener:JE,...b,"aria-expanded":b.role?d:null,onEnter:C,onEntering:R,onEntered:A,onExit:j,onExiting:O,childRef:ry(o),in:d,timeout:p,mountOnEnter:x,unmountOnExit:y,appear:v,children:(B,L)=>Hn.cloneElement(o,{...L,className:bt(s,o.props.className,h5[B],T==="width"&&"collapse-horizontal")})})});function nS(e,t){return Array.isArray(e)?e.includes(t):e===t}const W1=k.createContext({});W1.displayName="AccordionContext";const iy=k.forwardRef(({as:e="div",bsPrefix:t,className:n,children:r,eventKey:i,...s},o)=>{const{activeEventKey:u}=k.useContext(W1);return t=Ft(t,"accordion-collapse"),g.jsx(m5,{ref:o,in:nS(u,i),...s,className:bt(n,t),children:g.jsx(e,{children:k.Children.only(r)})})});iy.displayName="AccordionCollapse";const ux=k.createContext({eventKey:""});ux.displayName="AccordionItemContext";const rS=k.forwardRef(({as:e="div",bsPrefix:t,className:n,onEnter:r,onEntering:i,onEntered:s,onExit:o,onExiting:u,onExited:d,...p},x)=>{t=Ft(t,"accordion-body");const{eventKey:y}=k.useContext(ux);return g.jsx(iy,{eventKey:y,onEnter:r,onEntering:i,onEntered:s,onExit:o,onExiting:u,onExited:d,children:g.jsx(e,{ref:x,...p,className:bt(n,t)})})});rS.displayName="AccordionBody";function p5(e,t){const{activeEventKey:n,onSelect:r,alwaysOpen:i}=k.useContext(W1);return s=>{let o=e===n?null:e;i&&(Array.isArray(n)?n.includes(e)?o=n.filter(u=>u!==e):o=[...n,e]:o=[e]),r==null||r(o,s),t==null||t(s)}}const ly=k.forwardRef(({as:e="button",bsPrefix:t,className:n,onClick:r,...i},s)=>{t=Ft(t,"accordion-button");const{eventKey:o}=k.useContext(ux),u=p5(o,r),{activeEventKey:d}=k.useContext(W1);return e==="button"&&(i.type="button"),g.jsx(e,{ref:s,onClick:u,...i,"aria-expanded":Array.isArray(d)?d.includes(o):o===d,className:bt(n,t,!nS(d,o)&&"collapsed")})});ly.displayName="AccordionButton";const aS=k.forwardRef(({as:e="h2","aria-controls":t,bsPrefix:n,className:r,children:i,onClick:s,...o},u)=>(n=Ft(n,"accordion-header"),g.jsx(e,{ref:u,...o,className:bt(r,n),children:g.jsx(ly,{onClick:s,"aria-controls":t,children:i})})));aS.displayName="AccordionHeader";const iS=k.forwardRef(({as:e="div",bsPrefix:t,className:n,eventKey:r,...i},s)=>{t=Ft(t,"accordion-item");const o=k.useMemo(()=>({eventKey:r}),[r]);return g.jsx(ux.Provider,{value:o,children:g.jsx(e,{ref:s,...i,className:bt(n,t)})})});iS.displayName="AccordionItem";const lS=k.forwardRef((e,t)=>{const{as:n="div",activeKey:r,bsPrefix:i,className:s,onSelect:o,flush:u,alwaysOpen:d,...p}=VE(e,{activeKey:"onSelect"}),x=Ft(i,"accordion"),y=k.useMemo(()=>({activeEventKey:r,onSelect:o,alwaysOpen:d}),[r,o,d]);return g.jsx(W1.Provider,{value:y,children:g.jsx(n,{ref:t,...p,className:bt(s,x,u&&`${x}-flush`)})})});lS.displayName="Accordion";const Nc=Object.assign(lS,{Button:ly,Collapse:iy,Item:iS,Header:aS,Body:rS});function g5(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e},[e]),t}function Lg(e){const t=g5(e);return k.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const sy=e=>k.forwardRef((t,n)=>g.jsx("div",{...t,ref:n,className:bt(t.className,e)}));function x5(){return k.useState(null)}function v5(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e},[e]),t}function $a(e){const t=v5(e);return k.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function y5(e,t,n,r=!1){const i=$a(n);k.useEffect(()=>{const s=typeof e=="function"?e():e;return s.addEventListener(t,i,r),()=>s.removeEventListener(t,i,r)},[e])}function sS(){const e=k.useRef(!0),t=k.useRef(()=>e.current);return k.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function oS(e){const t=k.useRef(null);return k.useEffect(()=>{t.current=e}),t.current}const _5=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",w5=typeof document<"u",H_=w5||_5?k.useLayoutEffect:k.useEffect,E5=["as","disabled"];function S5(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function b5(e){return!e||e.trim()==="#"}function oy({tagName:e,disabled:t,href:n,target:r,rel:i,role:s,onClick:o,tabIndex:u=0,type:d}){e||(n!=null||r!=null||i!=null?e="a":e="button");const p={tagName:e};if(e==="button")return[{type:d||"button",disabled:t},p];const x=v=>{if((t||e==="a"&&b5(n))&&v.preventDefault(),t){v.stopPropagation();return}o==null||o(v)},y=v=>{v.key===" "&&(v.preventDefault(),x(v))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:s??"button",disabled:void 0,tabIndex:t?void 0:u,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:x,onKeyDown:y},p]}const cS=k.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=S5(e,E5);const[s,{tagName:o}]=oy(Object.assign({tagName:n,disabled:r},i));return g.jsx(o,Object.assign({},i,s,{ref:t}))});cS.displayName="Button";const T5=["onKeyDown"];function N5(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function C5(e){return!e||e.trim()==="#"}const fS=k.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=N5(e,T5);const[i]=oy(Object.assign({tagName:"a"},r)),s=$a(o=>{i.onKeyDown(o),n==null||n(o)});return C5(r.href)||r.role==="button"?g.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:s})):g.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});fS.displayName="Anchor";const A5={[fo]:"show",[Sc]:"show"},cy=k.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},s)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},u=k.useCallback((d,p)=>{eS(d),r==null||r(d,p)},[r]);return g.jsx(tS,{ref:s,addEndListener:JE,...o,onEnter:u,childRef:ry(t),children:(d,p)=>k.cloneElement(t,{...p,className:bt("fade",e,t.props.className,A5[d],n[d])})})});cy.displayName="Fade";const R5={"aria-label":mo.string,onClick:mo.func,variant:mo.oneOf(["white"])},fy=k.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>g.jsx("button",{ref:i,type:"button",className:bt("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));fy.displayName="CloseButton";fy.propTypes=R5;const Nr=k.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:s=!1,className:o,...u},d)=>{const p=Ft(t,"btn"),[x,{tagName:y}]=oy({tagName:e,disabled:s,...u}),v=y;return g.jsx(v,{...x,...u,ref:d,disabled:s,className:bt(o,p,i&&"active",n&&`${p}-${n}`,r&&`${p}-${r}`,u.href&&s&&"disabled")})});Nr.displayName="Button";const uy=k.forwardRef(({bsPrefix:e,className:t,role:n="toolbar",...r},i)=>{const s=Ft(e,"btn-toolbar");return g.jsx("div",{...r,ref:i,className:bt(t,s),role:n})});uy.displayName="ButtonToolbar";const dy=k.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Ft(t,"card-body"),g.jsx(n,{ref:i,className:bt(e,t),...r})));dy.displayName="CardBody";const uS=k.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Ft(t,"card-footer"),g.jsx(n,{ref:i,className:bt(e,t),...r})));uS.displayName="CardFooter";const dS=k.createContext(null);dS.displayName="CardHeaderContext";const hS=k.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},i)=>{const s=Ft(e,"card-header"),o=k.useMemo(()=>({cardHeaderBsPrefix:s}),[s]);return g.jsx(dS.Provider,{value:o,children:g.jsx(n,{ref:i,...r,className:bt(t,s)})})});hS.displayName="CardHeader";const mS=k.forwardRef(({bsPrefix:e,className:t,variant:n,as:r="img",...i},s)=>{const o=Ft(e,"card-img");return g.jsx(r,{ref:s,className:bt(n?`${o}-${n}`:o,t),...i})});mS.displayName="CardImg";const pS=k.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Ft(t,"card-img-overlay"),g.jsx(n,{ref:i,className:bt(e,t),...r})));pS.displayName="CardImgOverlay";const gS=k.forwardRef(({className:e,bsPrefix:t,as:n="a",...r},i)=>(t=Ft(t,"card-link"),g.jsx(n,{ref:i,className:bt(e,t),...r})));gS.displayName="CardLink";const O5=sy("h6"),xS=k.forwardRef(({className:e,bsPrefix:t,as:n=O5,...r},i)=>(t=Ft(t,"card-subtitle"),g.jsx(n,{ref:i,className:bt(e,t),...r})));xS.displayName="CardSubtitle";const vS=k.forwardRef(({className:e,bsPrefix:t,as:n="p",...r},i)=>(t=Ft(t,"card-text"),g.jsx(n,{ref:i,className:bt(e,t),...r})));vS.displayName="CardText";const D5=sy("h5"),yS=k.forwardRef(({className:e,bsPrefix:t,as:n=D5,...r},i)=>(t=Ft(t,"card-title"),g.jsx(n,{ref:i,className:bt(e,t),...r})));yS.displayName="CardTitle";const _S=k.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:i,body:s=!1,children:o,as:u="div",...d},p)=>{const x=Ft(e,"card");return g.jsx(u,{ref:p,...d,className:bt(t,x,n&&`bg-${n}`,r&&`text-${r}`,i&&`border-${i}`),children:s?g.jsx(dy,{children:o}):o})});_S.displayName="Card";const Ts=Object.assign(_S,{Img:mS,Title:yS,Subtitle:xS,Body:dy,Link:gS,Text:vS,Header:hS,Footer:uS,ImgOverlay:pS});function j5(e){const t=k.useRef(e);return t.current=e,t}function k5(e){const t=j5(e);k.useEffect(()=>()=>t.current(),[])}function F5(e,t){return k.Children.toArray(e).some(n=>k.isValidElement(n)&&n.type===t)}function L5({as:e,bsPrefix:t,className:n,...r}){t=Ft(t,"col");const i=XE(),s=qE(),o=[],u=[];return i.forEach(d=>{const p=r[d];delete r[d];let x,y,v;typeof p=="object"&&p!=null?{span:x,offset:y,order:v}=p:x=p;const w=d!==s?`-${d}`:"";x&&o.push(x===!0?`${t}${w}`:`${t}${w}-${x}`),v!=null&&u.push(`order${w}-${v}`),y!=null&&u.push(`offset${w}-${y}`)}),[{...r,className:bt(n,...o,...u)},{as:e,bsPrefix:t,spans:o}]}const Qn=k.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:s,spans:o}]=L5(e);return g.jsx(i,{...r,ref:t,className:bt(n,!o.length&&s)})});Qn.displayName="Col";const la=k.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...i},s)=>{const o=Ft(e,"container"),u=typeof t=="string"?`-${t}`:"-fluid";return g.jsx(n,{ref:s,...i,className:bt(r,t?`${o}${u}`:o)})});la.displayName="Container";var M5=Function.prototype.bind.call(Function.prototype.call,[].slice);function wc(e,t){return M5(e.querySelectorAll(t))}function B5(e,t,n){const r=k.useRef(e!==void 0),[i,s]=k.useState(t),o=e!==void 0,u=r.current;return r.current=o,!o&&u&&i!==t&&s(t),[o?e:i,k.useCallback((...d)=>{const[p,...x]=d;let y=n==null?void 0:n(p,...x);return s(p),y},[n])]}function P5(){const[,e]=k.useReducer(t=>t+1,0);return e}const dx=k.createContext(null);var $_=Object.prototype.hasOwnProperty;function z_(e,t,n){for(n of e.keys())if(v1(n,t))return n}function v1(e,t){var n,r,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((r=e.length)===t.length)for(;r--&&v1(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i=="object"&&(i=z_(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i=="object"&&(i=z_(t,i),!i)||!v1(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if($_.call(e,n)&&++r&&!$_.call(t,n)||!(n in t)||!v1(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function U5(e){const t=sS();return[e[0],k.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var ai="top",ol="bottom",cl="right",ii="left",hy="auto",V1=[ai,ol,cl,ii],V0="start",O1="end",I5="clippingParents",wS="viewport",c1="popper",Y5="reference",G_=V1.reduce(function(e,t){return e.concat([t+"-"+V0,t+"-"+O1])},[]),ES=[].concat(V1,[hy]).reduce(function(e,t){return e.concat([t,t+"-"+V0,t+"-"+O1])},[]),H5="beforeRead",$5="read",z5="afterRead",G5="beforeMain",W5="main",V5="afterMain",X5="beforeWrite",q5="write",K5="afterWrite",Z5=[H5,$5,z5,G5,W5,V5,X5,q5,K5];function Ds(e){return e.split("-")[0]}function Li(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tu(e){var t=Li(e).Element;return e instanceof t||e instanceof Element}function js(e){var t=Li(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function my(e){if(typeof ShadowRoot>"u")return!1;var t=Li(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Jf=Math.max,Mg=Math.min,X0=Math.round;function D2(){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 SS(){return!/^((?!chrome|android).)*safari/i.test(D2())}function q0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&js(e)&&(i=e.offsetWidth>0&&X0(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&X0(r.height)/e.offsetHeight||1);var o=tu(e)?Li(e):window,u=o.visualViewport,d=!SS()&&n,p=(r.left+(d&&u?u.offsetLeft:0))/i,x=(r.top+(d&&u?u.offsetTop:0))/s,y=r.width/i,v=r.height/s;return{width:y,height:v,top:x,right:p+y,bottom:x+v,left:p,x:p,y:x}}function py(e){var t=q0(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function bS(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&my(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function jc(e){return e?(e.nodeName||"").toLowerCase():null}function yo(e){return Li(e).getComputedStyle(e)}function Q5(e){return["table","td","th"].indexOf(jc(e))>=0}function Bc(e){return((tu(e)?e.ownerDocument:e.document)||window.document).documentElement}function hx(e){return jc(e)==="html"?e:e.assignedSlot||e.parentNode||(my(e)?e.host:null)||Bc(e)}function W_(e){return!js(e)||yo(e).position==="fixed"?null:e.offsetParent}function J5(e){var t=/firefox/i.test(D2()),n=/Trident/i.test(D2());if(n&&js(e)){var r=yo(e);if(r.position==="fixed")return null}var i=hx(e);for(my(i)&&(i=i.host);js(i)&&["html","body"].indexOf(jc(i))<0;){var s=yo(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function X1(e){for(var t=Li(e),n=W_(e);n&&Q5(n)&&yo(n).position==="static";)n=W_(n);return n&&(jc(n)==="html"||jc(n)==="body"&&yo(n).position==="static")?t:n||J5(e)||t}function gy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function y1(e,t,n){return Jf(e,Mg(t,n))}function eC(e,t,n){var r=y1(e,t,n);return r>n?n:r}function TS(){return{top:0,right:0,bottom:0,left:0}}function NS(e){return Object.assign({},TS(),e)}function CS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var tC=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,NS(typeof t!="number"?t:CS(t,V1))};function nC(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,u=Ds(n.placement),d=gy(u),p=[ii,cl].indexOf(u)>=0,x=p?"height":"width";if(!(!s||!o)){var y=tC(i.padding,n),v=py(s),w=d==="y"?ai:ii,b=d==="y"?ol:cl,S=n.rects.reference[x]+n.rects.reference[d]-o[d]-n.rects.popper[x],T=o[d]-n.rects.reference[d],C=X1(s),R=C?d==="y"?C.clientHeight||0:C.clientWidth||0:0,A=S/2-T/2,j=y[w],O=R-v[x]-y[b],B=R/2-v[x]/2+A,L=y1(j,B,O),I=d;n.modifiersData[r]=(t={},t[I]=L,t.centerOffset=L-B,t)}}function rC(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||bS(t.elements.popper,i)&&(t.elements.arrow=i))}const aC={name:"arrow",enabled:!0,phase:"main",fn:nC,effect:rC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function K0(e){return e.split("-")[1]}var iC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lC(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:X0(n*i)/i||0,y:X0(r*i)/i||0}}function V_(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,o=e.offsets,u=e.position,d=e.gpuAcceleration,p=e.adaptive,x=e.roundOffsets,y=e.isFixed,v=o.x,w=v===void 0?0:v,b=o.y,S=b===void 0?0:b,T=typeof x=="function"?x({x:w,y:S}):{x:w,y:S};w=T.x,S=T.y;var C=o.hasOwnProperty("x"),R=o.hasOwnProperty("y"),A=ii,j=ai,O=window;if(p){var B=X1(n),L="clientHeight",I="clientWidth";if(B===Li(n)&&(B=Bc(n),yo(B).position!=="static"&&u==="absolute"&&(L="scrollHeight",I="scrollWidth")),B=B,i===ai||(i===ii||i===cl)&&s===O1){j=ol;var U=y&&B===O&&O.visualViewport?O.visualViewport.height:B[L];S-=U-r.height,S*=d?1:-1}if(i===ii||(i===ai||i===ol)&&s===O1){A=cl;var W=y&&B===O&&O.visualViewport?O.visualViewport.width:B[I];w-=W-r.width,w*=d?1:-1}}var X=Object.assign({position:u},p&&iC),te=x===!0?lC({x:w,y:S},Li(n)):{x:w,y:S};if(w=te.x,S=te.y,d){var ne;return Object.assign({},X,(ne={},ne[j]=R?"0":"",ne[A]=C?"0":"",ne.transform=(O.devicePixelRatio||1)<=1?"translate("+w+"px, "+S+"px)":"translate3d("+w+"px, "+S+"px, 0)",ne))}return Object.assign({},X,(t={},t[j]=R?S+"px":"",t[A]=C?w+"px":"",t.transform="",t))}function sC(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,u=n.roundOffsets,d=u===void 0?!0:u,p={placement:Ds(t.placement),variation:K0(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,V_(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,V_(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const oC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:sC,data:{}};var dg={passive:!0};function cC(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,u=o===void 0?!0:o,d=Li(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(x){x.addEventListener("scroll",n.update,dg)}),u&&d.addEventListener("resize",n.update,dg),function(){s&&p.forEach(function(x){x.removeEventListener("scroll",n.update,dg)}),u&&d.removeEventListener("resize",n.update,dg)}}const fC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cC,data:{}};var uC={left:"right",right:"left",bottom:"top",top:"bottom"};function Cg(e){return e.replace(/left|right|bottom|top/g,function(t){return uC[t]})}var dC={start:"end",end:"start"};function X_(e){return e.replace(/start|end/g,function(t){return dC[t]})}function xy(e){var t=Li(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function vy(e){return q0(Bc(e)).left+xy(e).scrollLeft}function hC(e,t){var n=Li(e),r=Bc(e),i=n.visualViewport,s=r.clientWidth,o=r.clientHeight,u=0,d=0;if(i){s=i.width,o=i.height;var p=SS();(p||!p&&t==="fixed")&&(u=i.offsetLeft,d=i.offsetTop)}return{width:s,height:o,x:u+vy(e),y:d}}function mC(e){var t,n=Bc(e),r=xy(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Jf(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Jf(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+vy(e),d=-r.scrollTop;return yo(i||n).direction==="rtl"&&(u+=Jf(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:u,y:d}}function yy(e){var t=yo(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function AS(e){return["html","body","#document"].indexOf(jc(e))>=0?e.ownerDocument.body:js(e)&&yy(e)?e:AS(hx(e))}function _1(e,t){var n;t===void 0&&(t=[]);var r=AS(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=Li(r),o=i?[s].concat(s.visualViewport||[],yy(r)?r:[]):r,u=t.concat(o);return i?u:u.concat(_1(hx(o)))}function j2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pC(e,t){var n=q0(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 q_(e,t,n){return t===wS?j2(hC(e,n)):tu(t)?pC(t,n):j2(mC(Bc(e)))}function gC(e){var t=_1(hx(e)),n=["absolute","fixed"].indexOf(yo(e).position)>=0,r=n&&js(e)?X1(e):e;return tu(r)?t.filter(function(i){return tu(i)&&bS(i,r)&&jc(i)!=="body"}):[]}function xC(e,t,n,r){var i=t==="clippingParents"?gC(e):[].concat(t),s=[].concat(i,[n]),o=s[0],u=s.reduce(function(d,p){var x=q_(e,p,r);return d.top=Jf(x.top,d.top),d.right=Mg(x.right,d.right),d.bottom=Mg(x.bottom,d.bottom),d.left=Jf(x.left,d.left),d},q_(e,o,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function RS(e){var t=e.reference,n=e.element,r=e.placement,i=r?Ds(r):null,s=r?K0(r):null,o=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,d;switch(i){case ai:d={x:o,y:t.y-n.height};break;case ol:d={x:o,y:t.y+t.height};break;case cl:d={x:t.x+t.width,y:u};break;case ii:d={x:t.x-n.width,y:u};break;default:d={x:t.x,y:t.y}}var p=i?gy(i):null;if(p!=null){var x=p==="y"?"height":"width";switch(s){case V0:d[p]=d[p]-(t[x]/2-n[x]/2);break;case O1:d[p]=d[p]+(t[x]/2-n[x]/2);break}}return d}function D1(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,o=s===void 0?e.strategy:s,u=n.boundary,d=u===void 0?I5:u,p=n.rootBoundary,x=p===void 0?wS:p,y=n.elementContext,v=y===void 0?c1:y,w=n.altBoundary,b=w===void 0?!1:w,S=n.padding,T=S===void 0?0:S,C=NS(typeof T!="number"?T:CS(T,V1)),R=v===c1?Y5:c1,A=e.rects.popper,j=e.elements[b?R:v],O=xC(tu(j)?j:j.contextElement||Bc(e.elements.popper),d,x,o),B=q0(e.elements.reference),L=RS({reference:B,element:A,strategy:"absolute",placement:i}),I=j2(Object.assign({},A,L)),U=v===c1?I:B,W={top:O.top-U.top+C.top,bottom:U.bottom-O.bottom+C.bottom,left:O.left-U.left+C.left,right:U.right-O.right+C.right},X=e.modifiersData.offset;if(v===c1&&X){var te=X[i];Object.keys(W).forEach(function(ne){var _e=[cl,ol].indexOf(ne)>=0?1:-1,ye=[ai,ol].indexOf(ne)>=0?"y":"x";W[ne]+=te[ye]*_e})}return W}function vC(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,u=n.flipVariations,d=n.allowedAutoPlacements,p=d===void 0?ES:d,x=K0(r),y=x?u?G_:G_.filter(function(b){return K0(b)===x}):V1,v=y.filter(function(b){return p.indexOf(b)>=0});v.length===0&&(v=y);var w=v.reduce(function(b,S){return b[S]=D1(e,{placement:S,boundary:i,rootBoundary:s,padding:o})[Ds(S)],b},{});return Object.keys(w).sort(function(b,S){return w[b]-w[S]})}function yC(e){if(Ds(e)===hy)return[];var t=Cg(e);return[X_(e),t,X_(t)]}function _C(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,u=o===void 0?!0:o,d=n.fallbackPlacements,p=n.padding,x=n.boundary,y=n.rootBoundary,v=n.altBoundary,w=n.flipVariations,b=w===void 0?!0:w,S=n.allowedAutoPlacements,T=t.options.placement,C=Ds(T),R=C===T,A=d||(R||!b?[Cg(T)]:yC(T)),j=[T].concat(A).reduce(function(ee,K){return ee.concat(Ds(K)===hy?vC(t,{placement:K,boundary:x,rootBoundary:y,padding:p,flipVariations:b,allowedAutoPlacements:S}):K)},[]),O=t.rects.reference,B=t.rects.popper,L=new Map,I=!0,U=j[0],W=0;W<j.length;W++){var X=j[W],te=Ds(X),ne=K0(X)===V0,_e=[ai,ol].indexOf(te)>=0,ye=_e?"width":"height",ce=D1(t,{placement:X,boundary:x,rootBoundary:y,altBoundary:v,padding:p}),Te=_e?ne?cl:ii:ne?ol:ai;O[ye]>B[ye]&&(Te=Cg(Te));var Ne=Cg(Te),$e=[];if(s&&$e.push(ce[te]<=0),u&&$e.push(ce[Te]<=0,ce[Ne]<=0),$e.every(function(ee){return ee})){U=X,I=!1;break}L.set(X,$e)}if(I)for(var Pe=b?3:1,et=function(K){var xe=j.find(function(Fe){var Ce=L.get(Fe);if(Ce)return Ce.slice(0,K).every(function(me){return me})});if(xe)return U=xe,"break"},J=Pe;J>0;J--){var ie=et(J);if(ie==="break")break}t.placement!==U&&(t.modifiersData[r]._skip=!0,t.placement=U,t.reset=!0)}}const wC={name:"flip",enabled:!0,phase:"main",fn:_C,requiresIfExists:["offset"],data:{_skip:!1}};function K_(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 Z_(e){return[ai,cl,ol,ii].some(function(t){return e[t]>=0})}function EC(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,o=D1(t,{elementContext:"reference"}),u=D1(t,{altBoundary:!0}),d=K_(o,r),p=K_(u,i,s),x=Z_(d),y=Z_(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:x,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":x,"data-popper-escaped":y})}const SC={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:EC};function bC(e,t,n){var r=Ds(e),i=[ii,ai].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],u=s[1];return o=o||0,u=(u||0)*i,[ii,cl].indexOf(r)>=0?{x:u,y:o}:{x:o,y:u}}function TC(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,o=ES.reduce(function(x,y){return x[y]=bC(y,t.rects,s),x},{}),u=o[t.placement],d=u.x,p=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=o}const NC={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:TC};function CC(e){var t=e.state,n=e.name;t.modifiersData[n]=RS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const AC={name:"popperOffsets",enabled:!0,phase:"read",fn:CC,data:{}};function RC(e){return e==="x"?"y":"x"}function OC(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,u=o===void 0?!1:o,d=n.boundary,p=n.rootBoundary,x=n.altBoundary,y=n.padding,v=n.tether,w=v===void 0?!0:v,b=n.tetherOffset,S=b===void 0?0:b,T=D1(t,{boundary:d,rootBoundary:p,padding:y,altBoundary:x}),C=Ds(t.placement),R=K0(t.placement),A=!R,j=gy(C),O=RC(j),B=t.modifiersData.popperOffsets,L=t.rects.reference,I=t.rects.popper,U=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,W=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),X=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,te={x:0,y:0};if(B){if(s){var ne,_e=j==="y"?ai:ii,ye=j==="y"?ol:cl,ce=j==="y"?"height":"width",Te=B[j],Ne=Te+T[_e],$e=Te-T[ye],Pe=w?-I[ce]/2:0,et=R===V0?L[ce]:I[ce],J=R===V0?-I[ce]:-L[ce],ie=t.elements.arrow,ee=w&&ie?py(ie):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:TS(),xe=K[_e],Fe=K[ye],Ce=y1(0,L[ce],ee[ce]),me=A?L[ce]/2-Pe-Ce-xe-W.mainAxis:et-Ce-xe-W.mainAxis,oe=A?-L[ce]/2+Pe+Ce+Fe+W.mainAxis:J+Ce+Fe+W.mainAxis,Be=t.elements.arrow&&X1(t.elements.arrow),Xe=Be?j==="y"?Be.clientTop||0:Be.clientLeft||0:0,rt=(ne=X==null?void 0:X[j])!=null?ne:0,Qe=Te+me-rt-Xe,ft=Te+oe-rt,xt=y1(w?Mg(Ne,Qe):Ne,Te,w?Jf($e,ft):$e);B[j]=xt,te[j]=xt-Te}if(u){var We,tn=j==="x"?ai:ii,gn=j==="x"?ol:cl,Jt=B[O],Bt=O==="y"?"height":"width",An=Jt+T[tn],Rn=Jt-T[gn],$t=[ai,ii].indexOf(C)!==-1,cn=(We=X==null?void 0:X[O])!=null?We:0,yt=$t?An:Jt-L[Bt]-I[Bt]-cn+W.altAxis,dn=$t?Jt+L[Bt]+I[Bt]-cn-W.altAxis:Rn,nn=w&&$t?eC(yt,Jt,dn):y1(w?yt:An,Jt,w?dn:Rn);B[O]=nn,te[O]=nn-Jt}t.modifiersData[r]=te}}const DC={name:"preventOverflow",enabled:!0,phase:"main",fn:OC,requiresIfExists:["offset"]};function jC(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kC(e){return e===Li(e)||!js(e)?xy(e):jC(e)}function FC(e){var t=e.getBoundingClientRect(),n=X0(t.width)/e.offsetWidth||1,r=X0(t.height)/e.offsetHeight||1;return n!==1||r!==1}function LC(e,t,n){n===void 0&&(n=!1);var r=js(t),i=js(t)&&FC(t),s=Bc(t),o=q0(e,i,n),u={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((jc(t)!=="body"||yy(s))&&(u=kC(t)),js(t)?(d=q0(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=vy(s))),{x:o.left+u.scrollLeft-d.x,y:o.top+u.scrollTop-d.y,width:o.width,height:o.height}}function MC(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(u){if(!n.has(u)){var d=t.get(u);d&&i(d)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function BC(e){var t=MC(e);return Z5.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function PC(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function UC(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Q_={placement:"bottom",modifiers:[],strategy:"absolute"};function J_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function IC(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?Q_:i;return function(u,d,p){p===void 0&&(p=s);var x={placement:"bottom",orderedModifiers:[],options:Object.assign({},Q_,s),modifiersData:{},elements:{reference:u,popper:d},attributes:{},styles:{}},y=[],v=!1,w={state:x,setOptions:function(C){var R=typeof C=="function"?C(x.options):C;S(),x.options=Object.assign({},s,x.options,R),x.scrollParents={reference:tu(u)?_1(u):u.contextElement?_1(u.contextElement):[],popper:_1(d)};var A=BC(UC([].concat(r,x.options.modifiers)));return x.orderedModifiers=A.filter(function(j){return j.enabled}),b(),w.update()},forceUpdate:function(){if(!v){var C=x.elements,R=C.reference,A=C.popper;if(J_(R,A)){x.rects={reference:LC(R,X1(A),x.options.strategy==="fixed"),popper:py(A)},x.reset=!1,x.placement=x.options.placement,x.orderedModifiers.forEach(function(W){return x.modifiersData[W.name]=Object.assign({},W.data)});for(var j=0;j<x.orderedModifiers.length;j++){if(x.reset===!0){x.reset=!1,j=-1;continue}var O=x.orderedModifiers[j],B=O.fn,L=O.options,I=L===void 0?{}:L,U=O.name;typeof B=="function"&&(x=B({state:x,options:I,name:U,instance:w})||x)}}}},update:PC(function(){return new Promise(function(T){w.forceUpdate(),T(x)})}),destroy:function(){S(),v=!0}};if(!J_(u,d))return w;w.setOptions(p).then(function(T){!v&&p.onFirstUpdate&&p.onFirstUpdate(T)});function b(){x.orderedModifiers.forEach(function(T){var C=T.name,R=T.options,A=R===void 0?{}:R,j=T.effect;if(typeof j=="function"){var O=j({state:x,name:C,instance:w,options:A}),B=function(){};y.push(O||B)}})}function S(){y.forEach(function(T){return T()}),y=[]}return w}}const YC=IC({defaultModifiers:[SC,AC,oC,fC,NC,wC,DC,aC]}),HC=["enabled","placement","strategy","modifiers"];function $C(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const zC={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},GC={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,i=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&i==="tooltip"&&"setAttribute"in r){const s=r.getAttribute("aria-describedby");if(s&&s.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",s?`${s},${n.id}`:n.id)}}},WC=[];function VC(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:s="absolute",modifiers:o=WC}=n,u=$C(n,HC);const d=k.useRef(o),p=k.useRef(),x=k.useCallback(()=>{var T;(T=p.current)==null||T.update()},[]),y=k.useCallback(()=>{var T;(T=p.current)==null||T.forceUpdate()},[]),[v,w]=U5(k.useState({placement:i,update:x,forceUpdate:y,attributes:{},styles:{popper:{},arrow:{}}})),b=k.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:T})=>{const C={},R={};Object.keys(T.elements).forEach(A=>{C[A]=T.styles[A],R[A]=T.attributes[A]}),w({state:T,styles:C,attributes:R,update:x,forceUpdate:y,placement:T.placement})}}),[x,y,w]),S=k.useMemo(()=>(v1(d.current,o)||(d.current=o),d.current),[o]);return k.useEffect(()=>{!p.current||!r||p.current.setOptions({placement:i,strategy:s,modifiers:[...S,b,zC]})},[s,i,b,r,S]),k.useEffect(()=>{if(!(!r||e==null||t==null))return p.current=YC(e,t,Object.assign({},u,{placement:i,strategy:s,modifiers:[...S,GC,b]})),()=>{p.current!=null&&(p.current.destroy(),p.current=void 0,w(T=>Object.assign({},T,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),v}function Bg(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var n2,ew;function XC(){if(ew)return n2;ew=1;var e=function(){};return n2=e,n2}var qC=XC();const KC=U1(qC),tw=()=>{};function ZC(e){return e.button===0}function QC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const r2=e=>e&&("current"in e?e.current:e),nw={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function JC(e,t=tw,{disabled:n,clickTrigger:r="click"}={}){const i=k.useRef(!1),s=k.useRef(!1),o=k.useCallback(p=>{const x=r2(e);KC(!!x,"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=!x||QC(p)||!ZC(p)||!!Bg(x,p.target)||s.current,s.current=!1},[e]),u=$a(p=>{const x=r2(e);x&&Bg(x,p.target)?s.current=!0:s.current=!1}),d=$a(p=>{i.current||t(p)});k.useEffect(()=>{var p,x;if(n||e==null)return;const y=G1(r2(e)),v=y.defaultView||window;let w=(p=v.event)!=null?p:(x=v.parent)==null?void 0:x.event,b=null;nw[r]&&(b=Tc(y,nw[r],u,!0));const S=Tc(y,r,o,!0),T=Tc(y,r,R=>{if(R===w){w=void 0;return}d(R)});let C=[];return"ontouchstart"in y.documentElement&&(C=[].slice.call(y.body.children).map(R=>Tc(R,"mousemove",tw))),()=>{b==null||b(),S(),T(),C.forEach(R=>R())}},[e,n,r,o,u,d])}function e8(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function t8(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function n8({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:s,containerPadding:o,arrowElement:u,popperConfig:d={}}){var p,x,y,v,w;const b=e8(d.modifiers);return Object.assign({},d,{placement:n,enabled:e,strategy:s?"fixed":d.strategy,modifiers:t8(Object.assign({},b,{eventListeners:{enabled:t,options:(p=b.eventListeners)==null?void 0:p.options},preventOverflow:Object.assign({},b.preventOverflow,{options:o?Object.assign({padding:o},(x=b.preventOverflow)==null?void 0:x.options):(y=b.preventOverflow)==null?void 0:y.options}),offset:{options:Object.assign({offset:i},(v=b.offset)==null?void 0:v.options)},arrow:Object.assign({},b.arrow,{enabled:!!u,options:Object.assign({},(w=b.arrow)==null?void 0:w.options,{element:u})}),flip:Object.assign({enabled:!!r},b.flip)}))})}const r8=["children","usePopper"];function a8(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const i8=()=>{};function OS(e={}){const t=k.useContext(dx),[n,r]=x5(),i=k.useRef(!1),{flip:s,offset:o,rootCloseEvent:u,fixed:d=!1,placement:p,popperConfig:x={},enableEventListeners:y=!0,usePopper:v=!!t}=e,w=(t==null?void 0:t.show)==null?!!e.show:t.show;w&&!i.current&&(i.current=!0);const b=B=>{t==null||t.toggle(!1,B)},{placement:S,setMenu:T,menuElement:C,toggleElement:R}=t||{},A=VC(R,C,n8({placement:p||S||"bottom-start",enabled:v,enableEvents:y??w,offset:o,flip:s,fixed:d,arrowElement:n,popperConfig:x})),j=Object.assign({ref:T||i8,"aria-labelledby":R==null?void 0:R.id},A.attributes.popper,{style:A.styles.popper}),O={show:w,placement:S,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:v?A:null,arrowProps:v?Object.assign({ref:r},A.attributes.arrow,{style:A.styles.arrow}):{}};return JC(C,b,{clickTrigger:u,disabled:!w}),[j,O]}function DS(e){let{children:t,usePopper:n=!0}=e,r=a8(e,r8);const[i,s]=OS(Object.assign({},r,{usePopper:n}));return g.jsx(g.Fragment,{children:t(i,s)})}DS.displayName="DropdownMenu";const _y={prefix:String(Math.round(Math.random()*1e10)),current:0},jS=Hn.createContext(_y),l8=Hn.createContext(!1);let s8=!!(typeof window<"u"&&window.document&&window.document.createElement),a2=new WeakMap;function o8(e=!1){let t=k.useContext(jS),n=k.useRef(null);if(n.current===null&&!e){var r,i;let s=(i=Hn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(s){let o=a2.get(s);o==null?a2.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==o.state&&(t.current=o.id,a2.delete(s))}n.current=++t.current}return n.current}function c8(e){let t=k.useContext(jS);t===_y&&!s8&&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=o8(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function f8(e){let t=Hn.useId(),[n]=k.useState(p8()),r=n?"react-aria":`react-aria${_y.prefix}`;return e||`${r}-${t}`}const u8=typeof Hn.useId=="function"?f8:c8;function d8(){return!1}function h8(){return!0}function m8(e){return()=>{}}function p8(){return typeof Hn.useSyncExternalStore=="function"?Hn.useSyncExternalStore(m8,d8,h8):k.useContext(l8)}const kS=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},rw=()=>{};function FS(){const e=u8(),{show:t=!1,toggle:n=rw,setToggle:r,menuElement:i}=k.useContext(dx)||{},s=k.useCallback(u=>{n(!t,u)},[t,n]),o={id:e,ref:r||rw,onClick:s,"aria-expanded":!!t};return i&&kS(i)&&(o["aria-haspopup"]=!0),[o,{show:t,toggle:n}]}function LS({children:e}){const[t,n]=FS();return g.jsx(g.Fragment,{children:e(t,n)})}LS.displayName="DropdownToggle";const k2=k.createContext(null),aw=(e,t=null)=>e!=null?String(e):t||null,MS=k.createContext(null);MS.displayName="NavContext";const g8="data-rr-ui-";function wy(e){return`${g8}${e}`}const x8=["eventKey","disabled","onClick","active","as"];function v8(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function BS({key:e,href:t,active:n,disabled:r,onClick:i}){const s=k.useContext(k2),o=k.useContext(MS),{activeKey:u}=o||{},d=aw(e,t),p=n==null&&e!=null?aw(u)===d:n;return[{onClick:$a(y=>{r||(i==null||i(y),s&&!y.isPropagationStopped()&&s(d,y))}),"aria-disabled":r||void 0,"aria-selected":p,[wy("dropdown-item")]:""},{isActive:p}]}const PS=k.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:s,as:o=cS}=e,u=v8(e,x8);const[d]=BS({key:n,href:u.href,disabled:r,onClick:i,active:s});return g.jsx(o,Object.assign({},u,{ref:t},d))});PS.displayName="DropdownItem";const US=k.createContext(ed?window:void 0);US.Provider;function mx(){return k.useContext(US)}function iw(){const e=P5(),t=k.useRef(null),n=k.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function q1({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${wy("dropdown-item")}]`,focusFirstItemOnShow:s,placement:o="bottom-start",children:u}){const d=mx(),[p,x]=B5(t,e,r),[y,v]=iw(),w=y.current,[b,S]=iw(),T=b.current,C=oS(p),R=k.useRef(null),A=k.useRef(!1),j=k.useContext(k2),O=k.useCallback((X,te,ne=te==null?void 0:te.type)=>{x(X,{originalEvent:te,source:ne})},[x]),B=$a((X,te)=>{n==null||n(X,te),O(!1,te,"select"),te.isPropagationStopped()||j==null||j(X,te)}),L=k.useMemo(()=>({toggle:O,placement:o,show:p,menuElement:w,toggleElement:T,setMenu:v,setToggle:S}),[O,o,p,w,T,v,S]);w&&C&&!p&&(A.current=w.contains(w.ownerDocument.activeElement));const I=$a(()=>{T&&T.focus&&T.focus()}),U=$a(()=>{const X=R.current;let te=s;if(te==null&&(te=y.current&&kS(y.current)?"keyboard":!1),te===!1||te==="keyboard"&&!/^key.+$/.test(X))return;const ne=wc(y.current,i)[0];ne&&ne.focus&&ne.focus()});k.useEffect(()=>{p?U():A.current&&(A.current=!1,I())},[p,A,I,U]),k.useEffect(()=>{R.current=null});const W=(X,te)=>{if(!y.current)return null;const ne=wc(y.current,i);let _e=ne.indexOf(X)+te;return _e=Math.max(0,Math.min(_e,ne.length)),ne[_e]};return y5(k.useCallback(()=>d.document,[d]),"keydown",X=>{var te,ne;const{key:_e}=X,ye=X.target,ce=(te=y.current)==null?void 0:te.contains(ye),Te=(ne=b.current)==null?void 0:ne.contains(ye);if(/input|textarea/i.test(ye.tagName)&&(_e===" "||_e!=="Escape"&&ce||_e==="Escape"&&ye.type==="search")||!ce&&!Te||_e==="Tab"&&(!y.current||!p))return;R.current=X.type;const $e={originalEvent:X,source:X.type};switch(_e){case"ArrowUp":{const Pe=W(ye,-1);Pe&&Pe.focus&&Pe.focus(),X.preventDefault();return}case"ArrowDown":if(X.preventDefault(),!p)x(!0,$e);else{const Pe=W(ye,1);Pe&&Pe.focus&&Pe.focus()}return;case"Tab":ay(ye.ownerDocument,"keyup",Pe=>{var et;(Pe.key==="Tab"&&!Pe.target||!((et=y.current)!=null&&et.contains(Pe.target)))&&x(!1,$e)},{once:!0});break;case"Escape":_e==="Escape"&&(X.preventDefault(),X.stopPropagation()),x(!1,$e);break}}),g.jsx(k2.Provider,{value:B,children:g.jsx(dx.Provider,{value:L,children:u})})}q1.displayName="Dropdown";q1.Menu=DS;q1.Toggle=LS;q1.Item=PS;const Ey=k.createContext({});Ey.displayName="DropdownContext";const IS=k.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},s)=>(t=Ft(t,"dropdown-divider"),g.jsx(n,{ref:s,className:bt(e,t),role:r,...i})));IS.displayName="DropdownDivider";const YS=k.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},s)=>(t=Ft(t,"dropdown-header"),g.jsx(n,{ref:s,className:bt(e,t),role:r,...i})));YS.displayName="DropdownHeader";const HS=k.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:s,as:o=fS,...u},d)=>{const p=Ft(e,"dropdown-item"),[x,y]=BS({key:n,href:u.href,disabled:r,onClick:i,active:s});return g.jsx(o,{...u,...x,ref:d,className:bt(t,p,y.isActive&&"active",r&&"disabled")})});HS.displayName="DropdownItem";const $S=k.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=Ft(t,"dropdown-item-text"),g.jsx(n,{ref:i,className:bt(e,t),...r})));$S.displayName="DropdownItemText";const y8=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",_8=typeof document<"u",w8=_8||y8?k.useLayoutEffect:k.useEffect,px=k.createContext(null);px.displayName="InputGroupContext";const zS=k.createContext(null);zS.displayName="NavbarContext";function GS(e,t){return e}function WS(e,t,n){const r=n?"top-end":"top-start",i=n?"top-start":"top-end",s=n?"bottom-end":"bottom-start",o=n?"bottom-start":"bottom-end",u=n?"right-start":"left-start",d=n?"right-end":"left-end",p=n?"left-start":"right-start",x=n?"left-end":"right-end";let y=e?o:s;return t==="up"?y=e?i:r:t==="end"?y=e?x:p:t==="start"?y=e?d:u:t==="down-centered"?y="bottom":t==="up-centered"&&(y="top"),y}const VS=k.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:i=!0,show:s,renderOnMount:o,as:u="div",popperConfig:d,variant:p,...x},y)=>{let v=!1;const w=k.useContext(zS),b=Ft(e,"dropdown-menu"),{align:S,drop:T,isRTL:C}=k.useContext(Ey);n=n||S;const R=k.useContext(px),A=[];if(n)if(typeof n=="object"){const X=Object.keys(n);if(X.length){const te=X[0],ne=n[te];v=ne==="start",A.push(`${b}-${te}-${ne}`)}}else n==="end"&&(v=!0);const j=WS(v,T,C),[O,{hasShown:B,popper:L,show:I,toggle:U}]=OS({flip:i,rootCloseEvent:r,show:s,usePopper:!w&&A.length===0,offset:[0,2],popperConfig:d,placement:j});if(O.ref=fx(GS(y),O.ref),w8(()=>{I&&(L==null||L.update())},[I]),!B&&!o&&!R)return null;typeof u!="string"&&(O.show=I,O.close=()=>U==null?void 0:U(!1),O.align=n);let W=x.style;return L!=null&&L.placement&&(W={...x.style,...O.style},x["x-placement"]=L.placement),g.jsx(u,{...x,...O,style:W,...(A.length||w)&&{"data-bs-popper":"static"},className:bt(t,b,I&&"show",v&&`${b}-end`,p&&`${b}-${p}`,...A)})});VS.displayName="DropdownMenu";const XS=k.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=Nr,...s},o)=>{const u=Ft(e,"dropdown-toggle"),d=k.useContext(dx);r!==void 0&&(s.bsPrefix=r);const[p]=FS();return p.ref=fx(p.ref,GS(o)),g.jsx(i,{className:bt(n,u,t&&`${u}-split`,(d==null?void 0:d.show)&&"show"),...p,...s})});XS.displayName="DropdownToggle";const qS=k.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:i,className:s,align:o="start",onSelect:u,onToggle:d,focusFirstItemOnShow:p,as:x="div",navbar:y,autoClose:v=!0,...w}=VE(e,{show:"onToggle"}),b=k.useContext(px),S=Ft(n,"dropdown"),T=KE(),C=L=>v===!1?L==="click":v==="inside"?L!=="rootClose":v==="outside"?L!=="select":!0,R=Lg((L,I)=>{var U;!((U=I.originalEvent)==null||(U=U.target)==null)&&U.classList.contains("dropdown-toggle")&&I.source==="mousedown"||(I.originalEvent.currentTarget===document&&(I.source!=="keydown"||I.originalEvent.key==="Escape")&&(I.source="rootClose"),C(I.source)&&(d==null||d(L,I)))}),j=WS(o==="end",r,T),O=k.useMemo(()=>({align:o,drop:r,isRTL:T}),[o,r,T]),B={down:S,"down-centered":`${S}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return g.jsx(Ey.Provider,{value:O,children:g.jsx(q1,{placement:j,show:i,onSelect:u,onToggle:R,focusFirstItemOnShow:p,itemSelector:`.${S}-item:not(.disabled):not(:disabled)`,children:b?w.children:g.jsx(x,{...w,ref:t,className:bt(s,i&&"show",B[r])})})})});qS.displayName="Dropdown";const i2=Object.assign(qS,{Toggle:XS,Menu:VS,Item:HS,ItemText:$S,Divider:IS,Header:YS}),E8={type:mo.string,tooltip:mo.bool,as:mo.elementType},gx=k.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},s)=>g.jsx(e,{...i,ref:s,className:bt(t,`${n}-${r?"tooltip":"feedback"}`)}));gx.displayName="Feedback";gx.propTypes=E8;const _o=k.createContext({}),K1=k.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:s=!1,as:o="input",...u},d)=>{const{controlId:p}=k.useContext(_o);return t=Ft(t,"form-check-input"),g.jsx(o,{...u,ref:d,type:r,id:e||p,className:bt(n,t,i&&"is-valid",s&&"is-invalid")})});K1.displayName="FormCheckInput";const Pg=k.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:s}=k.useContext(_o);return e=Ft(e,"form-check-label"),g.jsx("label",{...r,ref:i,htmlFor:n||s,className:bt(t,e)})});Pg.displayName="FormCheckLabel";const KS=k.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:s=!1,isValid:o=!1,isInvalid:u=!1,feedbackTooltip:d=!1,feedback:p,feedbackType:x,className:y,style:v,title:w="",type:b="checkbox",label:S,children:T,as:C="input",...R},A)=>{t=Ft(t,"form-check"),n=Ft(n,"form-switch");const{controlId:j}=k.useContext(_o),O=k.useMemo(()=>({controlId:e||j}),[j,e]),B=!T&&S!=null&&S!==!1||F5(T,Pg),L=g.jsx(K1,{...R,type:b==="switch"?"checkbox":b,ref:A,isValid:o,isInvalid:u,disabled:s,as:C});return g.jsx(_o.Provider,{value:O,children:g.jsx("div",{style:v,className:bt(y,B&&t,r&&`${t}-inline`,i&&`${t}-reverse`,b==="switch"&&n),children:T||g.jsxs(g.Fragment,{children:[L,B&&g.jsx(Pg,{title:w,children:S}),p&&g.jsx(gx,{type:x,tooltip:d,children:p})]})})})});KS.displayName="FormCheck";const Ug=Object.assign(KS,{Input:K1,Label:Pg}),ZS=k.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:s,isValid:o=!1,isInvalid:u=!1,plaintext:d,readOnly:p,as:x="input",...y},v)=>{const{controlId:w}=k.useContext(_o);return e=Ft(e,"form-control"),g.jsx(x,{...y,type:t,size:r,ref:v,readOnly:p,id:i||w,className:bt(s,d?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,o&&"is-valid",u&&"is-invalid")})});ZS.displayName="FormControl";const S8=Object.assign(ZS,{Feedback:gx}),QS=k.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Ft(t,"form-floating"),g.jsx(n,{ref:i,className:bt(e,t),...r})));QS.displayName="FormFloating";const Sy=k.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=k.useMemo(()=>({controlId:e}),[e]);return g.jsx(_o.Provider,{value:i,children:g.jsx(t,{...n,ref:r})})});Sy.displayName="FormGroup";const JS=k.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:s,...o},u)=>{const{controlId:d}=k.useContext(_o);t=Ft(t,"form-label");let p="col-form-label";typeof n=="string"&&(p=`${p} ${p}-${n}`);const x=bt(i,t,r&&"visually-hidden",n&&p);return s=s||d,n?g.jsx(Qn,{ref:u,as:"label",className:x,htmlFor:s,...o}):g.jsx(e,{ref:u,className:x,htmlFor:s,...o})});JS.displayName="FormLabel";const e3=k.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:s}=k.useContext(_o);return e=Ft(e,"form-range"),g.jsx("input",{...r,type:"range",ref:i,className:bt(t,e),id:n||s})});e3.displayName="FormRange";const t3=k.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:s=!1,id:o,...u},d)=>{const{controlId:p}=k.useContext(_o);return e=Ft(e,"form-select"),g.jsx("select",{...u,size:n,ref:d,className:bt(r,e,t&&`${e}-${t}`,i&&"is-valid",s&&"is-invalid"),id:o||p})});t3.displayName="FormSelect";const n3=k.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},s)=>(e=Ft(e,"form-text"),g.jsx(n,{...i,ref:s,className:bt(t,e,r&&"text-muted")})));n3.displayName="FormText";const r3=k.forwardRef((e,t)=>g.jsx(Ug,{...e,ref:t,type:"switch"}));r3.displayName="Switch";const b8=Object.assign(r3,{Input:Ug.Input,Label:Ug.Label}),a3=k.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...s},o)=>(e=Ft(e,"form-floating"),g.jsxs(Sy,{ref:o,className:bt(t,e),controlId:r,...s,children:[n,g.jsx("label",{htmlFor:r,children:i})]})));a3.displayName="FloatingLabel";const T8={_ref:mo.any,validated:mo.bool,as:mo.elementType},by=k.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>g.jsx(n,{...r,ref:i,className:bt(e,t&&"was-validated")}));by.displayName="Form";by.propTypes=T8;const As=Object.assign(by,{Group:Sy,Control:S8,Floating:QS,Check:Ug,Switch:b8,Label:JS,Text:n3,Range:e3,Select:t3,FloatingLabel:a3}),xx=k.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=Ft(t,"input-group-text"),g.jsx(n,{ref:i,className:bt(e,t),...r})));xx.displayName="InputGroupText";const N8=e=>g.jsx(xx,{children:g.jsx(K1,{type:"checkbox",...e})}),C8=e=>g.jsx(xx,{children:g.jsx(K1,{type:"radio",...e})}),i3=k.forwardRef(({bsPrefix:e,size:t,hasValidation:n,className:r,as:i="div",...s},o)=>{e=Ft(e,"input-group");const u=k.useMemo(()=>({}),[]);return g.jsx(px.Provider,{value:u,children:g.jsx(i,{ref:o,...s,className:bt(r,e,t&&`${e}-${t}`,n&&"has-validation")})})});i3.displayName="InputGroup";const lw=Object.assign(i3,{Text:xx,Radio:C8,Checkbox:N8}),sw=e=>!e||typeof e=="function"?e:t=>{e.current=t};function A8(e,t){const n=sw(e),r=sw(t);return i=>{n&&n(i),r&&r(i)}}function Ty(e,t){return k.useMemo(()=>A8(e,t),[e,t])}var hg;function ow(e){if((!hg&&hg!==0||e)&&ed){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),hg=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return hg}function R8(){return k.useState(null)}function l2(e){e===void 0&&(e=G1());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function O8(e){const t=k.useRef(e);return t.current=e,t}function D8(e){const t=O8(e);k.useEffect(()=>()=>t.current(),[])}function j8(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const cw=wy("modal-open");class Ny{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return j8(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(ho(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(cw,""),ho(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(cw),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,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 s2=(e,t)=>ed?e==null?(t||G1()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function k8(e,t){const n=mx(),[r,i]=k.useState(()=>s2(e,n==null?void 0:n.document));if(!r){const s=s2(e);s&&i(s)}return k.useEffect(()=>{},[t,r]),k.useEffect(()=>{const s=s2(e);s!==r&&i(s)},[e,r]),r}function F8({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const s=k.useRef(null),o=k.useRef(t),u=$a(n);k.useEffect(()=>{t?o.current=!0:u(s.current)},[t,u]);const d=Ty(s,e.ref),p=k.cloneElement(e,{ref:d});return t?p:i||!o.current&&r?null:p}const L8=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function M8(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function B8(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:s,onExited:o,addEndListener:u,children:d}=e,p=M8(e,L8);const x=k.useRef(null),y=Ty(x,ry(d)),v=j=>O=>{j&&x.current&&j(x.current,O)},w=k.useCallback(v(t),[t]),b=k.useCallback(v(n),[n]),S=k.useCallback(v(r),[r]),T=k.useCallback(v(i),[i]),C=k.useCallback(v(s),[s]),R=k.useCallback(v(o),[o]),A=k.useCallback(v(u),[u]);return Object.assign({},p,{nodeRef:x},t&&{onEnter:w},n&&{onEntering:b},r&&{onEntered:S},i&&{onExit:T},s&&{onExiting:C},o&&{onExited:R},u&&{addEndListener:A},{children:typeof d=="function"?(j,O)=>d(j,Object.assign({},O,{ref:y})):k.cloneElement(d,{ref:y})})}const P8=["component"];function U8(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const I8=k.forwardRef((e,t)=>{let{component:n}=e,r=U8(e,P8);const i=B8(r);return g.jsx(n,Object.assign({ref:t},i))});function Y8({in:e,onTransition:t}){const n=k.useRef(null),r=k.useRef(!0),i=$a(t);return H_(()=>{if(!n.current)return;let s=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>s}),()=>{s=!0}},[e,i]),H_(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function H8({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[s,o]=k.useState(!t);t&&s&&o(!1);const u=Y8({in:!!t,onTransition:p=>{const x=()=>{p.isStale()||(p.in?r==null||r(p.element,p.initial):(o(!0),n==null||n(p.element)))};Promise.resolve(i(p)).then(x,y=>{throw p.in||o(!0),y})}}),d=Ty(u,e.ref);return s&&!t?null:k.cloneElement(e,{ref:d})}function fw(e,t,n){return e?g.jsx(I8,Object.assign({},n,{component:e})):t?g.jsx(H8,Object.assign({},n,{transition:t})):g.jsx(F8,Object.assign({},n))}const $8=["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 z8(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let o2;function G8(e){return o2||(o2=new Ny({ownerDocument:e==null?void 0:e.document})),o2}function W8(e){const t=mx(),n=e||G8(t),r=k.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:k.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:k.useCallback(i=>{r.current.backdrop=i},[])})}const l3=k.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:s,children:o,backdrop:u=!0,keyboard:d=!0,onBackdropClick:p,onEscapeKeyDown:x,transition:y,runTransition:v,backdropTransition:w,runBackdropTransition:b,autoFocus:S=!0,enforceFocus:T=!0,restoreFocus:C=!0,restoreFocusOptions:R,renderDialog:A,renderBackdrop:j=ft=>g.jsx("div",Object.assign({},ft)),manager:O,container:B,onShow:L,onHide:I=()=>{},onExit:U,onExited:W,onExiting:X,onEnter:te,onEntering:ne,onEntered:_e}=e,ye=z8(e,$8);const ce=mx(),Te=k8(B),Ne=W8(O),$e=sS(),Pe=oS(n),[et,J]=k.useState(!n),ie=k.useRef(null);k.useImperativeHandle(t,()=>Ne,[Ne]),ed&&!Pe&&n&&(ie.current=l2(ce==null?void 0:ce.document)),n&&et&&J(!1);const ee=$a(()=>{if(Ne.add(),oe.current=Tc(document,"keydown",Ce),me.current=Tc(document,"focus",()=>setTimeout(xe),!0),L&&L(),S){var ft,xt;const We=l2((ft=(xt=Ne.dialog)==null?void 0:xt.ownerDocument)!=null?ft:ce==null?void 0:ce.document);Ne.dialog&&We&&!Bg(Ne.dialog,We)&&(ie.current=We,Ne.dialog.focus())}}),K=$a(()=>{if(Ne.remove(),oe.current==null||oe.current(),me.current==null||me.current(),C){var ft;(ft=ie.current)==null||ft.focus==null||ft.focus(R),ie.current=null}});k.useEffect(()=>{!n||!Te||ee()},[n,Te,ee]),k.useEffect(()=>{et&&K()},[et,K]),D8(()=>{K()});const xe=$a(()=>{if(!T||!$e()||!Ne.isTopModal())return;const ft=l2(ce==null?void 0:ce.document);Ne.dialog&&ft&&!Bg(Ne.dialog,ft)&&Ne.dialog.focus()}),Fe=$a(ft=>{ft.target===ft.currentTarget&&(p==null||p(ft),u===!0&&I())}),Ce=$a(ft=>{d&&a5(ft)&&Ne.isTopModal()&&(x==null||x(ft),ft.defaultPrevented||I())}),me=k.useRef(),oe=k.useRef(),Be=(...ft)=>{J(!0),W==null||W(...ft)};if(!Te)return null;const Xe=Object.assign({role:r,ref:Ne.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},ye,{style:s,className:i,tabIndex:-1});let rt=A?A(Xe):g.jsx("div",Object.assign({},Xe,{children:k.cloneElement(o,{role:"document"})}));rt=fw(y,v,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:U,onExiting:X,onExited:Be,onEnter:te,onEntering:ne,onEntered:_e,children:rt});let Qe=null;return u&&(Qe=j({ref:Ne.setBackdropRef,onClick:Fe}),Qe=fw(w,b,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Qe})),g.jsx(g.Fragment,{children:Y0.createPortal(g.jsxs(g.Fragment,{children:[Qe,rt]}),Te)})});l3.displayName="Modal";const V8=Object.assign(l3,{Manager:Ny});function X8(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function q8(e,t){e.classList?e.classList.add(t):X8(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function uw(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function K8(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=uw(e.className,t):e.setAttribute("class",uw(e.className&&e.className.baseVal||"",t))}const F0={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Z8 extends Ny{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,ho(n,{[t]:`${parseFloat(ho(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],ho(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(q8(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";wc(n,F0.FIXED_CONTENT).forEach(s=>this.adjustAndStore(r,s,t.scrollBarWidth)),wc(n,F0.STICKY_CONTENT).forEach(s=>this.adjustAndStore(i,s,-t.scrollBarWidth)),wc(n,F0.NAVBAR_TOGGLER).forEach(s=>this.adjustAndStore(i,s,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();K8(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";wc(n,F0.FIXED_CONTENT).forEach(s=>this.restore(r,s)),wc(n,F0.STICKY_CONTENT).forEach(s=>this.restore(i,s)),wc(n,F0.NAVBAR_TOGGLER).forEach(s=>this.restore(i,s))}}let c2;function Q8(e){return c2||(c2=new Z8(e)),c2}const s3=k.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Ft(t,"modal-body"),g.jsx(n,{ref:i,className:bt(e,t),...r})));s3.displayName="ModalBody";const o3=k.createContext({onHide(){}}),Cy=k.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:s,children:o,scrollable:u,...d},p)=>{e=Ft(e,"modal");const x=`${e}-dialog`,y=typeof s=="string"?`${e}-fullscreen-${s}`:`${e}-fullscreen`;return g.jsx("div",{...d,ref:p,className:bt(x,t,i&&`${e}-${i}`,r&&`${x}-centered`,u&&`${x}-scrollable`,s&&y),children:g.jsx("div",{className:bt(`${e}-content`,n),children:o})})});Cy.displayName="ModalDialog";const c3=k.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Ft(t,"modal-footer"),g.jsx(n,{ref:i,className:bt(e,t),...r})));c3.displayName="ModalFooter";const J8=k.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...s},o)=>{const u=k.useContext(o3),d=Lg(()=>{u==null||u.onHide(),r==null||r()});return g.jsxs("div",{ref:o,...s,children:[i,n&&g.jsx(fy,{"aria-label":e,variant:t,onClick:d})]})}),f3=k.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},s)=>(e=Ft(e,"modal-header"),g.jsx(J8,{ref:s,...i,className:bt(t,e),closeLabel:n,closeButton:r})));f3.displayName="ModalHeader";const eA=sy("h4"),u3=k.forwardRef(({className:e,bsPrefix:t,as:n=eA,...r},i)=>(t=Ft(t,"modal-title"),g.jsx(n,{ref:i,className:bt(e,t),...r})));u3.displayName="ModalTitle";function tA(e){return g.jsx(cy,{...e,timeout:null})}function nA(e){return g.jsx(cy,{...e,timeout:null})}const d3=k.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:s,dialogAs:o=Cy,"data-bs-theme":u,"aria-labelledby":d,"aria-describedby":p,"aria-label":x,show:y=!1,animation:v=!0,backdrop:w=!0,keyboard:b=!0,onEscapeKeyDown:S,onShow:T,onHide:C,container:R,autoFocus:A=!0,enforceFocus:j=!0,restoreFocus:O=!0,restoreFocusOptions:B,onEntered:L,onExit:I,onExiting:U,onEnter:W,onEntering:X,onExited:te,backdropClassName:ne,manager:_e,...ye},ce)=>{const[Te,Ne]=k.useState({}),[$e,Pe]=k.useState(!1),et=k.useRef(!1),J=k.useRef(!1),ie=k.useRef(null),[ee,K]=R8(),xe=fx(ce,K),Fe=Lg(C),Ce=KE();e=Ft(e,"modal");const me=k.useMemo(()=>({onHide:Fe}),[Fe]);function oe(){return _e||Q8({isRTL:Ce})}function Be(yt){if(!ed)return;const dn=oe().getScrollbarWidth()>0,nn=yt.scrollHeight>G1(yt).documentElement.clientHeight;Ne({paddingRight:dn&&!nn?ow():void 0,paddingLeft:!dn&&nn?ow():void 0})}const Xe=Lg(()=>{ee&&Be(ee.dialog)});k5(()=>{O2(window,"resize",Xe),ie.current==null||ie.current()});const rt=()=>{et.current=!0},Qe=yt=>{et.current&&ee&&yt.target===ee.dialog&&(J.current=!0),et.current=!1},ft=()=>{Pe(!0),ie.current=QE(ee.dialog,()=>{Pe(!1)})},xt=yt=>{yt.target===yt.currentTarget&&ft()},We=yt=>{if(w==="static"){xt(yt);return}if(J.current||yt.target!==yt.currentTarget){J.current=!1;return}C==null||C()},tn=yt=>{b?S==null||S(yt):(yt.preventDefault(),w==="static"&&ft())},gn=(yt,dn)=>{yt&&Be(yt),W==null||W(yt,dn)},Jt=yt=>{ie.current==null||ie.current(),I==null||I(yt)},Bt=(yt,dn)=>{X==null||X(yt,dn),ay(window,"resize",Xe)},An=yt=>{yt&&(yt.style.display=""),te==null||te(yt),O2(window,"resize",Xe)},Rn=k.useCallback(yt=>g.jsx("div",{...yt,className:bt(`${e}-backdrop`,ne,!v&&"show")}),[v,ne,e]),$t={...n,...Te};$t.display="block";const cn=yt=>g.jsx("div",{role:"dialog",...yt,style:$t,className:bt(t,e,$e&&`${e}-static`,!v&&"show"),onClick:w?We:void 0,onMouseUp:Qe,"data-bs-theme":u,"aria-label":x,"aria-labelledby":d,"aria-describedby":p,children:g.jsx(o,{...ye,onMouseDown:rt,className:r,contentClassName:i,children:s})});return g.jsx(o3.Provider,{value:me,children:g.jsx(V8,{show:y,ref:xe,backdrop:w,container:R,keyboard:!0,autoFocus:A,enforceFocus:j,restoreFocus:O,restoreFocusOptions:B,onEscapeKeyDown:tn,onShow:T,onHide:C,onEnter:gn,onEntering:Bt,onEntered:L,onExit:Jt,onExiting:U,onExited:An,manager:oe(),transition:v?tA:void 0,backdropTransition:v?nA:void 0,renderBackdrop:Rn,renderDialog:cn})})});d3.displayName="Modal";const f1=Object.assign(d3,{Body:s3,Header:f3,Title:u3,Footer:c3,Dialog:Cy,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Cn=k.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},i)=>{const s=Ft(e,"row"),o=XE(),u=qE(),d=`${s}-cols`,p=[];return o.forEach(x=>{const y=r[x];delete r[x];let v;y!=null&&typeof y=="object"?{cols:v}=y:v=y;const w=x!==u?`-${x}`:"";v!=null&&p.push(`${d}${w}-${v}`)}),g.jsx(n,{ref:i,...r,className:bt(t,s,...p)})});Cn.displayName="Row";const h3=k.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:s,...o},u)=>{e=Ft(e,"spinner");const d=`${e}-${n}`;return g.jsx(i,{ref:u,...o,className:bt(s,d,r&&`${d}-${r}`,t&&`text-${t}`)})});h3.displayName="Spinner";const Xl=k.forwardRef(({bsPrefix:e,className:t,striped:n,bordered:r,borderless:i,hover:s,size:o,variant:u,responsive:d,...p},x)=>{const y=Ft(e,"table"),v=bt(t,y,u&&`${y}-${u}`,o&&`${y}-${o}`,n&&`${y}-${typeof n=="string"?`striped-${n}`:"striped"}`,r&&`${y}-bordered`,i&&`${y}-borderless`,s&&`${y}-hover`),w=g.jsx("table",{...p,className:v,ref:x});if(d){let b=`${y}-responsive`;return typeof d=="string"&&(b=`${b}-${d}`),g.jsx("div",{className:b,children:w})}return w}),rA="/static/DY3vaYXT.svg";function aA(){const e=Ke.c(6),{user:t}=k.useContext(su),{pathname:n}=Ls();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=g.jsx(Qn,{xs:10,children:g.jsx("div",{className:"nav-wrapper",children:g.jsxs("nav",{className:"header-nav",children:[g.jsx("a",{href:"https://geant.org/",children:g.jsx("img",{src:rA})}),g.jsxs("ul",{children:[g.jsx("li",{children:g.jsx("a",{className:"nav-link-entry",href:"https://network.geant.org/",children:"NETWORK"})}),g.jsx("li",{children:g.jsx("a",{className:"nav-link-entry",href:"https://geant.org/services/",children:"SERVICES"})}),g.jsx("li",{children:g.jsx("a",{className:"nav-link-entry",href:"https://community.geant.org/",children:"COMMUNITY"})}),g.jsx("li",{children:g.jsx("a",{className:"nav-link-entry",href:"https://tnc23.geant.org/",children:"TNC"})}),g.jsx("li",{children:g.jsx("a",{className:"nav-link-entry",href:"https://geant.org/projects/",children:"PROJECTS"})}),g.jsx("li",{children:g.jsx("a",{className:"nav-link-entry",href:"https://connect.geant.org/",children:"CONNECT"})}),g.jsx("li",{children:g.jsx("a",{className:"nav-link-entry",href:"https://impact.geant.org/",children:"IMPACT"})}),g.jsx("li",{children:g.jsx("a",{className:"nav-link-entry",href:"https://careers.geant.org/",children:"CAREERS"})}),g.jsx("li",{children:g.jsx("a",{className:"nav-link-entry",href:"https://about.geant.org/",children:"ABOUT"})}),g.jsx("li",{children:g.jsx("a",{className:"nav-link-entry",href:"https://connect.geant.org/community-news",children:"NEWS"})}),g.jsx("li",{children:g.jsx("a",{className:"nav-link-entry",href:"https://resources.geant.org/",children:"RESOURCES"})}),g.jsx("li",{children:g.jsx(lt,{className:"nav-link-entry",to:"/",children:"COMPENDIUM"})})]})]})})}),e[0]=r):r=e[0];let i;e[1]!==n||e[2]!==t.permissions.admin?(i=t.permissions.admin&&!n.includes("survey")&&g.jsx("div",{className:"nav-link",style:{float:"right"},children:g.jsx(lt,{className:"nav-link-entry",to:"/survey",children:g.jsx("span",{children:"Go to Survey"})})}),e[1]=n,e[2]=t.permissions.admin,e[3]=i):i=e[3];let s;return e[4]!==i?(s=g.jsx("div",{className:"external-page-nav-bar",children:g.jsx(la,{children:g.jsxs(Cn,{children:[r,g.jsx(Qn,{xs:2,children:i})]})})}),e[4]=i,e[5]=s):s=e[5],s}const iA="/static/A3T3A-a_.svg",lA="/static/DOOiIGTs.png";function sA(){const e=Ke.c(9);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=g.jsx("a",{href:"https://geant.org",children:g.jsx("img",{src:iA,className:"m-3",style:{maxWidth:"100px"}})}),e[0]=t):t=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=g.jsxs(Qn,{children:[t,g.jsx("img",{src:lA,className:"m-3",style:{maxWidth:"200px"}})]}),e[1]=n):n=e[1];let r,i;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=g.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/Disclaimer/",children:"Disclaimer"}),i=g.jsx("wbr",{}),e[2]=r,e[3]=i):(r=e[2],i=e[3]);let s,o;e[4]===Symbol.for("react.memo_cache_sentinel")?(s=g.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/geant-anti-slavery-policy/",children:"GEANT Anti‑Slavery Policy"}),o=g.jsx("wbr",{}),e[4]=s,e[5]=o):(s=e[4],o=e[5]);let u,d;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=g.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/Privacy-Notice/",children:"Privacy Policy"}),d=g.jsx("wbr",{}),e[6]=u,e[7]=d):(u=e[6],d=e[7]);let p;return e[8]===Symbol.for("react.memo_cache_sentinel")?(p=g.jsx("footer",{className:"page-footer pt-3",children:g.jsx(la,{children:g.jsxs(Cn,{children:[n,g.jsx(Qn,{className:"mt-4 text-end",children:g.jsxs("span",{children:[r,i,"|",s,o,"|",u,d,"|",g.jsx("a",{className:"mx-3 footer-link",style:{cursor:"pointer"},onClick:oA,children:"Analytics Consent"})]})})]})})}),e[8]=p):p=e[8],p}function oA(){localStorage.removeItem("matomo_consent"),window.location.reload()}const m3="/static/C4lsyu6A.svg",p3="/static/DhA-EmEc.svg";function Z1(){const e=Ke.c(16),t=k.useContext(zE);let n;e[0]!==t?(n=b=>t==null?void 0:t.trackPageView(b),e[0]=t,e[1]=n):n=e[1];const r=n;let i;e[2]!==t?(i=b=>t==null?void 0:t.trackEvent(b),e[2]=t,e[3]=i):i=e[3];const s=i;let o;e[4]!==t?(o=()=>t==null?void 0:t.trackEvents(),e[4]=t,e[5]=o):o=e[5];const u=o;let d;e[6]!==t?(d=b=>t==null?void 0:t.trackLink(b),e[6]=t,e[7]=d):d=e[7];const p=d,x=cA;let y;e[8]!==t?(y=(b,...S)=>{const T=S;t==null||t.pushInstruction(b,...T)},e[8]=t,e[9]=y):y=e[9];const v=y;let w;return e[10]!==v||e[11]!==s||e[12]!==u||e[13]!==p||e[14]!==r?(w={trackEvent:s,trackEvents:u,trackPageView:r,trackLink:p,enableLinkTracking:x,pushInstruction:v},e[10]=v,e[11]=s,e[12]=u,e[13]=p,e[14]=r,e[15]=w):w=e[15],w}function cA(){}function g3(){const e=Ke.c(13),{trackPageView:t}=Z1();let n,r;e[0]!==t?(n=()=>{t({documentTitle:"GEANT Compendium Landing Page"})},r=[t],e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]),k.useEffect(n,r);let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=g.jsx("h1",{className:"geant-header",children:"THE GÉANT COMPENDIUM OF NRENS"}),e[3]=i):i=e[3];let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s=g.jsx(Cn,{children:g.jsxs("div",{className:"center-text",children:[i,g.jsxs("div",{className:"wordwrap pt-4",children:[g.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."}),g.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."}),g.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]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o={backgroundColor:"white"},e[5]=o):o=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u={width:"18rem"},e[6]=u):u=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=g.jsx(Ts.Img,{src:m3}),e[7]=d):d=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=g.jsx(Ts.Title,{children:"Compendium Data"}),e[8]=p):p=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=g.jsx(Qn,{align:"center",children:g.jsx(Ts,{border:"light",style:u,children:g.jsxs(lt,{to:"/data",className:"link-text",children:[d,g.jsxs(Ts.Body,{children:[p,g.jsx(Ts.Text,{children:g.jsx("span",{children:"Statistical representation of the annual Compendium Survey data is available here"})})]})]})})}),e[9]=x):x=e[9];let y;e[10]===Symbol.for("react.memo_cache_sentinel")?(y={width:"18rem"},e[10]=y):y=e[10];let v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=g.jsx(Ts.Img,{src:p3}),e[11]=v):v=e[11];let w;return e[12]===Symbol.for("react.memo_cache_sentinel")?(w=g.jsxs(la,{className:"py-5 grey-container",children:[s,g.jsx(Cn,{children:g.jsx(Qn,{children:g.jsx(la,{style:o,className:"rounded-border",children:g.jsxs(Cn,{className:"justify-content-md-center",children:[x,g.jsx(Qn,{align:"center",children:g.jsx(Ts,{border:"light",style:y,children:g.jsxs("a",{href:"https://resources.geant.org/geant-compendia/",className:"link-text",target:"_blank",rel:"noreferrer",children:[v,g.jsxs(Ts.Body,{children:[g.jsx(Ts.Title,{children:"Compendium Reports"}),g.jsx(Ts.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]=w):w=e[12],w}var x3={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},dw=Hn.createContext&&Hn.createContext(x3),fA=["attr","size","title"];function uA(e,t){if(e==null)return{};var n=dA(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dA(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ig(){return Ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ig.apply(this,arguments)}function hw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hw(Object(n),!0).forEach(function(r){hA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hA(e,t,n){return t=mA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mA(e){var t=pA(e,"string");return typeof t=="symbol"?t:t+""}function pA(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v3(e){return e&&e.map((t,n)=>Hn.createElement(t.tag,Yg({key:n},t.attr),v3(t.child)))}function To(e){return t=>Hn.createElement(gA,Ig({attr:Yg({},e.attr)},t),v3(e.child))}function gA(e){var t=n=>{var{attr:r,size:i,title:s}=e,o=uA(e,fA),u=i||n.size||"1em",d;return n.className&&(d=n.className),e.className&&(d=(d?d+" ":"")+e.className),Hn.createElement("svg",Ig({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:d,style:Yg(Yg({color:e.color||n.color},n.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),s&&Hn.createElement("title",null,s),e.children)};return dw!==void 0?Hn.createElement(dw.Consumer,null,n=>t(n)):t(x3)}function y3(e){return To({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 _3(e){return To({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 Xf=e=>{const t=Ke.c(23),{title:n,children:r,startCollapsed:i,theme:s}=e,o=s===void 0?"":s,[u,d]=k.useState(!!i);let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p={color:"white",paddingBottom:"3px",marginTop:"3px",marginLeft:"3px",scale:"1.3"},t[0]=p):p=t[0];let x=p;if(o){let O;t[1]===Symbol.for("react.memo_cache_sentinel")?(O={...x,color:"black",fontWeight:"bold"},t[1]=O):O=t[1],x=O}const y=`collapsible-box${o} p-0`;let v;t[2]!==n?(v=g.jsx(Qn,{children:g.jsx("h1",{className:"bold-caps-16pt dark-teal pt-3 ps-3",children:n})}),t[2]=n,t[3]=v):v=t[3];const w=`toggle-btn${o} p-${o?3:2}`;let b;t[4]!==u?(b=()=>d(!u),t[4]=u,t[5]=b):b=t[5];let S;t[6]!==u||t[7]!==x?(S=u?g.jsx(_3,{style:x}):g.jsx(y3,{style:x}),t[6]=u,t[7]=x,t[8]=S):S=t[8];let T;t[9]!==w||t[10]!==b||t[11]!==S?(T=g.jsx(Qn,{className:"flex-grow-0 flex-shrink-1",children:g.jsx("div",{className:w,onClick:b,children:S})}),t[9]=w,t[10]=b,t[11]=S,t[12]=T):T=t[12];let C;t[13]!==v||t[14]!==T?(C=g.jsxs(Cn,{children:[v,T]}),t[13]=v,t[14]=T,t[15]=C):C=t[15];const R=`collapsible-content${u?" collapsed":""}`;let A;t[16]!==r||t[17]!==R?(A=g.jsx("div",{className:R,children:r}),t[16]=r,t[17]=R,t[18]=A):A=t[18];let j;return t[19]!==A||t[20]!==y||t[21]!==C?(j=g.jsxs("div",{className:y,children:[C,A]}),t[19]=A,t[20]=y,t[21]=C,t[22]=j):j=t[22],j};function xA(e){const t=Ke.c(8),{section:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={display:"flex",alignSelf:"right",lineHeight:"1.5rem",marginTop:"0.5rem"},t[0]=r):r=t[0];let i,s;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=g.jsx("br",{}),s={float:"right"},t[1]=i,t[2]=s):(i=t[1],s=t[2]);let o;t[3]!==n?(o=g.jsx("div",{style:r,children:g.jsxs("span",{children:["Compendium ",i,g.jsx("span",{style:s,children:n})]})}),t[3]=n,t[4]=o):o=t[4];let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=g.jsx("img",{src:p3,style:{maxWidth:"4rem"}}),t[5]=u):u=t[5];let d;return t[6]!==o?(d=g.jsxs("div",{className:"bold-caps-17pt section-container",children:[o,u]}),t[6]=o,t[7]=d):d=t[7],d}function w3(e){const t=Ke.c(14),{type:n}=e;let r="";n=="data"?r=" compendium-data-header":n=="reports"&&(r=" compendium-reports-header");let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={marginTop:"0.5rem"},t[0]=i):i=t[0];const s=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 u=n==="data"?"Data":"Reports";let d;t[2]!==u?(d=g.jsxs("span",{children:["Compendium ",u]}),t[2]=u,t[3]=d):d=t[3];let p;t[4]!==s||t[5]!==d?(p=g.jsx(Qn,{sm:8,children:g.jsx("h1",{className:"bold-caps-30pt",style:i,children:g.jsx(lt,{to:s,style:o,children:d})})}),t[4]=s,t[5]=d,t[6]=p):p=t[6];let x;t[7]===Symbol.for("react.memo_cache_sentinel")?(x={color:"inherit"},t[7]=x):x=t[7];let y;t[8]===Symbol.for("react.memo_cache_sentinel")?(y=g.jsx(Qn,{sm:4,children:g.jsx("a",{style:x,href:"https://resources.geant.org/geant-compendia/",target:"_blank",rel:"noreferrer",children:g.jsx(xA,{section:"Reports"})})}),t[8]=y):y=t[8];let v;t[9]!==p?(v=g.jsx(la,{children:g.jsxs(Cn,{children:[p,y]})}),t[9]=p,t[10]=v):v=t[10];let w;return t[11]!==r||t[12]!==v?(w=g.jsx("div",{className:r,children:v}),t[11]=r,t[12]=v,t[13]=w):w=t[13],w}function vA(e){const t=Ke.c(8),{children:n,type:r}=e;let i="";r=="data"?i=" compendium-data-banner":r=="reports"&&(i=" compendium-reports-banner");let s,o;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=g.jsx("img",{src:m3,style:{maxWidth:"7rem",marginBottom:"1rem"}}),o={display:"flex",alignSelf:"right"},t[0]=s,t[1]=o):(s=t[0],o=t[1]);let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={paddingTop:"1rem"},t[2]=u):u=t[2];let d;t[3]!==n?(d=g.jsx(la,{children:g.jsx(Cn,{children:g.jsx(Cn,{children:g.jsxs("div",{className:"section-container",children:[s,g.jsx("div",{style:o,children:g.jsx("div",{className:"center-text",style:u,children:n})})]})})})}),t[3]=n,t[4]=d):d=t[4];let p;return t[5]!==i||t[6]!==d?(p=g.jsx("div",{className:i,children:d}),t[5]=i,t[6]=d,t[7]=p):p=t[7],p}var ct=(e=>(e.Organisation="ORGANISATION",e.Policy="STANDARDS AND POLICIES",e.ConnectedUsers="CONNECTED USERS",e.Network="NETWORK",e.Services="SERVICES",e))(ct||{}),Qf=(e=>(e.CSV="CSV",e.EXCEL="EXCEL",e))(Qf||{}),Wf=(e=>(e.PNG="png",e.JPEG="jpeg",e.SVG="svg",e))(Wf||{});const Ag={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"},mw={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"},pw={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 Ay(){const e=Ke.c(7),{preview:t,setPreview:n}=k.useContext(ty),{user:r}=k.useContext(su),[i]=m6();let s;e[0]!==i?(s=i.get("preview"),e[0]=i,e[1]=s):s=e[1];const o=s;let u,d;return e[2]!==o||e[3]!==n||e[4]!==r?(u=()=>{o!==null&&(r.permissions.admin||r.role=="observer")&&n(!0)},d=[o,n,r],e[2]=o,e[3]=n,e[4]=r,e[5]=u,e[6]=d):(u=e[5],d=e[6]),k.useEffect(u,d),t}function yA(){const e=Ke.c(82);Ay();const{trackPageView:t}=Z1();let n,r;e[0]!==t?(n=()=>{t({documentTitle:"Compendium Data"})},r=[t],e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]),Hn.useEffect(n,r);let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=g.jsx(w3,{type:"data"}),e[3]=i):i=e[3];let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s=g.jsx(vA,{type:"data",children:g.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]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=g.jsx("h6",{className:"section-title",children:"Budget, Income and Billing"}),e[5]=o):o=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=g.jsx(lt,{to:"/budget",className:"link-text-underline",children:g.jsx("span",{children:"Budget of NRENs per Year"})}),e[6]=u):u=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=g.jsx(lt,{to:"/funding",className:"link-text-underline",children:g.jsx("span",{children:"Income Source of NRENs"})}),e[7]=d):d=e[7];let p,x,y;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=g.jsx(lt,{to:"/charging",className:"link-text-underline",children:g.jsx("span",{children:"Charging Mechanism of NRENs"})}),x=g.jsx("hr",{className:"fake-divider"}),y=g.jsx("h6",{className:"section-title",children:"Staff and Projects"}),e[8]=p,e[9]=x,e[10]=y):(p=e[8],x=e[9],y=e[10]);let v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=g.jsx(lt,{to:"/employee-count",className:"link-text-underline",children:g.jsx("span",{children:"Number of NREN Employees"})}),e[11]=v):v=e[11];let w;e[12]===Symbol.for("react.memo_cache_sentinel")?(w=g.jsx(lt,{to:"/roles",className:"link-text-underline",children:g.jsx("span",{children:"Roles of NREN employees (Technical v. Non-Technical)"})}),e[12]=w):w=e[12];let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=g.jsx(lt,{to:"/employment",className:"link-text-underline",children:g.jsx("span",{children:"Types of Employment within NRENs"})}),e[13]=b):b=e[13];let S;e[14]===Symbol.for("react.memo_cache_sentinel")?(S=g.jsx(lt,{to:"/suborganisations",className:"link-text-underline",children:g.jsx("span",{children:"NREN Sub-Organisations"})}),e[14]=S):S=e[14];let T;e[15]===Symbol.for("react.memo_cache_sentinel")?(T=g.jsx(lt,{to:"/parentorganisation",className:"link-text-underline",children:g.jsx("span",{children:"NREN Parent Organisations"})}),e[15]=T):T=e[15];let C;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=g.jsxs(Xf,{title:ct.Organisation,children:[o,u,d,p,x,y,v,w,b,S,T,g.jsx(lt,{to:"/ec-projects",className:"link-text-underline",children:g.jsx("span",{children:"NREN Involvement in European Commission Projects"})})]}),e[16]=C):C=e[16];let R,A;e[17]===Symbol.for("react.memo_cache_sentinel")?(R=g.jsx(lt,{to:"/policy",className:"link-text-underline",children:g.jsx("span",{children:"NREN Policies"})}),A=g.jsx("h6",{className:"section-title",children:"Standards"}),e[17]=R,e[18]=A):(R=e[17],A=e[18]);let j;e[19]===Symbol.for("react.memo_cache_sentinel")?(j=g.jsx(lt,{to:"/audits",className:"link-text-underline",children:g.jsx("span",{children:"External and Internal Audits of Information Security Management Systems"})}),e[19]=j):j=e[19];let O;e[20]===Symbol.for("react.memo_cache_sentinel")?(O=g.jsx(lt,{to:"/business-continuity",className:"link-text-underline",children:g.jsx("span",{children:"NREN Business Continuity Planning"})}),e[20]=O):O=e[20];let B;e[21]===Symbol.for("react.memo_cache_sentinel")?(B=g.jsx(lt,{to:"/central-procurement",className:"link-text-underline",children:g.jsx("span",{children:"Central Procurement of Software"})}),e[21]=B):B=e[21];let L;e[22]===Symbol.for("react.memo_cache_sentinel")?(L=g.jsx(lt,{to:"/crisis-management",className:"link-text-underline",children:g.jsx("span",{children:"Crisis Management Procedures"})}),e[22]=L):L=e[22];let I;e[23]===Symbol.for("react.memo_cache_sentinel")?(I=g.jsx(lt,{to:"/crisis-exercise",className:"link-text-underline",children:g.jsx("span",{children:"Crisis Exercises - NREN Operation and Participation"})}),e[23]=I):I=e[23];let U;e[24]===Symbol.for("react.memo_cache_sentinel")?(U=g.jsx(lt,{to:"/security-control",className:"link-text-underline",children:g.jsx("span",{children:"Security Controls Used by NRENs"})}),e[24]=U):U=e[24];let W;e[25]===Symbol.for("react.memo_cache_sentinel")?(W=g.jsx(lt,{to:"/services-offered",className:"link-text-underline",children:g.jsx("span",{children:"Services Offered by NRENs by Types of Users"})}),e[25]=W):W=e[25];let X;e[26]===Symbol.for("react.memo_cache_sentinel")?(X=g.jsx(lt,{to:"/corporate-strategy",className:"link-text-underline",children:g.jsx("span",{children:"NREN Corporate Strategies "})}),e[26]=X):X=e[26];let te;e[27]===Symbol.for("react.memo_cache_sentinel")?(te=g.jsx(lt,{to:"/service-level-targets",className:"link-text-underline",children:g.jsx("span",{children:"NRENs Offering Service Level Targets"})}),e[27]=te):te=e[27];let ne;e[28]===Symbol.for("react.memo_cache_sentinel")?(ne=g.jsxs(Xf,{title:ct.Policy,startCollapsed:!0,children:[R,A,j,O,B,L,I,U,W,X,te,g.jsx(lt,{to:"/service-management-framework",className:"link-text-underline",children:g.jsx("span",{children:"NRENs Operating a Formal Service Management Framework"})})]}),e[28]=ne):ne=e[28];let _e;e[29]===Symbol.for("react.memo_cache_sentinel")?(_e=g.jsx("h6",{className:"section-title",children:"Connected Users"}),e[29]=_e):_e=e[29];let ye;e[30]===Symbol.for("react.memo_cache_sentinel")?(ye=g.jsx(lt,{to:"/institutions-urls",className:"link-text-underline",children:g.jsx("span",{children:"Webpages Listing Institutions and Organisations Connected to NREN Networks"})}),e[30]=ye):ye=e[30];let ce;e[31]===Symbol.for("react.memo_cache_sentinel")?(ce=g.jsx(lt,{to:"/connected-proportion",className:"link-text-underline",children:g.jsx("span",{children:"Proportion of Different Categories of Institutions Served by NRENs"})}),e[31]=ce):ce=e[31];let Te;e[32]===Symbol.for("react.memo_cache_sentinel")?(Te=g.jsx(lt,{to:"/connectivity-level",className:"link-text-underline",children:g.jsx("span",{children:"Level of IP Connectivity by Institution Type"})}),e[32]=Te):Te=e[32];let Ne;e[33]===Symbol.for("react.memo_cache_sentinel")?(Ne=g.jsx(lt,{to:"/connection-carrier",className:"link-text-underline",children:g.jsx("span",{children:"Methods of Carrying IP Traffic to Users"})}),e[33]=Ne):Ne=e[33];let $e;e[34]===Symbol.for("react.memo_cache_sentinel")?($e=g.jsx(lt,{to:"/connectivity-load",className:"link-text-underline",children:g.jsx("span",{children:"Connectivity Load"})}),e[34]=$e):$e=e[34];let Pe;e[35]===Symbol.for("react.memo_cache_sentinel")?(Pe=g.jsx(lt,{to:"/connectivity-growth",className:"link-text-underline",children:g.jsx("span",{children:"Connectivity Growth"})}),e[35]=Pe):Pe=e[35];let et,J,ie;e[36]===Symbol.for("react.memo_cache_sentinel")?(et=g.jsx(lt,{to:"/remote-campuses",className:"link-text-underline",children:g.jsx("span",{children:"NREN Connectivity to Remote Campuses in Other Countries"})}),J=g.jsx("hr",{className:"fake-divider"}),ie=g.jsx("h6",{className:"section-title",children:"Connected Users - Commercial"}),e[36]=et,e[37]=J,e[38]=ie):(et=e[36],J=e[37],ie=e[38]);let ee;e[39]===Symbol.for("react.memo_cache_sentinel")?(ee=g.jsx(lt,{to:"/commercial-charging-level",className:"link-text-underline",children:g.jsx("span",{children:"Commercial Charging Level"})}),e[39]=ee):ee=e[39];let K;e[40]===Symbol.for("react.memo_cache_sentinel")?(K=g.jsxs(Xf,{title:ct.ConnectedUsers,startCollapsed:!0,children:[_e,ye,ce,Te,Ne,$e,Pe,et,J,ie,ee,g.jsx(lt,{to:"/commercial-connectivity",className:"link-text-underline",children:g.jsx("span",{children:"Commercial Connectivity"})})]}),e[40]=K):K=e[40];let xe;e[41]===Symbol.for("react.memo_cache_sentinel")?(xe=g.jsx("h6",{className:"section-title",children:"Connectivity"}),e[41]=xe):xe=e[41];let Fe;e[42]===Symbol.for("react.memo_cache_sentinel")?(Fe=g.jsx(lt,{to:"/traffic-volume",className:"link-text-underline",children:g.jsx("span",{children:"NREN Traffic - NREN Customers & External Networks"})}),e[42]=Fe):Fe=e[42];let Ce;e[43]===Symbol.for("react.memo_cache_sentinel")?(Ce=g.jsx(lt,{to:"/iru-duration",className:"link-text-underline",children:g.jsx("span",{children:"Average Duration of IRU leases of Fibre by NRENs"})}),e[43]=Ce):Ce=e[43];let me;e[44]===Symbol.for("react.memo_cache_sentinel")?(me=g.jsx(lt,{to:"/fibre-light",className:"link-text-underline",children:g.jsx("span",{children:"Approaches to lighting NREN fibre networks"})}),e[44]=me):me=e[44];let oe;e[45]===Symbol.for("react.memo_cache_sentinel")?(oe=g.jsx(lt,{to:"/dark-fibre-lease",className:"link-text-underline",children:g.jsx("span",{children:"Kilometres of Leased Dark Fibre (National)"})}),e[45]=oe):oe=e[45];let Be;e[46]===Symbol.for("react.memo_cache_sentinel")?(Be=g.jsx(lt,{to:"/dark-fibre-lease-international",className:"link-text-underline",children:g.jsx("span",{children:"Kilometres of Leased Dark Fibre (International)"})}),e[46]=Be):Be=e[46];let Xe;e[47]===Symbol.for("react.memo_cache_sentinel")?(Xe=g.jsx(lt,{to:"/dark-fibre-installed",className:"link-text-underline",children:g.jsx("span",{children:"Kilometres of Installed Dark Fibre"})}),e[47]=Xe):Xe=e[47];let rt,Qe,ft;e[48]===Symbol.for("react.memo_cache_sentinel")?(rt=g.jsx(lt,{to:"/network-map",className:"link-text-underline",children:g.jsx("span",{children:"NREN Network Maps"})}),Qe=g.jsx("hr",{className:"fake-divider"}),ft=g.jsx("h6",{className:"section-title",children:"Performance Monitoring & Management"}),e[48]=rt,e[49]=Qe,e[50]=ft):(rt=e[48],Qe=e[49],ft=e[50]);let xt;e[51]===Symbol.for("react.memo_cache_sentinel")?(xt=g.jsx(lt,{to:"/monitoring-tools",className:"link-text-underline",children:g.jsx("span",{children:"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions"})}),e[51]=xt):xt=e[51];let We;e[52]===Symbol.for("react.memo_cache_sentinel")?(We=g.jsx(lt,{to:"/pert-team",className:"link-text-underline",children:g.jsx("span",{children:"NRENs with Performance Enhancement Response Teams"})}),e[52]=We):We=e[52];let tn;e[53]===Symbol.for("react.memo_cache_sentinel")?(tn=g.jsx(lt,{to:"/passive-monitoring",className:"link-text-underline",children:g.jsx("span",{children:"Methods for Passively Monitoring International Traffic"})}),e[53]=tn):tn=e[53];let gn;e[54]===Symbol.for("react.memo_cache_sentinel")?(gn=g.jsx(lt,{to:"/traffic-stats",className:"link-text-underline",children:g.jsx("span",{children:"Traffic Statistics  "})}),e[54]=gn):gn=e[54];let Jt;e[55]===Symbol.for("react.memo_cache_sentinel")?(Jt=g.jsx(lt,{to:"/weather-map",className:"link-text-underline",children:g.jsx("span",{children:"NREN Online Network Weather Maps "})}),e[55]=Jt):Jt=e[55];let Bt;e[56]===Symbol.for("react.memo_cache_sentinel")?(Bt=g.jsx(lt,{to:"/certificate-provider",className:"link-text-underline",children:g.jsx("span",{children:"Certification Services used by NRENs"})}),e[56]=Bt):Bt=e[56];let An,Rn,$t;e[57]===Symbol.for("react.memo_cache_sentinel")?(An=g.jsx(lt,{to:"/siem-vendors",className:"link-text-underline",children:g.jsx("span",{children:"Vendors of SIEM/SOC systems used by NRENs"})}),Rn=g.jsx("hr",{className:"fake-divider"}),$t=g.jsx("h6",{className:"section-title",children:"Alienwave"}),e[57]=An,e[58]=Rn,e[59]=$t):(An=e[57],Rn=e[58],$t=e[59]);let cn;e[60]===Symbol.for("react.memo_cache_sentinel")?(cn=g.jsx(lt,{to:"/alien-wave",className:"link-text-underline",children:g.jsx("span",{children:"NREN Use of 3rd Party Alienwave/Lightpath Services"})}),e[60]=cn):cn=e[60];let yt,dn,nn;e[61]===Symbol.for("react.memo_cache_sentinel")?(yt=g.jsx(lt,{to:"/alien-wave-internal",className:"link-text-underline",children:g.jsx("span",{children:"Internal NREN Use of Alien Waves"})}),dn=g.jsx("hr",{className:"fake-divider"}),nn=g.jsx("h6",{className:"section-title",children:"Capacity"}),e[61]=yt,e[62]=dn,e[63]=nn):(yt=e[61],dn=e[62],nn=e[63]);let Lr;e[64]===Symbol.for("react.memo_cache_sentinel")?(Lr=g.jsx(lt,{to:"/capacity-largest-link",className:"link-text-underline",children:g.jsx("span",{children:"Capacity of the Largest Link in an NREN Network"})}),e[64]=Lr):Lr=e[64];let Yn;e[65]===Symbol.for("react.memo_cache_sentinel")?(Yn=g.jsx(lt,{to:"/external-connections",className:"link-text-underline",children:g.jsx("span",{children:"NREN External IP Connections"})}),e[65]=Yn):Yn=e[65];let Er;e[66]===Symbol.for("react.memo_cache_sentinel")?(Er=g.jsx(lt,{to:"/capacity-core-ip",className:"link-text-underline",children:g.jsx("span",{children:"NREN Core IP Capacity"})}),e[66]=Er):Er=e[66];let Sr;e[67]===Symbol.for("react.memo_cache_sentinel")?(Sr=g.jsx(lt,{to:"/non-rne-peers",className:"link-text-underline",children:g.jsx("span",{children:"Number of Non-R&E Networks NRENs Peer With"})}),e[67]=Sr):Sr=e[67];let er,En,br;e[68]===Symbol.for("react.memo_cache_sentinel")?(er=g.jsx(lt,{to:"/traffic-ratio",className:"link-text-underline",children:g.jsx("span",{children:"Types of traffic in NREN networks"})}),En=g.jsx("hr",{className:"fake-divider"}),br=g.jsx("h6",{className:"section-title",children:"Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)"}),e[68]=er,e[69]=En,e[70]=br):(er=e[68],En=e[69],br=e[70]);let Pn;e[71]===Symbol.for("react.memo_cache_sentinel")?(Pn=g.jsx(lt,{to:"/ops-automation",className:"link-text-underline",children:g.jsx("span",{children:"NREN Automation of Operational Processes"})}),e[71]=Pn):Pn=e[71];let ut;e[72]===Symbol.for("react.memo_cache_sentinel")?(ut=g.jsx(lt,{to:"/network-automation",className:"link-text-underline",children:g.jsx("span",{children:"Network Tasks for which NRENs Use Automation  "})}),e[72]=ut):ut=e[72];let tr;e[73]===Symbol.for("react.memo_cache_sentinel")?(tr=g.jsxs(Xf,{title:ct.Network,startCollapsed:!0,children:[xe,Fe,Ce,me,oe,Be,Xe,rt,Qe,ft,xt,We,tn,gn,Jt,Bt,An,Rn,$t,cn,yt,dn,nn,Lr,Yn,Er,Sr,er,En,br,Pn,ut,g.jsx(lt,{to:"/nfv",className:"link-text-underline",children:g.jsx("span",{children:"Kinds of Network Function Virtualisation used by NRENs"})})]}),e[73]=tr):tr=e[73];let _a;e[74]===Symbol.for("react.memo_cache_sentinel")?(_a=g.jsx(lt,{to:"/network-services",className:"link-text-underline",children:g.jsx("span",{children:"Network services"})}),e[74]=_a):_a=e[74];let Ga;e[75]===Symbol.for("react.memo_cache_sentinel")?(Ga=g.jsx(lt,{to:"/isp-support-services",className:"link-text-underline",children:g.jsx("span",{children:"ISP support services"})}),e[75]=Ga):Ga=e[75];let ca;e[76]===Symbol.for("react.memo_cache_sentinel")?(ca=g.jsx(lt,{to:"/security-services",className:"link-text-underline",children:g.jsx("span",{children:"Security services"})}),e[76]=ca):ca=e[76];let Wr;e[77]===Symbol.for("react.memo_cache_sentinel")?(Wr=g.jsx(lt,{to:"/identity-services",className:"link-text-underline",children:g.jsx("span",{children:"Identity services"})}),e[77]=Wr):Wr=e[77];let nr;e[78]===Symbol.for("react.memo_cache_sentinel")?(nr=g.jsx(lt,{to:"/collaboration-services",className:"link-text-underline",children:g.jsx("span",{children:"Collaboration services"})}),e[78]=nr):nr=e[78];let Mr;e[79]===Symbol.for("react.memo_cache_sentinel")?(Mr=g.jsx(lt,{to:"/multimedia-services",className:"link-text-underline",children:g.jsx("span",{children:"Multimedia services"})}),e[79]=Mr):Mr=e[79];let fa;e[80]===Symbol.for("react.memo_cache_sentinel")?(fa=g.jsx(lt,{to:"/storage-and-hosting-services",className:"link-text-underline",children:g.jsx("span",{children:"Storage and hosting services"})}),e[80]=fa):fa=e[80];let Ui;return e[81]===Symbol.for("react.memo_cache_sentinel")?(Ui=g.jsxs(g.Fragment,{children:[i,s,g.jsx(la,{className:"mt-5 mb-5",children:g.jsxs(Cn,{children:[C,ne,K,tr,g.jsxs(Xf,{title:ct.Services,startCollapsed:!0,children:[_a,Ga,ca,Wr,nr,Mr,fa,g.jsx(lt,{to:"/professional-services",className:"link-text-underline",children:g.jsx("span",{children:"Professional services"})})]})]})})]}),e[81]=Ui):Ui=e[81],Ui}const _A=()=>{const e=Ke.c(26),{consent:t,setConsent:n}=k.useContext(ny),[r,i]=k.useState(t===null);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{i(!1),window.location.reload()},e[0]=s):s=e[0];const o=s,[u,d]=k.useState(!0);let p;e[1]!==n?(p=B=>{const L=new Date;L.setDate(L.getDate()+30),localStorage.setItem("matomo_consent",JSON.stringify({consent:B,expiry:L})),n(B)},e[1]=n,e[2]=p):p=e[2];const x=p;let y;e[3]===Symbol.for("react.memo_cache_sentinel")?(y=g.jsx(f1.Header,{closeButton:!0,children:g.jsx(f1.Title,{children:"Privacy on this site"})}),e[3]=y):y=e[3];let v;e[4]===Symbol.for("react.memo_cache_sentinel")?(v=g.jsx("a",{href:"https://geant.org/Privacy-Notice/",children:"Privacy Policy"}),e[4]=v):v=e[4];let w;e[5]===Symbol.for("react.memo_cache_sentinel")?(w=g.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 ",v,".",g.jsx("br",{}),"Below, you can choose to accept or decline to have this data collected."]}),e[5]=w):w=e[5];let b;e[6]!==u?(b=()=>d(!u),e[6]=u,e[7]=b):b=e[7];let S;e[8]!==u||e[9]!==b?(S=g.jsx(As.Check,{type:"checkbox",label:"Analytics",checked:u,onChange:b}),e[8]=u,e[9]=b,e[10]=S):S=e[10];let T;e[11]===Symbol.for("react.memo_cache_sentinel")?(T=g.jsx(As.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]=T):T=e[11];let C;e[12]!==S?(C=g.jsxs(f1.Body,{children:[w,g.jsx(As,{children:g.jsxs(As.Group,{className:"mb-3",children:[S,T]})})]}),e[12]=S,e[13]=C):C=e[13];let R;e[14]!==x?(R=g.jsx(Nr,{variant:"secondary",onClick:()=>{x(!1),o()},children:"Decline all"}),e[14]=x,e[15]=R):R=e[15];let A;e[16]!==u||e[17]!==x?(A=g.jsx(Nr,{variant:"primary",onClick:()=>{x(u),o()},children:"Save consent for 30 days"}),e[16]=u,e[17]=x,e[18]=A):A=e[18];let j;e[19]!==A||e[20]!==R?(j=g.jsxs(f1.Footer,{children:[R,A]}),e[19]=A,e[20]=R,e[21]=j):j=e[21];let O;return e[22]!==r||e[23]!==j||e[24]!==C?(O=g.jsxs(f1,{show:r,centered:!0,children:[y,C,j]}),e[22]=r,e[23]=j,e[24]=C,e[25]=O):O=e[25],O},E3="label";function gw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function wA(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function S3(e,t){e.labels=t}function b3(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:E3;const r=[];e.datasets=t.map(i=>{const s=e.datasets.find(o=>o[n]===i[n]);return!s||!i.data||r.includes(s)?{...i}:(r.push(s),Object.assign(s,i),s)})}function EA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E3;const n={labels:[],datasets:[]};return S3(n,e.labels),b3(n,e.datasets,t),n}function SA(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:s,type:o,data:u,options:d,plugins:p=[],fallbackContent:x,updateMode:y,...v}=e,w=k.useRef(null),b=k.useRef(null),S=()=>{w.current&&(b.current=new on(w.current,{type:o,data:EA(u,s),options:d&&{...d},plugins:p}),gw(t,b.current))},T=()=>{gw(t,null),b.current&&(b.current.destroy(),b.current=null)};return k.useEffect(()=>{!i&&b.current&&d&&wA(b.current,d)},[i,d]),k.useEffect(()=>{!i&&b.current&&S3(b.current.config.data,u.labels)},[i,u.labels]),k.useEffect(()=>{!i&&b.current&&u.datasets&&b3(b.current.config.data,u.datasets,s)},[i,u.datasets]),k.useEffect(()=>{b.current&&(i?(T(),setTimeout(S)):b.current.update(y))},[i,d,u.labels,u.datasets,y]),k.useEffect(()=>{b.current&&(T(),setTimeout(S))},[o]),k.useEffect(()=>(S(),()=>T()),[]),Hn.createElement("canvas",{ref:w,role:"img",height:n,width:r,...v},x)}const bA=k.forwardRef(SA);function T3(e,t){return on.register(t),k.forwardRef((n,r)=>Hn.createElement(bA,{...n,ref:r,type:e}))}const Cc=T3("line",aT),Pc=T3("bar",iT);var Ry=lT();const TA=function(e){let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);let n="#";for(let r=0;r<3;r++){const s="00"+(t>>r*8&255).toString(16);n+=s.substring(s.length-2)}return n};function Q1(e,t=(n,r)=>{}){const n=new Map;for(const[r,i]of e){const s=new Map;for(const[o,u]of i){const d=new Map;for(const[p,x]of u){const y=t(o,x);if(y){d.set(p,{tooltip:y});continue}d.set(p,{})}s.set(o,d)}n.set(r,s)}return n}function td(e){const t=new Map;return e.forEach(n=>{const r=t.get(n.nren);(!r||r.year<n.year)&&t.set(n.nren,n)}),Array.from(t.values())}function NA(e){return e.match(/^[a-zA-Z]+:\/\//)?e:"https://"+e}const Oy=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 J1(e){const t=new Map;return e.forEach(n=>{let r=t.get(n.nren);r||(r=new Map);let i=r.get(n.year);i||(i=[]),i.push(n),r.set(n.year,i),t.set(n.nren,r)}),t}function Pi(e){const t=new Map;return e.forEach(n=>{let r=t.get(n.nren);r||(r=new Map),r.set(n.year,n),t.set(n.nren,r)}),t}function ql(e,t){const n=new Map;return e.forEach((r,i)=>{const s=new Map;Array.from(r.keys()).sort((u,d)=>d-u).forEach(u=>{const d=r.get(u),p=s.get(u)||{};t(p,d),Object.keys(p).length>0&&s.set(u,p)}),n.set(i,s)}),n}function Ar(e,t,n=!1){const r=new Map;return e.forEach(i=>{const s=u=>{let d=r.get(i.nren);d||(d=new Map);let p=d.get(u);p||(p=new Map),p.set(i.year,i),d.set(u,p),r.set(i.nren,d)};let o=i[t];typeof o=="boolean"&&(o=o?"True":"False"),n&&o==null&&(o=`${o}`),Array.isArray(o)?o.forEach(s):s(o)}),r}function U0(e,t,n,r=!0,i){const s=new Map,o=(u,d,p)=>{u.forEach(x=>{let y=d?x[d]:p;typeof y=="boolean"&&(y=y?"True":"False");const v=x.nren,w=x.year,b=s.get(v)||new Map,S=b.get(w)||new Map,T=S.get(y)||{},C=x[p];if(C==null)return;const R=r?C:p,A=T[R]||{};A[`${C}`]=C,T[R]=A,S.set(y,T),b.set(w,S),s.set(v,b)})};if(n)for(const u of t)o(e,n,u);else for(const u of t)o(e,void 0,u);return s}const CA=e=>{function t(){const y=(w,b,S)=>"#"+[w,b,S].map(T=>{const C=T.toString(16);return C.length===1?"0"+C:C}).join(""),v=new Map;return v.set("client_institutions",y(157,40,114)),v.set("commercial",y(241,224,79)),v.set("european_funding",y(219,42,76)),v.set("gov_public_bodies",y(237,141,24)),v.set("other",y(137,166,121)),v}const n=Pi(e),r=t(),i=[...new Set(e.map(y=>y.year))].sort(),s=[...new Set(e.map(y=>y.nren))].sort(),o={client_institutions:"Client Institutions",commercial:"Commercial",european_funding:"European Funding",gov_public_bodies:"Government/Public Bodies",other:"Other"},u=Object.keys(o),d=Ry.cartesianProduct(Object.keys(o),i).reduce((y,[v,w])=>{const b=`${v},${w}`;return y[b]={},y},{});return n.forEach((y,v)=>{y.forEach((w,b)=>{const S=u.map(C=>w[C]||0);if(S.reduce((C,R)=>C+R,0)!==0)for(const C of u){const R=`${C},${b}`,A=u.indexOf(C);d[R][v]=S[A]}})}),{datasets:Array.from(Object.entries(d)).map(([y,v])=>{const[w,b]=y.split(",");return{backgroundColor:r.get(w)||"black",label:o[w]+" ("+b+")",data:s.map(T=>v[T]),stack:b,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:w==u[0],formatter:function(T,C){return C.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(T){return T.chart.chartArea.width}}}}),labels:s.map(y=>y.toString())}};function Ac(e,t){const n=[...new Set(e.map(o=>o.year))].sort(),r=[...new Set(e.map(o=>o.nren))].sort(),i=Pi(e);return{datasets:r.map(o=>{const u=TA(o);return{backgroundColor:u,borderColor:u,data:n.map(d=>{const p=i.get(o);if(!p)return null;const x=p.get(d);return x?x[t]:null}),label:o,hidden:!1}}),labels:n.map(o=>o.toString())}}const AA=(e,t,n)=>{let r;t?r=["Technical FTE","Non-technical FTE"]:r=["Permanent FTE","Subcontracted FTE"];const i={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},[s,o]=r,[u,d]=[i[s],i[o]];function p(T){const C=T[u],R=T[d],A=C+R,j=(C/A||0)*100,O=(R/A||0)*100,B={};return B[s]=Math.round(Math.floor(j*100))/100,B[o]=Math.round(Math.floor(O*100))/100,B}const x=Pi(e),y=[n].sort(),v=[...new Set(e.map(T=>T.nren))].sort((T,C)=>T.localeCompare(C));return{datasets:Ry.cartesianProduct(r,y).map(function([T,C]){let R="";return T==="Technical FTE"?R="rgba(40, 40, 250, 0.8)":T==="Permanent FTE"?R="rgba(159, 129, 235, 1)":T==="Subcontracted FTE"?R="rgba(173, 216, 229, 1)":T==="Non-technical FTE"&&(R="rgba(116, 216, 242, 0.54)"),{backgroundColor:R,label:`${T} (${C})`,data:v.map(A=>{const j=x.get(A).get(C);return j?p(j)[T]:0}),stack:C,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}),labels:v}},RA=(e,t)=>{const n=["Research & Education","Commodity"],r={"Research & Education":"r_and_e_percentage",Commodity:"commodity_percentage"},i=Pi(e),s=[t].sort(),o=[...new Set(e.map(x=>x.nren))].sort((x,y)=>x.localeCompare(y));return{datasets:Ry.cartesianProduct(n,s).map(function([x,y]){let v="";return x==="Research & Education"?v="rgba(40, 40, 250, 0.8)":x==="Commodity"&&(v="rgba(116, 216, 242, 0.54)"),{backgroundColor:v,label:`${x} (${y})`,data:o.map(w=>{const b=i.get(w).get(y);return b?b[r[x]]:0}),stack:y,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}),labels:o}},OA=(e,t)=>{const n=["Permanent FTE","Subcontracted FTE"],r={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},[i,s]=n,[o,u]=[r[i],r[s]],d=Pi(e),p=[...new Set(e.map(w=>w.nren))].sort((w,b)=>w.localeCompare(b));function x(w,b){return{backgroundColor:"rgba(219, 42, 76, 1)",label:`Number of FTEs (${w})`,data:p.map(T=>{const C=d.get(T).get(w);return C?(C[o]??0)+(C[u]??0):0}),stack:`${w}`,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(T,C){return C.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(T){return T.chart.chartArea.width}}}}return{datasets:t.sort().map(x),labels:p}},vx=(e,t,n)=>{const r=Pi(e),i=[...new Set(e.map(d=>d.nren))].sort((d,p)=>d.localeCompare(p)),s=[...new Set(e.map(d=>d.year))].sort();function o(d,p){return{backgroundColor:"rgba(219, 42, 76, 1)",label:`${n} (${d})`,data:i.map(y=>{const v=r.get(y).get(d);return v?v[t]??0:0}),stack:`${d}`,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(y,v){return v.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(y){return y.chart.chartArea.width}}}}return{datasets:s.sort().map(o),labels:i}};function gt(e){const t=Ke.c(9),{to:n,children:r}=e,i=window.location.pathname===n,s=k.useRef(null);let o,u;t[0]!==i?(o=()=>{i&&s.current&&s.current.scrollIntoView({behavior:"smooth",block:"center"})},u=[i],t[0]=i,t[1]=o,t[2]=u):(o=t[1],u=t[2]),k.useEffect(o,u);let d;t[3]!==r||t[4]!==i?(d=i?g.jsx("b",{children:r}):r,t[3]=r,t[4]=i,t[5]=d):d=t[5];let p;return t[6]!==d||t[7]!==n?(p=g.jsx(Cn,{children:g.jsx(lt,{to:n,className:"link-text-underline",ref:s,children:d})}),t[6]=d,t[7]=n,t[8]=p):p=t[8],p}const nd=e=>{const t=Ke.c(23),{children:n,survey:r}=e,[i,s]=k.useState(!1);let o;t[0]!==i?(o=j=>{j.stopPropagation(),j.preventDefault(),s(!i)},t[0]=i,t[1]=o):o=t[1];const u=o;let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d=j=>{j.target.closest("#sidebar")||j.target.closest(".toggle-btn")||s(!1)},t[2]=d):d=t[2];const p=d;let x;t[3]===Symbol.for("react.memo_cache_sentinel")?(x=()=>(document.addEventListener("click",p),()=>{document.removeEventListener("click",p)}),t[3]=x):x=t[3],k.useEffect(x);let y;t[4]!==i||t[5]!==r?(y=[],i||y.push("no-sidebar"),r&&y.push("survey"),t[4]=i,t[5]=r,t[6]=y):y=t[6];const v=y.join(" ");let w;t[7]!==n?(w=g.jsx("div",{className:"menu-items",children:n}),t[7]=n,t[8]=w):w=t[8];let b;t[9]!==v||t[10]!==w?(b=g.jsx("nav",{className:v,id:"sidebar",children:w}),t[9]=v,t[10]=w,t[11]=b):b=t[11];const S=`toggle-btn${r?"-survey":""}`;let T;t[12]===Symbol.for("react.memo_cache_sentinel")?(T=g.jsx("span",{children:"MENU"}),t[12]=T):T=t[12];let C;t[13]!==i||t[14]!==u?(C=g.jsxs("div",{className:"toggle-btn-wrapper",children:[T," ",i?g.jsx(y3,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:u}):g.jsx(_3,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:u})]}),t[13]=i,t[14]=u,t[15]=C):C=t[15];let R;t[16]!==S||t[17]!==C||t[18]!==u?(R=g.jsx("div",{className:S,onClick:u,children:C}),t[16]=S,t[17]=C,t[18]=u,t[19]=R):R=t[19];let A;return t[20]!==R||t[21]!==b?(A=g.jsxs("div",{className:"sidebar-wrapper",children:[b,R]}),t[20]=R,t[21]=b,t[22]=A):A=t[22],A},DA=()=>{const e=Ke.c(13);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=g.jsx("h5",{children:"Organisation"}),n=g.jsx("h6",{className:"section-title",children:"Budget, Income and Billing"}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=g.jsx(gt,{to:"/budget",children:g.jsx("span",{children:"Budget of NRENs per Year"})}),e[2]=r):r=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=g.jsx(gt,{to:"/funding",children:g.jsx("span",{children:"Income Source of NRENs"})}),e[3]=i):i=e[3];let s,o,u;e[4]===Symbol.for("react.memo_cache_sentinel")?(s=g.jsx(gt,{to:"/charging",children:g.jsx("span",{children:"Charging Mechanism of NRENs"})}),o=g.jsx("hr",{className:"fake-divider"}),u=g.jsx("h6",{className:"section-title",children:"Staff and Projects"}),e[4]=s,e[5]=o,e[6]=u):(s=e[4],o=e[5],u=e[6]);let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=g.jsx(gt,{to:"/employee-count",children:g.jsx("span",{children:"Number of NREN Employees"})}),e[7]=d):d=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=g.jsx(gt,{to:"/roles",children:g.jsx("span",{children:"Roles of NREN employees (Technical v. Non-Technical)"})}),e[8]=p):p=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=g.jsx(gt,{to:"/employment",children:g.jsx("span",{children:"Types of Employment within NRENs"})}),e[9]=x):x=e[9];let y;e[10]===Symbol.for("react.memo_cache_sentinel")?(y=g.jsx(gt,{to:"/suborganisations",children:g.jsx("span",{children:"NREN Sub-Organisations"})}),e[10]=y):y=e[10];let v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=g.jsx(gt,{to:"/parentorganisation",children:g.jsx("span",{children:"NREN Parent Organisations"})}),e[11]=v):v=e[11];let w;return e[12]===Symbol.for("react.memo_cache_sentinel")?(w=g.jsxs(nd,{children:[t,n,r,i,s,o,u,d,p,x,y,v,g.jsx(gt,{to:"/ec-projects",children:g.jsx("span",{children:"NREN Involvement in European Commission Projects"})})]}),e[12]=w):w=e[12],w},jA=e=>{const t=Ke.c(41),{activeCategory:n}=e,r=sx();let i;t[0]!==n||t[1]!==r?(i=()=>r(n===ct.Organisation?".":"/funding"),t[0]=n,t[1]=r,t[2]=i):i=t[2];const s=n===ct.Organisation;let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=g.jsx("span",{children:ct.Organisation}),t[3]=o):o=t[3];let u;t[4]!==i||t[5]!==s?(u=g.jsx(Nr,{onClick:i,variant:"nav-box",active:s,children:o}),t[4]=i,t[5]=s,t[6]=u):u=t[6];let d;t[7]!==n||t[8]!==r?(d=()=>r(n===ct.Policy?".":"/policy"),t[7]=n,t[8]=r,t[9]=d):d=t[9];const p=n===ct.Policy;let x;t[10]===Symbol.for("react.memo_cache_sentinel")?(x=g.jsx("span",{children:ct.Policy}),t[10]=x):x=t[10];let y;t[11]!==d||t[12]!==p?(y=g.jsx(Nr,{onClick:d,variant:"nav-box",active:p,children:x}),t[11]=d,t[12]=p,t[13]=y):y=t[13];let v;t[14]!==n||t[15]!==r?(v=()=>r(n===ct.ConnectedUsers?".":"/institutions-urls"),t[14]=n,t[15]=r,t[16]=v):v=t[16];const w=n===ct.ConnectedUsers;let b;t[17]===Symbol.for("react.memo_cache_sentinel")?(b=g.jsx("span",{children:ct.ConnectedUsers}),t[17]=b):b=t[17];let S;t[18]!==w||t[19]!==v?(S=g.jsx(Nr,{onClick:v,variant:"nav-box",active:w,children:b}),t[18]=w,t[19]=v,t[20]=S):S=t[20];let T;t[21]!==n||t[22]!==r?(T=()=>r(n===ct.Network?".":"/traffic-volume"),t[21]=n,t[22]=r,t[23]=T):T=t[23];const C=n===ct.Network;let R;t[24]===Symbol.for("react.memo_cache_sentinel")?(R=g.jsx("span",{children:ct.Network}),t[24]=R):R=t[24];let A;t[25]!==T||t[26]!==C?(A=g.jsx(Nr,{onClick:T,variant:"nav-box",active:C,children:R}),t[25]=T,t[26]=C,t[27]=A):A=t[27];let j;t[28]!==n||t[29]!==r?(j=()=>r(n===ct.Services?".":"/network-services"),t[28]=n,t[29]=r,t[30]=j):j=t[30];const O=n===ct.Services;let B;t[31]===Symbol.for("react.memo_cache_sentinel")?(B=g.jsx("span",{children:ct.Services}),t[31]=B):B=t[31];let L;t[32]!==j||t[33]!==O?(L=g.jsx(Nr,{onClick:j,variant:"nav-box",active:O,children:B}),t[32]=j,t[33]=O,t[34]=L):L=t[34];let I;return t[35]!==S||t[36]!==A||t[37]!==L||t[38]!==u||t[39]!==y?(I=g.jsx(la,{children:g.jsx(Cn,{children:g.jsxs(uy,{className:"navbox-bar gap-2 m-3",children:[u,y,S,A,L]})})}),t[35]=S,t[36]=A,t[37]=L,t[38]=u,t[39]=y,t[40]=I):I=t[40],I},kA=()=>{const e=Ke.c(13);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=g.jsx("h5",{children:"Standards and Policies"}),e[0]=t):t=e[0];let n,r;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=g.jsx(gt,{to:"/policy",children:g.jsx("span",{children:"NREN Policies"})}),r=g.jsx("h6",{className:"section-title",children:"Standards"}),e[1]=n,e[2]=r):(n=e[1],r=e[2]);let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=g.jsx(gt,{to:"/audits",children:g.jsx("span",{children:"External and Internal Audits of Information Security Management Systems"})}),e[3]=i):i=e[3];let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s=g.jsx(gt,{to:"/business-continuity",children:g.jsx("span",{children:"NREN Business Continuity Planning"})}),e[4]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=g.jsx(gt,{to:"/central-procurement",children:g.jsx("span",{children:"Central Procurement of Software"})}),e[5]=o):o=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=g.jsx(gt,{to:"/crisis-management",children:g.jsx("span",{children:"Crisis Management Procedures"})}),e[6]=u):u=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=g.jsx(gt,{to:"/crisis-exercise",children:g.jsx("span",{children:"Crisis Exercises - NREN Operation and Participation"})}),e[7]=d):d=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=g.jsx(gt,{to:"/security-control",children:g.jsx("span",{children:"Security Controls Used by NRENs"})}),e[8]=p):p=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=g.jsx(gt,{to:"/services-offered",children:g.jsx("span",{children:"Services Offered by NRENs by Types of Users"})}),e[9]=x):x=e[9];let y;e[10]===Symbol.for("react.memo_cache_sentinel")?(y=g.jsx(gt,{to:"/corporate-strategy",children:g.jsx("span",{children:"NREN Corporate Strategies "})}),e[10]=y):y=e[10];let v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=g.jsx(gt,{to:"/service-level-targets",children:g.jsx("span",{children:"NRENs Offering Service Level Targets"})}),e[11]=v):v=e[11];let w;return e[12]===Symbol.for("react.memo_cache_sentinel")?(w=g.jsxs(nd,{children:[t,n,r,i,s,o,u,d,p,x,y,v,g.jsx(gt,{to:"/service-management-framework",children:g.jsx("span",{children:"NRENs Operating a Formal Service Management Framework"})})]}),e[12]=w):w=e[12],w},FA=()=>{const e=Ke.c(34);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=g.jsx("h5",{children:"Network"}),n=g.jsx("h6",{className:"section-title",children:"Connectivity"}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=g.jsx(gt,{to:"/traffic-volume",children:g.jsx("span",{children:"NREN Traffic - NREN Customers & External Networks"})}),e[2]=r):r=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=g.jsx(gt,{to:"/iru-duration",children:g.jsx("span",{children:"Average Duration of IRU leases of Fibre by NRENs"})}),e[3]=i):i=e[3];let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s=g.jsx(gt,{to:"/fibre-light",children:g.jsx("span",{children:"Approaches to lighting NREN fibre networks"})}),e[4]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=g.jsx(gt,{to:"/dark-fibre-lease",children:g.jsx("span",{children:"Kilometres of Leased Dark Fibre (National)"})}),e[5]=o):o=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=g.jsx(gt,{to:"/dark-fibre-lease-international",children:g.jsx("span",{children:"Kilometres of Leased Dark Fibre (International)"})}),e[6]=u):u=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=g.jsx(gt,{to:"/dark-fibre-installed",children:g.jsx("span",{children:"Kilometres of Installed Dark Fibre"})}),e[7]=d):d=e[7];let p,x,y;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=g.jsx(gt,{to:"/network-map",children:g.jsx("span",{children:"NREN Network Maps"})}),y=g.jsx("hr",{className:"fake-divider"}),p=g.jsx("h6",{className:"section-title",children:"Performance Monitoring & Management"}),e[8]=p,e[9]=x,e[10]=y):(p=e[8],x=e[9],y=e[10]);let v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=g.jsx(gt,{to:"/monitoring-tools",children:g.jsx("span",{children:"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions"})}),e[11]=v):v=e[11];let w;e[12]===Symbol.for("react.memo_cache_sentinel")?(w=g.jsx(gt,{to:"/pert-team",children:g.jsx("span",{children:"NRENs with Performance Enhancement Response Teams"})}),e[12]=w):w=e[12];let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=g.jsx(gt,{to:"/passive-monitoring",children:g.jsx("span",{children:"Methods for Passively Monitoring International Traffic"})}),e[13]=b):b=e[13];let S;e[14]===Symbol.for("react.memo_cache_sentinel")?(S=g.jsx(gt,{to:"/traffic-stats",children:g.jsx("span",{children:"Traffic Statistics  "})}),e[14]=S):S=e[14];let T;e[15]===Symbol.for("react.memo_cache_sentinel")?(T=g.jsx(gt,{to:"/weather-map",children:g.jsx("span",{children:"NREN Online Network Weather Maps "})}),e[15]=T):T=e[15];let C;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=g.jsx(gt,{to:"/certificate-providers",children:g.jsx("span",{children:"Certification Services used by NRENs"})}),e[16]=C):C=e[16];let R,A,j;e[17]===Symbol.for("react.memo_cache_sentinel")?(R=g.jsx(gt,{to:"/siem-vendors",children:g.jsx("span",{children:"Vendors of SIEM/SOC systems used by NRENs"})}),A=g.jsx("hr",{className:"fake-divider"}),j=g.jsx("h6",{className:"section-title",children:"Alienwave"}),e[17]=R,e[18]=A,e[19]=j):(R=e[17],A=e[18],j=e[19]);let O;e[20]===Symbol.for("react.memo_cache_sentinel")?(O=g.jsx(gt,{to:"/alien-wave",children:g.jsx("span",{children:"NREN Use of 3rd Party Alienwave/Lightpath Services"})}),e[20]=O):O=e[20];let B,L,I;e[21]===Symbol.for("react.memo_cache_sentinel")?(B=g.jsx(gt,{to:"/alien-wave-internal",children:g.jsx("span",{children:"Internal NREN Use of Alien Waves"})}),L=g.jsx("hr",{className:"fake-divider"}),I=g.jsx("h6",{className:"section-title",children:"Capacity"}),e[21]=B,e[22]=L,e[23]=I):(B=e[21],L=e[22],I=e[23]);let U;e[24]===Symbol.for("react.memo_cache_sentinel")?(U=g.jsx(gt,{to:"/capacity-largest-link",children:g.jsx("span",{children:"Capacity of the Largest Link in an NREN Network"})}),e[24]=U):U=e[24];let W;e[25]===Symbol.for("react.memo_cache_sentinel")?(W=g.jsx(gt,{to:"/external-connections",children:g.jsx("span",{children:"NREN External IP Connections"})}),e[25]=W):W=e[25];let X;e[26]===Symbol.for("react.memo_cache_sentinel")?(X=g.jsx(gt,{to:"/capacity-core-ip",children:g.jsx("span",{children:"NREN Core IP Capacity"})}),e[26]=X):X=e[26];let te;e[27]===Symbol.for("react.memo_cache_sentinel")?(te=g.jsx(gt,{to:"/non-rne-peers",children:g.jsx("span",{children:"Number of Non-R&E Networks NRENs Peer With"})}),e[27]=te):te=e[27];let ne,_e,ye;e[28]===Symbol.for("react.memo_cache_sentinel")?(ne=g.jsx(gt,{to:"/traffic-ratio",children:g.jsx("span",{children:"Types of traffic in NREN networks"})}),_e=g.jsx("hr",{className:"fake-divider"}),ye=g.jsx("h6",{className:"section-title",children:"Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)"}),e[28]=ne,e[29]=_e,e[30]=ye):(ne=e[28],_e=e[29],ye=e[30]);let ce;e[31]===Symbol.for("react.memo_cache_sentinel")?(ce=g.jsx(gt,{to:"/ops-automation",children:g.jsx("span",{children:"NREN Automation of Operational Processes"})}),e[31]=ce):ce=e[31];let Te;e[32]===Symbol.for("react.memo_cache_sentinel")?(Te=g.jsx(gt,{to:"/network-automation",children:g.jsx("span",{children:"Network Tasks for which NRENs Use Automation  "})}),e[32]=Te):Te=e[32];let Ne;return e[33]===Symbol.for("react.memo_cache_sentinel")?(Ne=g.jsxs(nd,{children:[t,n,r,i,s,o,u,d,x,y,p,v,w,b,S,T,C,R,A,j,O,B,L,I,U,W,X,te,ne,_e,ye,ce,Te,g.jsx(gt,{to:"/nfv",children:g.jsx("span",{children:"Kinds of Network Function Virtualisation used by NRENs"})})]}),e[33]=Ne):Ne=e[33],Ne},LA=()=>{const e=Ke.c(11);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=g.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=g.jsx(gt,{to:"/institutions-urls",children:g.jsx("span",{children:"Webpages Listing Institutions and Organisations Connected to NREN Networks"})}),e[1]=n):n=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=g.jsx(gt,{to:"/connected-proportion",children:g.jsx("span",{children:"Proportion of Different Categories of Institutions Served by NRENs"})}),e[2]=r):r=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=g.jsx(gt,{to:"/connectivity-level",children:g.jsx("span",{children:"Level of IP Connectivity by Institution Type"})}),e[3]=i):i=e[3];let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s=g.jsx(gt,{to:"/connection-carrier",children:g.jsx("span",{children:"Methods of Carrying IP Traffic to Users"})}),e[4]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=g.jsx(gt,{to:"/connectivity-load",children:g.jsx("span",{children:"Connectivity Load"})}),e[5]=o):o=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=g.jsx(gt,{to:"/connectivity-growth",children:g.jsx("span",{children:"Connectivity Growth"})}),e[6]=u):u=e[6];let d,p;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=g.jsx(gt,{to:"/remote-campuses",children:g.jsx("span",{children:"NREN Connectivity to Remote Campuses in Other Countries"})}),p=g.jsx("h6",{className:"section-title",children:"Connected Users - Commercial"}),e[7]=d,e[8]=p):(d=e[7],p=e[8]);let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=g.jsx(gt,{to:"/commercial-charging-level",children:g.jsx("span",{children:"Commercial Charging Level"})}),e[9]=x):x=e[9];let y;return e[10]===Symbol.for("react.memo_cache_sentinel")?(y=g.jsxs(nd,{children:[t,n,r,i,s,o,u,d,p,x,g.jsx(gt,{to:"/commercial-connectivity",children:g.jsx("span",{children:"Commercial Connectivity"})})]}),e[10]=y):y=e[10],y},MA=()=>{const e=Ke.c(9);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=g.jsx("h5",{children:"Services"}),e[0]=t):t=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=g.jsx(gt,{to:"/network-services",children:g.jsx("span",{children:"Network services"})}),e[1]=n):n=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=g.jsx(gt,{to:"/isp-support-services",children:g.jsx("span",{children:"ISP support services"})}),e[2]=r):r=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=g.jsx(gt,{to:"/security-services",children:g.jsx("span",{children:"Security services"})}),e[3]=i):i=e[3];let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s=g.jsx(gt,{to:"/identity-services",children:g.jsx("span",{children:"Identity services"})}),e[4]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=g.jsx(gt,{to:"/collaboration-services",children:g.jsx("span",{children:"Collaboration services"})}),e[5]=o):o=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=g.jsx(gt,{to:"/multimedia-services",children:g.jsx("span",{children:"Multimedia services"})}),e[6]=u):u=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=g.jsx(gt,{to:"/storage-and-hosting-services",children:g.jsx("span",{children:"Storage and hosting services"})}),e[7]=d):d=e[7];let p;return e[8]===Symbol.for("react.memo_cache_sentinel")?(p=g.jsxs(nd,{children:[t,n,r,i,s,o,u,d,g.jsx(gt,{to:"/professional-services",children:g.jsx("span",{children:"Professional services"})})]}),e[8]=p):p=e[8],p};/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Hg={};Hg.version="0.18.5";var N3=1252,BA=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],C3=function(e){BA.indexOf(e)!=-1&&(N3=e)};function PA(){C3(1252)}var j1=function(e){C3(e)};function UA(){j1(1200),PA()}var mg=function(t){return String.fromCharCode(t)},xw=function(t){return String.fromCharCode(t)},vw,Rc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function k1(e){for(var t="",n=0,r=0,i=0,s=0,o=0,u=0,d=0,p=0;p<e.length;)n=e.charCodeAt(p++),s=n>>2,r=e.charCodeAt(p++),o=(n&3)<<4|r>>4,i=e.charCodeAt(p++),u=(r&15)<<2|i>>6,d=i&63,isNaN(r)?u=d=64:isNaN(i)&&(d=64),t+=Rc.charAt(s)+Rc.charAt(o)+Rc.charAt(u)+Rc.charAt(d);return t}function wo(e){var t="",n=0,r=0,i=0,s=0,o=0,u=0,d=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var p=0;p<e.length;)s=Rc.indexOf(e.charAt(p++)),o=Rc.indexOf(e.charAt(p++)),n=s<<2|o>>4,t+=String.fromCharCode(n),u=Rc.indexOf(e.charAt(p++)),r=(o&15)<<4|u>>2,u!==64&&(t+=String.fromCharCode(r)),d=Rc.indexOf(e.charAt(p++)),i=(u&3)<<6|d,d!==64&&(t+=String.fromCharCode(i));return t}var Nn=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),No=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,n){return n?new Buffer(t,n):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function nu(e){return Nn?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function yw(e){return Nn?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var zl=function(t){return Nn?No(t,"binary"):t.split("").map(function(n){return n.charCodeAt(0)&255})};function yx(e){if(typeof ArrayBuffer>"u")return zl(e);for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=e.charCodeAt(r)&255;return t}function em(e){if(Array.isArray(e))return e.map(function(r){return String.fromCharCode(r)}).join("");for(var t=[],n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}function IA(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var ra=Nn?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:No(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,n=0;for(t=0;t<e.length;++t)n+=e[t].length;var r=new Uint8Array(n),i=0;for(t=0,n=0;t<e.length;n+=i,++t)if(i=e[t].length,e[t]instanceof Uint8Array)r.set(e[t],n);else{if(typeof e[t]=="string")throw"wtf";r.set(new Uint8Array(e[t]),n)}return r}return[].concat.apply([],e.map(function(s){return Array.isArray(s)?s:[].slice.call(s)}))};function YA(e){for(var t=[],n=0,r=e.length+250,i=nu(e.length+255),s=0;s<e.length;++s){var o=e.charCodeAt(s);if(o<128)i[n++]=o;else if(o<2048)i[n++]=192|o>>6&31,i[n++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var u=e.charCodeAt(++s)&1023;i[n++]=240|o>>8&7,i[n++]=128|o>>2&63,i[n++]=128|u>>6&15|(o&3)<<4,i[n++]=128|u&63}else i[n++]=224|o>>12&15,i[n++]=128|o>>6&63,i[n++]=128|o&63;n>r&&(t.push(i.slice(0,n)),n=0,i=nu(65535),r=65530)}return t.push(i.slice(0,n)),ra(t)}var w1=/\u0000/g,pg=/[\u0001-\u0006]/g;function $0(e){for(var t="",n=e.length-1;n>=0;)t+=e.charAt(n--);return t}function Gl(e,t){var n=""+e;return n.length>=t?n:pr("0",t-n.length)+n}function Dy(e,t){var n=""+e;return n.length>=t?n:pr(" ",t-n.length)+n}function $g(e,t){var n=""+e;return n.length>=t?n:n+pr(" ",t-n.length)}function HA(e,t){var n=""+Math.round(e);return n.length>=t?n:pr("0",t-n.length)+n}function $A(e,t){var n=""+e;return n.length>=t?n:pr("0",t-n.length)+n}var _w=Math.pow(2,32);function L0(e,t){if(e>_w||e<-_w)return HA(e,t);var n=Math.round(e);return $A(n,t)}function zg(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 ww=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],f2=[["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 zA(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 gr={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"秒 "'},Ew={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},GA={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 Gg(e,t,n){for(var r=e<0?-1:1,i=e*r,s=0,o=1,u=0,d=1,p=0,x=0,y=Math.floor(i);p<t&&(y=Math.floor(i),u=y*o+s,x=y*p+d,!(i-y<5e-8));)i=1/(i-y),s=o,o=u,d=p,p=x;if(x>t&&(p>t?(x=d,u=s):(x=p,u=o)),!n)return[0,r*u,x];var v=Math.floor(r*u/x);return[v,r*u-v*x,x]}function gg(e,t,n){if(e>2958465||e<0)return null;var r=e|0,i=Math.floor(86400*(e-r)),s=0,o=[],u={D:r,T:i,u:86400*(e-r)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(u.u)<1e-6&&(u.u=0),t&&t.date1904&&(r+=1462),u.u>.9999&&(u.u=0,++i==86400&&(u.T=i=0,++r,++u.D)),r===60)o=n?[1317,10,29]:[1900,2,29],s=3;else if(r===0)o=n?[1317,8,29]:[1900,1,0],s=6;else{r>60&&--r;var d=new Date(1900,0,1);d.setDate(d.getDate()+r-1),o=[d.getFullYear(),d.getMonth()+1,d.getDate()],s=d.getDay(),r<60&&(s=(s+6)%7),n&&(s=QA(d,o))}return u.y=o[0],u.m=o[1],u.d=o[2],u.S=i%60,i=Math.floor(i/60),u.M=i%60,i=Math.floor(i/60),u.H=i,u.q=s,u}var A3=new Date(1899,11,31,0,0,0),WA=A3.getTime(),VA=new Date(1900,2,1,0,0,0);function R3(e,t){var n=e.getTime();return t?n-=1461*24*60*60*1e3:e>=VA&&(n+=24*60*60*1e3),(n-(WA+(e.getTimezoneOffset()-A3.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function jy(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function XA(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function qA(e){var t=e<0?12:11,n=jy(e.toFixed(12));return n.length<=t||(n=e.toPrecision(10),n.length<=t)?n:e.toExponential(5)}function KA(e){var t=jy(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function ZA(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),n;return t>=-4&&t<=-1?n=e.toPrecision(10+t):Math.abs(t)<=9?n=qA(e):t===10?n=e.toFixed(10).substr(0,12):n=KA(e),jy(XA(n.toUpperCase()))}function F2(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):ZA(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return kc(14,R3(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function QA(e,t){t[0]-=581;var n=e.getDay();return e<60&&(n=(n+6)%7),n}function JA(e,t,n,r){var i="",s=0,o=0,u=n.y,d,p=0;switch(e){case 98:u=n.y+543;case 121:switch(t.length){case 1:case 2:d=u%100,p=2;break;default:d=u%1e4,p=4;break}break;case 109:switch(t.length){case 1:case 2:d=n.m,p=t.length;break;case 3:return f2[n.m-1][1];case 5:return f2[n.m-1][0];default:return f2[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:d=n.d,p=t.length;break;case 3:return ww[n.q][0];default:return ww[n.q][1]}break;case 104:switch(t.length){case 1:case 2:d=1+(n.H+11)%12,p=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:d=n.H,p=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:d=n.M,p=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 n.u===0&&(t=="s"||t=="ss")?Gl(n.S,t.length):(r>=2?o=r===3?1e3:100:o=r===1?10:1,s=Math.round(o*(n.S+n.u)),s>=60*o&&(s=0),t==="s"?s===0?"0":""+s/o:(i=Gl(s,2+r),t==="ss"?i.substr(0,2):"."+i.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":d=n.D*24+n.H;break;case"[m]":case"[mm]":d=(n.D*24+n.H)*60+n.M;break;case"[s]":case"[ss]":d=((n.D*24+n.H)*60+n.M)*60+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}p=t.length===3?1:2;break;case 101:d=u,p=1;break}var x=p>0?Gl(d,p):"";return x}function Oc(e){var t=3;if(e.length<=t)return e;for(var n=e.length%t,r=e.substr(0,n);n!=e.length;n+=t)r+=(r.length>0?",":"")+e.substr(n,t);return r}var O3=/%/g;function eR(e,t,n){var r=t.replace(O3,""),i=t.length-r.length;return po(e,r,n*Math.pow(10,2*i))+pr("%",i)}function tR(e,t,n){for(var r=t.length-1;t.charCodeAt(r-1)===44;)--r;return po(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}function D3(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+D3(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var s=Math.floor(Math.log(t)*Math.LOG10E)%i;if(s<0&&(s+=i),n=(t/Math.pow(10,s)).toPrecision(r+1+(i+s)%i),n.indexOf("e")===-1){var o=Math.floor(Math.log(t)*Math.LOG10E);for(n.indexOf(".")===-1?n=n.charAt(0)+"."+n.substr(1)+"E+"+(o-n.length+s):n+="E+"+(o-s);n.substr(0,2)==="0.";)n=n.charAt(0)+n.substr(2,i)+"."+n.substr(2+i),n=n.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(u,d,p,x){return d+p+x.substr(0,(i+s)%i)+"."+x.substr(s)+"E"})}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var j3=/# (\?+)( ?)\/( ?)(\d+)/;function nR(e,t,n){var r=parseInt(e[4],10),i=Math.round(t*r),s=Math.floor(i/r),o=i-s*r,u=r;return n+(s===0?"":""+s)+" "+(o===0?pr(" ",e[1].length+1+e[4].length):Dy(o,e[1].length)+e[2]+"/"+e[3]+Gl(u,e[4].length))}function rR(e,t,n){return n+(t===0?"":""+t)+pr(" ",e[1].length+2+e[4].length)}var k3=/^#*0*\.([0#]+)/,F3=/\).*[0#]/,L3=/\(###\) ###\\?-####/;function Ia(e){for(var t="",n,r=0;r!=e.length;++r)switch(n=e.charCodeAt(r)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(n)}return t}function Sw(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function bw(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function aR(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function iR(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function il(e,t,n){if(e.charCodeAt(0)===40&&!t.match(F3)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?il("n",r,n):"("+il("n",r,-n)+")"}if(t.charCodeAt(t.length-1)===44)return tR(e,t,n);if(t.indexOf("%")!==-1)return eR(e,t,n);if(t.indexOf("E")!==-1)return D3(t,n);if(t.charCodeAt(0)===36)return"$"+il(e,t.substr(t.charAt(1)==" "?2:1),n);var i,s,o,u,d=Math.abs(n),p=n<0?"-":"";if(t.match(/^00+$/))return p+L0(d,t.length);if(t.match(/^[#?]+$/))return i=L0(n,0),i==="0"&&(i=""),i.length>t.length?i:Ia(t.substr(0,t.length-i.length))+i;if(s=t.match(j3))return nR(s,d,p);if(t.match(/^#+0+$/))return p+L0(d,t.length-t.indexOf("0"));if(s=t.match(k3))return i=Sw(n,s[1].length).replace(/^([^\.]+)$/,"$1."+Ia(s[1])).replace(/\.$/,"."+Ia(s[1])).replace(/\.(\d*)$/,function(b,S){return"."+S+pr("0",Ia(s[1]).length-S.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),s=t.match(/^(0*)\.(#*)$/))return p+Sw(d,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 p+Oc(L0(d,0));if(s=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+il(e,t,-n):Oc(""+(Math.floor(n)+aR(n,s[1].length)))+"."+Gl(bw(n,s[1].length),s[1].length);if(s=t.match(/^#,#*,#0/))return il(e,t.replace(/^#,#*,/,""),n);if(s=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=$0(il(e,t.replace(/[\\-]/g,""),n)),o=0,$0($0(t.replace(/\\/g,"")).replace(/[0#]/g,function(b){return o<i.length?i.charAt(o++):b==="0"?"0":""}));if(t.match(L3))return i=il(e,"##########",n),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var x="";if(s=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(s[4].length,7),u=Gg(d,Math.pow(10,o)-1,!1),i=""+p,x=po("n",s[1],u[1]),x.charAt(x.length-1)==" "&&(x=x.substr(0,x.length-1)+"0"),i+=x+s[2]+"/"+s[3],x=$g(u[2],o),x.length<s[4].length&&(x=Ia(s[4].substr(s[4].length-x.length))+x),i+=x,i;if(s=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(s[1].length,s[4].length),7),u=Gg(d,Math.pow(10,o)-1,!0),p+(u[0]||(u[1]?"":"0"))+" "+(u[1]?Dy(u[1],o)+s[2]+"/"+s[3]+$g(u[2],o):pr(" ",2*o+1+s[2].length+s[3].length));if(s=t.match(/^[#0?]+$/))return i=L0(n,0),t.length<=i.length?i:Ia(t.substr(0,t.length-i.length))+i;if(s=t.match(/^([#0?]+)\.([#0]+)$/)){i=""+n.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var y=t.indexOf(".")-o,v=t.length-i.length-y;return Ia(t.substr(0,y)+i+t.substr(t.length-v))}if(s=t.match(/^00,000\.([#0]*0)$/))return o=bw(n,s[1].length),n<0?"-"+il(e,t,-n):Oc(iR(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(b){return"00,"+(b.length<3?Gl(0,3-b.length):"")+b})+"."+Gl(o,s[1].length);switch(t){case"###,##0.00":return il(e,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var w=Oc(L0(d,0));return w!=="0"?p+w:"";case"###,###.00":return il(e,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return il(e,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function lR(e,t,n){for(var r=t.length-1;t.charCodeAt(r-1)===44;)--r;return po(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}function sR(e,t,n){var r=t.replace(O3,""),i=t.length-r.length;return po(e,r,n*Math.pow(10,2*i))+pr("%",i)}function M3(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+M3(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var s=Math.floor(Math.log(t)*Math.LOG10E)%i;if(s<0&&(s+=i),n=(t/Math.pow(10,s)).toPrecision(r+1+(i+s)%i),!n.match(/[Ee]/)){var o=Math.floor(Math.log(t)*Math.LOG10E);n.indexOf(".")===-1?n=n.charAt(0)+"."+n.substr(1)+"E+"+(o-n.length+s):n+="E+"+(o-s),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(u,d,p,x){return d+p+x.substr(0,(i+s)%i)+"."+x.substr(s)+"E"})}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function Ns(e,t,n){if(e.charCodeAt(0)===40&&!t.match(F3)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?Ns("n",r,n):"("+Ns("n",r,-n)+")"}if(t.charCodeAt(t.length-1)===44)return lR(e,t,n);if(t.indexOf("%")!==-1)return sR(e,t,n);if(t.indexOf("E")!==-1)return M3(t,n);if(t.charCodeAt(0)===36)return"$"+Ns(e,t.substr(t.charAt(1)==" "?2:1),n);var i,s,o,u,d=Math.abs(n),p=n<0?"-":"";if(t.match(/^00+$/))return p+Gl(d,t.length);if(t.match(/^[#?]+$/))return i=""+n,n===0&&(i=""),i.length>t.length?i:Ia(t.substr(0,t.length-i.length))+i;if(s=t.match(j3))return rR(s,d,p);if(t.match(/^#+0+$/))return p+Gl(d,t.length-t.indexOf("0"));if(s=t.match(k3))return i=(""+n).replace(/^([^\.]+)$/,"$1."+Ia(s[1])).replace(/\.$/,"."+Ia(s[1])),i=i.replace(/\.(\d*)$/,function(b,S){return"."+S+pr("0",Ia(s[1]).length-S.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),s=t.match(/^(0*)\.(#*)$/))return p+(""+d).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=t.match(/^#{1,3},##0(\.?)$/))return p+Oc(""+d);if(s=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Ns(e,t,-n):Oc(""+n)+"."+pr("0",s[1].length);if(s=t.match(/^#,#*,#0/))return Ns(e,t.replace(/^#,#*,/,""),n);if(s=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=$0(Ns(e,t.replace(/[\\-]/g,""),n)),o=0,$0($0(t.replace(/\\/g,"")).replace(/[0#]/g,function(b){return o<i.length?i.charAt(o++):b==="0"?"0":""}));if(t.match(L3))return i=Ns(e,"##########",n),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var x="";if(s=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(s[4].length,7),u=Gg(d,Math.pow(10,o)-1,!1),i=""+p,x=po("n",s[1],u[1]),x.charAt(x.length-1)==" "&&(x=x.substr(0,x.length-1)+"0"),i+=x+s[2]+"/"+s[3],x=$g(u[2],o),x.length<s[4].length&&(x=Ia(s[4].substr(s[4].length-x.length))+x),i+=x,i;if(s=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(s[1].length,s[4].length),7),u=Gg(d,Math.pow(10,o)-1,!0),p+(u[0]||(u[1]?"":"0"))+" "+(u[1]?Dy(u[1],o)+s[2]+"/"+s[3]+$g(u[2],o):pr(" ",2*o+1+s[2].length+s[3].length));if(s=t.match(/^[#0?]+$/))return i=""+n,t.length<=i.length?i:Ia(t.substr(0,t.length-i.length))+i;if(s=t.match(/^([#0]+)\.([#0]+)$/)){i=""+n.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var y=t.indexOf(".")-o,v=t.length-i.length-y;return Ia(t.substr(0,y)+i+t.substr(t.length-v))}if(s=t.match(/^00,000\.([#0]*0)$/))return n<0?"-"+Ns(e,t,-n):Oc(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(b){return"00,"+(b.length<3?Gl(0,3-b.length):"")+b})+"."+Gl(0,s[1].length);switch(t){case"###,###":case"##,###":case"#,###":var w=Oc(""+d);return w!=="0"?p+w:"";default:if(t.match(/\.[0#?]*$/))return Ns(e,t.slice(0,t.lastIndexOf(".")),n)+Ia(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function po(e,t,n){return(n|0)===n?Ns(e,t,n):il(e,t,n)}function oR(e){for(var t=[],n=!1,r=0,i=0;r<e.length;++r)switch(e.charCodeAt(r)){case 34:n=!n;break;case 95:case 42:case 92:++r;break;case 59:t[t.length]=e.substr(i,r-i),i=r+1}if(t[t.length]=e.substr(i),n===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var B3=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function P3(e){for(var t=0,n="",r="";t<e.length;)switch(n=e.charAt(t)){case"G":zg(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(r=n;e.charAt(t++)!=="]"&&t<e.length;)r+=e.charAt(t);if(r.match(B3))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(n=e.charAt(++t))>-1||n=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===n;);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 cR(e,t,n,r){for(var i=[],s="",o=0,u="",d="t",p,x,y,v="H";o<e.length;)switch(u=e.charAt(o)){case"G":if(!zg(e,o))throw new Error("unrecognized character "+u+" in "+e);i[i.length]={t:"G",v:"General"},o+=7;break;case'"':for(s="";(y=e.charCodeAt(++o))!==34&&o<e.length;)s+=String.fromCharCode(y);i[i.length]={t:"t",v:s},++o;break;case"\\":var w=e.charAt(++o),b=w==="("||w===")"?w:"t";i[i.length]={t:b,v:w},++o;break;case"_":i[i.length]={t:"t",v:" "},o+=2;break;case"@":i[i.length]={t:"T",v:t},++o;break;case"B":case"b":if(e.charAt(o+1)==="1"||e.charAt(o+1)==="2"){if(p==null&&(p=gg(t,n,e.charAt(o+1)==="2"),p==null))return"";i[i.length]={t:"X",v:e.substr(o,2)},d=u,o+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":u=u.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||p==null&&(p=gg(t,n),p==null))return"";for(s=u;++o<e.length&&e.charAt(o).toLowerCase()===u;)s+=u;u==="m"&&d.toLowerCase()==="h"&&(u="M"),u==="h"&&(u=v),i[i.length]={t:u,v:s},d=u;break;case"A":case"a":case"上":var S={t:u,v:u};if(p==null&&(p=gg(t,n)),e.substr(o,3).toUpperCase()==="A/P"?(p!=null&&(S.v=p.H>=12?"P":"A"),S.t="T",v="h",o+=3):e.substr(o,5).toUpperCase()==="AM/PM"?(p!=null&&(S.v=p.H>=12?"PM":"AM"),S.t="T",o+=5,v="h"):e.substr(o,5).toUpperCase()==="上午/下午"?(p!=null&&(S.v=p.H>=12?"下午":"上午"),S.t="T",o+=5,v="h"):(S.t="t",++o),p==null&&S.t==="T")return"";i[i.length]=S,d=u;break;case"[":for(s=u;e.charAt(o++)!=="]"&&o<e.length;)s+=e.charAt(o);if(s.slice(-1)!=="]")throw'unterminated "[" block: |'+s+"|";if(s.match(B3)){if(p==null&&(p=gg(t,n),p==null))return"";i[i.length]={t:"Z",v:s.toLowerCase()},d=s.charAt(1)}else s.indexOf("$")>-1&&(s=(s.match(/\$([^-\[\]]*)/)||[])[1]||"$",P3(e)||(i[i.length]={t:"t",v:s}));break;case".":if(p!=null){for(s=u;++o<e.length&&(u=e.charAt(o))==="0";)s+=u;i[i.length]={t:"s",v:s};break}case"0":case"#":for(s=u;++o<e.length&&"0#?.,E+-%".indexOf(u=e.charAt(o))>-1;)s+=u;i[i.length]={t:"n",v:s};break;case"?":for(s=u;e.charAt(++o)===u;)s+=u;i[i.length]={t:u,v:s},d=u;break;case"*":++o,(e.charAt(o)==" "||e.charAt(o)=="*")&&++o;break;case"(":case")":i[i.length]={t:r===1?"t":u,v:u},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(s=u;o<e.length&&"0123456789".indexOf(e.charAt(++o))>-1;)s+=e.charAt(o);i[i.length]={t:"D",v:s};break;case" ":i[i.length]={t:u,v:u},++o;break;case"$":i[i.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(u)===-1)throw new Error("unrecognized character "+u+" in "+e);i[i.length]={t:"t",v:u},++o;break}var T=0,C=0,R;for(o=i.length-1,d="t";o>=0;--o)switch(i[o].t){case"h":case"H":i[o].t=v,d="h",T<1&&(T=1);break;case"s":(R=i[o].v.match(/\.0+$/))&&(C=Math.max(C,R[0].length-1)),T<3&&(T=3);case"d":case"y":case"M":case"e":d=i[o].t;break;case"m":d==="s"&&(i[o].t="M",T<2&&(T=2));break;case"X":break;case"Z":T<1&&i[o].v.match(/[Hh]/)&&(T=1),T<2&&i[o].v.match(/[Mm]/)&&(T=2),T<3&&i[o].v.match(/[Ss]/)&&(T=3)}switch(T){case 0:break;case 1:p.u>=.5&&(p.u=0,++p.S),p.S>=60&&(p.S=0,++p.M),p.M>=60&&(p.M=0,++p.H);break;case 2:p.u>=.5&&(p.u=0,++p.S),p.S>=60&&(p.S=0,++p.M);break}var A="",j;for(o=0;o<i.length;++o)switch(i[o].t){case"t":case"T":case" ":case"D":break;case"X":i[o].v="",i[o].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[o].v=JA(i[o].t.charCodeAt(0),i[o].v,p,C),i[o].t="t";break;case"n":case"?":for(j=o+1;i[j]!=null&&((u=i[j].t)==="?"||u==="D"||(u===" "||u==="t")&&i[j+1]!=null&&(i[j+1].t==="?"||i[j+1].t==="t"&&i[j+1].v==="/")||i[o].t==="("&&(u===" "||u==="n"||u===")")||u==="t"&&(i[j].v==="/"||i[j].v===" "&&i[j+1]!=null&&i[j+1].t=="?"));)i[o].v+=i[j].v,i[j]={v:"",t:";"},++j;A+=i[o].v,o=j-1;break;case"G":i[o].t="t",i[o].v=F2(t,n);break}var O="",B,L;if(A.length>0){A.charCodeAt(0)==40?(B=t<0&&A.charCodeAt(0)===45?-t:t,L=po("n",A,B)):(B=t<0&&r>1?-t:t,L=po("n",A,B),B<0&&i[0]&&i[0].t=="t"&&(L=L.substr(1),i[0].v="-"+i[0].v)),j=L.length-1;var I=i.length;for(o=0;o<i.length;++o)if(i[o]!=null&&i[o].t!="t"&&i[o].v.indexOf(".")>-1){I=o;break}var U=i.length;if(I===i.length&&L.indexOf("E")===-1){for(o=i.length-1;o>=0;--o)i[o]==null||"n?".indexOf(i[o].t)===-1||(j>=i[o].v.length-1?(j-=i[o].v.length,i[o].v=L.substr(j+1,i[o].v.length)):j<0?i[o].v="":(i[o].v=L.substr(0,j+1),j=-1),i[o].t="t",U=o);j>=0&&U<i.length&&(i[U].v=L.substr(0,j+1)+i[U].v)}else if(I!==i.length&&L.indexOf("E")===-1){for(j=L.indexOf(".")-1,o=I;o>=0;--o)if(!(i[o]==null||"n?".indexOf(i[o].t)===-1)){for(x=i[o].v.indexOf(".")>-1&&o===I?i[o].v.indexOf(".")-1:i[o].v.length-1,O=i[o].v.substr(x+1);x>=0;--x)j>=0&&(i[o].v.charAt(x)==="0"||i[o].v.charAt(x)==="#")&&(O=L.charAt(j--)+O);i[o].v=O,i[o].t="t",U=o}for(j>=0&&U<i.length&&(i[U].v=L.substr(0,j+1)+i[U].v),j=L.indexOf(".")+1,o=I;o<i.length;++o)if(!(i[o]==null||"n?(".indexOf(i[o].t)===-1&&o!==I)){for(x=i[o].v.indexOf(".")>-1&&o===I?i[o].v.indexOf(".")+1:0,O=i[o].v.substr(0,x);x<i[o].v.length;++x)j<L.length&&(O+=L.charAt(j++));i[o].v=O,i[o].t="t",U=o}}}for(o=0;o<i.length;++o)i[o]!=null&&"n?".indexOf(i[o].t)>-1&&(B=r>1&&t<0&&o>0&&i[o-1].v==="-"?-t:t,i[o].v=po(i[o].t,i[o].v,B),i[o].t="t");var W="";for(o=0;o!==i.length;++o)i[o]!=null&&(W+=i[o].v);return W}var Tw=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Nw(e,t){if(t==null)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e<n)return!0;break;case"<>":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0;break}return!1}function fR(e,t){var n=oR(e),r=n.length,i=n[r-1].indexOf("@");if(r<4&&i>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if(typeof t!="number")return[4,n.length===4||i>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=i>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=i>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=i>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"];break}var s=t>0?n[0]:t<0?n[1]:n[2];if(n[0].indexOf("[")===-1&&n[1].indexOf("[")===-1)return[r,s];if(n[0].match(/\[[=<>]/)!=null||n[1].match(/\[[=<>]/)!=null){var o=n[0].match(Tw),u=n[1].match(Tw);return Nw(t,o)?[r,n[0]]:Nw(t,u)?[r,n[1]]:[r,n[o!=null&&u!=null?2:1]]}return[r,s]}function kc(e,t,n){n==null&&(n={});var r="";switch(typeof e){case"string":e=="m/d/yy"&&n.dateNF?r=n.dateNF:r=e;break;case"number":e==14&&n.dateNF?r=n.dateNF:r=(n.table!=null?n.table:gr)[e],r==null&&(r=n.table&&n.table[Ew[e]]||gr[Ew[e]]),r==null&&(r=GA[e]||"General");break}if(zg(r,0))return F2(t,n);t instanceof Date&&(t=R3(t,n.date1904));var i=fR(r,t);if(zg(i[1]))return F2(t,n);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return cR(i[1],t,n,i[0])}function U3(e,t){if(typeof t!="number"){t=+t||-1;for(var n=0;n<392;++n){if(gr[n]==null){t<0&&(t=n);continue}if(gr[n]==e){t=n;break}}t<0&&(t=391)}return gr[t]=e,t}function _x(e){for(var t=0;t!=392;++t)e[t]!==void 0&&U3(e[t],t)}function wx(){gr=zA()}var I3=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function uR(e){var t=typeof e=="number"?gr[e]:e;return t=t.replace(I3,"(\\d+)"),new RegExp("^"+t+"$")}function dR(e,t,n){var r=-1,i=-1,s=-1,o=-1,u=-1,d=-1;(t.match(I3)||[]).forEach(function(y,v){var w=parseInt(n[v+1],10);switch(y.toLowerCase().charAt(0)){case"y":r=w;break;case"d":s=w;break;case"h":o=w;break;case"s":d=w;break;case"m":o>=0?u=w:i=w;break}}),d>=0&&u==-1&&i>=0&&(u=i,i=-1);var p=(""+(r>=0?r:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(s>=1?s:1)).slice(-2);p.length==7&&(p="0"+p),p.length==8&&(p="20"+p);var x=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(u>=0?u:0)).slice(-2)+":"+("00"+(d>=0?d:0)).slice(-2);return o==-1&&u==-1&&d==-1?p:r==-1&&i==-1&&s==-1?x:p+"T"+x}var hR=function(){var e={};e.version="1.2.0";function t(){for(var L=0,I=new Array(256),U=0;U!=256;++U)L=U,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,I[U]=L;return typeof Int32Array<"u"?new Int32Array(I):I}var n=t();function r(L){var I=0,U=0,W=0,X=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(W=0;W!=256;++W)X[W]=L[W];for(W=0;W!=256;++W)for(U=L[W],I=256+W;I<4096;I+=256)U=X[I]=U>>>8^L[U&255];var te=[];for(W=1;W!=16;++W)te[W-1]=typeof Int32Array<"u"?X.subarray(W*256,W*256+256):X.slice(W*256,W*256+256);return te}var i=r(n),s=i[0],o=i[1],u=i[2],d=i[3],p=i[4],x=i[5],y=i[6],v=i[7],w=i[8],b=i[9],S=i[10],T=i[11],C=i[12],R=i[13],A=i[14];function j(L,I){for(var U=I^-1,W=0,X=L.length;W<X;)U=U>>>8^n[(U^L.charCodeAt(W++))&255];return~U}function O(L,I){for(var U=I^-1,W=L.length-15,X=0;X<W;)U=A[L[X++]^U&255]^R[L[X++]^U>>8&255]^C[L[X++]^U>>16&255]^T[L[X++]^U>>>24]^S[L[X++]]^b[L[X++]]^w[L[X++]]^v[L[X++]]^y[L[X++]]^x[L[X++]]^p[L[X++]]^d[L[X++]]^u[L[X++]]^o[L[X++]]^s[L[X++]]^n[L[X++]];for(W+=15;X<W;)U=U>>>8^n[(U^L[X++])&255];return~U}function B(L,I){for(var U=I^-1,W=0,X=L.length,te=0,ne=0;W<X;)te=L.charCodeAt(W++),te<128?U=U>>>8^n[(U^te)&255]:te<2048?(U=U>>>8^n[(U^(192|te>>6&31))&255],U=U>>>8^n[(U^(128|te&63))&255]):te>=55296&&te<57344?(te=(te&1023)+64,ne=L.charCodeAt(W++)&1023,U=U>>>8^n[(U^(240|te>>8&7))&255],U=U>>>8^n[(U^(128|te>>2&63))&255],U=U>>>8^n[(U^(128|ne>>6&15|(te&3)<<4))&255],U=U>>>8^n[(U^(128|ne&63))&255]):(U=U>>>8^n[(U^(224|te>>12&15))&255],U=U>>>8^n[(U^(128|te>>6&63))&255],U=U>>>8^n[(U^(128|te&63))&255]);return~U}return e.table=n,e.bstr=j,e.buf=O,e.str=B,e}(),In=function(){var t={};t.version="1.2.1";function n(M,V){for(var Y=M.split("/"),G=V.split("/"),Z=0,Q=0,he=Math.min(Y.length,G.length);Z<he;++Z){if(Q=Y[Z].length-G[Z].length)return Q;if(Y[Z]!=G[Z])return Y[Z]<G[Z]?-1:1}return Y.length-G.length}function r(M){if(M.charAt(M.length-1)=="/")return M.slice(0,-1).indexOf("/")===-1?M:r(M.slice(0,-1));var V=M.lastIndexOf("/");return V===-1?M:M.slice(0,V+1)}function i(M){if(M.charAt(M.length-1)=="/")return i(M.slice(0,-1));var V=M.lastIndexOf("/");return V===-1?M:M.slice(V+1)}function s(M,V){typeof V=="string"&&(V=new Date(V));var Y=V.getHours();Y=Y<<6|V.getMinutes(),Y=Y<<5|V.getSeconds()>>>1,M.write_shift(2,Y);var G=V.getFullYear()-1980;G=G<<4|V.getMonth()+1,G=G<<5|V.getDate(),M.write_shift(2,G)}function o(M){var V=M.read_shift(2)&65535,Y=M.read_shift(2)&65535,G=new Date,Z=Y&31;Y>>>=5;var Q=Y&15;Y>>>=4,G.setMilliseconds(0),G.setFullYear(Y+1980),G.setMonth(Q-1),G.setDate(Z);var he=V&31;V>>>=5;var Re=V&63;return V>>>=6,G.setHours(V),G.setMinutes(Re),G.setSeconds(he<<1),G}function u(M){Di(M,0);for(var V={},Y=0;M.l<=M.length-4;){var G=M.read_shift(2),Z=M.read_shift(2),Q=M.l+Z,he={};switch(G){case 21589:Y=M.read_shift(1),Y&1&&(he.mtime=M.read_shift(4)),Z>5&&(Y&2&&(he.atime=M.read_shift(4)),Y&4&&(he.ctime=M.read_shift(4))),he.mtime&&(he.mt=new Date(he.mtime*1e3));break}M.l=Q,V[G]=he}return V}var d;function p(){return d||(d={})}function x(M,V){if(M[0]==80&&M[1]==75)return Ga(M,V);if((M[0]|32)==109&&(M[1]|32)==105)return De(M,V);if(M.length<512)throw new Error("CFB file size "+M.length+" < 512");var Y=3,G=512,Z=0,Q=0,he=0,Re=0,we=0,Ee=[],Se=M.slice(0,512);Di(Se,0);var Ie=y(Se);switch(Y=Ie[0],Y){case 3:G=512;break;case 4:G=4096;break;case 0:if(Ie[1]==0)return Ga(M,V);default:throw new Error("Major Version: Expected 3 or 4 saw "+Y)}G!==512&&(Se=M.slice(0,G),Di(Se,28));var tt=M.slice(0,G);v(Se,Y);var at=Se.read_shift(4,"i");if(Y===3&&at!==0)throw new Error("# Directory Sectors: Expected 0 saw "+at);Se.l+=4,he=Se.read_shift(4,"i"),Se.l+=4,Se.chk("00100000","Mini Stream Cutoff Size: "),Re=Se.read_shift(4,"i"),Z=Se.read_shift(4,"i"),we=Se.read_shift(4,"i"),Q=Se.read_shift(4,"i");for(var qe=-1,Je=0;Je<109&&(qe=Se.read_shift(4,"i"),!(qe<0));++Je)Ee[Je]=qe;var Ct=w(M,G);T(we,Q,Ct,G,Ee);var Tt=R(Ct,he,Ee,G);Tt[he].name="!Directory",Z>0&&Re!==ne&&(Tt[Re].name="!MiniFAT"),Tt[Ee[0]].name="!FAT",Tt.fat_addrs=Ee,Tt.ssz=G;var Ot={},Sn=[],rr=[],bn=[];A(he,Tt,Ct,Sn,Z,Ot,rr,Re),b(rr,bn,Sn),Sn.shift();var Vr={FileIndex:rr,FullPaths:bn};return V&&V.raw&&(Vr.raw={header:tt,sectors:Ct}),Vr}function y(M){if(M[M.l]==80&&M[M.l+1]==75)return[0,0];M.chk(_e,"Header Signature: "),M.l+=16;var V=M.read_shift(2,"u");return[M.read_shift(2,"u"),V]}function v(M,V){var Y=9;switch(M.l+=2,Y=M.read_shift(2)){case 9:if(V!=3)throw new Error("Sector Shift: Expected 9 saw "+Y);break;case 12:if(V!=4)throw new Error("Sector Shift: Expected 12 saw "+Y);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+Y)}M.chk("0600","Mini Sector Shift: "),M.chk("000000000000","Reserved: ")}function w(M,V){for(var Y=Math.ceil(M.length/V)-1,G=[],Z=1;Z<Y;++Z)G[Z-1]=M.slice(Z*V,(Z+1)*V);return G[Y-1]=M.slice(Y*V),G}function b(M,V,Y){for(var G=0,Z=0,Q=0,he=0,Re=0,we=Y.length,Ee=[],Se=[];G<we;++G)Ee[G]=Se[G]=G,V[G]=Y[G];for(;Re<Se.length;++Re)G=Se[Re],Z=M[G].L,Q=M[G].R,he=M[G].C,Ee[G]===G&&(Z!==-1&&Ee[Z]!==Z&&(Ee[G]=Ee[Z]),Q!==-1&&Ee[Q]!==Q&&(Ee[G]=Ee[Q])),he!==-1&&(Ee[he]=G),Z!==-1&&G!=Ee[G]&&(Ee[Z]=Ee[G],Se.lastIndexOf(Z)<Re&&Se.push(Z)),Q!==-1&&G!=Ee[G]&&(Ee[Q]=Ee[G],Se.lastIndexOf(Q)<Re&&Se.push(Q));for(G=1;G<we;++G)Ee[G]===G&&(Q!==-1&&Ee[Q]!==Q?Ee[G]=Ee[Q]:Z!==-1&&Ee[Z]!==Z&&(Ee[G]=Ee[Z]));for(G=1;G<we;++G)if(M[G].type!==0){if(Re=G,Re!=Ee[Re])do Re=Ee[Re],V[G]=V[Re]+"/"+V[G];while(Re!==0&&Ee[Re]!==-1&&Re!=Ee[Re]);Ee[G]=-1}for(V[0]+="/",G=1;G<we;++G)M[G].type!==2&&(V[G]+="/")}function S(M,V,Y){for(var G=M.start,Z=M.size,Q=[],he=G;Y&&Z>0&&he>=0;)Q.push(V.slice(he*te,he*te+te)),Z-=te,he=qf(Y,he*4);return Q.length===0?ke(0):ra(Q).slice(0,M.size)}function T(M,V,Y,G,Z){var Q=ne;if(M===ne){if(V!==0)throw new Error("DIFAT chain shorter than expected")}else if(M!==-1){var he=Y[M],Re=(G>>>2)-1;if(!he)return;for(var we=0;we<Re&&(Q=qf(he,we*4))!==ne;++we)Z.push(Q);T(qf(he,G-4),V-1,Y,G,Z)}}function C(M,V,Y,G,Z){var Q=[],he=[];Z||(Z=[]);var Re=G-1,we=0,Ee=0;for(we=V;we>=0;){Z[we]=!0,Q[Q.length]=we,he.push(M[we]);var Se=Y[Math.floor(we*4/G)];if(Ee=we*4&Re,G<4+Ee)throw new Error("FAT boundary crossed: "+we+" 4 "+G);if(!M[Se])break;we=qf(M[Se],Ee)}return{nodes:Q,data:Fw([he])}}function R(M,V,Y,G){var Z=M.length,Q=[],he=[],Re=[],we=[],Ee=G-1,Se=0,Ie=0,tt=0,at=0;for(Se=0;Se<Z;++Se)if(Re=[],tt=Se+V,tt>=Z&&(tt-=Z),!he[tt]){we=[];var qe=[];for(Ie=tt;Ie>=0;){qe[Ie]=!0,he[Ie]=!0,Re[Re.length]=Ie,we.push(M[Ie]);var Je=Y[Math.floor(Ie*4/G)];if(at=Ie*4&Ee,G<4+at)throw new Error("FAT boundary crossed: "+Ie+" 4 "+G);if(!M[Je]||(Ie=qf(M[Je],at),qe[Ie]))break}Q[tt]={nodes:Re,data:Fw([we])}}return Q}function A(M,V,Y,G,Z,Q,he,Re){for(var we=0,Ee=G.length?2:0,Se=V[M].data,Ie=0,tt=0,at;Ie<Se.length;Ie+=128){var qe=Se.slice(Ie,Ie+128);Di(qe,64),tt=qe.read_shift(2),at=By(qe,0,tt-Ee),G.push(at);var Je={name:at,type:qe.read_shift(1),color:qe.read_shift(1),L:qe.read_shift(4,"i"),R:qe.read_shift(4,"i"),C:qe.read_shift(4,"i"),clsid:qe.read_shift(16),state:qe.read_shift(4,"i"),start:0,size:0},Ct=qe.read_shift(2)+qe.read_shift(2)+qe.read_shift(2)+qe.read_shift(2);Ct!==0&&(Je.ct=j(qe,qe.l-8));var Tt=qe.read_shift(2)+qe.read_shift(2)+qe.read_shift(2)+qe.read_shift(2);Tt!==0&&(Je.mt=j(qe,qe.l-8)),Je.start=qe.read_shift(4,"i"),Je.size=qe.read_shift(4,"i"),Je.size<0&&Je.start<0&&(Je.size=Je.type=0,Je.start=ne,Je.name=""),Je.type===5?(we=Je.start,Z>0&&we!==ne&&(V[we].name="!StreamData")):Je.size>=4096?(Je.storage="fat",V[Je.start]===void 0&&(V[Je.start]=C(Y,Je.start,V.fat_addrs,V.ssz)),V[Je.start].name=Je.name,Je.content=V[Je.start].data.slice(0,Je.size)):(Je.storage="minifat",Je.size<0?Je.size=0:we!==ne&&Je.start!==ne&&V[we]&&(Je.content=S(Je,V[we].data,(V[Re]||{}).data))),Je.content&&Di(Je.content,0),Q[at]=Je,he.push(Je)}}function j(M,V){return new Date((ki(M,V+4)/1e7*Math.pow(2,32)+ki(M,V)/1e7-11644473600)*1e3)}function O(M,V){return p(),x(d.readFileSync(M),V)}function B(M,V){var Y=V&&V.type;switch(Y||Nn&&Buffer.isBuffer(M)&&(Y="buffer"),Y||"base64"){case"file":return O(M,V);case"base64":return x(zl(wo(M)),V);case"binary":return x(zl(M),V)}return x(M,V)}function L(M,V){var Y=V||{},G=Y.root||"Root Entry";if(M.FullPaths||(M.FullPaths=[]),M.FileIndex||(M.FileIndex=[]),M.FullPaths.length!==M.FileIndex.length)throw new Error("inconsistent CFB structure");M.FullPaths.length===0&&(M.FullPaths[0]=G+"/",M.FileIndex[0]={name:G,type:5}),Y.CLSID&&(M.FileIndex[0].clsid=Y.CLSID),I(M)}function I(M){var V="Sh33tJ5";if(!In.find(M,"/"+V)){var Y=ke(4);Y[0]=55,Y[1]=Y[3]=50,Y[2]=54,M.FileIndex.push({name:V,type:2,content:Y,size:4,L:69,R:69,C:69}),M.FullPaths.push(M.FullPaths[0]+V),U(M)}}function U(M,V){L(M);for(var Y=!1,G=!1,Z=M.FullPaths.length-1;Z>=0;--Z){var Q=M.FileIndex[Z];switch(Q.type){case 0:G?Y=!0:(M.FileIndex.pop(),M.FullPaths.pop());break;case 1:case 2:case 5:G=!0,isNaN(Q.R*Q.L*Q.C)&&(Y=!0),Q.R>-1&&Q.L>-1&&Q.R==Q.L&&(Y=!0);break;default:Y=!0;break}}if(!(!Y&&!V)){var he=new Date(1987,1,19),Re=0,we=Object.create?Object.create(null):{},Ee=[];for(Z=0;Z<M.FullPaths.length;++Z)we[M.FullPaths[Z]]=!0,M.FileIndex[Z].type!==0&&Ee.push([M.FullPaths[Z],M.FileIndex[Z]]);for(Z=0;Z<Ee.length;++Z){var Se=r(Ee[Z][0]);G=we[Se],G||(Ee.push([Se,{name:i(Se).replace("/",""),type:1,clsid:ce,ct:he,mt:he,content:null}]),we[Se]=!0)}for(Ee.sort(function(at,qe){return n(at[0],qe[0])}),M.FullPaths=[],M.FileIndex=[],Z=0;Z<Ee.length;++Z)M.FullPaths[Z]=Ee[Z][0],M.FileIndex[Z]=Ee[Z][1];for(Z=0;Z<Ee.length;++Z){var Ie=M.FileIndex[Z],tt=M.FullPaths[Z];if(Ie.name=i(tt).replace("/",""),Ie.L=Ie.R=Ie.C=-(Ie.color=1),Ie.size=Ie.content?Ie.content.length:0,Ie.start=0,Ie.clsid=Ie.clsid||ce,Z===0)Ie.C=Ee.length>1?1:-1,Ie.size=0,Ie.type=5;else if(tt.slice(-1)=="/"){for(Re=Z+1;Re<Ee.length&&r(M.FullPaths[Re])!=tt;++Re);for(Ie.C=Re>=Ee.length?-1:Re,Re=Z+1;Re<Ee.length&&r(M.FullPaths[Re])!=r(tt);++Re);Ie.R=Re>=Ee.length?-1:Re,Ie.type=1}else r(M.FullPaths[Z+1]||"")==r(tt)&&(Ie.R=Z+1),Ie.type=2}}}function W(M,V){var Y=V||{};if(Y.fileType=="mad")return Ge(M,Y);switch(U(M),Y.fileType){case"zip":return Wr(M,Y)}var G=function(at){for(var qe=0,Je=0,Ct=0;Ct<at.FileIndex.length;++Ct){var Tt=at.FileIndex[Ct];if(Tt.content){var Ot=Tt.content.length;Ot>0&&(Ot<4096?qe+=Ot+63>>6:Je+=Ot+511>>9)}}for(var Sn=at.FullPaths.length+3>>2,rr=qe+7>>3,bn=qe+127>>7,Vr=rr+Je+Sn+bn,wa=Vr+127>>7,Bs=wa<=109?0:Math.ceil((wa-109)/127);Vr+wa+Bs+127>>7>wa;)Bs=++wa<=109?0:Math.ceil((wa-109)/127);var ua=[1,Bs,wa,bn,Sn,Je,qe,0];return at.FileIndex[0].size=qe<<6,ua[7]=(at.FileIndex[0].start=ua[0]+ua[1]+ua[2]+ua[3]+ua[4]+ua[5])+(ua[6]+7>>3),ua}(M),Z=ke(G[7]<<9),Q=0,he=0;{for(Q=0;Q<8;++Q)Z.write_shift(1,ye[Q]);for(Q=0;Q<8;++Q)Z.write_shift(2,0);for(Z.write_shift(2,62),Z.write_shift(2,3),Z.write_shift(2,65534),Z.write_shift(2,9),Z.write_shift(2,6),Q=0;Q<3;++Q)Z.write_shift(2,0);for(Z.write_shift(4,0),Z.write_shift(4,G[2]),Z.write_shift(4,G[0]+G[1]+G[2]+G[3]-1),Z.write_shift(4,0),Z.write_shift(4,4096),Z.write_shift(4,G[3]?G[0]+G[1]+G[2]-1:ne),Z.write_shift(4,G[3]),Z.write_shift(-4,G[1]?G[0]-1:ne),Z.write_shift(4,G[1]),Q=0;Q<109;++Q)Z.write_shift(-4,Q<G[2]?G[1]+Q:-1)}if(G[1])for(he=0;he<G[1];++he){for(;Q<236+he*127;++Q)Z.write_shift(-4,Q<G[2]?G[1]+Q:-1);Z.write_shift(-4,he===G[1]-1?ne:he+1)}var Re=function(at){for(he+=at;Q<he-1;++Q)Z.write_shift(-4,Q+1);at&&(++Q,Z.write_shift(-4,ne))};for(he=Q=0,he+=G[1];Q<he;++Q)Z.write_shift(-4,Te.DIFSECT);for(he+=G[2];Q<he;++Q)Z.write_shift(-4,Te.FATSECT);Re(G[3]),Re(G[4]);for(var we=0,Ee=0,Se=M.FileIndex[0];we<M.FileIndex.length;++we)Se=M.FileIndex[we],Se.content&&(Ee=Se.content.length,!(Ee<4096)&&(Se.start=he,Re(Ee+511>>9)));for(Re(G[6]+7>>3);Z.l&511;)Z.write_shift(-4,Te.ENDOFCHAIN);for(he=Q=0,we=0;we<M.FileIndex.length;++we)Se=M.FileIndex[we],Se.content&&(Ee=Se.content.length,!(!Ee||Ee>=4096)&&(Se.start=he,Re(Ee+63>>6)));for(;Z.l&511;)Z.write_shift(-4,Te.ENDOFCHAIN);for(Q=0;Q<G[4]<<2;++Q){var Ie=M.FullPaths[Q];if(!Ie||Ie.length===0){for(we=0;we<17;++we)Z.write_shift(4,0);for(we=0;we<3;++we)Z.write_shift(4,-1);for(we=0;we<12;++we)Z.write_shift(4,0);continue}Se=M.FileIndex[Q],Q===0&&(Se.start=Se.size?Se.start-1:ne);var tt=Q===0&&Y.root||Se.name;if(Ee=2*(tt.length+1),Z.write_shift(64,tt,"utf16le"),Z.write_shift(2,Ee),Z.write_shift(1,Se.type),Z.write_shift(1,Se.color),Z.write_shift(-4,Se.L),Z.write_shift(-4,Se.R),Z.write_shift(-4,Se.C),Se.clsid)Z.write_shift(16,Se.clsid,"hex");else for(we=0;we<4;++we)Z.write_shift(4,0);Z.write_shift(4,Se.state||0),Z.write_shift(4,0),Z.write_shift(4,0),Z.write_shift(4,0),Z.write_shift(4,0),Z.write_shift(4,Se.start),Z.write_shift(4,Se.size),Z.write_shift(4,0)}for(Q=1;Q<M.FileIndex.length;++Q)if(Se=M.FileIndex[Q],Se.size>=4096)if(Z.l=Se.start+1<<9,Nn&&Buffer.isBuffer(Se.content))Se.content.copy(Z,Z.l,0,Se.size),Z.l+=Se.size+511&-512;else{for(we=0;we<Se.size;++we)Z.write_shift(1,Se.content[we]);for(;we&511;++we)Z.write_shift(1,0)}for(Q=1;Q<M.FileIndex.length;++Q)if(Se=M.FileIndex[Q],Se.size>0&&Se.size<4096)if(Nn&&Buffer.isBuffer(Se.content))Se.content.copy(Z,Z.l,0,Se.size),Z.l+=Se.size+63&-64;else{for(we=0;we<Se.size;++we)Z.write_shift(1,Se.content[we]);for(;we&63;++we)Z.write_shift(1,0)}if(Nn)Z.l=Z.length;else for(;Z.l<Z.length;)Z.write_shift(1,0);return Z}function X(M,V){var Y=M.FullPaths.map(function(we){return we.toUpperCase()}),G=Y.map(function(we){var Ee=we.split("/");return Ee[Ee.length-(we.slice(-1)=="/"?2:1)]}),Z=!1;V.charCodeAt(0)===47?(Z=!0,V=Y[0].slice(0,-1)+V):Z=V.indexOf("/")!==-1;var Q=V.toUpperCase(),he=Z===!0?Y.indexOf(Q):G.indexOf(Q);if(he!==-1)return M.FileIndex[he];var Re=!Q.match(pg);for(Q=Q.replace(w1,""),Re&&(Q=Q.replace(pg,"!")),he=0;he<Y.length;++he)if((Re?Y[he].replace(pg,"!"):Y[he]).replace(w1,"")==Q||(Re?G[he].replace(pg,"!"):G[he]).replace(w1,"")==Q)return M.FileIndex[he];return null}var te=64,ne=-2,_e="d0cf11e0a1b11ae1",ye=[208,207,17,224,161,177,26,225],ce="00000000000000000000000000000000",Te={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:ne,FREESECT:-1,HEADER_SIGNATURE:_e,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:ce,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function Ne(M,V,Y){p();var G=W(M,Y);d.writeFileSync(V,G)}function $e(M){for(var V=new Array(M.length),Y=0;Y<M.length;++Y)V[Y]=String.fromCharCode(M[Y]);return V.join("")}function Pe(M,V){var Y=W(M,V);switch(V&&V.type||"buffer"){case"file":return p(),d.writeFileSync(V.filename,Y),Y;case"binary":return typeof Y=="string"?Y:$e(Y);case"base64":return k1(typeof Y=="string"?Y:$e(Y));case"buffer":if(Nn)return Buffer.isBuffer(Y)?Y:No(Y);case"array":return typeof Y=="string"?zl(Y):Y}return Y}var et;function J(M){try{var V=M.InflateRaw,Y=new V;if(Y._processChunk(new Uint8Array([3,0]),Y._finishFlushFlag),Y.bytesRead)et=M;else throw new Error("zlib does not expose bytesRead")}catch(G){console.error("cannot use native zlib: "+(G.message||G))}}function ie(M,V){if(!et)return tr(M,V);var Y=et.InflateRaw,G=new Y,Z=G._processChunk(M.slice(M.l),G._finishFlushFlag);return M.l+=G.bytesRead,Z}function ee(M){return et?et.deflateRawSync(M):Yn(M)}var K=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],xe=[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(M){var V=(M<<1|M<<11)&139536|(M<<5|M<<15)&558144;return(V>>16|V>>8|V)&255}for(var me=typeof Uint8Array<"u",oe=me?new Uint8Array(256):[],Be=0;Be<256;++Be)oe[Be]=Ce(Be);function Xe(M,V){var Y=oe[M&255];return V<=8?Y>>>8-V:(Y=Y<<8|oe[M>>8&255],V<=16?Y>>>16-V:(Y=Y<<8|oe[M>>16&255],Y>>>24-V))}function rt(M,V){var Y=V&7,G=V>>>3;return(M[G]|(Y<=6?0:M[G+1]<<8))>>>Y&3}function Qe(M,V){var Y=V&7,G=V>>>3;return(M[G]|(Y<=5?0:M[G+1]<<8))>>>Y&7}function ft(M,V){var Y=V&7,G=V>>>3;return(M[G]|(Y<=4?0:M[G+1]<<8))>>>Y&15}function xt(M,V){var Y=V&7,G=V>>>3;return(M[G]|(Y<=3?0:M[G+1]<<8))>>>Y&31}function We(M,V){var Y=V&7,G=V>>>3;return(M[G]|(Y<=1?0:M[G+1]<<8))>>>Y&127}function tn(M,V,Y){var G=V&7,Z=V>>>3,Q=(1<<Y)-1,he=M[Z]>>>G;return Y<8-G||(he|=M[Z+1]<<8-G,Y<16-G)||(he|=M[Z+2]<<16-G,Y<24-G)||(he|=M[Z+3]<<24-G),he&Q}function gn(M,V,Y){var G=V&7,Z=V>>>3;return G<=5?M[Z]|=(Y&7)<<G:(M[Z]|=Y<<G&255,M[Z+1]=(Y&7)>>8-G),V+3}function Jt(M,V,Y){var G=V&7,Z=V>>>3;return Y=(Y&1)<<G,M[Z]|=Y,V+1}function Bt(M,V,Y){var G=V&7,Z=V>>>3;return Y<<=G,M[Z]|=Y&255,Y>>>=8,M[Z+1]=Y,V+8}function An(M,V,Y){var G=V&7,Z=V>>>3;return Y<<=G,M[Z]|=Y&255,Y>>>=8,M[Z+1]=Y&255,M[Z+2]=Y>>>8,V+16}function Rn(M,V){var Y=M.length,G=2*Y>V?2*Y:V+5,Z=0;if(Y>=V)return M;if(Nn){var Q=yw(G);if(M.copy)M.copy(Q);else for(;Z<M.length;++Z)Q[Z]=M[Z];return Q}else if(me){var he=new Uint8Array(G);if(he.set)he.set(M);else for(;Z<Y;++Z)he[Z]=M[Z];return he}return M.length=G,M}function $t(M){for(var V=new Array(M),Y=0;Y<M;++Y)V[Y]=0;return V}function cn(M,V,Y){var G=1,Z=0,Q=0,he=0,Re=0,we=M.length,Ee=me?new Uint16Array(32):$t(32);for(Q=0;Q<32;++Q)Ee[Q]=0;for(Q=we;Q<Y;++Q)M[Q]=0;we=M.length;var Se=me?new Uint16Array(we):$t(we);for(Q=0;Q<we;++Q)Ee[Z=M[Q]]++,G<Z&&(G=Z),Se[Q]=0;for(Ee[0]=0,Q=1;Q<=G;++Q)Ee[Q+16]=Re=Re+Ee[Q-1]<<1;for(Q=0;Q<we;++Q)Re=M[Q],Re!=0&&(Se[Q]=Ee[Re+16]++);var Ie=0;for(Q=0;Q<we;++Q)if(Ie=M[Q],Ie!=0)for(Re=Xe(Se[Q],G)>>G-Ie,he=(1<<G+4-Ie)-1;he>=0;--he)V[Re|he<<Ie]=Ie&15|Q<<4;return G}var yt=me?new Uint16Array(512):$t(512),dn=me?new Uint16Array(32):$t(32);if(!me){for(var nn=0;nn<512;++nn)yt[nn]=0;for(nn=0;nn<32;++nn)dn[nn]=0}(function(){for(var M=[],V=0;V<32;V++)M.push(5);cn(M,dn,32);var Y=[];for(V=0;V<=143;V++)Y.push(8);for(;V<=255;V++)Y.push(9);for(;V<=279;V++)Y.push(7);for(;V<=287;V++)Y.push(8);cn(Y,yt,288)})();var Lr=function(){for(var V=me?new Uint8Array(32768):[],Y=0,G=0;Y<Fe.length-1;++Y)for(;G<Fe[Y+1];++G)V[G]=Y;for(;G<32768;++G)V[G]=29;var Z=me?new Uint8Array(259):[];for(Y=0,G=0;Y<xe.length-1;++Y)for(;G<xe[Y+1];++G)Z[G]=Y;function Q(Re,we){for(var Ee=0;Ee<Re.length;){var Se=Math.min(65535,Re.length-Ee),Ie=Ee+Se==Re.length;for(we.write_shift(1,+Ie),we.write_shift(2,Se),we.write_shift(2,~Se&65535);Se-- >0;)we[we.l++]=Re[Ee++]}return we.l}function he(Re,we){for(var Ee=0,Se=0,Ie=me?new Uint16Array(32768):[];Se<Re.length;){var tt=Math.min(65535,Re.length-Se);if(tt<10){for(Ee=gn(we,Ee,+(Se+tt==Re.length)),Ee&7&&(Ee+=8-(Ee&7)),we.l=Ee/8|0,we.write_shift(2,tt),we.write_shift(2,~tt&65535);tt-- >0;)we[we.l++]=Re[Se++];Ee=we.l*8;continue}Ee=gn(we,Ee,+(Se+tt==Re.length)+2);for(var at=0;tt-- >0;){var qe=Re[Se];at=(at<<5^qe)&32767;var Je=-1,Ct=0;if((Je=Ie[at])&&(Je|=Se&-32768,Je>Se&&(Je-=32768),Je<Se))for(;Re[Je+Ct]==Re[Se+Ct]&&Ct<250;)++Ct;if(Ct>2){qe=Z[Ct],qe<=22?Ee=Bt(we,Ee,oe[qe+1]>>1)-1:(Bt(we,Ee,3),Ee+=5,Bt(we,Ee,oe[qe-23]>>5),Ee+=3);var Tt=qe<8?0:qe-4>>2;Tt>0&&(An(we,Ee,Ct-xe[qe]),Ee+=Tt),qe=V[Se-Je],Ee=Bt(we,Ee,oe[qe]>>3),Ee-=3;var Ot=qe<4?0:qe-2>>1;Ot>0&&(An(we,Ee,Se-Je-Fe[qe]),Ee+=Ot);for(var Sn=0;Sn<Ct;++Sn)Ie[at]=Se&32767,at=(at<<5^Re[Se])&32767,++Se;tt-=Ct-1}else qe<=143?qe=qe+48:Ee=Jt(we,Ee,1),Ee=Bt(we,Ee,oe[qe]),Ie[at]=Se&32767,++Se}Ee=Bt(we,Ee,0)-1}return we.l=(Ee+7)/8|0,we.l}return function(we,Ee){return we.length<8?Q(we,Ee):he(we,Ee)}}();function Yn(M){var V=ke(50+Math.floor(M.length*1.1)),Y=Lr(M,V);return V.slice(0,Y)}var Er=me?new Uint16Array(32768):$t(32768),Sr=me?new Uint16Array(32768):$t(32768),er=me?new Uint16Array(128):$t(128),En=1,br=1;function Pn(M,V){var Y=xt(M,V)+257;V+=5;var G=xt(M,V)+1;V+=5;var Z=ft(M,V)+4;V+=4;for(var Q=0,he=me?new Uint8Array(19):$t(19),Re=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],we=1,Ee=me?new Uint8Array(8):$t(8),Se=me?new Uint8Array(8):$t(8),Ie=he.length,tt=0;tt<Z;++tt)he[K[tt]]=Q=Qe(M,V),we<Q&&(we=Q),Ee[Q]++,V+=3;var at=0;for(Ee[0]=0,tt=1;tt<=we;++tt)Se[tt]=at=at+Ee[tt-1]<<1;for(tt=0;tt<Ie;++tt)(at=he[tt])!=0&&(Re[tt]=Se[at]++);var qe=0;for(tt=0;tt<Ie;++tt)if(qe=he[tt],qe!=0){at=oe[Re[tt]]>>8-qe;for(var Je=(1<<7-qe)-1;Je>=0;--Je)er[at|Je<<qe]=qe&7|tt<<3}var Ct=[];for(we=1;Ct.length<Y+G;)switch(at=er[We(M,V)],V+=at&7,at>>>=3){case 16:for(Q=3+rt(M,V),V+=2,at=Ct[Ct.length-1];Q-- >0;)Ct.push(at);break;case 17:for(Q=3+Qe(M,V),V+=3;Q-- >0;)Ct.push(0);break;case 18:for(Q=11+We(M,V),V+=7;Q-- >0;)Ct.push(0);break;default:Ct.push(at),we<at&&(we=at);break}var Tt=Ct.slice(0,Y),Ot=Ct.slice(Y);for(tt=Y;tt<286;++tt)Tt[tt]=0;for(tt=G;tt<30;++tt)Ot[tt]=0;return En=cn(Tt,Er,286),br=cn(Ot,Sr,30),V}function ut(M,V){if(M[0]==3&&!(M[1]&3))return[nu(V),2];for(var Y=0,G=0,Z=yw(V||1<<18),Q=0,he=Z.length>>>0,Re=0,we=0;!(G&1);){if(G=Qe(M,Y),Y+=3,G>>>1)G>>1==1?(Re=9,we=5):(Y=Pn(M,Y),Re=En,we=br);else{Y&7&&(Y+=8-(Y&7));var Ee=M[Y>>>3]|M[(Y>>>3)+1]<<8;if(Y+=32,Ee>0)for(!V&&he<Q+Ee&&(Z=Rn(Z,Q+Ee),he=Z.length);Ee-- >0;)Z[Q++]=M[Y>>>3],Y+=8;continue}for(;;){!V&&he<Q+32767&&(Z=Rn(Z,Q+32767),he=Z.length);var Se=tn(M,Y,Re),Ie=G>>>1==1?yt[Se]:Er[Se];if(Y+=Ie&15,Ie>>>=4,!(Ie>>>8&255))Z[Q++]=Ie;else{if(Ie==256)break;Ie-=257;var tt=Ie<8?0:Ie-4>>2;tt>5&&(tt=0);var at=Q+xe[Ie];tt>0&&(at+=tn(M,Y,tt),Y+=tt),Se=tn(M,Y,we),Ie=G>>>1==1?dn[Se]:Sr[Se],Y+=Ie&15,Ie>>>=4;var qe=Ie<4?0:Ie-2>>1,Je=Fe[Ie];for(qe>0&&(Je+=tn(M,Y,qe),Y+=qe),!V&&he<at&&(Z=Rn(Z,at+100),he=Z.length);Q<at;)Z[Q]=Z[Q-Je],++Q}}}return V?[Z,Y+7>>>3]:[Z.slice(0,Q),Y+7>>>3]}function tr(M,V){var Y=M.slice(M.l||0),G=ut(Y,V);return M.l+=G[1],G[0]}function _a(M,V){if(M)typeof console<"u"&&console.error(V);else throw new Error(V)}function Ga(M,V){var Y=M;Di(Y,0);var G=[],Z=[],Q={FileIndex:G,FullPaths:Z};L(Q,{root:V.root});for(var he=Y.length-4;(Y[he]!=80||Y[he+1]!=75||Y[he+2]!=5||Y[he+3]!=6)&&he>=0;)--he;Y.l=he+4,Y.l+=4;var Re=Y.read_shift(2);Y.l+=6;var we=Y.read_shift(4);for(Y.l=we,he=0;he<Re;++he){Y.l+=20;var Ee=Y.read_shift(4),Se=Y.read_shift(4),Ie=Y.read_shift(2),tt=Y.read_shift(2),at=Y.read_shift(2);Y.l+=8;var qe=Y.read_shift(4),Je=u(Y.slice(Y.l+Ie,Y.l+Ie+tt));Y.l+=Ie+tt+at;var Ct=Y.l;Y.l=qe+4,ca(Y,Ee,Se,Q,Je),Y.l=Ct}return Q}function ca(M,V,Y,G,Z){M.l+=2;var Q=M.read_shift(2),he=M.read_shift(2),Re=o(M);if(Q&8257)throw new Error("Unsupported ZIP encryption");for(var we=M.read_shift(4),Ee=M.read_shift(4),Se=M.read_shift(4),Ie=M.read_shift(2),tt=M.read_shift(2),at="",qe=0;qe<Ie;++qe)at+=String.fromCharCode(M[M.l++]);if(tt){var Je=u(M.slice(M.l,M.l+tt));(Je[21589]||{}).mt&&(Re=Je[21589].mt),((Z||{})[21589]||{}).mt&&(Re=Z[21589].mt)}M.l+=tt;var Ct=M.slice(M.l,M.l+Ee);switch(he){case 8:Ct=ie(M,Se);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+he)}var Tt=!1;Q&8&&(we=M.read_shift(4),we==134695760&&(we=M.read_shift(4),Tt=!0),Ee=M.read_shift(4),Se=M.read_shift(4)),Ee!=V&&_a(Tt,"Bad compressed size: "+V+" != "+Ee),Se!=Y&&_a(Tt,"Bad uncompressed size: "+Y+" != "+Se),vt(G,at,Ct,{unsafe:!0,mt:Re})}function Wr(M,V){var Y=V||{},G=[],Z=[],Q=ke(1),he=Y.compression?8:0,Re=0,we=0,Ee=0,Se=0,Ie=0,tt=M.FullPaths[0],at=tt,qe=M.FileIndex[0],Je=[],Ct=0;for(we=1;we<M.FullPaths.length;++we)if(at=M.FullPaths[we].slice(tt.length),qe=M.FileIndex[we],!(!qe.size||!qe.content||at=="Sh33tJ5")){var Tt=Se,Ot=ke(at.length);for(Ee=0;Ee<at.length;++Ee)Ot.write_shift(1,at.charCodeAt(Ee)&127);Ot=Ot.slice(0,Ot.l),Je[Ie]=hR.buf(qe.content,0);var Sn=qe.content;he==8&&(Sn=ee(Sn)),Q=ke(30),Q.write_shift(4,67324752),Q.write_shift(2,20),Q.write_shift(2,Re),Q.write_shift(2,he),qe.mt?s(Q,qe.mt):Q.write_shift(4,0),Q.write_shift(-4,Je[Ie]),Q.write_shift(4,Sn.length),Q.write_shift(4,qe.content.length),Q.write_shift(2,Ot.length),Q.write_shift(2,0),Se+=Q.length,G.push(Q),Se+=Ot.length,G.push(Ot),Se+=Sn.length,G.push(Sn),Q=ke(46),Q.write_shift(4,33639248),Q.write_shift(2,0),Q.write_shift(2,20),Q.write_shift(2,Re),Q.write_shift(2,he),Q.write_shift(4,0),Q.write_shift(-4,Je[Ie]),Q.write_shift(4,Sn.length),Q.write_shift(4,qe.content.length),Q.write_shift(2,Ot.length),Q.write_shift(2,0),Q.write_shift(2,0),Q.write_shift(2,0),Q.write_shift(2,0),Q.write_shift(4,0),Q.write_shift(4,Tt),Ct+=Q.l,Z.push(Q),Ct+=Ot.length,Z.push(Ot),++Ie}return Q=ke(22),Q.write_shift(4,101010256),Q.write_shift(2,0),Q.write_shift(2,0),Q.write_shift(2,Ie),Q.write_shift(2,Ie),Q.write_shift(4,Ct),Q.write_shift(4,Se),Q.write_shift(2,0),ra([ra(G),ra(Z),Q])}var nr={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 Mr(M,V){if(M.ctype)return M.ctype;var Y=M.name||"",G=Y.match(/\.([^\.]+)$/);return G&&nr[G[1]]||V&&(G=(Y=V).match(/[\.\\]([^\.\\])+$/),G&&nr[G[1]])?nr[G[1]]:"application/octet-stream"}function fa(M){for(var V=k1(M),Y=[],G=0;G<V.length;G+=76)Y.push(V.slice(G,G+76));return Y.join(`\r
-`)+`\r
-`}function Ui(M){var V=M.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Ee){var Se=Ee.charCodeAt(0).toString(16).toUpperCase();return"="+(Se.length==1?"0"+Se:Se)});V=V.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),V.charAt(0)==`
-`&&(V="=0D"+V.slice(1)),V=V.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
-=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var Y=[],G=V.split(`\r
-`),Z=0;Z<G.length;++Z){var Q=G[Z];if(Q.length==0){Y.push("");continue}for(var he=0;he<Q.length;){var Re=76,we=Q.slice(he,he+Re);we.charAt(Re-1)=="="?Re--:we.charAt(Re-2)=="="?Re-=2:we.charAt(Re-3)=="="&&(Re-=3),we=Q.slice(he,he+Re),he+=Re,he<Q.length&&(we+="="),Y.push(we)}}return Y.join(`\r
-`)}function le(M){for(var V=[],Y=0;Y<M.length;++Y){for(var G=M[Y];Y<=M.length&&G.charAt(G.length-1)=="=";)G=G.slice(0,G.length-1)+M[++Y];V.push(G)}for(var Z=0;Z<V.length;++Z)V[Z]=V[Z].replace(/[=][0-9A-Fa-f]{2}/g,function(Q){return String.fromCharCode(parseInt(Q.slice(1),16))});return zl(V.join(`\r
-`))}function ve(M,V,Y){for(var G="",Z="",Q="",he,Re=0;Re<10;++Re){var we=V[Re];if(!we||we.match(/^\s*$/))break;var Ee=we.match(/^(.*?):\s*([^\s].*)$/);if(Ee)switch(Ee[1].toLowerCase()){case"content-location":G=Ee[2].trim();break;case"content-type":Q=Ee[2].trim();break;case"content-transfer-encoding":Z=Ee[2].trim();break}}switch(++Re,Z.toLowerCase()){case"base64":he=zl(wo(V.slice(Re).join("")));break;case"quoted-printable":he=le(V.slice(Re));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+Z)}var Se=vt(M,G.slice(Y.length),he,{unsafe:!0});Q&&(Se.ctype=Q)}function De(M,V){if($e(M.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var Y=V&&V.root||"",G=(Nn&&Buffer.isBuffer(M)?M.toString("binary"):$e(M)).split(`\r
-`),Z=0,Q="";for(Z=0;Z<G.length;++Z)if(Q=G[Z],!!/^Content-Location:/i.test(Q)&&(Q=Q.slice(Q.indexOf("file")),Y||(Y=Q.slice(0,Q.lastIndexOf("/")+1)),Q.slice(0,Y.length)!=Y))for(;Y.length>0&&(Y=Y.slice(0,Y.length-1),Y=Y.slice(0,Y.lastIndexOf("/")+1),Q.slice(0,Y.length)!=Y););var he=(G[1]||"").match(/boundary="(.*?)"/);if(!he)throw new Error("MAD cannot find boundary");var Re="--"+(he[1]||""),we=[],Ee=[],Se={FileIndex:we,FullPaths:Ee};L(Se);var Ie,tt=0;for(Z=0;Z<G.length;++Z){var at=G[Z];at!==Re&&at!==Re+"--"||(tt++&&ve(Se,G.slice(Ie,Z),Y),Ie=Z)}return Se}function Ge(M,V){var Y=V||{},G=Y.boundary||"SheetJS";G="------="+G;for(var Z=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+G.slice(2)+'"',"","",""],Q=M.FullPaths[0],he=Q,Re=M.FileIndex[0],we=1;we<M.FullPaths.length;++we)if(he=M.FullPaths[we].slice(Q.length),Re=M.FileIndex[we],!(!Re.size||!Re.content||he=="Sh33tJ5")){he=he.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Ct){return"_x"+Ct.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Ct){return"_u"+Ct.charCodeAt(0).toString(16)+"_"});for(var Ee=Re.content,Se=Nn&&Buffer.isBuffer(Ee)?Ee.toString("binary"):$e(Ee),Ie=0,tt=Math.min(1024,Se.length),at=0,qe=0;qe<=tt;++qe)(at=Se.charCodeAt(qe))>=32&&at<128&&++Ie;var Je=Ie>=tt*4/5;Z.push(G),Z.push("Content-Location: "+(Y.root||"file:///C:/SheetJS/")+he),Z.push("Content-Transfer-Encoding: "+(Je?"quoted-printable":"base64")),Z.push("Content-Type: "+Mr(Re,he)),Z.push(""),Z.push(Je?Ui(Se):fa(Se))}return Z.push(G+`--\r
-`),Z.join(`\r
-`)}function st(M){var V={};return L(V,M),V}function vt(M,V,Y,G){var Z=G&&G.unsafe;Z||L(M);var Q=!Z&&In.find(M,V);if(!Q){var he=M.FullPaths[0];V.slice(0,he.length)==he?he=V:(he.slice(-1)!="/"&&(he+="/"),he=(he+V).replace("//","/")),Q={name:i(V),type:2},M.FileIndex.push(Q),M.FullPaths.push(he),Z||In.utils.cfb_gc(M)}return Q.content=Y,Q.size=Y?Y.length:0,G&&(G.CLSID&&(Q.clsid=G.CLSID),G.mt&&(Q.mt=G.mt),G.ct&&(Q.ct=G.ct)),Q}function Nt(M,V){L(M);var Y=In.find(M,V);if(Y){for(var G=0;G<M.FileIndex.length;++G)if(M.FileIndex[G]==Y)return M.FileIndex.splice(G,1),M.FullPaths.splice(G,1),!0}return!1}function ht(M,V,Y){L(M);var G=In.find(M,V);if(G){for(var Z=0;Z<M.FileIndex.length;++Z)if(M.FileIndex[Z]==G)return M.FileIndex[Z].name=i(Y),M.FullPaths[Z]=Y,!0}return!1}function pt(M){U(M,!0)}return t.find=X,t.read=B,t.parse=x,t.write=Pe,t.writeFile=Ne,t.utils={cfb_new:st,cfb_add:vt,cfb_del:Nt,cfb_mov:ht,cfb_gc:pt,ReadShift:S1,CheckField:a4,prep_blob:Di,bconcat:ra,use_zlib:J,_deflateRaw:Yn,_inflateRaw:tr,consts:Te},t}();function mR(e){return typeof e=="string"?yx(e):Array.isArray(e)?IA(e):e}function tm(e,t,n){if(typeof Deno<"u"){if(n&&typeof t=="string")switch(n){case"utf8":t=new TextEncoder(n).encode(t);break;case"binary":t=yx(t);break;default:throw new Error("Unsupported encoding "+n)}return Deno.writeFileSync(e,t)}var r=n=="utf8"?L1(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(r,e);if(typeof Blob<"u"){var i=new Blob([mR(r)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if(typeof saveAs<"u")return saveAs(i,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var s=URL.createObjectURL(i);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 o=document.createElement("a");if(o.download!=null)return o.download=e,o.href=s,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(s)},6e4),s}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var u=File(e);return u.open("w"),u.encoding="binary",Array.isArray(t)&&(t=em(t)),u.write(t),u.close(),t}catch(d){if(!d.message||!d.message.match(/onstruct/))throw d}throw new Error("cannot save file "+e)}function sa(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;++r)Object.prototype.hasOwnProperty.call(e,t[r])&&n.push(t[r]);return n}function Cw(e,t){for(var n=[],r=sa(e),i=0;i!==r.length;++i)n[e[r[i]][t]]==null&&(n[e[r[i]][t]]=r[i]);return n}function ky(e){for(var t=[],n=sa(e),r=0;r!==n.length;++r)t[e[n[r]]]=n[r];return t}function Ex(e){for(var t=[],n=sa(e),r=0;r!==n.length;++r)t[e[n[r]]]=parseInt(n[r],10);return t}function pR(e){for(var t=[],n=sa(e),r=0;r!==n.length;++r)t[e[n[r]]]==null&&(t[e[n[r]]]=[]),t[e[n[r]]].push(n[r]);return t}var Wg=new Date(1899,11,30,0,0,0);function oi(e,t){var n=e.getTime(),r=Wg.getTime()+(e.getTimezoneOffset()-Wg.getTimezoneOffset())*6e4;return(n-r)/(24*60*60*1e3)}var Y3=new Date,gR=Wg.getTime()+(Y3.getTimezoneOffset()-Wg.getTimezoneOffset())*6e4,Aw=Y3.getTimezoneOffset();function H3(e){var t=new Date;return t.setTime(e*24*60*60*1e3+gR),t.getTimezoneOffset()!==Aw&&t.setTime(t.getTime()+(t.getTimezoneOffset()-Aw)*6e4),t}var Rw=new Date("2017-02-19T19:06:09.000Z"),$3=isNaN(Rw.getFullYear())?new Date("2/19/17"):Rw,xR=$3.getFullYear()==2017;function za(e,t){var n=new Date(e);if(xR)return t>0?n.setTime(n.getTime()+n.getTimezoneOffset()*60*1e3):t<0&&n.setTime(n.getTime()-n.getTimezoneOffset()*60*1e3),n;if(e instanceof Date)return e;if($3.getFullYear()==1917&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(""+r)>-1||n.setFullYear(n.getFullYear()+100),n}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],s=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(s=new Date(s.getTime()-s.getTimezoneOffset()*60*1e3)),s}function Sx(e,t){if(Nn&&Buffer.isBuffer(e))return e.toString("binary");if(typeof TextDecoder<"u")try{var n={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(s){return n[s]||s})}catch{}for(var r=[],i=0;i!=e.length;++i)r.push(String.fromCharCode(e[i]));return r.join("")}function ci(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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=ci(e[n]));return t}function pr(e,t){for(var n="";n.length<t;)n+=e;return n}function go(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var n=1,r=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return n*=100,""});return!isNaN(t=Number(r))||(r=r.replace(/[(](.*)[)]/,function(i,s){return n=-n,s}),!isNaN(t=Number(r)))?t/n:t}var vR=["january","february","march","april","may","june","july","august","september","october","november","december"];function F1(e){var t=new Date(e),n=new Date(NaN),r=t.getYear(),i=t.getMonth(),s=t.getDate();if(isNaN(s))return n;var o=e.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),o.length>3&&vR.indexOf(o)==-1)return n}else if(o.match(/[a-z]/))return n;return r<0||r>8099?n:(i>0||s>1)&&r!=101?t:e.match(/[^-0-9:,\/\\]/)?n:t}function Qt(e,t,n){if(e.FullPaths){if(typeof n=="string"){var r;return Nn?r=No(n):r=YA(n),In.utils.cfb_add(e,t,r)}In.utils.cfb_add(e,t,n)}else e.file(t,n)}function Fy(){return In.utils.cfb_new()}var Rr=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
-`,yR={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},Ly=ky(yR),My=/[&<>'"]/g,_R=/[\u0000-\u0008\u000b-\u001f]/g;function Mn(e){var t=e+"";return t.replace(My,function(n){return Ly[n]}).replace(_R,function(n){return"_x"+("000"+n.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Ow(e){return Mn(e).replace(/ /g,"_x0020_")}var z3=/[\u0000-\u001f]/g;function wR(e){var t=e+"";return t.replace(My,function(n){return Ly[n]}).replace(/\n/g,"<br/>").replace(z3,function(n){return"&#x"+("000"+n.charCodeAt(0).toString(16)).slice(-4)+";"})}function ER(e){var t=e+"";return t.replace(My,function(n){return Ly[n]}).replace(z3,function(n){return"&#x"+n.charCodeAt(0).toString(16).toUpperCase()+";"})}function SR(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function bR(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function u2(e){for(var t="",n=0,r=0,i=0,s=0,o=0,u=0;n<e.length;){if(r=e.charCodeAt(n++),r<128){t+=String.fromCharCode(r);continue}if(i=e.charCodeAt(n++),r>191&&r<224){o=(r&31)<<6,o|=i&63,t+=String.fromCharCode(o);continue}if(s=e.charCodeAt(n++),r<240){t+=String.fromCharCode((r&15)<<12|(i&63)<<6|s&63);continue}o=e.charCodeAt(n++),u=((r&7)<<18|(i&63)<<12|(s&63)<<6|o&63)-65536,t+=String.fromCharCode(55296+(u>>>10&1023)),t+=String.fromCharCode(56320+(u&1023))}return t}function Dw(e){var t=nu(2*e.length),n,r,i=1,s=0,o=0,u;for(r=0;r<e.length;r+=i)i=1,(u=e.charCodeAt(r))<128?n=u:u<224?(n=(u&31)*64+(e.charCodeAt(r+1)&63),i=2):u<240?(n=(u&15)*4096+(e.charCodeAt(r+1)&63)*64+(e.charCodeAt(r+2)&63),i=3):(i=4,n=(u&7)*262144+(e.charCodeAt(r+1)&63)*4096+(e.charCodeAt(r+2)&63)*64+(e.charCodeAt(r+3)&63),n-=65536,o=55296+(n>>>10&1023),n=56320+(n&1023)),o!==0&&(t[s++]=o&255,t[s++]=o>>>8,o=0),t[s++]=n%256,t[s++]=n>>>8;return t.slice(0,s).toString("ucs2")}function jw(e){return No(e,"binary").toString("utf8")}var xg="foo bar baz☃🍣",E1=Nn&&(jw(xg)==u2(xg)&&jw||Dw(xg)==u2(xg)&&Dw)||u2,L1=Nn?function(e){return No(e,"utf8").toString("binary")}:function(e){for(var t=[],n=0,r=0,i=0;n<e.length;)switch(r=e.charCodeAt(n++),!0){case r<128:t.push(String.fromCharCode(r));break;case r<2048:t.push(String.fromCharCode(192+(r>>6))),t.push(String.fromCharCode(128+(r&63)));break;case(r>=55296&&r<57344):r-=55296,i=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(i&63)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(r&63)))}return t.join("")},TR=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(n){for(var r=n.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,""),i=0;i<e.length;++i)r=r.replace(e[i][0],e[i][1]);return r}}(),G3=/(^\s|\s$|\n)/;function aa(e,t){return"<"+e+(t.match(G3)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function M1(e){return sa(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function nt(e,t,n){return"<"+e+(n!=null?M1(n):"")+(t!=null?(t.match(G3)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function L2(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(n){if(t)throw n}return""}function NR(e,t){switch(typeof e){case"string":var n=nt("vt:lpwstr",Mn(e));return n=n.replace(/&quot;/g,"_x0022_"),n;case"number":return nt((e|0)==e?"vt:i4":"vt:r8",Mn(String(e)));case"boolean":return nt("vt:bool",e?"true":"false")}if(e instanceof Date)return nt("vt:filetime",L2(e));throw new Error("Unable to serialize "+e)}var Hr={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"},rd=["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"],ji={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 CR(e,t){for(var n=1-2*(e[t+7]>>>7),r=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),i=e[t+6]&15,s=5;s>=0;--s)i=i*256+e[t+s];return r==2047?i==0?n*(1/0):NaN:(r==0?r=-1022:(r-=1023,i+=Math.pow(2,52)),n*Math.pow(2,r-52)*i)}function AR(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,i=0,s=0,o=r?-t:t;isFinite(o)?o==0?i=s=0:(i=Math.floor(Math.log(o)/Math.LN2),s=o*Math.pow(2,52-i),i<=-1023&&(!isFinite(s)||s<Math.pow(2,52))?i=-1022:(s-=Math.pow(2,52),i+=1023)):(i=2047,s=isNaN(t)?26985:0);for(var u=0;u<=5;++u,s/=256)e[n+u]=s&255;e[n+6]=(i&15)<<4|s&15,e[n+7]=i>>4|r}var kw=function(e){for(var t=[],n=10240,r=0;r<e[0].length;++r)if(e[0][r])for(var i=0,s=e[0][r].length;i<s;i+=n)t.push.apply(t,e[0][r].slice(i,i+n));return t},Fw=Nn?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:No(t)})):kw(e)}:kw,Lw=function(e,t,n){for(var r=[],i=t;i<n;i+=2)r.push(String.fromCharCode(g1(e,i)));return r.join("").replace(w1,"")},By=Nn?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf16le",t,n).replace(w1,""):Lw(e,t,n)}:Lw,Mw=function(e,t,n){for(var r=[],i=t;i<t+n;++i)r.push(("0"+e[i].toString(16)).slice(-2));return r.join("")},W3=Nn?function(e,t,n){return Buffer.isBuffer(e)?e.toString("hex",t,t+n):Mw(e,t,n)}:Mw,Bw=function(e,t,n){for(var r=[],i=t;i<n;i++)r.push(String.fromCharCode(I0(e,i)));return r.join("")},nm=Nn?function(t,n,r){return Buffer.isBuffer(t)?t.toString("utf8",n,r):Bw(t,n,r)}:Bw,V3=function(e,t){var n=ki(e,t);return n>0?nm(e,t+4,t+4+n-1):""},X3=V3,q3=function(e,t){var n=ki(e,t);return n>0?nm(e,t+4,t+4+n-1):""},K3=q3,Z3=function(e,t){var n=2*ki(e,t);return n>0?nm(e,t+4,t+4+n-1):""},Q3=Z3,J3=function(t,n){var r=ki(t,n);return r>0?By(t,n+4,n+4+r):""},e4=J3,t4=function(e,t){var n=ki(e,t);return n>0?nm(e,t+4,t+4+n):""},n4=t4,r4=function(e,t){return CR(e,t)},Vg=r4,Py=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};Nn&&(X3=function(t,n){if(!Buffer.isBuffer(t))return V3(t,n);var r=t.readUInt32LE(n);return r>0?t.toString("utf8",n+4,n+4+r-1):""},K3=function(t,n){if(!Buffer.isBuffer(t))return q3(t,n);var r=t.readUInt32LE(n);return r>0?t.toString("utf8",n+4,n+4+r-1):""},Q3=function(t,n){if(!Buffer.isBuffer(t))return Z3(t,n);var r=2*t.readUInt32LE(n);return t.toString("utf16le",n+4,n+4+r-1)},e4=function(t,n){if(!Buffer.isBuffer(t))return J3(t,n);var r=t.readUInt32LE(n);return t.toString("utf16le",n+4,n+4+r)},n4=function(t,n){if(!Buffer.isBuffer(t))return t4(t,n);var r=t.readUInt32LE(n);return t.toString("utf8",n+4,n+4+r)},Vg=function(t,n){return Buffer.isBuffer(t)?t.readDoubleLE(n):r4(t,n)},Py=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var I0=function(e,t){return e[t]},g1=function(e,t){return e[t+1]*256+e[t]},RR=function(e,t){var n=e[t+1]*256+e[t];return n<32768?n:(65535-n+1)*-1},ki=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},qf=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},OR=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function S1(e,t){var n="",r,i,s=[],o,u,d,p;switch(t){case"dbcs":if(p=this.l,Nn&&Buffer.isBuffer(this))n=this.slice(this.l,this.l+2*e).toString("utf16le");else for(d=0;d<e;++d)n+=String.fromCharCode(g1(this,p)),p+=2;e*=2;break;case"utf8":n=nm(this,this.l,this.l+e);break;case"utf16le":e*=2,n=By(this,this.l,this.l+e);break;case"wstr":return S1.call(this,e,"dbcs");case"lpstr-ansi":n=X3(this,this.l),e=4+ki(this,this.l);break;case"lpstr-cp":n=K3(this,this.l),e=4+ki(this,this.l);break;case"lpwstr":n=Q3(this,this.l),e=4+2*ki(this,this.l);break;case"lpp4":e=4+ki(this,this.l),n=e4(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+ki(this,this.l),n=n4(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,n="";(o=I0(this,this.l+e++))!==0;)s.push(mg(o));n=s.join("");break;case"_wstr":for(e=0,n="";(o=g1(this,this.l+e))!==0;)s.push(mg(o)),e+=2;e+=2,n=s.join("");break;case"dbcs-cont":for(n="",p=this.l,d=0;d<e;++d){if(this.lens&&this.lens.indexOf(p)!==-1)return o=I0(this,p),this.l=p+1,u=S1.call(this,e-d,o?"dbcs-cont":"sbcs-cont"),s.join("")+u;s.push(mg(g1(this,p))),p+=2}n=s.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(n="",p=this.l,d=0;d!=e;++d){if(this.lens&&this.lens.indexOf(p)!==-1)return o=I0(this,p),this.l=p+1,u=S1.call(this,e-d,o?"dbcs-cont":"sbcs-cont"),s.join("")+u;s.push(mg(I0(this,p))),p+=1}n=s.join("");break;default:switch(e){case 1:return r=I0(this,this.l),this.l++,r;case 2:return r=(t==="i"?RR:g1)(this,this.l),this.l+=2,r;case 4:case-4:return t==="i"||!(this[this.l+3]&128)?(r=(e>0?qf:OR)(this,this.l),this.l+=4,r):(i=ki(this,this.l),this.l+=4,i);case 8:case-8:if(t==="f")return e==8?i=Vg(this,this.l):i=Vg([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,i;e=8;case 16:n=W3(this,this.l,e);break}}return this.l+=e,n}var DR=function(e,t,n){e[n]=t&255,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255},jR=function(e,t,n){e[n]=t&255,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255},kR=function(e,t,n){e[n]=t&255,e[n+1]=t>>>8&255};function FR(e,t,n){var r=0,i=0;if(n==="dbcs"){for(i=0;i!=t.length;++i)kR(this,t.charCodeAt(i),this.l+2*i);r=2*t.length}else if(n==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=t.charCodeAt(i)&255;r=t.length}else if(n==="hex"){for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this}else if(n==="utf16le"){var s=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var o=t.charCodeAt(i);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<s;)this[this.l++]=0;return this}else switch(e){case 1:r=1,this[this.l]=t&255;break;case 2:r=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 3:r=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:r=4,DR(this,t,this.l);break;case 8:if(r=8,n==="f"){AR(this,t,this.l);break}case 16:break;case-4:r=4,jR(this,t,this.l);break}return this.l+=r,this}function a4(e,t){var n=W3(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function Di(e,t){e.l=t,e.read_shift=S1,e.chk=a4,e.write_shift=FR}function ks(e,t){e.l+=t}function ke(e){var t=nu(e);return Di(t,0),t}function li(){var e=[],t=Nn?256:2048,n=function(p){var x=ke(p);return Di(x,0),x},r=n(t),i=function(){r&&(r.length>r.l&&(r=r.slice(0,r.l),r.l=r.length),r.length>0&&e.push(r),r=null)},s=function(p){return r&&p<r.length-r.l?r:(i(),r=n(Math.max(p+1,t)))},o=function(){return i(),ra(e)},u=function(p){i(),r=p,r.l==null&&(r.l=r.length),s(t)};return{next:s,push:u,end:o,_bufs:e}}function ze(e,t,n,r){var i=+t,s;if(!isNaN(i)){r||(r=Ck[i].p||(n||[]).length||0),s=1+(i>=128?1:0)+1,r>=128&&++s,r>=16384&&++s,r>=2097152&&++s;var o=e.next(s);i<=127?o.write_shift(1,i):(o.write_shift(1,(i&127)+128),o.write_shift(1,i>>7));for(var u=0;u!=4;++u)if(r>=128)o.write_shift(1,(r&127)+128),r>>=7;else{o.write_shift(1,r);break}r>0&&Py(n)&&e.push(n)}}function b1(e,t,n){var r=ci(e);if(t.s?(r.cRel&&(r.c+=t.s.c),r.rRel&&(r.r+=t.s.r)):(r.cRel&&(r.c+=t.c),r.rRel&&(r.r+=t.r)),!n||n.biff<12){for(;r.c>=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function Pw(e,t,n){var r=ci(e);return r.s=b1(r.s,t.s,n),r.e=b1(r.e,t.s,n),r}function T1(e,t){if(e.cRel&&e.c<0)for(e=ci(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=ci(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var n=Bn(e);return!e.cRel&&e.cRel!=null&&(n=BR(n)),!e.rRel&&e.rRel!=null&&(n=LR(n)),n}function d2(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?"":"$")+va(e.s.c)+":"+(e.e.cRel?"":"$")+va(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+ia(e.s.r)+":"+(e.e.rRel?"":"$")+ia(e.e.r):T1(e.s,t.biff)+":"+T1(e.e,t.biff)}function Uy(e){return parseInt(MR(e),10)-1}function ia(e){return""+(e+1)}function LR(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function MR(e){return e.replace(/\$(\d+)$/,"$1")}function Iy(e){for(var t=PR(e),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}function va(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 BR(e){return e.replace(/^([A-Z])/,"$$$1")}function PR(e){return e.replace(/^\$([A-Z])/,"$1")}function UR(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function $r(e){for(var t=0,n=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);i>=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(n=26*n+(i-64))}return{c:n-1,r:t-1}}function Bn(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function Mi(e){var t=e.indexOf(":");return t==-1?{s:$r(e),e:$r(e)}:{s:$r(e.slice(0,t)),e:$r(e.slice(t+1))}}function Cr(e,t){return typeof t>"u"||typeof t=="number"?Cr(e.s,e.e):(typeof e!="string"&&(e=Bn(e)),typeof t!="string"&&(t=Bn(t)),e==t?e:e+":"+t)}function Jn(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,i=0,s=e.length;for(n=0;r<s&&!((i=e.charCodeAt(r)-64)<1||i>26);++r)n=26*n+i;for(t.s.c=--n,n=0;r<s&&!((i=e.charCodeAt(r)-48)<0||i>9);++r)n=10*n+i;if(t.s.r=--n,r===s||i!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=s&&!((i=e.charCodeAt(r)-64)<1||i>26);++r)n=26*n+i;for(t.e.c=--n,n=0;r!=s&&!((i=e.charCodeAt(r)-48)<0||i>9);++r)n=10*n+i;return t.e.r=--n,t}function Uw(e,t){var n=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=kc(e.z,n?oi(t):t)}catch{}try{return e.w=kc((e.XF||{}).numFmtId||(n?14:0),n?oi(t):t)}catch{return""+t}}function Eo(e,t,n){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),e.t=="e"?rm[e.v]||e.v:t==null?Uw(e,e.v):Uw(e,t))}function ou(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function i4(e,t,n){var r=n||{},i=e?Array.isArray(e):r.dense,s=e||(i?[]:{}),o=0,u=0;if(s&&r.origin!=null){if(typeof r.origin=="number")o=r.origin;else{var d=typeof r.origin=="string"?$r(r.origin):r.origin;o=d.r,u=d.c}s["!ref"]||(s["!ref"]="A1:A1")}var p={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(s["!ref"]){var x=Jn(s["!ref"]);p.s.c=x.s.c,p.s.r=x.s.r,p.e.c=Math.max(p.e.c,x.e.c),p.e.r=Math.max(p.e.r,x.e.r),o==-1&&(p.e.r=o=x.e.r+1)}for(var y=0;y!=t.length;++y)if(t[y]){if(!Array.isArray(t[y]))throw new Error("aoa_to_sheet expects an array of arrays");for(var v=0;v!=t[y].length;++v)if(!(typeof t[y][v]>"u")){var w={v:t[y][v]},b=o+y,S=u+v;if(p.s.r>b&&(p.s.r=b),p.s.c>S&&(p.s.c=S),p.e.r<b&&(p.e.r=b),p.e.c<S&&(p.e.c=S),t[y][v]&&typeof t[y][v]=="object"&&!Array.isArray(t[y][v])&&!(t[y][v]instanceof Date))w=t[y][v];else if(Array.isArray(w.v)&&(w.f=t[y][v][1],w.v=w.v[0]),w.v===null)if(w.f)w.t="n";else if(r.nullError)w.t="e",w.v=0;else if(r.sheetStubs)w.t="z";else continue;else typeof w.v=="number"?w.t="n":typeof w.v=="boolean"?w.t="b":w.v instanceof Date?(w.z=r.dateNF||gr[14],r.cellDates?(w.t="d",w.w=kc(w.z,oi(w.v))):(w.t="n",w.v=oi(w.v),w.w=kc(w.z,w.v))):w.t="s";if(i)s[b]||(s[b]=[]),s[b][S]&&s[b][S].z&&(w.z=s[b][S].z),s[b][S]=w;else{var T=Bn({c:S,r:b});s[T]&&s[T].z&&(w.z=s[T].z),s[T]=w}}}return p.s.c<1e7&&(s["!ref"]=Cr(p)),s}function ad(e,t){return i4(null,e,t)}function IR(e){return e.read_shift(4,"i")}function Wl(e,t){return t||(t=ke(4)),t.write_shift(4,e),t}function ya(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function zr(e,t){var n=!1;return t==null&&(n=!0,t=ke(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}function YR(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function HR(e,t){return t||(t=ke(4)),t.write_shift(2,0),t.write_shift(2,0),t}function Yy(e,t){var n=e.l,r=e.read_shift(1),i=ya(e),s=[],o={t:i,h:i};if(r&1){for(var u=e.read_shift(4),d=0;d!=u;++d)s.push(YR(e));o.r=s}else o.r=[{ich:0,ifnt:0}];return e.l=n+t,o}function $R(e,t){var n=!1;return t==null&&(n=!0,t=ke(15+4*e.t.length)),t.write_shift(1,0),zr(e.t,t),n?t.slice(0,t.l):t}var zR=Yy;function GR(e,t){var n=!1;return t==null&&(n=!0,t=ke(23+4*e.t.length)),t.write_shift(1,1),zr(e.t,t),t.write_shift(4,1),HR({ich:0,ifnt:0},t),n?t.slice(0,t.l):t}function ml(e){var t=e.read_shift(4),n=e.read_shift(2);return n+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:n}}function cu(e,t){return t==null&&(t=ke(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function fu(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function uu(e,t){return t==null&&(t=ke(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var WR=ya,l4=zr;function Hy(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function Xg(e,t){var n=!1;return t==null&&(n=!0,t=ke(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}var VR=ya,M2=Hy,$y=Xg;function s4(e){var t=e.slice(e.l,e.l+4),n=t[0]&1,r=t[0]&2;e.l+=4;var i=r===0?Vg([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):qf(t,0)>>2;return n?i/100:i}function o4(e,t){t==null&&(t=ke(4));var n=0,r=0,i=e*100;if(e==(e|0)&&e>=-536870912&&e<1<<29?r=1:i==(i|0)&&i>=-536870912&&i<1<<29&&(r=1,n=1),r)t.write_shift(-4,((n?i:e)<<2)+(n+2));else throw new Error("unsupported RkNumber "+e)}function c4(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 XR(e,t){return t||(t=ke(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 du=c4,id=XR;function ld(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function ru(e,t){return(t||ke(8)).write_shift(8,e,"f")}function qR(e){var t={},n=e.read_shift(1),r=n>>>1,i=e.read_shift(1),s=e.read_shift(2,"i"),o=e.read_shift(1),u=e.read_shift(1),d=e.read_shift(1);switch(e.l++,r){case 0:t.auto=1;break;case 1:t.index=i;var p=a7[i];p&&(t.rgb=Kw(p));break;case 2:t.rgb=Kw([o,u,d]);break;case 3:t.theme=i;break}return s!=0&&(t.tint=s>0?s/32767:s/32768),t}function qg(e,t){if(t||(t=ke(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 n=e.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),t.write_shift(2,n),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var r=e.rgb||"FFFFFF";typeof r=="number"&&(r=("000000"+r.toString(16)).slice(-6)),t.write_shift(1,parseInt(r.slice(0,2),16)),t.write_shift(1,parseInt(r.slice(2,4),16)),t.write_shift(1,parseInt(r.slice(4,6),16)),t.write_shift(1,255)}return t}function KR(e){var t=e.read_shift(1);e.l++;var n={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 n}function ZR(e,t){t||(t=ke(2));var n=(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,n),t.write_shift(1,0),t}var f4=2,Ri=3,vg=11,Kg=19,yg=64,QR=65,JR=71,e7=4108,t7=4126,na=80,Iw={1:{n:"CodePage",t:f4},2:{n:"Category",t:na},3:{n:"PresentationFormat",t:na},4:{n:"ByteCount",t:Ri},5:{n:"LineCount",t:Ri},6:{n:"ParagraphCount",t:Ri},7:{n:"SlideCount",t:Ri},8:{n:"NoteCount",t:Ri},9:{n:"HiddenCount",t:Ri},10:{n:"MultimediaClipCount",t:Ri},11:{n:"ScaleCrop",t:vg},12:{n:"HeadingPairs",t:e7},13:{n:"TitlesOfParts",t:t7},14:{n:"Manager",t:na},15:{n:"Company",t:na},16:{n:"LinksUpToDate",t:vg},17:{n:"CharacterCount",t:Ri},19:{n:"SharedDoc",t:vg},22:{n:"HyperlinksChanged",t:vg},23:{n:"AppVersion",t:Ri,p:"version"},24:{n:"DigSig",t:QR},26:{n:"ContentType",t:na},27:{n:"ContentStatus",t:na},28:{n:"Language",t:na},29:{n:"Version",t:na},255:{},2147483648:{n:"Locale",t:Kg},2147483651:{n:"Behavior",t:Kg},1919054434:{}},Yw={1:{n:"CodePage",t:f4},2:{n:"Title",t:na},3:{n:"Subject",t:na},4:{n:"Author",t:na},5:{n:"Keywords",t:na},6:{n:"Comments",t:na},7:{n:"Template",t:na},8:{n:"LastAuthor",t:na},9:{n:"RevNumber",t:na},10:{n:"EditTime",t:yg},11:{n:"LastPrinted",t:yg},12:{n:"CreatedDate",t:yg},13:{n:"ModifiedDate",t:yg},14:{n:"PageCount",t:Ri},15:{n:"WordCount",t:Ri},16:{n:"CharCount",t:Ri},17:{n:"Thumbnail",t:JR},18:{n:"Application",t:na},19:{n:"DocSecurity",t:Ri},255:{},2147483648:{n:"Locale",t:Kg},2147483651:{n:"Behavior",t:Kg},1919054434:{}};function n7(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var r7=n7([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]),a7=ci(r7),rm={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},i7={"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"},_g={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 u4(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function d4(e,t){var n=pR(i7),r=[],i;r[r.length]=Rr,r[r.length]=nt("Types",null,{xmlns:Hr.CT,"xmlns:xsd":Hr.xsd,"xmlns:xsi":Hr.xsi}),r=r.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(d){return nt("Default",null,{Extension:d[0],ContentType:d[1]})}));var s=function(d){e[d]&&e[d].length>0&&(i=e[d][0],r[r.length]=nt("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:_g[d][t.bookType]||_g[d].xlsx}))},o=function(d){(e[d]||[]).forEach(function(p){r[r.length]=nt("Override",null,{PartName:(p[0]=="/"?"":"/")+p,ContentType:_g[d][t.bookType]||_g[d].xlsx})})},u=function(d){(e[d]||[]).forEach(function(p){r[r.length]=nt("Override",null,{PartName:(p[0]=="/"?"":"/")+p,ContentType:n[d][0]})})};return s("workbooks"),o("sheets"),o("charts"),u("themes"),["strs","styles"].forEach(s),["coreprops","extprops","custprops"].forEach(u),u("vba"),u("comments"),u("threadedcomments"),u("drawings"),o("metadata"),u("people"),r.length>2&&(r[r.length]="</Types>",r[1]=r[1].replace("/>",">")),r.join("")}var wn={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 h4(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function z0(e){var t=[Rr,nt("Relationships",null,{xmlns:Hr.RELS})];return sa(e["!id"]).forEach(function(n){t[t.length]=nt("Relationship",null,e["!id"][n])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function Ln(e,t,n,r,i,s){if(i||(i={}),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,i.Id="rId"+t,i.Type=r,i.Target=n,[wn.HLINK,wn.XPATH,wn.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,t}function l7(e){var t=[Rr];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 n=0;n<e.length;++n)t.push('  <manifest:file-entry manifest:full-path="'+e[n][0]+'" manifest:media-type="'+e[n][1]+`"/>
-`);return t.push("</manifest:manifest>"),t.join("")}function Hw(e,t,n){return['  <rdf:Description rdf:about="'+e+`">
-`,'    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(n||"odf")+"#"+t+`"/>
-`,`  </rdf:Description>
-`].join("")}function s7(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 o7(e){var t=[Rr];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
-`);for(var n=0;n!=e.length;++n)t.push(Hw(e[n][0],e[n][1])),t.push(s7("",e[n][0]));return t.push(Hw("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function m4(){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 '+Hg.version+"</meta:generator></office:meta></office:document-meta>"}var eu=[["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 h2(e,t,n,r,i){i[e]!=null||t==null||t===""||(i[e]=t,t=Mn(t),r[r.length]=n?nt(e,t,n):aa(e,t))}function p4(e,t){var n=t||{},r=[Rr,nt("cp:coreProperties",null,{"xmlns:cp":Hr.CORE_PROPS,"xmlns:dc":Hr.dc,"xmlns:dcterms":Hr.dcterms,"xmlns:dcmitype":Hr.dcmitype,"xmlns:xsi":Hr.xsi})],i={};if(!e&&!n.Props)return r.join("");e&&(e.CreatedDate!=null&&h2("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:L2(e.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,i),e.ModifiedDate!=null&&h2("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:L2(e.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,i));for(var s=0;s!=eu.length;++s){var o=eu[s],u=n.Props&&n.Props[o[1]]!=null?n.Props[o[1]]:e?e[o[1]]:null;u===!0?u="1":u===!1?u="0":typeof u=="number"&&(u=String(u)),u!=null&&h2(o[0],u,null,r,i)}return r.length>2&&(r[r.length]="</cp:coreProperties>",r[1]=r[1].replace("/>",">")),r.join("")}var G0=[["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"]],g4=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function x4(e){var t=[],n=nt;return e||(e={}),e.Application="SheetJS",t[t.length]=Rr,t[t.length]=nt("Properties",null,{xmlns:Hr.EXT_PROPS,"xmlns:vt":Hr.vt}),G0.forEach(function(r){if(e[r[1]]!==void 0){var i;switch(r[2]){case"string":i=Mn(String(e[r[1]]));break;case"bool":i=e[r[1]]?"true":"false";break}i!==void 0&&(t[t.length]=n(r[0],i))}}),t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map(function(r){return"<vt:lpstr>"+Mn(r)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function v4(e){var t=[Rr,nt("Properties",null,{xmlns:Hr.CUST_PROPS,"xmlns:vt":Hr.vt})];if(!e)return t.join("");var n=1;return sa(e).forEach(function(i){++n,t[t.length]=nt("property",NR(e[i]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:Mn(i)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var $w={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 c7(e,t){var n=[];return sa($w).map(function(r){for(var i=0;i<eu.length;++i)if(eu[i][1]==r)return eu[i];for(i=0;i<G0.length;++i)if(G0[i][1]==r)return G0[i];throw r}).forEach(function(r){if(e[r[1]]!=null){var i=t&&t.Props&&t.Props[r[1]]!=null?t.Props[r[1]]:e[r[1]];switch(r[2]){case"date":i=new Date(i).toISOString().replace(/\.\d*Z/,"Z");break}typeof i=="number"?i=String(i):i===!0||i===!1?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),n.push(aa($w[r[1]]||r[1],i))}}),nt("DocumentProperties",n.join(""),{xmlns:ji.o})}function f7(e,t){var n=["Worksheets","SheetNames"],r="CustomDocumentProperties",i=[];return e&&sa(e).forEach(function(s){if(Object.prototype.hasOwnProperty.call(e,s)){for(var o=0;o<eu.length;++o)if(s==eu[o][1])return;for(o=0;o<G0.length;++o)if(s==G0[o][1])return;for(o=0;o<n.length;++o)if(s==n[o])return;var u=e[s],d="string";typeof u=="number"?(d="float",u=String(u)):u===!0||u===!1?(d="boolean",u=u?"1":"0"):u=String(u),i.push(nt(Ow(s),u,{"dt:dt":d}))}}),t&&sa(t).forEach(function(s){if(Object.prototype.hasOwnProperty.call(t,s)&&!(e&&Object.prototype.hasOwnProperty.call(e,s))){var o=t[s],u="string";typeof o=="number"?(u="float",o=String(o)):o===!0||o===!1?(u="boolean",o=o?"1":"0"):o instanceof Date?(u="dateTime.tz",o=o.toISOString()):o=String(o),i.push(nt(Ow(s),o,{"dt:dt":u}))}}),"<"+r+' xmlns="'+ji.o+'">'+i.join("")+"</"+r+">"}function u7(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,n=t.getTime()/1e3+11644473600,r=n%Math.pow(2,32),i=(n-r)/Math.pow(2,32);r*=1e7,i*=1e7;var s=r/Math.pow(2,32)|0;s>0&&(r=r%Math.pow(2,32),i+=s);var o=ke(8);return o.write_shift(4,r),o.write_shift(4,i),o}function zw(e,t){var n=ke(4),r=ke(4);switch(n.write_shift(4,e==80?31:e),e){case 3:r.write_shift(-4,t);break;case 5:r=ke(8),r.write_shift(8,t,"f");break;case 11:r.write_shift(4,t?1:0);break;case 64:r=u7(t);break;case 31:case 80:for(r=ke(4+2*(t.length+1)+(t.length%2?0:2)),r.write_shift(4,t.length+1),r.write_shift(0,t,"dbcs");r.l!=r.length;)r.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return ra([n,r])}var y4=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function d7(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 Gw(e,t,n){var r=ke(8),i=[],s=[],o=8,u=0,d=ke(8),p=ke(8);if(d.write_shift(4,2),d.write_shift(4,1200),p.write_shift(4,1),s.push(d),i.push(p),o+=8+d.length,!t){p=ke(8),p.write_shift(4,0),i.unshift(p);var x=[ke(4)];for(x[0].write_shift(4,e.length),u=0;u<e.length;++u){var y=e[u][0];for(d=ke(8+2*(y.length+1)+(y.length%2?0:2)),d.write_shift(4,u+2),d.write_shift(4,y.length+1),d.write_shift(0,y,"dbcs");d.l!=d.length;)d.write_shift(1,0);x.push(d)}d=ra(x),s.unshift(d),o+=8+d.length}for(u=0;u<e.length;++u)if(!(t&&!t[e[u][0]])&&!(y4.indexOf(e[u][0])>-1||g4.indexOf(e[u][0])>-1)&&e[u][1]!=null){var v=e[u][1],w=0;if(t){w=+t[e[u][0]];var b=n[w];if(b.p=="version"&&typeof v=="string"){var S=v.split(".");v=(+S[0]<<16)+(+S[1]||0)}d=zw(b.t,v)}else{var T=d7(v);T==-1&&(T=31,v=String(v)),d=zw(T,v)}s.push(d),p=ke(8),p.write_shift(4,t?w:2+u),i.push(p),o+=8+d.length}var C=8*(s.length+1);for(u=0;u<s.length;++u)i[u].write_shift(4,C),C+=s[u].length;return r.write_shift(4,o),r.write_shift(4,s.length),ra([r].concat(i).concat(s))}function Ww(e,t,n,r,i,s){var o=ke(i?68:48),u=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,In.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,i?2:1),o.write_shift(16,t,"hex"),o.write_shift(4,i?68:48);var d=Gw(e,n,r);if(u.push(d),i){var p=Gw(i,null,null);o.write_shift(16,s,"hex"),o.write_shift(4,68+d.length),u.push(p)}return ra(u)}function h7(e,t){t||(t=ke(e));for(var n=0;n<e;++n)t.write_shift(1,0);return t}function m7(e,t){return e.read_shift(t)===1}function Ya(e,t){return t||(t=ke(2)),t.write_shift(2,+!!e),t}function _4(e){return e.read_shift(2,"u")}function sl(e,t){return t||(t=ke(2)),t.write_shift(2,e),t}function w4(e,t,n){return n||(n=ke(2)),n.write_shift(1,t=="e"?+e:+!!e),n.write_shift(1,t=="e"?1:0),n}function E4(e,t,n){var r=e.read_shift(n&&n.biff>=12?2:1),i="sbcs-cont";if(n&&n.biff>=8,!n||n.biff==8){var s=e.read_shift(1);s&&(i="dbcs-cont")}else n.biff==12&&(i="wstr");n.biff>=2&&n.biff<=5&&(i="cpstr");var o=r?e.read_shift(r,i):"";return o}function p7(e){var t=e.t||"",n=ke(3);n.write_shift(2,t.length),n.write_shift(1,1);var r=ke(2*t.length);r.write_shift(2*t.length,t,"utf16le");var i=[n,r];return ra(i)}function g7(e,t,n){var r;if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}var i=e.read_shift(1);return i===0?r=e.read_shift(t,"sbcs-cont"):r=e.read_shift(t,"dbcs-cont"),r}function x7(e,t,n){var r=e.read_shift(n&&n.biff==2?1:2);return r===0?(e.l++,""):g7(e,r,n)}function v7(e,t,n){if(n.biff>5)return x7(e,t,n);var r=e.read_shift(1);return r===0?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function S4(e,t,n){return n||(n=ke(3+2*e.length)),n.write_shift(2,e.length),n.write_shift(1,1),n.write_shift(31,e,"utf16le"),n}function Vw(e,t){t||(t=ke(6+e.length*2)),t.write_shift(4,1+e.length);for(var n=0;n<e.length;++n)t.write_shift(2,e.charCodeAt(n));return t.write_shift(2,0),t}function y7(e){var t=ke(512),n=0,r=e.Target;r.slice(0,7)=="file://"&&(r=r.slice(7));var i=r.indexOf("#"),s=i>-1?31:23;switch(r.charAt(0)){case"#":s=28;break;case".":s&=-3;break}t.write_shift(4,2),t.write_shift(4,s);var o=[8,6815827,6619237,4849780,83];for(n=0;n<o.length;++n)t.write_shift(4,o[n]);if(s==28)r=r.slice(1),Vw(r,t);else if(s&2){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<o.length;++n)t.write_shift(1,parseInt(o[n],16));var u=i>-1?r.slice(0,i):r;for(t.write_shift(4,2*(u.length+1)),n=0;n<u.length;++n)t.write_shift(2,u.charCodeAt(n));t.write_shift(2,0),s&8&&Vw(i>-1?r.slice(i+1):"",t)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),n=0;n<o.length;++n)t.write_shift(1,parseInt(o[n],16));for(var d=0;r.slice(d*3,d*3+3)=="../"||r.slice(d*3,d*3+3)=="..\\";)++d;for(t.write_shift(2,d),t.write_shift(4,r.length-3*d+1),n=0;n<r.length-3*d;++n)t.write_shift(1,r.charCodeAt(n+3*d)&255);for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),n=0;n<6;++n)t.write_shift(4,0)}return t.slice(0,t.l)}function au(e,t,n,r){return r||(r=ke(6)),r.write_shift(2,e),r.write_shift(2,t),r.write_shift(2,n||0),r}function _7(e,t,n){var r=n.biff>8?4:2,i=e.read_shift(r),s=e.read_shift(r,"i"),o=e.read_shift(r,"i");return[i,s,o]}function w7(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2),i=e.read_shift(2);return{s:{c:r,r:t},e:{c:i,r:n}}}function b4(e,t){return t||(t=ke(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 zy(e,t,n){var r=1536,i=16;switch(n.bookType){case"biff8":break;case"biff5":r=1280,i=8;break;case"biff4":r=4,i=6;break;case"biff3":r=3,i=6;break;case"biff2":r=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var s=ke(i);return s.write_shift(2,r),s.write_shift(2,t),i>4&&s.write_shift(2,29282),i>6&&s.write_shift(2,1997),i>8&&(s.write_shift(2,49161),s.write_shift(2,1),s.write_shift(2,1798),s.write_shift(2,0)),s}function E7(e,t){var n=!t||t.biff==8,r=ke(n?112:54);for(r.write_shift(t.biff==8?2:1,7),n&&r.write_shift(1,0),r.write_shift(4,859007059),r.write_shift(4,5458548|(n?0:536870912));r.l<r.length;)r.write_shift(1,n?0:32);return r}function S7(e,t){var n=!t||t.biff>=8?2:1,r=ke(8+n*e.name.length);r.write_shift(4,e.pos),r.write_shift(1,e.hs||0),r.write_shift(1,e.dt),r.write_shift(1,e.name.length),t.biff>=8&&r.write_shift(1,1),r.write_shift(n*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var i=r.slice(0,r.l);return i.l=r.l,i}function b7(e,t){var n=ke(8);n.write_shift(4,e.Count),n.write_shift(4,e.Unique);for(var r=[],i=0;i<e.length;++i)r[i]=p7(e[i]);var s=ra([n].concat(r));return s.parts=[n.length].concat(r.map(function(o){return o.length})),s}function T7(){var e=ke(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 N7(e){var t=ke(18),n=1718;return e&&e.RTL&&(n|=64),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function C7(e,t){var n=e.name||"Arial",r=t.biff==5,i=r?15+n.length:16+2*n.length,s=ke(i);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,n.length),r||s.write_shift(1,1),s.write_shift((r?1:2)*n.length,n,r?"sbcs":"utf16le"),s}function A7(e,t,n,r){var i=ke(10);return au(e,t,r,i),i.write_shift(4,n),i}function R7(e,t,n,r,i){var s=!i||i.biff==8,o=ke(8+ +s+(1+s)*n.length);return au(e,t,r,o),o.write_shift(2,n.length),s&&o.write_shift(1,1),o.write_shift((1+s)*n.length,n,s?"utf16le":"sbcs"),o}function O7(e,t,n,r){var i=n.biff==5;r||(r=ke(i?3+t.length:5+2*t.length)),r.write_shift(2,e),r.write_shift(i?1:2,t.length),i||r.write_shift(1,1),r.write_shift((i?1:2)*t.length,t,i?"sbcs":"utf16le");var s=r.length>r.l?r.slice(0,r.l):r;return s.l==null&&(s.l=s.length),s}function D7(e,t){var n=t.biff==8||!t.biff?4:2,r=ke(2*n+6);return r.write_shift(n,e.s.r),r.write_shift(n,e.e.r+1),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c+1),r.write_shift(2,0),r}function Xw(e,t,n,r){var i=n.biff==5;r||(r=ke(i?16:20)),r.write_shift(2,0),e.style?(r.write_shift(2,e.numFmtId||0),r.write_shift(2,65524)):(r.write_shift(2,e.numFmtId||0),r.write_shift(2,t<<4));var s=0;return e.numFmtId>0&&i&&(s|=1024),r.write_shift(4,s),r.write_shift(4,0),i||r.write_shift(4,0),r.write_shift(2,0),r}function j7(e){var t=ke(8);return t.write_shift(4,0),t.write_shift(2,0),t.write_shift(2,0),t}function k7(e,t,n,r,i,s){var o=ke(8);return au(e,t,r,o),w4(n,s,o),o}function F7(e,t,n,r){var i=ke(14);return au(e,t,r,i),ru(n,i),i}function L7(e,t,n){if(n.biff<8)return M7(e,t,n);for(var r=[],i=e.l+t,s=e.read_shift(n.biff>8?4:2);s--!==0;)r.push(_7(e,n.biff>8?12:6,n));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return r}function M7(e,t,n){e[e.l+1]==3&&e[e.l]++;var r=E4(e,t,n);return r.charCodeAt(0)==3?r.slice(1):r}function B7(e){var t=ke(2+e.length*8);t.write_shift(2,e.length);for(var n=0;n<e.length;++n)b4(e[n],t);return t}function P7(e){var t=ke(24),n=$r(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var r="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)t.write_shift(1,parseInt(r[i],16));return ra([t,y7(e[1])])}function U7(e){var t=e[1].Tooltip,n=ke(10+2*(t.length+1));n.write_shift(2,2048);var r=$r(e[0]);n.write_shift(2,r.r),n.write_shift(2,r.r),n.write_shift(2,r.c),n.write_shift(2,r.c);for(var i=0;i<t.length;++i)n.write_shift(2,t.charCodeAt(i));return n.write_shift(2,0),n}function I7(e){return e||(e=ke(4)),e.write_shift(2,1),e.write_shift(2,1),e}function Y7(e,t,n){if(!n.cellStyles)return ks(e,t);var r=n&&n.biff>=12?4:2,i=e.read_shift(r),s=e.read_shift(r),o=e.read_shift(r),u=e.read_shift(r),d=e.read_shift(2);r==2&&(e.l+=2);var p={s:i,e:s,w:o,ixfe:u,flags:d};return(n.biff>=5||!n.biff)&&(p.level=d>>8&7),p}function H7(e,t){var n=ke(12);n.write_shift(2,t),n.write_shift(2,t),n.write_shift(2,e.width*256),n.write_shift(2,0);var r=0;return e.hidden&&(r|=1),n.write_shift(1,r),r=e.level||0,n.write_shift(1,r),n.write_shift(2,0),n}function $7(e){for(var t=ke(2*e),n=0;n<e;++n)t.write_shift(2,n+1);return t}function z7(e,t,n){var r=ke(15);return im(r,e,t),r.write_shift(8,n,"f"),r}function G7(e,t,n){var r=ke(9);return im(r,e,t),r.write_shift(2,n),r}var W7=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=ky({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 n(u,d){var p=[],x=nu(1);switch(d.type){case"base64":x=zl(wo(u));break;case"binary":x=zl(u);break;case"buffer":case"array":x=u;break}Di(x,0);var y=x.read_shift(1),v=!!(y&136),w=!1,b=!1;switch(y){case 2:break;case 3:break;case 48:w=!0,v=!0;break;case 49:w=!0,v=!0;break;case 131:break;case 139:break;case 140:b=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+y.toString(16))}var S=0,T=521;y==2&&(S=x.read_shift(2)),x.l+=3,y!=2&&(S=x.read_shift(4)),S>1048576&&(S=1e6),y!=2&&(T=x.read_shift(2));var C=x.read_shift(2),R=d.codepage||1252;y!=2&&(x.l+=16,x.read_shift(1),x[x.l]!==0&&(R=e[x[x.l]]),x.l+=1,x.l+=2),b&&(x.l+=36);for(var A=[],j={},O=Math.min(x.length,y==2?521:T-10-(w?264:0)),B=b?32:11;x.l<O&&x[x.l]!=13;)switch(j={},j.name=vw.utils.decode(R,x.slice(x.l,x.l+B)).replace(/[\u0000\r\n].*$/g,""),x.l+=B,j.type=String.fromCharCode(x.read_shift(1)),y!=2&&!b&&(j.offset=x.read_shift(4)),j.len=x.read_shift(1),y==2&&(j.offset=x.read_shift(2)),j.dec=x.read_shift(1),j.name.length&&A.push(j),y!=2&&(x.l+=b?13:14),j.type){case"B":(!w||j.len!=8)&&d.WTF&&console.log("Skipping "+j.name+":"+j.type);break;case"G":case"P":d.WTF&&console.log("Skipping "+j.name+":"+j.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: "+j.type)}if(x[x.l]!==13&&(x.l=T-1),x.read_shift(1)!==13)throw new Error("DBF Terminator not found "+x.l+" "+x[x.l]);x.l=T;var L=0,I=0;for(p[0]=[],I=0;I!=A.length;++I)p[0][I]=A[I].name;for(;S-- >0;){if(x[x.l]===42){x.l+=C;continue}for(++x.l,p[++L]=[],I=0,I=0;I!=A.length;++I){var U=x.slice(x.l,x.l+A[I].len);x.l+=A[I].len,Di(U,0);var W=vw.utils.decode(R,U);switch(A[I].type){case"C":W.trim().length&&(p[L][I]=W.replace(/\s+$/,""));break;case"D":W.length===8?p[L][I]=new Date(+W.slice(0,4),+W.slice(4,6)-1,+W.slice(6,8)):p[L][I]=W;break;case"F":p[L][I]=parseFloat(W.trim());break;case"+":case"I":p[L][I]=b?U.read_shift(-4,"i")^2147483648:U.read_shift(4,"i");break;case"L":switch(W.trim().toUpperCase()){case"Y":case"T":p[L][I]=!0;break;case"N":case"F":p[L][I]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+W+"|")}break;case"M":if(!v)throw new Error("DBF Unexpected MEMO for type "+y.toString(16));p[L][I]="##MEMO##"+(b?parseInt(W.trim(),10):U.read_shift(4));break;case"N":W=W.replace(/\u0000/g,"").trim(),W&&W!="."&&(p[L][I]=+W||0);break;case"@":p[L][I]=new Date(U.read_shift(-8,"f")-621356832e5);break;case"T":p[L][I]=new Date((U.read_shift(4)-2440588)*864e5+U.read_shift(4));break;case"Y":p[L][I]=U.read_shift(4,"i")/1e4+U.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":p[L][I]=-U.read_shift(-8,"f");break;case"B":if(w&&A[I].len==8){p[L][I]=U.read_shift(8,"f");break}case"G":case"P":U.l+=A[I].len;break;case"0":if(A[I].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+A[I].type)}}}if(y!=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 d.sheetRows&&(p=p.slice(0,d.sheetRows)),d.DBF=A,p}function r(u,d){var p=d||{};p.dateNF||(p.dateNF="yyyymmdd");var x=ad(n(u,p),p);return x["!cols"]=p.DBF.map(function(y){return{wch:y.len,DBF:y}}),delete p.DBF,x}function i(u,d){try{return ou(r(u,d),d)}catch(p){if(d&&d.WTF)throw p}return{SheetNames:[],Sheets:{}}}var s={B:8,C:250,L:1,D:8,"?":0,"":0};function o(u,d){var p=d||{};if(+p.codepage>=0&&j1(+p.codepage),p.type=="string")throw new Error("Cannot write DBF to JS string");var x=li(),y=tx(u,{header:1,raw:!0,cellDates:!0}),v=y[0],w=y.slice(1),b=u["!cols"]||[],S=0,T=0,C=0,R=1;for(S=0;S<v.length;++S){if(((b[S]||{}).DBF||{}).name){v[S]=b[S].DBF.name,++C;continue}if(v[S]!=null){if(++C,typeof v[S]=="number"&&(v[S]=v[S].toString(10)),typeof v[S]!="string")throw new Error("DBF Invalid column name "+v[S]+" |"+typeof v[S]+"|");if(v.indexOf(v[S])!==S){for(T=0;T<1024;++T)if(v.indexOf(v[S]+"_"+T)==-1){v[S]+="_"+T;break}}}}var A=Jn(u["!ref"]),j=[],O=[],B=[];for(S=0;S<=A.e.c-A.s.c;++S){var L="",I="",U=0,W=[];for(T=0;T<w.length;++T)w[T][S]!=null&&W.push(w[T][S]);if(W.length==0||v[S]==null){j[S]="?";continue}for(T=0;T<W.length;++T){switch(typeof W[T]){case"number":I="B";break;case"string":I="C";break;case"boolean":I="L";break;case"object":I=W[T]instanceof Date?"D":"C";break;default:I="C"}U=Math.max(U,String(W[T]).length),L=L&&L!=I?"C":I}U>250&&(U=250),I=((b[S]||{}).DBF||{}).type,I=="C"&&b[S].DBF.len>U&&(U=b[S].DBF.len),L=="B"&&I=="N"&&(L="N",B[S]=b[S].DBF.dec,U=b[S].DBF.len),O[S]=L=="C"||I=="N"?U:s[L]||0,R+=O[S],j[S]=L}var X=x.next(32);for(X.write_shift(4,318902576),X.write_shift(4,w.length),X.write_shift(2,296+32*C),X.write_shift(2,R),S=0;S<4;++S)X.write_shift(4,0);for(X.write_shift(4,0|(+t[N3]||3)<<8),S=0,T=0;S<v.length;++S)if(v[S]!=null){var te=x.next(32),ne=(v[S].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);te.write_shift(1,ne,"sbcs"),te.write_shift(1,j[S]=="?"?"C":j[S],"sbcs"),te.write_shift(4,T),te.write_shift(1,O[S]||s[j[S]]||0),te.write_shift(1,B[S]||0),te.write_shift(1,2),te.write_shift(4,0),te.write_shift(1,0),te.write_shift(4,0),te.write_shift(4,0),T+=O[S]||s[j[S]]||0}var _e=x.next(264);for(_e.write_shift(4,13),S=0;S<65;++S)_e.write_shift(4,0);for(S=0;S<w.length;++S){var ye=x.next(R);for(ye.write_shift(1,0),T=0;T<v.length;++T)if(v[T]!=null)switch(j[T]){case"L":ye.write_shift(1,w[S][T]==null?63:w[S][T]?84:70);break;case"B":ye.write_shift(8,w[S][T]||0,"f");break;case"N":var ce="0";for(typeof w[S][T]=="number"&&(ce=w[S][T].toFixed(B[T]||0)),C=0;C<O[T]-ce.length;++C)ye.write_shift(1,32);ye.write_shift(1,ce,"sbcs");break;case"D":w[S][T]?(ye.write_shift(4,("0000"+w[S][T].getFullYear()).slice(-4),"sbcs"),ye.write_shift(2,("00"+(w[S][T].getMonth()+1)).slice(-2),"sbcs"),ye.write_shift(2,("00"+w[S][T].getDate()).slice(-2),"sbcs")):ye.write_shift(8,"00000000","sbcs");break;case"C":var Te=String(w[S][T]!=null?w[S][T]:"").slice(0,O[T]);for(ye.write_shift(1,Te,"sbcs"),C=0;C<O[T]-Te.length;++C)ye.write_shift(1,32);break}}return x.next(1).write_shift(1,26),x.end()}return{to_workbook:i,to_sheet:r,from_sheet:o}}(),V7=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("+sa(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(v,w){var b=e[w];return typeof b=="number"?xw(b):b},r=function(v,w,b){var S=w.charCodeAt(0)-32<<4|b.charCodeAt(0)-48;return S==59?v:xw(S)};e["|"]=254;function i(v,w){switch(w.type){case"base64":return s(wo(v),w);case"binary":return s(v,w);case"buffer":return s(Nn&&Buffer.isBuffer(v)?v.toString("binary"):em(v),w);case"array":return s(Sx(v),w)}throw new Error("Unrecognized type "+w.type)}function s(v,w){var b=v.split(/[\n\r]+/),S=-1,T=-1,C=0,R=0,A=[],j=[],O=null,B={},L=[],I=[],U=[],W=0,X;for(+w.codepage>=0&&j1(+w.codepage);C!==b.length;++C){W=0;var te=b[C].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(t,n),ne=te.replace(/;;/g,"\0").split(";").map(function(K){return K.replace(/\u0000/g,";")}),_e=ne[0],ye;if(te.length>0)switch(_e){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":ne[1].charAt(0)=="P"&&j.push(te.slice(3).replace(/;;/g,";"));break;case"C":var ce=!1,Te=!1,Ne=!1,$e=!1,Pe=-1,et=-1;for(R=1;R<ne.length;++R)switch(ne[R].charAt(0)){case"A":break;case"X":T=parseInt(ne[R].slice(1))-1,Te=!0;break;case"Y":for(S=parseInt(ne[R].slice(1))-1,Te||(T=0),X=A.length;X<=S;++X)A[X]=[];break;case"K":ye=ne[R].slice(1),ye.charAt(0)==='"'?ye=ye.slice(1,ye.length-1):ye==="TRUE"?ye=!0:ye==="FALSE"?ye=!1:isNaN(go(ye))?isNaN(F1(ye).getDate())||(ye=za(ye)):(ye=go(ye),O!==null&&P3(O)&&(ye=H3(ye))),ce=!0;break;case"E":$e=!0;var J=GO(ne[R].slice(1),{r:S,c:T});A[S][T]=[A[S][T],J];break;case"S":Ne=!0,A[S][T]=[A[S][T],"S5S"];break;case"G":break;case"R":Pe=parseInt(ne[R].slice(1))-1;break;case"C":et=parseInt(ne[R].slice(1))-1;break;default:if(w&&w.WTF)throw new Error("SYLK bad record "+te)}if(ce&&(A[S][T]&&A[S][T].length==2?A[S][T][0]=ye:A[S][T]=ye,O=null),Ne){if($e)throw new Error("SYLK shared formula cannot have own formula");var ie=Pe>-1&&A[Pe][et];if(!ie||!ie[1])throw new Error("SYLK shared formula cannot find base");A[S][T][1]=WO(ie[1],{r:S-Pe,c:T-et})}break;case"F":var ee=0;for(R=1;R<ne.length;++R)switch(ne[R].charAt(0)){case"X":T=parseInt(ne[R].slice(1))-1,++ee;break;case"Y":for(S=parseInt(ne[R].slice(1))-1,X=A.length;X<=S;++X)A[X]=[];break;case"M":W=parseInt(ne[R].slice(1))/20;break;case"F":break;case"G":break;case"P":O=j[parseInt(ne[R].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(U=ne[R].slice(1).split(" "),X=parseInt(U[0],10);X<=parseInt(U[1],10);++X)W=parseInt(U[2],10),I[X-1]=W===0?{hidden:!0}:{wch:W},Gy(I[X-1]);break;case"C":T=parseInt(ne[R].slice(1))-1,I[T]||(I[T]={});break;case"R":S=parseInt(ne[R].slice(1))-1,L[S]||(L[S]={}),W>0?(L[S].hpt=W,L[S].hpx=R4(W)):W===0&&(L[S].hidden=!0);break;default:if(w&&w.WTF)throw new Error("SYLK bad record "+te)}ee<1&&(O=null);break;default:if(w&&w.WTF)throw new Error("SYLK bad record "+te)}}return L.length>0&&(B["!rows"]=L),I.length>0&&(B["!cols"]=I),w&&w.sheetRows&&(A=A.slice(0,w.sheetRows)),[A,B]}function o(v,w){var b=i(v,w),S=b[0],T=b[1],C=ad(S,w);return sa(T).forEach(function(R){C[R]=T[R]}),C}function u(v,w){return ou(o(v,w),w)}function d(v,w,b,S){var T="C;Y"+(b+1)+";X"+(S+1)+";K";switch(v.t){case"n":T+=v.v||0,v.f&&!v.F&&(T+=";E"+Vy(v.f,{r:b,c:S}));break;case"b":T+=v.v?"TRUE":"FALSE";break;case"e":T+=v.w||v.v;break;case"d":T+='"'+(v.w||v.v)+'"';break;case"s":T+='"'+v.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return T}function p(v,w){w.forEach(function(b,S){var T="F;W"+(S+1)+" "+(S+1)+" ";b.hidden?T+="0":(typeof b.width=="number"&&!b.wpx&&(b.wpx=Zg(b.width)),typeof b.wpx=="number"&&!b.wch&&(b.wch=Qg(b.wpx)),typeof b.wch=="number"&&(T+=Math.round(b.wch))),T.charAt(T.length-1)!=" "&&v.push(T)})}function x(v,w){w.forEach(function(b,S){var T="F;";b.hidden?T+="M0;":b.hpt?T+="M"+20*b.hpt+";":b.hpx&&(T+="M"+20*Jg(b.hpx)+";"),T.length>2&&v.push(T+"R"+(S+1))})}function y(v,w){var b=["ID;PWXL;N;E"],S=[],T=Jn(v["!ref"]),C,R=Array.isArray(v),A=`\r
-`;b.push("P;PGeneral"),b.push("F;P0;DG0G8;M255"),v["!cols"]&&p(b,v["!cols"]),v["!rows"]&&x(b,v["!rows"]),b.push("B;Y"+(T.e.r-T.s.r+1)+";X"+(T.e.c-T.s.c+1)+";D"+[T.s.c,T.s.r,T.e.c,T.e.r].join(" "));for(var j=T.s.r;j<=T.e.r;++j)for(var O=T.s.c;O<=T.e.c;++O){var B=Bn({r:j,c:O});C=R?(v[j]||[])[O]:v[B],!(!C||C.v==null&&(!C.f||C.F))&&S.push(d(C,v,j,O))}return b.join(A)+A+S.join(A)+A+"E"+A}return{to_workbook:u,to_sheet:o,from_sheet:y}}(),X7=function(){function e(s,o){switch(o.type){case"base64":return t(wo(s),o);case"binary":return t(s,o);case"buffer":return t(Nn&&Buffer.isBuffer(s)?s.toString("binary"):em(s),o);case"array":return t(Sx(s),o)}throw new Error("Unrecognized type "+o.type)}function t(s,o){for(var u=s.split(`
-`),d=-1,p=-1,x=0,y=[];x!==u.length;++x){if(u[x].trim()==="BOT"){y[++d]=[],p=0;continue}if(!(d<0)){var v=u[x].trim().split(","),w=v[0],b=v[1];++x;for(var S=u[x]||"";(S.match(/["]/g)||[]).length&1&&x<u.length-1;)S+=`
-`+u[++x];switch(S=S.trim(),+w){case-1:if(S==="BOT"){y[++d]=[],p=0;continue}else if(S!=="EOD")throw new Error("Unrecognized DIF special command "+S);break;case 0:S==="TRUE"?y[d][p]=!0:S==="FALSE"?y[d][p]=!1:isNaN(go(b))?isNaN(F1(b).getDate())?y[d][p]=b:y[d][p]=za(b):y[d][p]=go(b),++p;break;case 1:S=S.slice(1,S.length-1),S=S.replace(/""/g,'"'),S&&S.match(/^=".*"$/)&&(S=S.slice(2,-1)),y[d][p++]=S!==""?S:null;break}if(S==="EOD")break}}return o&&o.sheetRows&&(y=y.slice(0,o.sheetRows)),y}function n(s,o){return ad(e(s,o),o)}function r(s,o){return ou(n(s,o),o)}var i=function(){var s=function(d,p,x,y,v){d.push(p),d.push(x+","+y),d.push('"'+v.replace(/"/g,'""')+'"')},o=function(d,p,x,y){d.push(p+","+x),d.push(p==1?'"'+y.replace(/"/g,'""')+'"':y)};return function(d){var p=[],x=Jn(d["!ref"]),y,v=Array.isArray(d);s(p,"TABLE",0,1,"sheetjs"),s(p,"VECTORS",0,x.e.r-x.s.r+1,""),s(p,"TUPLES",0,x.e.c-x.s.c+1,""),s(p,"DATA",0,0,"");for(var w=x.s.r;w<=x.e.r;++w){o(p,-1,0,"BOT");for(var b=x.s.c;b<=x.e.c;++b){var S=Bn({r:w,c:b});if(y=v?(d[w]||[])[b]:d[S],!y){o(p,1,0,"");continue}switch(y.t){case"n":var T=y.w;!T&&y.v!=null&&(T=y.v),T==null?y.f&&!y.F?o(p,1,0,"="+y.f):o(p,1,0,""):o(p,0,T,"V");break;case"b":o(p,0,y.v?1:0,y.v?"TRUE":"FALSE");break;case"s":o(p,1,0,isNaN(y.v)?y.v:'="'+y.v+'"');break;case"d":y.w||(y.w=kc(y.z||gr[14],oi(za(y.v)))),o(p,0,y.w,"V");break;default:o(p,1,0,"")}}}o(p,-1,0,"EOD");var C=`\r
-`,R=p.join(C);return R}}();return{to_workbook:r,to_sheet:n,from_sheet:i}}(),T4=function(){function e(y){return y.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
-`)}function t(y){return y.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function n(y,v){for(var w=y.split(`
-`),b=-1,S=-1,T=0,C=[];T!==w.length;++T){var R=w[T].trim().split(":");if(R[0]==="cell"){var A=$r(R[1]);if(C.length<=A.r)for(b=C.length;b<=A.r;++b)C[b]||(C[b]=[]);switch(b=A.r,S=A.c,R[2]){case"t":C[b][S]=e(R[3]);break;case"v":C[b][S]=+R[3];break;case"vtf":var j=R[R.length-1];case"vtc":switch(R[3]){case"nl":C[b][S]=!!+R[4];break;default:C[b][S]=+R[4];break}R[2]=="vtf"&&(C[b][S]=[C[b][S],j])}}}return v&&v.sheetRows&&(C=C.slice(0,v.sheetRows)),C}function r(y,v){return ad(n(y,v),v)}function i(y,v){return ou(r(y,v),v)}var s=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
-`),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
-`)+`
-`,u=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
-`),d="--SocialCalcSpreadsheetControlSave--";function p(y){if(!y||!y["!ref"])return"";for(var v=[],w=[],b,S="",T=Mi(y["!ref"]),C=Array.isArray(y),R=T.s.r;R<=T.e.r;++R)for(var A=T.s.c;A<=T.e.c;++A)if(S=Bn({r:R,c:A}),b=C?(y[R]||[])[A]:y[S],!(!b||b.v==null||b.t==="z")){switch(w=["cell",S,"t"],b.t){case"s":case"str":w.push(t(b.v));break;case"n":b.f?(w[2]="vtf",w[3]="n",w[4]=b.v,w[5]=t(b.f)):(w[2]="v",w[3]=b.v);break;case"b":w[2]="vt"+(b.f?"f":"c"),w[3]="nl",w[4]=b.v?"1":"0",w[5]=t(b.f||(b.v?"TRUE":"FALSE"));break;case"d":var j=oi(za(b.v));w[2]="vtc",w[3]="nd",w[4]=""+j,w[5]=b.w||kc(b.z||gr[14],j);break;case"e":continue}v.push(w.join(":"))}return v.push("sheet:c:"+(T.e.c-T.s.c+1)+":r:"+(T.e.r-T.s.r+1)+":tvf:1"),v.push("valueformat:1:text-wiki"),v.join(`
-`)}function x(y){return[s,o,u,o,p(y),d].join(`
-`)}return{to_workbook:i,to_sheet:r,from_sheet:x}}(),q7=function(){function e(x,y,v,w,b){b.raw?y[v][w]=x:x===""||(x==="TRUE"?y[v][w]=!0:x==="FALSE"?y[v][w]=!1:isNaN(go(x))?isNaN(F1(x).getDate())?y[v][w]=x:y[v][w]=za(x):y[v][w]=go(x))}function t(x,y){var v=y||{},w=[];if(!x||x.length===0)return w;for(var b=x.split(/[\r\n]/),S=b.length-1;S>=0&&b[S].length===0;)--S;for(var T=10,C=0,R=0;R<=S;++R)C=b[R].indexOf(" "),C==-1?C=b[R].length:C++,T=Math.max(T,C);for(R=0;R<=S;++R){w[R]=[];var A=0;for(e(b[R].slice(0,T).trim(),w,R,A,v),A=1;A<=(b[R].length-T)/10+1;++A)e(b[R].slice(T+(A-1)*10,T+A*10).trim(),w,R,A,v)}return v.sheetRows&&(w=w.slice(0,v.sheetRows)),w}var n={44:",",9:"	",59:";",124:"|"},r={44:3,9:2,59:1,124:0};function i(x){for(var y={},v=!1,w=0,b=0;w<x.length;++w)(b=x.charCodeAt(w))==34?v=!v:!v&&b in n&&(y[b]=(y[b]||0)+1);b=[];for(w in y)Object.prototype.hasOwnProperty.call(y,w)&&b.push([y[w],w]);if(!b.length){y=r;for(w in y)Object.prototype.hasOwnProperty.call(y,w)&&b.push([y[w],w])}return b.sort(function(S,T){return S[0]-T[0]||r[S[1]]-r[T[1]]}),n[b.pop()[1]]||44}function s(x,y){var v=y||{},w="",b=v.dense?[]:{},S={s:{c:0,r:0},e:{c:0,r:0}};x.slice(0,4)=="sep="?x.charCodeAt(5)==13&&x.charCodeAt(6)==10?(w=x.charAt(4),x=x.slice(7)):x.charCodeAt(5)==13||x.charCodeAt(5)==10?(w=x.charAt(4),x=x.slice(6)):w=i(x.slice(0,1024)):v.FS?w=v.FS:w=i(x.slice(0,1024));var T=0,C=0,R=0,A=0,j=0,O=w.charCodeAt(0),B=!1,L=0,I=x.charCodeAt(0);x=x.replace(/\r\n/mg,`
-`);var U=v.dateNF!=null?uR(v.dateNF):null;function W(){var X=x.slice(A,j),te={};if(X.charAt(0)=='"'&&X.charAt(X.length-1)=='"'&&(X=X.slice(1,-1).replace(/""/g,'"')),X.length===0)te.t="z";else if(v.raw)te.t="s",te.v=X;else if(X.trim().length===0)te.t="s",te.v=X;else if(X.charCodeAt(0)==61)X.charCodeAt(1)==34&&X.charCodeAt(X.length-1)==34?(te.t="s",te.v=X.slice(2,-1).replace(/""/g,'"')):VO(X)?(te.t="n",te.f=X.slice(1)):(te.t="s",te.v=X);else if(X=="TRUE")te.t="b",te.v=!0;else if(X=="FALSE")te.t="b",te.v=!1;else if(!isNaN(R=go(X)))te.t="n",v.cellText!==!1&&(te.w=X),te.v=R;else if(!isNaN(F1(X).getDate())||U&&X.match(U)){te.z=v.dateNF||gr[14];var ne=0;U&&X.match(U)&&(X=dR(X,v.dateNF,X.match(U)||[]),ne=1),v.cellDates?(te.t="d",te.v=za(X,ne)):(te.t="n",te.v=oi(za(X,ne))),v.cellText!==!1&&(te.w=kc(te.z,te.v instanceof Date?oi(te.v):te.v)),v.cellNF||delete te.z}else te.t="s",te.v=X;if(te.t=="z"||(v.dense?(b[T]||(b[T]=[]),b[T][C]=te):b[Bn({c:C,r:T})]=te),A=j+1,I=x.charCodeAt(A),S.e.c<C&&(S.e.c=C),S.e.r<T&&(S.e.r=T),L==O)++C;else if(C=0,++T,v.sheetRows&&v.sheetRows<=T)return!0}e:for(;j<x.length;++j)switch(L=x.charCodeAt(j)){case 34:I===34&&(B=!B);break;case O:case 10:case 13:if(!B&&W())break e;break}return j-A>0&&W(),b["!ref"]=Cr(S),b}function o(x,y){return!(y&&y.PRN)||y.FS||x.slice(0,4)=="sep="||x.indexOf("	")>=0||x.indexOf(",")>=0||x.indexOf(";")>=0?s(x,y):ad(t(x,y),y)}function u(x,y){var v="",w=y.type=="string"?[0,0,0,0]:sF(x,y);switch(y.type){case"base64":v=wo(x);break;case"binary":v=x;break;case"buffer":y.codepage==65001?v=x.toString("utf8"):(y.codepage,v=Nn&&Buffer.isBuffer(x)?x.toString("binary"):em(x));break;case"array":v=Sx(x);break;case"string":v=x;break;default:throw new Error("Unrecognized type "+y.type)}return w[0]==239&&w[1]==187&&w[2]==191?v=E1(v.slice(3)):y.type!="string"&&y.type!="buffer"&&y.codepage==65001?v=E1(v):y.type=="binary",v.slice(0,19)=="socialcalc:version:"?T4.to_sheet(y.type=="string"?v:E1(v),y):o(v,y)}function d(x,y){return ou(u(x,y),y)}function p(x){for(var y=[],v=Jn(x["!ref"]),w,b=Array.isArray(x),S=v.s.r;S<=v.e.r;++S){for(var T=[],C=v.s.c;C<=v.e.c;++C){var R=Bn({r:S,c:C});if(w=b?(x[S]||[])[C]:x[R],!w||w.v==null){T.push("          ");continue}for(var A=(w.w||(Eo(w),w.w)||"").slice(0,10);A.length<10;)A+=" ";T.push(A+(C===0?" ":""))}y.push(T.join(""))}return y.join(`
-`)}return{to_workbook:d,to_sheet:u,from_sheet:p}}(),qw=function(){function e(J,ie,ee){if(J){Di(J,J.l||0);for(var K=ee.Enum||Pe;J.l<J.length;){var xe=J.read_shift(2),Fe=K[xe]||K[65535],Ce=J.read_shift(2),me=J.l+Ce,oe=Fe.f&&Fe.f(J,Ce,ee);if(J.l=me,ie(oe,Fe,xe))return}}}function t(J,ie){switch(ie.type){case"base64":return n(zl(wo(J)),ie);case"binary":return n(zl(J),ie);case"buffer":case"array":return n(J,ie)}throw"Unsupported type "+ie.type}function n(J,ie){if(!J)return J;var ee=ie||{},K=ee.dense?[]:{},xe="Sheet1",Fe="",Ce=0,me={},oe=[],Be=[],Xe={s:{r:0,c:0},e:{r:0,c:0}},rt=ee.sheetRows||0;if(J[2]==0&&(J[3]==8||J[3]==9)&&J.length>=16&&J[14]==5&&J[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(J[2]==2)ee.Enum=Pe,e(J,function(We,tn,gn){switch(gn){case 0:ee.vers=We,We>=4096&&(ee.qpro=!0);break;case 6:Xe=We;break;case 204:We&&(Fe=We);break;case 222:Fe=We;break;case 15:case 51:ee.qpro||(We[1].v=We[1].v.slice(1));case 13:case 14:case 16:gn==14&&(We[2]&112)==112&&(We[2]&15)>1&&(We[2]&15)<15&&(We[1].z=ee.dateNF||gr[14],ee.cellDates&&(We[1].t="d",We[1].v=H3(We[1].v))),ee.qpro&&We[3]>Ce&&(K["!ref"]=Cr(Xe),me[xe]=K,oe.push(xe),K=ee.dense?[]:{},Xe={s:{r:0,c:0},e:{r:0,c:0}},Ce=We[3],xe=Fe||"Sheet"+(Ce+1),Fe="");var Jt=ee.dense?(K[We[0].r]||[])[We[0].c]:K[Bn(We[0])];if(Jt){Jt.t=We[1].t,Jt.v=We[1].v,We[1].z!=null&&(Jt.z=We[1].z),We[1].f!=null&&(Jt.f=We[1].f);break}ee.dense?(K[We[0].r]||(K[We[0].r]=[]),K[We[0].r][We[0].c]=We[1]):K[Bn(We[0])]=We[1];break}},ee);else if(J[2]==26||J[2]==14)ee.Enum=et,J[2]==14&&(ee.qpro=!0,J.l=0),e(J,function(We,tn,gn){switch(gn){case 204:xe=We;break;case 22:We[1].v=We[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(We[3]>Ce&&(K["!ref"]=Cr(Xe),me[xe]=K,oe.push(xe),K=ee.dense?[]:{},Xe={s:{r:0,c:0},e:{r:0,c:0}},Ce=We[3],xe="Sheet"+(Ce+1)),rt>0&&We[0].r>=rt)break;ee.dense?(K[We[0].r]||(K[We[0].r]=[]),K[We[0].r][We[0].c]=We[1]):K[Bn(We[0])]=We[1],Xe.e.c<We[0].c&&(Xe.e.c=We[0].c),Xe.e.r<We[0].r&&(Xe.e.r=We[0].r);break;case 27:We[14e3]&&(Be[We[14e3][0]]=We[14e3][1]);break;case 1537:Be[We[0]]=We[1],We[0]==Ce&&(xe=We[1]);break}},ee);else throw new Error("Unrecognized LOTUS BOF "+J[2]);if(K["!ref"]=Cr(Xe),me[Fe||xe]=K,oe.push(Fe||xe),!Be.length)return{SheetNames:oe,Sheets:me};for(var Qe={},ft=[],xt=0;xt<Be.length;++xt)me[oe[xt]]?(ft.push(Be[xt]||oe[xt]),Qe[Be[xt]]=me[Be[xt]]||me[oe[xt]]):(ft.push(Be[xt]),Qe[Be[xt]]={"!ref":"A1"});return{SheetNames:ft,Sheets:Qe}}function r(J,ie){var ee=ie||{};if(+ee.codepage>=0&&j1(+ee.codepage),ee.type=="string")throw new Error("Cannot write WK1 to JS string");var K=li(),xe=Jn(J["!ref"]),Fe=Array.isArray(J),Ce=[];it(K,0,s(1030)),it(K,6,d(xe));for(var me=Math.min(xe.e.r,8191),oe=xe.s.r;oe<=me;++oe)for(var Be=ia(oe),Xe=xe.s.c;Xe<=xe.e.c;++Xe){oe===xe.s.r&&(Ce[Xe]=va(Xe));var rt=Ce[Xe]+Be,Qe=Fe?(J[oe]||[])[Xe]:J[rt];if(!(!Qe||Qe.t=="z"))if(Qe.t=="n")(Qe.v|0)==Qe.v&&Qe.v>=-32768&&Qe.v<=32767?it(K,13,w(oe,Xe,Qe.v)):it(K,14,S(oe,Xe,Qe.v));else{var ft=Eo(Qe);it(K,15,y(oe,Xe,ft.slice(0,239)))}}return it(K,1),K.end()}function i(J,ie){var ee=ie||{};if(+ee.codepage>=0&&j1(+ee.codepage),ee.type=="string")throw new Error("Cannot write WK3 to JS string");var K=li();it(K,0,o(J));for(var xe=0,Fe=0;xe<J.SheetNames.length;++xe)(J.Sheets[J.SheetNames[xe]]||{})["!ref"]&&it(K,27,$e(J.SheetNames[xe],Fe++));var Ce=0;for(xe=0;xe<J.SheetNames.length;++xe){var me=J.Sheets[J.SheetNames[xe]];if(!(!me||!me["!ref"])){for(var oe=Jn(me["!ref"]),Be=Array.isArray(me),Xe=[],rt=Math.min(oe.e.r,8191),Qe=oe.s.r;Qe<=rt;++Qe)for(var ft=ia(Qe),xt=oe.s.c;xt<=oe.e.c;++xt){Qe===oe.s.r&&(Xe[xt]=va(xt));var We=Xe[xt]+ft,tn=Be?(me[Qe]||[])[xt]:me[We];if(!(!tn||tn.t=="z"))if(tn.t=="n")it(K,23,W(Qe,xt,Ce,tn.v));else{var gn=Eo(tn);it(K,22,L(Qe,xt,Ce,gn.slice(0,239)))}}++Ce}}return it(K,1),K.end()}function s(J){var ie=ke(2);return ie.write_shift(2,J),ie}function o(J){var ie=ke(26);ie.write_shift(2,4096),ie.write_shift(2,4),ie.write_shift(4,0);for(var ee=0,K=0,xe=0,Fe=0;Fe<J.SheetNames.length;++Fe){var Ce=J.SheetNames[Fe],me=J.Sheets[Ce];if(!(!me||!me["!ref"])){++xe;var oe=Mi(me["!ref"]);ee<oe.e.r&&(ee=oe.e.r),K<oe.e.c&&(K=oe.e.c)}}return ee>8191&&(ee=8191),ie.write_shift(2,ee),ie.write_shift(1,xe),ie.write_shift(1,K),ie.write_shift(2,0),ie.write_shift(2,0),ie.write_shift(1,1),ie.write_shift(1,2),ie.write_shift(4,0),ie.write_shift(4,0),ie}function u(J,ie,ee){var K={s:{c:0,r:0},e:{c:0,r:0}};return ie==8&&ee.qpro?(K.s.c=J.read_shift(1),J.l++,K.s.r=J.read_shift(2),K.e.c=J.read_shift(1),J.l++,K.e.r=J.read_shift(2),K):(K.s.c=J.read_shift(2),K.s.r=J.read_shift(2),ie==12&&ee.qpro&&(J.l+=2),K.e.c=J.read_shift(2),K.e.r=J.read_shift(2),ie==12&&ee.qpro&&(J.l+=2),K.s.c==65535&&(K.s.c=K.e.c=K.s.r=K.e.r=0),K)}function d(J){var ie=ke(8);return ie.write_shift(2,J.s.c),ie.write_shift(2,J.s.r),ie.write_shift(2,J.e.c),ie.write_shift(2,J.e.r),ie}function p(J,ie,ee){var K=[{c:0,r:0},{t:"n",v:0},0,0];return ee.qpro&&ee.vers!=20768?(K[0].c=J.read_shift(1),K[3]=J.read_shift(1),K[0].r=J.read_shift(2),J.l+=2):(K[2]=J.read_shift(1),K[0].c=J.read_shift(2),K[0].r=J.read_shift(2)),K}function x(J,ie,ee){var K=J.l+ie,xe=p(J,ie,ee);if(xe[1].t="s",ee.vers==20768){J.l++;var Fe=J.read_shift(1);return xe[1].v=J.read_shift(Fe,"utf8"),xe}return ee.qpro&&J.l++,xe[1].v=J.read_shift(K-J.l,"cstr"),xe}function y(J,ie,ee){var K=ke(7+ee.length);K.write_shift(1,255),K.write_shift(2,ie),K.write_shift(2,J),K.write_shift(1,39);for(var xe=0;xe<K.length;++xe){var Fe=ee.charCodeAt(xe);K.write_shift(1,Fe>=128?95:Fe)}return K.write_shift(1,0),K}function v(J,ie,ee){var K=p(J,ie,ee);return K[1].v=J.read_shift(2,"i"),K}function w(J,ie,ee){var K=ke(7);return K.write_shift(1,255),K.write_shift(2,ie),K.write_shift(2,J),K.write_shift(2,ee,"i"),K}function b(J,ie,ee){var K=p(J,ie,ee);return K[1].v=J.read_shift(8,"f"),K}function S(J,ie,ee){var K=ke(13);return K.write_shift(1,255),K.write_shift(2,ie),K.write_shift(2,J),K.write_shift(8,ee,"f"),K}function T(J,ie,ee){var K=J.l+ie,xe=p(J,ie,ee);if(xe[1].v=J.read_shift(8,"f"),ee.qpro)J.l=K;else{var Fe=J.read_shift(2);j(J.slice(J.l,J.l+Fe),xe),J.l+=Fe}return xe}function C(J,ie,ee){var K=ie&32768;return ie&=-32769,ie=(K?J:0)+(ie>=8192?ie-16384:ie),(K?"":"$")+(ee?va(ie):ia(ie))}var R={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]},A=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function j(J,ie){Di(J,0);for(var ee=[],K=0,xe="",Fe="",Ce="",me="";J.l<J.length;){var oe=J[J.l++];switch(oe){case 0:ee.push(J.read_shift(8,"f"));break;case 1:Fe=C(ie[0].c,J.read_shift(2),!0),xe=C(ie[0].r,J.read_shift(2),!1),ee.push(Fe+xe);break;case 2:{var Be=C(ie[0].c,J.read_shift(2),!0),Xe=C(ie[0].r,J.read_shift(2),!1);Fe=C(ie[0].c,J.read_shift(2),!0),xe=C(ie[0].r,J.read_shift(2),!1),ee.push(Be+Xe+":"+Fe+xe)}break;case 3:if(J.l<J.length){console.error("WK1 premature formula end");return}break;case 4:ee.push("("+ee.pop()+")");break;case 5:ee.push(J.read_shift(2));break;case 6:{for(var rt="";oe=J[J.l++];)rt+=String.fromCharCode(oe);ee.push('"'+rt.replace(/"/g,'""')+'"')}break;case 8:ee.push("-"+ee.pop());break;case 23:ee.push("+"+ee.pop());break;case 22:ee.push("NOT("+ee.pop()+")");break;case 20:case 21:me=ee.pop(),Ce=ee.pop(),ee.push(["AND","OR"][oe-20]+"("+Ce+","+me+")");break;default:if(oe<32&&A[oe])me=ee.pop(),Ce=ee.pop(),ee.push(Ce+A[oe]+me);else if(R[oe]){if(K=R[oe][1],K==69&&(K=J[J.l++]),K>ee.length){console.error("WK1 bad formula parse 0x"+oe.toString(16)+":|"+ee.join("|")+"|");return}var Qe=ee.slice(-K);ee.length-=K,ee.push(R[oe][0]+"("+Qe.join(",")+")")}else return oe<=7?console.error("WK1 invalid opcode "+oe.toString(16)):oe<=24?console.error("WK1 unsupported op "+oe.toString(16)):oe<=30?console.error("WK1 invalid opcode "+oe.toString(16)):oe<=115?console.error("WK1 unsupported function opcode "+oe.toString(16)):console.error("WK1 unrecognized opcode "+oe.toString(16))}}ee.length==1?ie[1].f=""+ee[0]:console.error("WK1 bad formula parse |"+ee.join("|")+"|")}function O(J){var ie=[{c:0,r:0},{t:"n",v:0},0];return ie[0].r=J.read_shift(2),ie[3]=J[J.l++],ie[0].c=J[J.l++],ie}function B(J,ie){var ee=O(J);return ee[1].t="s",ee[1].v=J.read_shift(ie-4,"cstr"),ee}function L(J,ie,ee,K){var xe=ke(6+K.length);xe.write_shift(2,J),xe.write_shift(1,ee),xe.write_shift(1,ie),xe.write_shift(1,39);for(var Fe=0;Fe<K.length;++Fe){var Ce=K.charCodeAt(Fe);xe.write_shift(1,Ce>=128?95:Ce)}return xe.write_shift(1,0),xe}function I(J,ie){var ee=O(J);ee[1].v=J.read_shift(2);var K=ee[1].v>>1;if(ee[1].v&1)switch(K&7){case 0:K=(K>>3)*5e3;break;case 1:K=(K>>3)*500;break;case 2:K=(K>>3)/20;break;case 3:K=(K>>3)/200;break;case 4:K=(K>>3)/2e3;break;case 5:K=(K>>3)/2e4;break;case 6:K=(K>>3)/16;break;case 7:K=(K>>3)/64;break}return ee[1].v=K,ee}function U(J,ie){var ee=O(J),K=J.read_shift(4),xe=J.read_shift(4),Fe=J.read_shift(2);if(Fe==65535)return K===0&&xe===3221225472?(ee[1].t="e",ee[1].v=15):K===0&&xe===3489660928?(ee[1].t="e",ee[1].v=42):ee[1].v=0,ee;var Ce=Fe&32768;return Fe=(Fe&32767)-16446,ee[1].v=(1-Ce*2)*(xe*Math.pow(2,Fe+32)+K*Math.pow(2,Fe)),ee}function W(J,ie,ee,K){var xe=ke(14);if(xe.write_shift(2,J),xe.write_shift(1,ee),xe.write_shift(1,ie),K==0)return xe.write_shift(4,0),xe.write_shift(4,0),xe.write_shift(2,65535),xe;var Fe=0,Ce=0,me=0,oe=0;return K<0&&(Fe=1,K=-K),Ce=Math.log2(K)|0,K/=Math.pow(2,Ce-31),oe=K>>>0,oe&2147483648||(K/=2,++Ce,oe=K>>>0),K-=oe,oe|=2147483648,oe>>>=0,K*=Math.pow(2,32),me=K>>>0,xe.write_shift(4,me),xe.write_shift(4,oe),Ce+=16383+(Fe?32768:0),xe.write_shift(2,Ce),xe}function X(J,ie){var ee=U(J);return J.l+=ie-14,ee}function te(J,ie){var ee=O(J),K=J.read_shift(4);return ee[1].v=K>>6,ee}function ne(J,ie){var ee=O(J),K=J.read_shift(8,"f");return ee[1].v=K,ee}function _e(J,ie){var ee=ne(J);return J.l+=ie-10,ee}function ye(J,ie){return J[J.l+ie-1]==0?J.read_shift(ie,"cstr"):""}function ce(J,ie){var ee=J[J.l++];ee>ie-1&&(ee=ie-1);for(var K="";K.length<ee;)K+=String.fromCharCode(J[J.l++]);return K}function Te(J,ie,ee){if(!(!ee.qpro||ie<21)){var K=J.read_shift(1);J.l+=17,J.l+=1,J.l+=2;var xe=J.read_shift(ie-21,"cstr");return[K,xe]}}function Ne(J,ie){for(var ee={},K=J.l+ie;J.l<K;){var xe=J.read_shift(2);if(xe==14e3){for(ee[xe]=[0,""],ee[xe][0]=J.read_shift(2);J[J.l];)ee[xe][1]+=String.fromCharCode(J[J.l]),J.l++;J.l++}}return ee}function $e(J,ie){var ee=ke(5+J.length);ee.write_shift(2,14e3),ee.write_shift(2,ie);for(var K=0;K<J.length;++K){var xe=J.charCodeAt(K);ee[ee.l++]=xe>127?95:xe}return ee[ee.l++]=0,ee}var Pe={0:{n:"BOF",f:_4},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:u},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:v},14:{n:"NUMBER",f:b},15:{n:"LABEL",f:x},16:{n:"FORMULA",f:T},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:ye},222:{n:"SHEETNAMELP",f:ce},65535:{n:""}},et={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:B},23:{n:"NUMBER17",f:U},24:{n:"NUMBER18",f:I},25:{n:"FORMULA19",f:X},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:Ne},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:te},38:{n:"??"},39:{n:"NUMBER27",f:ne},40:{n:"FORMULA28",f:_e},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:ye},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:Te},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:r,book_to_wk3:i,to_workbook:t}}(),K7=/^\s|\s$|[\t\n\r]/;function N4(e,t){if(!t.bookSST)return"";var n=[Rr];n[n.length]=nt("sst",null,{xmlns:rd[0],count:e.Count,uniqueCount:e.Unique});for(var r=0;r!=e.length;++r)if(e[r]!=null){var i=e[r],s="<si>";i.r?s+=i.r:(s+="<t",i.t||(i.t=""),i.t.match(K7)&&(s+=' xml:space="preserve"'),s+=">"+Mn(i.t)+"</t>"),s+="</si>",n[n.length]=s}return n.length>2&&(n[n.length]="</sst>",n[1]=n[1].replace("/>",">")),n.join("")}function Z7(e){return[e.read_shift(4),e.read_shift(4)]}function Q7(e,t){return t||(t=ke(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var J7=$R;function eO(e){var t=li();ze(t,159,Q7(e));for(var n=0;n<e.length;++n)ze(t,19,J7(e[n]));return ze(t,160),t.end()}function tO(e){for(var t=[],n=e.split(""),r=0;r<n.length;++r)t[r]=n[r].charCodeAt(0);return t}function C4(e){var t=0,n,r=tO(e),i=r.length+1,s,o,u,d,p;for(n=nu(i),n[0]=r.length,s=1;s!=i;++s)n[s]=r[s-1];for(s=i-1;s>=0;--s)o=n[s],u=t&16384?1:0,d=t<<1&32767,p=u|d,t=p^o;return t^52811}var nO=function(){function e(i,s){switch(s.type){case"base64":return t(wo(i),s);case"binary":return t(i,s);case"buffer":return t(Nn&&Buffer.isBuffer(i)?i.toString("binary"):em(i),s);case"array":return t(Sx(i),s)}throw new Error("Unrecognized type "+s.type)}function t(i,s){var o=s||{},u=o.dense?[]:{},d=i.match(/\\trowd.*?\\row\b/g);if(!d.length)throw new Error("RTF missing table");var p={s:{c:0,r:0},e:{c:0,r:d.length-1}};return d.forEach(function(x,y){Array.isArray(u)&&(u[y]=[]);for(var v=/\\\w+\b/g,w=0,b,S=-1;b=v.exec(x);){switch(b[0]){case"\\cell":var T=x.slice(w,v.lastIndex-b[0].length);if(T[0]==" "&&(T=T.slice(1)),++S,T.length){var C={v:T,t:"s"};Array.isArray(u)?u[y][S]=C:u[Bn({r:y,c:S})]=C}break}w=v.lastIndex}S>p.e.c&&(p.e.c=S)}),u["!ref"]=Cr(p),u}function n(i,s){return ou(e(i,s),s)}function r(i){for(var s=["{\\rtf1\\ansi"],o=Jn(i["!ref"]),u,d=Array.isArray(i),p=o.s.r;p<=o.e.r;++p){s.push("\\trowd\\trautofit1");for(var x=o.s.c;x<=o.e.c;++x)s.push("\\cellx"+(x+1));for(s.push("\\pard\\intbl"),x=o.s.c;x<=o.e.c;++x){var y=Bn({r:p,c:x});u=d?(i[p]||[])[x]:i[y],!(!u||u.v==null&&(!u.f||u.F))&&(s.push(" "+(u.w||(Eo(u),u.w))),s.push("\\cell"))}s.push("\\pard\\intbl\\row")}return s.join("")+"}"}return{to_workbook:n,to_sheet:e,from_sheet:r}}();function Kw(e){for(var t=0,n=1;t!=3;++t)n=n*256+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}var rO=6,xo=rO;function Zg(e){return Math.floor((e+Math.round(128/xo)/256)*xo)}function Qg(e){return Math.floor((e-5)/xo*100+.5)/100}function B2(e){return Math.round((e*xo+5)/xo*256)/256}function Gy(e){e.width?(e.wpx=Zg(e.width),e.wch=Qg(e.wpx),e.MDW=xo):e.wpx?(e.wch=Qg(e.wpx),e.width=B2(e.wch),e.MDW=xo):typeof e.wch=="number"&&(e.width=B2(e.wch),e.wpx=Zg(e.width),e.MDW=xo),e.customWidth&&delete e.customWidth}var aO=96,A4=aO;function Jg(e){return e*96/A4}function R4(e){return e*A4/96}function iO(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var r=n[0];r<=n[1];++r)e[r]!=null&&(t[t.length]=nt("numFmt",null,{numFmtId:r,formatCode:Mn(e[r])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=nt("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function lO(e){var t=[];return t[t.length]=nt("cellXfs",null),e.forEach(function(n){t[t.length]=nt("xf",null,n)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=nt("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function O4(e,t){var n=[Rr,nt("styleSheet",null,{xmlns:rd[0],"xmlns:vt":Hr.vt})],r;return e.SSF&&(r=iO(e.SSF))!=null&&(n[n.length]=r),n[n.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',n[n.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',n[n.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',n[n.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(r=lO(t.cellXfs))&&(n[n.length]=r),n[n.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',n[n.length]='<dxfs count="0"/>',n[n.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',n.length>2&&(n[n.length]="</styleSheet>",n[1]=n[1].replace("/>",">")),n.join("")}function sO(e,t){var n=e.read_shift(2),r=ya(e);return[n,r]}function oO(e,t,n){n||(n=ke(6+4*t.length)),n.write_shift(2,e),zr(t,n);var r=n.length>n.l?n.slice(0,n.l):n;return n.l==null&&(n.l=n.length),r}function cO(e,t,n){var r={};r.sz=e.read_shift(2)/20;var i=KR(e);i.fItalic&&(r.italic=1),i.fCondense&&(r.condense=1),i.fExtend&&(r.extend=1),i.fShadow&&(r.shadow=1),i.fOutline&&(r.outline=1),i.fStrikeout&&(r.strike=1);var s=e.read_shift(2);switch(s===700&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript";break}var o=e.read_shift(1);o!=0&&(r.underline=o);var u=e.read_shift(1);u>0&&(r.family=u);var d=e.read_shift(1);switch(d>0&&(r.charset=d),e.l++,r.color=qR(e),e.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor";break}return r.name=ya(e),r}function fO(e,t){t||(t=ke(25+4*32)),t.write_shift(2,e.sz*20),ZR(e,t),t.write_shift(2,e.bold?700:400);var n=0;e.vertAlign=="superscript"?n=1:e.vertAlign=="subscript"&&(n=2),t.write_shift(2,n),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),qg(e.color,t);var r=0;return e.scheme=="major"&&(r=1),e.scheme=="minor"&&(r=2),t.write_shift(1,r),zr(e.name,t),t.length>t.l?t.slice(0,t.l):t}var uO=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],m2,dO=ks;function Zw(e,t){t||(t=ke(4*3+8*7+16*1)),m2||(m2=ky(uO));var n=m2[e.patternType];n==null&&(n=40),t.write_shift(4,n);var r=0;if(n!=40)for(qg({auto:1},t),qg({auto:1},t);r<12;++r)t.write_shift(4,0);else{for(;r<4;++r)t.write_shift(4,0);for(;r<12;++r)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function hO(e,t){var n=e.l+t,r=e.read_shift(2),i=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:i}}function D4(e,t,n){n||(n=ke(16)),n.write_shift(2,t||0),n.write_shift(2,e.numFmtId||0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0);var r=0;return n.write_shift(1,r),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n}function u1(e,t){return t||(t=ke(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var mO=ks;function pO(e,t){return t||(t=ke(51)),t.write_shift(1,0),u1(null,t),u1(null,t),u1(null,t),u1(null,t),u1(null,t),t.length>t.l?t.slice(0,t.l):t}function gO(e,t){return t||(t=ke(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,0),t.write_shift(1,0),Xg(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function xO(e,t,n){var r=ke(2052);return r.write_shift(4,e),Xg(t,r),Xg(n,r),r.length>r.l?r.slice(0,r.l):r}function vO(e,t){if(t){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var i=r[0];i<=r[1];++i)t[i]!=null&&++n}),n!=0&&(ze(e,615,Wl(n)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var i=r[0];i<=r[1];++i)t[i]!=null&&ze(e,44,oO(i,t[i]))}),ze(e,616))}}function yO(e){var t=1;ze(e,611,Wl(t)),ze(e,43,fO({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),ze(e,612)}function _O(e){var t=2;ze(e,603,Wl(t)),ze(e,45,Zw({patternType:"none"})),ze(e,45,Zw({patternType:"gray125"})),ze(e,604)}function wO(e){var t=1;ze(e,613,Wl(t)),ze(e,46,pO()),ze(e,614)}function EO(e){var t=1;ze(e,626,Wl(t)),ze(e,47,D4({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),ze(e,627)}function SO(e,t){ze(e,617,Wl(t.length)),t.forEach(function(n){ze(e,47,D4(n,0))}),ze(e,618)}function bO(e){var t=1;ze(e,619,Wl(t)),ze(e,48,gO({xfId:0,builtinId:0,name:"Normal"})),ze(e,620)}function TO(e){var t=0;ze(e,505,Wl(t)),ze(e,506)}function NO(e){var t=0;ze(e,508,xO(t,"TableStyleMedium9","PivotStyleMedium4")),ze(e,509)}function CO(e,t){var n=li();return ze(n,278),vO(n,e.SSF),yO(n),_O(n),wO(n),EO(n),SO(n,t.cellXfs),bO(n),TO(n),NO(n),ze(n,279),n.end()}function j4(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var n=[Rr];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.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>',n[n.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>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.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>',n[n.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>',n[n.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>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.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>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.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>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.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>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.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>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}function AO(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:ya(e)}}function RO(e){var t=ke(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),zr(e.name,t),t.slice(0,t.l)}function OO(e){for(var t=[],n=e.read_shift(4);n-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function DO(e){var t=ke(4+8*e.length);t.write_shift(4,e.length);for(var n=0;n<e.length;++n)t.write_shift(4,e[n][0]),t.write_shift(4,e[n][1]);return t}function jO(e,t){var n=ke(8+2*t.length);return n.write_shift(4,e),zr(t,n),n.slice(0,n.l)}function kO(e){return e.l+=4,e.read_shift(4)!=0}function FO(e,t){var n=ke(8);return n.write_shift(4,e),n.write_shift(4,1),n}function LO(){var e=li();return ze(e,332),ze(e,334,Wl(1)),ze(e,335,RO({name:"XLDAPR",version:12e4,flags:3496657072})),ze(e,336),ze(e,339,jO(1,"XLDAPR")),ze(e,52),ze(e,35,Wl(514)),ze(e,4096,Wl(0)),ze(e,4097,sl(1)),ze(e,36),ze(e,53),ze(e,340),ze(e,337,FO(1)),ze(e,51,DO([[1,0]])),ze(e,338),ze(e,333),e.end()}function k4(){var e=[Rr];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 MO(e){var t={};t.i=e.read_shift(4);var n={};n.r=e.read_shift(4),n.c=e.read_shift(4),t.r=Bn(n);var r=e.read_shift(1);return r&2&&(t.l="1"),r&8&&(t.a="1"),t}var H0=1024;function F4(e,t){for(var n=[21600,21600],r=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),i=[nt("xml",null,{"xmlns:v":ji.v,"xmlns:o":ji.o,"xmlns:x":ji.x,"xmlns:mv":ji.mv}).replace(/\/>/,">"),nt("o:shapelayout",nt("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),nt("v:shapetype",[nt("v:stroke",null,{joinstyle:"miter"}),nt("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:r})];H0<e*1e3;)H0+=1e3;return t.forEach(function(s){var o=$r(s[0]),u={color2:"#BEFF82",type:"gradient"};u.type=="gradient"&&(u.angle="-180");var d=u.type=="gradient"?nt("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,p=nt("v:fill",d,u),x={on:"t",obscured:"t"};++H0,i=i.concat(["<v:shape"+M1({id:"_x0000_s"+H0,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"})+">",p,nt("v:shadow",null,x),nt("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",aa("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),aa("x:AutoFill","False"),aa("x:Row",String(o.r)),aa("x:Column",String(o.c)),s[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function L4(e){var t=[Rr,nt("comments",null,{xmlns:rd[0]})],n=[];return t.push("<authors>"),e.forEach(function(r){r[1].forEach(function(i){var s=Mn(i.a);n.indexOf(s)==-1&&(n.push(s),t.push("<author>"+s+"</author>")),i.T&&i.ID&&n.indexOf("tc="+i.ID)==-1&&(n.push("tc="+i.ID),t.push("<author>tc="+i.ID+"</author>"))})}),n.length==0&&(n.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(r){var i=0,s=[];if(r[1][0]&&r[1][0].T&&r[1][0].ID?i=n.indexOf("tc="+r[1][0].ID):r[1].forEach(function(d){d.a&&(i=n.indexOf(Mn(d.a))),s.push(d.t||"")}),t.push('<comment ref="'+r[0]+'" authorId="'+i+'"><text>'),s.length<=1)t.push(aa("t",Mn(s[0]||"")));else{for(var o=`Comment:
-    `+s[0]+`
-`,u=1;u<s.length;++u)o+=`Reply:
-    `+s[u]+`
-`;t.push(aa("t",Mn(o)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function BO(e,t,n){var r=[Rr,nt("ThreadedComments",null,{xmlns:Hr.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var s="";(i[1]||[]).forEach(function(o,u){if(!o.T){delete o.ID;return}o.a&&t.indexOf(o.a)==-1&&t.push(o.a);var d={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};u==0?s=d.id:d.parentId=s,o.ID=d.id,o.a&&(d.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(o.a)).slice(-12)+"}"),r.push(nt("threadedComment",aa("text",o.t||""),d))})}),r.push("</ThreadedComments>"),r.join("")}function PO(e){var t=[Rr,nt("personList",null,{xmlns:Hr.TCMNT,"xmlns:x":rd[0]}).replace(/[\/]>/,">")];return e.forEach(function(n,r){t.push(nt("person",null,{displayName:n,id:"{54EE7950-7262-4200-6969-"+("000000000000"+r).slice(-12)+"}",userId:n,providerId:"None"}))}),t.push("</personList>"),t.join("")}function UO(e){var t={};t.iauthor=e.read_shift(4);var n=du(e);return t.rfx=n.s,t.ref=Bn(n.s),e.l+=16,t}function IO(e,t){return t==null&&(t=ke(36)),t.write_shift(4,e[1].iauthor),id(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 YO=ya;function HO(e){return zr(e.slice(0,54))}function $O(e){var t=li(),n=[];return ze(t,628),ze(t,630),e.forEach(function(r){r[1].forEach(function(i){n.indexOf(i.a)>-1||(n.push(i.a.slice(0,54)),ze(t,632,HO(i.a)))})}),ze(t,631),ze(t,633),e.forEach(function(r){r[1].forEach(function(i){i.iauthor=n.indexOf(i.a);var s={s:$r(r[0]),e:$r(r[0])};ze(t,635,IO([s,i])),i.t&&i.t.length>0&&ze(t,637,GR(i)),ze(t,636),delete i.iauthor})}),ze(t,634),ze(t,629),t.end()}function zO(e,t){t.FullPaths.forEach(function(n,r){if(r!=0){var i=n.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&In.utils.cfb_add(e,i,t.FileIndex[r].content)}})}var M4=["xlsb","xlsm","xlam","biff8","xla"],GO=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 n(r,i,s,o){var u=!1,d=!1;s.length==0?d=!0:s.charAt(0)=="["&&(d=!0,s=s.slice(1,-1)),o.length==0?u=!0:o.charAt(0)=="["&&(u=!0,o=o.slice(1,-1));var p=s.length>0?parseInt(s,10)|0:0,x=o.length>0?parseInt(o,10)|0:0;return u?x+=t.c:--x,d?p+=t.r:--p,i+(u?"":"$")+va(x)+(d?"":"$")+ia(p)}return function(i,s){return t=s,i.replace(e,n)}}(),Wy=/(^|[^._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,Vy=function(){return function(t,n){return t.replace(Wy,function(r,i,s,o,u,d){var p=Iy(o)-(s?0:n.c),x=Uy(d)-(u?0:n.r),y=x==0?"":u?x+1:"["+x+"]",v=p==0?"":s?p+1:"["+p+"]";return i+"R"+y+"C"+v})}}();function WO(e,t){return e.replace(Wy,function(n,r,i,s,o,u){return r+(i=="$"?i+s:va(Iy(s)+t.c))+(o=="$"?o+u:ia(Uy(u)+t.r))})}function VO(e){return e.length!=1}function Tr(e){e.l+=1}function Fc(e,t){var n=e.read_shift(2);return[n&16383,n>>14&1,n>>15&1]}function B4(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return P4(e);n.biff==12&&(r=4)}var i=e.read_shift(r),s=e.read_shift(r),o=Fc(e),u=Fc(e);return{s:{r:i,c:o[0],cRel:o[1],rRel:o[2]},e:{r:s,c:u[0],cRel:u[1],rRel:u[2]}}}function P4(e){var t=Fc(e),n=Fc(e),r=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:i,cRel:n[1],rRel:n[2]}}}function XO(e,t,n){if(n.biff<8)return P4(e);var r=e.read_shift(n.biff==12?4:2),i=e.read_shift(n.biff==12?4:2),s=Fc(e),o=Fc(e);return{s:{r,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:o[0],cRel:o[1],rRel:o[2]}}}function U4(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return qO(e);var r=e.read_shift(n&&n.biff==12?4:2),i=Fc(e);return{r,c:i[0],cRel:i[1],rRel:i[2]}}function qO(e){var t=Fc(e),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}function KO(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:n&255,fQuoted:!!(n&16384),cRel:n>>15,rRel:n>>15}}function ZO(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return QO(e);var i=e.read_shift(r>=12?4:2),s=e.read_shift(2),o=(s&16384)>>14,u=(s&32768)>>15;if(s&=16383,u==1)for(;i>524287;)i-=1048576;if(o==1)for(;s>8191;)s=s-16384;return{r:i,c:s,cRel:o,rRel:u}}function QO(e){var t=e.read_shift(2),n=e.read_shift(1),r=(t&32768)>>15,i=(t&16384)>>14;return t&=16383,r==1&&t>=8192&&(t=t-16384),i==1&&n>=128&&(n=n-256),{r:t,c:n,cRel:i,rRel:r}}function JO(e,t,n){var r=(e[e.l++]&96)>>5,i=B4(e,n.biff>=2&&n.biff<=5?6:8,n);return[r,i]}function eD(e,t,n){var r=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),s=8;if(n)switch(n.biff){case 5:e.l+=12,s=6;break;case 12:s=12;break}var o=B4(e,s,n);return[r,i,o]}function tD(e,t,n){var r=(e[e.l++]&96)>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}function nD(e,t,n){var r=(e[e.l++]&96)>>5,i=e.read_shift(2),s=8;if(n)switch(n.biff){case 5:e.l+=12,s=6;break;case 12:s=12;break}return e.l+=s,[r,i]}function rD(e,t,n){var r=(e[e.l++]&96)>>5,i=XO(e,t-1,n);return[r,i]}function aD(e,t,n){var r=(e[e.l++]&96)>>5;return e.l+=n.biff==2?6:n.biff==12?14:7,[r]}function Qw(e){var t=e[e.l+1]&1,n=1;return e.l+=4,[t,n]}function iD(e,t,n){e.l+=2;for(var r=e.read_shift(n&&n.biff==2?1:2),i=[],s=0;s<=r;++s)i.push(e.read_shift(n&&n.biff==2?1:2));return i}function lD(e,t,n){var r=e[e.l+1]&255?1:0;return e.l+=2,[r,e.read_shift(n&&n.biff==2?1:2)]}function sD(e,t,n){var r=e[e.l+1]&255?1:0;return e.l+=2,[r,e.read_shift(n&&n.biff==2?1:2)]}function oD(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function cD(e,t,n){var r=e[e.l+1]&255?1:0;return e.l+=n&&n.biff==2?3:4,[r]}function I4(e){var t=e.read_shift(1),n=e.read_shift(1);return[t,n]}function fD(e){return e.read_shift(2),I4(e)}function uD(e){return e.read_shift(2),I4(e)}function dD(e,t,n){var r=(e[e.l]&96)>>5;e.l+=1;var i=U4(e,0,n);return[r,i]}function hD(e,t,n){var r=(e[e.l]&96)>>5;e.l+=1;var i=ZO(e,0,n);return[r,i]}function mD(e,t,n){var r=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);n&&n.biff==5&&(e.l+=12);var s=U4(e,0,n);return[r,i,s]}function pD(e,t,n){var r=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(n&&n.biff<=3?1:2);return[p9[i],$4[i],r]}function gD(e,t,n){var r=e[e.l++],i=e.read_shift(1),s=n&&n.biff<=3?[r==88?-1:0,e.read_shift(1)]:xD(e);return[i,(s[0]===0?$4:m9)[s[1]]]}function xD(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function vD(e,t,n){e.l+=n&&n.biff==2?3:4}function yD(e,t,n){if(e.l++,n&&n.biff==12)return[e.read_shift(4,"i"),0];var r=e.read_shift(2),i=e.read_shift(n&&n.biff==2?1:2);return[r,i]}function _D(e){return e.l++,rm[e.read_shift(1)]}function wD(e){return e.l++,e.read_shift(2)}function ED(e){return e.l++,e.read_shift(1)!==0}function SD(e){return e.l++,ld(e)}function bD(e,t,n){return e.l++,E4(e,t-1,n)}function TD(e,t){var n=[e.read_shift(1)];if(t==12)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2;break}switch(n[0]){case 4:n[1]=m7(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:n[1]=rm[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:n[1]=ld(e);break;case 2:n[1]=v7(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function ND(e,t,n){for(var r=e.read_shift(n.biff==12?4:2),i=[],s=0;s!=r;++s)i.push((n.biff==12?du:w7)(e));return i}function CD(e,t,n){var r=0,i=0;n.biff==12?(r=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,--i==0&&(i=256));for(var s=0,o=[];s!=r&&(o[s]=[]);++s)for(var u=0;u!=i;++u)o[s][u]=TD(e,n.biff);return o}function AD(e,t,n){var r=e.read_shift(1)>>>5&3,i=!n||n.biff>=8?4:2,s=e.read_shift(i);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[r,0,s]}function RD(e,t,n){if(n.biff==5)return OD(e);var r=e.read_shift(1)>>>5&3,i=e.read_shift(2),s=e.read_shift(4);return[r,i,s]}function OD(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}function DD(e,t,n){var r=e.read_shift(1)>>>5&3;e.l+=n&&n.biff==2?3:4;var i=e.read_shift(n&&n.biff==2?1:2);return[r,i]}function jD(e,t,n){var r=e.read_shift(1)>>>5&3,i=e.read_shift(n&&n.biff==2?1:2);return[r,i]}function kD(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,n.biff==12&&(e.l+=2),[r]}function FD(e,t,n){var r=(e[e.l++]&96)>>5,i=e.read_shift(2),s=4;if(n)switch(n.biff){case 5:s=15;break;case 12:s=6;break}return e.l+=s,[r,i]}var LD=ks,MD=ks,BD=ks;function am(e,t,n){return e.l+=2,[KO(e)]}function Xy(e){return e.l+=6,[]}var PD=am,UD=Xy,ID=Xy,YD=am;function Y4(e){return e.l+=2,[_4(e),e.read_shift(2)&1]}var HD=am,$D=Y4,zD=Xy,GD=am,WD=am,VD=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function XD(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i=e.read_shift(2),s=e.read_shift(2),o=VD[n>>2&31];return{ixti:t,coltype:n&3,rt:o,idx:r,c:i,C:s}}function qD(e){return e.l+=2,[e.read_shift(4)]}function KD(e,t,n){return e.l+=5,e.l+=2,e.l+=n.biff==2?1:4,["PTGSHEET"]}function ZD(e,t,n){return e.l+=n.biff==2?4:5,["PTGENDSHEET"]}function QD(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function JD(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function e9(e){return e.l+=4,[0,0]}var Jw={1:{n:"PtgExp",f:yD},2:{n:"PtgTbl",f:BD},3:{n:"PtgAdd",f:Tr},4:{n:"PtgSub",f:Tr},5:{n:"PtgMul",f:Tr},6:{n:"PtgDiv",f:Tr},7:{n:"PtgPower",f:Tr},8:{n:"PtgConcat",f:Tr},9:{n:"PtgLt",f:Tr},10:{n:"PtgLe",f:Tr},11:{n:"PtgEq",f:Tr},12:{n:"PtgGe",f:Tr},13:{n:"PtgGt",f:Tr},14:{n:"PtgNe",f:Tr},15:{n:"PtgIsect",f:Tr},16:{n:"PtgUnion",f:Tr},17:{n:"PtgRange",f:Tr},18:{n:"PtgUplus",f:Tr},19:{n:"PtgUminus",f:Tr},20:{n:"PtgPercent",f:Tr},21:{n:"PtgParen",f:Tr},22:{n:"PtgMissArg",f:Tr},23:{n:"PtgStr",f:bD},26:{n:"PtgSheet",f:KD},27:{n:"PtgEndSheet",f:ZD},28:{n:"PtgErr",f:_D},29:{n:"PtgBool",f:ED},30:{n:"PtgInt",f:wD},31:{n:"PtgNum",f:SD},32:{n:"PtgArray",f:aD},33:{n:"PtgFunc",f:pD},34:{n:"PtgFuncVar",f:gD},35:{n:"PtgName",f:AD},36:{n:"PtgRef",f:dD},37:{n:"PtgArea",f:JO},38:{n:"PtgMemArea",f:DD},39:{n:"PtgMemErr",f:LD},40:{n:"PtgMemNoMem",f:MD},41:{n:"PtgMemFunc",f:jD},42:{n:"PtgRefErr",f:kD},43:{n:"PtgAreaErr",f:tD},44:{n:"PtgRefN",f:hD},45:{n:"PtgAreaN",f:rD},46:{n:"PtgMemAreaN",f:QD},47:{n:"PtgMemNoMemN",f:JD},57:{n:"PtgNameX",f:RD},58:{n:"PtgRef3d",f:mD},59:{n:"PtgArea3d",f:eD},60:{n:"PtgRefErr3d",f:FD},61:{n:"PtgAreaErr3d",f:nD},255:{}},t9={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},n9={1:{n:"PtgElfLel",f:Y4},2:{n:"PtgElfRw",f:GD},3:{n:"PtgElfCol",f:PD},6:{n:"PtgElfRwV",f:WD},7:{n:"PtgElfColV",f:YD},10:{n:"PtgElfRadical",f:HD},11:{n:"PtgElfRadicalS",f:zD},13:{n:"PtgElfColS",f:UD},15:{n:"PtgElfColSV",f:ID},16:{n:"PtgElfRadicalLel",f:$D},25:{n:"PtgList",f:XD},29:{n:"PtgSxName",f:qD},255:{}},r9={0:{n:"PtgAttrNoop",f:e9},1:{n:"PtgAttrSemi",f:cD},2:{n:"PtgAttrIf",f:sD},4:{n:"PtgAttrChoose",f:iD},8:{n:"PtgAttrGoto",f:lD},16:{n:"PtgAttrSum",f:vD},32:{n:"PtgAttrBaxcel",f:Qw},33:{n:"PtgAttrBaxcel",f:Qw},64:{n:"PtgAttrSpace",f:fD},65:{n:"PtgAttrSpaceSemi",f:uD},128:{n:"PtgAttrIfError",f:oD},255:{}};function a9(e,t,n,r){if(r.biff<8)return ks(e,t);for(var i=e.l+t,s=[],o=0;o!==n.length;++o)switch(n[o][0]){case"PtgArray":n[o][1]=CD(e,0,r),s.push(n[o][1]);break;case"PtgMemArea":n[o][2]=ND(e,n[o][1],r),s.push(n[o][2]);break;case"PtgExp":r&&r.biff==12&&(n[o][1][1]=e.read_shift(4),s.push(n[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[o][0]}return t=i-e.l,t!==0&&s.push(ks(e,t)),s}function i9(e,t,n){for(var r=e.l+t,i,s,o=[];r!=e.l;)t=r-e.l,s=e[e.l],i=Jw[s]||Jw[t9[s]],(s===24||s===25)&&(i=(s===24?n9:r9)[e[e.l+1]]),!i||!i.f?ks(e,t):o.push([i.n,i.f(e,t,n)]);return o}function l9(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n],i=[],s=0;s<r.length;++s){var o=r[s];if(o)switch(o[0]){case 2:i.push('"'+o[1].replace(/"/g,'""')+'"');break;default:i.push(o[1])}else i.push("")}t.push(i.join(","))}return t.join(";")}var s9={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function o9(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 H4(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var i="";if(n.biff>8)switch(e[r[0]][0]){case 357:return i=r[1]==-1?"#REF":e.SheetNames[r[1]],r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 358:return n.SID!=null?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];case 355:default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return i=r[1]==-1?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map(function(s){return s.Name}).join(";;");default:return e[r[0]][0][3]?(i=r[1]==-1?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?i:i+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function eE(e,t,n){var r=H4(e,t,n);return r=="#REF"?r:o9(r,n)}function Z0(e,t,n,r,i){var s=i&&i.biff||8,o={s:{c:0,r:0},e:{c:0,r:0}},u=[],d,p,x,y=0,v=0,w,b="";if(!e[0]||!e[0][0])return"";for(var S=-1,T="",C=0,R=e[0].length;C<R;++C){var A=e[0][C];switch(A[0]){case"PtgUminus":u.push("-"+u.pop());break;case"PtgUplus":u.push("+"+u.pop());break;case"PtgPercent":u.push(u.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(d=u.pop(),p=u.pop(),S>=0){switch(e[0][S][1][0]){case 0:T=pr(" ",e[0][S][1][1]);break;case 1:T=pr("\r",e[0][S][1][1]);break;default:if(T="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][S][1][0])}p=p+T,S=-1}u.push(p+s9[A[0]]+d);break;case"PtgIsect":d=u.pop(),p=u.pop(),u.push(p+" "+d);break;case"PtgUnion":d=u.pop(),p=u.pop(),u.push(p+","+d);break;case"PtgRange":d=u.pop(),p=u.pop(),u.push(p+":"+d);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":x=b1(A[1][1],o,i),u.push(T1(x,s));break;case"PtgRefN":x=n?b1(A[1][1],n,i):A[1][1],u.push(T1(x,s));break;case"PtgRef3d":y=A[1][1],x=b1(A[1][2],o,i),b=eE(r,y,i),u.push(b+"!"+T1(x,s));break;case"PtgFunc":case"PtgFuncVar":var j=A[1][0],O=A[1][1];j||(j=0),j&=127;var B=j==0?[]:u.slice(-j);u.length-=j,O==="User"&&(O=B.shift()),u.push(O+"("+B.join(",")+")");break;case"PtgBool":u.push(A[1]?"TRUE":"FALSE");break;case"PtgInt":u.push(A[1]);break;case"PtgNum":u.push(String(A[1]));break;case"PtgStr":u.push('"'+A[1].replace(/"/g,'""')+'"');break;case"PtgErr":u.push(A[1]);break;case"PtgAreaN":w=Pw(A[1][1],n?{s:n}:o,i),u.push(d2(w,i));break;case"PtgArea":w=Pw(A[1][1],o,i),u.push(d2(w,i));break;case"PtgArea3d":y=A[1][1],w=A[1][2],b=eE(r,y,i),u.push(b+"!"+d2(w,i));break;case"PtgAttrSum":u.push("SUM("+u.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":v=A[1][2];var L=(r.names||[])[v-1]||(r[0]||[])[v],I=L?L.Name:"SH33TJSNAME"+String(v);I&&I.slice(0,6)=="_xlfn."&&!i.xlfn&&(I=I.slice(6)),u.push(I);break;case"PtgNameX":var U=A[1][1];v=A[1][2];var W;if(i.biff<=5)U<0&&(U=-U),r[U]&&(W=r[U][v]);else{var X="";if(((r[U]||[])[0]||[])[0]==14849||(((r[U]||[])[0]||[])[0]==1025?r[U][v]&&r[U][v].itab>0&&(X=r.SheetNames[r[U][v].itab-1]+"!"):X=r.SheetNames[v-1]+"!"),r[U]&&r[U][v])X+=r[U][v].Name;else if(r[0]&&r[0][v])X+=r[0][v].Name;else{var te=(H4(r,U,i)||"").split(";;");te[v-1]?X=te[v-1]:X+="SH33TJSERRX"}u.push(X);break}W||(W={Name:"SH33TJSERRY"}),u.push(W.Name);break;case"PtgParen":var ne="(",_e=")";if(S>=0){switch(T="",e[0][S][1][0]){case 2:ne=pr(" ",e[0][S][1][1])+ne;break;case 3:ne=pr("\r",e[0][S][1][1])+ne;break;case 4:_e=pr(" ",e[0][S][1][1])+_e;break;case 5:_e=pr("\r",e[0][S][1][1])+_e;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][S][1][0])}S=-1}u.push(ne+u.pop()+_e);break;case"PtgRefErr":u.push("#REF!");break;case"PtgRefErr3d":u.push("#REF!");break;case"PtgExp":x={c:A[1][1],r:A[1][0]};var ye={c:n.c,r:n.r};if(r.sharedf[Bn(x)]){var ce=r.sharedf[Bn(x)];u.push(Z0(ce,o,ye,r,i))}else{var Te=!1;for(d=0;d!=r.arrayf.length;++d)if(p=r.arrayf[d],!(x.c<p[0].s.c||x.c>p[0].e.c)&&!(x.r<p[0].s.r||x.r>p[0].e.r)){u.push(Z0(p[1],o,ye,r,i)),Te=!0;break}Te||u.push(A[1])}break;case"PtgArray":u.push("{"+l9(A[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":S=C;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":u.push("");break;case"PtgAreaErr":u.push("#REF!");break;case"PtgAreaErr3d":u.push("#REF!");break;case"PtgList":u.push("Table"+A[1].idx+"[#"+A[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(A));default:throw new Error("Unrecognized Formula Token: "+String(A))}var Ne=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&S>=0&&Ne.indexOf(e[0][C][0])==-1){A=e[0][S];var $e=!0;switch(A[1][0]){case 4:$e=!1;case 0:T=pr(" ",A[1][1]);break;case 5:$e=!1;case 1:T=pr("\r",A[1][1]);break;default:if(T="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+A[1][0])}u.push(($e?T:"")+u.pop()+($e?"":T)),S=-1}}if(u.length>1&&i.WTF)throw new Error("bad formula stack");return u[0]}function c9(e){if(e==null){var t=ke(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 ru(e);return ru(0)}function f9(e,t,n,r,i){var s=au(t,n,i),o=c9(e.v),u=ke(6),d=33;u.write_shift(2,d),u.write_shift(4,0);for(var p=ke(e.bf.length),x=0;x<e.bf.length;++x)p[x]=e.bf[x];var y=ra([s,o,u,p]);return y}function bx(e,t,n){var r=e.read_shift(4),i=i9(e,r,n),s=e.read_shift(4),o=s>0?a9(e,s,i,n):null;return[i,o]}var u9=bx,Tx=bx,d9=bx,h9=bx,m9={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"},$4={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"},p9={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 g9(e){var t="of:="+e.replace(Wy,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function x9(e){return e.replace(/\./,"!")}var N1=typeof Map<"u";function qy(e,t,n){var r=0,i=e.length;if(n){if(N1?n.has(t):Object.prototype.hasOwnProperty.call(n,t)){for(var s=N1?n.get(t):n[t];r<s.length;++r)if(e[s[r]].t===t)return e.Count++,s[r]}}else for(;r<i;++r)if(e[r].t===t)return e.Count++,r;return e[i]={t},e.Count++,e.Unique++,n&&(N1?(n.has(t)||n.set(t,[]),n.get(t).push(i)):(Object.prototype.hasOwnProperty.call(n,t)||(n[t]=[]),n[t].push(i))),i}function Nx(e,t){var n={min:e+1,max:e+1},r=-1;return t.MDW&&(xo=t.MDW),t.width!=null?n.customWidth=1:t.wpx!=null?r=Qg(t.wpx):t.wch!=null&&(r=t.wch),r>-1?(n.width=B2(r),n.customWidth=1):t.width!=null&&(n.width=t.width),t.hidden&&(n.hidden=!0),t.level!=null&&(n.outlineLevel=n.level=t.level),n}function z4(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];e.left==null&&(e.left=n[0]),e.right==null&&(e.right=n[1]),e.top==null&&(e.top=n[2]),e.bottom==null&&(e.bottom=n[3]),e.header==null&&(e.header=n[4]),e.footer==null&&(e.footer=n[5])}}function Uc(e,t,n){var r=n.revssf[t.z!=null?t.z:"General"],i=60,s=e.length;if(r==null&&n.ssf){for(;i<392;++i)if(n.ssf[i]==null){U3(t.z,i),n.ssf[i]=t.z,n.revssf[t.z]=r=i;break}}for(i=0;i!=s;++i)if(e[i].numFmtId===r)return i;return e[s]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},s}function v9(e,t,n){if(e&&e["!ref"]){var r=Jn(e["!ref"]);if(r.e.c<r.s.c||r.e.r<r.s.r)throw new Error("Bad range ("+n+"): "+e["!ref"])}}function y9(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',n=0;n!=e.length;++n)t+='<mergeCell ref="'+Cr(e[n])+'"/>';return t+"</mergeCells>"}function _9(e,t,n,r,i){var s=!1,o={},u=null;if(r.bookType!=="xlsx"&&t.vbaraw){var d=t.SheetNames[n];try{t.Workbook&&(d=t.Workbook.Sheets[n].CodeName||d)}catch{}s=!0,o.codeName=L1(Mn(d))}if(e&&e["!outline"]){var p={summaryBelow:1,summaryRight:1};e["!outline"].above&&(p.summaryBelow=0),e["!outline"].left&&(p.summaryRight=0),u=(u||"")+nt("outlinePr",null,p)}!s&&!u||(i[i.length]=nt("sheetPr",u,o))}var w9=["objects","scenarios","selectLockedCells","selectUnlockedCells"],E9=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function S9(e){var t={sheet:1};return w9.forEach(function(n){e[n]!=null&&e[n]&&(t[n]="1")}),E9.forEach(function(n){e[n]!=null&&!e[n]&&(t[n]="0")}),e.password&&(t.password=C4(e.password).toString(16).toUpperCase()),nt("sheetProtection",null,t)}function b9(e){return z4(e),nt("pageMargins",null,e)}function T9(e,t){for(var n=["<cols>"],r,i=0;i!=t.length;++i)(r=t[i])&&(n[n.length]=nt("col",null,Nx(i,r)));return n[n.length]="</cols>",n.join("")}function N9(e,t,n,r){var i=typeof e.ref=="string"?e.ref:Cr(e.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var s=n.Workbook.Names,o=Mi(i);o.s.r==o.e.r&&(o.e.r=Mi(t["!ref"]).e.r,i=Cr(o));for(var u=0;u<s.length;++u){var d=s[u];if(d.Name=="_xlnm._FilterDatabase"&&d.Sheet==r){d.Ref="'"+n.SheetNames[r]+"'!"+i;break}}return u==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+i}),nt("autoFilter",null,{ref:i})}function C9(e,t,n,r){var i={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),nt("sheetViews",nt("sheetView",null,i),{})}function A9(e,t,n,r){if(e.c&&n["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var i="",s=e.t,o=e.v;if(e.t!=="z")switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=rm[e.v];break;case"d":r&&r.cellDates?i=za(e.v,-1).toISOString():(e=ci(e),e.t="n",i=""+(e.v=oi(za(e.v)))),typeof e.z>"u"&&(e.z=gr[14]);break;default:i=e.v;break}var u=aa("v",Mn(i)),d={r:t},p=Uc(r.cellXfs,e,r);switch(p!==0&&(d.s=p),e.t){case"n":break;case"d":d.t="d";break;case"b":d.t="b";break;case"e":d.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(r&&r.bookSST){u=aa("v",""+qy(r.Strings,e.v,r.revStrings)),d.t="s";break}d.t="str";break}if(e.t!=s&&(e.t=s,e.v=o),typeof e.f=="string"&&e.f){var x=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;u=nt("f",Mn(e.f),x)+(e.v!=null?u:"")}return e.l&&n["!links"].push([t,e.l]),e.D&&(d.cm=1),nt("c",u,d)}function R9(e,t,n,r){var i=[],s=[],o=Jn(e["!ref"]),u="",d,p="",x=[],y=0,v=0,w=e["!rows"],b=Array.isArray(e),S={r:p},T,C=-1;for(v=o.s.c;v<=o.e.c;++v)x[v]=va(v);for(y=o.s.r;y<=o.e.r;++y){for(s=[],p=ia(y),v=o.s.c;v<=o.e.c;++v){d=x[v]+p;var R=b?(e[y]||[])[v]:e[d];R!==void 0&&(u=A9(R,d,e,t))!=null&&s.push(u)}(s.length>0||w&&w[y])&&(S={r:p},w&&w[y]&&(T=w[y],T.hidden&&(S.hidden=1),C=-1,T.hpx?C=Jg(T.hpx):T.hpt&&(C=T.hpt),C>-1&&(S.ht=C,S.customHeight=1),T.level&&(S.outlineLevel=T.level)),i[i.length]=nt("row",s.join(""),S))}if(w)for(;y<w.length;++y)w&&w[y]&&(S={r:y+1},T=w[y],T.hidden&&(S.hidden=1),C=-1,T.hpx?C=Jg(T.hpx):T.hpt&&(C=T.hpt),C>-1&&(S.ht=C,S.customHeight=1),T.level&&(S.outlineLevel=T.level),i[i.length]=nt("row","",S));return i.join("")}function G4(e,t,n,r){var i=[Rr,nt("worksheet",null,{xmlns:rd[0],"xmlns:r":Hr.r})],s=n.SheetNames[e],o=0,u="",d=n.Sheets[s];d==null&&(d={});var p=d["!ref"]||"A1",x=Jn(p);if(x.e.c>16383||x.e.r>1048575){if(t.WTF)throw new Error("Range "+p+" exceeds format limit A1:XFD1048576");x.e.c=Math.min(x.e.c,16383),x.e.r=Math.min(x.e.c,1048575),p=Cr(x)}r||(r={}),d["!comments"]=[];var y=[];_9(d,n,e,t,i),i[i.length]=nt("dimension",null,{ref:p}),i[i.length]=C9(d,t,e,n),t.sheetFormat&&(i[i.length]=nt("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),d["!cols"]!=null&&d["!cols"].length>0&&(i[i.length]=T9(d,d["!cols"])),i[o=i.length]="<sheetData/>",d["!links"]=[],d["!ref"]!=null&&(u=R9(d,t),u.length>0&&(i[i.length]=u)),i.length>o+1&&(i[i.length]="</sheetData>",i[o]=i[o].replace("/>",">")),d["!protect"]&&(i[i.length]=S9(d["!protect"])),d["!autofilter"]!=null&&(i[i.length]=N9(d["!autofilter"],d,n,e)),d["!merges"]!=null&&d["!merges"].length>0&&(i[i.length]=y9(d["!merges"]));var v=-1,w,b=-1;return d["!links"].length>0&&(i[i.length]="<hyperlinks>",d["!links"].forEach(function(S){S[1].Target&&(w={ref:S[0]},S[1].Target.charAt(0)!="#"&&(b=Ln(r,-1,Mn(S[1].Target).replace(/#.*$/,""),wn.HLINK),w["r:id"]="rId"+b),(v=S[1].Target.indexOf("#"))>-1&&(w.location=Mn(S[1].Target.slice(v+1))),S[1].Tooltip&&(w.tooltip=Mn(S[1].Tooltip)),i[i.length]=nt("hyperlink",null,w))}),i[i.length]="</hyperlinks>"),delete d["!links"],d["!margins"]!=null&&(i[i.length]=b9(d["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(i[i.length]=aa("ignoredErrors",nt("ignoredError",null,{numberStoredAsText:1,sqref:p}))),y.length>0&&(b=Ln(r,-1,"../drawings/drawing"+(e+1)+".xml",wn.DRAW),i[i.length]=nt("drawing",null,{"r:id":"rId"+b}),d["!drawing"]=y),d["!comments"].length>0&&(b=Ln(r,-1,"../drawings/vmlDrawing"+(e+1)+".vml",wn.VML),i[i.length]=nt("legacyDrawing",null,{"r:id":"rId"+b}),d["!legacy"]=b),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function O9(e,t){var n={},r=e.l+t;n.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var s=e.read_shift(1);return e.l=r,s&7&&(n.level=s&7),s&16&&(n.hidden=!0),s&32&&(n.hpt=i/20),n}function D9(e,t,n){var r=ke(145),i=(n["!rows"]||[])[e]||{};r.write_shift(4,e),r.write_shift(4,0);var s=320;i.hpx?s=Jg(i.hpx)*20:i.hpt&&(s=i.hpt*20),r.write_shift(2,s),r.write_shift(1,0);var o=0;i.level&&(o|=i.level),i.hidden&&(o|=16),(i.hpx||i.hpt)&&(o|=32),r.write_shift(1,o),r.write_shift(1,0);var u=0,d=r.l;r.l+=4;for(var p={r:e,c:0},x=0;x<16;++x)if(!(t.s.c>x+1<<10||t.e.c<x<<10)){for(var y=-1,v=-1,w=x<<10;w<x+1<<10;++w){p.c=w;var b=Array.isArray(n)?(n[p.r]||[])[p.c]:n[Bn(p)];b&&(y<0&&(y=w),v=w)}y<0||(++u,r.write_shift(4,y),r.write_shift(4,v))}var S=r.l;return r.l=d,r.write_shift(4,u),r.l=S,r.length>r.l?r.slice(0,r.l):r}function j9(e,t,n,r){var i=D9(r,n,t);(i.length>17||(t["!rows"]||[])[r])&&ze(e,0,i)}var k9=du,F9=id;function L9(){}function M9(e,t){var n={},r=e[e.l];return++e.l,n.above=!(r&64),n.left=!(r&128),e.l+=18,n.name=WR(e),n}function B9(e,t,n){n==null&&(n=ke(84+4*e.length));var r=192;t&&(t.above&&(r&=-65),t.left&&(r&=-129)),n.write_shift(1,r);for(var i=1;i<3;++i)n.write_shift(1,0);return qg({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),l4(e,n),n.slice(0,n.l)}function P9(e){var t=ml(e);return[t]}function U9(e,t,n){return n==null&&(n=ke(8)),cu(t,n)}function I9(e){var t=fu(e);return[t]}function Y9(e,t,n){return n==null&&(n=ke(4)),uu(t,n)}function H9(e){var t=ml(e),n=e.read_shift(1);return[t,n,"b"]}function $9(e,t,n){return n==null&&(n=ke(9)),cu(t,n),n.write_shift(1,e.v?1:0),n}function z9(e){var t=fu(e),n=e.read_shift(1);return[t,n,"b"]}function G9(e,t,n){return n==null&&(n=ke(5)),uu(t,n),n.write_shift(1,e.v?1:0),n}function W9(e){var t=ml(e),n=e.read_shift(1);return[t,n,"e"]}function V9(e,t,n){return n==null&&(n=ke(9)),cu(t,n),n.write_shift(1,e.v),n}function X9(e){var t=fu(e),n=e.read_shift(1);return[t,n,"e"]}function q9(e,t,n){return n==null&&(n=ke(8)),uu(t,n),n.write_shift(1,e.v),n.write_shift(2,0),n.write_shift(1,0),n}function K9(e){var t=ml(e),n=e.read_shift(4);return[t,n,"s"]}function Z9(e,t,n){return n==null&&(n=ke(12)),cu(t,n),n.write_shift(4,t.v),n}function Q9(e){var t=fu(e),n=e.read_shift(4);return[t,n,"s"]}function J9(e,t,n){return n==null&&(n=ke(8)),uu(t,n),n.write_shift(4,t.v),n}function ej(e){var t=ml(e),n=ld(e);return[t,n,"n"]}function tj(e,t,n){return n==null&&(n=ke(16)),cu(t,n),ru(e.v,n),n}function nj(e){var t=fu(e),n=ld(e);return[t,n,"n"]}function rj(e,t,n){return n==null&&(n=ke(12)),uu(t,n),ru(e.v,n),n}function aj(e){var t=ml(e),n=s4(e);return[t,n,"n"]}function ij(e,t,n){return n==null&&(n=ke(12)),cu(t,n),o4(e.v,n),n}function lj(e){var t=fu(e),n=s4(e);return[t,n,"n"]}function sj(e,t,n){return n==null&&(n=ke(8)),uu(t,n),o4(e.v,n),n}function oj(e){var t=ml(e),n=Yy(e);return[t,n,"is"]}function cj(e){var t=ml(e),n=ya(e);return[t,n,"str"]}function fj(e,t,n){return n==null&&(n=ke(12+4*e.v.length)),cu(t,n),zr(e.v,n),n.length>n.l?n.slice(0,n.l):n}function uj(e){var t=fu(e),n=ya(e);return[t,n,"str"]}function dj(e,t,n){return n==null&&(n=ke(8+4*e.v.length)),uu(t,n),zr(e.v,n),n.length>n.l?n.slice(0,n.l):n}function hj(e,t,n){var r=e.l+t,i=ml(e);i.r=n["!row"];var s=e.read_shift(1),o=[i,s,"b"];if(n.cellFormula){e.l+=2;var u=Tx(e,r-e.l,n);o[3]=Z0(u,null,i,n.supbooks,n)}else e.l=r;return o}function mj(e,t,n){var r=e.l+t,i=ml(e);i.r=n["!row"];var s=e.read_shift(1),o=[i,s,"e"];if(n.cellFormula){e.l+=2;var u=Tx(e,r-e.l,n);o[3]=Z0(u,null,i,n.supbooks,n)}else e.l=r;return o}function pj(e,t,n){var r=e.l+t,i=ml(e);i.r=n["!row"];var s=ld(e),o=[i,s,"n"];if(n.cellFormula){e.l+=2;var u=Tx(e,r-e.l,n);o[3]=Z0(u,null,i,n.supbooks,n)}else e.l=r;return o}function gj(e,t,n){var r=e.l+t,i=ml(e);i.r=n["!row"];var s=ya(e),o=[i,s,"str"];if(n.cellFormula){e.l+=2;var u=Tx(e,r-e.l,n);o[3]=Z0(u,null,i,n.supbooks,n)}else e.l=r;return o}var xj=du,vj=id;function yj(e,t){return t==null&&(t=ke(4)),t.write_shift(4,e),t}function _j(e,t){var n=e.l+t,r=du(e),i=Hy(e),s=ya(e),o=ya(e),u=ya(e);e.l=n;var d={rfx:r,relId:i,loc:s,display:u};return o&&(d.Tooltip=o),d}function wj(e,t){var n=ke(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));id({s:$r(e[0]),e:$r(e[0])},n),$y("rId"+t,n);var r=e[1].Target.indexOf("#"),i=r==-1?"":e[1].Target.slice(r+1);return zr(i||"",n),zr(e[1].Tooltip||"",n),zr("",n),n.slice(0,n.l)}function Ej(){}function Sj(e,t,n){var r=e.l+t,i=c4(e),s=e.read_shift(1),o=[i];if(o[2]=s,n.cellFormula){var u=u9(e,r-e.l,n);o[1]=u}else e.l=r;return o}function bj(e,t,n){var r=e.l+t,i=du(e),s=[i];if(n.cellFormula){var o=h9(e,r-e.l,n);s[1]=o,e.l=r}else e.l=r;return s}function Tj(e,t,n){n==null&&(n=ke(18));var r=Nx(e,t);n.write_shift(-4,e),n.write_shift(-4,e),n.write_shift(4,(r.width||10)*256),n.write_shift(4,0);var i=0;return t.hidden&&(i|=1),typeof r.width=="number"&&(i|=2),t.level&&(i|=t.level<<8),n.write_shift(2,i),n}var W4=["left","right","top","bottom","header","footer"];function Nj(e){var t={};return W4.forEach(function(n){t[n]=ld(e)}),t}function Cj(e,t){return t==null&&(t=ke(6*8)),z4(e),W4.forEach(function(n){ru(e[n],t)}),t}function Aj(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function Rj(e,t,n){n==null&&(n=ke(30));var r=924;return(((t||{}).Views||[])[0]||{}).RTL&&(r|=32),n.write_shift(2,r),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}function Oj(e){var t=ke(24);return t.write_shift(4,4),t.write_shift(4,1),id(e,t),t}function Dj(e,t){return t==null&&(t=ke(16*4+2)),t.write_shift(2,e.password?C4(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(n){n[1]?t.write_shift(4,e[n[0]]!=null&&!e[n[0]]?1:0):t.write_shift(4,e[n[0]]!=null&&e[n[0]]?0:1)}),t}function jj(){}function kj(){}function Fj(e,t,n,r,i,s,o){if(t.v===void 0)return!1;var u="";switch(t.t){case"b":u=t.v?"1":"0";break;case"d":t=ci(t),t.z=t.z||gr[14],t.v=oi(za(t.v)),t.t="n";break;case"n":case"e":u=""+t.v;break;default:u=t.v;break}var d={r:n,c:r};switch(d.s=Uc(i.cellXfs,t,i),t.l&&s["!links"].push([Bn(d),t.l]),t.c&&s["!comments"].push([Bn(d),t.c]),t.t){case"s":case"str":return i.bookSST?(u=qy(i.Strings,t.v,i.revStrings),d.t="s",d.v=u,o?ze(e,18,J9(t,d)):ze(e,7,Z9(t,d))):(d.t="str",o?ze(e,17,dj(t,d)):ze(e,6,fj(t,d))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?o?ze(e,13,sj(t,d)):ze(e,2,ij(t,d)):o?ze(e,16,rj(t,d)):ze(e,5,tj(t,d)),!0;case"b":return d.t="b",o?ze(e,15,G9(t,d)):ze(e,4,$9(t,d)),!0;case"e":return d.t="e",o?ze(e,14,q9(t,d)):ze(e,3,V9(t,d)),!0}return o?ze(e,12,Y9(t,d)):ze(e,1,U9(t,d)),!0}function Lj(e,t,n,r){var i=Jn(t["!ref"]||"A1"),s,o="",u=[];ze(e,145);var d=Array.isArray(t),p=i.e.r;t["!rows"]&&(p=Math.max(i.e.r,t["!rows"].length-1));for(var x=i.s.r;x<=p;++x){o=ia(x),j9(e,t,i,x);var y=!1;if(x<=i.e.r)for(var v=i.s.c;v<=i.e.c;++v){x===i.s.r&&(u[v]=va(v)),s=u[v]+o;var w=d?(t[x]||[])[v]:t[s];if(!w){y=!1;continue}y=Fj(e,w,x,v,r,t,y)}}ze(e,146)}function Mj(e,t){!t||!t["!merges"]||(ze(e,177,yj(t["!merges"].length)),t["!merges"].forEach(function(n){ze(e,176,vj(n))}),ze(e,178))}function Bj(e,t){!t||!t["!cols"]||(ze(e,390),t["!cols"].forEach(function(n,r){n&&ze(e,60,Tj(r,n))}),ze(e,391))}function Pj(e,t){!t||!t["!ref"]||(ze(e,648),ze(e,649,Oj(Jn(t["!ref"]))),ze(e,650))}function Uj(e,t,n){t["!links"].forEach(function(r){if(r[1].Target){var i=Ln(n,-1,r[1].Target.replace(/#.*$/,""),wn.HLINK);ze(e,494,wj(r,i))}}),delete t["!links"]}function Ij(e,t,n,r){if(t["!comments"].length>0){var i=Ln(r,-1,"../drawings/vmlDrawing"+(n+1)+".vml",wn.VML);ze(e,551,$y("rId"+i)),t["!legacy"]=i}}function Yj(e,t,n,r){if(t["!autofilter"]){var i=t["!autofilter"],s=typeof i.ref=="string"?i.ref:Cr(i.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var o=n.Workbook.Names,u=Mi(s);u.s.r==u.e.r&&(u.e.r=Mi(t["!ref"]).e.r,s=Cr(u));for(var d=0;d<o.length;++d){var p=o[d];if(p.Name=="_xlnm._FilterDatabase"&&p.Sheet==r){p.Ref="'"+n.SheetNames[r]+"'!"+s;break}}d==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+s}),ze(e,161,id(Jn(s))),ze(e,162)}}function Hj(e,t,n){ze(e,133),ze(e,137,Rj(t,n)),ze(e,138),ze(e,134)}function $j(e,t){t["!protect"]&&ze(e,535,Dj(t["!protect"]))}function zj(e,t,n,r){var i=li(),s=n.SheetNames[e],o=n.Sheets[s]||{},u=s;try{n&&n.Workbook&&(u=n.Workbook.Sheets[e].CodeName||u)}catch{}var d=Jn(o["!ref"]||"A1");if(d.e.c>16383||d.e.r>1048575){if(t.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],ze(i,129),(n.vbaraw||o["!outline"])&&ze(i,147,B9(u,o["!outline"])),ze(i,148,F9(d)),Hj(i,o,n.Workbook),Bj(i,o),Lj(i,o,e,t),$j(i,o),Yj(i,o,n,e),Mj(i,o),Uj(i,o,r),o["!margins"]&&ze(i,476,Cj(o["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&Pj(i,o),Ij(i,o,e,r),ze(i,130),i.end()}function Gj(e,t){e.l+=10;var n=ya(e);return{name:n}}var Wj=[["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 Vj(e){return!e.Workbook||!e.Workbook.WBProps?"false":bR(e.Workbook.WBProps.date1904)?"true":"false"}var Xj="][*?/\\".split("");function V4(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var n=!0;return Xj.forEach(function(r){if(e.indexOf(r)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),n}function qj(e,t,n){e.forEach(function(r,i){V4(r);for(var s=0;s<i;++s)if(r==e[s])throw new Error("Duplicate Sheet Name: "+r);if(n){var o=t[i]&&t[i].CodeName||r;if(o.charCodeAt(0)==95&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}})}function Kj(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||[];qj(e.SheetNames,t,!!e.vbaraw);for(var n=0;n<e.SheetNames.length;++n)v9(e.Sheets[e.SheetNames[n]],e.SheetNames[n],n)}function X4(e){var t=[Rr];t[t.length]=nt("workbook",null,{xmlns:rd[0],"xmlns:r":Hr.r});var n=e.Workbook&&(e.Workbook.Names||[]).length>0,r={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(Wj.forEach(function(u){e.Workbook.WBProps[u[0]]!=null&&e.Workbook.WBProps[u[0]]!=u[1]&&(r[u[0]]=e.Workbook.WBProps[u[0]])}),e.Workbook.WBProps.CodeName&&(r.codeName=e.Workbook.WBProps.CodeName,delete r.CodeName)),t[t.length]=nt("workbookPr",null,r);var i=e.Workbook&&e.Workbook.Sheets||[],s=0;if(i[0]&&i[0].Hidden){for(t[t.length]="<bookViews>",s=0;s!=e.SheetNames.length&&!(!i[s]||!i[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 o={name:Mn(e.SheetNames[s].slice(0,31))};if(o.sheetId=""+(s+1),o["r:id"]="rId"+(s+1),i[s])switch(i[s].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden";break}t[t.length]=nt("sheet",null,o)}return t[t.length]="</sheets>",n&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(u){var d={name:u.Name};u.Comment&&(d.comment=u.Comment),u.Sheet!=null&&(d.localSheetId=""+u.Sheet),u.Hidden&&(d.hidden="1"),u.Ref&&(t[t.length]=nt("definedName",Mn(u.Ref),d))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function Zj(e,t){var n={};return n.Hidden=e.read_shift(4),n.iTabID=e.read_shift(4),n.strRelID=M2(e),n.name=ya(e),n}function Qj(e,t){return t||(t=ke(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),$y(e.strRelID,t),zr(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function Jj(e,t){var n={},r=e.read_shift(4);n.defaultThemeVersion=e.read_shift(4);var i=t>8?ya(e):"";return i.length>0&&(n.CodeName=i),n.autoCompressPictures=!!(r&65536),n.backupFile=!!(r&64),n.checkCompatibility=!!(r&4096),n.date1904=!!(r&1),n.filterPrivacy=!!(r&8),n.hidePivotFieldList=!!(r&1024),n.promptedSolutions=!!(r&16),n.publishItems=!!(r&2048),n.refreshAllConnections=!!(r&262144),n.saveExternalLinkValues=!!(r&128),n.showBorderUnselectedTables=!!(r&4),n.showInkAnnotation=!!(r&32),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(r&32768),n.updateLinks=["userSet","never","always"][r>>8&3],n}function ek(e,t){t||(t=ke(72));var n=0;return e&&e.filterPrivacy&&(n|=8),t.write_shift(4,n),t.write_shift(4,0),l4(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function tk(e,t,n){var r=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),s=VR(e),o=d9(e,0,n),u=Hy(e);e.l=r;var d={Name:s,Ptg:o};return i<268435455&&(d.Sheet=i),u&&(d.Comment=u),d}function nk(e,t){ze(e,143);for(var n=0;n!=t.SheetNames.length;++n){var r=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[n]&&t.Workbook.Sheets[n].Hidden||0,i={Hidden:r,iTabID:n+1,strRelID:"rId"+(n+1),name:t.SheetNames[n]};ze(e,156,Qj(i))}ze(e,144)}function rk(e,t){t||(t=ke(127));for(var n=0;n!=4;++n)t.write_shift(4,0);return zr("SheetJS",t),zr(Hg.version,t),zr(Hg.version,t),zr("7262",t),t.length>t.l?t.slice(0,t.l):t}function ak(e,t){t||(t=ke(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 n=120;return t.write_shift(1,n),t.length>t.l?t.slice(0,t.l):t}function ik(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var n=t.Workbook.Sheets,r=0,i=-1,s=-1;r<n.length;++r)!n[r]||!n[r].Hidden&&i==-1?i=r:n[r].Hidden==1&&s==-1&&(s=r);s>i||(ze(e,135),ze(e,158,ak(i)),ze(e,136))}}function lk(e,t){var n=li();return ze(n,131),ze(n,128,rk()),ze(n,153,ek(e.Workbook&&e.Workbook.WBProps||null)),ik(n,e),nk(n,e),ze(n,132),n.end()}function sk(e,t,n){return(t.slice(-4)===".bin"?lk:X4)(e)}function ok(e,t,n,r,i){return(t.slice(-4)===".bin"?zj:G4)(e,n,r,i)}function ck(e,t,n){return(t.slice(-4)===".bin"?CO:O4)(e,n)}function fk(e,t,n){return(t.slice(-4)===".bin"?eO:N4)(e,n)}function uk(e,t,n){return(t.slice(-4)===".bin"?$O:L4)(e)}function dk(e){return(e.slice(-4)===".bin"?LO:k4)()}function hk(e,t){var n=[];return e.Props&&n.push(c7(e.Props,t)),e.Custprops&&n.push(f7(e.Props,e.Custprops)),n.join("")}function mk(){return""}function pk(e,t){var n=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(r,i){var s=[];s.push(nt("NumberFormat",null,{"ss:Format":Mn(gr[r.numFmtId])}));var o={"ss:ID":"s"+(21+i)};n.push(nt("Style",s.join(""),o))}),nt("Styles",n.join(""))}function q4(e){return nt("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+Vy(e.Ref,{r:0,c:0})})}function gk(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,n=[],r=0;r<t.length;++r){var i=t[r];i.Sheet==null&&(i.Name.match(/^_xlfn\./)||n.push(q4(i)))}return nt("Names",n.join(""))}function xk(e,t,n,r){if(!e||!((r||{}).Workbook||{}).Names)return"";for(var i=r.Workbook.Names,s=[],o=0;o<i.length;++o){var u=i[o];u.Sheet==n&&(u.Name.match(/^_xlfn\./)||s.push(q4(u)))}return s.join("")}function vk(e,t,n,r){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(nt("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(nt("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(nt("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"})),i.push("</PageSetup>")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[n])if(r.Workbook.Sheets[n].Hidden)i.push(nt("Visible",r.Workbook.Sheets[n].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var s=0;s<n&&!(r.Workbook.Sheets[s]&&!r.Workbook.Sheets[s].Hidden);++s);s==n&&i.push("<Selected/>")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(aa("ProtectContents","True")),e["!protect"].objects&&i.push(aa("ProtectObjects","True")),e["!protect"].scenarios&&i.push(aa("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(aa("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(aa("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(o){e["!protect"][o[0]]&&i.push("<"+o[1]+"/>")})),i.length==0?"":nt("WorksheetOptions",i.join(""),{xmlns:ji.x})}function yk(e){return e.map(function(t){var n=SR(t.t||""),r=nt("ss:Data",n,{xmlns:"http://www.w3.org/TR/REC-html40"});return nt("Comment",r,{"ss:Author":t.a})}).join("")}function _k(e,t,n,r,i,s,o){if(!e||e.v==null&&e.f==null)return"";var u={};if(e.f&&(u["ss:Formula"]="="+Mn(Vy(e.f,o))),e.F&&e.F.slice(0,t.length)==t){var d=$r(e.F.slice(t.length+1));u["ss:ArrayRange"]="RC:R"+(d.r==o.r?"":"["+(d.r-o.r)+"]")+"C"+(d.c==o.c?"":"["+(d.c-o.c)+"]")}if(e.l&&e.l.Target&&(u["ss:HRef"]=Mn(e.l.Target),e.l.Tooltip&&(u["x:HRefScreenTip"]=Mn(e.l.Tooltip))),n["!merges"])for(var p=n["!merges"],x=0;x!=p.length;++x)p[x].s.c!=o.c||p[x].s.r!=o.r||(p[x].e.c>p[x].s.c&&(u["ss:MergeAcross"]=p[x].e.c-p[x].s.c),p[x].e.r>p[x].s.r&&(u["ss:MergeDown"]=p[x].e.r-p[x].s.r));var y="",v="";switch(e.t){case"z":if(!r.sheetStubs)return"";break;case"n":y="Number",v=String(e.v);break;case"b":y="Boolean",v=e.v?"1":"0";break;case"e":y="Error",v=rm[e.v];break;case"d":y="DateTime",v=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||gr[14]);break;case"s":y="String",v=ER(e.v||"");break}var w=Uc(r.cellXfs,e,r);u["ss:StyleID"]="s"+(21+w),u["ss:Index"]=o.c+1;var b=e.v!=null?v:"",S=e.t=="z"?"":'<Data ss:Type="'+y+'">'+b+"</Data>";return(e.c||[]).length>0&&(S+=yk(e.c)),nt("Cell",S,u)}function wk(e,t){var n='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=R4(t.hpt)),t.hpx&&(n+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(n+=' ss:Hidden="1"')),n+">"}function Ek(e,t,n,r){if(!e["!ref"])return"";var i=Jn(e["!ref"]),s=e["!merges"]||[],o=0,u=[];e["!cols"]&&e["!cols"].forEach(function(T,C){Gy(T);var R=!!T.width,A=Nx(C,T),j={"ss:Index":C+1};R&&(j["ss:Width"]=Zg(A.width)),T.hidden&&(j["ss:Hidden"]="1"),u.push(nt("Column",null,j))});for(var d=Array.isArray(e),p=i.s.r;p<=i.e.r;++p){for(var x=[wk(p,(e["!rows"]||[])[p])],y=i.s.c;y<=i.e.c;++y){var v=!1;for(o=0;o!=s.length;++o)if(!(s[o].s.c>y)&&!(s[o].s.r>p)&&!(s[o].e.c<y)&&!(s[o].e.r<p)){(s[o].s.c!=y||s[o].s.r!=p)&&(v=!0);break}if(!v){var w={r:p,c:y},b=Bn(w),S=d?(e[p]||[])[y]:e[b];x.push(_k(S,b,e,t,n,r,w))}}x.push("</Row>"),x.length>2&&u.push(x.join(""))}return u.join("")}function Sk(e,t,n){var r=[],i=n.SheetNames[e],s=n.Sheets[i],o=s?xk(s,t,e,n):"";return o.length>0&&r.push("<Names>"+o+"</Names>"),o=s?Ek(s,t,e,n):"",o.length>0&&r.push("<Table>"+o+"</Table>"),r.push(vk(s,t,e,n)),r.join("")}function bk(e,t){t||(t={}),e.SSF||(e.SSF=ci(gr)),e.SSF&&(wx(),_x(e.SSF),t.revssf=Ex(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Uc(t.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(hk(e,t)),n.push(mk()),n.push(""),n.push("");for(var r=0;r<e.SheetNames.length;++r)n.push(nt("Worksheet",Sk(r,t,e),{"ss:Name":Mn(e.SheetNames[r])}));return n[2]=pk(e,t),n[3]=gk(e),Rr+nt("Workbook",n.join(""),{xmlns:ji.ss,"xmlns:o":ji.o,"xmlns:x":ji.x,"xmlns:ss":ji.ss,"xmlns:dt":ji.dt,"xmlns:html":ji.html})}var p2={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Tk(e,t){var n=[],r=[],i=[],s=0,o,u=Cw(Iw,"n"),d=Cw(Yw,"n");if(e.Props)for(o=sa(e.Props),s=0;s<o.length;++s)(Object.prototype.hasOwnProperty.call(u,o[s])?n:Object.prototype.hasOwnProperty.call(d,o[s])?r:i).push([o[s],e.Props[o[s]]]);if(e.Custprops)for(o=sa(e.Custprops),s=0;s<o.length;++s)Object.prototype.hasOwnProperty.call(e.Props||{},o[s])||(Object.prototype.hasOwnProperty.call(u,o[s])?n:Object.prototype.hasOwnProperty.call(d,o[s])?r:i).push([o[s],e.Custprops[o[s]]]);var p=[];for(s=0;s<i.length;++s)y4.indexOf(i[s][0])>-1||g4.indexOf(i[s][0])>-1||i[s][1]!=null&&p.push(i[s]);r.length&&In.utils.cfb_add(t,"/SummaryInformation",Ww(r,p2.SI,d,Yw)),(n.length||p.length)&&In.utils.cfb_add(t,"/DocumentSummaryInformation",Ww(n,p2.DSI,u,Iw,p.length?p:null,p2.UDI))}function Nk(e,t){var n=t,r=In.utils.cfb_new({root:"R"}),i="/Workbook";switch(n.bookType||"xls"){case"xls":n.bookType="biff8";case"xla":n.bookType||(n.bookType="xla");case"biff8":i="/Workbook",n.biff=8;break;case"biff5":i="/Book",n.biff=5;break;default:throw new Error("invalid type "+n.bookType+" for XLS CFB")}return In.utils.cfb_add(r,i,K4(e,n)),n.biff==8&&(e.Props||e.Custprops)&&Tk(e,r),n.biff==8&&e.vbaraw&&zO(r,In.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),r}var Ck={0:{f:O9},1:{f:P9},2:{f:aj},3:{f:W9},4:{f:H9},5:{f:ej},6:{f:cj},7:{f:K9},8:{f:gj},9:{f:pj},10:{f:hj},11:{f:mj},12:{f:I9},13:{f:lj},14:{f:X9},15:{f:z9},16:{f:nj},17:{f:uj},18:{f:Q9},19:{f:Yy},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:tk},40:{},42:{},43:{f:cO},44:{f:sO},45:{f:dO},46:{f:mO},47:{f:hO},48:{},49:{f:IR},50:{},51:{f:OO},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Y7},62:{f:oj},63:{f:MO},64:{f:jj},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:ks,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:Aj},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:M9},148:{f:k9,p:16},151:{f:Ej},152:{},153:{f:Jj},154:{},155:{},156:{f:Zj},157:{},158:{},159:{T:1,f:Z7},160:{T:-1},161:{T:1,f:du},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:xj},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:AO},336:{T:-1},337:{f:kO,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:M2},357:{},358:{},359:{},360:{T:1},361:{},362:{f:L7},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:Sj},427:{f:bj},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:Nj},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:L9},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:_j},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:M2},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:YO},633:{T:1},634:{T:-1},635:{T:1,f:UO},636:{T:-1},637:{f:zR},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:Gj},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:kj},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 it(e,t,n,r){var i=t;if(!isNaN(i)){var s=r||(n||[]).length||0,o=e.next(4);o.write_shift(2,i),o.write_shift(2,s),s>0&&Py(n)&&e.push(n)}}function Ak(e,t,n,r){var i=(n||[]).length||0;if(i<=8224)return it(e,t,n,i);var s=t;if(!isNaN(s)){for(var o=n.parts||[],u=0,d=0,p=0;p+(o[u]||8224)<=8224;)p+=o[u]||8224,u++;var x=e.next(4);for(x.write_shift(2,s),x.write_shift(2,p),e.push(n.slice(d,d+p)),d+=p;d<i;){for(x=e.next(4),x.write_shift(2,60),p=0;p+(o[u]||8224)<=8224;)p+=o[u]||8224,u++;x.write_shift(2,p),e.push(n.slice(d,d+p)),d+=p}}}function im(e,t,n){return e||(e=ke(7)),e.write_shift(2,t),e.write_shift(2,n),e.write_shift(2,0),e.write_shift(1,0),e}function Rk(e,t,n,r){var i=ke(9);return im(i,e,t),w4(n,r||"b",i),i}function Ok(e,t,n){var r=ke(8+2*n.length);return im(r,e,t),r.write_shift(1,n.length),r.write_shift(n.length,n,"sbcs"),r.l<r.length?r.slice(0,r.l):r}function Dk(e,t,n,r){if(t.v!=null)switch(t.t){case"d":case"n":var i=t.t=="d"?oi(za(t.v)):t.v;i==(i|0)&&i>=0&&i<65536?it(e,2,G7(n,r,i)):it(e,3,z7(n,r,i));return;case"b":case"e":it(e,5,Rk(n,r,t.v,t.t));return;case"s":case"str":it(e,4,Ok(n,r,(t.v||"").slice(0,255)));return}it(e,1,im(null,n,r))}function jk(e,t,n,r){var i=Array.isArray(t),s=Jn(t["!ref"]||"A1"),o,u="",d=[];if(s.e.c>255||s.e.r>16383){if(r.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),o=Cr(s)}for(var p=s.s.r;p<=s.e.r;++p){u=ia(p);for(var x=s.s.c;x<=s.e.c;++x){p===s.s.r&&(d[x]=va(x)),o=d[x]+u;var y=i?(t[p]||[])[x]:t[o];y&&Dk(e,y,p,x)}}}function kk(e,t){for(var n=t||{},r=li(),i=0,s=0;s<e.SheetNames.length;++s)e.SheetNames[s]==n.sheet&&(i=s);if(i==0&&n.sheet&&e.SheetNames[0]!=n.sheet)throw new Error("Sheet not found: "+n.sheet);return it(r,n.biff==4?1033:n.biff==3?521:9,zy(e,16,n)),jk(r,e.Sheets[e.SheetNames[i]],i,n),it(r,10),r.end()}function Fk(e,t,n){it(e,49,C7({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},n))}function Lk(e,t,n){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var i=r[0];i<=r[1];++i)t[i]!=null&&it(e,1054,O7(i,t[i],n))})}function Mk(e,t){var n=ke(19);n.write_shift(4,2151),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,1),n.write_shift(4,0),it(e,2151,n),n=ke(39),n.write_shift(4,2152),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(2,1),n.write_shift(4,4),n.write_shift(2,0),b4(Jn(t["!ref"]||"A1"),n),n.write_shift(4,4),it(e,2152,n)}function Bk(e,t){for(var n=0;n<16;++n)it(e,224,Xw({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(r){it(e,224,Xw(r,0,t))})}function Pk(e,t){for(var n=0;n<t["!links"].length;++n){var r=t["!links"][n];it(e,440,P7(r)),r[1].Tooltip&&it(e,2048,U7(r))}delete t["!links"]}function Uk(e,t){if(t){var n=0;t.forEach(function(r,i){++n<=256&&r&&it(e,125,H7(Nx(i,r),i))})}}function Ik(e,t,n,r,i){var s=16+Uc(i.cellXfs,t,i);if(t.v==null&&!t.bf){it(e,513,au(n,r,s));return}if(t.bf)it(e,6,f9(t,n,r,i,s));else switch(t.t){case"d":case"n":var o=t.t=="d"?oi(za(t.v)):t.v;it(e,515,F7(n,r,o,s));break;case"b":case"e":it(e,517,k7(n,r,t.v,s,i,t.t));break;case"s":case"str":if(i.bookSST){var u=qy(i.Strings,t.v,i.revStrings);it(e,253,A7(n,r,u,s))}else it(e,516,R7(n,r,(t.v||"").slice(0,255),s,i));break;default:it(e,513,au(n,r,s))}}function Yk(e,t,n){var r=li(),i=n.SheetNames[e],s=n.Sheets[i]||{},o=(n||{}).Workbook||{},u=(o.Sheets||[])[e]||{},d=Array.isArray(s),p=t.biff==8,x,y="",v=[],w=Jn(s["!ref"]||"A1"),b=p?65536:16384;if(w.e.c>255||w.e.r>=b){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:IV16384");w.e.c=Math.min(w.e.c,255),w.e.r=Math.min(w.e.c,b-1)}it(r,2057,zy(n,16,t)),it(r,13,sl(1)),it(r,12,sl(100)),it(r,15,Ya(!0)),it(r,17,Ya(!1)),it(r,16,ru(.001)),it(r,95,Ya(!0)),it(r,42,Ya(!1)),it(r,43,Ya(!1)),it(r,130,sl(1)),it(r,128,j7()),it(r,131,Ya(!1)),it(r,132,Ya(!1)),p&&Uk(r,s["!cols"]),it(r,512,D7(w,t)),p&&(s["!links"]=[]);for(var S=w.s.r;S<=w.e.r;++S){y=ia(S);for(var T=w.s.c;T<=w.e.c;++T){S===w.s.r&&(v[T]=va(T)),x=v[T]+y;var C=d?(s[S]||[])[T]:s[x];C&&(Ik(r,C,S,T,t),p&&C.l&&s["!links"].push([x,C.l]))}}var R=u.CodeName||u.name||i;return p&&it(r,574,N7((o.Views||[])[0])),p&&(s["!merges"]||[]).length&&it(r,229,B7(s["!merges"])),p&&Pk(r,s),it(r,442,S4(R)),p&&Mk(r,s),it(r,10),r.end()}function Hk(e,t,n){var r=li(),i=(e||{}).Workbook||{},s=i.Sheets||[],o=i.WBProps||{},u=n.biff==8,d=n.biff==5;if(it(r,2057,zy(e,5,n)),n.bookType=="xla"&&it(r,135),it(r,225,u?sl(1200):null),it(r,193,h7(2)),d&&it(r,191),d&&it(r,192),it(r,226),it(r,92,E7("SheetJS",n)),it(r,66,sl(u?1200:1252)),u&&it(r,353,sl(0)),u&&it(r,448),it(r,317,$7(e.SheetNames.length)),u&&e.vbaraw&&it(r,211),u&&e.vbaraw){var p=o.CodeName||"ThisWorkbook";it(r,442,S4(p))}it(r,156,sl(17)),it(r,25,Ya(!1)),it(r,18,Ya(!1)),it(r,19,sl(0)),u&&it(r,431,Ya(!1)),u&&it(r,444,sl(0)),it(r,61,T7()),it(r,64,Ya(!1)),it(r,141,sl(0)),it(r,34,Ya(Vj(e)=="true")),it(r,14,Ya(!0)),u&&it(r,439,Ya(!1)),it(r,218,sl(0)),Fk(r,e,n),Lk(r,e.SSF,n),Bk(r,n),u&&it(r,352,Ya(!1));var x=r.end(),y=li();u&&it(y,140,I7()),u&&n.Strings&&Ak(y,252,b7(n.Strings)),it(y,10);var v=y.end(),w=li(),b=0,S=0;for(S=0;S<e.SheetNames.length;++S)b+=(u?12:11)+(u?2:1)*e.SheetNames[S].length;var T=x.length+b+v.length;for(S=0;S<e.SheetNames.length;++S){var C=s[S]||{};it(w,133,S7({pos:T,hs:C.Hidden||0,dt:0,name:e.SheetNames[S]},n)),T+=t[S].length}var R=w.end();if(b!=R.length)throw new Error("BS8 "+b+" != "+R.length);var A=[];return x.length&&A.push(x),R.length&&A.push(R),v.length&&A.push(v),ra(A)}function $k(e,t){var n=t||{},r=[];e&&!e.SSF&&(e.SSF=ci(gr)),e&&e.SSF&&(wx(),_x(e.SSF),n.revssf=Ex(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,Ky(n),n.cellXfs=[],Uc(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)r[r.length]=Yk(i,n,e);return r.unshift(Hk(e,r,n)),ra(r)}function K4(e,t){for(var n=0;n<=e.SheetNames.length;++n){var r=e.Sheets[e.SheetNames[n]];if(!(!r||!r["!ref"])){var i=Mi(r["!ref"]);i.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[n]+"' extends beyond column IV (255).  Data may be lost.")}}var s=t||{};switch(s.biff||2){case 8:case 5:return $k(e,t);case 4:case 3:case 2:return kk(e,t)}throw new Error("invalid type "+s.bookType+" for BIFF")}function zk(e,t,n,r){for(var i=e["!merges"]||[],s=[],o=t.s.c;o<=t.e.c;++o){for(var u=0,d=0,p=0;p<i.length;++p)if(!(i[p].s.r>n||i[p].s.c>o)&&!(i[p].e.r<n||i[p].e.c<o)){if(i[p].s.r<n||i[p].s.c<o){u=-1;break}u=i[p].e.r-i[p].s.r+1,d=i[p].e.c-i[p].s.c+1;break}if(!(u<0)){var x=Bn({r:n,c:o}),y=r.dense?(e[n]||[])[o]:e[x],v=y&&y.v!=null&&(y.h||wR(y.w||(Eo(y),y.w)||""))||"",w={};u>1&&(w.rowspan=u),d>1&&(w.colspan=d),r.editable?v='<span contenteditable="true">'+v+"</span>":y&&(w["data-t"]=y&&y.t||"z",y.v!=null&&(w["data-v"]=y.v),y.z!=null&&(w["data-z"]=y.z),y.l&&(y.l.Target||"#").charAt(0)!="#"&&(v='<a href="'+y.l.Target+'">'+v+"</a>")),w.id=(r.id||"sjs")+"-"+x,s.push(nt("td",v,w))}}var b="<tr>";return b+s.join("")+"</tr>"}var Gk='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Wk="</body></html>";function Vk(e,t,n){var r=[];return r.join("")+"<table"+(n.id?' id="'+n.id+'"':"")+">"}function Z4(e,t){var n=t||{},r=n.header!=null?n.header:Gk,i=n.footer!=null?n.footer:Wk,s=[r],o=Mi(e["!ref"]);n.dense=Array.isArray(e),s.push(Vk(e,o,n));for(var u=o.s.r;u<=o.e.r;++u)s.push(zk(e,o,u,n));return s.push("</table>"+i),s.join("")}function Q4(e,t,n){var r=n||{},i=0,s=0;if(r.origin!=null)if(typeof r.origin=="number")i=r.origin;else{var o=typeof r.origin=="string"?$r(r.origin):r.origin;i=o.r,s=o.c}var u=t.getElementsByTagName("tr"),d=Math.min(r.sheetRows||1e7,u.length),p={s:{r:0,c:0},e:{r:i,c:s}};if(e["!ref"]){var x=Mi(e["!ref"]);p.s.r=Math.min(p.s.r,x.s.r),p.s.c=Math.min(p.s.c,x.s.c),p.e.r=Math.max(p.e.r,x.e.r),p.e.c=Math.max(p.e.c,x.e.c),i==-1&&(p.e.r=i=x.e.r+1)}var y=[],v=0,w=e["!rows"]||(e["!rows"]=[]),b=0,S=0,T=0,C=0,R=0,A=0;for(e["!cols"]||(e["!cols"]=[]);b<u.length&&S<d;++b){var j=u[b];if(tE(j)){if(r.display)continue;w[S]={hidden:!0}}var O=j.children;for(T=C=0;T<O.length;++T){var B=O[T];if(!(r.display&&tE(B))){var L=B.hasAttribute("data-v")?B.getAttribute("data-v"):B.hasAttribute("v")?B.getAttribute("v"):TR(B.innerHTML),I=B.getAttribute("data-z")||B.getAttribute("z");for(v=0;v<y.length;++v){var U=y[v];U.s.c==C+s&&U.s.r<S+i&&S+i<=U.e.r&&(C=U.e.c+1-s,v=-1)}A=+B.getAttribute("colspan")||1,((R=+B.getAttribute("rowspan")||1)>1||A>1)&&y.push({s:{r:S+i,c:C+s},e:{r:S+i+(R||1)-1,c:C+s+(A||1)-1}});var W={t:"s",v:L},X=B.getAttribute("data-t")||B.getAttribute("t")||"";L!=null&&(L.length==0?W.t=X||"z":r.raw||L.trim().length==0||X=="s"||(L==="TRUE"?W={t:"b",v:!0}:L==="FALSE"?W={t:"b",v:!1}:isNaN(go(L))?isNaN(F1(L).getDate())||(W={t:"d",v:za(L)},r.cellDates||(W={t:"n",v:oi(W.v)}),W.z=r.dateNF||gr[14]):W={t:"n",v:go(L)})),W.z===void 0&&I!=null&&(W.z=I);var te="",ne=B.getElementsByTagName("A");if(ne&&ne.length)for(var _e=0;_e<ne.length&&!(ne[_e].hasAttribute("href")&&(te=ne[_e].getAttribute("href"),te.charAt(0)!="#"));++_e);te&&te.charAt(0)!="#"&&(W.l={Target:te}),r.dense?(e[S+i]||(e[S+i]=[]),e[S+i][C+s]=W):e[Bn({c:C+s,r:S+i})]=W,p.e.c<C+s&&(p.e.c=C+s),C+=A}}++S}return y.length&&(e["!merges"]=(e["!merges"]||[]).concat(y)),p.e.r=Math.max(p.e.r,S-1+i),e["!ref"]=Cr(p),S>=d&&(e["!fullref"]=Cr((p.e.r=u.length-b+S-1+i,p))),e}function J4(e,t){var n=t||{},r=n.dense?[]:{};return Q4(r,e,t)}function Xk(e,t){return ou(J4(e,t),t)}function tE(e){var t="",n=qk(e);return n&&(t=n(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function qk(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var Kk=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 "+M1({"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 Rr+t}}(),nE=function(){var e=function(s){return Mn(s).replace(/  +/g,function(o){return'<text:s text:c="'+o.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=`          <table:table-cell />
-`,n=`          <table:covered-table-cell/>
-`,r=function(s,o,u){var d=[];d.push('      <table:table table:name="'+Mn(o.SheetNames[u])+`" table:style-name="ta1">
-`);var p=0,x=0,y=Mi(s["!ref"]||"A1"),v=s["!merges"]||[],w=0,b=Array.isArray(s);if(s["!cols"])for(x=0;x<=y.e.c;++x)d.push("        <table:table-column"+(s["!cols"][x]?' table:style-name="co'+s["!cols"][x].ods+'"':"")+`></table:table-column>
-`);var S="",T=s["!rows"]||[];for(p=0;p<y.s.r;++p)S=T[p]?' table:style-name="ro'+T[p].ods+'"':"",d.push("        <table:table-row"+S+`></table:table-row>
-`);for(;p<=y.e.r;++p){for(S=T[p]?' table:style-name="ro'+T[p].ods+'"':"",d.push("        <table:table-row"+S+`>
-`),x=0;x<y.s.c;++x)d.push(t);for(;x<=y.e.c;++x){var C=!1,R={},A="";for(w=0;w!=v.length;++w)if(!(v[w].s.c>x)&&!(v[w].s.r>p)&&!(v[w].e.c<x)&&!(v[w].e.r<p)){(v[w].s.c!=x||v[w].s.r!=p)&&(C=!0),R["table:number-columns-spanned"]=v[w].e.c-v[w].s.c+1,R["table:number-rows-spanned"]=v[w].e.r-v[w].s.r+1;break}if(C){d.push(n);continue}var j=Bn({r:p,c:x}),O=b?(s[p]||[])[x]:s[j];if(O&&O.f&&(R["table:formula"]=Mn(g9(O.f)),O.F&&O.F.slice(0,j.length)==j)){var B=Mi(O.F);R["table:number-matrix-columns-spanned"]=B.e.c-B.s.c+1,R["table:number-matrix-rows-spanned"]=B.e.r-B.s.r+1}if(!O){d.push(t);continue}switch(O.t){case"b":A=O.v?"TRUE":"FALSE",R["office:value-type"]="boolean",R["office:boolean-value"]=O.v?"true":"false";break;case"n":A=O.w||String(O.v||0),R["office:value-type"]="float",R["office:value"]=O.v||0;break;case"s":case"str":A=O.v==null?"":O.v,R["office:value-type"]="string";break;case"d":A=O.w||za(O.v).toISOString(),R["office:value-type"]="date",R["office:date-value"]=za(O.v).toISOString(),R["table:style-name"]="ce1";break;default:d.push(t);continue}var L=e(A);if(O.l&&O.l.Target){var I=O.l.Target;I=I.charAt(0)=="#"?"#"+x9(I.slice(1)):I,I.charAt(0)!="#"&&!I.match(/^\w+:/)&&(I="../"+I),L=nt("text:a",L,{"xlink:href":I.replace(/&/g,"&amp;")})}d.push("          "+nt("table:table-cell",nt("text:p",L,{}),R)+`
-`)}d.push(`        </table:table-row>
-`)}return d.push(`      </table:table>
-`),d.join("")},i=function(s,o){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 u=0;o.SheetNames.map(function(p){return o.Sheets[p]}).forEach(function(p){if(p&&p["!cols"]){for(var x=0;x<p["!cols"].length;++x)if(p["!cols"][x]){var y=p["!cols"][x];if(y.width==null&&y.wpx==null&&y.wch==null)continue;Gy(y),y.ods=u;var v=p["!cols"][x].wpx+"px";s.push('  <style:style style:name="co'+u+`" style:family="table-column">
-`),s.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+v+`"/>
-`),s.push(`  </style:style>
-`),++u}}});var d=0;o.SheetNames.map(function(p){return o.Sheets[p]}).forEach(function(p){if(p&&p["!rows"]){for(var x=0;x<p["!rows"].length;++x)if(p["!rows"][x]){p["!rows"][x].ods=d;var y=p["!rows"][x].hpx+"px";s.push('  <style:style style:name="ro'+d+`" style:family="table-row">
-`),s.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+y+`"/>
-`),s.push(`  </style:style>
-`),++d}}}),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(o,u){var d=[Rr],p=M1({"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=M1({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});u.bookType=="fods"?(d.push("<office:document"+p+x+`>
-`),d.push(m4().replace(/office:document-meta/g,"office:meta"))):d.push("<office:document-content"+p+`>
-`),i(d,o),d.push(`  <office:body>
-`),d.push(`    <office:spreadsheet>
-`);for(var y=0;y!=o.SheetNames.length;++y)d.push(r(o.Sheets[o.SheetNames[y]],o,y));return d.push(`    </office:spreadsheet>
-`),d.push(`  </office:body>
-`),u.bookType=="fods"?d.push("</office:document>"):d.push("</office:document-content>"),d.join("")}}();function eb(e,t){if(t.bookType=="fods")return nE(e,t);var n=Fy(),r="",i=[],s=[];return r="mimetype",Qt(n,r,"application/vnd.oasis.opendocument.spreadsheet"),r="content.xml",Qt(n,r,nE(e,t)),i.push([r,"text/xml"]),s.push([r,"ContentFile"]),r="styles.xml",Qt(n,r,Kk(e,t)),i.push([r,"text/xml"]),s.push([r,"StylesFile"]),r="meta.xml",Qt(n,r,Rr+m4()),i.push([r,"text/xml"]),s.push([r,"MetadataFile"]),r="manifest.rdf",Qt(n,r,o7(s)),i.push([r,"application/rdf+xml"]),r="META-INF/manifest.xml",Qt(n,r,l7(i)),n}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function ex(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Zk(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):zl(L1(e))}function Qk(e,t){e:for(var n=0;n<=e.length-t.length;++n){for(var r=0;r<t.length;++r)if(e[n+r]!=t[r])continue e;return!0}return!1}function Lc(e){var t=e.reduce(function(i,s){return i+s.length},0),n=new Uint8Array(t),r=0;return e.forEach(function(i){n.set(i,r),r+=i.length}),n}function Jk(e,t,n){var r=Math.floor(n==0?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,i=n/Math.pow(10,r-6176);e[t+15]|=r>>7,e[t+14]|=(r&127)<<1;for(var s=0;i>=1;++s,i/=256)e[t+s]=i&255;e[t+15]|=n>=0?0:128}function B1(e,t){var n=t?t[0]:0,r=e[n]&127;e:if(e[n++]>=128&&(r|=(e[n]&127)<<7,e[n++]<128||(r|=(e[n]&127)<<14,e[n++]<128)||(r|=(e[n]&127)<<21,e[n++]<128)||(r+=(e[n]&127)*Math.pow(2,28),++n,e[n++]<128)||(r+=(e[n]&127)*Math.pow(2,35),++n,e[n++]<128)||(r+=(e[n]&127)*Math.pow(2,42),++n,e[n++]<128)))break e;return t&&(t[0]=n),r}function Fn(e){var t=new Uint8Array(7);t[0]=e&127;var n=1;e:if(e>127){if(t[n-1]|=128,t[n]=e>>7&127,++n,e<=16383||(t[n-1]|=128,t[n]=e>>14&127,++n,e<=2097151)||(t[n-1]|=128,t[n]=e>>21&127,++n,e<=268435455)||(t[n-1]|=128,t[n]=e/256>>>21&127,++n,e<=34359738367)||(t[n-1]|=128,t[n]=e/65536>>>21&127,++n,e<=4398046511103))break e;t[n-1]|=128,t[n]=e/16777216>>>21&127,++n}return t.slice(0,n)}function W0(e){var t=0,n=e[t]&127;e:if(e[t++]>=128){if(n|=(e[t]&127)<<7,e[t++]<128||(n|=(e[t]&127)<<14,e[t++]<128)||(n|=(e[t]&127)<<21,e[t++]<128))break e;n|=(e[t]&127)<<28}return n}function Fr(e){for(var t=[],n=[0];n[0]<e.length;){var r=n[0],i=B1(e,n),s=i&7;i=Math.floor(i/8);var o=0,u;if(i==0)break;switch(s){case 0:{for(var d=n[0];e[n[0]++]>=128;);u=e.slice(d,n[0])}break;case 5:o=4,u=e.slice(n[0],n[0]+o),n[0]+=o;break;case 1:o=8,u=e.slice(n[0],n[0]+o),n[0]+=o;break;case 2:o=B1(e,n),u=e.slice(n[0],n[0]+o),n[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(s," for Field ").concat(i," at offset ").concat(r))}var p={data:u,type:s};t[i]==null?t[i]=[p]:t[i].push(p)}return t}function ta(e){var t=[];return e.forEach(function(n,r){n.forEach(function(i){i.data&&(t.push(Fn(r*8+i.type)),i.type==2&&t.push(Fn(i.data.length)),t.push(i.data))})}),Lc(t)}function Il(e){for(var t,n=[],r=[0];r[0]<e.length;){var i=B1(e,r),s=Fr(e.slice(r[0],r[0]+i));r[0]+=i;var o={id:W0(s[1][0].data),messages:[]};s[2].forEach(function(u){var d=Fr(u.data),p=W0(d[3][0].data);o.messages.push({meta:d,data:e.slice(r[0],r[0]+p)}),r[0]+=p}),(t=s[3])!=null&&t[0]&&(o.merge=W0(s[3][0].data)>>>0>0),n.push(o)}return n}function M0(e){var t=[];return e.forEach(function(n){var r=[];r[1]=[{data:Fn(n.id),type:0}],r[2]=[],n.merge!=null&&(r[3]=[{data:Fn(+!!n.merge),type:0}]);var i=[];n.messages.forEach(function(o){i.push(o.data),o.meta[3]=[{type:0,data:Fn(o.data.length)}],r[2].push({data:ta(o.meta),type:2})});var s=ta(r);t.push(Fn(s.length)),t.push(s),i.forEach(function(o){return t.push(o)})}),Lc(t)}function eF(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],r=B1(t,n),i=[];n[0]<t.length;){var s=t[n[0]]&3;if(s==0){var o=t[n[0]++]>>2;if(o<60)++o;else{var u=o-59;o=t[n[0]],u>1&&(o|=t[n[0]+1]<<8),u>2&&(o|=t[n[0]+2]<<16),u>3&&(o|=t[n[0]+3]<<24),o>>>=0,o++,n[0]+=u}i.push(t.slice(n[0],n[0]+o)),n[0]+=o;continue}else{var d=0,p=0;if(s==1?(p=(t[n[0]]>>2&7)+4,d=(t[n[0]++]&224)<<3,d|=t[n[0]++]):(p=(t[n[0]++]>>2)+1,s==2?(d=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(d=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),i=[Lc(i)],d==0)throw new Error("Invalid offset 0");if(d>i[0].length)throw new Error("Invalid offset beyond length");if(p>=d)for(i.push(i[0].slice(-d)),p-=d;p>=i[i.length-1].length;)i.push(i[i.length-1]),p-=i[i.length-1].length;i.push(i[0].slice(-d,-d+p))}}var x=Lc(i);if(x.length!=r)throw new Error("Unexpected length: ".concat(x.length," != ").concat(r));return x}function Yl(e){for(var t=[],n=0;n<e.length;){var r=e[n++],i=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(eF(r,e.slice(n,n+i))),n+=i}if(n!==e.length)throw new Error("data is not a valid framed stream!");return Lc(t)}function B0(e){for(var t=[],n=0;n<e.length;){var r=Math.min(e.length-n,268435455),i=new Uint8Array(4);t.push(i);var s=Fn(r),o=s.length;t.push(s),r<=60?(o++,t.push(new Uint8Array([r-1<<2]))):r<=256?(o+=2,t.push(new Uint8Array([240,r-1&255]))):r<=65536?(o+=3,t.push(new Uint8Array([244,r-1&255,r-1>>8&255]))):r<=16777216?(o+=4,t.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(o+=5,t.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),t.push(e.slice(n,n+r)),o+=r,i[0]=0,i[1]=o&255,i[2]=o>>8&255,i[3]=o>>16&255,n+=r}return Lc(t)}function g2(e,t){var n=new Uint8Array(32),r=ex(n),i=12,s=0;switch(n[0]=5,e.t){case"n":n[1]=2,Jk(n,i,e.v),s|=1,i+=16;break;case"b":n[1]=6,r.setFloat64(i,e.v?1:0,!0),s|=2,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));n[1]=3,r.setUint32(i,t.indexOf(e.v),!0),s|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(8,s,!0),n.slice(0,i)}function x2(e,t){var n=new Uint8Array(32),r=ex(n),i=12,s=0;switch(n[0]=3,e.t){case"n":n[2]=2,r.setFloat64(i,e.v,!0),s|=32,i+=8;break;case"b":n[2]=6,r.setFloat64(i,e.v?1:0,!0),s|=32,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));n[2]=3,r.setUint32(i,t.indexOf(e.v),!0),s|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(4,s,!0),n.slice(0,i)}function xc(e){var t=Fr(e);return B1(t[1][0].data)}function tF(e,t,n){var r,i,s,o;if(!((r=e[6])!=null&&r[0])||!((i=e[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var u=((o=(s=e[8])==null?void 0:s[0])==null?void 0:o.data)&&W0(e[8][0].data)>0||!1;if(u)throw"Math only works with normal offsets";for(var d=0,p=ex(e[7][0].data),x=0,y=[],v=ex(e[4][0].data),w=0,b=[],S=0;S<t.length;++S){if(t[S]==null){p.setUint16(S*2,65535,!0),v.setUint16(S*2,65535);continue}p.setUint16(S*2,x,!0),v.setUint16(S*2,w,!0);var T,C;switch(typeof t[S]){case"string":T=g2({t:"s",v:t[S]},n),C=x2({t:"s",v:t[S]},n);break;case"number":T=g2({t:"n",v:t[S]},n),C=x2({t:"n",v:t[S]},n);break;case"boolean":T=g2({t:"b",v:t[S]},n),C=x2({t:"b",v:t[S]},n);break;default:throw new Error("Unsupported value "+t[S])}y.push(T),x+=T.length,b.push(C),w+=C.length,++d}for(e[2][0].data=Fn(d);S<e[7][0].data.length/2;++S)p.setUint16(S*2,65535,!0),v.setUint16(S*2,65535,!0);return e[6][0].data=Lc(y),e[3][0].data=Lc(b),d}function nF(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var n=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var r=Mi(n["!ref"]);r.s.r=r.s.c=0;var i=!1;r.e.c>9&&(i=!0,r.e.c=9),r.e.r>49&&(i=!0,r.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat(Cr(r)));var s=tx(n,{range:r,header:1}),o=["~Sh33tJ5~"];s.forEach(function(ie){return ie.forEach(function(ee){typeof ee=="string"&&o.push(ee)})});var u={},d=[],p=In.read(t.numbers,{type:"base64"});p.FileIndex.map(function(ie,ee){return[ie,p.FullPaths[ee]]}).forEach(function(ie){var ee=ie[0],K=ie[1];if(ee.type==2&&ee.name.match(/\.iwa/)){var xe=ee.content,Fe=Yl(xe),Ce=Il(Fe);Ce.forEach(function(me){d.push(me.id),u[me.id]={deps:[],location:K,type:W0(me.messages[0].meta[1][0].data)}})}}),d.sort(function(ie,ee){return ie-ee});var x=d.filter(function(ie){return ie>1}).map(function(ie){return[ie,Fn(ie)]});p.FileIndex.map(function(ie,ee){return[ie,p.FullPaths[ee]]}).forEach(function(ie){var ee=ie[0];if(ie[1],!!ee.name.match(/\.iwa/)){var K=Il(Yl(ee.content));K.forEach(function(xe){xe.messages.forEach(function(Fe){x.forEach(function(Ce){xe.messages.some(function(me){return W0(me.meta[1][0].data)!=11006&&Qk(me.data,Ce[1])})&&u[Ce[0]].deps.push(xe.id)})})})}});for(var y=In.find(p,u[1].location),v=Il(Yl(y.content)),w,b=0;b<v.length;++b){var S=v[b];S.id==1&&(w=S)}var T=xc(Fr(w.messages[0].data)[1][0].data);for(y=In.find(p,u[T].location),v=Il(Yl(y.content)),b=0;b<v.length;++b)S=v[b],S.id==T&&(w=S);for(T=xc(Fr(w.messages[0].data)[2][0].data),y=In.find(p,u[T].location),v=Il(Yl(y.content)),b=0;b<v.length;++b)S=v[b],S.id==T&&(w=S);for(T=xc(Fr(w.messages[0].data)[2][0].data),y=In.find(p,u[T].location),v=Il(Yl(y.content)),b=0;b<v.length;++b)S=v[b],S.id==T&&(w=S);var C=Fr(w.messages[0].data);{C[6][0].data=Fn(r.e.r+1),C[7][0].data=Fn(r.e.c+1);var R=xc(C[46][0].data),A=In.find(p,u[R].location),j=Il(Yl(A.content));{for(var O=0;O<j.length&&j[O].id!=R;++O);if(j[O].id!=R)throw"Bad ColumnRowUIDMapArchive";var B=Fr(j[O].messages[0].data);B[1]=[],B[2]=[],B[3]=[];for(var L=0;L<=r.e.c;++L){var I=[];I[1]=I[2]=[{type:0,data:Fn(L+420690)}],B[1].push({type:2,data:ta(I)}),B[2].push({type:0,data:Fn(L)}),B[3].push({type:0,data:Fn(L)})}B[4]=[],B[5]=[],B[6]=[];for(var U=0;U<=r.e.r;++U)I=[],I[1]=I[2]=[{type:0,data:Fn(U+726270)}],B[4].push({type:2,data:ta(I)}),B[5].push({type:0,data:Fn(U)}),B[6].push({type:0,data:Fn(U)});j[O].messages[0].data=ta(B)}A.content=B0(M0(j)),A.size=A.content.length,delete C[46];var W=Fr(C[4][0].data);{W[7][0].data=Fn(r.e.r+1);var X=Fr(W[1][0].data),te=xc(X[2][0].data);A=In.find(p,u[te].location),j=Il(Yl(A.content));{if(j[0].id!=te)throw"Bad HeaderStorageBucket";var ne=Fr(j[0].messages[0].data);for(U=0;U<s.length;++U){var _e=Fr(ne[2][0].data);_e[1][0].data=Fn(U),_e[4][0].data=Fn(s[U].length),ne[2][U]={type:ne[2][0].type,data:ta(_e)}}j[0].messages[0].data=ta(ne)}A.content=B0(M0(j)),A.size=A.content.length;var ye=xc(W[2][0].data);A=In.find(p,u[ye].location),j=Il(Yl(A.content));{if(j[0].id!=ye)throw"Bad HeaderStorageBucket";for(ne=Fr(j[0].messages[0].data),L=0;L<=r.e.c;++L)_e=Fr(ne[2][0].data),_e[1][0].data=Fn(L),_e[4][0].data=Fn(r.e.r+1),ne[2][L]={type:ne[2][0].type,data:ta(_e)};j[0].messages[0].data=ta(ne)}A.content=B0(M0(j)),A.size=A.content.length;var ce=xc(W[4][0].data);(function(){for(var ie=In.find(p,u[ce].location),ee=Il(Yl(ie.content)),K,xe=0;xe<ee.length;++xe){var Fe=ee[xe];Fe.id==ce&&(K=Fe)}var Ce=Fr(K.messages[0].data);{Ce[3]=[];var me=[];o.forEach(function(Xe,rt){me[1]=[{type:0,data:Fn(rt)}],me[2]=[{type:0,data:Fn(1)}],me[3]=[{type:2,data:Zk(Xe)}],Ce[3].push({type:2,data:ta(me)})})}K.messages[0].data=ta(Ce);var oe=M0(ee),Be=B0(oe);ie.content=Be,ie.size=ie.content.length})();var Te=Fr(W[3][0].data);{var Ne=Te[1][0];delete Te[2];var $e=Fr(Ne.data);{var Pe=xc($e[2][0].data);(function(){for(var ie=In.find(p,u[Pe].location),ee=Il(Yl(ie.content)),K,xe=0;xe<ee.length;++xe){var Fe=ee[xe];Fe.id==Pe&&(K=Fe)}var Ce=Fr(K.messages[0].data);{delete Ce[6],delete Te[7];var me=new Uint8Array(Ce[5][0].data);Ce[5]=[];for(var oe=0,Be=0;Be<=r.e.r;++Be){var Xe=Fr(me);oe+=tF(Xe,s[Be],o),Xe[1][0].data=Fn(Be),Ce[5].push({data:ta(Xe),type:2})}Ce[1]=[{type:0,data:Fn(r.e.c+1)}],Ce[2]=[{type:0,data:Fn(r.e.r+1)}],Ce[3]=[{type:0,data:Fn(oe)}],Ce[4]=[{type:0,data:Fn(r.e.r+1)}]}K.messages[0].data=ta(Ce);var rt=M0(ee),Qe=B0(rt);ie.content=Qe,ie.size=ie.content.length})()}Ne.data=ta($e)}W[3][0].data=ta(Te)}C[4][0].data=ta(W)}w.messages[0].data=ta(C);var et=M0(v),J=B0(et);return y.content=J,y.size=y.content.length,p}function rF(e){return function(n){for(var r=0;r!=e.length;++r){var i=e[r];n[i[0]]===void 0&&(n[i[0]]=i[1]),i[2]==="n"&&(n[i[0]]=Number(n[i[0]]))}}}function Ky(e){rF([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function aF(e,t){return t.bookType=="ods"?eb(e,t):t.bookType=="numbers"?nF(e,t):t.bookType=="xlsb"?iF(e,t):lF(e,t)}function iF(e,t){H0=1024,e&&!e.SSF&&(e.SSF=ci(gr)),e&&e.SSF&&(wx(),_x(e.SSF),t.revssf=Ex(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,N1?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n=t.bookType=="xlsb"?"bin":"xml",r=M4.indexOf(t.bookType)>-1,i=u4();Ky(t=t||{});var s=Fy(),o="",u=0;if(t.cellXfs=[],Uc(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",Qt(s,o,p4(e.Props,t)),i.coreprops.push(o),Ln(t.rels,2,o,wn.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var d=[],p=0;p<e.SheetNames.length;++p)(e.Workbook.Sheets[p]||{}).Hidden!=2&&d.push(e.SheetNames[p]);e.Props.SheetNames=d}for(e.Props.Worksheets=e.Props.SheetNames.length,Qt(s,o,x4(e.Props)),i.extprops.push(o),Ln(t.rels,3,o,wn.EXT_PROPS),e.Custprops!==e.Props&&sa(e.Custprops||{}).length>0&&(o="docProps/custom.xml",Qt(s,o,v4(e.Custprops)),i.custprops.push(o),Ln(t.rels,4,o,wn.CUST_PROPS)),u=1;u<=e.SheetNames.length;++u){var x={"!id":{}},y=e.Sheets[e.SheetNames[u-1]],v=(y||{})["!type"]||"sheet";switch(v){case"chart":default:o="xl/worksheets/sheet"+u+"."+n,Qt(s,o,ok(u-1,o,t,e,x)),i.sheets.push(o),Ln(t.wbrels,-1,"worksheets/sheet"+u+"."+n,wn.WS[0])}if(y){var w=y["!comments"],b=!1,S="";w&&w.length>0&&(S="xl/comments"+u+"."+n,Qt(s,S,uk(w,S)),i.comments.push(S),Ln(x,-1,"../comments"+u+"."+n,wn.CMNT),b=!0),y["!legacy"]&&b&&Qt(s,"xl/drawings/vmlDrawing"+u+".vml",F4(u,y["!comments"])),delete y["!comments"],delete y["!legacy"]}x["!id"].rId1&&Qt(s,h4(o),z0(x))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+n,Qt(s,o,fk(t.Strings,o,t)),i.strs.push(o),Ln(t.wbrels,-1,"sharedStrings."+n,wn.SST)),o="xl/workbook."+n,Qt(s,o,sk(e,o)),i.workbooks.push(o),Ln(t.rels,1,o,wn.WB),o="xl/theme/theme1.xml",Qt(s,o,j4(e.Themes,t)),i.themes.push(o),Ln(t.wbrels,-1,"theme/theme1.xml",wn.THEME),o="xl/styles."+n,Qt(s,o,ck(e,o,t)),i.styles.push(o),Ln(t.wbrels,-1,"styles."+n,wn.STY),e.vbaraw&&r&&(o="xl/vbaProject.bin",Qt(s,o,e.vbaraw),i.vba.push(o),Ln(t.wbrels,-1,"vbaProject.bin",wn.VBA)),o="xl/metadata."+n,Qt(s,o,dk(o)),i.metadata.push(o),Ln(t.wbrels,-1,"metadata."+n,wn.XLMETA),Qt(s,"[Content_Types].xml",d4(i,t)),Qt(s,"_rels/.rels",z0(t.rels)),Qt(s,"xl/_rels/workbook."+n+".rels",z0(t.wbrels)),delete t.revssf,delete t.ssf,s}function lF(e,t){H0=1024,e&&!e.SSF&&(e.SSF=ci(gr)),e&&e.SSF&&(wx(),_x(e.SSF),t.revssf=Ex(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,N1?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xml",r=M4.indexOf(t.bookType)>-1,i=u4();Ky(t=t||{});var s=Fy(),o="",u=0;if(t.cellXfs=[],Uc(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",Qt(s,o,p4(e.Props,t)),i.coreprops.push(o),Ln(t.rels,2,o,wn.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var d=[],p=0;p<e.SheetNames.length;++p)(e.Workbook.Sheets[p]||{}).Hidden!=2&&d.push(e.SheetNames[p]);e.Props.SheetNames=d}e.Props.Worksheets=e.Props.SheetNames.length,Qt(s,o,x4(e.Props)),i.extprops.push(o),Ln(t.rels,3,o,wn.EXT_PROPS),e.Custprops!==e.Props&&sa(e.Custprops||{}).length>0&&(o="docProps/custom.xml",Qt(s,o,v4(e.Custprops)),i.custprops.push(o),Ln(t.rels,4,o,wn.CUST_PROPS));var x=["SheetJ5"];for(t.tcid=0,u=1;u<=e.SheetNames.length;++u){var y={"!id":{}},v=e.Sheets[e.SheetNames[u-1]],w=(v||{})["!type"]||"sheet";switch(w){case"chart":default:o="xl/worksheets/sheet"+u+"."+n,Qt(s,o,G4(u-1,t,e,y)),i.sheets.push(o),Ln(t.wbrels,-1,"worksheets/sheet"+u+"."+n,wn.WS[0])}if(v){var b=v["!comments"],S=!1,T="";if(b&&b.length>0){var C=!1;b.forEach(function(R){R[1].forEach(function(A){A.T==!0&&(C=!0)})}),C&&(T="xl/threadedComments/threadedComment"+u+"."+n,Qt(s,T,BO(b,x,t)),i.threadedcomments.push(T),Ln(y,-1,"../threadedComments/threadedComment"+u+"."+n,wn.TCMNT)),T="xl/comments"+u+"."+n,Qt(s,T,L4(b)),i.comments.push(T),Ln(y,-1,"../comments"+u+"."+n,wn.CMNT),S=!0}v["!legacy"]&&S&&Qt(s,"xl/drawings/vmlDrawing"+u+".vml",F4(u,v["!comments"])),delete v["!comments"],delete v["!legacy"]}y["!id"].rId1&&Qt(s,h4(o),z0(y))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+n,Qt(s,o,N4(t.Strings,t)),i.strs.push(o),Ln(t.wbrels,-1,"sharedStrings."+n,wn.SST)),o="xl/workbook."+n,Qt(s,o,X4(e)),i.workbooks.push(o),Ln(t.rels,1,o,wn.WB),o="xl/theme/theme1.xml",Qt(s,o,j4(e.Themes,t)),i.themes.push(o),Ln(t.wbrels,-1,"theme/theme1.xml",wn.THEME),o="xl/styles."+n,Qt(s,o,O4(e,t)),i.styles.push(o),Ln(t.wbrels,-1,"styles."+n,wn.STY),e.vbaraw&&r&&(o="xl/vbaProject.bin",Qt(s,o,e.vbaraw),i.vba.push(o),Ln(t.wbrels,-1,"vbaProject.bin",wn.VBA)),o="xl/metadata."+n,Qt(s,o,k4()),i.metadata.push(o),Ln(t.wbrels,-1,"metadata."+n,wn.XLMETA),x.length>1&&(o="xl/persons/person.xml",Qt(s,o,PO(x)),i.people.push(o),Ln(t.wbrels,-1,"persons/person.xml",wn.PEOPLE)),Qt(s,"[Content_Types].xml",d4(i,t)),Qt(s,"_rels/.rels",z0(t.rels)),Qt(s,"xl/_rels/workbook."+n+".rels",z0(t.wbrels)),delete t.revssf,delete t.ssf,s}function sF(e,t){var n="";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":n=wo(e.slice(0,12));break;case"binary":n=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[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function tb(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return tm(t.file,In.write(e,{type:Nn?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return In.write(e,t)}function oF(e,t){var n=ci(t||{}),r=aF(e,n);return cF(r,n)}function cF(e,t){var n={},r=Nn?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(n.compression="DEFLATE"),t.password)n.type=r;else switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":n.type=r;break;default:throw new Error("Unrecognized type "+t.type)}var i=e.FullPaths?In.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!t.compression}):e.generate(n);if(typeof Deno<"u"&&typeof i=="string"){if(t.type=="binary"||t.type=="base64")return i;i=new Uint8Array(yx(i))}return t.password&&typeof encrypt_agile<"u"?tb(encrypt_agile(i,t.password),t):t.type==="file"?tm(t.file,i):t.type=="string"?E1(i):i}function fF(e,t){var n=t||{},r=Nk(e,n);return tb(r,n)}function Cs(e,t,n){n||(n="");var r=n+e;switch(t.type){case"base64":return k1(L1(r));case"binary":return L1(r);case"string":return e;case"file":return tm(t.file,r,"utf8");case"buffer":return Nn?No(r,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(r):Cs(r,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function uF(e,t){switch(t.type){case"base64":return k1(e);case"binary":return e;case"string":return e;case"file":return tm(t.file,e,"binary");case"buffer":return Nn?No(e,"binary"):e.split("").map(function(n){return n.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function wg(e,t){switch(t.type){case"string":case"base64":case"binary":for(var n="",r=0;r<e.length;++r)n+=String.fromCharCode(e[r]);return t.type=="base64"?k1(n):t.type=="string"?E1(n):n;case"file":return tm(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function Zy(e,t){UA(),Kj(e);var n=ci(t||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),n.type=="array"){n.type="binary";var r=Zy(e,n);return n.type="array",yx(r)}var i=0;if(n.sheet&&(typeof n.sheet=="number"?i=n.sheet:i=e.SheetNames.indexOf(n.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+n.sheet+" : "+typeof n.sheet);switch(n.bookType||"xlsb"){case"xml":case"xlml":return Cs(bk(e,n),n);case"slk":case"sylk":return Cs(V7.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"htm":case"html":return Cs(Z4(e.Sheets[e.SheetNames[i]],n),n);case"txt":return uF(nb(e.Sheets[e.SheetNames[i]],n),n);case"csv":return Cs(Qy(e.Sheets[e.SheetNames[i]],n),n,"\uFEFF");case"dif":return Cs(X7.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"dbf":return wg(W7.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"prn":return Cs(q7.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"rtf":return Cs(nO.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"eth":return Cs(T4.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"fods":return Cs(eb(e,n),n);case"wk1":return wg(qw.sheet_to_wk1(e.Sheets[e.SheetNames[i]],n),n);case"wk3":return wg(qw.book_to_wk3(e,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),wg(K4(e,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),fF(e,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return oF(e,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function dF(e,t,n,r,i,s,o,u){var d=ia(n),p=u.defval,x=u.raw||!Object.prototype.hasOwnProperty.call(u,"raw"),y=!0,v=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(v,"__rowNum__",{value:n,enumerable:!1})}catch{v.__rowNum__=n}else v.__rowNum__=n;if(!o||e[n])for(var w=t.s.c;w<=t.e.c;++w){var b=o?e[n][w]:e[r[w]+d];if(b===void 0||b.t===void 0){if(p===void 0)continue;s[w]!=null&&(v[s[w]]=p);continue}var S=b.v;switch(b.t){case"z":if(S==null)break;continue;case"e":S=S==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+b.t)}if(s[w]!=null){if(S==null)if(b.t=="e"&&S===null)v[s[w]]=null;else if(p!==void 0)v[s[w]]=p;else if(x&&S===null)v[s[w]]=null;else continue;else v[s[w]]=x&&(b.t!=="n"||b.t==="n"&&u.rawNumbers!==!1)?S:Eo(b,S,u);S!=null&&(y=!1)}}return{row:v,isempty:y}}function tx(e,t){if(e==null||e["!ref"]==null)return[];var n={t:"n",v:0},r=0,i=1,s=[],o=0,u="",d={s:{r:0,c:0},e:{r:0,c:0}},p=t||{},x=p.range!=null?p.range:e["!ref"];switch(p.header===1?r=1:p.header==="A"?r=2:Array.isArray(p.header)?r=3:p.header==null&&(r=0),typeof x){case"string":d=Jn(x);break;case"number":d=Jn(e["!ref"]),d.s.r=x;break;default:d=x}r>0&&(i=0);var y=ia(d.s.r),v=[],w=[],b=0,S=0,T=Array.isArray(e),C=d.s.r,R=0,A={};T&&!e[C]&&(e[C]=[]);var j=p.skipHidden&&e["!cols"]||[],O=p.skipHidden&&e["!rows"]||[];for(R=d.s.c;R<=d.e.c;++R)if(!(j[R]||{}).hidden)switch(v[R]=va(R),n=T?e[C][R]:e[v[R]+y],r){case 1:s[R]=R-d.s.c;break;case 2:s[R]=v[R];break;case 3:s[R]=p.header[R-d.s.c];break;default:if(n==null&&(n={w:"__EMPTY",t:"s"}),u=o=Eo(n,null,p),S=A[o]||0,!S)A[o]=1;else{do u=o+"_"+S++;while(A[u]);A[o]=S,A[u]=1}s[R]=u}for(C=d.s.r+i;C<=d.e.r;++C)if(!(O[C]||{}).hidden){var B=dF(e,d,C,v,r,s,T,p);(B.isempty===!1||(r===1?p.blankrows!==!1:p.blankrows))&&(w[b++]=B.row)}return w.length=b,w}var rE=/"/g;function hF(e,t,n,r,i,s,o,u){for(var d=!0,p=[],x="",y=ia(n),v=t.s.c;v<=t.e.c;++v)if(r[v]){var w=u.dense?(e[n]||[])[v]:e[r[v]+y];if(w==null)x="";else if(w.v!=null){d=!1,x=""+(u.rawNumbers&&w.t=="n"?w.v:Eo(w,null,u));for(var b=0,S=0;b!==x.length;++b)if((S=x.charCodeAt(b))===i||S===s||S===34||u.forceQuotes){x='"'+x.replace(rE,'""')+'"';break}x=="ID"&&(x='"ID"')}else w.f!=null&&!w.F?(d=!1,x="="+w.f,x.indexOf(",")>=0&&(x='"'+x.replace(rE,'""')+'"')):x="";p.push(x)}return u.blankrows===!1&&d?null:p.join(o)}function Qy(e,t){var n=[],r=t??{};if(e==null||e["!ref"]==null)return"";var i=Jn(e["!ref"]),s=r.FS!==void 0?r.FS:",",o=s.charCodeAt(0),u=r.RS!==void 0?r.RS:`
-`,d=u.charCodeAt(0),p=new RegExp((s=="|"?"\\|":s)+"+$"),x="",y=[];r.dense=Array.isArray(e);for(var v=r.skipHidden&&e["!cols"]||[],w=r.skipHidden&&e["!rows"]||[],b=i.s.c;b<=i.e.c;++b)(v[b]||{}).hidden||(y[b]=va(b));for(var S=0,T=i.s.r;T<=i.e.r;++T)(w[T]||{}).hidden||(x=hF(e,i,T,y,o,d,s,r),x!=null&&(r.strip&&(x=x.replace(p,"")),(x||r.blankrows!==!1)&&n.push((S++?u:"")+x)));return delete r.dense,n.join("")}function nb(e,t){t||(t={}),t.FS="	",t.RS=`
-`;var n=Qy(e,t);return n}function mF(e){var t="",n,r="";if(e==null||e["!ref"]==null)return[];var i=Jn(e["!ref"]),s="",o=[],u,d=[],p=Array.isArray(e);for(u=i.s.c;u<=i.e.c;++u)o[u]=va(u);for(var x=i.s.r;x<=i.e.r;++x)for(s=ia(x),u=i.s.c;u<=i.e.c;++u)if(t=o[u]+s,n=p?(e[x]||[])[u]:e[t],r="",n!==void 0){if(n.F!=null){if(t=n.F,!n.f)continue;r=n.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(n.f!=null)r=n.f;else{if(n.t=="z")continue;if(n.t=="n"&&n.v!=null)r=""+n.v;else if(n.t=="b")r=n.v?"TRUE":"FALSE";else if(n.w!==void 0)r="'"+n.w;else{if(n.v===void 0)continue;n.t=="s"?r="'"+n.v:r=""+n.v}}d[d.length]=t+"="+r}return d}function rb(e,t,n){var r=n||{},i=+!r.skipHeader,s=e||{},o=0,u=0;if(s&&r.origin!=null)if(typeof r.origin=="number")o=r.origin;else{var d=typeof r.origin=="string"?$r(r.origin):r.origin;o=d.r,u=d.c}var p,x={s:{c:0,r:0},e:{c:u,r:o+t.length-1+i}};if(s["!ref"]){var y=Jn(s["!ref"]);x.e.c=Math.max(x.e.c,y.e.c),x.e.r=Math.max(x.e.r,y.e.r),o==-1&&(o=y.e.r+1,x.e.r=o+t.length-1+i)}else o==-1&&(o=0,x.e.r=t.length-1+i);var v=r.header||[],w=0;t.forEach(function(S,T){sa(S).forEach(function(C){(w=v.indexOf(C))==-1&&(v[w=v.length]=C);var R=S[C],A="z",j="",O=Bn({c:u+w,r:o+T+i});p=P1(s,O),R&&typeof R=="object"&&!(R instanceof Date)?s[O]=R:(typeof R=="number"?A="n":typeof R=="boolean"?A="b":typeof R=="string"?A="s":R instanceof Date?(A="d",r.cellDates||(A="n",R=oi(R)),j=r.dateNF||gr[14]):R===null&&r.nullError&&(A="e",R=0),p?(p.t=A,p.v=R,delete p.w,delete p.R,j&&(p.z=j)):s[O]=p={t:A,v:R},j&&(p.z=j))})}),x.e.c=Math.max(x.e.c,u+v.length-1);var b=ia(o);if(i)for(w=0;w<v.length;++w)s[va(w+u)+b]={t:"s",v:v[w]};return s["!ref"]=Cr(x),s}function pF(e,t){return rb(null,e,t)}function P1(e,t,n){if(typeof t=="string"){if(Array.isArray(e)){var r=$r(t);return e[r.r]||(e[r.r]=[]),e[r.r][r.c]||(e[r.r][r.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?P1(e,Bn(t)):P1(e,Bn({r:t,c:n||0}))}function gF(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 n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function xF(){return{SheetNames:[],Sheets:{}}}function vF(e,t,n,r){var i=1;if(!n)for(;i<=65535&&e.SheetNames.indexOf(n="Sheet"+i)!=-1;++i,n=void 0);if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var s=n.match(/(^.*?)(\d+)$/);i=s&&+s[2]||0;var o=s&&s[1]||n;for(++i;i<=65535&&e.SheetNames.indexOf(n=o+i)!=-1;++i);}if(V4(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function yF(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=gF(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n}function _F(e,t){return e.z=t,e}function ab(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}function wF(e,t,n){return ab(e,"#"+t,n)}function EF(e,t,n){e.c||(e.c=[]),e.c.push({t,a:n||"SheetJS"})}function SF(e,t,n,r){for(var i=typeof t!="string"?t:Jn(t),s=typeof t=="string"?t:Cr(t),o=i.s.r;o<=i.e.r;++o)for(var u=i.s.c;u<=i.e.c;++u){var d=P1(e,o,u);d.t="n",d.F=s,delete d.v,o==i.s.r&&u==i.s.c&&(d.f=n,r&&(d.D=!0))}return e}var uo={encode_col:va,encode_row:ia,encode_cell:Bn,encode_range:Cr,decode_col:Iy,decode_row:Uy,split_cell:UR,decode_cell:$r,decode_range:Mi,format_cell:Eo,sheet_add_aoa:i4,sheet_add_json:rb,sheet_add_dom:Q4,aoa_to_sheet:ad,json_to_sheet:pF,table_to_sheet:J4,table_to_book:Xk,sheet_to_csv:Qy,sheet_to_txt:nb,sheet_to_json:tx,sheet_to_html:Z4,sheet_to_formulae:mF,sheet_to_row_object_array:tx,sheet_get_cell:P1,book_new:xF,book_append_sheet:vF,book_set_sheet_visibility:yF,cell_set_number_format:_F,cell_set_hyperlink:ab,cell_set_internal_link:wF,cell_add_comment:EF,sheet_set_array_formula:SF,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function bF(e){return To({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 ib(e){return To({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)}function TF(e,t){return e.map(n=>t.map(r=>{const i=n[r];return i===null?"":typeof i=="string"?`"${i.replace(/"/g,'""')}"`:i}).join(","))}function NF(e){if(!e.length)return"";const t=Object.keys(e[0]),n=TF(e,t);return[t.join(","),...n].join(`\r
-`)}function CF(e,t="Sheet1"){const n=uo.json_to_sheet(e),r=uo.book_new();uo.book_append_sheet(r,n,t);const i=Zy(r,{bookType:"xlsx",type:"binary"}),s=new ArrayBuffer(i.length),o=new Uint8Array(s);for(let u=0;u<i.length;u++)o[u]=i.charCodeAt(u)&255;return new Blob([s],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})}const aE=({data:e,filename:t,exportType:n})=>{const r=()=>{let s,o,u;switch(n){case Qf.EXCEL:{s=CF(e),o="xlsx",u="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8";break}case Qf.CSV:default:{s=NF(e),o="csv",u="text/csv;charset=UTF-8";break}}const d=new Blob([s],{type:u});t=t.endsWith(o)?t:`${t}.${o}`;const p=document.createElement("a");p.href=URL.createObjectURL(d),p.download=t,document.body.appendChild(p),p.click(),document.body.removeChild(p)};let i="downloadbutton";return n===Qf.CSV?i+=" downloadcsv":n===Qf.EXCEL&&(i+=" downloadexcel"),g.jsxs("button",{className:i,onClick:r,children:[n," ",g.jsx(ib,{})]})};function AF(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(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}const RF=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function vo(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}function nx(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function OF(e){const t=nx(e,"border-left-width"),n=nx(e,"border-right-width");return e.clientWidth+t+n}function DF(e){const t=nx(e,"border-top-width"),n=nx(e,"border-bottom-width");return e.clientHeight+t+n}function lb(e,t={}){const n=t.width||OF(e),r=t.height||DF(e);return{width:n,height:r}}function jF(){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 Ai=16384;function kF(e){(e.width>Ai||e.height>Ai)&&(e.width>Ai&&e.height>Ai?e.width>e.height?(e.height*=Ai/e.width,e.width=Ai):(e.width*=Ai/e.height,e.height=Ai):e.width>Ai?(e.height*=Ai/e.width,e.width=Ai):(e.width*=Ai/e.height,e.height=Ai))}function rx(e){return new Promise((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function FF(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function LF(e,t,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),s=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),i.appendChild(s),s.appendChild(e),FF(i)}const si=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||si(n,t)};function MF(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function BF(e){return vo(e).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return`${t}: ${n}${r?" !important":""};`}).join(" ")}function PF(e,t,n){const r=`.${e}:${t}`,i=n.cssText?MF(n):BF(n);return document.createTextNode(`${r}{${i}}`)}function iE(e,t,n){const r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(i===""||i==="none")return;const s=RF();try{t.className=`${t.className} ${s}`}catch{return}const o=document.createElement("style");o.appendChild(PF(s,n,r)),t.appendChild(o)}function UF(e,t){iE(e,t,":before"),iE(e,t,":after")}const lE="application/font-woff",sE="image/jpeg",IF={woff:lE,woff2:lE,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:sE,jpeg:sE,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function YF(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Jy(e){const t=YF(e).toLowerCase();return IF[t]||""}function HF(e){return e.split(/,/)[1]}function P2(e){return e.search(/^(data:)/)!==-1}function $F(e,t){return`data:${t};base64,${e}`}async function sb(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const i=await r.blob();return new Promise((s,o)=>{const u=new FileReader;u.onerror=o,u.onloadend=()=>{try{s(n({res:r,result:u.result}))}catch(d){o(d)}},u.readAsDataURL(i)})}const v2={};function zF(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function e_(e,t,n){const r=zF(e,t,n.includeQueryParams);if(v2[r]!=null)return v2[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let i;try{const s=await sb(e,n.fetchRequestInit,({res:o,result:u})=>(t||(t=o.headers.get("Content-Type")||""),HF(u)));i=$F(s,t)}catch(s){i=n.imagePlaceholder||"";let o=`Failed to fetch resource: ${e}`;s&&(o=typeof s=="string"?s:s.message),o&&console.warn(o)}return v2[r]=i,i}async function GF(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):rx(t)}async function WF(e,t){if(e.currentSrc){const s=document.createElement("canvas"),o=s.getContext("2d");s.width=e.clientWidth,s.height=e.clientHeight,o==null||o.drawImage(e,0,0,s.width,s.height);const u=s.toDataURL();return rx(u)}const n=e.poster,r=Jy(n),i=await e_(n,r,t);return rx(i)}async function VF(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await Cx(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function XF(e,t){return si(e,HTMLCanvasElement)?GF(e):si(e,HTMLVideoElement)?WF(e,t):si(e,HTMLIFrameElement)?VF(e):e.cloneNode(!1)}const qF=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function KF(e,t,n){var r,i;let s=[];return qF(e)&&e.assignedNodes?s=vo(e.assignedNodes()):si(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?s=vo(e.contentDocument.body.childNodes):s=vo(((i=e.shadowRoot)!==null&&i!==void 0?i:e).childNodes),s.length===0||si(e,HTMLVideoElement)||await s.reduce((o,u)=>o.then(()=>Cx(u,n)).then(d=>{d&&t.appendChild(d)}),Promise.resolve()),t}function ZF(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):vo(r).forEach(i=>{let s=r.getPropertyValue(i);i==="font-size"&&s.endsWith("px")&&(s=`${Math.floor(parseFloat(s.substring(0,s.length-2)))-.1}px`),si(e,HTMLIFrameElement)&&i==="display"&&s==="inline"&&(s="block"),i==="d"&&t.getAttribute("d")&&(s=`path(${t.getAttribute("d")})`),n.setProperty(i,s,r.getPropertyPriority(i))})}function QF(e,t){si(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),si(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function JF(e,t){if(si(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(i=>e.value===i.getAttribute("value"));r&&r.setAttribute("selected","")}}function eL(e,t){return si(t,Element)&&(ZF(e,t),UF(e,t),QF(e,t),JF(e,t)),t}async function tL(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let s=0;s<n.length;s++){const u=n[s].getAttribute("xlink:href");if(u){const d=e.querySelector(u),p=document.querySelector(u);!d&&p&&!r[u]&&(r[u]=await Cx(p,t,!0))}}const i=Object.values(r);if(i.length){const s="http://www.w3.org/1999/xhtml",o=document.createElementNS(s,"svg");o.setAttribute("xmlns",s),o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.overflow="hidden",o.style.display="none";const u=document.createElementNS(s,"defs");o.appendChild(u);for(let d=0;d<i.length;d++)u.appendChild(i[d]);e.appendChild(o)}return e}async function Cx(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>XF(r,t)).then(r=>KF(e,r,t)).then(r=>eL(e,r)).then(r=>tL(r,t))}const ob=/url\((['"]?)([^'"]+?)\1\)/g,nL=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,rL=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function aL(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function iL(e){const t=[];return e.replace(ob,(n,r,i)=>(t.push(i),n)),t.filter(n=>!P2(n))}async function lL(e,t,n,r,i){try{const s=n?AF(t,n):t,o=Jy(t);let u;return i||(u=await e_(s,o,r)),e.replace(aL(t),`$1${u}$3`)}catch{}return e}function sL(e,{preferredFontFormat:t}){return t?e.replace(rL,n=>{for(;;){const[r,,i]=nL.exec(n)||[];if(!i)return"";if(i===t)return`src: ${r};`}}):e}function cb(e){return e.search(ob)!==-1}async function fb(e,t,n){if(!cb(e))return e;const r=sL(e,n);return iL(r).reduce((s,o)=>s.then(u=>lL(u,o,t,n)),Promise.resolve(r))}async function Eg(e,t,n){var r;const i=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(i){const s=await fb(i,null,n);return t.style.setProperty(e,s,t.style.getPropertyPriority(e)),!0}return!1}async function oL(e,t){await Eg("background",e,t)||await Eg("background-image",e,t),await Eg("mask",e,t)||await Eg("mask-image",e,t)}async function cL(e,t){const n=si(e,HTMLImageElement);if(!(n&&!P2(e.src))&&!(si(e,SVGImageElement)&&!P2(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,i=await e_(r,Jy(r),t);await new Promise((s,o)=>{e.onload=s,e.onerror=o;const u=e;u.decode&&(u.decode=s),u.loading==="lazy"&&(u.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function fL(e,t){const r=vo(e.childNodes).map(i=>ub(i,t));await Promise.all(r).then(()=>e)}async function ub(e,t){si(e,Element)&&(await oL(e,t),await cL(e,t),await fL(e,t))}function uL(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 r=t.style;return r!=null&&Object.keys(r).forEach(i=>{n[i]=r[i]}),e}const oE={};async function cE(e){let t=oE[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},oE[e]=t,t}async function fE(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,s=(n.match(/url\([^)]+\)/g)||[]).map(async o=>{let u=o.replace(r,"$1");return u.startsWith("https://")||(u=new URL(u,e.url).href),sb(u,t.fetchRequestInit,({result:d})=>(n=n.replace(o,`url(${d})`),[o,d]))});return Promise.all(s).then(()=>n)}function uE(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const d=i.exec(r);if(d===null)break;t.push(d[0])}r=r.replace(i,"");const s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",u=new RegExp(o,"gi");for(;;){let d=s.exec(r);if(d===null){if(d=u.exec(r),d===null)break;s.lastIndex=u.lastIndex}else u.lastIndex=s.lastIndex;t.push(d[0])}return t}async function dL(e,t){const n=[],r=[];return e.forEach(i=>{if("cssRules"in i)try{vo(i.cssRules||[]).forEach((s,o)=>{if(s.type===CSSRule.IMPORT_RULE){let u=o+1;const d=s.href,p=cE(d).then(x=>fE(x,t)).then(x=>uE(x).forEach(y=>{try{i.insertRule(y,y.startsWith("@import")?u+=1:i.cssRules.length)}catch(v){console.error("Error inserting rule from remote css",{rule:y,error:v})}})).catch(x=>{console.error("Error loading remote css",x.toString())});r.push(p)}})}catch(s){const o=e.find(u=>u.href==null)||document.styleSheets[0];i.href!=null&&r.push(cE(i.href).then(u=>fE(u,t)).then(u=>uE(u).forEach(d=>{o.insertRule(d,i.cssRules.length)})).catch(u=>{console.error("Error loading remote stylesheet",u)})),console.error("Error inlining remote css file",s)}}),Promise.all(r).then(()=>(e.forEach(i=>{if("cssRules"in i)try{vo(i.cssRules||[]).forEach(s=>{n.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${i.href}`,s)}}),n))}function hL(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>cb(t.style.getPropertyValue("src")))}async function mL(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=vo(e.ownerDocument.styleSheets),r=await dL(n,t);return hL(r)}async function pL(e,t){const n=await mL(e,t);return(await Promise.all(n.map(i=>{const s=i.parentStyleSheet?i.parentStyleSheet.href:null;return fb(i.cssText,s,t)}))).join(`
-`)}async function gL(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await pL(e,t);if(n){const r=document.createElement("style"),i=document.createTextNode(n);r.appendChild(i),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function db(e,t={}){const{width:n,height:r}=lb(e,t),i=await Cx(e,t,!0);return await gL(i,t),await ub(i,t),uL(i,t),await LF(i,n,r)}async function hb(e,t={}){const{width:n,height:r}=lb(e,t),i=await db(e,t),s=await rx(i),o=document.createElement("canvas"),u=o.getContext("2d"),d=t.pixelRatio||jF(),p=t.canvasWidth||n,x=t.canvasHeight||r;return o.width=p*d,o.height=x*d,t.skipAutoScale||kF(o),o.style.width=`${p}`,o.style.height=`${x}`,t.backgroundColor&&(u.fillStyle=t.backgroundColor,u.fillRect(0,0,o.width,o.height)),u.drawImage(s,0,0,o.width,o.height),o}async function xL(e,t={}){return(await hb(e,t)).toDataURL()}async function vL(e,t={}){return(await hb(e,t)).toDataURL("image/jpeg",t.quality||1)}const yL=e=>{const t=Ke.c(17),{filename:n}=e,r=k.useContext(ey),[i,s]=k.useState(!1),o=k.useRef(null);let u;t[0]!==r||t[1]!==n?(u=async A=>{if(r!=null&&r.current){s(!1);const j={transform:"scale(1)","transform-origin":"top left",background:"white"};let O;e:switch(A){case Wf.JPEG:{O=await vL(r.current,{quality:.95,style:j});break e}case Wf.SVG:{O=await db(r.current,{style:j});break e}case Wf.PNG:default:O=await xL(r.current,{style:j})}const B=document.createElement("a");B.href=typeof O=="string"?O:URL.createObjectURL(O),B.download=`${n}.${A}`,document.body.appendChild(B),B.click(),document.body.removeChild(B)}},t[0]=r,t[1]=n,t[2]=u):u=t[2];const d=u;let p;t[3]!==i?(p=()=>{s(!i)},t[3]=i,t[4]=p):p=t[4];const x=p;let y;t[5]===Symbol.for("react.memo_cache_sentinel")?(y=A=>{o.current&&!o.current.contains(A.target)&&s(!1)},t[5]=y):y=t[5];const v=y;let w,b;t[6]===Symbol.for("react.memo_cache_sentinel")?(w=()=>(document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v)}),b=[],t[6]=w,t[7]=b):(w=t[6],b=t[7]),k.useEffect(w,b);let S;t[8]===Symbol.for("react.memo_cache_sentinel")?(S=g.jsx(ib,{}),t[8]=S):S=t[8];let T;t[9]!==x?(T=g.jsxs("button",{className:"downloadbutton downloadimage",onClick:x,children:["IMAGE ",S]}),t[9]=x,t[10]=T):T=t[10];let C;t[11]!==d||t[12]!==i?(C=i&&g.jsxs("div",{className:"image-options",children:[g.jsx("div",{className:"imageoption downloadpng",onClick:()=>d(Wf.PNG),children:g.jsx("span",{children:"PNG"})}),g.jsx("div",{className:"imageoption downloadjpeg",onClick:()=>d(Wf.JPEG),children:g.jsx("span",{children:"JPEG"})}),g.jsx("div",{className:"imageoption downloadsvg",onClick:()=>d(Wf.SVG),children:g.jsx("span",{children:"SVG"})})]}),t[11]=d,t[12]=i,t[13]=C):C=t[13];let R;return t[14]!==T||t[15]!==C?(R=g.jsxs("div",{className:"image-dropdown",ref:o,children:[T,C]}),t[14]=T,t[15]=C,t[16]=R):R=t[16],R},_L=e=>{const t=Ke.c(12),{data:n,filename:r}=e,i=`${r}.csv`;let s;t[0]!==n||t[1]!==i?(s=g.jsx(aE,{data:n,filename:i,exportType:Qf.CSV}),t[0]=n,t[1]=i,t[2]=s):s=t[2];const o=`${r}.xlsx`;let u;t[3]!==n||t[4]!==o?(u=g.jsx(aE,{data:n,filename:o,exportType:Qf.EXCEL}),t[3]=n,t[4]=o,t[5]=u):u=t[5];let d;t[6]!==r?(d=g.jsx(yL,{filename:r}),t[6]=r,t[7]=d):d=t[7];let p;return t[8]!==s||t[9]!==u||t[10]!==d?(p=g.jsxs("div",{className:"downloadcontainer",children:[s,u,d]}),t[8]=s,t[9]=u,t[10]=d,t[11]=p):p=t[11],p};on.defaults.font.size=16;on.defaults.font.family="Open Sans";on.defaults.font.weight=700;function Pt(e){const t=Ke.c(47),{title:n,description:r,filter:i,children:s,category:o,data:u,filename:d}=e,{setPreview:p}=k.useContext(ty),x=Ay(),y=window.location.origin+window.location.pathname,{trackPageView:v}=Z1();let w,b;t[0]!==n||t[1]!==v?(w=()=>{v({documentTitle:n})},b=[v,n],t[0]=n,t[1]=v,t[2]=w,t[3]=b):(w=t[2],b=t[3]),k.useEffect(w,b);let S;t[4]!==o?(S=o===ct.Organisation&&g.jsx(DA,{}),t[4]=o,t[5]=S):S=t[5];let T;t[6]!==o?(T=o===ct.Policy&&g.jsx(kA,{}),t[6]=o,t[7]=T):T=t[7];let C;t[8]!==o?(C=o===ct.Network&&g.jsx(FA,{}),t[8]=o,t[9]=C):C=t[9];let R;t[10]!==o?(R=o===ct.ConnectedUsers&&g.jsx(LA,{}),t[10]=o,t[11]=R):R=t[11];let A;t[12]!==o?(A=o===ct.Services&&g.jsx(MA,{}),t[12]=o,t[13]=A):A=t[13];let j;t[14]===Symbol.for("react.memo_cache_sentinel")?(j=g.jsx(w3,{type:"data"}),t[14]=j):j=t[14];let O;t[15]!==x||t[16]!==p?(O=x&&g.jsx(Cn,{className:"preview-banner",children:g.jsxs("span",{children:["You are viewing a preview of the website which includes pre-published survey data. ",g.jsx(lt,{to:y,onClick:()=>p(!1),children:"Click here"})," to deactivate preview mode."]})}),t[15]=x,t[16]=p,t[17]=O):O=t[17];let B;t[18]!==o?(B=g.jsx(jA,{activeCategory:o}),t[18]=o,t[19]=B):B=t[19];let L;t[20]!==n?(L=g.jsx(Cn,{children:g.jsx("h3",{className:"m-1",children:n})}),t[20]=n,t[21]=L):L=t[21];let I;t[22]!==r?(I=g.jsx(Cn,{children:g.jsx("p",{className:"p-md-4",children:r})}),t[22]=r,t[23]=I):I=t[23];let U;t[24]===Symbol.for("react.memo_cache_sentinel")?(U={position:"relative"},t[24]=U):U=t[24];let W;t[25]!==u||t[26]!==d?(W=g.jsx(Cn,{align:"right",style:U,children:g.jsx(_L,{data:u,filename:d})}),t[25]=u,t[26]=d,t[27]=W):W=t[27];let X;t[28]!==i?(X=g.jsx(Cn,{children:i}),t[28]=i,t[29]=X):X=t[29];let te;t[30]!==s?(te=g.jsx(Cn,{children:s}),t[30]=s,t[31]=te):te=t[31];let ne;t[32]!==L||t[33]!==I||t[34]!==W||t[35]!==X||t[36]!==te?(ne=g.jsxs(la,{className:"mb-5 grow",children:[L,I,W,X,te]}),t[32]=L,t[33]=I,t[34]=W,t[35]=X,t[36]=te,t[37]=ne):ne=t[37];let _e;return t[38]!==B||t[39]!==ne||t[40]!==S||t[41]!==T||t[42]!==C||t[43]!==R||t[44]!==A||t[45]!==O?(_e=g.jsxs(g.Fragment,{children:[S,T,C,R,A,j,O,B,ne]}),t[38]=B,t[39]=ne,t[40]=S,t[41]=T,t[42]=C,t[43]=R,t[44]=A,t[45]=O,t[46]=_e):_e=t[46],_e}function Ut(e){const t=Ke.c(81),{filterOptions:n,filterSelection:r,setFilterSelection:i,max1year:s,coloredYears:o}=e,u=s===void 0?!1:s,d=o===void 0?!1:o,[p,x]=k.useState(!0),{nrens:y}=k.useContext($E);let v,w;if(t[0]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{const Ce=()=>x(window.innerWidth>=992);return window.addEventListener("resize",Ce),()=>{window.removeEventListener("resize",Ce)}},w=[],t[0]=v,t[1]=w):(v=t[0],w=t[1]),k.useEffect(v,w),u&&r.selectedYears.length>1){const Ce=Math.max(...r.selectedYears);i({selectedYears:[Ce],selectedNrens:[...r.selectedNrens]})}let b;t[2]!==r.selectedNrens||t[3]!==r.selectedYears||t[4]!==i?(b=Ce=>{r.selectedNrens.includes(Ce)?i({selectedYears:[...r.selectedYears],selectedNrens:r.selectedNrens.filter(me=>me!==Ce)}):i({selectedYears:[...r.selectedYears],selectedNrens:[...r.selectedNrens,Ce]})},t[2]=r.selectedNrens,t[3]=r.selectedYears,t[4]=i,t[5]=b):b=t[5];const S=b;let T;t[6]!==r.selectedNrens||t[7]!==r.selectedYears||t[8]!==u||t[9]!==i?(T=Ce=>{r.selectedYears.includes(Ce)?i({selectedYears:r.selectedYears.filter(me=>me!==Ce),selectedNrens:[...r.selectedNrens]}):i({selectedYears:u?[Ce]:[...r.selectedYears,Ce],selectedNrens:[...r.selectedNrens]})},t[6]=r.selectedNrens,t[7]=r.selectedYears,t[8]=u,t[9]=i,t[10]=T):T=t[10];const C=T;let R;t[11]!==n.availableNrens||t[12]!==r.selectedYears||t[13]!==i?(R=()=>{i({selectedYears:[...r.selectedYears],selectedNrens:n.availableNrens.map(SL)})},t[11]=n.availableNrens,t[12]=r.selectedYears,t[13]=i,t[14]=R):R=t[14];const A=R;let j;t[15]!==r.selectedYears||t[16]!==i?(j=()=>{i({selectedYears:[...r.selectedYears],selectedNrens:[]})},t[15]=r.selectedYears,t[16]=i,t[17]=j):j=t[17];const O=j,B=p?3:2,L=Math.ceil(y.length/B);let I,U,W,X,te,ne,_e,ye,ce,Te;if(t[18]!==n.availableNrens||t[19]!==r.selectedNrens||t[20]!==S||t[21]!==B||t[22]!==L||t[23]!==y){const Ce=Array.from(Array(B),EL);y.sort(wL).forEach((Xe,rt)=>{const Qe=Math.floor(rt/L);Ce[Qe].push(Xe)});let me;t[34]!==n.availableNrens?(me=Xe=>n.availableNrens.find(Qe=>Qe.name===Xe.name)!==void 0,t[34]=n.availableNrens,t[35]=me):me=t[35];const oe=me;W=Qn,ce=3,U=i2,ne="outside",_e="m-3",t[36]===Symbol.for("react.memo_cache_sentinel")?(ye=g.jsx(i2.Toggle,{id:"nren-dropdown-toggle",variant:"compendium",children:"Select NRENs    "}),t[36]=ye):ye=t[36],I=i2.Menu,t[37]===Symbol.for("react.memo_cache_sentinel")?(te={borderRadius:0},t[37]=te):te=t[37],Te="d-flex fit-max-content mt-4 mx-3";let Be;t[38]!==r.selectedNrens||t[39]!==S||t[40]!==oe?(Be=(Xe,rt)=>g.jsx("div",{className:"flex-fill",children:Xe.map(Qe=>g.jsx("div",{className:"filter-dropdown-item flex-fill py-1 px-3",children:g.jsxs(As.Check,{type:"checkbox",children:[g.jsx(As.Check.Input,{id:Qe.name,readOnly:!0,type:"checkbox",onClick:()=>S(Qe.name),checked:r.selectedNrens.includes(Qe.name),className:"nren-checkbox",disabled:!oe(Qe)}),g.jsxs(As.Check.Label,{htmlFor:Qe.name,className:"nren-checkbox-label",children:[Qe.name," ",g.jsxs("span",{style:{fontWeight:"lighter"},children:["(",Qe.country,")"]})]})]})},Qe.name))},rt),t[38]=r.selectedNrens,t[39]=S,t[40]=oe,t[41]=Be):Be=t[41],X=Ce.map(Be),t[18]=n.availableNrens,t[19]=r.selectedNrens,t[20]=S,t[21]=B,t[22]=L,t[23]=y,t[24]=I,t[25]=U,t[26]=W,t[27]=X,t[28]=te,t[29]=ne,t[30]=_e,t[31]=ye,t[32]=ce,t[33]=Te}else I=t[24],U=t[25],W=t[26],X=t[27],te=t[28],ne=t[29],_e=t[30],ye=t[31],ce=t[32],Te=t[33];let Ne;t[42]!==X||t[43]!==Te?(Ne=g.jsx("div",{className:Te,children:X}),t[42]=X,t[43]=Te,t[44]=Ne):Ne=t[44];let $e;t[45]!==A?($e=g.jsx(Nr,{variant:"compendium",className:"flex-fill",onClick:A,children:"Select all NRENs"}),t[45]=A,t[46]=$e):$e=t[46];let Pe;t[47]!==O?(Pe=g.jsx(Nr,{variant:"compendium",className:"flex-fill",onClick:O,children:"Unselect all NRENs"}),t[47]=O,t[48]=Pe):Pe=t[48];let et;t[49]!==$e||t[50]!==Pe?(et=g.jsxs("div",{className:"d-flex fit-max-content gap-2 mx-4 my-3",children:[$e,Pe]}),t[49]=$e,t[50]=Pe,t[51]=et):et=t[51];let J;t[52]!==I||t[53]!==te||t[54]!==Ne||t[55]!==et?(J=g.jsxs(I,{style:te,children:[Ne,et]}),t[52]=I,t[53]=te,t[54]=Ne,t[55]=et,t[56]=J):J=t[56];let ie;t[57]!==U||t[58]!==ne||t[59]!==_e||t[60]!==ye||t[61]!==J?(ie=g.jsxs(U,{autoClose:ne,className:_e,children:[ye,J]}),t[57]=U,t[58]=ne,t[59]=_e,t[60]=ye,t[61]=J,t[62]=ie):ie=t[62];let ee;t[63]!==W||t[64]!==ce||t[65]!==ie?(ee=g.jsx(W,{xs:ce,children:ie}),t[63]=W,t[64]=ce,t[65]=ie,t[66]=ee):ee=t[66];let K;if(t[67]!==d||t[68]!==n.availableYears||t[69]!==r.selectedYears||t[70]!==C){let Ce;t[72]!==d||t[73]!==r.selectedYears||t[74]!==C?(Ce=me=>g.jsx(Nr,{variant:d?"compendium-year-"+me%9:"compendium-year",active:r.selectedYears.includes(me),onClick:()=>C(me),children:me},me),t[72]=d,t[73]=r.selectedYears,t[74]=C,t[75]=Ce):Ce=t[75],K=n.availableYears.sort().map(Ce),t[67]=d,t[68]=n.availableYears,t[69]=r.selectedYears,t[70]=C,t[71]=K}else K=t[71];let xe;t[76]!==K?(xe=g.jsx(Qn,{children:g.jsx(uy,{className:"d-flex justify-content-end gap-2 m-3",children:K})}),t[76]=K,t[77]=xe):xe=t[77];let Fe;return t[78]!==ee||t[79]!==xe?(Fe=g.jsxs(g.Fragment,{children:[ee,xe]}),t[78]=ee,t[79]=xe,t[80]=Fe):Fe=t[80],Fe}function wL(e,t){return e.name.localeCompare(t.name)}function EL(){return[]}function SL(e){return e.name}const Ht=e=>{const t=Ke.c(3),{children:n}=e,r=k.useContext(ey);let i;return t[0]!==n||t[1]!==r?(i=g.jsx("div",{ref:r,children:n}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i};function dE(e){const t=new Set,n=new Map;return e.forEach(r=>{t.add(r.year),n.set(r.nren,{name:r.nren,country:r.nren_country})}),{years:t,nrens:n}}function It(e,t,n){const r=Ke.c(14),i=n===void 0?TL:n;let s;r[0]===Symbol.for("react.memo_cache_sentinel")?(s=[],r[0]=s):s=r[0];const[o,u]=k.useState(s),d=Ay(),p=e+(d?"?preview":"");let x;r[1]!==p||r[2]!==t||r[3]!==i?(x=()=>{fetch(p).then(bL).then(C=>{const R=C.filter(i);u(R);const{years:A,nrens:j}=dE(R);t(O=>{const L=O.selectedYears.filter(W=>A.has(W)).length?O.selectedYears:[Math.max(...A)],U=O.selectedNrens.filter(W=>j.has(W)).length?O.selectedNrens:[...j.keys()];return{selectedYears:L,selectedNrens:U}})})},r[1]=p,r[2]=t,r[3]=i,r[4]=x):x=r[4];let y;r[5]!==p||r[6]!==t?(y=[p,t],r[5]=p,r[6]=t,r[7]=y):y=r[7],k.useEffect(x,y);let v,w;r[8]!==o?(w=dE(o),r[8]=o,r[9]=w):w=r[9],v=w;const{years:b,nrens:S}=v;let T;return r[10]!==o||r[11]!==S||r[12]!==b?(T={data:o,years:b,nrens:S},r[10]=o,r[11]=S,r[12]=b,r[13]=T):T=r[13],T}function bL(e){return e.json()}function TL(){return!0}const lm=({title:e,unit:t,tooltipPrefix:n,tooltipUnit:r,tickLimit:i,valueTransform:s})=>({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 u=n??(o.dataset.label||"");const d=s?s(o.parsed.y):o.parsed.y;return o.parsed.y!==null&&(u+=`: ${d} ${r||""}`),u}}}},scales:{y:{title:{display:!!e,text:e||""},ticks:{autoSkip:!0,maxTicksLimit:i,callback:o=>`${typeof o=="string"?o:s?s(o):o} ${t||""}`}}}}),sm=({title:e,unit:t,tooltipPrefix:n,tooltipUnit:r,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(s){let o=n??(s.dataset.label||"");const u=i?i(s.parsed.x):s.parsed.x;return s.parsed.y!==null&&(o+=`: ${u} ${r||""}`),o}}}},scales:{x:{title:{display:!!e,text:e||""},position:"top",ticks:{callback:s=>s&&`${i?i(s):s} ${t||""}`}},x2:{title:{display:!!e,text:e||""},ticks:{callback:s=>s&&`${i?i(s):s} ${t||""}`},grid:{drawOnChartArea:!1},afterDataLimits:function(s){const o=Object.keys(on.instances);let u=-999999,d=999999;for(const p of o)on.instances[p]&&s.chart.scales.x2&&(d=Math.min(on.instances[p].scales.x.min,d),u=Math.max(on.instances[p].scales.x.max,u));s.chart.scales.x2.options.min=d,s.chart.scales.x2.options.max=u,s.chart.scales.x2.min=d,s.chart.scales.x2.max=u}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"});on.register(fl,ul,I1,Y1,dl,Bi,hl);function NL(){const e=Ke.c(24),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,nrens:i}=It("/api/budget",n);let s,o;if(e[0]!==r||e[1]!==t.selectedNrens){let A;e[4]!==t.selectedNrens?(A=j=>t.selectedNrens.includes(j.nren),e[4]=t.selectedNrens,e[5]=A):A=e[5],s=r.filter(A),o=Ac(s,"budget"),e[0]=r,e[1]=t.selectedNrens,e[2]=s,e[3]=o}else s=e[2],o=e[3];const u=o;let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[6]=d):d=e[6];let p;e[7]!==i?(p=i.values(),e[7]=i,e[8]=p):p=e[8];let x;e[9]!==p?(x={availableYears:d,availableNrens:[...p]},e[9]=p,e[10]=x):x=e[10];let y;e[11]!==t||e[12]!==n||e[13]!==x?(y=g.jsx(Ut,{filterOptions:x,filterSelection:t,setFilterSelection:n}),e[11]=t,e[12]=n,e[13]=x,e[14]=y):y=e[14];const v=y;let w;e[15]===Symbol.for("react.memo_cache_sentinel")?(w=lm({title:"Budget in M€",tooltipUnit:"M€",unit:"M€"}),e[15]=w):w=e[15];const b=w;let S;e[16]===Symbol.for("react.memo_cache_sentinel")?(S=g.jsx("br",{}),e[16]=S):S=e[16];let T;e[17]===Symbol.for("react.memo_cache_sentinel")?(T=g.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.",S,"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.",g.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]=T):T=e[17];let C;e[18]!==u?(C=g.jsx(Ht,{children:g.jsx(Cc,{data:u,options:b})}),e[18]=u,e[19]=C):C=e[19];let R;return e[20]!==v||e[21]!==s||e[22]!==C?(R=g.jsx(Pt,{title:"Budget of NRENs per Year",description:T,category:ct.Organisation,filter:v,data:s,filename:"budget_data",children:C}),e[20]=v,e[21]=s,e[22]=C,e[23]=R):R=e[23],R}function Rs(e){const t=Ke.c(10),{year:n,active:r,tooltip:i,rounded:s}=e,u=(s===void 0?!1:s)?"30px":"75px";let d;t[0]!==u?(d={width:u,height:"30px",margin:"2px"},t[0]=u,t[1]=d):d=t[1];const p=d;let x;t[2]!==r||t[3]!==p||t[4]!==i||t[5]!==n?(x=r&&i?g.jsx("div",{className:`rounded-pill bg-color-of-the-year-${n%9} bottom-tooltip pill-shadow`,style:p,"data-description":`${n}: ${i}`}):r?g.jsx("div",{className:`rounded-pill bg-color-of-the-year-${n%9} bottom-tooltip-small`,style:p,"data-description":n}):g.jsx("div",{className:"rounded-pill bg-color-of-the-year-blank",style:p}),t[2]=r,t[3]=p,t[4]=i,t[5]=n,t[6]=x):x=t[6];let y;return t[7]!==x||t[8]!==n?(y=g.jsx("div",{className:"d-inline-block",children:x},n),t[7]=x,t[8]=n,t[9]=y):y=t[9],y}function oa({columns:e,dataLookup:t,circle:n=!1,columnLookup:r=new Map}){const i=Array.from(new Set(Array.from(t.values()).flatMap(d=>Array.from(d.keys())))),s=e.map(d=>r.get(d)||d),o=Array.from(new Set(Array.from(t.values()).flatMap(d=>Array.from(d.values()).flatMap(p=>Array.from(p.keys()))))),u=i.filter(d=>{const p=r.get(d);return p?!s.includes(p):!s.includes(d)}).map(d=>r.get(d)||d);return g.jsxs(Xl,{className:"charging-struct-table",striped:!0,bordered:!0,children:[g.jsx("colgroup",{children:g.jsx("col",{span:1,style:{width:"12rem"}})}),g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{}),e.map(d=>g.jsx("th",{colSpan:1,children:d},d)),u.length?g.jsx("th",{children:"Other"}):null]})}),g.jsx("tbody",{children:Array.from(t.entries()).map(([d,p])=>g.jsxs("tr",{children:[g.jsx("td",{children:d}),s.map(x=>{const y=p.get(x);return y?g.jsx("td",{children:o.map(v=>{const w=y.get(v)||{};return g.jsx(Rs,{year:v,active:y.has(v),tooltip:w.tooltip,rounded:n},v)})},x):g.jsx("td",{},x)}),!!u.length&&g.jsx("td",{children:u.map(x=>{const y=p.get(x);return y?Array.from(Array.from(y.entries())).map(([w,b])=>g.jsx(Rs,{year:w,active:!0,tooltip:b.tooltip||x,rounded:n},w)):void 0})},`${d}-other`)]},d))})]})}function CL(){const e=Ke.c(29),t=AL,{filterSelection:n,setFilterSelection:r}=k.useContext(Mt),{data:i,years:s,nrens:o}=It("/api/charging",r,t);let u,d;if(e[0]!==i||e[1]!==n.selectedNrens||e[2]!==n.selectedYears){let O;e[5]!==n.selectedNrens||e[6]!==n.selectedYears?(O=B=>n.selectedYears.includes(B.year)&&n.selectedNrens.includes(B.nren),e[5]=n.selectedNrens,e[6]=n.selectedYears,e[7]=O):O=e[7],u=i.filter(O),d=Ar(u,"fee_type"),e[0]=i,e[1]=n.selectedNrens,e[2]=n.selectedYears,e[3]=u,e[4]=d}else u=e[3],d=e[4];const p=d;let x;e[8]!==s?(x=[...s],e[8]=s,e[9]=x):x=e[9];let y;e[10]!==o?(y=o.values(),e[10]=o,e[11]=y):y=e[11];let v;e[12]!==y?(v=[...y],e[12]=y,e[13]=v):v=e[13];let w;e[14]!==x||e[15]!==v?(w={availableYears:x,availableNrens:v},e[14]=x,e[15]=v,e[16]=w):w=e[16];let b;e[17]!==n||e[18]!==r||e[19]!==w?(b=g.jsx(Ut,{filterOptions:w,filterSelection:n,setFilterSelection:r,coloredYears:!0}),e[17]=n,e[18]=r,e[19]=w,e[20]=b):b=e[20];const S=b;let T,C;e[21]===Symbol.for("react.memo_cache_sentinel")?(T=["Flat fee based on bandwidth","Usage based fee","Combination flat fee & usage basedfee","No Direct Charge","Other"],C=new Map([[T[0],"flat_fee"],[T[1],"usage_based_fee"],[T[2],"combination"],[T[3],"no_charge"],[T[4],"other"]]),e[21]=T,e[22]=C):(T=e[21],C=e[22]);const R=C;let A;e[23]!==p?(A=g.jsx(Ht,{children:g.jsx(oa,{columns:T,dataLookup:p,columnLookup:R})}),e[23]=p,e[24]=A):A=e[24];let j;return e[25]!==S||e[26]!==u||e[27]!==A?(j=g.jsx(Pt,{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:ct.Organisation,filter:S,data:u,filename:"charging_mechanism_of_nrens_per_year",children:A}),e[25]=S,e[26]=u,e[27]=A,e[28]=j):j=e[28],j}function AL(e){return e.fee_type!=null}function RL(e,t,n,r,i){return e?r.startsWith("http")?g.jsx("li",{children:g.jsx("a",{href:NA(r),target:"_blank",rel:"noopener noreferrer",style:t,children:i})},n):g.jsx("li",{children:g.jsx("span",{children:i})},n):g.jsx("li",{children:g.jsx("span",{children:i})},n)}function OL(e,{dottedBorder:t=!1,noDots:n=!1,keysAreURLs:r=!1,removeDecoration:i=!1}){return Array.from(e.entries()).map(([s,o])=>Array.from(o.entries()).map(([u,d],p)=>{const x={};return i&&(x.textDecoration="none"),g.jsxs("tr",{className:t?"dotted-border":"",children:[g.jsx("td",{className:"pt-3 nren-column text-nowrap",children:p===0&&s}),g.jsx("td",{className:"pt-3 year-column",children:u}),g.jsx("td",{className:"pt-3 blue-column",children:g.jsx("ul",{className:n?"no-list-style-type":"",children:Array.from(Object.entries(d)).map(([y,v],w)=>RL(r,x,w,v,y))})})]},s+u)}))}function Ms(e){const t=Ke.c(15),{data:n,columnTitle:r,dottedBorder:i,noDots:s,keysAreURLs:o,removeDecoration:u}=e;let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=g.jsx("th",{className:"nren-column",children:g.jsx("span",{children:"NREN"})}),t[0]=d):d=t[0];let p;t[1]===Symbol.for("react.memo_cache_sentinel")?(p=g.jsx("th",{className:"year-column",children:g.jsx("span",{children:"Year"})}),t[1]=p):p=t[1];let x;t[2]!==r?(x=g.jsx("thead",{children:g.jsxs("tr",{children:[d,p,g.jsx("th",{className:"blue-column",children:g.jsx("span",{children:r})})]})}),t[2]=r,t[3]=x):x=t[3];let y;t[4]!==n||t[5]!==i||t[6]!==o||t[7]!==s||t[8]!==u?(y=OL(n,{dottedBorder:i,noDots:s,keysAreURLs:o,removeDecoration:u}),t[4]=n,t[5]=i,t[6]=o,t[7]=s,t[8]=u,t[9]=y):y=t[9];let v;t[10]!==y?(v=g.jsx("tbody",{children:y}),t[10]=y,t[11]=v):v=t[11];let w;return t[12]!==x||t[13]!==v?(w=g.jsxs(Xl,{borderless:!0,className:"compendium-table",children:[x,v]}),t[12]=x,t[13]=v,t[14]=w):w=t[14],w}function DL(){const e=Ke.c(27),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/ec-project",n);let o,u;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==r){let C;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(C=j=>t.selectedYears.includes(j.year)&&t.selectedNrens.includes(j.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=C):C=e[7],o=r.filter(C);const R=J1(o);u=ql(R,jL),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=r,e[3]=o,e[4]=u}else o=e[3],u=e[4];const d=u;let p;e[8]!==i?(p=[...i],e[8]=i,e[9]=p):p=e[9];let x;e[10]!==s?(x=s.values(),e[10]=s,e[11]=x):x=e[11];let y;e[12]!==x?(y=[...x],e[12]=x,e[13]=y):y=e[13];let v;e[14]!==p||e[15]!==y?(v={availableYears:p,availableNrens:y},e[14]=p,e[15]=y,e[16]=v):v=e[16];let w;e[17]!==t||e[18]!==n||e[19]!==v?(w=g.jsx(Ut,{filterOptions:v,filterSelection:t,setFilterSelection:n}),e[17]=t,e[18]=n,e[19]=v,e[20]=w):w=e[20];const b=w;let S;e[21]!==d?(S=g.jsx(Ht,{children:g.jsx(Ms,{data:d,columnTitle:"EC Project Membership",dottedBorder:!0})}),e[21]=d,e[22]=S):S=e[22];let T;return e[23]!==b||e[24]!==o||e[25]!==S?(T=g.jsx(Pt,{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:ct.Organisation,filter:b,data:o,filename:"nren_involvement_in_european_commission_projects",children:S}),e[23]=b,e[24]=o,e[25]=S,e[26]=T):T=e[26],T}function jL(e,t){const n=t.map(kL).sort();n.length&&n.forEach(r=>{e[r]=r})}function kL(e){return e.project}function d1(e){const t=Ke.c(6),{index:n,active:r}=e,i=r===void 0?!0:r;let s;t[0]!==i||t[1]!==n?(s=i?g.jsx("div",{className:`color-of-badge-${n%5}`,style:{width:"20px",height:"35px",margin:"2px"}}):g.jsx("div",{className:"color-of-badge-blank",style:{width:"15px",height:"30px",margin:"2px"}}),t[0]=i,t[1]=n,t[2]=s):s=t[2];let o;return t[3]!==n||t[4]!==s?(o=g.jsx("div",{className:"d-inline-block m-2",children:s},n),t[3]=n,t[4]=s,t[5]=o):o=t[5],o}const FL={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(on.instances);let n=-999999,r=999999;for(const i of t)on.instances[i]&&e.chart.scales.xBottom&&(r=Math.min(on.instances[i].scales.x.min,r),n=Math.max(on.instances[i].scales.x.max,n));e.chart.scales.xBottom.options.min=r,e.chart.scales.xBottom.options.max=n,e.chart.scales.xBottom.min=r,e.chart.scales.xBottom.max=n}},y:{ticks:{autoSkip:!1}}},indexAxis:"y"};function hE(){const e=Ke.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=g.jsxs(Qn,{className:"d-flex align-items-center",children:[g.jsx(d1,{index:0},0),"Client Institutions"]}),e[0]=t):t=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=g.jsxs(Qn,{className:"d-flex align-items-center",children:[g.jsx(d1,{index:1},1),"Commercial"]}),e[1]=n):n=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=g.jsxs(Qn,{className:"d-flex align-items-center",children:[g.jsx(d1,{index:2},2),"European Funding"]}),e[2]=r):r=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=g.jsxs(Qn,{className:"d-flex align-items-center",children:[g.jsx(d1,{index:3},3),"Gov/Public Bodies"]}),e[3]=i):i=e[3];let s;return e[4]===Symbol.for("react.memo_cache_sentinel")?(s=g.jsx("div",{className:"d-flex justify-content-center bold-grey-12pt",children:g.jsxs(Cn,{xs:"auto",className:"border rounded-3 border-1 my-5 justify-content-center",children:[t,n,r,i,g.jsxs(Qn,{className:"d-flex align-items-center",children:[g.jsx(d1,{index:4},4),"Other"]})]})}),e[4]=s):s=e[4],s}on.register(Bi);function LL(){const e=Ke.c(44),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/funding",n);let o,u,d,p;if(e[0]!==t||e[1]!==r||e[2]!==s||e[3]!==n||e[4]!==i){let L;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(L=_e=>t.selectedYears.includes(_e.year)&&t.selectedNrens.includes(_e.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=L):L=e[11],d=r.filter(L),u=CA(d),u.datasets.forEach(_e=>{_e.data=_e.data.filter((ye,ce)=>t.selectedNrens.includes(u.labels[ce]))});let I;e[12]!==t.selectedNrens?(I=_e=>t.selectedNrens.includes(_e),e[12]=t.selectedNrens,e[13]=I):I=e[13],u.labels=u.labels.filter(I);let U;e[14]!==i?(U=[...i],e[14]=i,e[15]=U):U=e[15];let W;e[16]!==s?(W=s.values(),e[16]=s,e[17]=W):W=e[17];let X;e[18]!==W?(X=[...W],e[18]=W,e[19]=X):X=e[19];let te;e[20]!==U||e[21]!==X?(te={availableYears:U,availableNrens:X},e[20]=U,e[21]=X,e[22]=te):te=e[22];let ne;e[23]!==t||e[24]!==n||e[25]!==te?(ne=g.jsx(Ut,{filterOptions:te,filterSelection:t,setFilterSelection:n}),e[23]=t,e[24]=n,e[25]=te,e[26]=ne):ne=e[26],o=ne,p=Array.from(new Set(d.map(ML))),e[0]=t,e[1]=r,e[2]=s,e[3]=n,e[4]=i,e[5]=o,e[6]=u,e[7]=d,e[8]=p}else o=e[5],u=e[6],d=e[7],p=e[8];const x=p.length,y=t.selectedYears.length,v=x*y*2+5;let w;e[27]===Symbol.for("react.memo_cache_sentinel")?(w=g.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.',g.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]=w):w=e[27];let b;e[28]===Symbol.for("react.memo_cache_sentinel")?(b=g.jsx(hE,{}),e[28]=b):b=e[28];const S=`${v}rem`;let T;e[29]!==S?(T={height:S},e[29]=S,e[30]=T):T=e[30];let C;e[31]===Symbol.for("react.memo_cache_sentinel")?(C=[J0],e[31]=C):C=e[31];let R;e[32]!==u?(R=g.jsx(Pc,{plugins:C,data:u,options:FL}),e[32]=u,e[33]=R):R=e[33];let A;e[34]!==T||e[35]!==R?(A=g.jsx("div",{className:"chart-container",style:T,children:R}),e[34]=T,e[35]=R,e[36]=A):A=e[36];let j;e[37]===Symbol.for("react.memo_cache_sentinel")?(j=g.jsx(hE,{}),e[37]=j):j=e[37];let O;e[38]!==A?(O=g.jsxs(Ht,{children:[b,A,j]}),e[38]=A,e[39]=O):O=e[39];let B;return e[40]!==o||e[41]!==d||e[42]!==O?(B=g.jsx(Pt,{title:"Income Source Of NRENs",description:w,category:ct.Organisation,filter:o,data:d,filename:"income_source_of_nren_per_year",children:O}),e[40]=o,e[41]=d,e[42]=O,e[43]=B):B=e[43],B}function ML(e){return e.nren}function BL(){const e=Ke.c(27),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/parent-organizations",n);let o,u;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==r){let C;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(C=A=>t.selectedYears.includes(A.year)&&t.selectedNrens.includes(A.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=C):C=e[7],o=r.filter(C);const R=Pi(o);u=ql(R,PL),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=r,e[3]=o,e[4]=u}else o=e[3],u=e[4];const d=u;let p;e[8]!==i?(p=[...i],e[8]=i,e[9]=p):p=e[9];let x;e[10]!==s?(x=s.values(),e[10]=s,e[11]=x):x=e[11];let y;e[12]!==x?(y=[...x],e[12]=x,e[13]=y):y=e[13];let v;e[14]!==p||e[15]!==y?(v={availableYears:p,availableNrens:y},e[14]=p,e[15]=y,e[16]=v):v=e[16];let w;e[17]!==t||e[18]!==n||e[19]!==v?(w=g.jsx(Ut,{filterOptions:v,filterSelection:t,setFilterSelection:n,max1year:!0}),e[17]=t,e[18]=n,e[19]=v,e[20]=w):w=e[20];const b=w;let S;e[21]!==d?(S=g.jsx(Ht,{children:g.jsx(Ms,{data:d,columnTitle:"Parent Organisation",dottedBorder:!0,noDots:!0})}),e[21]=d,e[22]=S):S=e[22];let T;return e[23]!==b||e[24]!==o||e[25]!==S?(T=g.jsx(Pt,{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:ct.Organisation,filter:b,data:o,filename:"nren_parent_organisations",children:S}),e[23]=b,e[24]=o,e[25]=S,e[26]=T):T=e[26],T}function PL(e,t){const n=t.name;e[n]=n}const mb=e=>{const t=Ke.c(8);let{children:n,location:r}=e;r||(r="both");const i=r==="top"||r==="both",s=r==="bottom"||r==="both";let o;t[0]!==i?(o=i&&g.jsx("div",{style:{paddingLeft:"33%",paddingTop:"2.5rem",paddingBottom:"1.5rem"},id:"legendtop"}),t[0]=i,t[1]=o):o=t[1];let u;t[2]!==s?(u=s&&g.jsx("div",{style:{paddingLeft:"33%",paddingTop:"1.5rem"},id:"legendbottom"}),t[2]=s,t[3]=u):u=t[3];let d;return t[4]!==n||t[5]!==o||t[6]!==u?(d=g.jsxs(Ht,{children:[o,n,u]}),t[4]=n,t[5]=o,t[6]=u,t[7]=d):d=t[7],d},UL=(e,t)=>{const n=document.getElementById(t);if(!n)return null;let r=n.querySelector("ul");return r||(r=document.createElement("ul"),r.style.display="flex",r.style.flexDirection="row",r.style.margin="0",r.style.padding="0",n.appendChild(r)),r},pb={id:"htmlLegend",afterUpdate(e,t,n){for(const r of n.containerIDs){const i=UL(e,r);if(!i)return;for(;i.firstChild;)i.firstChild.remove();e.options.plugins.legend.labels.generateLabels(e).forEach(o=>{const u=document.createElement("li");u.style.alignItems="center",u.style.cursor="pointer",u.style.display="flex",u.style.flexDirection="row",u.style.marginLeft="10px",u.onclick=()=>{const{type:y}=e.config;y==="pie"||y==="doughnut"?e.toggleDataVisibility(o.index):e.setDatasetVisibility(o.datasetIndex,!e.isDatasetVisible(o.datasetIndex)),e.update()};const d=document.createElement("span");d.style.background=o.fillStyle,d.style.borderColor=o.strokeStyle,d.style.borderWidth=o.lineWidth+"px",d.style.display="inline-block",d.style.height="1rem",d.style.marginRight="10px",d.style.width="2.5rem";const p=document.createElement("p");p.style.color=o.fontColor,p.style.margin="0",p.style.padding="0",p.style.textDecoration=o.hidden?"line-through":"",p.style.fontSize=`${on.defaults.font.size}px`,p.style.fontFamily=`${on.defaults.font.family}`,p.style.fontWeight=`${on.defaults.font.weight}`;const x=document.createTextNode(o.text);p.appendChild(x),u.appendChild(d),u.appendChild(p),i.appendChild(u)})}}};on.register(fl,ul,iu,dl,Bi,hl);const IL={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(on.instances);let n=-999999,r=999999;for(const i of t)on.instances[i]&&e.chart.scales.x2&&(r=Math.min(on.instances[i].scales.x.min,r),n=Math.max(on.instances[i].scales.x.max,n));e.chart.scales.x2.options.min=r,e.chart.scales.x2.options.max=n,e.chart.scales.x2.min=r,e.chart.scales.x2.max=n}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};function mE(e){const t=Ke.c(39),{roles:n}=e,r=n===void 0?!1:n;let i;t[0]!==r?(i=function(ce){return r&&ce.technical_fte>0&&ce.non_technical_fte>0||!r&&ce.permanent_fte>0&&ce.subcontracted_fte>0},t[0]=r,t[1]=i):i=t[1];const s=i,{filterSelection:o,setFilterSelection:u}=k.useContext(Mt),{data:d,years:p,nrens:x}=It("/api/staff",u,s);let y,v;if(t[2]!==d||t[3]!==o.selectedNrens||t[4]!==o.selectedYears||t[5]!==r){let ye;t[8]!==o.selectedNrens||t[9]!==o.selectedYears?(ye=ce=>o.selectedYears.includes(ce.year)&&o.selectedNrens.includes(ce.nren),t[8]=o.selectedNrens,t[9]=o.selectedYears,t[10]=ye):ye=t[10],y=d.filter(ye),v=AA(y,r,o.selectedYears[0]),t[2]=d,t[3]=o.selectedNrens,t[4]=o.selectedYears,t[5]=r,t[6]=y,t[7]=v}else y=t[6],v=t[7];const w=v;let b;t[11]!==p?(b=[...p],t[11]=p,t[12]=b):b=t[12];let S;t[13]!==x?(S=x.values(),t[13]=x,t[14]=S):S=t[14];let T;t[15]!==S?(T=[...S],t[15]=S,t[16]=T):T=t[16];let C;t[17]!==b||t[18]!==T?(C={availableYears:b,availableNrens:T},t[17]=b,t[18]=T,t[19]=C):C=t[19];let R;t[20]!==o||t[21]!==u||t[22]!==C?(R=g.jsx(Ut,{max1year:!0,filterOptions:C,filterSelection:o,setFilterSelection:u}),t[20]=o,t[21]=u,t[22]=C,t[23]=R):R=t[23];const A=R,j=y.length,O=Math.max(j*1.5,20),B=r?"Roles of NREN employees (Technical v. Non-Technical)":"Types of Employment within NRENs",L=r?"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.",I=r?"roles_of_nren_employees":"types_of_employment_for_nrens",U=`${O}rem`;let W;t[24]!==U?(W={height:U},t[24]=U,t[25]=W):W=t[25];let X;t[26]===Symbol.for("react.memo_cache_sentinel")?(X=[pb],t[26]=X):X=t[26];let te;t[27]!==w?(te=g.jsx(Pc,{data:w,options:IL,plugins:X}),t[27]=w,t[28]=te):te=t[28];let ne;t[29]!==W||t[30]!==te?(ne=g.jsx(mb,{children:g.jsx("div",{className:"chart-container",style:W,children:te})}),t[29]=W,t[30]=te,t[31]=ne):ne=t[31];let _e;return t[32]!==L||t[33]!==I||t[34]!==A||t[35]!==y||t[36]!==ne||t[37]!==B?(_e=g.jsx(Pt,{title:B,description:L,category:ct.Organisation,filter:A,data:y,filename:I,children:ne}),t[32]=L,t[33]=I,t[34]=A,t[35]=y,t[36]=ne,t[37]=B,t[38]=_e):_e=t[38],_e}on.register(fl,ul,iu,dl,Bi,hl);function YL(){const e=Ke.c(38),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/staff",n);let o,u,d,p;if(e[0]!==r||e[1]!==t||e[2]!==s||e[3]!==n||e[4]!==i){let O;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(O=X=>t.selectedYears.includes(X.year)&&t.selectedNrens.includes(X.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=O):O=e[11],d=r.filter(O),u=OA(d,t.selectedYears);let B;e[12]!==i?(B=[...i],e[12]=i,e[13]=B):B=e[13];let L;e[14]!==s?(L=s.values(),e[14]=s,e[15]=L):L=e[15];let I;e[16]!==L?(I=[...L],e[16]=L,e[17]=I):I=e[17];let U;e[18]!==B||e[19]!==I?(U={availableYears:B,availableNrens:I},e[18]=B,e[19]=I,e[20]=U):U=e[20];let W;e[21]!==t||e[22]!==n||e[23]!==U?(W=g.jsx(Ut,{filterOptions:U,filterSelection:t,setFilterSelection:n}),e[21]=t,e[22]=n,e[23]=U,e[24]=W):W=e[24],o=W,p=Array.from(new Set(d.map(HL))),e[0]=r,e[1]=t,e[2]=s,e[3]=n,e[4]=i,e[5]=o,e[6]=u,e[7]=d,e[8]=p}else o=e[5],u=e[6],d=e[7],p=e[8];const x=p.length,y=Math.max(x*t.selectedYears.length*1.5+5,50),v='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 w;e[25]===Symbol.for("react.memo_cache_sentinel")?(w=sm({tooltipPrefix:"FTEs",title:"Full-Time Equivalents"}),e[25]=w):w=e[25];const b=w,S=`${y}rem`;let T;e[26]!==S?(T={height:S},e[26]=S,e[27]=T):T=e[27];let C;e[28]===Symbol.for("react.memo_cache_sentinel")?(C=[J0],e[28]=C):C=e[28];let R;e[29]!==u?(R=g.jsx(Pc,{data:u,options:b,plugins:C}),e[29]=u,e[30]=R):R=e[30];let A;e[31]!==T||e[32]!==R?(A=g.jsx(Ht,{children:g.jsx("div",{className:"chart-container",style:T,children:R})}),e[31]=T,e[32]=R,e[33]=A):A=e[33];let j;return e[34]!==o||e[35]!==d||e[36]!==A?(j=g.jsx(Pt,{title:"Number of NREN Employees",description:v,category:ct.Organisation,filter:o,data:d,filename:"number_of_nren_employees",children:A}),e[34]=o,e[35]=d,e[36]=A,e[37]=j):j=e[37],j}function HL(e){return e.nren}function $L(){const e=Ke.c(27),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/sub-organizations",n);let o,u;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let C;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(C=A=>t.selectedYears.includes(A.year)&&t.selectedNrens.includes(A.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=C):C=e[7],o=r.filter(C);const R=J1(o);u=ql(R,zL),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=u}else o=e[3],u=e[4];const d=u;let p;e[8]!==i?(p=[...i],e[8]=i,e[9]=p):p=e[9];let x;e[10]!==s?(x=s.values(),e[10]=s,e[11]=x):x=e[11];let y;e[12]!==x?(y=[...x],e[12]=x,e[13]=y):y=e[13];let v;e[14]!==p||e[15]!==y?(v={availableYears:p,availableNrens:y},e[14]=p,e[15]=y,e[16]=v):v=e[16];let w;e[17]!==t||e[18]!==n||e[19]!==v?(w=g.jsx(Ut,{filterOptions:v,filterSelection:t,setFilterSelection:n}),e[17]=t,e[18]=n,e[19]=v,e[20]=w):w=e[20];const b=w;let S;e[21]!==d?(S=g.jsx(Ht,{children:g.jsx(Ms,{data:d,columnTitle:"Suborganisation and Role",dottedBorder:!0})}),e[21]=d,e[22]=S):S=e[22];let T;return e[23]!==b||e[24]!==o||e[25]!==S?(T=g.jsx(Pt,{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:ct.Organisation,filter:b,data:o,filename:"nren_suborganisations",children:S}),e[23]=b,e[24]=o,e[25]=S,e[26]=T):T=e[26],T}function zL(e,t){for(const n of t.sort(GL)){const r=`${n.name} (${n.role})`;e[r]=r}}function GL(e,t){return e.name.localeCompare(t.name)}function WL(){const e=Ke.c(30);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=B=>B.audits!==null,e[0]=t):t=e[0];const n=t,{filterSelection:r,setFilterSelection:i}=k.useContext(Mt),{data:s,years:o,nrens:u}=It("/api/standards",i,n);let d,p;if(e[1]!==s||e[2]!==r.selectedNrens||e[3]!==r.selectedYears){let B;e[6]!==r.selectedNrens||e[7]!==r.selectedYears?(B=U=>r.selectedYears.includes(U.year)&&r.selectedNrens.includes(U.nren)&&U.audits!==null,e[6]=r.selectedNrens,e[7]=r.selectedYears,e[8]=B):B=e[8],d=s.filter(B);const L=Ar(d,"audits");p=Q1(L,VL),e[1]=s,e[2]=r.selectedNrens,e[3]=r.selectedYears,e[4]=d,e[5]=p}else d=e[4],p=e[5];const x=p;let y,v;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=["Yes","No"],v=new Map([[y[0],"True"],[y[1],"False"]]),e[9]=y,e[10]=v):(y=e[9],v=e[10]);const w=v;let b;e[11]!==o?(b=[...o],e[11]=o,e[12]=b):b=e[12];let S;e[13]!==u?(S=u.values(),e[13]=u,e[14]=S):S=e[14];let T;e[15]!==S?(T=[...S],e[15]=S,e[16]=T):T=e[16];let C;e[17]!==b||e[18]!==T?(C={availableYears:b,availableNrens:T},e[17]=b,e[18]=T,e[19]=C):C=e[19];let R;e[20]!==r||e[21]!==i||e[22]!==C?(R=g.jsx(Ut,{filterOptions:C,filterSelection:r,setFilterSelection:i,coloredYears:!0}),e[20]=r,e[21]=i,e[22]=C,e[23]=R):R=e[23];const A=R;let j;e[24]!==x?(j=g.jsx(Ht,{children:g.jsx(oa,{columns:y,columnLookup:w,dataLookup:x})}),e[24]=x,e[25]=j):j=e[25];let O;return e[26]!==A||e[27]!==d||e[28]!==j?(O=g.jsx(Pt,{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:ct.Policy,filter:A,data:d,filename:"audits_nrens_per_year",children:j}),e[26]=A,e[27]=d,e[28]=j,e[29]=O):O=e[29],O}function VL(e,t){if(t.audit_specifics)return t.audit_specifics}function XL(){const e=Ke.c(30);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=B=>B.business_continuity_plans!==null,e[0]=t):t=e[0];const n=t,{filterSelection:r,setFilterSelection:i}=k.useContext(Mt),{data:s,years:o,nrens:u}=It("/api/standards",i,n);let d,p;if(e[1]!==s||e[2]!==r.selectedNrens||e[3]!==r.selectedYears){let B;e[6]!==r.selectedNrens||e[7]!==r.selectedYears?(B=U=>r.selectedYears.includes(U.year)&&r.selectedNrens.includes(U.nren)&&U.business_continuity_plans!==null,e[6]=r.selectedNrens,e[7]=r.selectedYears,e[8]=B):B=e[8],d=s.filter(B);const L=Ar(d,"business_continuity_plans");p=Q1(L,qL),e[1]=s,e[2]=r.selectedNrens,e[3]=r.selectedYears,e[4]=d,e[5]=p}else d=e[4],p=e[5];const x=p;let y,v;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=["Yes","No"],v=new Map([[y[0],"True"],[y[1],"False"]]),e[9]=y,e[10]=v):(y=e[9],v=e[10]);const w=v;let b;e[11]!==o?(b=[...o],e[11]=o,e[12]=b):b=e[12];let S;e[13]!==u?(S=u.values(),e[13]=u,e[14]=S):S=e[14];let T;e[15]!==S?(T=[...S],e[15]=S,e[16]=T):T=e[16];let C;e[17]!==b||e[18]!==T?(C={availableYears:b,availableNrens:T},e[17]=b,e[18]=T,e[19]=C):C=e[19];let R;e[20]!==r||e[21]!==i||e[22]!==C?(R=g.jsx(Ut,{filterOptions:C,filterSelection:r,setFilterSelection:i,coloredYears:!0}),e[20]=r,e[21]=i,e[22]=C,e[23]=R):R=e[23];const A=R;let j;e[24]!==x?(j=g.jsx(Ht,{children:g.jsx(oa,{columns:y,columnLookup:w,dataLookup:x})}),e[24]=x,e[25]=j):j=e[25];let O;return e[26]!==A||e[27]!==d||e[28]!==j?(O=g.jsx(Pt,{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:ct.Policy,filter:A,data:d,filename:"business_continuity_nrens_per_year",children:j}),e[26]=A,e[27]=d,e[28]=j,e[29]=O):O=e[29],O}function qL(e,t){if(t.business_continuity_plans_specifics)return t.business_continuity_plans_specifics}on.register(fl,ul,iu,dl,Bi,hl);function KL(){const e=Ke.c(40);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=I=>I.amount!=null,e[0]=t):t=e[0];const n=t,{filterSelection:r,setFilterSelection:i}=k.useContext(Mt),{data:s,years:o,nrens:u}=It("/api/central-procurement",i,n);let d,p,x,y;if(e[1]!==s||e[2]!==r||e[3]!==u||e[4]!==i||e[5]!==o){let I;e[10]!==r.selectedNrens||e[11]!==r.selectedYears?(I=_e=>r.selectedYears.includes(_e.year)&&r.selectedNrens.includes(_e.nren),e[10]=r.selectedNrens,e[11]=r.selectedYears,e[12]=I):I=e[12],x=s.filter(I),d=vx(x,"amount","Procurement Value");let U;e[13]!==o?(U=[...o],e[13]=o,e[14]=U):U=e[14];let W;e[15]!==u?(W=u.values(),e[15]=u,e[16]=W):W=e[16];let X;e[17]!==W?(X=[...W],e[17]=W,e[18]=X):X=e[18];let te;e[19]!==U||e[20]!==X?(te={availableYears:U,availableNrens:X},e[19]=U,e[20]=X,e[21]=te):te=e[21];let ne;e[22]!==r||e[23]!==i||e[24]!==te?(ne=g.jsx(Ut,{filterOptions:te,filterSelection:r,setFilterSelection:i}),e[22]=r,e[23]=i,e[24]=te,e[25]=ne):ne=e[25],p=ne,y=Array.from(new Set(x.map(ZL))),e[1]=s,e[2]=r,e[3]=u,e[4]=i,e[5]=o,e[6]=d,e[7]=p,e[8]=x,e[9]=y}else d=e[6],p=e[7],x=e[8],y=e[9];const v=y.length,w=Math.max(v*r.selectedYears.length*1.5+5,50);let b;e[26]===Symbol.for("react.memo_cache_sentinel")?(b=g.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 S=b;let T;e[27]===Symbol.for("react.memo_cache_sentinel")?(T=sm({title:"Software Procurement Value",valueTransform(I){return`${new Intl.NumberFormat(void 0,{style:"currency",currency:"EUR",trailingZeroDisplay:"stripIfInteger"}).format(I)}`}}),e[27]=T):T=e[27];const C=T,R=`${w}rem`;let A;e[28]!==R?(A={height:R},e[28]=R,e[29]=A):A=e[29];let j;e[30]===Symbol.for("react.memo_cache_sentinel")?(j=[J0],e[30]=j):j=e[30];let O;e[31]!==d?(O=g.jsx(Pc,{data:d,options:C,plugins:j}),e[31]=d,e[32]=O):O=e[32];let B;e[33]!==A||e[34]!==O?(B=g.jsx(Ht,{children:g.jsx("div",{className:"chart-container",style:A,children:O})}),e[33]=A,e[34]=O,e[35]=B):B=e[35];let L;return e[36]!==p||e[37]!==x||e[38]!==B?(L=g.jsx(Pt,{title:"Value of Software Procured for Customers by NRENs",description:S,category:ct.Policy,filter:p,data:x,filename:"central_procurement",children:B}),e[36]=p,e[37]=x,e[38]=B,e[39]=L):L=e[39],L}function ZL(e){return e.nren}function QL(){const e=Ke.c(23);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=C=>!!C.strategic_plan,e[0]=t):t=e[0];const n=t,{filterSelection:r,setFilterSelection:i}=k.useContext(Mt),{data:s,nrens:o}=It("/api/policy",i,n);let u,d;if(e[1]!==s||e[2]!==r.selectedNrens){const C=s?td(s):[];let R;e[5]!==r.selectedNrens?(R=O=>r.selectedNrens.includes(O.nren),e[5]=r.selectedNrens,e[6]=R):R=e[6],u=C.filter(R);const A=Pi(u);let j;e[7]===Symbol.for("react.memo_cache_sentinel")?(j=(O,B)=>{const L=B.strategic_plan;O[L]=L},e[7]=j):j=e[7],d=ql(A,j),e[1]=s,e[2]=r.selectedNrens,e[3]=u,e[4]=d}else u=e[3],d=e[4];const p=d;let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=[],e[8]=x):x=e[8];let y;e[9]!==o?(y=o.values(),e[9]=o,e[10]=y):y=e[10];let v;e[11]!==y?(v={availableYears:x,availableNrens:[...y]},e[11]=y,e[12]=v):v=e[12];let w;e[13]!==r||e[14]!==i||e[15]!==v?(w=g.jsx(Ut,{filterOptions:v,filterSelection:r,setFilterSelection:i}),e[13]=r,e[14]=i,e[15]=v,e[16]=w):w=e[16];const b=w;let S;e[17]!==p?(S=g.jsx(Ht,{children:g.jsx(Ms,{data:p,columnTitle:"Corporate Strategy",noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[17]=p,e[18]=S):S=e[18];let T;return e[19]!==b||e[20]!==u||e[21]!==S?(T=g.jsx(Pt,{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:ct.Policy,filter:b,data:u,filename:"nren_corporate_strategy",children:S}),e[19]=b,e[20]=u,e[21]=S,e[22]=T):T=e[22],T}function JL(){const e=Ke.c(51),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/crisis-exercises",n);let o,u;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let ne;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(ne=_e=>t.selectedYears.includes(_e.year)&&t.selectedNrens.includes(_e.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=ne):ne=e[7],o=r.filter(ne),u=Ar(o,"exercise_descriptions"),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=u}else o=e[3],u=e[4];const d=u;let p;e[8]!==i?(p=[...i],e[8]=i,e[9]=p):p=e[9];let x;e[10]!==s?(x=s.values(),e[10]=s,e[11]=x):x=e[11];let y;e[12]!==x?(y=[...x],e[12]=x,e[13]=y):y=e[13];let v;e[14]!==p||e[15]!==y?(v={availableYears:p,availableNrens:y},e[14]=p,e[15]=y,e[16]=v):v=e[16];let w;e[17]!==t||e[18]!==n||e[19]!==v?(w=g.jsx(Ut,{filterOptions:v,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=v,e[20]=w):w=e[20];const b=w;let S,T,C,R,A,j,O,B,L,I,U;if(e[21]!==b||e[22]!==o){const ne={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"};R=new Map(Object.entries(ne).map(eM)),C=Pt,L="Crisis Exercises - NREN Operation and Participation",I=`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. `,U=ct.Policy,A=b,j=o,O="crisis_exercise_nrens_per_year",T=Ht,S=oa,B=Object.values(ne),e[21]=b,e[22]=o,e[23]=S,e[24]=T,e[25]=C,e[26]=R,e[27]=A,e[28]=j,e[29]=O,e[30]=B,e[31]=L,e[32]=I,e[33]=U}else S=e[23],T=e[24],C=e[25],R=e[26],A=e[27],j=e[28],O=e[29],B=e[30],L=e[31],I=e[32],U=e[33];let W;e[34]!==S||e[35]!==R||e[36]!==d||e[37]!==B?(W=g.jsx(S,{columns:B,dataLookup:d,circle:!0,columnLookup:R}),e[34]=S,e[35]=R,e[36]=d,e[37]=B,e[38]=W):W=e[38];let X;e[39]!==T||e[40]!==W?(X=g.jsx(T,{children:W}),e[39]=T,e[40]=W,e[41]=X):X=e[41];let te;return e[42]!==C||e[43]!==A||e[44]!==j||e[45]!==O||e[46]!==X||e[47]!==L||e[48]!==I||e[49]!==U?(te=g.jsx(C,{title:L,description:I,category:U,filter:A,data:j,filename:O,children:X}),e[42]=C,e[43]=A,e[44]=j,e[45]=O,e[46]=X,e[47]=L,e[48]=I,e[49]=U,e[50]=te):te=e[50],te}function eM(e){const[t,n]=e;return[n,t]}function tM(){const e=Ke.c(30);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=B=>B.crisis_management_procedure!==null,e[0]=t):t=e[0];const n=t,{filterSelection:r,setFilterSelection:i}=k.useContext(Mt),{data:s,years:o,nrens:u}=It("/api/standards",i,n);let d,p;if(e[1]!==s||e[2]!==r.selectedNrens||e[3]!==r.selectedYears){let B;e[6]!==r.selectedNrens||e[7]!==r.selectedYears?(B=L=>r.selectedYears.includes(L.year)&&r.selectedNrens.includes(L.nren)&&n(L),e[6]=r.selectedNrens,e[7]=r.selectedYears,e[8]=B):B=e[8],d=s.filter(B),p=Ar(d,"crisis_management_procedure"),e[1]=s,e[2]=r.selectedNrens,e[3]=r.selectedYears,e[4]=d,e[5]=p}else d=e[4],p=e[5];const x=p;let y,v;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=["Yes","No"],v=new Map([[y[0],"True"],[y[1],"False"]]),e[9]=y,e[10]=v):(y=e[9],v=e[10]);const w=v;let b;e[11]!==o?(b=[...o],e[11]=o,e[12]=b):b=e[12];let S;e[13]!==u?(S=u.values(),e[13]=u,e[14]=S):S=e[14];let T;e[15]!==S?(T=[...S],e[15]=S,e[16]=T):T=e[16];let C;e[17]!==b||e[18]!==T?(C={availableYears:b,availableNrens:T},e[17]=b,e[18]=T,e[19]=C):C=e[19];let R;e[20]!==r||e[21]!==i||e[22]!==C?(R=g.jsx(Ut,{filterOptions:C,filterSelection:r,setFilterSelection:i,coloredYears:!0}),e[20]=r,e[21]=i,e[22]=C,e[23]=R):R=e[23];const A=R;let j;e[24]!==x?(j=g.jsx(Ht,{children:g.jsx(oa,{columns:y,columnLookup:w,dataLookup:x})}),e[24]=x,e[25]=j):j=e[25];let O;return e[26]!==A||e[27]!==d||e[28]!==j?(O=g.jsx(Pt,{title:"Crisis Management Procedures",description:"The table below shows whether NRENs have a formal crisis management procedure.",category:ct.Policy,filter:A,data:d,filename:"crisis_management_nrens_per_year",children:j}),e[26]=A,e[27]=d,e[28]=j,e[29]=O):O=e[29],O}function nM(){const e=Ke.c(28),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/eosc-listings",n);let o,u;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let A;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(A=O=>t.selectedYears.includes(O.year)&&t.selectedNrens.includes(O.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=A):A=e[7],o=r.filter(A);const j=J1(o);u=ql(j,rM),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=u}else o=e[3],u=e[4];const d=u;let p;e[8]!==i?(p=[...i],e[8]=i,e[9]=p):p=e[9];let x;e[10]!==s?(x=s.values(),e[10]=s,e[11]=x):x=e[11];let y;e[12]!==x?(y=[...x],e[12]=x,e[13]=y):y=e[13];let v;e[14]!==p||e[15]!==y?(v={availableYears:p,availableNrens:y},e[14]=p,e[15]=y,e[16]=v):v=e[16];let w;e[17]!==t||e[18]!==n||e[19]!==v?(w=g.jsx(Ut,{filterOptions:v,filterSelection:t,setFilterSelection:n}),e[17]=t,e[18]=n,e[19]=v,e[20]=w):w=e[20];const b=w;let S;e[21]===Symbol.for("react.memo_cache_sentinel")?(S=g.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]=S):S=e[21];const T=S;let C;e[22]!==d?(C=g.jsx(Ht,{children:g.jsx(Ms,{data:d,columnTitle:"Service Name",dottedBorder:!0,keysAreURLs:!0,noDots:!0})}),e[22]=d,e[23]=C):C=e[23];let R;return e[24]!==b||e[25]!==o||e[26]!==C?(R=g.jsx(Pt,{title:"NREN Services Listed on the EOSC Portal",description:T,category:ct.Policy,filter:b,data:o,filename:"nren_eosc_listings",children:C}),e[24]=b,e[25]=o,e[26]=C,e[27]=R):R=e[27],R}function rM(e,t){for(const n of t)for(const r of n.service_names)e[r]=r}function aM(){const e=Ke.c(21),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,nrens:i}=It("/api/policy",n);let s,o;if(e[0]!==r||e[1]!==t.selectedNrens){const S=r?td(r):[];let T;e[4]!==t.selectedNrens?(T=R=>t.selectedNrens.includes(R.nren),e[4]=t.selectedNrens,e[5]=T):T=e[5],s=S.filter(T);const C=Pi(s);o=ql(C,iM),e[0]=r,e[1]=t.selectedNrens,e[2]=s,e[3]=o}else s=e[2],o=e[3];const u=o;let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[6]=d):d=e[6];let p;e[7]!==i?(p=i.values(),e[7]=i,e[8]=p):p=e[8];let x;e[9]!==p?(x={availableYears:d,availableNrens:[...p]},e[9]=p,e[10]=x):x=e[10];let y;e[11]!==t||e[12]!==n||e[13]!==x?(y=g.jsx(Ut,{filterOptions:x,filterSelection:t,setFilterSelection:n}),e[11]=t,e[12]=n,e[13]=x,e[14]=y):y=e[14];const v=y;let w;e[15]!==u?(w=g.jsx(Ht,{children:g.jsx(Ms,{data:u,columnTitle:"Policies",noDots:!0,dottedBorder:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=u,e[16]=w):w=e[16];let b;return e[17]!==v||e[18]!==s||e[19]!==w?(b=g.jsx(Pt,{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:ct.Policy,filter:v,data:s,filename:"nren_policies",children:w}),e[17]=v,e[18]=s,e[19]=w,e[20]=b):b=e[20],b}function iM(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(r=>{const[i,s]=r,o=t[i];o&&(e[s]=o)})}function lM(){const e=Ke.c(51),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/security-controls",n);let o,u;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let ne;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(ne=_e=>t.selectedYears.includes(_e.year)&&t.selectedNrens.includes(_e.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=ne):ne=e[7],o=r.filter(ne),u=Ar(o,"security_control_descriptions"),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=u}else o=e[3],u=e[4];const d=u;let p;e[8]!==i?(p=[...i],e[8]=i,e[9]=p):p=e[9];let x;e[10]!==s?(x=s.values(),e[10]=s,e[11]=x):x=e[11];let y;e[12]!==x?(y=[...x],e[12]=x,e[13]=y):y=e[13];let v;e[14]!==p||e[15]!==y?(v={availableYears:p,availableNrens:y},e[14]=p,e[15]=y,e[16]=v):v=e[16];let w;e[17]!==t||e[18]!==n||e[19]!==v?(w=g.jsx(Ut,{filterOptions:v,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=v,e[20]=w):w=e[20];const b=w;let S,T,C,R,A,j,O,B,L,I,U;if(e[21]!==b||e[22]!==o){const ne={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"};R=new Map(Object.entries(ne).map(sM)),C=Pt,L="Security Controls Used by NRENs",I=`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.`,U=ct.Policy,A=b,j=o,O="security_control_nrens_per_year",T=Ht,S=oa,B=Object.values(ne),e[21]=b,e[22]=o,e[23]=S,e[24]=T,e[25]=C,e[26]=R,e[27]=A,e[28]=j,e[29]=O,e[30]=B,e[31]=L,e[32]=I,e[33]=U}else S=e[23],T=e[24],C=e[25],R=e[26],A=e[27],j=e[28],O=e[29],B=e[30],L=e[31],I=e[32],U=e[33];let W;e[34]!==S||e[35]!==R||e[36]!==d||e[37]!==B?(W=g.jsx(S,{columns:B,dataLookup:d,circle:!0,columnLookup:R}),e[34]=S,e[35]=R,e[36]=d,e[37]=B,e[38]=W):W=e[38];let X;e[39]!==T||e[40]!==W?(X=g.jsx(T,{children:W}),e[39]=T,e[40]=W,e[41]=X):X=e[41];let te;return e[42]!==C||e[43]!==A||e[44]!==j||e[45]!==O||e[46]!==X||e[47]!==L||e[48]!==I||e[49]!==U?(te=g.jsx(C,{title:L,description:I,category:U,filter:A,data:j,filename:O,children:X}),e[42]=C,e[43]=A,e[44]=j,e[45]=O,e[46]=X,e[47]=L,e[48]=I,e[49]=U,e[50]=te):te=e[50],te}function sM(e){const[t,n]=e;return[n,t]}function oM(){const e=Ke.c(29),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/service-management",n);let o,u;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let j;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(j=O=>t.selectedYears.includes(O.year)&&t.selectedNrens.includes(O.nren)&&O.service_level_targets!==null,e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=j):j=e[7],o=r.filter(j),u=Ar(o,"service_level_targets"),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=u}else o=e[3],u=e[4];const d=u;let p,x;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=["Yes","No"],x=new Map([[p[0],"True"],[p[1],"False"]]),e[8]=p,e[9]=x):(p=e[8],x=e[9]);const y=x;let v;e[10]!==i?(v=[...i],e[10]=i,e[11]=v):v=e[11];let w;e[12]!==s?(w=s.values(),e[12]=s,e[13]=w):w=e[13];let b;e[14]!==w?(b=[...w],e[14]=w,e[15]=b):b=e[15];let S;e[16]!==v||e[17]!==b?(S={availableYears:v,availableNrens:b},e[16]=v,e[17]=b,e[18]=S):S=e[18];let T;e[19]!==t||e[20]!==n||e[21]!==S?(T=g.jsx(Ut,{filterOptions:S,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[19]=t,e[20]=n,e[21]=S,e[22]=T):T=e[22];const C=T;let R;e[23]!==d?(R=g.jsx(Ht,{children:g.jsx(oa,{columns:p,columnLookup:y,dataLookup:d})}),e[23]=d,e[24]=R):R=e[24];let A;return e[25]!==C||e[26]!==o||e[27]!==R?(A=g.jsx(Pt,{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:ct.Policy,filter:C,data:o,filename:"service_level_targets",children:R}),e[25]=C,e[26]=o,e[27]=R,e[28]=A):A=e[28],A}function cM(){const e=Ke.c(29),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/service-management",n);let o,u;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let j;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(j=O=>t.selectedYears.includes(O.year)&&t.selectedNrens.includes(O.nren)&&O.service_management_framework!==null,e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=j):j=e[7],o=r.filter(j),u=Ar(o,"service_management_framework"),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=u}else o=e[3],u=e[4];const d=u;let p,x;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=["Yes","No"],x=new Map([[p[0],"True"],[p[1],"False"]]),e[8]=p,e[9]=x):(p=e[8],x=e[9]);const y=x;let v;e[10]!==i?(v=[...i],e[10]=i,e[11]=v):v=e[11];let w;e[12]!==s?(w=s.values(),e[12]=s,e[13]=w):w=e[13];let b;e[14]!==w?(b=[...w],e[14]=w,e[15]=b):b=e[15];let S;e[16]!==v||e[17]!==b?(S={availableYears:v,availableNrens:b},e[16]=v,e[17]=b,e[18]=S):S=e[18];let T;e[19]!==t||e[20]!==n||e[21]!==S?(T=g.jsx(Ut,{filterOptions:S,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[19]=t,e[20]=n,e[21]=S,e[22]=T):T=e[22];const C=T;let R;e[23]!==d?(R=g.jsx(Ht,{children:g.jsx(oa,{columns:p,columnLookup:y,dataLookup:d})}),e[23]=d,e[24]=R):R=e[24];let A;return e[25]!==C||e[26]!==o||e[27]!==R?(A=g.jsx(Pt,{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:ct.Policy,filter:C,data:o,filename:"service_management_framework",children:R}),e[25]=C,e[26]=o,e[27]=R,e[28]=A):A=e[28],A}const fM=g.jsx("span",{children:"✔"}),uM=8;function gb(e){const t=Ke.c(12),{dataLookup:n,rowInfo:r,categoryLookup:i,isTickIcon:s}=e,o=s===void 0?!1:s;if(!n){let x;return t[0]===Symbol.for("react.memo_cache_sentinel")?(x=g.jsx("div",{className:"matrix-border"}),t[0]=x):x=t[0],x}let u;if(t[1]!==i||t[2]!==n||t[3]!==o||t[4]!==r){let x;t[6]!==n||t[7]!==o||t[8]!==r?(x=y=>{const[v,w]=y,b=Object.entries(r).map(C=>{const[R,A]=C,j=[];return Array.from(n.entries()).sort(gM).forEach(O=>{const[,B]=O;B.forEach(L=>{const I=L.get(v);if(!I)return;let U=I[A];U!=null&&(U=Object.values(U)[0]);const W=U!=null&&o?fM:U;j.push(W)})}),j.length?g.jsxs("tr",{children:[g.jsx("th",{className:"fixed-column",children:R}),j.map(pM)]},R):null}),S=Array.from(n.entries()).sort(mM).reduce((C,R)=>{const[A,j]=R;return Array.from(j.entries()).forEach(O=>{const[B,L]=O;L.get(v)&&(C[A]||(C[A]=[]),C[A].push(B))}),C},{});return g.jsx(Xf,{title:w,startCollapsed:!0,theme:"-matrix",children:b?g.jsx("div",{className:"table-responsive",children:g.jsxs(Xl,{className:"matrix-table",bordered:!0,children:[g.jsx("thead",{children:(()=>{const C=Object.entries(S);return g.jsxs(g.Fragment,{children:[g.jsxs("tr",{children:[g.jsx("th",{className:"fixed-column"}),C.map(hM)]}),g.jsxs("tr",{children:[g.jsx("th",{className:"fixed-column"}),C.flatMap(dM)]})]})})()}),g.jsx("tbody",{children:b})]})}):g.jsx("div",{style:{paddingLeft:"5%"},children:g.jsx("p",{children:"No data available for this section."})})},v)},t[6]=n,t[7]=o,t[8]=r,t[9]=x):x=t[9],u=Object.entries(i).map(x),t[1]=i,t[2]=n,t[3]=o,t[4]=r,t[5]=u}else u=t[5];const d=u;let p;return t[10]!==d?(p=g.jsx("div",{className:"matrix-border",children:d}),t[10]=d,t[11]=p):p=t[11],p}function dM(e){const[t,n]=e;return n.map(r=>g.jsx("th",{children:r},`${t}-${r}`))}function hM(e){const[t,n]=e;return g.jsx("th",{colSpan:n.length,style:{width:`${n.length*uM}rem`},children:t},t)}function mM(e,t){const[n]=e,[r]=t;return n.localeCompare(r)}function pM(e,t){return g.jsx("td",{children:e},t)}function gM(e,t){const[n]=e,[r]=t;return n.localeCompare(r)}function xM(){const e=Ke.c(29),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/services-offered",n);let o,u;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==r){let j;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(j=O=>t.selectedYears.includes(O.year)&&t.selectedNrens.includes(O.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=j):j=e[7],o=r.filter(j),u=U0(o,["service_category"],"user_category"),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=r,e[3]=o,e[4]=u}else o=e[3],u=e[4];const d=u;let p;e[8]!==i?(p=[...i],e[8]=i,e[9]=p):p=e[9];let x;e[10]!==s?(x=s.values(),e[10]=s,e[11]=x):x=e[11];let y;e[12]!==x?(y=[...x],e[12]=x,e[13]=y):y=e[13];let v;e[14]!==p||e[15]!==y?(v={availableYears:p,availableNrens:y},e[14]=p,e[15]=y,e[16]=v):v=e[16];let w;e[17]!==t||e[18]!==n||e[19]!==v?(w=g.jsx(Ut,{filterOptions:v,filterSelection:t,setFilterSelection:n}),e[17]=t,e[18]=n,e[19]=v,e[20]=w):w=e[20];const b=w;let S;e[21]===Symbol.for("react.memo_cache_sentinel")?(S={"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]=S):S=e[21];const T=S;let C;e[22]===Symbol.for("react.memo_cache_sentinel")?(C=g.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]=C):C=e[22];let R;e[23]!==d?(R=g.jsx(Ht,{children:g.jsx(gb,{dataLookup:d,rowInfo:T,categoryLookup:Ag,isTickIcon:!0})}),e[23]=d,e[24]=R):R=e[24];let A;return e[25]!==b||e[26]!==o||e[27]!==R?(A=g.jsx(Pt,{title:"Services Offered by NRENs by Types of Users",description:C,category:ct.Policy,filter:b,data:o,filename:"nren_services_offered",children:R}),e[25]=b,e[26]=o,e[27]=R,e[28]=A):A=e[28],A}function vM(){const e=Ke.c(24),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,nrens:i}=It("/api/institution-urls",n);let s,o,u;if(e[0]!==r||e[1]!==t||e[2]!==i||e[3]!==n){const y=r?td(r):[];let v;e[7]!==t.selectedNrens?(v=j=>t.selectedNrens.includes(j.nren),e[7]=t.selectedNrens,e[8]=v):v=e[8];const w=y.filter(v),b=Pi(w);s=ql(b,_M);let T;e[9]===Symbol.for("react.memo_cache_sentinel")?(T=[],e[9]=T):T=e[9];let C;e[10]!==i?(C=i.values(),e[10]=i,e[11]=C):C=e[11];let R;e[12]!==C?(R={availableYears:T,availableNrens:[...C]},e[12]=C,e[13]=R):R=e[13];let A;e[14]!==t||e[15]!==n||e[16]!==R?(A=g.jsx(Ut,{filterOptions:R,filterSelection:t,setFilterSelection:n}),e[14]=t,e[15]=n,e[16]=R,e[17]=A):A=e[17],o=A,u=w.map(yM),e[0]=r,e[1]=t,e[2]=i,e[3]=n,e[4]=s,e[5]=o,e[6]=u}else s=e[4],o=e[5],u=e[6];const d=u;let p;e[18]!==s?(p=g.jsx(Ht,{children:g.jsx(Ms,{data:s,columnTitle:"Institution URLs",keysAreURLs:!0,noDots:!0})}),e[18]=s,e[19]=p):p=e[19];let x;return e[20]!==d||e[21]!==o||e[22]!==p?(x=g.jsx(Pt,{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:ct.ConnectedUsers,filter:o,data:d,filename:"institution_urls",children:p}),e[20]=d,e[21]=o,e[22]=p,e[23]=x):x=e[23],x}function yM(e){return{...e,urls:(e.urls??[]).join(", ")}}function _M(e,t){const n=Oy(t);if(n!=null)for(const[r,i]of Object.entries(n))e[r]=i}const xb={[qt.ConnectedProportion]:"Proportion of Different Categories of Institutions Served by NRENs",[qt.ConnectivityLevel]:"Level of IP Connectivity by Institution Type",[qt.ConnectionCarrier]:"Methods of Carrying IP Traffic to Users",[qt.ConnectivityLoad]:"Connectivity Load",[qt.ConnectivityGrowth]:"Connectivity Growth",[qt.CommercialChargingLevel]:"Commercial Charging Level",[qt.CommercialConnectivity]:"Commercial Connectivity"},wM={[qt.ConnectedProportion]:g.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.",g.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."]}),[qt.ConnectivityLevel]:g.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.",g.jsx("br",{}),"NRENs are also asked to show proportionally how many institutions are connected at the highest capacity they offer."]}),[qt.ConnectionCarrier]:g.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: ",g.jsx(lt,{to:"/connected-proportion",className:"",children:g.jsx("span",{children:xb[qt.ConnectedProportion]})})]}),[qt.ConnectivityLoad]:g.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."}),[qt.ConnectivityGrowth]:g.jsx("span",{children:"The table below illustrates the anticipated traffic growth within NREN networks over the next three years."}),[qt.CommercialChargingLevel]:g.jsx("span",{children:"The table below outlines the typical charging levels for various types of commercial connections."}),[qt.CommercialConnectivity]:g.jsx("span",{children:"The table below outlines the types of commercial organizations NRENs connect."})},y2={[qt.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"},[qt.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"},[qt.ConnectionCarrier]:{"Commercial Provider Backbone":"commercial_provider_backbone","NREN Local Loops":"nren_local_loops","Regional NREN Backbone":"regional_nren_backbone",MAN:"man",Other:"other"},[qt.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"},[qt.ConnectivityGrowth]:{"Percentage growth":"growth"},[qt.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"},[qt.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 Gf(e){const t=Ke.c(36),{page:n}=e,r=`/api/connected-${n.toString()}`,{filterSelection:i,setFilterSelection:s}=k.useContext(Mt),{data:o,years:u,nrens:d}=It(r,s);let p,x,y,v;if(t[0]!==o||t[1]!==i.selectedNrens||t[2]!==i.selectedYears||t[3]!==n){let U;t[8]!==i.selectedNrens||t[9]!==i.selectedYears?(U=W=>i.selectedYears.includes(W.year)&&i.selectedNrens.includes(W.nren),t[8]=i.selectedNrens,t[9]=i.selectedYears,t[10]=U):U=t[10],v=o.filter(U),y=!1,n==qt.CommercialConnectivity?(p=mw,y=!0,x=U0(v,Object.keys(mw),void 0)):n==qt.CommercialChargingLevel?(p=pw,y=!0,x=U0(v,Object.keys(pw),void 0)):n==qt.ConnectionCarrier?(p=Ag,y=!0,x=U0(v,["carry_mechanism"],"user_category")):(n==qt.ConnectedProportion,p=Ag,x=U0(v,Object.values(y2[n]),"user_category",!1)),t[0]=o,t[1]=i.selectedNrens,t[2]=i.selectedYears,t[3]=n,t[4]=p,t[5]=x,t[6]=y,t[7]=v}else p=t[4],x=t[5],y=t[6],v=t[7];let w;t[11]!==u?(w=[...u],t[11]=u,t[12]=w):w=t[12];let b;t[13]!==d?(b=d.values(),t[13]=d,t[14]=b):b=t[14];let S;t[15]!==b?(S=[...b],t[15]=b,t[16]=S):S=t[16];let T;t[17]!==w||t[18]!==S?(T={availableYears:w,availableNrens:S},t[17]=w,t[18]=S,t[19]=T):T=t[19];let C;t[20]!==i||t[21]!==s||t[22]!==T?(C=g.jsx(Ut,{filterOptions:T,filterSelection:i,setFilterSelection:s}),t[20]=i,t[21]=s,t[22]=T,t[23]=C):C=t[23];const R=C,A=y2[n],j=`nren_connected_${n.toString()}`,O=xb[n],B=wM[n];let L;t[24]!==p||t[25]!==x||t[26]!==y||t[27]!==A?(L=g.jsx(Ht,{children:g.jsx(gb,{dataLookup:x,rowInfo:A,isTickIcon:y,categoryLookup:p})}),t[24]=p,t[25]=x,t[26]=y,t[27]=A,t[28]=L):L=t[28];let I;return t[29]!==j||t[30]!==R||t[31]!==v||t[32]!==O||t[33]!==B||t[34]!==L?(I=g.jsx(Pt,{title:O,description:B,category:ct.ConnectedUsers,filter:R,data:v,filename:j,children:L}),t[29]=j,t[30]=R,t[31]=v,t[32]=O,t[33]=B,t[34]=L,t[35]=I):I=t[35],I}function EM({data:e,dottedBorder:t=!1,columns:n}){return Array.from(e.entries()).map(([r,i])=>Array.from(i.entries()).map(([s,o],u)=>g.jsxs("tr",{className:t?"dotted-border":"",children:[g.jsx("td",{className:"pt-3 nren-column text-nowrap",children:u===0&&r}),g.jsx("td",{className:"pt-3 year-column",children:s}),Object.keys(n).map((d,p)=>g.jsx("td",{className:"pt-3 blue-column",children:o[d]},p))]},r+s)))}function SM(e){const t=Ke.c(15),{data:n,dottedBorder:r,columns:i}=e;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=g.jsx("th",{className:"nren-column",children:g.jsx("span",{children:"NREN"})}),t[0]=s):s=t[0];let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=g.jsx("th",{className:"year-column",children:g.jsx("span",{children:"Year"})}),t[1]=o):o=t[1];let u;t[2]!==i?(u=Object.values(i).map(bM),t[2]=i,t[3]=u):u=t[3];let d;t[4]!==u?(d=g.jsx("thead",{children:g.jsxs("tr",{children:[s,o,u]})}),t[4]=u,t[5]=d):d=t[5];let p;t[6]!==i||t[7]!==n||t[8]!==r?(p=EM({data:n,dottedBorder:r,columns:i}),t[6]=i,t[7]=n,t[8]=r,t[9]=p):p=t[9];let x;t[10]!==p?(x=g.jsx("tbody",{children:p}),t[10]=p,t[11]=x):x=t[11];let y;return t[12]!==d||t[13]!==x?(y=g.jsxs(Xl,{borderless:!0,className:"compendium-table",children:[d,x]}),t[12]=d,t[13]=x,t[14]=y):y=t[14],y}function bM(e,t){return g.jsx("th",{className:"blue-column",children:g.jsx("span",{children:e})},t)}function TM(){const e=Ke.c(29);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=O=>!!O.remote_campus_connectivity,e[0]=t):t=e[0];const n=t,{filterSelection:r,setFilterSelection:i}=k.useContext(Mt),{data:s,years:o,nrens:u}=It("/api/remote-campuses",i,n);let d,p;if(e[1]!==s||e[2]!==r.selectedNrens||e[3]!==r.selectedYears){let O;e[6]!==r.selectedNrens||e[7]!==r.selectedYears?(O=L=>r.selectedYears.includes(L.year)&&r.selectedNrens.includes(L.nren),e[6]=r.selectedNrens,e[7]=r.selectedYears,e[8]=O):O=e[8],d=s.filter(O);const B=J1(d);p=ql(B,NM),e[1]=s,e[2]=r.selectedNrens,e[3]=r.selectedYears,e[4]=d,e[5]=p}else d=e[4],p=e[5];const x=p;let y;e[9]!==o?(y=[...o],e[9]=o,e[10]=y):y=e[10];let v;e[11]!==u?(v=u.values(),e[11]=u,e[12]=v):v=e[12];let w;e[13]!==v?(w=[...v],e[13]=v,e[14]=w):w=e[14];let b;e[15]!==y||e[16]!==w?(b={availableYears:y,availableNrens:w},e[15]=y,e[16]=w,e[17]=b):b=e[17];let S;e[18]!==r||e[19]!==i||e[20]!==b?(S=g.jsx(Ut,{filterOptions:b,filterSelection:r,setFilterSelection:i}),e[18]=r,e[19]=i,e[20]=b,e[21]=S):S=e[21];const T=S;let C;e[22]===Symbol.for("react.memo_cache_sentinel")?(C={countries:"Countries with Remote Campuses",local_r_and_e_connection:"Local R&E Connection"},e[22]=C):C=e[22];const R=C;let A;e[23]!==x?(A=g.jsx(Ht,{children:g.jsx(SM,{data:x,columns:R,dottedBorder:!0})}),e[23]=x,e[24]=A):A=e[24];let j;return e[25]!==T||e[26]!==d||e[27]!==A?(j=g.jsx(Pt,{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:ct.ConnectedUsers,filter:T,data:d,filename:"nren_remote_campuses",children:A}),e[25]=T,e[26]=d,e[27]=A,e[28]=j):j=e[28],j}function NM(e,t){for(const n of t){if(!n.remote_campus_connectivity)continue;const r=n.connections.map(AM).join(", ");e.countries=r,e.local_r_and_e_connection=n.connections.map(CM).join(", ")}}function CM(e){return e.local_r_and_e_connection?"Yes":"No"}function AM(e){return e.country}function RM(){const e=Ke.c(30);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=B=>B.alien_wave_third_party!==null,e[0]=t):t=e[0];const n=t,{filterSelection:r,setFilterSelection:i}=k.useContext(Mt),{data:s,years:o,nrens:u}=It("/api/alien-wave",i,n);let d,p;if(e[1]!==s||e[2]!==r.selectedNrens||e[3]!==r.selectedYears){let B;e[6]!==r.selectedNrens||e[7]!==r.selectedYears?(B=U=>r.selectedYears.includes(U.year)&&r.selectedNrens.includes(U.nren),e[6]=r.selectedNrens,e[7]=r.selectedYears,e[8]=B):B=e[8],d=s.filter(B);const L=Ar(d,"alien_wave_third_party");p=Q1(L,OM),e[1]=s,e[2]=r.selectedNrens,e[3]=r.selectedYears,e[4]=d,e[5]=p}else d=e[4],p=e[5];const x=p;let y,v;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=["Yes","Planned","No"],v=new Map([[y[0],"yes"],[y[1],"planned"],[y[2],"no"]]),e[9]=y,e[10]=v):(y=e[9],v=e[10]);const w=v;let b;e[11]!==o?(b=[...o],e[11]=o,e[12]=b):b=e[12];let S;e[13]!==u?(S=u.values(),e[13]=u,e[14]=S):S=e[14];let T;e[15]!==S?(T=[...S],e[15]=S,e[16]=T):T=e[16];let C;e[17]!==b||e[18]!==T?(C={availableYears:b,availableNrens:T},e[17]=b,e[18]=T,e[19]=C):C=e[19];let R;e[20]!==r||e[21]!==i||e[22]!==C?(R=g.jsx(Ut,{filterOptions:C,filterSelection:r,setFilterSelection:i,coloredYears:!0}),e[20]=r,e[21]=i,e[22]=C,e[23]=R):R=e[23];const A=R;let j;e[24]!==x?(j=g.jsx(Ht,{children:g.jsx(oa,{columns:y,columnLookup:w,dataLookup:x})}),e[24]=x,e[25]=j):j=e[25];let O;return e[26]!==A||e[27]!==d||e[28]!==j?(O=g.jsx(Pt,{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:ct.Network,filter:A,data:d,filename:"alien_wave_nrens_per_year",children:j}),e[26]=A,e[27]=d,e[28]=j,e[29]=O):O=e[29],O}function OM(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 DM(){const e=Ke.c(30);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=B=>B.alien_wave_internal!==null,e[0]=t):t=e[0];const n=t,{filterSelection:r,setFilterSelection:i}=k.useContext(Mt),{data:s,years:o,nrens:u}=It("/api/alien-wave",i,n);let d,p;if(e[1]!==s||e[2]!==r.selectedNrens||e[3]!==r.selectedYears){let B;e[6]!==r.selectedNrens||e[7]!==r.selectedYears?(B=L=>r.selectedYears.includes(L.year)&&r.selectedNrens.includes(L.nren),e[6]=r.selectedNrens,e[7]=r.selectedYears,e[8]=B):B=e[8],d=s.filter(B),p=Ar(d,"alien_wave_internal"),e[1]=s,e[2]=r.selectedNrens,e[3]=r.selectedYears,e[4]=d,e[5]=p}else d=e[4],p=e[5];const x=p;let y,v;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=["Yes","No"],v=new Map([[y[0],"True"],[y[1],"False"]]),e[9]=y,e[10]=v):(y=e[9],v=e[10]);const w=v;let b;e[11]!==o?(b=[...o],e[11]=o,e[12]=b):b=e[12];let S;e[13]!==u?(S=u.values(),e[13]=u,e[14]=S):S=e[14];let T;e[15]!==S?(T=[...S],e[15]=S,e[16]=T):T=e[16];let C;e[17]!==b||e[18]!==T?(C={availableYears:b,availableNrens:T},e[17]=b,e[18]=T,e[19]=C):C=e[19];let R;e[20]!==r||e[21]!==i||e[22]!==C?(R=g.jsx(Ut,{filterOptions:C,filterSelection:r,setFilterSelection:i,coloredYears:!0}),e[20]=r,e[21]=i,e[22]=C,e[23]=R):R=e[23];const A=R;let j;e[24]!==x?(j=g.jsx(Ht,{children:g.jsx(oa,{columns:y,columnLookup:w,dataLookup:x})}),e[24]=x,e[25]=j):j=e[25];let O;return e[26]!==A||e[27]!==d||e[28]!==j?(O=g.jsx(Pt,{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:ct.Network,filter:A,data:d,filename:"alien_wave_internal_nrens_per_year",children:j}),e[26]=A,e[27]=d,e[28]=j,e[29]=O):O=e[29],O}function jM(){const e=Ke.c(69),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/network-automation",n);let o,u,d,p,x,y,v,w,b,S,T,C,R,A,j;if(e[0]!==t||e[1]!==s||e[2]!==r||e[3]!==n||e[4]!==i){let U;e[20]!==t.selectedNrens||e[21]!==t.selectedYears?(U=Fe=>t.selectedYears.includes(Fe.year)&&t.selectedNrens.includes(Fe.nren),e[20]=t.selectedNrens,e[21]=t.selectedYears,e[22]=U):U=e[22];const W=r.filter(U),X=Ar(W,"network_automation");let te;e[23]!==i?(te=[...i],e[23]=i,e[24]=te):te=e[24];let ne;e[25]!==s?(ne=s.values(),e[25]=s,e[26]=ne):ne=e[26];let _e;e[27]!==ne?(_e=[...ne],e[27]=ne,e[28]=_e):_e=e[28];let ye;e[29]!==te||e[30]!==_e?(ye={availableYears:te,availableNrens:_e},e[29]=te,e[30]=_e,e[31]=ye):ye=e[31];let ce;e[32]!==t||e[33]!==n||e[34]!==ye?(ce=g.jsx(Ut,{filterOptions:ye,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[32]=t,e[33]=n,e[34]=ye,e[35]=ce):ce=e[35];const Te=ce;let Ne;e[36]!==i?(Ne=Fe=>i.has(Fe),e[36]=i,e[37]=Ne):Ne=e[37];const $e=[...t.selectedYears.filter(Ne)].sort();d=Pt,C="Network Tasks for which NRENs Use Automation ",R=`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.`,A=ct.Network,j=Te,y=W,v="network_automation_nrens_per_year",u=Ht,o=Xl,x="charging-struct-table",w=!0,b=!0;let Pe;e[38]===Symbol.for("react.memo_cache_sentinel")?(Pe=g.jsx("col",{span:1,style:{width:"16%"}}),e[38]=Pe):Pe=e[38];let et;e[39]===Symbol.for("react.memo_cache_sentinel")?(et=g.jsx("col",{span:2,style:{width:"12%"}}),e[39]=et):et=e[39];let J;e[40]===Symbol.for("react.memo_cache_sentinel")?(J=g.jsx("col",{span:2,style:{width:"12%"}}),e[40]=J):J=e[40];let ie;e[41]===Symbol.for("react.memo_cache_sentinel")?(ie=g.jsx("col",{span:2,style:{width:"12%"}}),e[41]=ie):ie=e[41];let ee;e[42]===Symbol.for("react.memo_cache_sentinel")?(ee=g.jsx("col",{span:2,style:{width:"12%"}}),e[42]=ee):ee=e[42];let K;e[43]===Symbol.for("react.memo_cache_sentinel")?(K=g.jsx("col",{span:2,style:{width:"12%"}}),e[43]=K):K=e[43];let xe;e[44]===Symbol.for("react.memo_cache_sentinel")?(xe=g.jsx("col",{span:2,style:{width:"12%"}}),e[44]=xe):xe=e[44],e[45]===Symbol.for("react.memo_cache_sentinel")?(S=g.jsxs("colgroup",{children:[Pe,et,J,ie,ee,K,xe,g.jsx("col",{span:2,style:{width:"12%"}})]}),T=g.jsxs("thead",{children:[g.jsxs("tr",{children:[g.jsx("th",{}),g.jsx("th",{colSpan:2,children:"Device Provisioning"}),g.jsx("th",{colSpan:2,children:"Data Collection"}),g.jsx("th",{colSpan:2,children:"Configuration Management"}),g.jsx("th",{colSpan:2,children:"Compliance"}),g.jsx("th",{colSpan:2,children:"Reporting"}),g.jsx("th",{colSpan:2,children:"Troubleshooting"}),g.jsx("th",{colSpan:2,children:"Other"})]}),g.jsxs("tr",{children:[g.jsx("th",{}),g.jsx("th",{children:"Yes"}),g.jsx("th",{children:"Planned"}),g.jsx("th",{children:"Yes"}),g.jsx("th",{children:"Planned"}),g.jsx("th",{children:"Yes"}),g.jsx("th",{children:"Planned"}),g.jsx("th",{children:"Yes"}),g.jsx("th",{children:"Planned"}),g.jsx("th",{children:"Yes"}),g.jsx("th",{children:"Planned"}),g.jsx("th",{children:"Yes"}),g.jsx("th",{children:"Planned"}),g.jsx("th",{children:"Yes"}),g.jsx("th",{children:"Planned"})]})]}),e[45]=S,e[46]=T):(S=e[45],T=e[46]),p=Array.from(X.entries()).map(Fe=>{const[Ce,me]=Fe;return g.jsxs("tr",{children:[g.jsx("td",{children:Ce}),["provisioning","data_collection","config_management","compliance","reporting","troubleshooting"].map(oe=>g.jsxs(g.Fragment,{children:[g.jsx("td",{children:me.has("yes")&&$e.map(Be=>{var Qe,ft;const Xe=(Qe=me.get("yes"))==null?void 0:Qe.get(Be),rt=Xe?Xe.network_automation_specifics:null;return g.jsx(Rs,{year:Be,active:!!((ft=me.get("yes"))!=null&&ft.has(Be))&&!!(rt&&rt.indexOf(oe)>-1),tooltip:"",rounded:!0},Be)})},`${Ce}-${oe}-yes`),g.jsx("td",{children:me.has("planned")&&$e.map(Be=>{var Qe,ft;const Xe=(Qe=me.get("planned"))==null?void 0:Qe.get(Be),rt=Xe?Xe.network_automation_specifics:null;return g.jsx(Rs,{year:Be,active:!!((ft=me.get("planned"))!=null&&ft.has(Be))&&!!(rt&&rt.indexOf(oe)>-1),tooltip:"",rounded:!0},Be)})},`${Ce}-${oe}-planned`)]})),g.jsx("td",{children:me.has("yes")&&$e.map(oe=>{var rt,Qe;const Be=(rt=me.get("yes"))==null?void 0:rt.get(oe),Xe=Be?Be.network_automation_specifics:null;return g.jsx(Rs,{year:oe,active:!!((Qe=me.get("yes"))!=null&&Qe.has(oe))&&!!(Xe&&Xe.length==0),tooltip:"",rounded:!0},oe)})},`${Ce}-other-yes`),g.jsx("td",{children:me.has("planned")&&$e.map(oe=>{var rt,Qe;const Be=(rt=me.get("planned"))==null?void 0:rt.get(oe),Xe=Be?Be.network_automation_specifics:null;return g.jsx(Rs,{year:oe,active:!!((Qe=me.get("planned"))!=null&&Qe.has(oe))&&!!(Xe&&Xe.length==0),tooltip:"",rounded:!0},oe)})},`${Ce}-other-planned`)]},Ce)}),e[0]=t,e[1]=s,e[2]=r,e[3]=n,e[4]=i,e[5]=o,e[6]=u,e[7]=d,e[8]=p,e[9]=x,e[10]=y,e[11]=v,e[12]=w,e[13]=b,e[14]=S,e[15]=T,e[16]=C,e[17]=R,e[18]=A,e[19]=j}else o=e[5],u=e[6],d=e[7],p=e[8],x=e[9],y=e[10],v=e[11],w=e[12],b=e[13],S=e[14],T=e[15],C=e[16],R=e[17],A=e[18],j=e[19];let O;e[47]!==p?(O=g.jsx("tbody",{children:p}),e[47]=p,e[48]=O):O=e[48];let B;e[49]!==o||e[50]!==x||e[51]!==O||e[52]!==w||e[53]!==b||e[54]!==S||e[55]!==T?(B=g.jsxs(o,{className:x,striped:w,bordered:b,children:[S,T,O]}),e[49]=o,e[50]=x,e[51]=O,e[52]=w,e[53]=b,e[54]=S,e[55]=T,e[56]=B):B=e[56];let L;e[57]!==u||e[58]!==B?(L=g.jsx(u,{children:B}),e[57]=u,e[58]=B,e[59]=L):L=e[59];let I;return e[60]!==d||e[61]!==y||e[62]!==v||e[63]!==L||e[64]!==C||e[65]!==R||e[66]!==A||e[67]!==j?(I=g.jsx(d,{title:C,description:R,category:A,filter:j,data:y,filename:v,children:L}),e[60]=d,e[61]=y,e[62]=v,e[63]=L,e[64]=C,e[65]=R,e[66]=A,e[67]=j,e[68]=I):I=e[68],I}on.register(fl,ul,iu,dl,Bi,hl);function kM(){const e=Ke.c(39);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=L=>L.typical_backbone_capacity!=null,e[0]=t):t=e[0];const n=t,{filterSelection:r,setFilterSelection:i}=k.useContext(Mt),{data:s,years:o,nrens:u}=It("/api/capacity",i,n);let d,p,x,y;if(e[1]!==s||e[2]!==r||e[3]!==u||e[4]!==i||e[5]!==o){let L;e[10]!==r.selectedNrens||e[11]!==r.selectedYears?(L=ne=>r.selectedYears.includes(ne.year)&&r.selectedNrens.includes(ne.nren)&&n(ne),e[10]=r.selectedNrens,e[11]=r.selectedYears,e[12]=L):L=e[12],x=s.filter(L),d=vx(x,"typical_backbone_capacity","Backbone IP Capacity");let I;e[13]!==o?(I=[...o],e[13]=o,e[14]=I):I=e[14];let U;e[15]!==u?(U=u.values(),e[15]=u,e[16]=U):U=e[16];let W;e[17]!==U?(W=[...U],e[17]=U,e[18]=W):W=e[18];let X;e[19]!==I||e[20]!==W?(X={availableYears:I,availableNrens:W},e[19]=I,e[20]=W,e[21]=X):X=e[21];let te;e[22]!==r||e[23]!==i||e[24]!==X?(te=g.jsx(Ut,{filterOptions:X,filterSelection:r,setFilterSelection:i}),e[22]=r,e[23]=i,e[24]=X,e[25]=te):te=e[25],p=te,y=Array.from(new Set(x.map(FM))),e[1]=s,e[2]=r,e[3]=u,e[4]=i,e[5]=o,e[6]=d,e[7]=p,e[8]=x,e[9]=y}else d=e[6],p=e[7],x=e[8],y=e[9];const v=y.length,w=Math.max(v*r.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 S;e[26]===Symbol.for("react.memo_cache_sentinel")?(S=sm({title:"NREN Core IP Capacity",tooltipUnit:"Gbit/s",unit:"Gbit/s"}),e[26]=S):S=e[26];const T=S,C=`${w}rem`;let R;e[27]!==C?(R={height:C},e[27]=C,e[28]=R):R=e[28];let A;e[29]===Symbol.for("react.memo_cache_sentinel")?(A=[J0],e[29]=A):A=e[29];let j;e[30]!==d?(j=g.jsx(Pc,{data:d,options:T,plugins:A}),e[30]=d,e[31]=j):j=e[31];let O;e[32]!==R||e[33]!==j?(O=g.jsx(Ht,{children:g.jsx("div",{className:"chart-container",style:R,children:j})}),e[32]=R,e[33]=j,e[34]=O):O=e[34];let B;return e[35]!==p||e[36]!==x||e[37]!==O?(B=g.jsx(Pt,{title:"NREN Core IP Capacity",description:b,category:ct.Network,filter:p,data:x,filename:"capacity_core_ip",children:O}),e[35]=p,e[36]=x,e[37]=O,e[38]=B):B=e[38],B}function FM(e){return e.nren}on.register(fl,ul,iu,dl,Bi,hl);function LM(){const e=Ke.c(39);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=L=>L.largest_link_capacity!=null,e[0]=t):t=e[0];const n=t,{filterSelection:r,setFilterSelection:i}=k.useContext(Mt),{data:s,years:o,nrens:u}=It("/api/capacity",i,n);let d,p,x,y;if(e[1]!==s||e[2]!==r||e[3]!==u||e[4]!==i||e[5]!==o){let L;e[10]!==r.selectedNrens||e[11]!==r.selectedYears?(L=ne=>r.selectedYears.includes(ne.year)&&r.selectedNrens.includes(ne.nren)&&n(ne),e[10]=r.selectedNrens,e[11]=r.selectedYears,e[12]=L):L=e[12],x=s.filter(L),d=vx(x,"largest_link_capacity","Link capacity");let I;e[13]!==o?(I=[...o],e[13]=o,e[14]=I):I=e[14];let U;e[15]!==u?(U=u.values(),e[15]=u,e[16]=U):U=e[16];let W;e[17]!==U?(W=[...U],e[17]=U,e[18]=W):W=e[18];let X;e[19]!==I||e[20]!==W?(X={availableYears:I,availableNrens:W},e[19]=I,e[20]=W,e[21]=X):X=e[21];let te;e[22]!==r||e[23]!==i||e[24]!==X?(te=g.jsx(Ut,{filterOptions:X,filterSelection:r,setFilterSelection:i}),e[22]=r,e[23]=i,e[24]=X,e[25]=te):te=e[25],p=te,y=Array.from(new Set(x.map(MM))),e[1]=s,e[2]=r,e[3]=u,e[4]=i,e[5]=o,e[6]=d,e[7]=p,e[8]=x,e[9]=y}else d=e[6],p=e[7],x=e[8],y=e[9];const v=y.length,w=Math.max(v*r.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 S;e[26]===Symbol.for("react.memo_cache_sentinel")?(S=sm({title:"Capacity of the Largest Link in an NREN Network",tooltipUnit:"Gbit/s",unit:"Gbit/s"}),e[26]=S):S=e[26];const T=S,C=`${w}rem`;let R;e[27]!==C?(R={height:C},e[27]=C,e[28]=R):R=e[28];let A;e[29]===Symbol.for("react.memo_cache_sentinel")?(A=[J0],e[29]=A):A=e[29];let j;e[30]!==d?(j=g.jsx(Pc,{data:d,options:T,plugins:A}),e[30]=d,e[31]=j):j=e[31];let O;e[32]!==R||e[33]!==j?(O=g.jsx(Ht,{children:g.jsx("div",{className:"chart-container",style:R,children:j})}),e[32]=R,e[33]=j,e[34]=O):O=e[34];let B;return e[35]!==p||e[36]!==x||e[37]!==O?(B=g.jsx(Pt,{title:"Capacity of the Largest Link in an NREN Network",description:b,category:ct.Network,filter:p,data:x,filename:"capacity_largest_link",children:O}),e[35]=p,e[36]=x,e[37]=O,e[38]=B):B=e[38],B}function MM(e){return e.nren}function BM(){const e=Ke.c(29),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/certificate-providers",n);let o,u;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let O;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(O=B=>t.selectedYears.includes(B.year)&&t.selectedNrens.includes(B.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=O):O=e[7],o=r.filter(O),u=Ar(o,"provider_names"),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=u}else o=e[3],u=e[4];const d=u;let p;e[8]!==i?(p=[...i],e[8]=i,e[9]=p):p=e[9];let x;e[10]!==s?(x=s.values(),e[10]=s,e[11]=x):x=e[11];let y;e[12]!==x?(y=[...x],e[12]=x,e[13]=y):y=e[13];let v;e[14]!==p||e[15]!==y?(v={availableYears:p,availableNrens:y},e[14]=p,e[15]=y,e[16]=v):v=e[16];let w;e[17]!==t||e[18]!==n||e[19]!==v?(w=g.jsx(Ut,{filterOptions:v,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=v,e[20]=w):w=e[20];const b=w;let S;e[21]===Symbol.for("react.memo_cache_sentinel")?(S=["TCS","Digicert","Sectigo (outside of TCS)","Let's Encrypt","Entrust Datacard"],e[21]=S):S=e[21];const T=S;let C;e[22]===Symbol.for("react.memo_cache_sentinel")?(C=new Map([["Sectigo (outside of TCS)","Sectigo"]]),e[22]=C):C=e[22];const R=C;let A;e[23]!==d?(A=g.jsx(Ht,{children:g.jsx(oa,{columns:T,dataLookup:d,circle:!0,columnLookup:R})}),e[23]=d,e[24]=A):A=e[24];let j;return e[25]!==b||e[26]!==o||e[27]!==A?(j=g.jsx(Pt,{title:"Certification Services used by NRENs ",description:"The table below shows the kinds of Network Certificate Providers used by NRENs.",category:ct.Network,filter:b,data:o,filename:"certificate_provider_nrens_per_year",children:A}),e[25]=b,e[26]=o,e[27]=A,e[28]=j):j=e[28],j}on.register(fl,ul,I1,Y1,dl,Bi,hl);function pE(e){const t=Ke.c(32),{national:n}=e,r=n?"fibre_length_in_country":"fibre_length_outside_country";let i;t[0]!==r?(i=X=>X[r]!=null,t[0]=r,t[1]=i):i=t[1];const s=i,{filterSelection:o,setFilterSelection:u}=k.useContext(Mt),{data:d,nrens:p}=It("/api/dark-fibre-lease",u,s);let x,y;if(t[2]!==d||t[3]!==r||t[4]!==o.selectedNrens||t[5]!==s){let X;t[8]!==o.selectedNrens||t[9]!==s?(X=te=>o.selectedNrens.includes(te.nren)&&s(te),t[8]=o.selectedNrens,t[9]=s,t[10]=X):X=t[10],x=d.filter(X),y=Ac(x,r),t[2]=d,t[3]=r,t[4]=o.selectedNrens,t[5]=s,t[6]=x,t[7]=y}else x=t[6],y=t[7];const v=y;let w;t[11]===Symbol.for("react.memo_cache_sentinel")?(w=[],t[11]=w):w=t[11];let b;t[12]!==p?(b=p.values(),t[12]=p,t[13]=b):b=t[13];let S;t[14]!==b?(S={availableYears:w,availableNrens:[...b]},t[14]=b,t[15]=S):S=t[15];let T;t[16]!==o||t[17]!==u||t[18]!==S?(T=g.jsx(Ut,{filterOptions:S,filterSelection:o,setFilterSelection:u}),t[16]=o,t[17]=u,t[18]=S,t[19]=T):T=t[19];const C=T;let R;t[20]===Symbol.for("react.memo_cache_sentinel")?(R=lm({title:"Kilometres of Leased Dark Fibre",tooltipUnit:"km",unit:"km"}),t[20]=R):R=t[20];const A=R,j=n?"within":"outside";let O;t[21]!==j?(O=g.jsxs("span",{children:["This graph shows the number of Kilometres of dark fibre leased by NRENs ",j," 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]=j,t[22]=O):O=t[22];const B=O,L=`Kilometres of Leased Dark Fibre (${n?"National":"International"})`,I=`dark_fibre_lease_${n?"national":"international"}`;let U;t[23]!==v?(U=g.jsx(Ht,{children:g.jsx(Cc,{data:v,options:A})}),t[23]=v,t[24]=U):U=t[24];let W;return t[25]!==B||t[26]!==C||t[27]!==x||t[28]!==L||t[29]!==I||t[30]!==U?(W=g.jsx(Pt,{title:L,description:B,category:ct.Network,filter:C,data:x,filename:I,children:U}),t[25]=B,t[26]=C,t[27]=x,t[28]=L,t[29]=I,t[30]=U,t[31]=W):W=t[31],W}on.register(fl,ul,I1,Y1,dl,Bi,hl);function PM(){const e=Ke.c(24);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=O=>O.fibre_length_in_country!=null,e[0]=t):t=e[0];const n=t,{filterSelection:r,setFilterSelection:i}=k.useContext(Mt),{data:s,nrens:o}=It("/api/dark-fibre-installed",i,n);let u,d;if(e[1]!==s||e[2]!==r.selectedNrens){let O;e[5]!==r.selectedNrens?(O=B=>r.selectedNrens.includes(B.nren)&&n(B),e[5]=r.selectedNrens,e[6]=O):O=e[6],u=s.filter(O),d=Ac(u,"fibre_length_in_country"),e[1]=s,e[2]=r.selectedNrens,e[3]=u,e[4]=d}else u=e[3],d=e[4];const p=d;let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=[],e[7]=x):x=e[7];let y;e[8]!==o?(y=o.values(),e[8]=o,e[9]=y):y=e[9];let v;e[10]!==y?(v={availableYears:x,availableNrens:[...y]},e[10]=y,e[11]=v):v=e[11];let w;e[12]!==r||e[13]!==i||e[14]!==v?(w=g.jsx(Ut,{filterOptions:v,filterSelection:r,setFilterSelection:i}),e[12]=r,e[13]=i,e[14]=v,e[15]=w):w=e[15];const b=w;let S;e[16]===Symbol.for("react.memo_cache_sentinel")?(S=lm({title:"Kilometres of Installed Dark Fibre",tooltipUnit:"km",unit:"km"}),e[16]=S):S=e[16];const T=S;let C;e[17]===Symbol.for("react.memo_cache_sentinel")?(C=g.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]=C):C=e[17];const R=C;let A;e[18]!==p?(A=g.jsx(Ht,{children:g.jsx(Cc,{data:p,options:T})}),e[18]=p,e[19]=A):A=e[19];let j;return e[20]!==b||e[21]!==u||e[22]!==A?(j=g.jsx(Pt,{title:"Kilometres of Installed Dark Fibre",description:R,category:ct.Network,filter:b,data:u,filename:"dark_fibre_lease_installed",children:A}),e[20]=b,e[21]=u,e[22]=A,e[23]=j):j=e[23],j}function UM(e){const t=Ke.c(8),{dataLookup:n,columnInfo:r}=e;if(!n){let u;return t[0]===Symbol.for("react.memo_cache_sentinel")?(u=g.jsx("div",{className:"matrix-border-round"}),t[0]=u):u=t[0],u}let i;if(t[1]!==r||t[2]!==n){let u;t[4]!==r?(u=d=>{const[p,x]=d;return g.jsx(Xf,{title:p,theme:"-table",startCollapsed:!0,children:g.jsx("div",{className:"scrollable-horizontal",children:Array.from(x.entries()).map(y=>{const[v,w]=y,b={"--before-color":`var(--color-of-the-year-muted-${v%9})`};return g.jsxs("div",{children:[g.jsx("span",{className:`scrollable-table-year color-of-the-year-${v%9} bold-caps-16pt pt-3 ps-3`,style:b,children:v}),g.jsx("div",{className:`colored-table bg-muted-color-of-the-year-${v%9}`,children:g.jsxs(Xl,{children:[g.jsx("thead",{children:g.jsx("tr",{children:Object.keys(r).map(S=>g.jsx("th",{style:{position:"relative"},children:g.jsx("span",{style:b,children:S})},S))})}),g.jsx("tbody",{children:w.map((S,T)=>g.jsx("tr",{children:Object.entries(r).map(C=>{const[R,A]=C,j=S[A];return g.jsx("td",{children:j},R)})},T))})]})})]},v)})})},p)},t[4]=r,t[5]=u):u=t[5],i=Array.from(n.entries()).map(u),t[1]=r,t[2]=n,t[3]=i}else i=t[3];const s=i;let o;return t[6]!==s?(o=g.jsx("div",{className:"matrix-border-round",children:s}),t[6]=s,t[7]=o):o=t[7],o}function IM(){const e=Ke.c(29),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/external-connections",n);let o,u;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let O;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(O=B=>t.selectedYears.includes(B.year)&&t.selectedNrens.includes(B.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=O):O=e[7],o=r.filter(O),u=J1([...o]),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=u}else o=e[3],u=e[4];const d=u;let p;e[8]!==i?(p=[...i],e[8]=i,e[9]=p):p=e[9];let x;e[10]!==s?(x=s.values(),e[10]=s,e[11]=x):x=e[11];let y;e[12]!==x?(y=[...x],e[12]=x,e[13]=y):y=e[13];let v;e[14]!==p||e[15]!==y?(v={availableYears:p,availableNrens:y},e[14]=p,e[15]=y,e[16]=v):v=e[16];let w;e[17]!==t||e[18]!==n||e[19]!==v?(w=g.jsx(Ut,{filterOptions:v,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=v,e[20]=w):w=e[20];const b=w;let S;e[21]===Symbol.for("react.memo_cache_sentinel")?(S={"Link Name":"link_name","Capacity (Gbit/s)":"capacity","From Organisation":"from_organization","To Organisation":"to_organization","Interconnection Method":"interconnection_method"},e[21]=S):S=e[21];const T=S;let C;e[22]===Symbol.for("react.memo_cache_sentinel")?(C=g.jsxs(g.Fragment,{children:[g.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."}),g.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]=C):C=e[22];const R=C;let A;e[23]!==d?(A=g.jsx(Ht,{children:g.jsx(UM,{dataLookup:d,columnInfo:T})}),e[23]=d,e[24]=A):A=e[24];let j;return e[25]!==b||e[26]!==o||e[27]!==A?(j=g.jsx(Pt,{title:"NREN External IP Connections",description:R,category:ct.Network,filter:b,data:o,filename:"nren_external_connections",children:A}),e[25]=b,e[26]=o,e[27]=A,e[28]=j):j=e[28],j}function YM(){const e=Ke.c(29),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/fibre-light",n);let o,u;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let j;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(j=O=>t.selectedYears.includes(O.year)&&t.selectedNrens.includes(O.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=j):j=e[7],o=r.filter(j),u=Ar(o,"light_description"),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=u}else o=e[3],u=e[4];const d=u;let p;e[8]!==i?(p=[...i],e[8]=i,e[9]=p):p=e[9];let x;e[10]!==s?(x=s.values(),e[10]=s,e[11]=x):x=e[11];let y;e[12]!==x?(y=[...x],e[12]=x,e[13]=y):y=e[13];let v;e[14]!==p||e[15]!==y?(v={availableYears:p,availableNrens:y},e[14]=p,e[15]=y,e[16]=v):v=e[16];let w;e[17]!==t||e[18]!==n||e[19]!==v?(w=g.jsx(Ut,{filterOptions:v,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=v,e[20]=w):w=e[20];const b=w;let S,T;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)"],T=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]=T):(S=e[21],T=e[22]);const C=T;let R;e[23]!==d?(R=g.jsx(Ht,{children:g.jsx(oa,{columns:S,dataLookup:d,columnLookup:C,circle:!0})}),e[23]=d,e[24]=R):R=e[24];let A;return e[25]!==b||e[26]!==o||e[27]!==R?(A=g.jsx(Pt,{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:ct.Network,filter:b,data:o,filename:"fibre_light_of_nrens_per_year",children:R}),e[25]=b,e[26]=o,e[27]=R,e[28]=A):A=e[28],A}on.register(fl,ul,I1,Y1,dl,Bi,hl);function HM(){const e=Ke.c(24);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=j=>j.iru_duration!=null,e[0]=t):t=e[0];const n=t,{filterSelection:r,setFilterSelection:i}=k.useContext(Mt),{data:s,nrens:o}=It("/api/dark-fibre-lease",i,n);let u,d;if(e[1]!==s||e[2]!==r.selectedNrens){let j;e[5]!==r.selectedNrens?(j=O=>r.selectedNrens.includes(O.nren),e[5]=r.selectedNrens,e[6]=j):j=e[6],u=s.filter(j),d=Ac(u,"iru_duration"),e[1]=s,e[2]=r.selectedNrens,e[3]=u,e[4]=d}else u=e[3],d=e[4];const p=d;let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=[],e[7]=x):x=e[7];let y;e[8]!==o?(y=o.values(),e[8]=o,e[9]=y):y=e[9];let v;e[10]!==y?(v={availableYears:x,availableNrens:[...y]},e[10]=y,e[11]=v):v=e[11];let w;e[12]!==r||e[13]!==i||e[14]!==v?(w=g.jsx(Ut,{filterOptions:v,filterSelection:r,setFilterSelection:i}),e[12]=r,e[13]=i,e[14]=v,e[15]=w):w=e[15];const b=w;let S;e[16]===Symbol.for("react.memo_cache_sentinel")?(S=lm({title:"Lease Duration In Years",tooltipUnit:"years",tickLimit:999}),e[16]=S):S=e[16];const T=S;let C;e[17]===Symbol.for("react.memo_cache_sentinel")?(C=g.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]=C):C=e[17];let R;e[18]!==p?(R=g.jsx(Ht,{children:g.jsx(Cc,{data:p,options:T})}),e[18]=p,e[19]=R):R=e[19];let A;return e[20]!==b||e[21]!==u||e[22]!==R?(A=g.jsx(Pt,{title:"Average Duration of IRU leases of Fibre by NRENs ",description:C,category:ct.Network,filter:b,data:u,filename:"iru_duration_data",children:R}),e[20]=b,e[21]=u,e[22]=R,e[23]=A):A=e[23],A}function $M(){const e=Ke.c(29),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/monitoring-tools",n);let o,u;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let j;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(j=L=>t.selectedYears.includes(L.year)&&t.selectedNrens.includes(L.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=j):j=e[7],o=r.filter(j);const O=Ar(o,"tool_descriptions");u=Q1(O,zM),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=u}else o=e[3],u=e[4];const d=u;let p,x;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=["Looking Glass","Network or Services Status Dashboard","Historical traffic volume information","Netflow analysis tool"],x=new Map([[p[0],"looking_glass"],[p[1],"status_dashboard"],[p[2],"historical_traffic_volumes"],[p[3],"netflow_analysis"]]),e[8]=p,e[9]=x):(p=e[8],x=e[9]);const y=x;let v;e[10]!==i?(v=[...i],e[10]=i,e[11]=v):v=e[11];let w;e[12]!==s?(w=s.values(),e[12]=s,e[13]=w):w=e[13];let b;e[14]!==w?(b=[...w],e[14]=w,e[15]=b):b=e[15];let S;e[16]!==v||e[17]!==b?(S={availableYears:v,availableNrens:b},e[16]=v,e[17]=b,e[18]=S):S=e[18];let T;e[19]!==t||e[20]!==n||e[21]!==S?(T=g.jsx(Ut,{filterOptions:S,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[19]=t,e[20]=n,e[21]=S,e[22]=T):T=e[22];const C=T;let R;e[23]!==d?(R=g.jsx(Ht,{children:g.jsx(oa,{columns:p,columnLookup:y,dataLookup:d})}),e[23]=d,e[24]=R):R=e[24];let A;return e[25]!==C||e[26]!==o||e[27]!==R?(A=g.jsx(Pt,{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:ct.Network,filter:C,data:o,filename:"monitoring_tools_nrens_per_year",children:R}),e[25]=C,e[26]=o,e[27]=R,e[28]=A):A=e[28],A}function zM(e,t){if(e==="netflow_analysis"&&t.netflow_processing_description)return t.netflow_processing_description}function GM(){const e=Ke.c(67),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/nfv",n);let o,u,d,p,x,y,v,w,b,S,T,C,R,A,j;if(e[0]!==r||e[1]!==t||e[2]!==s||e[3]!==n||e[4]!==i){let U;e[20]!==t.selectedNrens||e[21]!==t.selectedYears?(U=K=>t.selectedYears.includes(K.year)&&t.selectedNrens.includes(K.nren),e[20]=t.selectedNrens,e[21]=t.selectedYears,e[22]=U):U=e[22];const W=r.filter(U),X=Ar(W,"nfv_specifics");let te;e[23]!==i?(te=[...i],e[23]=i,e[24]=te):te=e[24];let ne;e[25]!==s?(ne=s.values(),e[25]=s,e[26]=ne):ne=e[26];let _e;e[27]!==ne?(_e=[...ne],e[27]=ne,e[28]=_e):_e=e[28];let ye;e[29]!==te||e[30]!==_e?(ye={availableYears:te,availableNrens:_e},e[29]=te,e[30]=_e,e[31]=ye):ye=e[31];let ce;e[32]!==t||e[33]!==n||e[34]!==ye?(ce=g.jsx(Ut,{filterOptions:ye,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[32]=t,e[33]=n,e[34]=ye,e[35]=ce):ce=e[35];const Te=ce;let Ne;e[36]!==i?(Ne=K=>i.has(K),e[36]=i,e[37]=Ne):Ne=e[37];const $e=[...t.selectedYears.filter(Ne)].sort();d=Pt,C="Kinds of Network Function Virtualisation used by NRENs ",R="The table below shows the kinds of Network Function Virtualisation (NFV) used by NRENs.",A=ct.Network,j=Te,y=W,v="network_function_virtualisation_nrens_per_year",u=Ht,o=Xl,x="charging-struct-table",w=!0,b=!0;let Pe;e[38]===Symbol.for("react.memo_cache_sentinel")?(Pe=g.jsx("col",{span:1,style:{width:"20%"}}),e[38]=Pe):Pe=e[38];let et;e[39]===Symbol.for("react.memo_cache_sentinel")?(et=g.jsx("col",{span:2,style:{width:"16%"}}),e[39]=et):et=e[39];let J;e[40]===Symbol.for("react.memo_cache_sentinel")?(J=g.jsx("col",{span:2,style:{width:"16%"}}),e[40]=J):J=e[40];let ie;e[41]===Symbol.for("react.memo_cache_sentinel")?(ie=g.jsx("col",{span:2,style:{width:"16%"}}),e[41]=ie):ie=e[41];let ee;e[42]===Symbol.for("react.memo_cache_sentinel")?(ee=g.jsx("col",{span:2,style:{width:"16%"}}),e[42]=ee):ee=e[42],e[43]===Symbol.for("react.memo_cache_sentinel")?(S=g.jsxs("colgroup",{children:[Pe,et,J,ie,ee,g.jsx("col",{span:2,style:{width:"16%"}})]}),T=g.jsxs("thead",{children:[g.jsxs("tr",{children:[g.jsx("th",{}),g.jsx("th",{colSpan:2,children:"Routers/switches"}),g.jsx("th",{colSpan:2,children:"Firewalls"}),g.jsx("th",{colSpan:2,children:"Load balancers"}),g.jsx("th",{colSpan:2,children:"VPN Concentrator Services"}),g.jsx("th",{colSpan:2,children:"Other"})]}),g.jsxs("tr",{children:[g.jsx("th",{}),g.jsx("th",{children:"Yes"}),g.jsx("th",{children:"Planned"}),g.jsx("th",{children:"Yes"}),g.jsx("th",{children:"Planned"}),g.jsx("th",{children:"Yes"}),g.jsx("th",{children:"Planned"}),g.jsx("th",{children:"Yes"}),g.jsx("th",{children:"Planned"}),g.jsx("th",{children:"Yes"}),g.jsx("th",{children:"Planned"})]})]}),e[43]=S,e[44]=T):(S=e[43],T=e[44]),p=Array.from(X.entries()).map(K=>{const[xe,Fe]=K;return g.jsxs("tr",{children:[g.jsx("td",{children:xe}),["routers","firewalls","load_balancers","vpn_concentrators"].map(Ce=>g.jsxs(g.Fragment,{children:[g.jsx("td",{children:Fe.has(Ce)&&$e.map(me=>{const oe=Fe.get(Ce),Be=oe.get(me);return g.jsx(Rs,{year:me,active:oe.has(me)&&!!(Be&&Be.nfv=="yes"),tooltip:"",rounded:!0},me)})},`${Ce}-yes`),g.jsx("td",{children:Fe.has(Ce)&&$e.map(me=>{const oe=Fe.get(Ce),Be=oe.get(me);return g.jsx(Rs,{year:me,active:oe.has(me)&&!!(Be&&Be.nfv=="planned"),tooltip:"",rounded:!0},me)})},`${Ce}-planned`)]})),g.jsx("td",{children:Array.from(Fe.keys()).filter(VM).map(Ce=>g.jsx("div",{children:Fe.has(Ce)&&$e.map(me=>{const oe=Fe.get(Ce),Be=oe.get(me);return g.jsx(Rs,{year:me,active:oe.has(me)&&!!(Be&&(Be==null?void 0:Be.nfv)=="yes"),tooltip:Ce,rounded:!0},me)})},`${Ce}-yes`))},`${xe}-other-yes`),g.jsx("td",{children:Array.from(Fe.keys()).filter(WM).map(Ce=>g.jsx("div",{children:Fe.has(Ce)&&$e.map(me=>{const oe=Fe.get(Ce),Be=oe.get(me);return g.jsx(Rs,{year:me,active:oe.has(me)&&!!(Be&&(Be==null?void 0:Be.nfv)=="planned"),tooltip:Ce,rounded:!0},me)})},`${Ce}-planned`))},`${xe}-other-planned`)]},xe)}),e[0]=r,e[1]=t,e[2]=s,e[3]=n,e[4]=i,e[5]=o,e[6]=u,e[7]=d,e[8]=p,e[9]=x,e[10]=y,e[11]=v,e[12]=w,e[13]=b,e[14]=S,e[15]=T,e[16]=C,e[17]=R,e[18]=A,e[19]=j}else o=e[5],u=e[6],d=e[7],p=e[8],x=e[9],y=e[10],v=e[11],w=e[12],b=e[13],S=e[14],T=e[15],C=e[16],R=e[17],A=e[18],j=e[19];let O;e[45]!==p?(O=g.jsx("tbody",{children:p}),e[45]=p,e[46]=O):O=e[46];let B;e[47]!==o||e[48]!==x||e[49]!==O||e[50]!==w||e[51]!==b||e[52]!==S||e[53]!==T?(B=g.jsxs(o,{className:x,striped:w,bordered:b,children:[S,T,O]}),e[47]=o,e[48]=x,e[49]=O,e[50]=w,e[51]=b,e[52]=S,e[53]=T,e[54]=B):B=e[54];let L;e[55]!==u||e[56]!==B?(L=g.jsx(u,{children:B}),e[55]=u,e[56]=B,e[57]=L):L=e[57];let I;return e[58]!==d||e[59]!==y||e[60]!==v||e[61]!==L||e[62]!==C||e[63]!==R||e[64]!==A||e[65]!==j?(I=g.jsx(d,{title:C,description:R,category:A,filter:j,data:y,filename:v,children:L}),e[58]=d,e[59]=y,e[60]=v,e[61]=L,e[62]=C,e[63]=R,e[64]=A,e[65]=j,e[66]=I):I=e[66],I}function WM(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)}function VM(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)}function XM(){const e=Ke.c(21),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,nrens:i}=It("/api/network-map-urls",n);let s,o;if(e[0]!==r||e[1]!==t.selectedNrens){const S=r?td(r):[];let T;e[4]!==t.selectedNrens?(T=R=>t.selectedNrens.includes(R.nren),e[4]=t.selectedNrens,e[5]=T):T=e[5],s=S.filter(T);const C=Pi(s);o=ql(C,qM),e[0]=r,e[1]=t.selectedNrens,e[2]=s,e[3]=o}else s=e[2],o=e[3];const u=o;let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[6]=d):d=e[6];let p;e[7]!==i?(p=i.values(),e[7]=i,e[8]=p):p=e[8];let x;e[9]!==p?(x={availableYears:d,availableNrens:[...p]},e[9]=p,e[10]=x):x=e[10];let y;e[11]!==t||e[12]!==n||e[13]!==x?(y=g.jsx(Ut,{filterOptions:x,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[11]=t,e[12]=n,e[13]=x,e[14]=y):y=e[14];const v=y;let w;e[15]!==u?(w=g.jsx(Ht,{children:g.jsx(Ms,{data:u,columnTitle:"Network Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=u,e[16]=w):w=e[16];let b;return e[17]!==v||e[18]!==s||e[19]!==w?(b=g.jsx(Pt,{title:"NREN Network Maps",description:"This table provides links to NREN network maps, showing layers 1, 2, and 3 of their networks.",category:ct.Network,filter:v,data:s,filename:"network_map_nrens_per_year",children:w}),e[17]=v,e[18]=s,e[19]=w,e[20]=b):b=e[20],b}function qM(e,t){const n=Oy(t);if(n!=null)for(const[r,i]of Object.entries(n))e[r]=i}on.register(fl,ul,iu,dl,Bi,hl);function KM(){const e=Ke.c(38),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/non-re-peers",n);let o,u,d,p;if(e[0]!==r||e[1]!==t||e[2]!==s||e[3]!==n||e[4]!==i){let O;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(O=X=>t.selectedYears.includes(X.year)&&t.selectedNrens.includes(X.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=O):O=e[11],d=r.filter(O),o=vx(d,"nr_of_non_r_and_e_peers","Number of Peers");let B;e[12]!==i?(B=[...i],e[12]=i,e[13]=B):B=e[13];let L;e[14]!==s?(L=s.values(),e[14]=s,e[15]=L):L=e[15];let I;e[16]!==L?(I=[...L],e[16]=L,e[17]=I):I=e[17];let U;e[18]!==B||e[19]!==I?(U={availableYears:B,availableNrens:I},e[18]=B,e[19]=I,e[20]=U):U=e[20];let W;e[21]!==t||e[22]!==n||e[23]!==U?(W=g.jsx(Ut,{filterOptions:U,filterSelection:t,setFilterSelection:n}),e[21]=t,e[22]=n,e[23]=U,e[24]=W):W=e[24],u=W,p=Array.from(new Set(d.map(ZM))),e[0]=r,e[1]=t,e[2]=s,e[3]=n,e[4]=i,e[5]=o,e[6]=u,e[7]=d,e[8]=p}else o=e[5],u=e[6],d=e[7],p=e[8];const x=p.length,y=Math.max(x*t.selectedYears.length*1.5+5,50),v=`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 w;e[25]===Symbol.for("react.memo_cache_sentinel")?(w=sm({title:"Number of Non-R&E Peers"}),e[25]=w):w=e[25];const b=w,S=`${y}rem`;let T;e[26]!==S?(T={height:S},e[26]=S,e[27]=T):T=e[27];let C;e[28]===Symbol.for("react.memo_cache_sentinel")?(C=[J0],e[28]=C):C=e[28];let R;e[29]!==o?(R=g.jsx(Pc,{data:o,options:b,plugins:C}),e[29]=o,e[30]=R):R=e[30];let A;e[31]!==T||e[32]!==R?(A=g.jsx(Ht,{children:g.jsx("div",{className:"chart-container",style:T,children:R})}),e[31]=T,e[32]=R,e[33]=A):A=e[33];let j;return e[34]!==u||e[35]!==d||e[36]!==A?(j=g.jsx(Pt,{title:"Number of Non-R&E Networks NRENs Peer With",description:v,category:ct.Network,filter:u,data:d,filename:"non_r_and_e_peering",children:A}),e[34]=u,e[35]=d,e[36]=A,e[37]=j):j=e[37],j}function ZM(e){return e.nren}function QM(){const e=Ke.c(29),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/ops-automation",n);let o,u;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let j;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(j=L=>t.selectedYears.includes(L.year)&&t.selectedNrens.includes(L.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=j):j=e[7],o=r.filter(j);const O=Ar(o,"ops_automation");u=Q1(O,JM),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=u}else o=e[3],u=e[4];const d=u;let p,x;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=["Yes","Planned","No"],x=new Map([[p[0],"yes"],[p[1],"planned"],[p[2],"no"]]),e[8]=p,e[9]=x):(p=e[8],x=e[9]);const y=x;let v;e[10]!==i?(v=[...i],e[10]=i,e[11]=v):v=e[11];let w;e[12]!==s?(w=s.values(),e[12]=s,e[13]=w):w=e[13];let b;e[14]!==w?(b=[...w],e[14]=w,e[15]=b):b=e[15];let S;e[16]!==v||e[17]!==b?(S={availableYears:v,availableNrens:b},e[16]=v,e[17]=b,e[18]=S):S=e[18];let T;e[19]!==t||e[20]!==n||e[21]!==S?(T=g.jsx(Ut,{filterOptions:S,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[19]=t,e[20]=n,e[21]=S,e[22]=T):T=e[22];const C=T;let R;e[23]!==d?(R=g.jsx(Ht,{children:g.jsx(oa,{columns:p,columnLookup:y,dataLookup:d})}),e[23]=d,e[24]=R):R=e[24];let A;return e[25]!==C||e[26]!==o||e[27]!==R?(A=g.jsx(Pt,{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:ct.Network,filter:C,data:o,filename:"ops_automation_nrens_per_year",children:R}),e[25]=C,e[26]=o,e[27]=R,e[28]=A):A=e[28],A}function JM(e,t){if(t.ops_automation_specifics)return t.ops_automation_specifics}function eB(){const e=Ke.c(29),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/passive-monitoring",n);let o,u;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let j;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(j=O=>t.selectedYears.includes(O.year)&&t.selectedNrens.includes(O.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=j):j=e[7],o=r.filter(j),u=Ar(o,"method",!0),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=u}else o=e[3],u=e[4];const d=u;let p;e[8]!==i?(p=[...i],e[8]=i,e[9]=p):p=e[9];let x;e[10]!==s?(x=s.values(),e[10]=s,e[11]=x):x=e[11];let y;e[12]!==x?(y=[...x],e[12]=x,e[13]=y):y=e[13];let v;e[14]!==p||e[15]!==y?(v={availableYears:p,availableNrens:y},e[14]=p,e[15]=y,e[16]=v):v=e[16];let w;e[17]!==t||e[18]!==n||e[19]!==v?(w=g.jsx(Ut,{filterOptions:v,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=v,e[20]=w):w=e[20];const b=w;let S,T;e[21]===Symbol.for("react.memo_cache_sentinel")?(S=["No monitoring occurs","SPAN ports","Passive optical TAPS","Both SPAN ports and passive optical TAPS"],T=new Map([[S[0],"null"],[S[1],"span_ports"],[S[2],"taps"],[S[3],"both"]]),e[21]=S,e[22]=T):(S=e[21],T=e[22]);const C=T;let R;e[23]!==d?(R=g.jsx(Ht,{children:g.jsx(oa,{columns:S,dataLookup:d,columnLookup:C})}),e[23]=d,e[24]=R):R=e[24];let A;return e[25]!==b||e[26]!==o||e[27]!==R?(A=g.jsx(Pt,{title:"Methods for Passively Monitoring International Traffic",description:"The table below shows the methods NRENs use for the passive monitoring of international traffic.",category:ct.Network,filter:b,data:o,filename:"passive_monitoring_nrens_per_year",children:R}),e[25]=b,e[26]=o,e[27]=R,e[28]=A):A=e[28],A}function tB(){const e=Ke.c(29),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/pert-team",n);let o,u;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let j;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(j=O=>t.selectedYears.includes(O.year)&&t.selectedNrens.includes(O.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=j):j=e[7],o=r.filter(j),u=Ar(o,"pert_team"),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=u}else o=e[3],u=e[4];const d=u;let p,x;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=["Yes","Planned","No"],x=new Map([[p[0],"yes"],[p[1],"planned"],[p[2],"no"]]),e[8]=p,e[9]=x):(p=e[8],x=e[9]);const y=x;let v;e[10]!==i?(v=[...i],e[10]=i,e[11]=v):v=e[11];let w;e[12]!==s?(w=s.values(),e[12]=s,e[13]=w):w=e[13];let b;e[14]!==w?(b=[...w],e[14]=w,e[15]=b):b=e[15];let S;e[16]!==v||e[17]!==b?(S={availableYears:v,availableNrens:b},e[16]=v,e[17]=b,e[18]=S):S=e[18];let T;e[19]!==t||e[20]!==n||e[21]!==S?(T=g.jsx(Ut,{filterOptions:S,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[19]=t,e[20]=n,e[21]=S,e[22]=T):T=e[22];const C=T;let R;e[23]!==d?(R=g.jsx(Ht,{children:g.jsx(oa,{columns:p,columnLookup:y,dataLookup:d})}),e[23]=d,e[24]=R):R=e[24];let A;return e[25]!==C||e[26]!==o||e[27]!==R?(A=g.jsx(Pt,{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:ct.Network,filter:C,data:o,filename:"pert_team_nrens_per_year",children:R}),e[25]=C,e[26]=o,e[27]=R,e[28]=A):A=e[28],A}function nB(){const e=Ke.c(28),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/siem-vendors",n);let o,u;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let A;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(A=j=>t.selectedYears.includes(j.year)&&t.selectedNrens.includes(j.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=A):A=e[7],o=r.filter(A),u=Ar(o,"vendor_names"),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=u}else o=e[3],u=e[4];const d=u;let p;e[8]!==i?(p=[...i],e[8]=i,e[9]=p):p=e[9];let x;e[10]!==s?(x=s.values(),e[10]=s,e[11]=x):x=e[11];let y;e[12]!==x?(y=[...x],e[12]=x,e[13]=y):y=e[13];let v;e[14]!==p||e[15]!==y?(v={availableYears:p,availableNrens:y},e[14]=p,e[15]=y,e[16]=v):v=e[16];let w;e[17]!==t||e[18]!==n||e[19]!==v?(w=g.jsx(Ut,{filterOptions:v,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=v,e[20]=w):w=e[20];const b=w;let S;e[21]===Symbol.for("react.memo_cache_sentinel")?(S=["Splunk","IBM Qradar","Exabeam","LogRythm","Securonix"],e[21]=S):S=e[21];const T=S;let C;e[22]!==d?(C=g.jsx(Ht,{children:g.jsx(oa,{columns:T,dataLookup:d,circle:!0})}),e[22]=d,e[23]=C):C=e[23];let R;return e[24]!==b||e[25]!==o||e[26]!==C?(R=g.jsx(Pt,{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:ct.Network,filter:b,data:o,filename:"siem_vendor_nrens_per_year",children:C}),e[24]=b,e[25]=o,e[26]=C,e[27]=R):R=e[27],R}on.register(fl,ul,iu,dl,Bi,hl);const rB={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(on.instances);let n=-999999,r=999999;for(const i of t)on.instances[i]&&e.chart.scales.x2&&(r=Math.min(on.instances[i].scales.x.min,r),n=Math.max(on.instances[i].scales.x.max,n));e.chart.scales.x2.options.min=r,e.chart.scales.x2.options.max=n,e.chart.scales.x2.min=r,e.chart.scales.x2.max=n}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};function aB(){const e=Ke.c(37),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,years:i,nrens:s}=It("/api/traffic-ratio",n);let o,u,d,p;if(e[0]!==t||e[1]!==s||e[2]!==n||e[3]!==r||e[4]!==i){let A;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(A=U=>t.selectedYears.includes(U.year)&&t.selectedNrens.includes(U.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=A):A=e[11],u=r.filter(A),p=RA(u,t.selectedYears[0]);let j;e[12]!==i?(j=[...i],e[12]=i,e[13]=j):j=e[13];let O;e[14]!==s?(O=s.values(),e[14]=s,e[15]=O):O=e[15];let B;e[16]!==O?(B=[...O],e[16]=O,e[17]=B):B=e[17];let L;e[18]!==j||e[19]!==B?(L={availableYears:j,availableNrens:B},e[18]=j,e[19]=B,e[20]=L):L=e[20];let I;e[21]!==t||e[22]!==n||e[23]!==L?(I=g.jsx(Ut,{max1year:!0,filterOptions:L,filterSelection:t,setFilterSelection:n}),e[21]=t,e[22]=n,e[23]=L,e[24]=I):I=e[24],o=I,d=Array.from(new Set(u.map(lB))).map(U=>s.get(U)).filter(iB),e[0]=t,e[1]=s,e[2]=n,e[3]=r,e[4]=i,e[5]=o,e[6]=u,e[7]=d,e[8]=p}else o=e[5],u=e[6],d=e[7],p=e[8];const y=d.length,w=`${Math.max(y*1.5,20)}rem`;let b;e[25]!==w?(b={height:w},e[25]=w,e[26]=b):b=e[26];let S;e[27]===Symbol.for("react.memo_cache_sentinel")?(S=[pb],e[27]=S):S=e[27];let T;e[28]!==p?(T=g.jsx(Pc,{data:p,options:rB,plugins:S}),e[28]=p,e[29]=T):T=e[29];let C;e[30]!==b||e[31]!==T?(C=g.jsx(mb,{children:g.jsx("div",{className:"chart-container",style:b,children:T})}),e[30]=b,e[31]=T,e[32]=C):C=e[32];let R;return e[33]!==o||e[34]!==u||e[35]!==C?(R=g.jsx(Pt,{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:ct.Network,filter:o,data:u,filename:"types_of_traffic_in_nren_networks",children:C}),e[33]=o,e[34]=u,e[35]=C,e[36]=R):R=e[36],R}function iB(e){return!!e}function lB(e){return e.nren}function sB(){const e=Ke.c(21),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,nrens:i}=It("/api/traffic-stats",n);let s,o;if(e[0]!==r||e[1]!==t.selectedNrens){const S=r?td(r):[];let T;e[4]!==t.selectedNrens?(T=R=>t.selectedNrens.includes(R.nren),e[4]=t.selectedNrens,e[5]=T):T=e[5],s=S.filter(T);const C=Pi(s);o=ql(C,oB),e[0]=r,e[1]=t.selectedNrens,e[2]=s,e[3]=o}else s=e[2],o=e[3];const u=o;let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[6]=d):d=e[6];let p;e[7]!==i?(p=i.values(),e[7]=i,e[8]=p):p=e[8];let x;e[9]!==p?(x={availableYears:d,availableNrens:[...p]},e[9]=p,e[10]=x):x=e[10];let y;e[11]!==t||e[12]!==n||e[13]!==x?(y=g.jsx(Ut,{filterOptions:x,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[11]=t,e[12]=n,e[13]=x,e[14]=y):y=e[14];const v=y;let w;e[15]!==u?(w=g.jsx(Ht,{children:g.jsx(Ms,{data:u,columnTitle:"Traffic Statistics URL",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=u,e[16]=w):w=e[16];let b;return e[17]!==v||e[18]!==s||e[19]!==w?(b=g.jsx(Pt,{title:"Traffic Statistics",description:"This table shows the URL links to NREN websites showing traffic statistics, if available.",category:ct.Network,filter:v,data:s,filename:"traffic_stats_nrens_per_year",children:w}),e[17]=v,e[18]=s,e[19]=w,e[20]=b):b=e[20],b}function oB(e,t){const n=Oy(t);if(n!=null)for(const[r,i]of Object.entries(n))e[r]=i}on.register(fl,ul,I1,Y1,dl,Bi,hl);function cB(){const e=Ke.c(47),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,nrens:i}=It("/api/traffic-volume",n);let s,o,u,d,p;if(e[0]!==r||e[1]!==t.selectedNrens){let Te;e[7]!==t.selectedNrens?(Te=Ne=>t.selectedNrens.includes(Ne.nren),e[7]=t.selectedNrens,e[8]=Te):Te=e[8],u=r.filter(Te),s=Ac(u,"from_customers"),p=Ac(u,"to_customers"),o=Ac(u,"from_external"),d=Ac(u,"to_external"),e[0]=r,e[1]=t.selectedNrens,e[2]=s,e[3]=o,e[4]=u,e[5]=d,e[6]=p}else s=e[2],o=e[3],u=e[4],d=e[5],p=e[6];const x=d;let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=lm({title:"Traffic Volume in PB",tooltipUnit:"PB",valueTransform(Te){return Te?Te/1e3:0}}),e[9]=y):y=e[9];const v=y;let w;e[10]===Symbol.for("react.memo_cache_sentinel")?(w=[],e[10]=w):w=e[10];let b;e[11]!==i?(b=i.values(),e[11]=i,e[12]=b):b=e[12];let S;e[13]!==b?(S={availableYears:w,availableNrens:[...b]},e[13]=b,e[14]=S):S=e[14];let T;e[15]!==t||e[16]!==n||e[17]!==S?(T=g.jsx(Ut,{filterOptions:S,filterSelection:t,setFilterSelection:n}),e[15]=t,e[16]=n,e[17]=S,e[18]=T):T=e[18];const C=T;let R;e[19]===Symbol.for("react.memo_cache_sentinel")?(R=g.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]=R):R=e[19];let A;e[20]===Symbol.for("react.memo_cache_sentinel")?(A={marginBottom:"30px"},e[20]=A):A=e[20];let j;e[21]===Symbol.for("react.memo_cache_sentinel")?(j=g.jsx("span",{style:{fontSize:"20px",color:"rgb(85, 96, 156)",fontWeight:"bold"},children:"Traffic from NREN customer"}),e[21]=j):j=e[21];let O;e[22]!==s?(O=g.jsxs(Qn,{children:[j,g.jsx(Cc,{data:s,options:v})]}),e[22]=s,e[23]=O):O=e[23];let B;e[24]===Symbol.for("react.memo_cache_sentinel")?(B=g.jsx("span",{style:{fontSize:"20px",color:"rgb(221, 100, 57)",fontWeight:"bold"},children:"Traffic to NREN customer"}),e[24]=B):B=e[24];let L;e[25]!==p?(L=g.jsxs(Qn,{children:[B,g.jsx(Cc,{data:p,options:v})]}),e[25]=p,e[26]=L):L=e[26];let I;e[27]!==L||e[28]!==O?(I=g.jsxs(Cn,{style:A,children:[O,L]}),e[27]=L,e[28]=O,e[29]=I):I=e[29];let U;e[30]===Symbol.for("react.memo_cache_sentinel")?(U={marginTop:"30px"},e[30]=U):U=e[30];let W;e[31]===Symbol.for("react.memo_cache_sentinel")?(W=g.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]!==o?(X=g.jsxs(Qn,{children:[W,g.jsx(Cc,{data:o,options:v})]}),e[32]=o,e[33]=X):X=e[33];let te;e[34]===Symbol.for("react.memo_cache_sentinel")?(te=g.jsx("span",{style:{fontSize:"20px",color:"rgb(173, 48, 51)",fontWeight:"bold"},children:"Traffic to external network"}),e[34]=te):te=e[34];let ne;e[35]!==x?(ne=g.jsxs(Qn,{children:[te,g.jsx(Cc,{data:x,options:v})]}),e[35]=x,e[36]=ne):ne=e[36];let _e;e[37]!==X||e[38]!==ne?(_e=g.jsxs(Cn,{style:U,children:[X,ne]}),e[37]=X,e[38]=ne,e[39]=_e):_e=e[39];let ye;e[40]!==I||e[41]!==_e?(ye=g.jsxs(Ht,{children:[I,_e]}),e[40]=I,e[41]=_e,e[42]=ye):ye=e[42];let ce;return e[43]!==C||e[44]!==u||e[45]!==ye?(ce=g.jsx(Pt,{title:"NREN Traffic - NREN Customers & External Networks",description:R,category:ct.Network,filter:C,data:u,filename:"NREN_traffic_estimates_data",children:ye}),e[43]=C,e[44]=u,e[45]=ye,e[46]=ce):ce=e[46],ce}function fB(){const e=Ke.c(21),{filterSelection:t,setFilterSelection:n}=k.useContext(Mt),{data:r,nrens:i}=It("/api/weather-map",n);let s,o;if(e[0]!==r||e[1]!==t.selectedNrens){const S=r?td(r):[];let T;e[4]!==t.selectedNrens?(T=R=>t.selectedNrens.includes(R.nren),e[4]=t.selectedNrens,e[5]=T):T=e[5],s=S.filter(T);const C=Pi(s);o=ql(C,uB),e[0]=r,e[1]=t.selectedNrens,e[2]=s,e[3]=o}else s=e[2],o=e[3];const u=o;let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[6]=d):d=e[6];let p;e[7]!==i?(p=i.values(),e[7]=i,e[8]=p):p=e[8];let x;e[9]!==p?(x={availableYears:d,availableNrens:[...p]},e[9]=p,e[10]=x):x=e[10];let y;e[11]!==t||e[12]!==n||e[13]!==x?(y=g.jsx(Ut,{filterOptions:x,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[11]=t,e[12]=n,e[13]=x,e[14]=y):y=e[14];const v=y;let w;e[15]!==u?(w=g.jsx(Ht,{children:g.jsx(Ms,{data:u,columnTitle:"Network Weather Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=u,e[16]=w):w=e[16];let b;return e[17]!==v||e[18]!==s||e[19]!==w?(b=g.jsx(Pt,{title:"NREN Online Network Weather Maps ",description:"This table shows the URL links to NREN websites showing weather map, if available.",category:ct.Network,filter:v,data:s,filename:"weather_map_nrens_per_year",children:w}),e[17]=v,e[18]=s,e[19]=w,e[20]=b):b=e[20],b}function uB(e,t){!!t.url&&(e[t.url]=t.url)}function gE(e){return To({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 dB(e){const t=Ke.c(9),{year:n,active:r,serviceInfo:i,tickServiceIndex:s,current:o}=e;let u="No additional information available";if(i!==void 0){const y=i.service_name,v=i.year;let w=i.product_name,b=i.official_description,S=i.additional_information;(w!=""||b!=""||S!="")&&(w=w||"N/A",b=b||"N/A",S=S||"N/A",u=y+" ("+v+`)
-`+w+`
-
-Description: `+b+`
-Information: `+S)}let d="";u!=="No additional information available"&&(d="pill-shadow");let p;t[0]!==r||t[1]!==o||t[2]!==d||t[3]!==s||t[4]!==u?(p=r&&o?g.jsx("div",{"data-description":u,className:" bottom-tooltip ",style:{width:"30px",height:"30px",margin:"2px"},children:g.jsx(gE,{className:`rounded-pill color-of-the-current-service-${s%13} bottom-tooltip ${d}`})}):r&&!o?g.jsx("div",{"data-description":u,className:" bottom-tooltip ",style:{width:"30px",height:"30px",margin:"2px"},children:g.jsx(gE,{className:`rounded-pill color-of-the-previous-service-${s%13} bottom-tooltip ${d}`})}):g.jsx("div",{className:"rounded-pill bg-color-of-the-year-blank",style:{width:"30px",height:"30px",margin:"2px"},children:" "}),t[0]=r,t[1]=o,t[2]=d,t[3]=s,t[4]=u,t[5]=p):p=t[5];let x;return t[6]!==p||t[7]!==n?(x=g.jsx("div",{className:"d-inline-block",children:p},n),t[6]=p,t[7]=n,t[8]=x):x=t[8],x}const Co={};Co[Zn.network_services]="network";Co[Zn.isp_support]="ISP support";Co[Zn.security]="security";Co[Zn.identity]="identity";Co[Zn.collaboration]="collaboration";Co[Zn.multimedia]="multimedia";Co[Zn.storage_and_hosting]="storage and hosting";Co[Zn.professional_services]="professional";function vc(e){const t=Ke.c(62),{category:n}=e,{filterSelection:r,setFilterSelection:i}=k.useContext(Mt),{data:s,years:o,nrens:u}=It("/api/nren-services",i),d=Math.max(...r.selectedYears);let p,x,y,v,w,b,S,T,C,R,A,j,O;if(t[0]!==n||t[1]!==r||t[2]!==d||t[3]!==u||t[4]!==s||t[5]!==i||t[6]!==o){let W;t[20]!==n||t[21]!==r.selectedNrens||t[22]!==r.selectedYears?(W=K=>r.selectedYears.includes(K.year)&&r.selectedNrens.includes(K.nren)&&K.service_category==n,t[20]=n,t[21]=r.selectedNrens,t[22]=r.selectedYears,t[23]=W):W=t[23];const X=s.filter(W),te={};X.forEach(K=>{te[K.service_name]=K.service_description});const ne=Object.entries(te).sort(mB),_e=Ar(X,"service_name");let ye;t[24]!==o?(ye=[...o],t[24]=o,t[25]=ye):ye=t[25];let ce;t[26]!==u?(ce=u.values(),t[26]=u,t[27]=ce):ce=t[27];let Te;t[28]!==ce?(Te=[...ce],t[28]=ce,t[29]=Te):Te=t[29];let Ne;t[30]!==ye||t[31]!==Te?(Ne={availableYears:ye,availableNrens:Te},t[30]=ye,t[31]=Te,t[32]=Ne):Ne=t[32];let $e;t[33]!==r||t[34]!==i||t[35]!==Ne?($e=g.jsx(Ut,{filterOptions:Ne,filterSelection:r,setFilterSelection:i}),t[33]=r,t[34]=i,t[35]=Ne,t[36]=$e):$e=t[36];const Pe=$e;let et;t[37]!==o?(et=K=>o.has(K),t[37]=o,t[38]=et):et=t[38];const J=[...r.selectedYears.filter(et)].sort();y=Pt,C="NREN "+Co[n]+" services matrix",R=`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.`,A=ct.Services,j=Pe,O=X,w="nren_services",x=Ht,p=Xl,b="service-table",S=!0;let ie;t[39]===Symbol.for("react.memo_cache_sentinel")?(ie=g.jsx("th",{}),t[39]=ie):ie=t[39];const ee=g.jsxs("tr",{children:[ie,ne.map(hB)]});t[40]!==ee?(T=g.jsx("thead",{children:ee}),t[40]=ee,t[41]=T):T=t[41],v=Array.from(_e.entries()).map(K=>{const[xe,Fe]=K;return g.jsxs("tr",{children:[g.jsx("td",{className:"bold-text",children:xe}),ne.map((Ce,me)=>{const[oe]=Ce;return g.jsx("td",{children:Fe.has(oe)&&J.map(Be=>{const Xe=Fe.get(oe),rt=Xe.get(Be);return g.jsx(dB,{year:Be,active:Xe.has(Be),serviceInfo:rt,tickServiceIndex:me,current:Be==d},Be)})},oe)})]},xe)}),t[0]=n,t[1]=r,t[2]=d,t[3]=u,t[4]=s,t[5]=i,t[6]=o,t[7]=p,t[8]=x,t[9]=y,t[10]=v,t[11]=w,t[12]=b,t[13]=S,t[14]=T,t[15]=C,t[16]=R,t[17]=A,t[18]=j,t[19]=O}else p=t[7],x=t[8],y=t[9],v=t[10],w=t[11],b=t[12],S=t[13],T=t[14],C=t[15],R=t[16],A=t[17],j=t[18],O=t[19];let B;t[42]!==v?(B=g.jsx("tbody",{children:v}),t[42]=v,t[43]=B):B=t[43];let L;t[44]!==p||t[45]!==B||t[46]!==b||t[47]!==S||t[48]!==T?(L=g.jsxs(p,{className:b,bordered:S,children:[T,B]}),t[44]=p,t[45]=B,t[46]=b,t[47]=S,t[48]=T,t[49]=L):L=t[49];let I;t[50]!==x||t[51]!==L?(I=g.jsx(x,{children:L}),t[50]=x,t[51]=L,t[52]=I):I=t[52];let U;return t[53]!==y||t[54]!==w||t[55]!==I||t[56]!==C||t[57]!==R||t[58]!==A||t[59]!==j||t[60]!==O?(U=g.jsx(y,{title:C,description:R,category:A,filter:j,data:O,filename:w,children:I}),t[53]=y,t[54]=w,t[55]=I,t[56]=C,t[57]=R,t[58]=A,t[59]=j,t[60]=O,t[61]=U):U=t[61],U}function hB(e,t){const[n,r]=e;return g.jsx("th",{"data-description":r,className:`bottom-tooltip color-of-the-service-header-${t%13}`,children:n},n)}function mB(e,t){return e[0].toLowerCase()<t[0].toLowerCase()?-1:1}async function U2(){try{return await(await fetch("/api/survey/list")).json()}catch{return[]}}async function pB(){try{const t=await(await fetch("/api/survey/active/year")).json();return"year"in t?t.year.toString():(console.log("Invalid response format: Failed fetching active survey year."),"")}catch(e){return console.error("Failed fetching active survey year:",e),""}}const Ax=()=>{const e=Ke.c(4);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=g.jsx("h5",{className:"section-title",children:"Management Links"}),e[0]=t):t=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=g.jsx(gt,{to:"/survey",children:g.jsx("span",{children:"Survey Home"})}),e[1]=n):n=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=g.jsx(gt,{to:"/survey/admin/users",children:g.jsx("span",{children:"Compendium User Management"})}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for("react.memo_cache_sentinel")?(i=g.jsxs(nd,{survey:!0,children:[t,n,r,g.jsx(gt,{to:"/survey/admin/surveys",children:g.jsx("span",{children:"Compendium Survey Management"})})]}),e[3]=i):i=e[3],i},gB=()=>{const e=Ke.c(7),[t,n]=k.useState();let r,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{U2().then(d=>{n(d[0])})},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),k.useEffect(r,i);let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"(N)REN"}),g.jsx("th",{children:"Link"}),g.jsx("th",{children:"Survey Status"})]})}),e[2]=s):s=e[2];let o;e[3]!==t?(o=t&&t.responses.map(d=>g.jsxs("tr",{children:[g.jsx("td",{children:d.nren.name}),g.jsx("td",{children:g.jsx(lt,{to:`/survey/response/${t.year}/${d.nren.name}`,children:g.jsx("span",{children:"Navigate to survey"})})}),g.jsx("td",{children:d.status})]},d.nren.id)),e[3]=t,e[4]=o):o=e[4];let u;return e[5]!==o?(u=g.jsxs(Xl,{striped:!0,bordered:!0,responsive:!0,children:[s,g.jsx("tbody",{children:o})]}),e[5]=o,e[6]=u):u=e[6],u};function xB(){const e=Ke.c(37),{trackPageView:t}=Z1(),{user:n}=k.useContext(su),r=sx(),i=!!n.id,s=i?!!n.nrens.length:!1,o=s?n.nrens[0]:"",u=i?n.permissions.admin:!1,d=i?n.role==="observer":!1,[p,x]=k.useState(null);let y,v;e[0]!==t?(y=()=>{(async()=>{const Ne=await pB();x(Ne)})(),t({documentTitle:"GEANT Survey Landing Page"})},v=[t],e[0]=t,e[1]=y,e[2]=v):(y=e[1],v=e[2]),k.useEffect(y,v);let w;e[3]!==o||e[4]!==p||e[5]!==r?(w=()=>{try{return r(`/survey/response/${p}/${o}`),g.jsx("li",{children:"Redirecting to survey..."})}catch(Te){return console.error("Error navigating:",Te),null}},e[3]=o,e[4]=p,e[5]=r,e[6]=w):w=e[6];const b=w;let S;if(e[7]===Symbol.for("react.memo_cache_sentinel")){const Te=function(Pe,et,J){const ie=uo.decode_range(Pe["!ref"]??"");let ee=-1;for(let K=ie.s.c;K<=ie.e.c;K++){const xe=uo.encode_cell({r:ie.s.r,c:K}),Fe=Pe[xe];if(Fe&&typeof Fe.v=="string"&&Fe.v===et){ee=K;break}}if(ee===-1){console.error(`Column '${et}' not found.`);return}for(let K=ie.s.r+1;K<=ie.e.r;++K){const xe=uo.encode_cell({r:K,c:ee});Pe[xe]&&Pe[xe].t==="n"&&(Pe[xe].z=J)}},Ne=function(Pe){const et=uo.book_new();Pe.forEach(K=>{const xe=uo.json_to_sheet(K.data);K.meta&&Te(xe,K.meta.columnName,K.meta.format),uo.book_append_sheet(et,xe,K.name)});const J=Zy(et,{bookType:"xlsx",type:"binary"}),ie=new ArrayBuffer(J.length),ee=new Uint8Array(ie);for(let K=0;K<J.length;K++)ee[K]=J.charCodeAt(K)&255;return new Blob([ie],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})};S=function(){fetch("/api/data-download").then(yB).then(Pe=>{const et=Ne(Pe),J=document.createElement("a");J.href=URL.createObjectURL(et),J.download="data.xlsx",document.body.appendChild(J),J.click(),document.body.removeChild(J)}).catch(vB)},e[7]=S}else S=e[7];const T=S;let C;e[8]!==u?(C=u&&g.jsx(Ax,{}),e[8]=u,e[9]=C):C=e[9];let R;e[10]===Symbol.for("react.memo_cache_sentinel")?(R=g.jsx("h1",{className:"geant-header",children:"THE GÉANT COMPENDIUM OF NRENS SURVEY"}),e[10]=R):R=e[10];let A,j;e[11]===Symbol.for("react.memo_cache_sentinel")?(A={maxWidth:"75rem"},j={textAlign:"left"},e[11]=A,e[12]=j):(A=e[11],j=e[12]);let O;e[13]===Symbol.for("react.memo_cache_sentinel")?(O=g.jsx("br",{}),e[13]=O):O=e[13];let B;e[14]===Symbol.for("react.memo_cache_sentinel")?(B=g.jsx("a",{href:"/login",children:"here"}),e[14]=B):B=e[14];let L;e[15]===Symbol.for("react.memo_cache_sentinel")?(L=g.jsx("br",{}),e[15]=L):L=e[15];let I;e[16]===Symbol.for("react.memo_cache_sentinel")?(I=g.jsx("br",{}),e[16]=I):I=e[16];let U,W,X,te;e[17]===Symbol.for("react.memo_cache_sentinel")?(U=g.jsxs("p",{style:j,children:["Hello,",O,"Welcome to the GÉANT Compendium Survey. (N)REN Compendium administrators can login via Single Sign On (SSO) ",B,", 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.",L,"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.",I,"If you are not sure whether you are a Compendium Administrator for your (N)REN, please contact your GÉANT Partner Relations relationship manager.",g.jsx("br",{}),"Thank you."]}),W=g.jsx("span",{children:"Current registration status:"}),X=g.jsx("br",{}),te=g.jsx("br",{}),e[17]=U,e[18]=W,e[19]=X,e[20]=te):(U=e[17],W=e[18],X=e[19],te=e[20]);let ne;e[21]!==p||e[22]!==s||e[23]!==u||e[24]!==d||e[25]!==i||e[26]!==b?(ne=u?g.jsxs("ul",{children:[g.jsx("li",{children:g.jsx("span",{children:"You are logged in as a Compendium Administrator"})}),g.jsx("li",{children:g.jsxs("span",{children:["Click ",g.jsx(lt,{to:"/survey/admin/surveys",children:"here"})," to access the survey management page."]})}),g.jsx("li",{children:g.jsxs("span",{children:["Click ",g.jsx(lt,{to:"/survey/admin/users",children:"here"})," to access the user management page."]})}),g.jsx("li",{children:g.jsxs("span",{children:["Click ",g.jsx("a",{href:"#",onClick:T,children:"here"})," to do the full data download."]})})]}):g.jsxs("ul",{children:[p&&!u&&!d&&s&&b(),i?g.jsx("li",{children:g.jsx("span",{children:"You are logged in"})}):g.jsx("li",{children:g.jsx("span",{children:"You are not logged in"})}),i&&!d&&!s&&g.jsx("li",{children:g.jsx("span",{children:"Your access to the survey has not yet been approved"})}),i&&!d&&!s&&g.jsx("li",{children:g.jsx("span",{children:"Once you have been approved, you will immediately be directed to the relevant survey upon visiting this page"})}),i&&d&&g.jsx("li",{children:g.jsx("span",{children:"You have read-only access to the following surveys:"})})]}),e[21]=p,e[22]=s,e[23]=u,e[24]=d,e[25]=i,e[26]=b,e[27]=ne):ne=e[27];let _e;e[28]!==d||e[29]!==i?(_e=i&&d&&g.jsx(gB,{}),e[28]=d,e[29]=i,e[30]=_e):_e=e[30];let ye;e[31]!==ne||e[32]!==_e?(ye=g.jsx(la,{className:"py-5 grey-container",children:g.jsx(Cn,{children:g.jsxs("div",{className:"center-text",children:[R,g.jsxs("div",{className:"wordwrap pt-4",style:A,children:[U,W,X,te,ne,_e]})]})})}),e[31]=ne,e[32]=_e,e[33]=ye):ye=e[33];let ce;return e[34]!==ye||e[35]!==C?(ce=g.jsxs(g.Fragment,{children:[C,ye]}),e[34]=ye,e[35]=C,e[36]=ce):ce=e[36],ce}function vB(e){console.error("Error fetching data:",e)}function yB(e){if(!e.ok)throw new Error("Network response was not ok");return e.json()}let _B={data:""},wB=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||_B,EB=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,SB=/\/\*[^]*?\*\/|  +/g,xE=/\n+/g,bc=(e,t)=>{let n="",r="",i="";for(let s in e){let o=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+o+";":r+=s[1]=="f"?bc(o,s):s+"{"+bc(o,s[1]=="k"?"":t)+"}":typeof o=="object"?r+=bc(o,t?t.replace(/([^,])+/g,u=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,d=>/&/.test(d)?d.replace(/&/g,u):u?u+" "+d:d)):s):o!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=bc.p?bc.p(s,o):s+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},co={},vb=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+vb(e[n]);return t}return e},bB=(e,t,n,r,i)=>{let s=vb(e),o=co[s]||(co[s]=(d=>{let p=0,x=11;for(;p<d.length;)x=101*x+d.charCodeAt(p++)>>>0;return"go"+x})(s));if(!co[o]){let d=s!==e?e:(p=>{let x,y,v=[{}];for(;x=EB.exec(p.replace(SB,""));)x[4]?v.shift():x[3]?(y=x[3].replace(xE," ").trim(),v.unshift(v[0][y]=v[0][y]||{})):v[0][x[1]]=x[2].replace(xE," ").trim();return v[0]})(e);co[o]=bc(i?{["@keyframes "+o]:d}:d,n?"":"."+o)}let u=n&&co.g?co.g:null;return n&&(co.g=co[o]),((d,p,x,y)=>{y?p.data=p.data.replace(y,d):p.data.indexOf(d)===-1&&(p.data=x?d+p.data:p.data+d)})(co[o],t,r,u),o},TB=(e,t,n)=>e.reduce((r,i,s)=>{let o=t[s];if(o&&o.call){let u=o(n),d=u&&u.props&&u.props.className||/^go/.test(u)&&u;o=d?"."+d:u&&typeof u=="object"?u.props?"":bc(u,""):u===!1?"":u}return r+i+(o??"")},"");function Rx(e){let t=this||{},n=e.call?e(t.p):e;return bB(n.unshift?n.raw?TB(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,wB(t.target),t.g,t.o,t.k)}let yb,I2,Y2;Rx.bind({g:1});let So=Rx.bind({k:1});function NB(e,t,n,r){bc.p=t,yb=e,I2=n,Y2=r}function Ic(e,t){let n=this||{};return function(){let r=arguments;function i(s,o){let u=Object.assign({},s),d=u.className||i.className;n.p=Object.assign({theme:I2&&I2()},u),n.o=/ *go\d+/.test(d),u.className=Rx.apply(n,r)+(d?" "+d:"");let p=e;return e[0]&&(p=u.as||e,delete u.as),Y2&&p[0]&&Y2(u),yb(p,u)}return i}}var CB=e=>typeof e=="function",ax=(e,t)=>CB(e)?e(t):e,AB=(()=>{let e=0;return()=>(++e).toString()})(),_b=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),RB=20,wb=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,RB)};case 1:return{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:n}=t;return wb(e,{type:e.toasts.find(s=>s.id===n.id)?1:0,toast:n});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,dismissed:!0,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.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(s=>({...s,pauseDuration:s.pauseDuration+i}))}}},Rg=[],Og={toasts:[],pausedAt:void 0},hu=e=>{Og=wb(Og,e),Rg.forEach(t=>{t(Og)})},OB={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},DB=(e={})=>{let[t,n]=k.useState(Og);k.useEffect(()=>(Rg.push(n),()=>{let i=Rg.indexOf(n);i>-1&&Rg.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var s,o,u;return{...e,...e[i.type],...i,removeDelay:i.removeDelay||((s=e[i.type])==null?void 0:s.removeDelay)||(e==null?void 0:e.removeDelay),duration:i.duration||((o=e[i.type])==null?void 0:o.duration)||(e==null?void 0:e.duration)||OB[i.type],style:{...e.style,...(u=e[i.type])==null?void 0:u.style,...i.style}}});return{...t,toasts:r}},jB=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||AB()}),om=e=>(t,n)=>{let r=jB(t,e,n);return hu({type:2,toast:r}),r.id},Ha=(e,t)=>om("blank")(e,t);Ha.error=om("error");Ha.success=om("success");Ha.loading=om("loading");Ha.custom=om("custom");Ha.dismiss=e=>{hu({type:3,toastId:e})};Ha.remove=e=>hu({type:4,toastId:e});Ha.promise=(e,t,n)=>{let r=Ha.loading(t.loading,{...n,...n==null?void 0:n.loading});return typeof e=="function"&&(e=e()),e.then(i=>{let s=t.success?ax(t.success,i):void 0;return s?Ha.success(s,{id:r,...n,...n==null?void 0:n.success}):Ha.dismiss(r),i}).catch(i=>{let s=t.error?ax(t.error,i):void 0;s?Ha.error(s,{id:r,...n,...n==null?void 0:n.error}):Ha.dismiss(r)}),e};var kB=(e,t)=>{hu({type:1,toast:{id:e,height:t}})},FB=()=>{hu({type:5,time:Date.now()})},C1=new Map,LB=1e3,MB=(e,t=LB)=>{if(C1.has(e))return;let n=setTimeout(()=>{C1.delete(e),hu({type:4,toastId:e})},t);C1.set(e,n)},BB=e=>{let{toasts:t,pausedAt:n}=DB(e);k.useEffect(()=>{if(n)return;let s=Date.now(),o=t.map(u=>{if(u.duration===1/0)return;let d=(u.duration||0)+u.pauseDuration-(s-u.createdAt);if(d<0){u.visible&&Ha.dismiss(u.id);return}return setTimeout(()=>Ha.dismiss(u.id),d)});return()=>{o.forEach(u=>u&&clearTimeout(u))}},[t,n]);let r=k.useCallback(()=>{n&&hu({type:6,time:Date.now()})},[n]),i=k.useCallback((s,o)=>{let{reverseOrder:u=!1,gutter:d=8,defaultPosition:p}=o||{},x=t.filter(w=>(w.position||p)===(s.position||p)&&w.height),y=x.findIndex(w=>w.id===s.id),v=x.filter((w,b)=>b<y&&w.visible).length;return x.filter(w=>w.visible).slice(...u?[v+1]:[0,v]).reduce((w,b)=>w+(b.height||0)+d,0)},[t]);return k.useEffect(()=>{t.forEach(s=>{if(s.dismissed)MB(s.id,s.removeDelay);else{let o=C1.get(s.id);o&&(clearTimeout(o),C1.delete(s.id))}})},[t]),{toasts:t,handlers:{updateHeight:kB,startPause:FB,endPause:r,calculateOffset:i}}},PB=So`
-from {
-  transform: scale(0) rotate(45deg);
-	opacity: 0;
-}
-to {
- transform: scale(1) rotate(45deg);
-  opacity: 1;
-}`,UB=So`
-from {
-  transform: scale(0);
-  opacity: 0;
-}
-to {
-  transform: scale(1);
-  opacity: 1;
-}`,IB=So`
-from {
-  transform: scale(0) rotate(90deg);
-	opacity: 0;
-}
-to {
-  transform: scale(1) rotate(90deg);
-	opacity: 1;
-}`,YB=Ic("div")`
-  width: 20px;
-  opacity: 0;
-  height: 20px;
-  border-radius: 10px;
-  background: ${e=>e.primary||"#ff4b4b"};
-  position: relative;
-  transform: rotate(45deg);
-
-  animation: ${PB} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
-    forwards;
-  animation-delay: 100ms;
-
-  &:after,
-  &:before {
-    content: '';
-    animation: ${UB} 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: ${IB} 0.15s ease-out forwards;
-    animation-delay: 180ms;
-    transform: rotate(90deg);
-  }
-`,HB=So`
-  from {
-    transform: rotate(0deg);
-  }
-  to {
-    transform: rotate(360deg);
-  }
-`,$B=Ic("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: ${HB} 1s linear infinite;
-`,zB=So`
-from {
-  transform: scale(0) rotate(45deg);
-	opacity: 0;
-}
-to {
-  transform: scale(1) rotate(45deg);
-	opacity: 1;
-}`,GB=So`
-0% {
-	height: 0;
-	width: 0;
-	opacity: 0;
-}
-40% {
-  height: 0;
-	width: 6px;
-	opacity: 1;
-}
-100% {
-  opacity: 1;
-  height: 10px;
-}`,WB=Ic("div")`
-  width: 20px;
-  opacity: 0;
-  height: 20px;
-  border-radius: 10px;
-  background: ${e=>e.primary||"#61d345"};
-  position: relative;
-  transform: rotate(45deg);
-
-  animation: ${zB} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
-    forwards;
-  animation-delay: 100ms;
-  &:after {
-    content: '';
-    box-sizing: border-box;
-    animation: ${GB} 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;
-  }
-`,VB=Ic("div")`
-  position: absolute;
-`,XB=Ic("div")`
-  position: relative;
-  display: flex;
-  justify-content: center;
-  align-items: center;
-  min-width: 20px;
-  min-height: 20px;
-`,qB=So`
-from {
-  transform: scale(0.6);
-  opacity: 0.4;
-}
-to {
-  transform: scale(1);
-  opacity: 1;
-}`,KB=Ic("div")`
-  position: relative;
-  transform: scale(0.6);
-  opacity: 0.4;
-  min-width: 20px;
-  animation: ${qB} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
-    forwards;
-`,ZB=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?k.createElement(KB,null,t):t:n==="blank"?null:k.createElement(XB,null,k.createElement($B,{...r}),n!=="loading"&&k.createElement(VB,null,n==="error"?k.createElement(YB,{...r}):k.createElement(WB,{...r})))},QB=e=>`
-0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
-100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
-`,JB=e=>`
-0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
-100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
-`,eP="0%{opacity:0;} 100%{opacity:1;}",tP="0%{opacity:1;} 100%{opacity:0;}",nP=Ic("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;
-`,rP=Ic("div")`
-  display: flex;
-  justify-content: center;
-  margin: 4px 10px;
-  color: inherit;
-  flex: 1 1 auto;
-  white-space: pre-line;
-`,aP=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=_b()?[eP,tP]:[QB(n),JB(n)];return{animation:t?`${So(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${So(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},iP=k.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?aP(e.position||t||"top-center",e.visible):{opacity:0},s=k.createElement(ZB,{toast:e}),o=k.createElement(rP,{...e.ariaProps},ax(e.message,e));return k.createElement(nP,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:s,message:o}):k.createElement(k.Fragment,null,s,o))});NB(k.createElement);var lP=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let s=k.useCallback(o=>{if(o){let u=()=>{let d=o.getBoundingClientRect().height;r(e,d)};u(),new MutationObserver(u).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return k.createElement("div",{ref:s,className:t,style:n},i)},sP=(e,t)=>{let n=e.includes("top"),r=n?{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:_b()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},oP=Rx`
-  z-index: 9999;
-  > * {
-    pointer-events: auto;
-  }
-`,Sg=16,t_=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:s,containerClassName:o})=>{let{toasts:u,handlers:d}=BB(n);return k.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:Sg,left:Sg,right:Sg,bottom:Sg,pointerEvents:"none",...s},className:o,onMouseEnter:d.startPause,onMouseLeave:d.endPause},u.map(p=>{let x=p.position||t,y=d.calculateOffset(p,{reverseOrder:e,gutter:r,defaultPosition:t}),v=sP(x,y);return k.createElement(lP,{id:p.id,key:p.id,onHeightUpdate:d.updateHeight,className:p.visible?oP:"",style:v},p.type==="custom"?ax(p.message,p):i?i(p):k.createElement(iP,{toast:p,position:x}))}))},or=Ha,Kf=nT(),cP=rT(),Q0=(e=>(e.Unverified="unverified",e.Verified="verified",e.Edited="edited",e))(Q0||{}),Hl=(e=>(e.closed="closed",e.open="open",e.preview="preview",e.published="published",e))(Hl||{});function vE(e,t){var n,r;if(t.column.indexValue==0&&"item"in t.row){const i=t.row.item;i.customDescription!==void 0&&((n=t.htmlElement.parentElement)==null||n.children[0].children[0].setAttribute("description",i.customDescription),(r=t.htmlElement.parentElement)==null||r.children[0].children[0].classList.add("survey-tooltip"))}}function yE(e,t){if(t.question.hideCheckboxLabels){const n=t.cssClasses;n.root+=" hidden-checkbox-labels"}}function fP(e,t){var i;const n='[data-name="'+t.question.name+'"]',r=(i=document.querySelector(n))==null?void 0:i.querySelector("h5");r&&!r.classList.contains("sv-header-flex")&&t.question.updateElementCss()}function _E(e,t){if(t.name!=="description")return;let n=t.text;if(!n.length)return;const r=["e.g.","i.e.","etc.","vs."];for(const u of r)n.includes(u)&&(n=n.replace(u,u.slice(0,-1)));const i=n.split(". ");for(let u=0;u<i.length;u++)if(i[u].length!=0)for(const d of r)i[u].includes(d.slice(0,-1))&&(i[u]=i[u].replace(d.slice(0,-1),d));const s=u=>u.includes("*")?u.split("*").map((d,p)=>p==0?d:p==1?`<ul><li>${d}</li>`:`<li>${d}</li>`).join("")+"</ul>":u.endsWith(".")?u:u+".",o=i.map(u=>u.length?`<p>${s(u)}</p>`:null).join("");t.html=o}function uP(e){var o;const t=!!e.visibleIf,n='[data-name="'+e.name+'"]',r=document.querySelector(n),i=r==null?void 0:r.querySelector("h5");if(t){r.style.display="none";return}i&&(i.style.textDecoration="line-through");const s=(o=document.querySelector(n))==null?void 0:o.querySelector(".sv-question__content");s&&(s.style.display="none")}function H2(e,t,n){var u;n.verificationStatus.set(e.name,t);const r=document.createElement("button");r.type="button",r.className="sv-action-bar-item verification",r.innerHTML=t,t==Q0.Unverified?(r.innerHTML="No change from previous year",r.className+=" verification-required",r.onclick=function(){n.mode!="display"&&(e.validate(),H2(e,Q0.Verified,n))}):(r.innerHTML="Answer updated",r.className+=" verification-ok");const i='[data-name="'+e.name+'"]',s=(u=document.querySelector(i))==null?void 0:u.querySelector("h5"),o=s==null?void 0:s.querySelector(".verification");o?o.replaceWith(r):s==null||s.appendChild(r)}function dP(e){const t=Ke.c(2),{surveyModel:n}=e,r=(o,u)=>{var x;const d=n.verificationStatus.get(u.question.name),p=(x=u.question)==null?void 0:x.readOnly;d&&!p?H2(u.question,d,n):p&&uP(u.question)},i=(o,u)=>{n.verificationStatus.get(u.question.name)==Q0.Unverified&&H2(u.question,Q0.Edited,n)};n.onAfterRenderQuestion.hasFunc(r)||(n.onAfterRenderQuestion.add(r),n.onAfterRenderQuestion.add(fP)),n.onValueChanged.hasFunc(i)||n.onValueChanged.add(i),n.onUpdateQuestionCssClasses.hasFunc(yE)||n.onUpdateQuestionCssClasses.add(yE),n.onMatrixAfterCellRender.hasFunc(vE)||n.onMatrixAfterCellRender.add(vE),n.onTextMarkdown.hasFunc(_E)||n.onTextMarkdown.add(_E);let s;return t[0]!==n?(s=g.jsx(cP.Survey,{model:n}),t[0]=n,t[1]=s):s=t[1],s}function hP(e){const t=Ke.c(14),{surveyModel:n,pageNoSetter:r}=e;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=[],t[0]=i):i=t[0];const[s,o]=k.useState(i),u=pP;let d,p;t[1]!==n?(d=()=>{const b=S=>{if(S&&S.pages){const T=[];S.pages.forEach(C=>{const R=C.questions.filter(mP),A=R.length,j=R.filter(u).length,O=A-j,B=j/A;T.push({completionPercentage:B*100,unansweredPercentage:O/A*100,totalPages:S.pages.length,pageTitle:C.title})}),o(T)}};n.onValueChanged.add(S=>{b(S)}),b(n)},p=[n],t[1]=n,t[2]=d,t[3]=p):(d=t[2],p=t[3]),k.useEffect(d,p);let x;t[4]===Symbol.for("react.memo_cache_sentinel")?(x={height:"0.5rem",transition:"width 0.3s ease"},t[4]=x):x=t[4];const y=x;let v;if(t[5]!==r||t[6]!==s||t[7]!==n.currentPageNo){let b;t[9]!==r||t[10]!==n.currentPageNo?(b=(S,T)=>g.jsx(Qn,{xs:12,md:!0,onClick:()=>r(T),style:{cursor:"pointer",margin:"0.5rem"},children:g.jsxs("div",{children:[g.jsx("span",{style:{whiteSpace:"nowrap",fontSize:"1.5rem",marginRight:"0.25rem",fontWeight:"bold",color:"#2db394"},children:T+1}),g.jsx("span",{style:{whiteSpace:"nowrap",...n.currentPageNo==T&&{fontWeight:"bold"}},children:S.pageTitle}),g.jsxs("div",{style:{display:"flex",flexWrap:"wrap"},children:[g.jsx("div",{style:{...y,width:`${S.completionPercentage}%`,backgroundColor:"#262261"}}),g.jsx("div",{style:{...y,width:`${S.unansweredPercentage}%`,backgroundColor:"#cdcdcd"}})]})]})},T),t[9]=r,t[10]=n.currentPageNo,t[11]=b):b=t[11],v=s.map(b),t[5]=r,t[6]=s,t[7]=n.currentPageNo,t[8]=v}else v=t[8];let w;return t[12]!==v?(w=g.jsx(la,{className:"survey-progress",children:g.jsx(Cn,{children:v})}),t[12]=v,t[13]=w):w=t[13],w}function mP(e){return e.startWithNewLine}function pP(e){return!(e.value===null||e.value===void 0||e.value===""||e.getType()==="checkbox"&&e.value.length==0||e.getType()==="multipletext"&&(Object.keys(e.value).length===1&&Object.values(e.value)[0]===void 0||Object.keys(e.value).length===0))}function gP(e){const t=Ke.c(86),{surveyModel:n,surveyActions:r,year:i,nren:s,children:o,onPageChange:u}=e,[d,p]=k.useState(0),[x,y]=k.useState(!1),[v,w]=k.useState(""),[b,S]=k.useState(""),{user:T}=k.useContext(su);let C;t[0]!==n.currentPageNo||t[1]!==n.lockedBy||t[2]!==n.mode||t[3]!==n.status?(C=()=>{y(n.mode=="edit"),w(n.lockedBy),p(n.currentPageNo),S(n.status)},t[0]=n.currentPageNo,t[1]=n.lockedBy,t[2]=n.mode,t[3]=n.status,t[4]=C):C=t[4];const R=C;let A,j;t[5]!==R?(A=()=>{R()},j=[R],t[5]=R,t[6]=A,t[7]=j):(A=t[6],j=t[7]),k.useEffect(A,j);let O;t[8]!==u?(O=Pe=>{p(Pe),u(Pe)},t[8]=u,t[9]=O):O=t[9];const B=O;let L;t[10]!==B||t[11]!==n.currentPageNo?(L=()=>{B(n.currentPageNo+1)},t[10]=B,t[11]=n.currentPageNo,t[12]=L):L=t[12];const I=L;let U;t[13]!==R||t[14]!==r?(U=async Pe=>{await r[Pe](),R()},t[13]=R,t[14]=r,t[15]=U):U=t[15];const W=U;let X,te,ne,_e,ye,ce,Te;if(t[16]!==o||t[17]!==W||t[18]!==x||t[19]!==I||t[20]!==v||t[21]!==T||t[22]!==s||t[23]!==d||t[24]!==B||t[25]!==b||t[26]!==n||t[27]!==i){const Pe=(tn,gn)=>et(tn,()=>W(gn)),et=xP,J=()=>g.jsxs("div",{className:"survey-edit-buttons-block",children:[!x&&!v&&n.editAllowed&&Pe("Start editing","startEdit"),!x&&v&&v==T.name&&Pe("Discard any unsaved changes and release your lock","releaseLock"),x&&Pe("Save progress","save"),x&&Pe("Save and stop editing","saveAndStopEdit"),x&&Pe("Complete Survey","complete"),d!==n.visiblePages.length-1&&et("Next Section",I)]});te=la;let ie;t[35]!==i?(ie=g.jsxs("span",{className:"survey-title",children:[i," Compendium Survey "]}),t[35]=i,t[36]=ie):ie=t[36];let ee;t[37]!==s?(ee=g.jsxs("span",{className:"survey-title-nren",children:[" ",s," "]}),t[37]=s,t[38]=ee):ee=t[38];let K;t[39]!==b?(K=g.jsxs("span",{children:[" - ",b]}),t[39]=b,t[40]=K):K=t[40];let xe;t[41]!==ie||t[42]!==ee||t[43]!==K?(xe=g.jsxs("h2",{children:[ie,ee,K]}),t[41]=ie,t[42]=ee,t[43]=K,t[44]=xe):xe=t[44];let Fe,Ce;t[45]===Symbol.for("react.memo_cache_sentinel")?(Fe={marginTop:"1rem",textAlign:"justify"},Ce=g.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."]}),t[45]=Fe,t[46]=Ce):(Fe=t[45],Ce=t[46]);let me;t[47]!==i?(me=g.jsxs("p",{children:[g.jsxs("b",{children:["In a small change, the survey now asks about this calendar year, i.e. ",i]})," (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."]}),t[47]=i,t[48]=me):me=t[48];let oe,Be;t[49]===Symbol.for("react.memo_cache_sentinel")?(oe=g.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."]}),Be=g.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."}),t[49]=oe,t[50]=Be):(oe=t[49],Be=t[50]);let Xe;t[51]!==me?(Xe=g.jsxs("div",{style:Fe,children:[Ce,me,oe,Be]}),t[51]=me,t[52]=Xe):Xe=t[52];let rt;t[53]===Symbol.for("react.memo_cache_sentinel")?(rt=g.jsx("a",{href:"mailto:Partner-Relations@geant.org",children:g.jsx("span",{children:"Partner-Relations@geant.org"})}),t[53]=rt):rt=t[53];let Qe;t[54]!==i?(Qe=g.jsxs("p",{children:["Thank you for taking the time to fill in the ",i," Compendium Survey. Any questions or requests can be sent to ",rt]}),t[54]=i,t[55]=Qe):Qe=t[55];let ft;t[56]!==x?(ft=x&&g.jsxs(g.Fragment,{children:[g.jsx("br",{}),g.jsxs("b",{children:["Remember to click “","Save and stop editing","” before leaving the page."]})]}),t[56]=x,t[57]=ft):ft=t[57],t[58]!==xe||t[59]!==Xe||t[60]!==Qe||t[61]!==ft?(ce=g.jsxs(Cn,{className:"survey-content",children:[xe,Xe,Qe,ft]}),t[58]=xe,t[59]=Xe,t[60]=Qe,t[61]=ft,t[62]=ce):ce=t[62],Te=g.jsx(Cn,{children:J()});let xt;t[63]!==x||t[64]!==v||t[65]!==T||t[66]!==n.editAllowed?(xt=!x&&g.jsxs("div",{className:"survey-edit-explainer",children:[!v&&n.editAllowed&&"The survey is in read-only mode; click the “Start editing“ button to begin editing the answers.",!v&&!n.editAllowed&&"The survey is in read-only mode and can not be edited by you.",v&&v!=T.name&&"The survey is in read-only mode and currently being edited by: "+v+". To start editing the survey, ask them to complete their edits.",v&&v==T.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.']}),t[63]=x,t[64]=v,t[65]=T,t[66]=n.editAllowed,t[67]=xt):xt=t[67],t[68]!==xt?(ne=g.jsx(Cn,{className:"survey-content",children:xt}),t[68]=xt,t[69]=ne):ne=t[69];let We;t[70]!==B||t[71]!==n?(We=g.jsx(hP,{surveyModel:n,pageNoSetter:B}),t[70]=B,t[71]=n,t[72]=We):We=t[72],t[73]!==o||t[74]!==We?(_e=g.jsxs(Cn,{children:[We,o]}),t[73]=o,t[74]=We,t[75]=_e):_e=t[75],X=Cn,ye=J(),t[16]=o,t[17]=W,t[18]=x,t[19]=I,t[20]=v,t[21]=T,t[22]=s,t[23]=d,t[24]=B,t[25]=b,t[26]=n,t[27]=i,t[28]=X,t[29]=te,t[30]=ne,t[31]=_e,t[32]=ye,t[33]=ce,t[34]=Te}else X=t[28],te=t[29],ne=t[30],_e=t[31],ye=t[32],ce=t[33],Te=t[34];let Ne;t[76]!==X||t[77]!==ye?(Ne=g.jsx(X,{children:ye}),t[76]=X,t[77]=ye,t[78]=Ne):Ne=t[78];let $e;return t[79]!==te||t[80]!==ne||t[81]!==_e||t[82]!==Ne||t[83]!==ce||t[84]!==Te?($e=g.jsxs(te,{children:[ce,Te,ne,_e,Ne]}),t[79]=te,t[80]=ne,t[81]=_e,t[82]=Ne,t[83]=ce,t[84]=Te,t[85]=$e):$e=t[85],$e}function xP(e,t){return g.jsx("button",{className:"sv-btn sv-btn--navigation",onClick:t,children:e})}function vP(e){const t=Ke.c(5),n=e.when,r=e.onPageExit;let i;t[0]!==n||t[1]!==r||t[2]!==e.message?(i=()=>{if(n()){const o=window.confirm(e.message);return o&&r(),!o}return!1},t[0]=n,t[1]=r,t[2]=e.message,t[3]=i):i=t[3],AN(i);let s;return t[4]===Symbol.for("react.memo_cache_sentinel")?(s=g.jsx("div",{}),t[4]=s):s=t[4],s}function yP(e,t=!1){if(!t&&(e==null||e==null||e==""))return!0;try{return e=e.trim(),e.includes(" ")?!1:(e.includes(":/")||(e="https://"+e),!!new URL(e))}catch{return!1}}const _P={validateWebsiteUrl:yP},wP={data_protection_contact:(...e)=>!0};function EP(e){let t=e[0];if(t==null||t==null||t=="")return!0;try{return t=t.trim(),t.includes(" ")?!1:(t.includes(":/")||(t="https://"+t),!!new URL(t))}catch{return!1}}function SP(e){try{const t=this.question,n=e[0]||void 0,r=t.data&&"name"in t.data;let i;r?i=t.data.name:i=t.name;const s=t.value,o=wP[i];if(o)return o(s,...e.slice(1));const u=_P[n];if(!u)throw new Error(`Validation function ${n} not found for question ${i}`);return u(s,...e.slice(1))}catch(t){return console.error(t),!1}}Kf.Serializer.addProperty("itemvalue","customDescription:text");Kf.Serializer.addProperty("question","hideCheckboxLabels:boolean");function _2({loadFrom:e}){const[t,n]=k.useState(),{year:r,nren:i}=xN(),[s,o]=k.useState("loading survey..."),{user:u}=k.useContext(su),p=!!u.id?u.permissions.admin:!1;Kf.FunctionFactory.Instance.hasFunction("validateQuestion")||Kf.FunctionFactory.Instance.register("validateQuestion",SP),Kf.FunctionFactory.Instance.hasFunction("validateWebsiteUrl")||Kf.FunctionFactory.Instance.register("validateWebsiteUrl",EP);const{trackPageView:x}=Z1(),y=k.useCallback(R=>(R.preventDefault(),R.returnValue=""),[]),v=k.useCallback(()=>{window.navigator.sendBeacon("/api/response/unlock/"+r+"/"+i)},[]),w=k.useCallback(()=>{window.navigator.sendBeacon("/api/response/unlock/"+r+"/"+i),removeEventListener("beforeunload",y,{capture:!0}),removeEventListener("pagehide",v)},[]);if(k.useEffect(()=>{async function R(){const A=await fetch(e+r+(i?"/"+i:"")),j=await A.json();if(!A.ok)throw"message"in j?new Error(j.message):new Error(`Request failed with status ${A.status}`);const O=new Kf.Model(j.model);O.setVariable("surveyyear",r),O.setVariable("previousyear",parseInt(r)-1),O.showNavigationButtons=!1,O.requiredText="",O.verificationStatus=new Map;for(const B in j.verification_status)O.verificationStatus.set(B,j.verification_status[B]);O.data=j.data,O.clearIncorrectValues(!0),O.currentPageNo=j.page,O.mode=j.mode,O.lockedBy=j.locked_by,O.status=j.status,O.editAllowed=j.edit_allowed,n(O)}R().catch(A=>o("Error when loading survey: "+A.message)).then(()=>{x({documentTitle:`Survey for ${i} (${r})`})})},[]),!t)return s;const b=async(R,A)=>{if(!i)return"Saving not available in inpect/try mode";const j={lock_uuid:R.lockUUID,new_state:A,data:R.data,page:R.currentPageNo,verification_status:Object.fromEntries(R.verificationStatus)};try{const O=await fetch("/api/response/save/"+r+"/"+i,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(j)}),B=await O.json();if(!O.ok)return B.message;t.mode=B.mode,t.lockedBy=B.locked_by,t.status=B.status}catch(O){return"Unknown Error: "+O.message}},S=(R,A=!0)=>{let j="";const O=(L,I)=>{L.verificationStatus.get(I.name)==Q0.Unverified&&(j==""&&(j=I.name),I.error='Please verify that last years data is correct by editing the answer or pressing the "No change from previous year" button!')};A&&t.onValidateQuestion.add(O);const B=R();return A&&t.onValidateQuestion.remove(O),B||or("Validation failed!"),B},T={save:async()=>{if(!S(t.validate.bind(t,!0,!0),!1)){or("Please correct the invalid fields before saving!");return}const A=await b(t,"editing");or(A?"Failed saving survey: "+A:"Survey saved!")},complete:async()=>{if(S(t.validate.bind(t,!0,!0))){const A=await b(t,"completed");A?or("Failed completing survey: "+A):(or("Survey completed!"),removeEventListener("beforeunload",y,{capture:!0}),removeEventListener("pagehide",v))}},saveAndStopEdit:async()=>{if(!S(t.validate.bind(t,!0,!0),!1)){or("Please correct the invalid fields before saving.");return}const A=await b(t,"readonly");A?or("Failed saving survey: "+A):(or("Survey saved!"),removeEventListener("beforeunload",y,{capture:!0}),removeEventListener("pagehide",v))},startEdit:async()=>{const R=await fetch("/api/response/lock/"+r+"/"+i,{method:"POST"}),A=await R.json();if(!R.ok){or("Failed starting edit: "+A.message);return}addEventListener("pagehide",v),addEventListener("beforeunload",y,{capture:!0});for(const O in A.verification_status)t.verificationStatus.set(O,A.verification_status[O]);if(t.data=A.data,t.clearIncorrectValues(!0),t.mode=A.mode,t.lockedBy=A.locked_by,t.lockUUID=A.lock_uuid,t.status=A.status,!S(t.validate.bind(t,!0,!0),!1)){or("Some fields are invalid, please correct them.");return}},releaseLock:async()=>{const R=await fetch("/api/response/unlock/"+r+"/"+i,{method:"POST"}),A=await R.json();if(!R.ok){or("Failed releasing lock: "+A.message);return}t.mode=A.mode,t.lockedBy=A.locked_by,t.status=A.status},validatePage:()=>{S(t.validatePage.bind(t))&&or("Page validation successful!")}};t.css.question.title.includes("sv-header-flex")||(t.css.question.title="sv-title sv-question__title sv-header-flex",t.css.question.titleOnError="sv-question__title--error sv-error-color-fix");const C=R=>{t.currentPageNo=R};return g.jsxs(g.Fragment,{children:[p?g.jsx(Ax,{}):null,g.jsxs(la,{className:"survey-container",children:[g.jsx(t_,{}),g.jsx(vP,{message:"Are you sure you want to leave this page? Information you've entered may not be saved.",when:()=>t.mode=="edit"&&!!i,onPageExit:w}),g.jsx(gP,{onPageChange:C,surveyModel:t,surveyActions:T,year:r,nren:i,children:g.jsx(dP,{surveyModel:t})})]})]})}function bP(e){return To({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 TP(e){return To({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 NP(e){return To({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 CP(e){return To({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 AP(e){const t=Ke.c(2),{status:n}=e;let r;return t[0]!==n?(r={completed:g.jsx(TP,{title:n,size:24,color:"green"}),started:g.jsx(bP,{title:n,size:24,color:"rgb(217, 117, 10)"}),"did not respond":g.jsx(CP,{title:n,size:24,color:"red"}),"not started":g.jsx(NP,{title:n,size:24})},t[0]=n,t[1]=r):r=t[1],r[n]||n}var x1={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 RP=x1.exports,wE;function OP(){return wE||(wE=1,function(e,t){(function(){var n,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",u="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,x="__lodash_placeholder__",y=1,v=2,w=4,b=1,S=2,T=1,C=2,R=4,A=8,j=16,O=32,B=64,L=128,I=256,U=512,W=30,X="...",te=800,ne=16,_e=1,ye=2,ce=3,Te=1/0,Ne=9007199254740991,$e=17976931348623157e292,Pe=NaN,et=4294967295,J=et-1,ie=et>>>1,ee=[["ary",L],["bind",T],["bindKey",C],["curry",A],["curryRight",j],["flip",U],["partial",O],["partialRight",B],["rearg",I]],K="[object Arguments]",xe="[object Array]",Fe="[object AsyncFunction]",Ce="[object Boolean]",me="[object Date]",oe="[object DOMException]",Be="[object Error]",Xe="[object Function]",rt="[object GeneratorFunction]",Qe="[object Map]",ft="[object Number]",xt="[object Null]",We="[object Object]",tn="[object Promise]",gn="[object Proxy]",Jt="[object RegExp]",Bt="[object Set]",An="[object String]",Rn="[object Symbol]",$t="[object Undefined]",cn="[object WeakMap]",yt="[object WeakSet]",dn="[object ArrayBuffer]",nn="[object DataView]",Lr="[object Float32Array]",Yn="[object Float64Array]",Er="[object Int8Array]",Sr="[object Int16Array]",er="[object Int32Array]",En="[object Uint8Array]",br="[object Uint8ClampedArray]",Pn="[object Uint16Array]",ut="[object Uint32Array]",tr=/\b__p \+= '';/g,_a=/\b(__p \+=) '' \+/g,Ga=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ca=/&(?:amp|lt|gt|quot|#39);/g,Wr=/[&<>"']/g,nr=RegExp(ca.source),Mr=RegExp(Wr.source),fa=/<%-([\s\S]+?)%>/g,Ui=/<%([\s\S]+?)%>/g,le=/<%=([\s\S]+?)%>/g,ve=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,De=/^\w*$/,Ge=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,st=/[\\^$.*+?()[\]{}|]/g,vt=RegExp(st.source),Nt=/^\s+/,ht=/\s/,pt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,M=/\{\n\/\* \[wrapped with (.+)\] \*/,V=/,? & /,Y=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,G=/[()=,{}\[\]\/\s]/,Z=/\\(\\)?/g,Q=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,Re=/^[-+]0x[0-9a-f]+$/i,we=/^0b[01]+$/i,Ee=/^\[object .+?Constructor\]$/,Se=/^0o[0-7]+$/i,Ie=/^(?:0|[1-9]\d*)$/,tt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,at=/($^)/,qe=/['\n\r\u2028\u2029\\]/g,Je="\\ud800-\\udfff",Ct="\\u0300-\\u036f",Tt="\\ufe20-\\ufe2f",Ot="\\u20d0-\\u20ff",Sn=Ct+Tt+Ot,rr="\\u2700-\\u27bf",bn="a-z\\xdf-\\xf6\\xf8-\\xff",Vr="\\xac\\xb1\\xd7\\xf7",wa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Bs="\\u2000-\\u206f",ua=" \\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",Yc="A-Z\\xc0-\\xd6\\xd8-\\xde",Ii="\\ufe0e\\ufe0f",Ea=Vr+wa+Bs+ua,mu="['’]",Ox="["+Je+"]",Hc="["+Ea+"]",$c="["+Sn+"]",zc="\\d+",Dx="["+rr+"]",Sa="["+bn+"]",pu="[^"+Je+Ea+zc+rr+bn+Yc+"]",gu="\\ud83c[\\udffb-\\udfff]",sd="(?:"+$c+"|"+gu+")",Ps="[^"+Je+"]",xu="(?:\\ud83c[\\udde6-\\uddff]){2}",vu="[\\ud800-\\udbff][\\udc00-\\udfff]",fi="["+Yc+"]",cm="\\u200d",od="(?:"+Sa+"|"+pu+")",fm="(?:"+fi+"|"+pu+")",yu="(?:"+mu+"(?:d|ll|m|re|s|t|ve))?",um="(?:"+mu+"(?:D|LL|M|RE|S|T|VE))?",dm=sd+"?",Gc="["+Ii+"]?",cd="(?:"+cm+"(?:"+[Ps,xu,vu].join("|")+")"+Gc+dm+")*",fd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ao="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Us=Gc+dm+cd,hm="(?:"+[Dx,xu,vu].join("|")+")"+Us,ud="(?:"+[Ps+$c+"?",$c,xu,vu,Ox].join("|")+")",mm=RegExp(mu,"g"),Wc=RegExp($c,"g"),Vc=RegExp(gu+"(?="+gu+")|"+ud+Us,"g"),Xc=RegExp([fi+"?"+Sa+"+"+yu+"(?="+[Hc,fi,"$"].join("|")+")",fm+"+"+um+"(?="+[Hc,fi+od,"$"].join("|")+")",fi+"?"+od+"+"+yu,fi+"+"+um,Ao,fd,zc,hm].join("|"),"g"),Kl=RegExp("["+cm+Je+Sn+Ii+"]"),dd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_u=["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"],pm=-1,On={};On[Lr]=On[Yn]=On[Er]=On[Sr]=On[er]=On[En]=On[br]=On[Pn]=On[ut]=!0,On[K]=On[xe]=On[dn]=On[Ce]=On[nn]=On[me]=On[Be]=On[Xe]=On[Qe]=On[ft]=On[We]=On[Jt]=On[Bt]=On[An]=On[cn]=!1;var Tn={};Tn[K]=Tn[xe]=Tn[dn]=Tn[nn]=Tn[Ce]=Tn[me]=Tn[Lr]=Tn[Yn]=Tn[Er]=Tn[Sr]=Tn[er]=Tn[Qe]=Tn[ft]=Tn[We]=Tn[Jt]=Tn[Bt]=Tn[An]=Tn[Rn]=Tn[En]=Tn[br]=Tn[Pn]=Tn[ut]=!0,Tn[Be]=Tn[Xe]=Tn[cn]=!1;var gm={À:"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"},da={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Is={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},wu={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qc=parseFloat,jx=parseInt,Eu=typeof og=="object"&&og&&og.Object===Object&&og,hd=typeof self=="object"&&self&&self.Object===Object&&self,cr=Eu||hd||Function("return this")(),Ro=t&&!t.nodeType&&t,Zl=Ro&&!0&&e&&!e.nodeType&&e,xm=Zl&&Zl.exports===Ro,md=xm&&Eu.process,Wa=function(){try{var de=Zl&&Zl.require&&Zl.require("util").types;return de||md&&md.binding&&md.binding("util")}catch{}}(),Su=Wa&&Wa.isArrayBuffer,vm=Wa&&Wa.isDate,ym=Wa&&Wa.isMap,_m=Wa&&Wa.isRegExp,wm=Wa&&Wa.isSet,Em=Wa&&Wa.isTypedArray;function ha(de,je,Oe){switch(Oe.length){case 0:return de.call(je);case 1:return de.call(je,Oe[0]);case 2:return de.call(je,Oe[0],Oe[1]);case 3:return de.call(je,Oe[0],Oe[1],Oe[2])}return de.apply(je,Oe)}function kx(de,je,Oe,dt){for(var At=-1,rn=de==null?0:de.length;++At<rn;){var fr=de[At];je(dt,fr,Oe(fr),de)}return dt}function Va(de,je){for(var Oe=-1,dt=de==null?0:de.length;++Oe<dt&&je(de[Oe],Oe,de)!==!1;);return de}function Fx(de,je){for(var Oe=de==null?0:de.length;Oe--&&je(de[Oe],Oe,de)!==!1;);return de}function Sm(de,je){for(var Oe=-1,dt=de==null?0:de.length;++Oe<dt;)if(!je(de[Oe],Oe,de))return!1;return!0}function Yi(de,je){for(var Oe=-1,dt=de==null?0:de.length,At=0,rn=[];++Oe<dt;){var fr=de[Oe];je(fr,Oe,de)&&(rn[At++]=fr)}return rn}function bu(de,je){var Oe=de==null?0:de.length;return!!Oe&&Oo(de,je,0)>-1}function pd(de,je,Oe){for(var dt=-1,At=de==null?0:de.length;++dt<At;)if(Oe(je,de[dt]))return!0;return!1}function $n(de,je){for(var Oe=-1,dt=de==null?0:de.length,At=Array(dt);++Oe<dt;)At[Oe]=je(de[Oe],Oe,de);return At}function pl(de,je){for(var Oe=-1,dt=je.length,At=de.length;++Oe<dt;)de[At+Oe]=je[Oe];return de}function gd(de,je,Oe,dt){var At=-1,rn=de==null?0:de.length;for(dt&&rn&&(Oe=de[++At]);++At<rn;)Oe=je(Oe,de[At],At,de);return Oe}function Lx(de,je,Oe,dt){var At=de==null?0:de.length;for(dt&&At&&(Oe=de[--At]);At--;)Oe=je(Oe,de[At],At,de);return Oe}function xd(de,je){for(var Oe=-1,dt=de==null?0:de.length;++Oe<dt;)if(je(de[Oe],Oe,de))return!0;return!1}var Mx=Nu("length");function Bx(de){return de.split("")}function Px(de){return de.match(Y)||[]}function bm(de,je,Oe){var dt;return Oe(de,function(At,rn,fr){if(je(At,rn,fr))return dt=rn,!1}),dt}function Tu(de,je,Oe,dt){for(var At=de.length,rn=Oe+(dt?1:-1);dt?rn--:++rn<At;)if(je(de[rn],rn,de))return rn;return-1}function Oo(de,je,Oe){return je===je?Hx(de,je,Oe):Tu(de,Do,Oe)}function vd(de,je,Oe,dt){for(var At=Oe-1,rn=de.length;++At<rn;)if(dt(de[At],je))return At;return-1}function Do(de){return de!==de}function Tm(de,je){var Oe=de==null?0:de.length;return Oe?Au(de,je)/Oe:Pe}function Nu(de){return function(je){return je==null?n:je[de]}}function Cu(de){return function(je){return de==null?n:de[je]}}function yd(de,je,Oe,dt,At){return At(de,function(rn,fr,Dn){Oe=dt?(dt=!1,rn):je(Oe,rn,fr,Dn)}),Oe}function Nm(de,je){var Oe=de.length;for(de.sort(je);Oe--;)de[Oe]=de[Oe].value;return de}function Au(de,je){for(var Oe,dt=-1,At=de.length;++dt<At;){var rn=je(de[dt]);rn!==n&&(Oe=Oe===n?rn:Oe+rn)}return Oe}function Ql(de,je){for(var Oe=-1,dt=Array(de);++Oe<de;)dt[Oe]=je(Oe);return dt}function Ux(de,je){return $n(je,function(Oe){return[Oe,de[Oe]]})}function Cm(de){return de&&de.slice(0,wd(de)+1).replace(Nt,"")}function ba(de){return function(je){return de(je)}}function Ru(de,je){return $n(je,function(Oe){return de[Oe]})}function jo(de,je){return de.has(je)}function ko(de,je){for(var Oe=-1,dt=de.length;++Oe<dt&&Oo(je,de[Oe],0)>-1;);return Oe}function Fo(de,je){for(var Oe=de.length;Oe--&&Oo(je,de[Oe],0)>-1;);return Oe}function Ix(de,je){for(var Oe=de.length,dt=0;Oe--;)de[Oe]===je&&++dt;return dt}var Ou=Cu(gm),Am=Cu(da);function Rm(de){return"\\"+wu[de]}function _d(de,je){return de==null?n:de[je]}function Jl(de){return Kl.test(de)}function Om(de){return dd.test(de)}function Dm(de){for(var je,Oe=[];!(je=de.next()).done;)Oe.push(je.value);return Oe}function Du(de){var je=-1,Oe=Array(de.size);return de.forEach(function(dt,At){Oe[++je]=[At,dt]}),Oe}function jm(de,je){return function(Oe){return de(je(Oe))}}function es(de,je){for(var Oe=-1,dt=de.length,At=0,rn=[];++Oe<dt;){var fr=de[Oe];(fr===je||fr===x)&&(de[Oe]=x,rn[At++]=Oe)}return rn}function ju(de){var je=-1,Oe=Array(de.size);return de.forEach(function(dt){Oe[++je]=dt}),Oe}function Yx(de){var je=-1,Oe=Array(de.size);return de.forEach(function(dt){Oe[++je]=[dt,dt]}),Oe}function Hx(de,je,Oe){for(var dt=Oe-1,At=de.length;++dt<At;)if(de[dt]===je)return dt;return-1}function Ta(de,je,Oe){for(var dt=Oe+1;dt--;)if(de[dt]===je)return dt;return dt}function Hi(de){return Jl(de)?Fm(de):Mx(de)}function Xa(de){return Jl(de)?Ed(de):Bx(de)}function wd(de){for(var je=de.length;je--&&ht.test(de.charAt(je)););return je}var km=Cu(Is);function Fm(de){for(var je=Vc.lastIndex=0;Vc.test(de);)++je;return je}function Ed(de){return de.match(Vc)||[]}function $x(de){return de.match(Xc)||[]}var zx=function de(je){je=je==null?cr:ui.defaults(cr.Object(),je,ui.pick(cr,_u));var Oe=je.Array,dt=je.Date,At=je.Error,rn=je.Function,fr=je.Math,Dn=je.Object,gl=je.RegExp,Lm=je.String,Na=je.TypeError,Kc=Oe.prototype,Gx=rn.prototype,Lo=Dn.prototype,ku=je["__core-js_shared__"],Zc=Gx.toString,vn=Lo.hasOwnProperty,Mm=0,qa=function(){var f=/[^.]+$/.exec(ku&&ku.keys&&ku.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""}(),Xr=Lo.toString,Mo=Zc.call(Dn),Sd=cr._,Fu=gl("^"+Zc.call(vn).replace(st,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ys=xm?je.Buffer:n,$i=je.Symbol,di=je.Uint8Array,bd=Ys?Ys.allocUnsafe:n,Hs=jm(Dn.getPrototypeOf,Dn),$s=Dn.create,Td=Lo.propertyIsEnumerable,qr=Kc.splice,zs=$i?$i.isConcatSpreadable:n,zi=$i?$i.iterator:n,Gi=$i?$i.toStringTag:n,Gs=function(){try{var f=wi(Dn,"defineProperty");return f({},"",{}),f}catch{}}(),Ka=je.clearTimeout!==cr.clearTimeout&&je.clearTimeout,Za=dt&&dt.now!==cr.Date.now&&dt.now,Ws=je.setTimeout!==cr.setTimeout&&je.setTimeout,Qa=fr.ceil,Ja=fr.floor,xl=Dn.getOwnPropertySymbols,Bm=Ys?Ys.isBuffer:n,Lu=je.isFinite,Nd=Kc.join,Kr=jm(Dn.keys,Dn),an=fr.max,kt=fr.min,hi=dt.now,Wi=je.parseInt,Mu=fr.random,Vs=Kc.reverse,Bu=wi(je,"DataView"),Bo=wi(je,"Map"),Xs=wi(je,"Promise"),Vi=wi(je,"Set"),vl=wi(je,"WeakMap"),yl=wi(Dn,"create"),Qc=vl&&new vl,ts={},Pm=xa(Bu),Pu=xa(Bo),Um=xa(Xs),Jc=xa(Vi),Im=xa(vl),_l=$i?$i.prototype:n,wl=_l?_l.valueOf:n,ef=_l?_l.toString:n;function H(f){if(sr(f)&&!Yt(f)&&!(f instanceof zt)){if(f instanceof Ca)return f;if(vn.call(f,"__wrapped__"))return s0(f)}return new Ca(f)}var El=function(){function f(){}return function(h){if(!Wn(h))return{};if($s)return $s(h);f.prototype=h;var E=new f;return f.prototype=n,E}}();function tf(){}function Ca(f,h){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=n}H.templateSettings={escape:fa,evaluate:Ui,interpolate:le,variable:"",imports:{_:H}},H.prototype=tf.prototype,H.prototype.constructor=H,Ca.prototype=El(tf.prototype),Ca.prototype.constructor=Ca;function zt(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=et,this.__views__=[]}function Ym(){var f=new zt(this.__wrapped__);return f.__actions__=Zr(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=Zr(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=Zr(this.__views__),f}function Po(){if(this.__filtered__){var f=new zt(this);f.__dir__=-1,f.__filtered__=!0}else f=this.clone(),f.__dir__*=-1;return f}function Uu(){var f=this.__wrapped__.value(),h=this.__dir__,E=Yt(f),D=h<0,P=E?f.length:0,q=ps(0,P,this.__views__),ae=q.start,se=q.end,pe=se-ae,Ue=D?se:ae-1,He=this.__iteratees__,Ze=He.length,ot=0,wt=kt(pe,this.__takeCount__);if(!E||!D&&P==pe&&wt==pe)return Ku(f,this.__actions__);var Dt=[];e:for(;pe--&&ot<wt;){Ue+=h;for(var Zt=-1,jt=f[Ue];++Zt<Ze;){var sn=He[Zt],hn=sn.iteratee,Ni=sn.type,Ua=hn(jt);if(Ni==ye)jt=Ua;else if(!Ua){if(Ni==_e)continue e;break e}}Dt[ot++]=jt}return Dt}zt.prototype=El(tf.prototype),zt.prototype.constructor=zt;function ns(f){var h=-1,E=f==null?0:f.length;for(this.clear();++h<E;){var D=f[h];this.set(D[0],D[1])}}function Cd(){this.__data__=yl?yl(null):{},this.size=0}function Ad(f){var h=this.has(f)&&delete this.__data__[f];return this.size-=h?1:0,h}function ei(f){var h=this.__data__;if(yl){var E=h[f];return E===d?n:E}return vn.call(h,f)?h[f]:n}function Xi(f){var h=this.__data__;return yl?h[f]!==n:vn.call(h,f)}function rs(f,h){var E=this.__data__;return this.size+=this.has(f)?0:1,E[f]=yl&&h===n?d:h,this}ns.prototype.clear=Cd,ns.prototype.delete=Ad,ns.prototype.get=ei,ns.prototype.has=Xi,ns.prototype.set=rs;function qi(f){var h=-1,E=f==null?0:f.length;for(this.clear();++h<E;){var D=f[h];this.set(D[0],D[1])}}function as(){this.__data__=[],this.size=0}function Sl(f){var h=this.__data__,E=Ks(h,f);if(E<0)return!1;var D=h.length-1;return E==D?h.pop():qr.call(h,E,1),--this.size,!0}function xr(f){var h=this.__data__,E=Ks(h,f);return E<0?n:h[E][1]}function Iu(f){return Ks(this.__data__,f)>-1}function Wx(f,h){var E=this.__data__,D=Ks(E,f);return D<0?(++this.size,E.push([f,h])):E[D][1]=h,this}qi.prototype.clear=as,qi.prototype.delete=Sl,qi.prototype.get=xr,qi.prototype.has=Iu,qi.prototype.set=Wx;function bl(f){var h=-1,E=f==null?0:f.length;for(this.clear();++h<E;){var D=f[h];this.set(D[0],D[1])}}function Vx(){this.size=0,this.__data__={hash:new ns,map:new(Bo||qi),string:new ns}}function vr(f){var h=rc(this,f).delete(f);return this.size-=h?1:0,h}function Rd(f){return rc(this,f).get(f)}function nf(f){return rc(this,f).has(f)}function rf(f,h){var E=rc(this,f),D=E.size;return E.set(f,h),this.size+=E.size==D?0:1,this}bl.prototype.clear=Vx,bl.prototype.delete=vr,bl.prototype.get=Rd,bl.prototype.has=nf,bl.prototype.set=rf;function Tl(f){var h=-1,E=f==null?0:f.length;for(this.__data__=new bl;++h<E;)this.add(f[h])}function Uo(f){return this.__data__.set(f,d),this}function Io(f){return this.__data__.has(f)}Tl.prototype.add=Tl.prototype.push=Uo,Tl.prototype.has=Io;function mi(f){var h=this.__data__=new qi(f);this.size=h.size}function Hm(){this.__data__=new qi,this.size=0}function Xx(f){var h=this.__data__,E=h.delete(f);return this.size=h.size,E}function $m(f){return this.__data__.get(f)}function qs(f){return this.__data__.has(f)}function Od(f,h){var E=this.__data__;if(E instanceof qi){var D=E.__data__;if(!Bo||D.length<i-1)return D.push([f,h]),this.size=++E.size,this;E=this.__data__=new bl(D)}return E.set(f,h),this.size=E.size,this}mi.prototype.clear=Hm,mi.prototype.delete=Xx,mi.prototype.get=$m,mi.prototype.has=qs,mi.prototype.set=Od;function af(f,h){var E=Yt(f),D=!E&&_s(f),P=!E&&!D&&ws(f),q=!E&&!D&&!P&&Ti(f),ae=E||D||P||q,se=ae?Ql(f.length,Lm):[],pe=se.length;for(var Ue in f)(h||vn.call(f,Ue))&&!(ae&&(Ue=="length"||P&&(Ue=="offset"||Ue=="parent")||q&&(Ue=="buffer"||Ue=="byteLength"||Ue=="byteOffset")||Ei(Ue,pe)))&&se.push(Ue);return se}function Dd(f){var h=f.length;return h?f[qu(0,h-1)]:n}function is(f,h){return wf(Zr(f),Zs(h,0,f.length))}function Xt(f){return wf(Zr(f))}function yn(f,h,E){(E!==n&&!ri(f[h],E)||E===n&&!(h in f))&&Aa(f,h,E)}function zn(f,h,E){var D=f[h];(!(vn.call(f,h)&&ri(D,E))||E===n&&!(h in f))&&Aa(f,h,E)}function Ks(f,h){for(var E=f.length;E--;)if(ri(f[E][0],h))return E;return-1}function Yo(f,h,E,D){return os(f,function(P,q,ae){h(D,P,E(P),ae)}),D}function ls(f,h){return f&&gi(h,_r(h),f)}function Yu(f,h){return f&&gi(h,ea(h),f)}function Aa(f,h,E){h=="__proto__"&&Gs?Gs(f,h,{configurable:!0,enumerable:!0,value:E,writable:!0}):f[h]=E}function ss(f,h){for(var E=-1,D=h.length,P=Oe(D),q=f==null;++E<D;)P[E]=q?n:gc(f,h[E]);return P}function Zs(f,h,E){return f===f&&(E!==n&&(f=f<=E?f:E),h!==n&&(f=f>=h?f:h)),f}function pn(f,h,E,D,P,q){var ae,se=h&y,pe=h&v,Ue=h&w;if(E&&(ae=P?E(f,D,P,q):E(f)),ae!==n)return ae;if(!Wn(f))return f;var He=Yt(f);if(He){if(ae=to(f),!se)return Zr(f,ae)}else{var Ze=hr(f),ot=Ze==Xe||Ze==rt;if(ws(f))return Kd(f,se);if(Ze==We||Ze==K||ot&&!P){if(ae=pe||ot?{}:ga(f),!se)return pe?mf(f,Yu(ae,f)):lp(f,ls(ae,f))}else{if(!Tn[Ze])return P?f:{};ae=op(f,Ze,se)}}q||(q=new mi);var wt=q.get(f);if(wt)return wt;q.set(f,ae),al(f)?f.forEach(function(jt){ae.add(pn(jt,h,E,jt,f,q))}):Wp(f)&&f.forEach(function(jt,sn){ae.set(sn,pn(jt,h,E,sn,f,q))});var Dt=Ue?pe?xf:Ji:pe?ea:_r,Zt=He?n:Dt(f);return Va(Zt||f,function(jt,sn){Zt&&(sn=jt,jt=f[sn]),zn(ae,sn,pn(jt,h,E,sn,f,q))}),ae}function jd(f){var h=_r(f);return function(E){return Hu(E,f,h)}}function Hu(f,h,E){var D=E.length;if(f==null)return!D;for(f=Dn(f);D--;){var P=E[D],q=h[P],ae=f[P];if(ae===n&&!(P in f)||!q(ae))return!1}return!0}function kd(f,h,E){if(typeof f!="function")throw new Na(o);return Ur(function(){f.apply(n,E)},h)}function Ho(f,h,E,D){var P=-1,q=bu,ae=!0,se=f.length,pe=[],Ue=h.length;if(!se)return pe;E&&(h=$n(h,ba(E))),D?(q=pd,ae=!1):h.length>=i&&(q=jo,ae=!1,h=new Tl(h));e:for(;++P<se;){var He=f[P],Ze=E==null?He:E(He);if(He=D||He!==0?He:0,ae&&Ze===Ze){for(var ot=Ue;ot--;)if(h[ot]===Ze)continue e;pe.push(He)}else q(h,Ze,D)||pe.push(He)}return pe}var os=eh(ti),$u=eh(pi,!0);function Fd(f,h){var E=!0;return os(f,function(D,P,q){return E=!!h(D,P,q),E}),E}function $o(f,h,E){for(var D=-1,P=f.length;++D<P;){var q=f[D],ae=h(q);if(ae!=null&&(se===n?ae===ae&&!Ba(ae):E(ae,se)))var se=ae,pe=q}return pe}function ma(f,h,E,D){var P=f.length;for(E=Wt(E),E<0&&(E=-E>P?0:P+E),D=D===n||D>P?P:Wt(D),D<0&&(D+=P),D=E>D?0:Vh(D);E<D;)f[E++]=h;return f}function ur(f,h){var E=[];return os(f,function(D,P,q){h(D,P,q)&&E.push(D)}),E}function dr(f,h,E,D,P){var q=-1,ae=f.length;for(E||(E=fp),P||(P=[]);++q<ae;){var se=f[q];h>0&&E(se)?h>1?dr(se,h-1,E,D,P):pl(P,se):D||(P[P.length]=se)}return P}var Qs=th(),lf=th(!0);function ti(f,h){return f&&Qs(f,h,_r)}function pi(f,h){return f&&lf(f,h,_r)}function Js(f,h){return Yi(h,function(E){return Ml(f[E])})}function Nl(f,h){h=Al(h,f);for(var E=0,D=h.length;f!=null&&E<D;)f=f[Qr(h[E++])];return E&&E==D?f:n}function zu(f,h,E){var D=h(f);return Yt(f)?D:pl(D,E(f))}function Br(f){return f==null?f===n?$t:xt:Gi&&Gi in Dn(f)?_f(f):Da(f)}function Gu(f,h){return f>h}function zm(f,h){return f!=null&&vn.call(f,h)}function Gm(f,h){return f!=null&&h in Dn(f)}function Wm(f,h,E){return f>=kt(h,E)&&f<an(h,E)}function Wu(f,h,E){for(var D=E?pd:bu,P=f[0].length,q=f.length,ae=q,se=Oe(q),pe=1/0,Ue=[];ae--;){var He=f[ae];ae&&h&&(He=$n(He,ba(h))),pe=kt(He.length,pe),se[ae]=!E&&(h||P>=120&&He.length>=120)?new Tl(ae&&He):n}He=f[0];var Ze=-1,ot=se[0];e:for(;++Ze<P&&Ue.length<pe;){var wt=He[Ze],Dt=h?h(wt):wt;if(wt=E||wt!==0?wt:0,!(ot?jo(ot,Dt):D(Ue,Dt,E))){for(ae=q;--ae;){var Zt=se[ae];if(!(Zt?jo(Zt,Dt):D(f[ae],Dt,E)))continue e}ot&&ot.push(Dt),Ue.push(wt)}}return Ue}function Ld(f,h,E,D){return ti(f,function(P,q,ae){h(D,E(P),q,ae)}),D}function zo(f,h,E){h=Al(h,f),f=ch(f,h);var D=f==null?f:f[Qr(Jr(h))];return D==null?n:ha(D,f,E)}function Vm(f){return sr(f)&&Br(f)==K}function Xm(f){return sr(f)&&Br(f)==dn}function qm(f){return sr(f)&&Br(f)==me}function Go(f,h,E,D,P){return f===h?!0:f==null||h==null||!sr(f)&&!sr(h)?f!==f&&h!==h:Md(f,h,E,D,Go,P)}function Md(f,h,E,D,P,q){var ae=Yt(f),se=Yt(h),pe=ae?xe:hr(f),Ue=se?xe:hr(h);pe=pe==K?We:pe,Ue=Ue==K?We:Ue;var He=pe==We,Ze=Ue==We,ot=pe==Ue;if(ot&&ws(f)){if(!ws(h))return!1;ae=!0,He=!1}if(ot&&!He)return q||(q=new mi),ae||Ti(f)?ms(f,h,E,D,P,q):Pr(f,h,pe,E,D,P,q);if(!(E&b)){var wt=He&&vn.call(f,"__wrapped__"),Dt=Ze&&vn.call(h,"__wrapped__");if(wt||Dt){var Zt=wt?f.value():f,jt=Dt?h.value():h;return q||(q=new mi),P(Zt,jt,E,D,q)}}return ot?(q||(q=new mi),a0(f,h,E,D,P,q)):!1}function Km(f){return sr(f)&&hr(f)==Qe}function Vu(f,h,E,D){var P=E.length,q=P,ae=!D;if(f==null)return!q;for(f=Dn(f);P--;){var se=E[P];if(ae&&se[2]?se[1]!==f[se[0]]:!(se[0]in f))return!1}for(;++P<q;){se=E[P];var pe=se[0],Ue=f[pe],He=se[1];if(ae&&se[2]){if(Ue===n&&!(pe in f))return!1}else{var Ze=new mi;if(D)var ot=D(Ue,He,pe,f,h,Ze);if(!(ot===n?Go(He,Ue,b|S,D,Ze):ot))return!1}}return!0}function Bd(f){if(!Wn(f)||sh(f))return!1;var h=Ml(f)?Fu:Ee;return h.test(xa(f))}function Zm(f){return sr(f)&&Br(f)==Jt}function Qm(f){return sr(f)&&hr(f)==Bt}function qx(f){return sr(f)&&v0(f.length)&&!!On[Br(f)]}function Pd(f){return typeof f=="function"?f:f==null?xn:typeof f=="object"?Yt(f)?Xu(f[0],f[1]):Ud(f):n_(f)}function cs(f){if(!ir(f))return Kr(f);var h=[];for(var E in Dn(f))vn.call(f,E)&&E!="constructor"&&h.push(E);return h}function Jm(f){if(!Wn(f))return mr(f);var h=ir(f),E=[];for(var D in f)D=="constructor"&&(h||!vn.call(f,D))||E.push(D);return E}function Wo(f,h){return f<h}function sf(f,h){var E=-1,D=Gt(f)?Oe(f.length):[];return os(f,function(P,q,ae){D[++E]=h(P,q,ae)}),D}function Ud(f){var h=yf(f);return h.length==1&&h[0][2]?dp(h[0][0],h[0][1]):function(E){return E===f||Vu(E,f,h)}}function Xu(f,h){return ac(f)&&oh(h)?dp(Qr(f),h):function(E){var D=gc(E,f);return D===n&&D===h?Zh(E,f):Go(h,D,b|S)}}function of(f,h,E,D,P){f!==h&&Qs(h,function(q,ae){if(P||(P=new mi),Wn(q))ep(f,h,ae,E,of,D,P);else{var se=D?D(fh(f,ae),q,ae+"",f,h,P):n;se===n&&(se=q),yn(f,ae,se)}},ea)}function ep(f,h,E,D,P,q,ae){var se=fh(f,E),pe=fh(h,E),Ue=ae.get(pe);if(Ue){yn(f,E,Ue);return}var He=q?q(se,pe,E+"",f,h,ae):n,Ze=He===n;if(Ze){var ot=Yt(pe),wt=!ot&&ws(pe),Dt=!ot&&!wt&&Ti(pe);He=pe,ot||wt||Dt?Yt(se)?He=se:qn(se)?He=Zr(se):wt?(Ze=!1,He=Kd(pe,!0)):Dt?(Ze=!1,He=Zd(pe,!0)):He=[]:Yr(pe)||_s(pe)?(He=se,_s(se)?He=hc(se):(!Wn(se)||Ml(se))&&(He=ga(pe))):Ze=!1}Ze&&(ae.set(pe,He),P(He,pe,D,q,ae),ae.delete(pe)),yn(f,E,He)}function Id(f,h){var E=f.length;if(E)return h+=h<0?E:0,Ei(h,E)?f[h]:n}function Yd(f,h,E){h.length?h=$n(h,function(q){return Yt(q)?function(ae){return Nl(ae,q.length===1?q[0]:q)}:q}):h=[xn];var D=-1;h=$n(h,ba(St()));var P=sf(f,function(q,ae,se){var pe=$n(h,function(Ue){return Ue(q)});return{criteria:pe,index:++D,value:q}});return Nm(P,function(q,ae){return Or(q,ae,E)})}function Hd(f,h){return $d(f,h,function(E,D){return Zh(f,D)})}function $d(f,h,E){for(var D=-1,P=h.length,q={};++D<P;){var ae=h[D],se=Nl(f,ae);E(se,ae)&&Vo(q,Al(ae,f),se)}return q}function tp(f){return function(h){return Nl(h,f)}}function cf(f,h,E,D){var P=D?vd:Oo,q=-1,ae=h.length,se=f;for(f===h&&(h=Zr(h)),E&&(se=$n(f,ba(E)));++q<ae;)for(var pe=0,Ue=h[q],He=E?E(Ue):Ue;(pe=P(se,He,pe,D))>-1;)se!==f&&qr.call(se,pe,1),qr.call(f,pe,1);return f}function zd(f,h){for(var E=f?h.length:0,D=E-1;E--;){var P=h[E];if(E==D||P!==q){var q=P;Ei(P)?qr.call(f,P,1):Ki(f,P)}}return f}function qu(f,h){return f+Ja(Mu()*(h-f+1))}function Kx(f,h,E,D){for(var P=-1,q=an(Qa((h-f)/(E||1)),0),ae=Oe(q);q--;)ae[D?q:++P]=f,f+=E;return ae}function ff(f,h){var E="";if(!f||h<1||h>Ne)return E;do h%2&&(E+=f),h=Ja(h/2),h&&(f+=f);while(h);return E}function Vt(f,h){return ja(el(f,h,xn),f+"")}function np(f){return Dd(Pa(f))}function Gd(f,h){var E=Pa(f);return wf(E,Zs(h,0,E.length))}function Vo(f,h,E,D){if(!Wn(f))return f;h=Al(h,f);for(var P=-1,q=h.length,ae=q-1,se=f;se!=null&&++P<q;){var pe=Qr(h[P]),Ue=E;if(pe==="__proto__"||pe==="constructor"||pe==="prototype")return f;if(P!=ae){var He=se[pe];Ue=D?D(He,pe,se):n,Ue===n&&(Ue=Wn(He)?He:Ei(h[P+1])?[]:{})}zn(se,pe,Ue),se=se[pe]}return f}var Wd=Qc?function(f,h){return Qc.set(f,h),f}:xn,Zx=Gs?function(f,h){return Gs(f,"toString",{configurable:!0,enumerable:!1,value:mt(h),writable:!0})}:xn;function Qx(f){return wf(Pa(f))}function Ra(f,h,E){var D=-1,P=f.length;h<0&&(h=-h>P?0:P+h),E=E>P?P:E,E<0&&(E+=P),P=h>E?0:E-h>>>0,h>>>=0;for(var q=Oe(P);++D<P;)q[D]=f[D+h];return q}function uf(f,h){var E;return os(f,function(D,P,q){return E=h(D,P,q),!E}),!!E}function Xo(f,h,E){var D=0,P=f==null?D:f.length;if(typeof h=="number"&&h===h&&P<=ie){for(;D<P;){var q=D+P>>>1,ae=f[q];ae!==null&&!Ba(ae)&&(E?ae<=h:ae<h)?D=q+1:P=q}return P}return qo(f,h,xn,E)}function qo(f,h,E,D){var P=0,q=f==null?0:f.length;if(q===0)return 0;h=E(h);for(var ae=h!==h,se=h===null,pe=Ba(h),Ue=h===n;P<q;){var He=Ja((P+q)/2),Ze=E(f[He]),ot=Ze!==n,wt=Ze===null,Dt=Ze===Ze,Zt=Ba(Ze);if(ae)var jt=D||Dt;else Ue?jt=Dt&&(D||ot):se?jt=Dt&&ot&&(D||!wt):pe?jt=Dt&&ot&&!wt&&(D||!Zt):wt||Zt?jt=!1:jt=D?Ze<=h:Ze<h;jt?P=He+1:q=He}return kt(q,J)}function Vd(f,h){for(var E=-1,D=f.length,P=0,q=[];++E<D;){var ae=f[E],se=h?h(ae):ae;if(!E||!ri(se,pe)){var pe=se;q[P++]=ae===0?0:ae}}return q}function Xd(f){return typeof f=="number"?f:Ba(f)?Pe:+f}function ar(f){if(typeof f=="string")return f;if(Yt(f))return $n(f,ar)+"";if(Ba(f))return ef?ef.call(f):"";var h=f+"";return h=="0"&&1/f==-1/0?"-0":h}function pa(f,h,E){var D=-1,P=bu,q=f.length,ae=!0,se=[],pe=se;if(E)ae=!1,P=pd;else if(q>=i){var Ue=h?null:hs(f);if(Ue)return ju(Ue);ae=!1,P=jo,pe=new Tl}else pe=h?[]:se;e:for(;++D<q;){var He=f[D],Ze=h?h(He):He;if(He=E||He!==0?He:0,ae&&Ze===Ze){for(var ot=pe.length;ot--;)if(pe[ot]===Ze)continue e;h&&pe.push(Ze),se.push(He)}else P(pe,Ze,E)||(pe!==se&&pe.push(Ze),se.push(He))}return se}function Ki(f,h){return h=Al(h,f),f=ch(f,h),f==null||delete f[Qr(Jr(h))]}function fs(f,h,E,D){return Vo(f,h,E(Nl(f,h)),D)}function Ko(f,h,E,D){for(var P=f.length,q=D?P:-1;(D?q--:++q<P)&&h(f[q],q,f););return E?Ra(f,D?0:q,D?q+1:P):Ra(f,D?q+1:0,D?P:q)}function Ku(f,h){var E=f;return E instanceof zt&&(E=E.value()),gd(h,function(D,P){return P.func.apply(P.thisArg,pl([D],P.args))},E)}function Zu(f,h,E){var D=f.length;if(D<2)return D?pa(f[0]):[];for(var P=-1,q=Oe(D);++P<D;)for(var ae=f[P],se=-1;++se<D;)se!=P&&(q[P]=Ho(q[P]||ae,f[se],h,E));return pa(dr(q,1),h,E)}function qd(f,h,E){for(var D=-1,P=f.length,q=h.length,ae={};++D<P;){var se=D<q?h[D]:n;E(ae,f[D],se)}return ae}function Cl(f){return qn(f)?f:[]}function Zo(f){return typeof f=="function"?f:xn}function Al(f,h){return Yt(f)?f:ac(f,h)?[f]:tl(_n(f))}var rp=Vt;function Rl(f,h,E){var D=f.length;return E=E===n?D:E,!h&&E>=D?f:Ra(f,h,E)}var df=Ka||function(f){return cr.clearTimeout(f)};function Kd(f,h){if(h)return f.slice();var E=f.length,D=bd?bd(E):new f.constructor(E);return f.copy(D),D}function hf(f){var h=new f.constructor(f.byteLength);return new di(h).set(new di(f)),h}function ap(f,h){var E=h?hf(f.buffer):f.buffer;return new f.constructor(E,f.byteOffset,f.byteLength)}function ip(f){var h=new f.constructor(f.source,he.exec(f));return h.lastIndex=f.lastIndex,h}function Jx(f){return wl?Dn(wl.call(f)):{}}function Zd(f,h){var E=h?hf(f.buffer):f.buffer;return new f.constructor(E,f.byteOffset,f.length)}function yr(f,h){if(f!==h){var E=f!==n,D=f===null,P=f===f,q=Ba(f),ae=h!==n,se=h===null,pe=h===h,Ue=Ba(h);if(!se&&!Ue&&!q&&f>h||q&&ae&&pe&&!se&&!Ue||D&&ae&&pe||!E&&pe||!P)return 1;if(!D&&!q&&!Ue&&f<h||Ue&&E&&P&&!D&&!q||se&&E&&P||!ae&&P||!pe)return-1}return 0}function Or(f,h,E){for(var D=-1,P=f.criteria,q=h.criteria,ae=P.length,se=E.length;++D<ae;){var pe=yr(P[D],q[D]);if(pe){if(D>=se)return pe;var Ue=E[D];return pe*(Ue=="desc"?-1:1)}}return f.index-h.index}function Qd(f,h,E,D){for(var P=-1,q=f.length,ae=E.length,se=-1,pe=h.length,Ue=an(q-ae,0),He=Oe(pe+Ue),Ze=!D;++se<pe;)He[se]=h[se];for(;++P<ae;)(Ze||P<q)&&(He[E[P]]=f[P]);for(;Ue--;)He[se++]=f[P++];return He}function Jd(f,h,E,D){for(var P=-1,q=f.length,ae=-1,se=E.length,pe=-1,Ue=h.length,He=an(q-se,0),Ze=Oe(He+Ue),ot=!D;++P<He;)Ze[P]=f[P];for(var wt=P;++pe<Ue;)Ze[wt+pe]=h[pe];for(;++ae<se;)(ot||P<q)&&(Ze[wt+E[ae]]=f[P++]);return Ze}function Zr(f,h){var E=-1,D=f.length;for(h||(h=Oe(D));++E<D;)h[E]=f[E];return h}function gi(f,h,E,D){var P=!E;E||(E={});for(var q=-1,ae=h.length;++q<ae;){var se=h[q],pe=D?D(E[se],f[se],se,E,f):n;pe===n&&(pe=f[se]),P?Aa(E,se,pe):zn(E,se,pe)}return E}function lp(f,h){return gi(f,i0(f),h)}function mf(f,h){return gi(f,ih(f),h)}function Qo(f,h){return function(E,D){var P=Yt(E)?kx:Yo,q=h?h():{};return P(E,f,St(D,2),q)}}function eo(f){return Vt(function(h,E){var D=-1,P=E.length,q=P>1?E[P-1]:n,ae=P>2?E[2]:n;for(q=f.length>3&&typeof q=="function"?(P--,q):n,ae&&Dr(E[0],E[1],ae)&&(q=P<3?n:q,P=1),h=Dn(h);++D<P;){var se=E[D];se&&f(h,se,D,q)}return h})}function eh(f,h){return function(E,D){if(E==null)return E;if(!Gt(E))return f(E,D);for(var P=E.length,q=h?P:-1,ae=Dn(E);(h?q--:++q<P)&&D(ae[q],q,ae)!==!1;);return E}}function th(f){return function(h,E,D){for(var P=-1,q=Dn(h),ae=D(h),se=ae.length;se--;){var pe=ae[f?se:++P];if(E(q[pe],pe,q)===!1)break}return h}}function nh(f,h,E){var D=h&T,P=Jo(f);function q(){var ae=this&&this!==cr&&this instanceof q?P:f;return ae.apply(D?E:this,arguments)}return q}function Qu(f){return function(h){h=_n(h);var E=Jl(h)?Xa(h):n,D=E?E[0]:h.charAt(0),P=E?Rl(E,1).join(""):h.slice(1);return D[f]()+P}}function us(f){return function(h){return gd(Kn(t1(h).replace(mm,"")),f,"")}}function Jo(f){return function(){var h=arguments;switch(h.length){case 0:return new f;case 1:return new f(h[0]);case 2:return new f(h[0],h[1]);case 3:return new f(h[0],h[1],h[2]);case 4:return new f(h[0],h[1],h[2],h[3]);case 5:return new f(h[0],h[1],h[2],h[3],h[4]);case 6:return new f(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new f(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var E=El(f.prototype),D=f.apply(E,h);return Wn(D)?D:E}}function rh(f,h,E){var D=Jo(f);function P(){for(var q=arguments.length,ae=Oe(q),se=q,pe=Oa(P);se--;)ae[se]=arguments[se];var Ue=q<3&&ae[0]!==pe&&ae[q-1]!==pe?[]:es(ae,pe);if(q-=Ue.length,q<E)return ds(f,h,pf,P.placeholder,n,ae,Ue,n,n,E-q);var He=this&&this!==cr&&this instanceof P?D:f;return ha(He,this,ae)}return P}function Ju(f){return function(h,E,D){var P=Dn(h);if(!Gt(h)){var q=St(E,3);h=_r(h),E=function(se){return q(P[se],se,P)}}var ae=f(h,E,D);return ae>-1?P[q?h[ae]:ae]:n}}function e0(f){return Qi(function(h){var E=h.length,D=E,P=Ca.prototype.thru;for(f&&h.reverse();D--;){var q=h[D];if(typeof q!="function")throw new Na(o);if(P&&!ae&&_i(q)=="wrapper")var ae=new Ca([],!0)}for(D=ae?D:E;++D<E;){q=h[D];var se=_i(q),pe=se=="wrapper"?vf(q):n;pe&&Gn(pe[0])&&pe[1]==(L|A|O|I)&&!pe[4].length&&pe[9]==1?ae=ae[_i(pe[0])].apply(ae,pe[3]):ae=q.length==1&&Gn(q)?ae[se]():ae.thru(q)}return function(){var Ue=arguments,He=Ue[0];if(ae&&Ue.length==1&&Yt(He))return ae.plant(He).value();for(var Ze=0,ot=E?h[Ze].apply(this,Ue):He;++Ze<E;)ot=h[Ze].call(this,ot);return ot}})}function pf(f,h,E,D,P,q,ae,se,pe,Ue){var He=h&L,Ze=h&T,ot=h&C,wt=h&(A|j),Dt=h&U,Zt=ot?n:Jo(f);function jt(){for(var sn=arguments.length,hn=Oe(sn),Ni=sn;Ni--;)hn[Ni]=arguments[Ni];if(wt)var Ua=Oa(jt),Ci=Ix(hn,Ua);if(D&&(hn=Qd(hn,D,P,wt)),q&&(hn=Jd(hn,q,ae,wt)),sn-=Ci,wt&&sn<Ue){var wr=es(hn,Ua);return ds(f,h,pf,jt.placeholder,E,hn,wr,se,pe,Ue-sn)}var Ul=Ze?E:this,oo=ot?Ul[f]:f;return sn=hn.length,se?hn=pp(hn,se):Dt&&sn>1&&hn.reverse(),He&&pe<sn&&(hn.length=pe),this&&this!==cr&&this instanceof jt&&(oo=Zt||Jo(oo)),oo.apply(Ul,hn)}return jt}function t0(f,h){return function(E,D){return Ld(E,f,h(D),{})}}function gf(f,h){return function(E,D){var P;if(E===n&&D===n)return h;if(E!==n&&(P=E),D!==n){if(P===n)return D;typeof E=="string"||typeof D=="string"?(E=ar(E),D=ar(D)):(E=Xd(E),D=Xd(D)),P=f(E,D)}return P}}function xi(f){return Qi(function(h){return h=$n(h,ba(St())),Vt(function(E){var D=this;return f(h,function(P){return ha(P,D,E)})})})}function ec(f,h){h=h===n?" ":ar(h);var E=h.length;if(E<2)return E?ff(h,f):h;var D=ff(h,Qa(f/Hi(h)));return Jl(h)?Rl(Xa(D),0,f).join(""):D.slice(0,f)}function ev(f,h,E,D){var P=h&T,q=Jo(f);function ae(){for(var se=-1,pe=arguments.length,Ue=-1,He=D.length,Ze=Oe(He+pe),ot=this&&this!==cr&&this instanceof ae?q:f;++Ue<He;)Ze[Ue]=D[Ue];for(;pe--;)Ze[Ue++]=arguments[++se];return ha(ot,P?E:this,Ze)}return ae}function ah(f){return function(h,E,D){return D&&typeof D!="number"&&Dr(h,E,D)&&(E=D=n),h=Bl(h),E===n?(E=h,h=0):E=Bl(E),D=D===n?h<E?1:-1:Bl(D),Kx(h,E,D,f)}}function tc(f){return function(h,E){return typeof h=="string"&&typeof E=="string"||(h=kr(h),E=kr(E)),f(h,E)}}function ds(f,h,E,D,P,q,ae,se,pe,Ue){var He=h&A,Ze=He?ae:n,ot=He?n:ae,wt=He?q:n,Dt=He?n:q;h|=He?O:B,h&=~(He?B:O),h&R||(h&=-4);var Zt=[f,h,P,wt,Ze,Dt,ot,se,pe,Ue],jt=E.apply(n,Zt);return Gn(f)&&l0(jt,Zt),jt.placeholder=D,uh(jt,f,h)}function vi(f){var h=fr[f];return function(E,D){if(E=kr(E),D=D==null?0:kt(Wt(D),292),D&&Lu(E)){var P=(_n(E)+"e").split("e"),q=h(P[0]+"e"+(+P[1]+D));return P=(_n(q)+"e").split("e"),+(P[0]+"e"+(+P[1]-D))}return h(E)}}var hs=Vi&&1/ju(new Vi([,-0]))[1]==Te?function(f){return new Vi(f)}:Mv;function Zi(f){return function(h){var E=hr(h);return E==Qe?Du(h):E==Bt?Yx(h):Ux(h,f(h))}}function yi(f,h,E,D,P,q,ae,se){var pe=h&C;if(!pe&&typeof f!="function")throw new Na(o);var Ue=D?D.length:0;if(Ue||(h&=-97,D=P=n),ae=ae===n?ae:an(Wt(ae),0),se=se===n?se:Wt(se),Ue-=P?P.length:0,h&B){var He=D,Ze=P;D=P=n}var ot=pe?n:vf(f),wt=[f,h,E,D,P,He,Ze,q,ae,se];if(ot&&mp(wt,ot),f=wt[0],h=wt[1],E=wt[2],D=wt[3],P=wt[4],se=wt[9]=wt[9]===n?pe?0:f.length:an(wt[9]-Ue,0),!se&&h&(A|j)&&(h&=-25),!h||h==T)var Dt=nh(f,h,E);else h==A||h==j?Dt=rh(f,h,se):(h==O||h==(T|O))&&!P.length?Dt=ev(f,h,E,D):Dt=pf.apply(n,wt);var Zt=ot?Wd:l0;return uh(Zt(Dt,wt),f,h)}function n0(f,h,E,D){return f===n||ri(f,Lo[E])&&!vn.call(D,E)?h:f}function nc(f,h,E,D,P,q){return Wn(f)&&Wn(h)&&(q.set(h,f),of(f,h,n,nc,q),q.delete(h)),f}function r0(f){return Yr(f)?n:f}function ms(f,h,E,D,P,q){var ae=E&b,se=f.length,pe=h.length;if(se!=pe&&!(ae&&pe>se))return!1;var Ue=q.get(f),He=q.get(h);if(Ue&&He)return Ue==h&&He==f;var Ze=-1,ot=!0,wt=E&S?new Tl:n;for(q.set(f,h),q.set(h,f);++Ze<se;){var Dt=f[Ze],Zt=h[Ze];if(D)var jt=ae?D(Zt,Dt,Ze,h,f,q):D(Dt,Zt,Ze,f,h,q);if(jt!==n){if(jt)continue;ot=!1;break}if(wt){if(!xd(h,function(sn,hn){if(!jo(wt,hn)&&(Dt===sn||P(Dt,sn,E,D,q)))return wt.push(hn)})){ot=!1;break}}else if(!(Dt===Zt||P(Dt,Zt,E,D,q))){ot=!1;break}}return q.delete(f),q.delete(h),ot}function Pr(f,h,E,D,P,q,ae){switch(E){case nn:if(f.byteLength!=h.byteLength||f.byteOffset!=h.byteOffset)return!1;f=f.buffer,h=h.buffer;case dn:return!(f.byteLength!=h.byteLength||!q(new di(f),new di(h)));case Ce:case me:case ft:return ri(+f,+h);case Be:return f.name==h.name&&f.message==h.message;case Jt:case An:return f==h+"";case Qe:var se=Du;case Bt:var pe=D&b;if(se||(se=ju),f.size!=h.size&&!pe)return!1;var Ue=ae.get(f);if(Ue)return Ue==h;D|=S,ae.set(f,h);var He=ms(se(f),se(h),D,P,q,ae);return ae.delete(f),He;case Rn:if(wl)return wl.call(f)==wl.call(h)}return!1}function a0(f,h,E,D,P,q){var ae=E&b,se=Ji(f),pe=se.length,Ue=Ji(h),He=Ue.length;if(pe!=He&&!ae)return!1;for(var Ze=pe;Ze--;){var ot=se[Ze];if(!(ae?ot in h:vn.call(h,ot)))return!1}var wt=q.get(f),Dt=q.get(h);if(wt&&Dt)return wt==h&&Dt==f;var Zt=!0;q.set(f,h),q.set(h,f);for(var jt=ae;++Ze<pe;){ot=se[Ze];var sn=f[ot],hn=h[ot];if(D)var Ni=ae?D(hn,sn,ot,h,f,q):D(sn,hn,ot,f,h,q);if(!(Ni===n?sn===hn||P(sn,hn,E,D,q):Ni)){Zt=!1;break}jt||(jt=ot=="constructor")}if(Zt&&!jt){var Ua=f.constructor,Ci=h.constructor;Ua!=Ci&&"constructor"in f&&"constructor"in h&&!(typeof Ua=="function"&&Ua instanceof Ua&&typeof Ci=="function"&&Ci instanceof Ci)&&(Zt=!1)}return q.delete(f),q.delete(h),Zt}function Qi(f){return ja(el(f,n,Fa),f+"")}function Ji(f){return zu(f,_r,i0)}function xf(f){return zu(f,ea,ih)}var vf=Qc?function(f){return Qc.get(f)}:Mv;function _i(f){for(var h=f.name+"",E=ts[h],D=vn.call(ts,h)?E.length:0;D--;){var P=E[D],q=P.func;if(q==null||q==f)return P.name}return h}function Oa(f){var h=vn.call(H,"placeholder")?H:f;return h.placeholder}function St(){var f=H.iteratee||un;return f=f===un?Pd:f,arguments.length?f(arguments[0],arguments[1]):f}function rc(f,h){var E=f.__data__;return Ol(h)?E[typeof h=="string"?"string":"hash"]:E.map}function yf(f){for(var h=_r(f),E=h.length;E--;){var D=h[E],P=f[D];h[E]=[D,P,oh(P)]}return h}function wi(f,h){var E=_d(f,h);return Bd(E)?E:n}function _f(f){var h=vn.call(f,Gi),E=f[Gi];try{f[Gi]=n;var D=!0}catch{}var P=Xr.call(f);return D&&(h?f[Gi]=E:delete f[Gi]),P}var i0=xl?function(f){return f==null?[]:(f=Dn(f),Yi(xl(f),function(h){return Td.call(f,h)}))}:Bv,ih=xl?function(f){for(var h=[];f;)pl(h,i0(f)),f=Hs(f);return h}:Bv,hr=Br;(Bu&&hr(new Bu(new ArrayBuffer(1)))!=nn||Bo&&hr(new Bo)!=Qe||Xs&&hr(Xs.resolve())!=tn||Vi&&hr(new Vi)!=Bt||vl&&hr(new vl)!=cn)&&(hr=function(f){var h=Br(f),E=h==We?f.constructor:n,D=E?xa(E):"";if(D)switch(D){case Pm:return nn;case Pu:return Qe;case Um:return tn;case Jc:return Bt;case Im:return cn}return h});function ps(f,h,E){for(var D=-1,P=E.length;++D<P;){var q=E[D],ae=q.size;switch(q.type){case"drop":f+=ae;break;case"dropRight":h-=ae;break;case"take":h=kt(h,f+ae);break;case"takeRight":f=an(f,h-ae);break}}return{start:f,end:h}}function sp(f){var h=f.match(M);return h?h[1].split(V):[]}function lh(f,h,E){h=Al(h,f);for(var D=-1,P=h.length,q=!1;++D<P;){var ae=Qr(h[D]);if(!(q=f!=null&&E(f,ae)))break;f=f[ae]}return q||++D!=P?q:(P=f==null?0:f.length,!!P&&v0(P)&&Ei(ae,P)&&(Yt(f)||_s(f)))}function to(f){var h=f.length,E=new f.constructor(h);return h&&typeof f[0]=="string"&&vn.call(f,"index")&&(E.index=f.index,E.input=f.input),E}function ga(f){return typeof f.constructor=="function"&&!ir(f)?El(Hs(f)):{}}function op(f,h,E){var D=f.constructor;switch(h){case dn:return hf(f);case Ce:case me:return new D(+f);case nn:return ap(f,E);case Lr:case Yn:case Er:case Sr:case er:case En:case br:case Pn:case ut:return Zd(f,E);case Qe:return new D;case ft:case An:return new D(f);case Jt:return ip(f);case Bt:return new D;case Rn:return Jx(f)}}function cp(f,h){var E=h.length;if(!E)return f;var D=E-1;return h[D]=(E>1?"& ":"")+h[D],h=h.join(E>2?", ":" "),f.replace(pt,`{
-/* [wrapped with `+h+`] */
-`)}function fp(f){return Yt(f)||_s(f)||!!(zs&&f&&f[zs])}function Ei(f,h){var E=typeof f;return h=h??Ne,!!h&&(E=="number"||E!="symbol"&&Ie.test(f))&&f>-1&&f%1==0&&f<h}function Dr(f,h,E){if(!Wn(E))return!1;var D=typeof h;return(D=="number"?Gt(E)&&Ei(h,E.length):D=="string"&&h in E)?ri(E[h],f):!1}function ac(f,h){if(Yt(f))return!1;var E=typeof f;return E=="number"||E=="symbol"||E=="boolean"||f==null||Ba(f)?!0:De.test(f)||!ve.test(f)||h!=null&&f in Dn(h)}function Ol(f){var h=typeof f;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?f!=="__proto__":f===null}function Gn(f){var h=_i(f),E=H[h];if(typeof E!="function"||!(h in zt.prototype))return!1;if(f===E)return!0;var D=vf(E);return!!D&&f===D[0]}function sh(f){return!!qa&&qa in f}var up=ku?Ml:Pv;function ir(f){var h=f&&f.constructor,E=typeof h=="function"&&h.prototype||Lo;return f===E}function oh(f){return f===f&&!Wn(f)}function dp(f,h){return function(E){return E==null?!1:E[f]===h&&(h!==n||f in Dn(E))}}function hp(f){var h=jf(f,function(D){return E.size===p&&E.clear(),D}),E=h.cache;return h}function mp(f,h){var E=f[1],D=h[1],P=E|D,q=P<(T|C|L),ae=D==L&&E==A||D==L&&E==I&&f[7].length<=h[8]||D==(L|I)&&h[7].length<=h[8]&&E==A;if(!(q||ae))return f;D&T&&(f[2]=h[2],P|=E&T?0:R);var se=h[3];if(se){var pe=f[3];f[3]=pe?Qd(pe,se,h[4]):se,f[4]=pe?es(f[3],x):h[4]}return se=h[5],se&&(pe=f[5],f[5]=pe?Jd(pe,se,h[6]):se,f[6]=pe?es(f[5],x):h[6]),se=h[7],se&&(f[7]=se),D&L&&(f[8]=f[8]==null?h[8]:kt(f[8],h[8])),f[9]==null&&(f[9]=h[9]),f[0]=h[0],f[1]=P,f}function mr(f){var h=[];if(f!=null)for(var E in Dn(f))h.push(E);return h}function Da(f){return Xr.call(f)}function el(f,h,E){return h=an(h===n?f.length-1:h,0),function(){for(var D=arguments,P=-1,q=an(D.length-h,0),ae=Oe(q);++P<q;)ae[P]=D[h+P];P=-1;for(var se=Oe(h+1);++P<h;)se[P]=D[P];return se[h]=E(ae),ha(f,this,se)}}function ch(f,h){return h.length<2?f:Nl(f,Ra(h,0,-1))}function pp(f,h){for(var E=f.length,D=kt(h.length,E),P=Zr(f);D--;){var q=h[D];f[D]=Ei(q,E)?P[q]:n}return f}function fh(f,h){if(!(h==="constructor"&&typeof f[h]=="function")&&h!="__proto__")return f[h]}var l0=ka(Wd),Ur=Ws||function(f,h){return cr.setTimeout(f,h)},ja=ka(Zx);function uh(f,h,E){var D=h+"";return ja(f,cp(D,dh(sp(D),E)))}function ka(f){var h=0,E=0;return function(){var D=hi(),P=ne-(D-E);if(E=D,P>0){if(++h>=te)return arguments[0]}else h=0;return f.apply(n,arguments)}}function wf(f,h){var E=-1,D=f.length,P=D-1;for(h=h===n?D:h;++E<h;){var q=qu(E,P),ae=f[q];f[q]=f[E],f[E]=ae}return f.length=h,f}var tl=hp(function(f){var h=[];return f.charCodeAt(0)===46&&h.push(""),f.replace(Ge,function(E,D,P,q){h.push(P?q.replace(Z,"$1"):D||E)}),h});function Qr(f){if(typeof f=="string"||Ba(f))return f;var h=f+"";return h=="0"&&1/f==-1/0?"-0":h}function xa(f){if(f!=null){try{return Zc.call(f)}catch{}try{return f+""}catch{}}return""}function dh(f,h){return Va(ee,function(E){var D="_."+E[0];h&E[1]&&!bu(f,D)&&f.push(D)}),f.sort()}function s0(f){if(f instanceof zt)return f.clone();var h=new Ca(f.__wrapped__,f.__chain__);return h.__actions__=Zr(f.__actions__),h.__index__=f.__index__,h.__values__=f.__values__,h}function gs(f,h,E){(E?Dr(f,h,E):h===n)?h=1:h=an(Wt(h),0);var D=f==null?0:f.length;if(!D||h<1)return[];for(var P=0,q=0,ae=Oe(Qa(D/h));P<D;)ae[q++]=Ra(f,P,P+=h);return ae}function gp(f){for(var h=-1,E=f==null?0:f.length,D=0,P=[];++h<E;){var q=f[h];q&&(P[D++]=q)}return P}function ic(){var f=arguments.length;if(!f)return[];for(var h=Oe(f-1),E=arguments[0],D=f;D--;)h[D-1]=arguments[D];return pl(Yt(E)?Zr(E):[E],dr(h,1))}var Ef=Vt(function(f,h){return qn(f)?Ho(f,dr(h,1,qn,!0)):[]}),Sf=Vt(function(f,h){var E=Jr(h);return qn(E)&&(E=n),qn(f)?Ho(f,dr(h,1,qn,!0),St(E,2)):[]}),lc=Vt(function(f,h){var E=Jr(h);return qn(E)&&(E=n),qn(f)?Ho(f,dr(h,1,qn,!0),n,E):[]});function xp(f,h,E){var D=f==null?0:f.length;return D?(h=E||h===n?1:Wt(h),Ra(f,h<0?0:h,D)):[]}function vp(f,h,E){var D=f==null?0:f.length;return D?(h=E||h===n?1:Wt(h),h=D-h,Ra(f,0,h<0?0:h)):[]}function bf(f,h){return f&&f.length?Ko(f,St(h,3),!0,!0):[]}function yp(f,h){return f&&f.length?Ko(f,St(h,3),!0):[]}function o0(f,h,E,D){var P=f==null?0:f.length;return P?(E&&typeof E!="number"&&Dr(f,h,E)&&(E=0,D=P),ma(f,h,E,D)):[]}function hh(f,h,E){var D=f==null?0:f.length;if(!D)return-1;var P=E==null?0:Wt(E);return P<0&&(P=an(D+P,0)),Tu(f,St(h,3),P)}function _p(f,h,E){var D=f==null?0:f.length;if(!D)return-1;var P=D-1;return E!==n&&(P=Wt(E),P=E<0?an(D+P,0):kt(P,D-1)),Tu(f,St(h,3),P,!0)}function Fa(f){var h=f==null?0:f.length;return h?dr(f,1):[]}function mh(f){var h=f==null?0:f.length;return h?dr(f,Te):[]}function xs(f,h){var E=f==null?0:f.length;return E?(h=h===n?1:Wt(h),dr(f,h)):[]}function wp(f){for(var h=-1,E=f==null?0:f.length,D={};++h<E;){var P=f[h];D[P[0]]=P[1]}return D}function Tf(f){return f&&f.length?f[0]:n}function no(f,h,E){var D=f==null?0:f.length;if(!D)return-1;var P=E==null?0:Wt(E);return P<0&&(P=an(D+P,0)),Oo(f,h,P)}function Ep(f){var h=f==null?0:f.length;return h?Ra(f,0,-1):[]}var ph=Vt(function(f){var h=$n(f,Cl);return h.length&&h[0]===f[0]?Wu(h):[]}),gh=Vt(function(f){var h=Jr(f),E=$n(f,Cl);return h===Jr(E)?h=n:E.pop(),E.length&&E[0]===f[0]?Wu(E,St(h,2)):[]}),Dl=Vt(function(f){var h=Jr(f),E=$n(f,Cl);return h=typeof h=="function"?h:n,h&&E.pop(),E.length&&E[0]===f[0]?Wu(E,n,h):[]});function Sp(f,h){return f==null?"":Nd.call(f,h)}function Jr(f){var h=f==null?0:f.length;return h?f[h-1]:n}function Nf(f,h,E){var D=f==null?0:f.length;if(!D)return-1;var P=D;return E!==n&&(P=Wt(E),P=P<0?an(D+P,0):kt(P,D-1)),h===h?Ta(f,h,P):Tu(f,Do,P,!0)}function Vn(f,h){return f&&f.length?Id(f,Wt(h)):n}var tv=Vt(bp);function bp(f,h){return f&&f.length&&h&&h.length?cf(f,h):f}function Tp(f,h,E){return f&&f.length&&h&&h.length?cf(f,h,St(E,2)):f}function nv(f,h,E){return f&&f.length&&h&&h.length?cf(f,h,n,E):f}var rv=Qi(function(f,h){var E=f==null?0:f.length,D=ss(f,h);return zd(f,$n(h,function(P){return Ei(P,E)?+P:P}).sort(yr)),D});function Xn(f,h){var E=[];if(!(f&&f.length))return E;var D=-1,P=[],q=f.length;for(h=St(h,3);++D<q;){var ae=f[D];h(ae,D,f)&&(E.push(ae),P.push(D))}return zd(f,P),E}function jn(f){return f==null?f:Vs.call(f)}function en(f,h,E){var D=f==null?0:f.length;return D?(E&&typeof E!="number"&&Dr(f,h,E)?(h=0,E=D):(h=h==null?0:Wt(h),E=E===n?D:Wt(E)),Ra(f,h,E)):[]}function fn(f,h){return Xo(f,h)}function Un(f,h,E){return qo(f,h,St(E,2))}function La(f,h){var E=f==null?0:f.length;if(E){var D=Xo(f,h);if(D<E&&ri(f[D],h))return D}return-1}function jl(f,h){return Xo(f,h,!0)}function sc(f,h,E){return qo(f,h,St(E,2),!0)}function xh(f,h){var E=f==null?0:f.length;if(E){var D=Xo(f,h,!0)-1;if(ri(f[D],h))return D}return-1}function kl(f){return f&&f.length?Vd(f):[]}function lr(f,h){return f&&f.length?Vd(f,St(h,2)):[]}function vs(f){var h=f==null?0:f.length;return h?Ra(f,1,h):[]}function ro(f,h,E){return f&&f.length?(h=E||h===n?1:Wt(h),Ra(f,0,h<0?0:h)):[]}function vh(f,h,E){var D=f==null?0:f.length;return D?(h=E||h===n?1:Wt(h),h=D-h,Ra(f,h<0?0:h,D)):[]}function ni(f,h){return f&&f.length?Ko(f,St(h,3),!1,!0):[]}function oc(f,h){return f&&f.length?Ko(f,St(h,3)):[]}var Cf=Vt(function(f){return pa(dr(f,1,qn,!0))}),nl=Vt(function(f){var h=Jr(f);return qn(h)&&(h=n),pa(dr(f,1,qn,!0),St(h,2))}),yh=Vt(function(f){var h=Jr(f);return h=typeof h=="function"?h:n,pa(dr(f,1,qn,!0),n,h)});function _h(f){return f&&f.length?pa(f):[]}function c0(f,h){return f&&f.length?pa(f,St(h,2)):[]}function f0(f,h){return h=typeof h=="function"?h:n,f&&f.length?pa(f,n,h):[]}function rl(f){if(!(f&&f.length))return[];var h=0;return f=Yi(f,function(E){if(qn(E))return h=an(E.length,h),!0}),Ql(h,function(E){return $n(f,Nu(E))})}function Af(f,h){if(!(f&&f.length))return[];var E=rl(f);return h==null?E:$n(E,function(D){return ha(h,n,D)})}var ao=Vt(function(f,h){return qn(f)?Ho(f,h):[]}),Rf=Vt(function(f){return Zu(Yi(f,qn))}),wh=Vt(function(f){var h=Jr(f);return qn(h)&&(h=n),Zu(Yi(f,qn),St(h,2))}),Eh=Vt(function(f){var h=Jr(f);return h=typeof h=="function"?h:n,Zu(Yi(f,qn),n,h)}),Of=Vt(rl);function Sh(f,h){return qd(f||[],h||[],zn)}function Ma(f,h){return qd(f||[],h||[],Vo)}var Np=Vt(function(f){var h=f.length,E=h>1?f[h-1]:n;return E=typeof E=="function"?(f.pop(),E):n,Af(f,E)});function Ir(f){var h=H(f);return h.__chain__=!0,h}function Cp(f,h){return h(f),f}function cc(f,h){return h(f)}var Ap=Qi(function(f){var h=f.length,E=h?f[0]:0,D=this.__wrapped__,P=function(q){return ss(q,f)};return h>1||this.__actions__.length||!(D instanceof zt)||!Ei(E)?this.thru(P):(D=D.slice(E,+E+(h?1:0)),D.__actions__.push({func:cc,args:[P],thisArg:n}),new Ca(D,this.__chain__).thru(function(q){return h&&!q.length&&q.push(n),q}))});function av(){return Ir(this)}function Fl(){return new Ca(this.value(),this.__chain__)}function u0(){this.__values__===n&&(this.__values__=qp(this.value()));var f=this.__index__>=this.__values__.length,h=f?n:this.__values__[this.__index__++];return{done:f,value:h}}function bh(){return this}function fc(f){for(var h,E=this;E instanceof tf;){var D=s0(E);D.__index__=0,D.__values__=n,h?P.__wrapped__=D:h=D;var P=D;E=E.__wrapped__}return P.__wrapped__=f,h}function Rp(){var f=this.__wrapped__;if(f instanceof zt){var h=f;return this.__actions__.length&&(h=new zt(this)),h=h.reverse(),h.__actions__.push({func:cc,args:[jn],thisArg:n}),new Ca(h,this.__chain__)}return this.thru(jn)}function Op(){return Ku(this.__wrapped__,this.__actions__)}var Dp=Qo(function(f,h,E){vn.call(f,E)?++f[E]:Aa(f,E,1)});function Th(f,h,E){var D=Yt(f)?Sm:Fd;return E&&Dr(f,h,E)&&(h=n),D(f,St(h,3))}function Nh(f,h){var E=Yt(f)?Yi:ur;return E(f,St(h,3))}var iv=Ju(hh),lv=Ju(_p);function sv(f,h){return dr(Ll(f,h),1)}function jp(f,h){return dr(Ll(f,h),Te)}function kp(f,h,E){return E=E===n?1:Wt(E),dr(Ll(f,h),E)}function io(f,h){var E=Yt(f)?Va:os;return E(f,St(h,3))}function Df(f,h){var E=Yt(f)?Fx:$u;return E(f,St(h,3))}var Fp=Qo(function(f,h,E){vn.call(f,E)?f[E].push(h):Aa(f,E,[h])});function Lp(f,h,E,D){f=Gt(f)?f:Pa(f),E=E&&!D?Wt(E):0;var P=f.length;return E<0&&(E=an(P+E,0)),w0(f)?E<=P&&f.indexOf(h,E)>-1:!!P&&Oo(f,h,E)>-1}var ov=Vt(function(f,h,E){var D=-1,P=typeof h=="function",q=Gt(f)?Oe(f.length):[];return os(f,function(ae){q[++D]=P?ha(h,ae,E):zo(ae,h,E)}),q}),Mp=Qo(function(f,h,E){Aa(f,E,h)});function Ll(f,h){var E=Yt(f)?$n:sf;return E(f,St(h,3))}function Bp(f,h,E,D){return f==null?[]:(Yt(h)||(h=h==null?[]:[h]),E=D?n:E,Yt(E)||(E=E==null?[]:[E]),Yd(f,h,E))}var kn=Qo(function(f,h,E){f[E?0:1].push(h)},function(){return[[],[]]});function Ch(f,h,E){var D=Yt(f)?gd:yd,P=arguments.length<3;return D(f,St(h,4),E,P,os)}function cv(f,h,E){var D=Yt(f)?Lx:yd,P=arguments.length<3;return D(f,St(h,4),E,P,$u)}function Pp(f,h){var E=Yt(f)?Yi:ur;return E(f,h0(St(h,3)))}function fv(f){var h=Yt(f)?Dd:np;return h(f)}function uv(f,h,E){(E?Dr(f,h,E):h===n)?h=1:h=Wt(h);var D=Yt(f)?is:Gd;return D(f,h)}function dv(f){var h=Yt(f)?Xt:Qx;return h(f)}function d0(f){if(f==null)return 0;if(Gt(f))return w0(f)?Hi(f):f.length;var h=hr(f);return h==Qe||h==Bt?f.size:cs(f).length}function uc(f,h,E){var D=Yt(f)?xd:uf;return E&&Dr(f,h,E)&&(h=n),D(f,St(h,3))}var Ah=Vt(function(f,h){if(f==null)return[];var E=h.length;return E>1&&Dr(f,h[0],h[1])?h=[]:E>2&&Dr(h[0],h[1],h[2])&&(h=[h[0]]),Yd(f,dr(h,1),[])}),lo=Za||function(){return cr.Date.now()};function Rh(f,h){if(typeof h!="function")throw new Na(o);return f=Wt(f),function(){if(--f<1)return h.apply(this,arguments)}}function ys(f,h,E){return h=E?n:h,h=f&&h==null?f.length:h,yi(f,L,n,n,n,n,h)}function Si(f,h){var E;if(typeof h!="function")throw new Na(o);return f=Wt(f),function(){return--f>0&&(E=h.apply(this,arguments)),f<=1&&(h=n),E}}var so=Vt(function(f,h,E){var D=T;if(E.length){var P=es(E,Oa(so));D|=O}return yi(f,D,h,E,P)}),Up=Vt(function(f,h,E){var D=T|C;if(E.length){var P=es(E,Oa(Up));D|=O}return yi(h,D,f,E,P)});function Oh(f,h,E){h=E?n:h;var D=yi(f,A,n,n,n,n,n,h);return D.placeholder=Oh.placeholder,D}function Dh(f,h,E){h=E?n:h;var D=yi(f,j,n,n,n,n,n,h);return D.placeholder=Dh.placeholder,D}function jh(f,h,E){var D,P,q,ae,se,pe,Ue=0,He=!1,Ze=!1,ot=!0;if(typeof f!="function")throw new Na(o);h=kr(h)||0,Wn(E)&&(He=!!E.leading,Ze="maxWait"in E,q=Ze?an(kr(E.maxWait)||0,h):q,ot="trailing"in E?!!E.trailing:ot);function wt(wr){var Ul=D,oo=P;return D=P=n,Ue=wr,ae=f.apply(oo,Ul),ae}function Dt(wr){return Ue=wr,se=Ur(sn,h),He?wt(wr):ae}function Zt(wr){var Ul=wr-pe,oo=wr-Ue,r_=h-Ul;return Ze?kt(r_,q-oo):r_}function jt(wr){var Ul=wr-pe,oo=wr-Ue;return pe===n||Ul>=h||Ul<0||Ze&&oo>=q}function sn(){var wr=lo();if(jt(wr))return hn(wr);se=Ur(sn,Zt(wr))}function hn(wr){return se=n,ot&&D?wt(wr):(D=P=n,ae)}function Ni(){se!==n&&df(se),Ue=0,D=pe=P=se=n}function Ua(){return se===n?ae:hn(lo())}function Ci(){var wr=lo(),Ul=jt(wr);if(D=arguments,P=this,pe=wr,Ul){if(se===n)return Dt(pe);if(Ze)return df(se),se=Ur(sn,h),wt(pe)}return se===n&&(se=Ur(sn,h)),ae}return Ci.cancel=Ni,Ci.flush=Ua,Ci}var hv=Vt(function(f,h){return kd(f,1,h)}),kh=Vt(function(f,h,E){return kd(f,kr(h)||0,E)});function Ip(f){return yi(f,U)}function jf(f,h){if(typeof f!="function"||h!=null&&typeof h!="function")throw new Na(o);var E=function(){var D=arguments,P=h?h.apply(this,D):D[0],q=E.cache;if(q.has(P))return q.get(P);var ae=f.apply(this,D);return E.cache=q.set(P,ae)||q,ae};return E.cache=new(jf.Cache||bl),E}jf.Cache=bl;function h0(f){if(typeof f!="function")throw new Na(o);return function(){var h=arguments;switch(h.length){case 0:return!f.call(this);case 1:return!f.call(this,h[0]);case 2:return!f.call(this,h[0],h[1]);case 3:return!f.call(this,h[0],h[1],h[2])}return!f.apply(this,h)}}function Fh(f){return Si(2,f)}var Lh=rp(function(f,h){h=h.length==1&&Yt(h[0])?$n(h[0],ba(St())):$n(dr(h,1),ba(St()));var E=h.length;return Vt(function(D){for(var P=-1,q=kt(D.length,E);++P<q;)D[P]=h[P].call(this,D[P]);return ha(f,this,D)})}),Mh=Vt(function(f,h){var E=es(h,Oa(Mh));return yi(f,O,n,h,E)}),Yp=Vt(function(f,h){var E=es(h,Oa(Yp));return yi(f,B,n,h,E)}),kf=Qi(function(f,h){return yi(f,I,n,n,n,h)});function mv(f,h){if(typeof f!="function")throw new Na(o);return h=h===n?h:Wt(h),Vt(f,h)}function Hp(f,h){if(typeof f!="function")throw new Na(o);return h=h==null?0:an(Wt(h),0),Vt(function(E){var D=E[h],P=Rl(E,0,h);return D&&pl(P,D),ha(f,this,P)})}function ln(f,h,E){var D=!0,P=!0;if(typeof f!="function")throw new Na(o);return Wn(E)&&(D="leading"in E?!!E.leading:D,P="trailing"in E?!!E.trailing:P),jh(f,h,{leading:D,maxWait:h,trailing:P})}function Bh(f){return ys(f,1)}function m0(f,h){return Mh(Zo(h),f)}function Ph(){if(!arguments.length)return[];var f=arguments[0];return Yt(f)?f:[f]}function $p(f){return pn(f,w)}function Uh(f,h){return h=typeof h=="function"?h:n,pn(f,w,h)}function Ff(f){return pn(f,y|w)}function p0(f,h){return h=typeof h=="function"?h:n,pn(f,y|w,h)}function dc(f,h){return h==null||Hu(f,h,_r(h))}function ri(f,h){return f===h||f!==f&&h!==h}var pv=tc(Gu),gv=tc(function(f,h){return f>=h}),_s=Vm(function(){return arguments}())?Vm:function(f){return sr(f)&&vn.call(f,"callee")&&!Td.call(f,"callee")},Yt=Oe.isArray,g0=Su?ba(Su):Xm;function Gt(f){return f!=null&&v0(f.length)&&!Ml(f)}function qn(f){return sr(f)&&Gt(f)}function jr(f){return f===!0||f===!1||sr(f)&&Br(f)==Ce}var ws=Bm||Pv,Ih=vm?ba(vm):qm;function Yh(f){return sr(f)&&f.nodeType===1&&!Yr(f)}function x0(f){if(f==null)return!0;if(Gt(f)&&(Yt(f)||typeof f=="string"||typeof f.splice=="function"||ws(f)||Ti(f)||_s(f)))return!f.length;var h=hr(f);if(h==Qe||h==Bt)return!f.size;if(ir(f))return!cs(f).length;for(var E in f)if(vn.call(f,E))return!1;return!0}function zp(f,h){return Go(f,h)}function Gp(f,h,E){E=typeof E=="function"?E:n;var D=E?E(f,h):n;return D===n?Go(f,h,n,E):!!D}function Lf(f){if(!sr(f))return!1;var h=Br(f);return h==Be||h==oe||typeof f.message=="string"&&typeof f.name=="string"&&!Yr(f)}function Hh(f){return typeof f=="number"&&Lu(f)}function Ml(f){if(!Wn(f))return!1;var h=Br(f);return h==Xe||h==rt||h==Fe||h==gn}function $h(f){return typeof f=="number"&&f==Wt(f)}function v0(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=Ne}function Wn(f){var h=typeof f;return f!=null&&(h=="object"||h=="function")}function sr(f){return f!=null&&typeof f=="object"}var Wp=ym?ba(ym):Km;function zh(f,h){return f===h||Vu(f,h,yf(h))}function Gh(f,h,E){return E=typeof E=="function"?E:n,Vu(f,h,yf(h),E)}function xv(f){return Wh(f)&&f!=+f}function vv(f){if(up(f))throw new At(s);return Bd(f)}function bi(f){return f===null}function Vp(f){return f==null}function Wh(f){return typeof f=="number"||sr(f)&&Br(f)==ft}function Yr(f){if(!sr(f)||Br(f)!=We)return!1;var h=Hs(f);if(h===null)return!0;var E=vn.call(h,"constructor")&&h.constructor;return typeof E=="function"&&E instanceof E&&Zc.call(E)==Mo}var y0=_m?ba(_m):Zm;function _0(f){return $h(f)&&f>=-9007199254740991&&f<=Ne}var al=wm?ba(wm):Qm;function w0(f){return typeof f=="string"||!Yt(f)&&sr(f)&&Br(f)==An}function Ba(f){return typeof f=="symbol"||sr(f)&&Br(f)==Rn}var Ti=Em?ba(Em):qx;function Xp(f){return f===n}function yv(f){return sr(f)&&hr(f)==cn}function _v(f){return sr(f)&&Br(f)==yt}var wv=tc(Wo),Ev=tc(function(f,h){return f<=h});function qp(f){if(!f)return[];if(Gt(f))return w0(f)?Xa(f):Zr(f);if(zi&&f[zi])return Dm(f[zi]());var h=hr(f),E=h==Qe?Du:h==Bt?ju:Pa;return E(f)}function Bl(f){if(!f)return f===0?f:0;if(f=kr(f),f===Te||f===-1/0){var h=f<0?-1:1;return h*$e}return f===f?f:0}function Wt(f){var h=Bl(f),E=h%1;return h===h?E?h-E:h:0}function Vh(f){return f?Zs(Wt(f),0,et):0}function kr(f){if(typeof f=="number")return f;if(Ba(f))return Pe;if(Wn(f)){var h=typeof f.valueOf=="function"?f.valueOf():f;f=Wn(h)?h+"":h}if(typeof f!="string")return f===0?f:+f;f=Cm(f);var E=we.test(f);return E||Se.test(f)?jx(f.slice(2),E?2:8):Re.test(f)?Pe:+f}function hc(f){return gi(f,ea(f))}function Kp(f){return f?Zs(Wt(f),-9007199254740991,Ne):f===0?f:0}function _n(f){return f==null?"":ar(f)}var mc=eo(function(f,h){if(ir(h)||Gt(h)){gi(h,_r(h),f);return}for(var E in h)vn.call(h,E)&&zn(f,E,h[E])}),pc=eo(function(f,h){gi(h,ea(h),f)}),Mf=eo(function(f,h,E,D){gi(h,ea(h),f,D)}),E0=eo(function(f,h,E,D){gi(h,_r(h),f,D)}),Xh=Qi(ss);function qh(f,h){var E=El(f);return h==null?E:ls(E,h)}var S0=Vt(function(f,h){f=Dn(f);var E=-1,D=h.length,P=D>2?h[2]:n;for(P&&Dr(h[0],h[1],P)&&(D=1);++E<D;)for(var q=h[E],ae=ea(q),se=-1,pe=ae.length;++se<pe;){var Ue=ae[se],He=f[Ue];(He===n||ri(He,Lo[Ue])&&!vn.call(f,Ue))&&(f[Ue]=q[Ue])}return f}),Zp=Vt(function(f){return f.push(n,nc),ha(Uf,n,f)});function Qp(f,h){return bm(f,St(h,3),ti)}function Sv(f,h){return bm(f,St(h,3),pi)}function Jp(f,h){return f==null?f:Qs(f,St(h,3),ea)}function Bf(f,h){return f==null?f:lf(f,St(h,3),ea)}function bv(f,h){return f&&ti(f,St(h,3))}function Tv(f,h){return f&&pi(f,St(h,3))}function Nv(f){return f==null?[]:Js(f,_r(f))}function b0(f){return f==null?[]:Js(f,ea(f))}function gc(f,h,E){var D=f==null?n:Nl(f,h);return D===n?E:D}function Kh(f,h){return f!=null&&lh(f,h,zm)}function Zh(f,h){return f!=null&&lh(f,h,Gm)}var Pf=t0(function(f,h,E){h!=null&&typeof h.toString!="function"&&(h=Xr.call(h)),f[h]=E},mt(xn)),Cv=t0(function(f,h,E){h!=null&&typeof h.toString!="function"&&(h=Xr.call(h)),vn.call(f,h)?f[h].push(E):f[h]=[E]},St),eg=Vt(zo);function _r(f){return Gt(f)?af(f):cs(f)}function ea(f){return Gt(f)?af(f,!0):Jm(f)}function tg(f,h){var E={};return h=St(h,3),ti(f,function(D,P,q){Aa(E,h(D,P,q),D)}),E}function Qh(f,h){var E={};return h=St(h,3),ti(f,function(D,P,q){Aa(E,P,h(D,P,q))}),E}var ng=eo(function(f,h,E){of(f,h,E)}),Uf=eo(function(f,h,E,D){of(f,h,E,D)}),Av=Qi(function(f,h){var E={};if(f==null)return E;var D=!1;h=$n(h,function(q){return q=Al(q,f),D||(D=q.length>1),q}),gi(f,xf(f),E),D&&(E=pn(E,y|v|w,r0));for(var P=h.length;P--;)Ki(E,h[P]);return E});function Rv(f,h){return T0(f,h0(St(h)))}var Jh=Qi(function(f,h){return f==null?{}:Hd(f,h)});function T0(f,h){if(f==null)return{};var E=$n(xf(f),function(D){return[D]});return h=St(h),$d(f,E,function(D,P){return h(D,P[0])})}function N0(f,h,E){h=Al(h,f);var D=-1,P=h.length;for(P||(P=1,f=n);++D<P;){var q=f==null?n:f[Qr(h[D])];q===n&&(D=P,q=E),f=Ml(q)?q.call(f):q}return f}function e1(f,h,E){return f==null?f:Vo(f,h,E)}function rg(f,h,E,D){return D=typeof D=="function"?D:n,f==null?f:Vo(f,h,E,D)}var C0=Zi(_r),Pl=Zi(ea);function Es(f,h,E){var D=Yt(f),P=D||ws(f)||Ti(f);if(h=St(h,4),E==null){var q=f&&f.constructor;P?E=D?new q:[]:Wn(f)?E=Ml(q)?El(Hs(f)):{}:E={}}return(P?Va:ti)(f,function(ae,se,pe){return h(E,ae,se,pe)}),E}function Ss(f,h){return f==null?!0:Ki(f,h)}function If(f,h,E){return f==null?f:fs(f,h,Zo(E))}function Yf(f,h,E,D){return D=typeof D=="function"?D:n,f==null?f:fs(f,h,Zo(E),D)}function Pa(f){return f==null?[]:Ru(f,_r(f))}function Ov(f){return f==null?[]:Ru(f,ea(f))}function ag(f,h,E){return E===n&&(E=h,h=n),E!==n&&(E=kr(E),E=E===E?E:0),h!==n&&(h=kr(h),h=h===h?h:0),Zs(kr(f),h,E)}function Hf(f,h,E){return h=Bl(h),E===n?(E=h,h=0):E=Bl(E),f=kr(f),Wm(f,h,E)}function Dv(f,h,E){if(E&&typeof E!="boolean"&&Dr(f,h,E)&&(h=E=n),E===n&&(typeof h=="boolean"?(E=h,h=n):typeof f=="boolean"&&(E=f,f=n)),f===n&&h===n?(f=0,h=1):(f=Bl(f),h===n?(h=f,f=0):h=Bl(h)),f>h){var D=f;f=h,h=D}if(E||f%1||h%1){var P=Mu();return kt(f+P*(h-f+qc("1e-"+((P+"").length-1))),h)}return qu(f,h)}var ig=us(function(f,h,E){return h=h.toLowerCase(),f+(E?$f(h):h)});function $f(f){return Lt(_n(f).toLowerCase())}function t1(f){return f=_n(f),f&&f.replace(tt,Ou).replace(Wc,"")}function jv(f,h,E){f=_n(f),h=ar(h);var D=f.length;E=E===n?D:Zs(Wt(E),0,D);var P=E;return E-=h.length,E>=0&&f.slice(E,P)==h}function A0(f){return f=_n(f),f&&Mr.test(f)?f.replace(Wr,Am):f}function R0(f){return f=_n(f),f&&vt.test(f)?f.replace(st,"\\$&"):f}var lg=us(function(f,h,E){return f+(E?"-":"")+h.toLowerCase()}),zf=us(function(f,h,E){return f+(E?" ":"")+h.toLowerCase()}),n1=Qu("toLowerCase");function O0(f,h,E){f=_n(f),h=Wt(h);var D=h?Hi(f):0;if(!h||D>=h)return f;var P=(h-D)/2;return ec(Ja(P),E)+f+ec(Qa(P),E)}function sg(f,h,E){f=_n(f),h=Wt(h);var D=h?Hi(f):0;return h&&D<h?f+ec(h-D,E):f}function kv(f,h,E){f=_n(f),h=Wt(h);var D=h?Hi(f):0;return h&&D<h?ec(h-D,E)+f:f}function D0(f,h,E){return E||h==null?h=0:h&&(h=+h),Wi(_n(f).replace(Nt,""),h||0)}function a(f,h,E){return(E?Dr(f,h,E):h===n)?h=1:h=Wt(h),ff(_n(f),h)}function l(){var f=arguments,h=_n(f[0]);return f.length<3?h:h.replace(f[1],f[2])}var c=us(function(f,h,E){return f+(E?"_":"")+h.toLowerCase()});function m(f,h,E){return E&&typeof E!="number"&&Dr(f,h,E)&&(h=E=n),E=E===n?et:E>>>0,E?(f=_n(f),f&&(typeof h=="string"||h!=null&&!y0(h))&&(h=ar(h),!h&&Jl(f))?Rl(Xa(f),0,E):f.split(h,E)):[]}var _=us(function(f,h,E){return f+(E?" ":"")+Lt(h)});function N(f,h,E){return f=_n(f),E=E==null?0:Zs(Wt(E),0,f.length),h=ar(h),f.slice(E,E+h.length)==h}function F(f,h,E){var D=H.templateSettings;E&&Dr(f,h,E)&&(h=n),f=_n(f),h=Mf({},h,D,n0);var P=Mf({},h.imports,D.imports,n0),q=_r(P),ae=Ru(P,q),se,pe,Ue=0,He=h.interpolate||at,Ze="__p += '",ot=gl((h.escape||at).source+"|"+He.source+"|"+(He===le?Q:at).source+"|"+(h.evaluate||at).source+"|$","g"),wt="//# sourceURL="+(vn.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++pm+"]")+`
-`;f.replace(ot,function(jt,sn,hn,Ni,Ua,Ci){return hn||(hn=Ni),Ze+=f.slice(Ue,Ci).replace(qe,Rm),sn&&(se=!0,Ze+=`' +
-__e(`+sn+`) +
-'`),Ua&&(pe=!0,Ze+=`';
-`+Ua+`;
-__p += '`),hn&&(Ze+=`' +
-((__t = (`+hn+`)) == null ? '' : __t) +
-'`),Ue=Ci+jt.length,jt}),Ze+=`';
-`;var Dt=vn.call(h,"variable")&&h.variable;if(!Dt)Ze=`with (obj) {
-`+Ze+`
-}
-`;else if(G.test(Dt))throw new At(u);Ze=(pe?Ze.replace(tr,""):Ze).replace(_a,"$1").replace(Ga,"$1;"),Ze="function("+(Dt||"obj")+`) {
-`+(Dt?"":`obj || (obj = {});
-`)+"var __t, __p = ''"+(se?", __e = _.escape":"")+(pe?`, __j = Array.prototype.join;
-function print() { __p += __j.call(arguments, '') }
-`:`;
-`)+Ze+`return __p
-}`;var Zt=ge(function(){return rn(q,wt+"return "+Ze).apply(n,ae)});if(Zt.source=Ze,Lf(Zt))throw Zt;return Zt}function z(f){return _n(f).toLowerCase()}function re(f){return _n(f).toUpperCase()}function ue(f,h,E){if(f=_n(f),f&&(E||h===n))return Cm(f);if(!f||!(h=ar(h)))return f;var D=Xa(f),P=Xa(h),q=ko(D,P),ae=Fo(D,P)+1;return Rl(D,q,ae).join("")}function Me(f,h,E){if(f=_n(f),f&&(E||h===n))return f.slice(0,wd(f)+1);if(!f||!(h=ar(h)))return f;var D=Xa(f),P=Fo(D,Xa(h))+1;return Rl(D,0,P).join("")}function Ve(f,h,E){if(f=_n(f),f&&(E||h===n))return f.replace(Nt,"");if(!f||!(h=ar(h)))return f;var D=Xa(f),P=ko(D,Xa(h));return Rl(D,P).join("")}function Ae(f,h){var E=W,D=X;if(Wn(h)){var P="separator"in h?h.separator:P;E="length"in h?Wt(h.length):E,D="omission"in h?ar(h.omission):D}f=_n(f);var q=f.length;if(Jl(f)){var ae=Xa(f);q=ae.length}if(E>=q)return f;var se=E-Hi(D);if(se<1)return D;var pe=ae?Rl(ae,0,se).join(""):f.slice(0,se);if(P===n)return pe+D;if(ae&&(se+=pe.length-se),y0(P)){if(f.slice(se).search(P)){var Ue,He=pe;for(P.global||(P=gl(P.source,_n(he.exec(P))+"g")),P.lastIndex=0;Ue=P.exec(He);)var Ze=Ue.index;pe=pe.slice(0,Ze===n?se:Ze)}}else if(f.indexOf(ar(P),se)!=se){var ot=pe.lastIndexOf(P);ot>-1&&(pe=pe.slice(0,ot))}return pe+D}function Le(f){return f=_n(f),f&&nr.test(f)?f.replace(ca,km):f}var _t=us(function(f,h,E){return f+(E?" ":"")+h.toUpperCase()}),Lt=Qu("toUpperCase");function Kn(f,h,E){return f=_n(f),h=E?n:h,h===n?Om(f)?$x(f):Px(f):f.match(h)||[]}var ge=Vt(function(f,h){try{return ha(f,n,h)}catch(E){return Lf(E)?E:new At(E)}}),fe=Qi(function(f,h){return Va(h,function(E){E=Qr(E),Aa(f,E,so(f[E],f))}),f});function be(f){var h=f==null?0:f.length,E=St();return f=h?$n(f,function(D){if(typeof D[1]!="function")throw new Na(o);return[E(D[0]),D[1]]}):[],Vt(function(D){for(var P=-1;++P<h;){var q=f[P];if(ha(q[0],this,D))return ha(q[1],this,D)}})}function Ye(f){return jd(pn(f,y))}function mt(f){return function(){return f}}function Kt(f,h){return f==null||f!==f?h:f}var Et=e0(),Rt=e0(!0);function xn(f){return f}function un(f){return Pd(typeof f=="function"?f:pn(f,y))}function bs(f){return Ud(pn(f,y))}function Fv(f,h){return Xu(f,pn(h,y))}var Sb=Vt(function(f,h){return function(E){return zo(E,f,h)}}),bb=Vt(function(f,h){return function(E){return zo(f,E,h)}});function Lv(f,h,E){var D=_r(h),P=Js(h,D);E==null&&!(Wn(h)&&(P.length||!D.length))&&(E=h,h=f,f=this,P=Js(h,_r(h)));var q=!(Wn(E)&&"chain"in E)||!!E.chain,ae=Ml(f);return Va(P,function(se){var pe=h[se];f[se]=pe,ae&&(f.prototype[se]=function(){var Ue=this.__chain__;if(q||Ue){var He=f(this.__wrapped__),Ze=He.__actions__=Zr(this.__actions__);return Ze.push({func:pe,args:arguments,thisArg:f}),He.__chain__=Ue,He}return pe.apply(f,pl([this.value()],arguments))})}),f}function Tb(){return cr._===this&&(cr._=Sd),this}function Mv(){}function Nb(f){return f=Wt(f),Vt(function(h){return Id(h,f)})}var Cb=xi($n),Ab=xi(Sm),Rb=xi(xd);function n_(f){return ac(f)?Nu(Qr(f)):tp(f)}function Ob(f){return function(h){return f==null?n:Nl(f,h)}}var Db=ah(),jb=ah(!0);function Bv(){return[]}function Pv(){return!1}function kb(){return{}}function Fb(){return""}function Lb(){return!0}function Mb(f,h){if(f=Wt(f),f<1||f>Ne)return[];var E=et,D=kt(f,et);h=St(h),f-=et;for(var P=Ql(D,h);++E<f;)h(E);return P}function Bb(f){return Yt(f)?$n(f,Qr):Ba(f)?[f]:Zr(tl(_n(f)))}function Pb(f){var h=++Mm;return _n(f)+h}var Ub=gf(function(f,h){return f+h},0),Ib=vi("ceil"),Yb=gf(function(f,h){return f/h},1),Hb=vi("floor");function $b(f){return f&&f.length?$o(f,xn,Gu):n}function zb(f,h){return f&&f.length?$o(f,St(h,2),Gu):n}function Gb(f){return Tm(f,xn)}function Wb(f,h){return Tm(f,St(h,2))}function Vb(f){return f&&f.length?$o(f,xn,Wo):n}function Xb(f,h){return f&&f.length?$o(f,St(h,2),Wo):n}var qb=gf(function(f,h){return f*h},1),Kb=vi("round"),Zb=gf(function(f,h){return f-h},0);function Qb(f){return f&&f.length?Au(f,xn):0}function Jb(f,h){return f&&f.length?Au(f,St(h,2)):0}return H.after=Rh,H.ary=ys,H.assign=mc,H.assignIn=pc,H.assignInWith=Mf,H.assignWith=E0,H.at=Xh,H.before=Si,H.bind=so,H.bindAll=fe,H.bindKey=Up,H.castArray=Ph,H.chain=Ir,H.chunk=gs,H.compact=gp,H.concat=ic,H.cond=be,H.conforms=Ye,H.constant=mt,H.countBy=Dp,H.create=qh,H.curry=Oh,H.curryRight=Dh,H.debounce=jh,H.defaults=S0,H.defaultsDeep=Zp,H.defer=hv,H.delay=kh,H.difference=Ef,H.differenceBy=Sf,H.differenceWith=lc,H.drop=xp,H.dropRight=vp,H.dropRightWhile=bf,H.dropWhile=yp,H.fill=o0,H.filter=Nh,H.flatMap=sv,H.flatMapDeep=jp,H.flatMapDepth=kp,H.flatten=Fa,H.flattenDeep=mh,H.flattenDepth=xs,H.flip=Ip,H.flow=Et,H.flowRight=Rt,H.fromPairs=wp,H.functions=Nv,H.functionsIn=b0,H.groupBy=Fp,H.initial=Ep,H.intersection=ph,H.intersectionBy=gh,H.intersectionWith=Dl,H.invert=Pf,H.invertBy=Cv,H.invokeMap=ov,H.iteratee=un,H.keyBy=Mp,H.keys=_r,H.keysIn=ea,H.map=Ll,H.mapKeys=tg,H.mapValues=Qh,H.matches=bs,H.matchesProperty=Fv,H.memoize=jf,H.merge=ng,H.mergeWith=Uf,H.method=Sb,H.methodOf=bb,H.mixin=Lv,H.negate=h0,H.nthArg=Nb,H.omit=Av,H.omitBy=Rv,H.once=Fh,H.orderBy=Bp,H.over=Cb,H.overArgs=Lh,H.overEvery=Ab,H.overSome=Rb,H.partial=Mh,H.partialRight=Yp,H.partition=kn,H.pick=Jh,H.pickBy=T0,H.property=n_,H.propertyOf=Ob,H.pull=tv,H.pullAll=bp,H.pullAllBy=Tp,H.pullAllWith=nv,H.pullAt=rv,H.range=Db,H.rangeRight=jb,H.rearg=kf,H.reject=Pp,H.remove=Xn,H.rest=mv,H.reverse=jn,H.sampleSize=uv,H.set=e1,H.setWith=rg,H.shuffle=dv,H.slice=en,H.sortBy=Ah,H.sortedUniq=kl,H.sortedUniqBy=lr,H.split=m,H.spread=Hp,H.tail=vs,H.take=ro,H.takeRight=vh,H.takeRightWhile=ni,H.takeWhile=oc,H.tap=Cp,H.throttle=ln,H.thru=cc,H.toArray=qp,H.toPairs=C0,H.toPairsIn=Pl,H.toPath=Bb,H.toPlainObject=hc,H.transform=Es,H.unary=Bh,H.union=Cf,H.unionBy=nl,H.unionWith=yh,H.uniq=_h,H.uniqBy=c0,H.uniqWith=f0,H.unset=Ss,H.unzip=rl,H.unzipWith=Af,H.update=If,H.updateWith=Yf,H.values=Pa,H.valuesIn=Ov,H.without=ao,H.words=Kn,H.wrap=m0,H.xor=Rf,H.xorBy=wh,H.xorWith=Eh,H.zip=Of,H.zipObject=Sh,H.zipObjectDeep=Ma,H.zipWith=Np,H.entries=C0,H.entriesIn=Pl,H.extend=pc,H.extendWith=Mf,Lv(H,H),H.add=Ub,H.attempt=ge,H.camelCase=ig,H.capitalize=$f,H.ceil=Ib,H.clamp=ag,H.clone=$p,H.cloneDeep=Ff,H.cloneDeepWith=p0,H.cloneWith=Uh,H.conformsTo=dc,H.deburr=t1,H.defaultTo=Kt,H.divide=Yb,H.endsWith=jv,H.eq=ri,H.escape=A0,H.escapeRegExp=R0,H.every=Th,H.find=iv,H.findIndex=hh,H.findKey=Qp,H.findLast=lv,H.findLastIndex=_p,H.findLastKey=Sv,H.floor=Hb,H.forEach=io,H.forEachRight=Df,H.forIn=Jp,H.forInRight=Bf,H.forOwn=bv,H.forOwnRight=Tv,H.get=gc,H.gt=pv,H.gte=gv,H.has=Kh,H.hasIn=Zh,H.head=Tf,H.identity=xn,H.includes=Lp,H.indexOf=no,H.inRange=Hf,H.invoke=eg,H.isArguments=_s,H.isArray=Yt,H.isArrayBuffer=g0,H.isArrayLike=Gt,H.isArrayLikeObject=qn,H.isBoolean=jr,H.isBuffer=ws,H.isDate=Ih,H.isElement=Yh,H.isEmpty=x0,H.isEqual=zp,H.isEqualWith=Gp,H.isError=Lf,H.isFinite=Hh,H.isFunction=Ml,H.isInteger=$h,H.isLength=v0,H.isMap=Wp,H.isMatch=zh,H.isMatchWith=Gh,H.isNaN=xv,H.isNative=vv,H.isNil=Vp,H.isNull=bi,H.isNumber=Wh,H.isObject=Wn,H.isObjectLike=sr,H.isPlainObject=Yr,H.isRegExp=y0,H.isSafeInteger=_0,H.isSet=al,H.isString=w0,H.isSymbol=Ba,H.isTypedArray=Ti,H.isUndefined=Xp,H.isWeakMap=yv,H.isWeakSet=_v,H.join=Sp,H.kebabCase=lg,H.last=Jr,H.lastIndexOf=Nf,H.lowerCase=zf,H.lowerFirst=n1,H.lt=wv,H.lte=Ev,H.max=$b,H.maxBy=zb,H.mean=Gb,H.meanBy=Wb,H.min=Vb,H.minBy=Xb,H.stubArray=Bv,H.stubFalse=Pv,H.stubObject=kb,H.stubString=Fb,H.stubTrue=Lb,H.multiply=qb,H.nth=Vn,H.noConflict=Tb,H.noop=Mv,H.now=lo,H.pad=O0,H.padEnd=sg,H.padStart=kv,H.parseInt=D0,H.random=Dv,H.reduce=Ch,H.reduceRight=cv,H.repeat=a,H.replace=l,H.result=N0,H.round=Kb,H.runInContext=de,H.sample=fv,H.size=d0,H.snakeCase=c,H.some=uc,H.sortedIndex=fn,H.sortedIndexBy=Un,H.sortedIndexOf=La,H.sortedLastIndex=jl,H.sortedLastIndexBy=sc,H.sortedLastIndexOf=xh,H.startCase=_,H.startsWith=N,H.subtract=Zb,H.sum=Qb,H.sumBy=Jb,H.template=F,H.times=Mb,H.toFinite=Bl,H.toInteger=Wt,H.toLength=Vh,H.toLower=z,H.toNumber=kr,H.toSafeInteger=Kp,H.toString=_n,H.toUpper=re,H.trim=ue,H.trimEnd=Me,H.trimStart=Ve,H.truncate=Ae,H.unescape=Le,H.uniqueId=Pb,H.upperCase=_t,H.upperFirst=Lt,H.each=io,H.eachRight=Df,H.first=Tf,Lv(H,function(){var f={};return ti(H,function(h,E){vn.call(H.prototype,E)||(f[E]=h)}),f}(),{chain:!1}),H.VERSION=r,Va(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){H[f].placeholder=H}),Va(["drop","take"],function(f,h){zt.prototype[f]=function(E){E=E===n?1:an(Wt(E),0);var D=this.__filtered__&&!h?new zt(this):this.clone();return D.__filtered__?D.__takeCount__=kt(E,D.__takeCount__):D.__views__.push({size:kt(E,et),type:f+(D.__dir__<0?"Right":"")}),D},zt.prototype[f+"Right"]=function(E){return this.reverse()[f](E).reverse()}}),Va(["filter","map","takeWhile"],function(f,h){var E=h+1,D=E==_e||E==ce;zt.prototype[f]=function(P){var q=this.clone();return q.__iteratees__.push({iteratee:St(P,3),type:E}),q.__filtered__=q.__filtered__||D,q}}),Va(["head","last"],function(f,h){var E="take"+(h?"Right":"");zt.prototype[f]=function(){return this[E](1).value()[0]}}),Va(["initial","tail"],function(f,h){var E="drop"+(h?"":"Right");zt.prototype[f]=function(){return this.__filtered__?new zt(this):this[E](1)}}),zt.prototype.compact=function(){return this.filter(xn)},zt.prototype.find=function(f){return this.filter(f).head()},zt.prototype.findLast=function(f){return this.reverse().find(f)},zt.prototype.invokeMap=Vt(function(f,h){return typeof f=="function"?new zt(this):this.map(function(E){return zo(E,f,h)})}),zt.prototype.reject=function(f){return this.filter(h0(St(f)))},zt.prototype.slice=function(f,h){f=Wt(f);var E=this;return E.__filtered__&&(f>0||h<0)?new zt(E):(f<0?E=E.takeRight(-f):f&&(E=E.drop(f)),h!==n&&(h=Wt(h),E=h<0?E.dropRight(-h):E.take(h-f)),E)},zt.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},zt.prototype.toArray=function(){return this.take(et)},ti(zt.prototype,function(f,h){var E=/^(?:filter|find|map|reject)|While$/.test(h),D=/^(?:head|last)$/.test(h),P=H[D?"take"+(h=="last"?"Right":""):h],q=D||/^find/.test(h);P&&(H.prototype[h]=function(){var ae=this.__wrapped__,se=D?[1]:arguments,pe=ae instanceof zt,Ue=se[0],He=pe||Yt(ae),Ze=function(sn){var hn=P.apply(H,pl([sn],se));return D&&ot?hn[0]:hn};He&&E&&typeof Ue=="function"&&Ue.length!=1&&(pe=He=!1);var ot=this.__chain__,wt=!!this.__actions__.length,Dt=q&&!ot,Zt=pe&&!wt;if(!q&&He){ae=Zt?ae:new zt(this);var jt=f.apply(ae,se);return jt.__actions__.push({func:cc,args:[Ze],thisArg:n}),new Ca(jt,ot)}return Dt&&Zt?f.apply(this,se):(jt=this.thru(Ze),Dt?D?jt.value()[0]:jt.value():jt)})}),Va(["pop","push","shift","sort","splice","unshift"],function(f){var h=Kc[f],E=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",D=/^(?:pop|shift)$/.test(f);H.prototype[f]=function(){var P=arguments;if(D&&!this.__chain__){var q=this.value();return h.apply(Yt(q)?q:[],P)}return this[E](function(ae){return h.apply(Yt(ae)?ae:[],P)})}}),ti(zt.prototype,function(f,h){var E=H[h];if(E){var D=E.name+"";vn.call(ts,D)||(ts[D]=[]),ts[D].push({name:h,func:E})}}),ts[pf(n,C).name]=[{name:"wrapper",func:n}],zt.prototype.clone=Ym,zt.prototype.reverse=Po,zt.prototype.value=Uu,H.prototype.at=Ap,H.prototype.chain=av,H.prototype.commit=Fl,H.prototype.next=u0,H.prototype.plant=fc,H.prototype.reverse=Rp,H.prototype.toJSON=H.prototype.valueOf=H.prototype.value=Op,H.prototype.first=H.prototype.head,zi&&(H.prototype[zi]=bh),H},ui=zx();Zl?((Zl.exports=ui)._=ui,Ro._=ui):cr._=ui}).call(RP)}(x1,x1.exports)),x1.exports}var Eb=OP();function DP(e,t,n){fetch("/api/survey/"+e+"/"+t+"/notes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({notes:n||""})}).then(async r=>{const i=await r.json();r.ok?or.success("Notes saved"):or.error("Failed saving notes: "+i.message||r.statusText)}).catch(r=>{or.error("Failed saving notes: "+r)})}function h1({text:e,helpText:t,onClick:n,enabled:r}){const[i,s]=k.useState(!1),o=async()=>{if(!i){s(!0);try{await n()}finally{s(!1)}}};return g.jsxs(Nr,{onClick:o,disabled:!r,style:{pointerEvents:"auto",marginLeft:".5rem"},title:t,children:[i&&g.jsx(h3,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}),e]})}function jP(){const e=Ke.c(21);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],e[0]=t):t=e[0];const[n,r]=k.useState(t),i=k.useRef(!1);let s,o;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{U2().then(W=>{r(W)})},o=[],e[1]=s,e[2]=o):(s=e[1],o=e[2]),k.useEffect(s,o);let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=async function(X,te,ne,_e){const ye=_e===void 0?!1:_e;try{ye&&(X=X+"?dry_run=1");const ce=await fetch(X,{method:"POST"}),Te=await ce.json();ce.ok?(Te.message&&console.log(Te.message),ye||or(ne),U2().then(Ne=>{r(Ne)})):or(te+Te.message)}catch(ce){or(te+ce.message)}},e[3]=u):u=e[3];const d=u;let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=async function(){await d("/api/survey/new","Failed creating new survey: ","Created new survey")},e[4]=p):p=e[4];const x=p;let y;e[5]===Symbol.for("react.memo_cache_sentinel")?(y=async function(X,te,ne){const _e=ne===void 0?!1:ne;if(i.current){or("Wait for status update to be finished...");return}i.current=!0,await d("/api/survey/"+te+"/"+X,"Error while updating "+X+" survey status to "+te+": ",X+" survey status updated to "+te,_e),i.current=!1},e[5]=y):y=e[5];const v=y;let w;e[6]===Symbol.for("react.memo_cache_sentinel")?(w=async function(X,te){await d("/api/response/unlock/"+X+"/"+te,"Error while unlocking "+te+" "+X+" survey response: ",te+" "+X+" survey response unlocked")},e[6]=w):w=e[6];const b=w,S=n.length>0&&n.every(kP),T=window.location.origin+"/data?preview";let C;e[7]===Symbol.for("react.memo_cache_sentinel")?(C=g.jsx(Ax,{}),e[7]=C):C=e[7];let R;e[8]===Symbol.for("react.memo_cache_sentinel")?(R={maxWidth:"100rem"},e[8]=R):R=e[8];let A;e[9]===Symbol.for("react.memo_cache_sentinel")?(A=g.jsx(t_,{}),e[9]=A):A=e[9];const j=!S;let O;e[10]===Symbol.for("react.memo_cache_sentinel")?(O={pointerEvents:"auto",width:"10rem",margin:"1rem"},e[10]=O):O=e[10];let B;e[11]!==j?(B=g.jsx(Nr,{onClick:x,disabled:j,style:O,title:"Create a new survey for the next year. Only possible if all current surveys are published.",children:"start new survey"}),e[11]=j,e[12]=B):B=e[12];let L;if(e[13]!==n){let W;e[15]===Symbol.for("react.memo_cache_sentinel")?(W=(X,te)=>g.jsxs(Nc.Item,{eventKey:te.toString(),children:[g.jsxs(Nc.Header,{children:[X.year," - ",X.status]}),g.jsxs(Nc.Body,{children:[g.jsxs("div",{style:{marginLeft:".5rem",marginBottom:"1rem"},children:[g.jsx(lt,{to:`/survey/admin/edit/${X.year}`,target:"_blank",children:g.jsx(Nr,{style:{marginLeft:".5rem"},title:"Open the survey for inspection with all questions visible and any visibleIf logic added to the title.",children:"Inspect Survey"})}),g.jsx(lt,{to:`/survey/admin/try/${X.year}`,target:"_blank",children:g.jsx(Nr,{style:{marginLeft:".5rem"},title:"Open the survey exactly as the nrens will see it, but without any nren data.",children:"Try Survey"})}),g.jsx(h1,{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:X.status==Hl.closed,onClick:()=>v(X.year,"open")}),g.jsx(h1,{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:X.status==Hl.open,onClick:()=>v(X.year,"close")}),g.jsx(h1,{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:X.status==Hl.closed||X.status==Hl.preview,onClick:()=>v(X.year,"preview")}),g.jsx(h1,{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:X.status==Hl.preview||X.status==Hl.published,onClick:()=>v(X.year,"publish",!0)}),g.jsx(h1,{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:X.status==Hl.preview||X.status==Hl.published,onClick:()=>v(X.year,"publish")}),X.status==Hl.preview&&g.jsxs("span",{children:["  Preview link: ",g.jsx("a",{href:T,children:T})]})]}),g.jsxs(Xl,{children:[g.jsxs("colgroup",{children:[g.jsx("col",{style:{width:"10%"}}),g.jsx("col",{style:{width:"20%"}}),g.jsx("col",{style:{width:"20%"}}),g.jsx("col",{style:{width:"30%"}}),g.jsx("col",{style:{width:"20%"}})]}),g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"NREN"}),g.jsx("th",{children:"Status"}),g.jsx("th",{children:"Lock"}),g.jsx("th",{children:"Management Notes"}),g.jsx("th",{children:"Actions"})]})}),g.jsx("tbody",{children:X.responses.map(ne=>g.jsxs("tr",{children:[g.jsx("td",{children:ne.nren.name}),g.jsx("td",{children:g.jsx(AP,{status:ne.status})}),g.jsx("td",{style:{textWrap:"wrap",wordWrap:"break-word",maxWidth:"10rem"},children:ne.lock_description}),g.jsx("td",{children:"notes"in ne&&g.jsx("textarea",{onInput:Eb.debounce(_e=>DP(X.year,ne.nren.id,_e.target.value),1e3),style:{minWidth:"100%",minHeight:"5rem"},placeholder:"Notes for this survey",defaultValue:ne.notes||""})}),g.jsxs("td",{children:[g.jsx(lt,{to:`/survey/response/${X.year}/${ne.nren.name}`,target:"_blank",children:g.jsx(Nr,{style:{pointerEvents:"auto",margin:".5rem"},title:"Open the responses of the NREN.",children:"open"})}),g.jsx(Nr,{onClick:()=>b(X.year,ne.nren.name),disabled:ne.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"})]})]},ne.nren.id))})]})]})]},X.year),e[15]=W):W=e[15],L=n.map(W),e[13]=n,e[14]=L}else L=e[14];let I;e[16]!==L?(I=g.jsx(Nc,{defaultActiveKey:"0",children:L}),e[16]=L,e[17]=I):I=e[17];let U;return e[18]!==B||e[19]!==I?(U=g.jsxs(g.Fragment,{children:[C,g.jsx(la,{className:"py-5 grey-container",children:g.jsx(la,{style:R,children:g.jsxs(Cn,{children:[A,B,I]})})})]}),e[18]=B,e[19]=I,e[20]=U):U=e[20],U}function kP(e){return e.status==Hl.published}function FP(e){const t=Ke.c(10),{getConfig:n,setConfig:r}=k.useContext(GE);let i;t[0]!==n||t[1]!==e?(i=n(e),t[0]=n,t[1]=e,t[2]=i):i=t[2];const s=i;let o;t[3]!==e||t[4]!==r?(o=(d,p)=>r(e,d,p),t[3]=e,t[4]=r,t[5]=o):o=t[5];let u;return t[6]!==s||t[7]!==e||t[8]!==o?(u={[e]:s,setConfig:o},t[6]=s,t[7]=e,t[8]=o,t[9]=u):u=t[9],u}async function LP(){try{return await(await fetch("/api/user/list")).json()}catch{return[]}}async function MP(){try{return await(await fetch("/api/nren/list")).json()}catch{return[]}}async function BP(e,t){const n={id:e,...t},r={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)},i=await fetch(`/api/user/${e}`,r),s=await i.json();if(!i.ok)throw new Error(s.message);return or.success(s.message),s.user}async function PP(e){if(!window.confirm(`Are you sure you want to delete ${e.name} (${e.email})?`))return!1;const n={method:"DELETE",headers:{"Content-Type":"application/json"}},r=await fetch(`/api/user/${e.id}`,n),i=await r.json();if(!r.ok)throw new Error(i.message);return or.success(i.message),!0}const A1=(e,t)=>e.role!=="admin"&&t.role==="admin"?1:e.role==="admin"&&t.role!=="admin"?-1:e.role==="user"&&t.role!=="user"?1:t.role==="user"&&e.role!=="user"?-1:!e.permissions.active&&t.permissions.active?1:e.permissions.active&&!t.permissions.active?-1:e.name.localeCompare(t.name);function UP(){const e=Ke.c(88);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],e[0]=t):t=e[0];const[n,r]=k.useState(t);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=[],e[1]=i):i=e[1];const[s,o]=k.useState(i),{user:u,setUser:d}=k.useContext(su);let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p={column:"ID",asc:!0},e[2]=p):p=e[2];const[x,y]=k.useState(p),[v,w]=k.useState(""),{setConfig:b,user_management:S}=FP("user_management");let T;e[3]!==b||e[4]!==S?(T=(oe,Be)=>{const Xe=S??{},rt=Xe==null?void 0:Xe.shownColumns;if(!rt){b({...Xe,shownColumns:{[oe]:Be}});return}b({...Xe,shownColumns:{...rt,[oe]:Be}})},e[3]=b,e[4]=S,e[5]=T):T=e[5];const C=T;let R;e[6]!==S?(R=oe=>{const Be=S;if(!Be)return!0;const Xe=Be.shownColumns;return Xe?Xe[oe]??!0:!0},e[6]=S,e[7]=R):R=e[7];const A=R;let j,O;e[8]===Symbol.for("react.memo_cache_sentinel")?(j=()=>{LP().then(oe=>{r(oe)}),MP().then(oe=>{o(oe.sort(zP))})},O=[],e[8]=j,e[9]=O):(j=e[8],O=e[9]),k.useEffect(j,O);let B;e[10]!==u.id||e[11]!==d||e[12]!==n?(B=(oe,Be)=>{const Xe=n.findIndex(xt=>xt.id===Be.id),rt=[...n],{name:Qe}=oe.target,ft={};Qe==="active"?ft[Qe]=oe.target.checked:ft[Qe]=oe.target.value,BP(Be.id,ft).then(xt=>{xt.id===u.id?d(xt):(rt[Xe]=xt,r(rt))}).catch($P)},e[10]=u.id,e[11]=d,e[12]=n,e[13]=B):B=e[13];const L=B;let I;e[14]!==s?(I=oe=>{var Be;return(Be=s.find(Xe=>Xe.id==oe||Xe.name==oe))==null?void 0:Be.id},e[14]=s,e[15]=I):I=e[15];const U=I,W=HP,X=YP;let te,ne,_e,ye,ce,Te,Ne,$e,Pe,et,J,ie,ee;if(e[16]!==v||e[17]!==U||e[18]!==A||e[19]!==L||e[20]!==u||e[21]!==s||e[22]!==C||e[23]!==x.asc||e[24]!==x.column||e[25]!==n){const oe=["ID","Active","Role","Email","Full Name","OIDC Sub","NREN","Actions"],Be={[oe[1]]:W,[oe[2]]:X("role"),[oe[3]]:X("email"),[oe[4]]:X("name"),[oe[6]]:X("nrens")},Xe=ut=>{ut===x.column?y({column:ut,asc:!x.asc}):y({column:ut,asc:!0})},rt={};Array.from(Object.keys(Be)).includes(x.column)?rt[x.column]={"aria-sort":x.asc?"ascending":"descending"}:rt[oe[0]]={"aria-sort":x.asc?"ascending":"descending"};const Qe=Be[x.column]??A1,xt=(v?n.filter(ut=>ut.email.includes(v)||ut.name.includes(v)):n).filter(ut=>ut.id!==u.id).sort(Qe);x.asc||xt.reverse(),e[39]===Symbol.for("react.memo_cache_sentinel")?(et=g.jsx(Ax,{}),J=g.jsx(t_,{}),e[39]=et,e[40]=J):(et=e[39],J=e[40]),ne=la,$e="py-5 grey-container";let We;e[41]===Symbol.for("react.memo_cache_sentinel")?(We=g.jsx("div",{className:"text-center w-100 mb-3",children:g.jsx("h3",{children:"User Management Page"})}),e[41]=We):We=e[41];let tn;e[42]===Symbol.for("react.memo_cache_sentinel")?(tn={width:"30rem"},e[42]=tn):tn=e[42];let gn;e[43]===Symbol.for("react.memo_cache_sentinel")?(gn=g.jsxs(Nc.Header,{children:[g.jsx("span",{className:"me-2",children:"Column Visibility"}),g.jsx("small",{className:"text-muted",children:"Choose which columns to display"})]}),e[43]=gn):gn=e[43];let Jt;e[44]===Symbol.for("react.memo_cache_sentinel")?(Jt=g.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]=Jt):Jt=e[44];let Bt;e[45]===Symbol.for("react.memo_cache_sentinel")?(Bt={gridTemplateColumns:"repeat(auto-fill, minmax(150px, 1fr))",gap:"10px"},e[45]=Bt):Bt=e[45];const An=g.jsx("div",{className:"d-grid",style:Bt,children:oe.map(ut=>g.jsx(As.Check,{type:"checkbox",id:`column-${ut}`,label:ut,checked:A(ut),onChange:tr=>C(ut,tr.target.checked)},ut))});let Rn;e[46]!==An?(Rn=g.jsx(Nc,{className:"mb-3",style:tn,children:g.jsxs(Nc.Item,{eventKey:"0",children:[gn,g.jsx(Nc.Body,{children:g.jsxs(As.Control,{as:"div",className:"p-3",children:[Jt,An]})})]})}),e[46]=An,e[47]=Rn):Rn=e[47];let $t,cn;e[48]===Symbol.for("react.memo_cache_sentinel")?($t={width:"30rem"},cn=g.jsx(lw.Text,{id:"search-text",children:"Search"}),e[48]=$t,e[49]=cn):($t=e[48],cn=e[49]);let yt;e[50]===Symbol.for("react.memo_cache_sentinel")?(yt=g.jsx(As.Control,{placeholder:"Search by email/name","aria-label":"Search",onInput:Eb.debounce(ut=>w(ut.target.value),200)}),e[50]=yt):yt=e[50];let dn;e[51]===Symbol.for("react.memo_cache_sentinel")?(dn=g.jsxs(lw,{className:"mb-3",style:$t,children:[cn,yt,g.jsx(Nr,{variant:"outline-secondary",onClick:()=>{w("")},children:"Clear"})]}),e[51]=dn):dn=e[51],e[52]!==Rn?(Pe=g.jsxs(Cn,{className:"d-flex justify-content-center align-items-center flex-column",children:[We,Rn,dn]}),e[52]=Rn,e[53]=Pe):Pe=e[53],Ne="d-flex justify-content-center",e[54]===Symbol.for("react.memo_cache_sentinel")?(Te={maxWidth:"100rem"},e[54]=Te):Te=e[54],te=Xl,ee="user-management-table",_e=!0;const nn=A(oe[0])&&g.jsx("col",{span:1,style:{width:"8rem"}}),Lr=A(oe[1])&&g.jsx("col",{span:1,style:{width:"3rem"}}),Yn=A(oe[2])&&g.jsx("col",{span:1,style:{width:"4.5rem"}}),Er=A(oe[3])&&g.jsx("col",{span:1,style:{width:"7rem"}}),Sr=A(oe[4])&&g.jsx("col",{span:1,style:{width:"5rem"}}),er=A(oe[5])&&g.jsx("col",{span:1,style:{width:"5rem"}}),En=A(oe[6])&&g.jsx("col",{span:1,style:{width:"6rem"}}),br=A(oe[7])&&g.jsx("col",{span:1,style:{width:"3rem"}});e[55]!==nn||e[56]!==Lr||e[57]!==Yn||e[58]!==Er||e[59]!==Sr||e[60]!==er||e[61]!==En||e[62]!==br?(ye=g.jsxs("colgroup",{children:[nn,Lr,Yn,Er,Sr,er,En,br]}),e[55]=nn,e[56]=Lr,e[57]=Yn,e[58]=Er,e[59]=Sr,e[60]=er,e[61]=En,e[62]=br,e[63]=ye):ye=e[63];const Pn=g.jsx("tr",{children:oe.map(ut=>A(ut)&&g.jsx("th",{...rt[ut],onClick:()=>Xe(ut),className:"sortable fixed-column",style:{border:"1px solid #ddd"},children:ut},ut))});e[64]!==Pn?(ce=g.jsx("thead",{children:Pn}),e[64]=Pn,e[65]=ce):ce=e[65],ie=g.jsx("tbody",{children:(v?[]:[u]).concat(xt).map(ut=>g.jsxs("tr",{style:{fontWeight:ut.id==u.id?"bold":"normal"},children:[A(oe[0])&&g.jsx("td",{style:{border:"1px dotted #ddd"},children:ut.id}),A(oe[1])&&g.jsx("td",{style:{border:"1px dotted #ddd"},children:ut.id==u.id?g.jsx(bF,{}):g.jsx("input",{type:"checkbox",name:"active",checked:ut.permissions.active,onChange:tr=>L(tr,ut)})}),A(oe[2])&&g.jsx("td",{style:{border:"1px dotted #ddd"},children:ut.id==u.id?ut.role.charAt(0).toUpperCase()+ut.role.slice(1):g.jsxs("select",{name:"role",defaultValue:ut.role,onChange:tr=>L(tr,ut),style:{width:"100%"},children:[g.jsx("option",{value:"admin",children:"Admin"}),g.jsx("option",{value:"user",children:"User"}),g.jsx("option",{value:"observer",children:"Observer"})]})}),A(oe[3])&&g.jsx("td",{style:{border:"1px dotted #ddd"},children:ut.email}),A(oe[4])&&g.jsx("td",{style:{border:"1px dotted #ddd"},children:ut.name}),A(oe[5])&&g.jsx("td",{style:{border:"1px dotted #ddd"},children:ut.oidc_sub}),A(oe[6])&&g.jsx("td",{style:{border:"1px dotted #ddd"},children:g.jsxs("select",{name:"nren",multiple:!1,value:ut.nrens.length>0?U(ut.nrens[0]):"",onChange:tr=>L(tr,ut),children:[g.jsx("option",{value:"",children:"Select NREN"}),s.map(IP)]})}),A(oe[7])&&g.jsx("td",{style:{border:"1px dotted #ddd"},children:ut.id!==u.id&&g.jsx(Nr,{variant:"danger",onClick:async()=>{if(ut.id===u.id){or.error("You cannot delete yourself");return}await PP(ut)&&r(n.filter(_a=>_a.id!==ut.id))},children:"Delete"})})]},ut.id))}),e[16]=v,e[17]=U,e[18]=A,e[19]=L,e[20]=u,e[21]=s,e[22]=C,e[23]=x.asc,e[24]=x.column,e[25]=n,e[26]=te,e[27]=ne,e[28]=_e,e[29]=ye,e[30]=ce,e[31]=Te,e[32]=Ne,e[33]=$e,e[34]=Pe,e[35]=et,e[36]=J,e[37]=ie,e[38]=ee}else te=e[26],ne=e[27],_e=e[28],ye=e[29],ce=e[30],Te=e[31],Ne=e[32],$e=e[33],Pe=e[34],et=e[35],J=e[36],ie=e[37],ee=e[38];let K;e[66]!==te||e[67]!==_e||e[68]!==ye||e[69]!==ce||e[70]!==ie||e[71]!==ee?(K=g.jsxs(te,{className:ee,bordered:_e,children:[ye,ce,ie]}),e[66]=te,e[67]=_e,e[68]=ye,e[69]=ce,e[70]=ie,e[71]=ee,e[72]=K):K=e[72];let xe;e[73]!==Te||e[74]!==K?(xe=g.jsx("div",{style:Te,children:K}),e[73]=Te,e[74]=K,e[75]=xe):xe=e[75];let Fe;e[76]!==Ne||e[77]!==xe?(Fe=g.jsx("div",{className:Ne,children:xe}),e[76]=Ne,e[77]=xe,e[78]=Fe):Fe=e[78];let Ce;e[79]!==ne||e[80]!==$e||e[81]!==Pe||e[82]!==Fe?(Ce=g.jsxs(ne,{className:$e,children:[Pe,Fe]}),e[79]=ne,e[80]=$e,e[81]=Pe,e[82]=Fe,e[83]=Ce):Ce=e[83];let me;return e[84]!==et||e[85]!==J||e[86]!==Ce?(me=g.jsxs(g.Fragment,{children:[et,J,Ce]}),e[84]=et,e[85]=J,e[86]=Ce,e[87]=me):me=e[87],me}function IP(e){return g.jsx("option",{value:e.id,children:e.name},e.id)}function YP(e){return(t,n)=>{const r=t[e],i=n[e];if(e==="nrens")return t.nrens.length===0&&n.nrens.length===0?A1(t,n):t.nrens.length===0?-1:n.nrens.length===0?1:t.nrens[0].localeCompare(n.nrens[0]);if(typeof r!="string"||typeof i!="string")return A1(t,n);const s=r.localeCompare(i);return s===0?A1(t,n):s}}function HP(e,t){return e.permissions.active&&!t.permissions.active?1:!e.permissions.active&&t.permissions.active?-1:A1(e,t)}function $P(e){or.error(e.message)}function zP(e,t){return e.name.localeCompare(t.name)}const GP=()=>{const e=Ke.c(9),{pathname:t}=Ls(),n=t!=="/";let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=g.jsx(aA,{}),e[0]=r):r=e[0];let i;e[1]!==n?(i=g.jsx("main",{className:"grow",children:n?g.jsx(LN,{}):g.jsx(g3,{})}),e[1]=n,e[2]=i):i=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=g.jsx(_A,{}),e[3]=s):s=e[3];let o;e[4]!==i?(o=g.jsxs(B6,{children:[r,i,s]}),e[4]=i,e[5]=o):o=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=g.jsx(sA,{}),e[6]=u):u=e[6];let d;return e[7]!==o?(d=g.jsxs(g.Fragment,{children:[o,u]}),e[7]=o,e[8]=d):d=e[8],d},WP=s6([{path:"",element:g.jsx(GP,{}),children:[{path:"/budget",element:g.jsx(NL,{})},{path:"/funding",element:g.jsx(LL,{})},{path:"/employment",element:g.jsx(mE,{},"staffgraph")},{path:"/traffic-ratio",element:g.jsx(aB,{})},{path:"/roles",element:g.jsx(mE,{roles:!0},"staffgraphroles")},{path:"/employee-count",element:g.jsx(YL,{})},{path:"/charging",element:g.jsx(CL,{})},{path:"/suborganisations",element:g.jsx($L,{})},{path:"/parentorganisation",element:g.jsx(BL,{})},{path:"/ec-projects",element:g.jsx(DL,{})},{path:"/policy",element:g.jsx(aM,{})},{path:"/traffic-volume",element:g.jsx(cB,{})},{path:"/data",element:g.jsx(yA,{})},{path:"/institutions-urls",element:g.jsx(vM,{})},{path:"/connected-proportion",element:g.jsx(Gf,{page:qt.ConnectedProportion},qt.ConnectedProportion)},{path:"/connectivity-level",element:g.jsx(Gf,{page:qt.ConnectivityLevel},qt.ConnectivityLevel)},{path:"/connectivity-growth",element:g.jsx(Gf,{page:qt.ConnectivityGrowth},qt.ConnectivityGrowth)},{path:"/connection-carrier",element:g.jsx(Gf,{page:qt.ConnectionCarrier},qt.ConnectionCarrier)},{path:"/connectivity-load",element:g.jsx(Gf,{page:qt.ConnectivityLoad},qt.ConnectivityLoad)},{path:"/commercial-charging-level",element:g.jsx(Gf,{page:qt.CommercialChargingLevel},qt.CommercialChargingLevel)},{path:"/commercial-connectivity",element:g.jsx(Gf,{page:qt.CommercialConnectivity},qt.CommercialConnectivity)},{path:"/network-services",element:g.jsx(vc,{category:Zn.network_services},Zn.network_services)},{path:"/isp-support-services",element:g.jsx(vc,{category:Zn.isp_support},Zn.isp_support)},{path:"/security-services",element:g.jsx(vc,{category:Zn.security},Zn.security)},{path:"/identity-services",element:g.jsx(vc,{category:Zn.identity},Zn.identity)},{path:"/collaboration-services",element:g.jsx(vc,{category:Zn.collaboration},Zn.collaboration)},{path:"/multimedia-services",element:g.jsx(vc,{category:Zn.multimedia},Zn.multimedia)},{path:"/storage-and-hosting-services",element:g.jsx(vc,{category:Zn.storage_and_hosting},Zn.storage_and_hosting)},{path:"/professional-services",element:g.jsx(vc,{category:Zn.professional_services},Zn.professional_services)},{path:"/dark-fibre-lease",element:g.jsx(pE,{national:!0},"darkfibrenational")},{path:"/dark-fibre-lease-international",element:g.jsx(pE,{},"darkfibreinternational")},{path:"/dark-fibre-installed",element:g.jsx(PM,{})},{path:"/remote-campuses",element:g.jsx(TM,{})},{path:"/eosc-listings",element:g.jsx(nM,{})},{path:"/fibre-light",element:g.jsx(YM,{})},{path:"/monitoring-tools",element:g.jsx($M,{})},{path:"/pert-team",element:g.jsx(tB,{})},{path:"/passive-monitoring",element:g.jsx(eB,{})},{path:"/alien-wave",element:g.jsx(RM,{})},{path:"/alien-wave-internal",element:g.jsx(DM,{})},{path:"/external-connections",element:g.jsx(IM,{})},{path:"/ops-automation",element:g.jsx(QM,{})},{path:"/network-automation",element:g.jsx(jM,{})},{path:"/traffic-stats",element:g.jsx(sB,{})},{path:"/weather-map",element:g.jsx(fB,{})},{path:"/network-map",element:g.jsx(XM,{})},{path:"/nfv",element:g.jsx(GM,{})},{path:"/certificate-providers",element:g.jsx(BM,{})},{path:"/siem-vendors",element:g.jsx(nB,{})},{path:"/capacity-largest-link",element:g.jsx(LM,{})},{path:"/capacity-core-ip",element:g.jsx(kM,{})},{path:"/non-rne-peers",element:g.jsx(KM,{})},{path:"/iru-duration",element:g.jsx(HM,{})},{path:"/audits",element:g.jsx(WL,{})},{path:"/business-continuity",element:g.jsx(XL,{})},{path:"/crisis-management",element:g.jsx(tM,{})},{path:"/crisis-exercise",element:g.jsx(JL,{})},{path:"/central-procurement",element:g.jsx(KL,{})},{path:"/security-control",element:g.jsx(lM,{})},{path:"/services-offered",element:g.jsx(xM,{})},{path:"/service-management-framework",element:g.jsx(cM,{})},{path:"/service-level-targets",element:g.jsx(oM,{})},{path:"/corporate-strategy",element:g.jsx(QL,{})},{path:"survey/admin/surveys",element:g.jsx(jP,{})},{path:"survey/admin/users",element:g.jsx(UP,{})},{path:"survey/admin/inspect/:year",element:g.jsx(_2,{loadFrom:"/api/response/inspect/"})},{path:"survey/admin/try/:year",element:g.jsx(_2,{loadFrom:"/api/response/try/"})},{path:"survey/response/:year/:nren",element:g.jsx(_2,{loadFrom:"/api/response/load/"})},{path:"survey/*",element:g.jsx(xB,{})},{path:"*",element:g.jsx(g3,{})}]}]);function VP(){const e=Ke.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=g.jsx("div",{className:"app",children:g.jsx(_6,{router:WP})}),e[0]=t):t=e[0],t}const XP=document.getElementById("root"),qP=hT.createRoot(XP);qP.render(g.jsx(Hn.StrictMode,{children:g.jsx(VP,{})}));
diff --git a/compendium_v2/static/index.html b/compendium_v2/static/index.html
index c61ec57dff1e14fd589f5d804eb3f8cb31cca28d..a06478eeb6f1c0254868fa5f112a8a01ebf73c66 100644
--- a/compendium_v2/static/index.html
+++ b/compendium_v2/static/index.html
@@ -2,10 +2,9 @@
 <html>
 <head>
   <meta charset="utf-8"/>
-  <script type="module" crossorigin src="/static/bundle.js"></script>
-  <link rel="modulepreload" crossorigin href="/static/survey-s5I1rSwQ.js">
-  <link rel="modulepreload" crossorigin href="/static/report-C0OEVICj.js">
-  <link rel="stylesheet" crossorigin href="/static/bundle.css">
+  <script type="module" crossorigin src="/static/report.js"></script>
+  <link rel="modulepreload" crossorigin href="/static/main-BfdqwKKW.js">
+  <link rel="stylesheet" crossorigin href="/static/main.css">
 </head>
 <body>
   <div id="root"></div>
diff --git a/compendium_v2/static/main-BfdqwKKW.js b/compendium_v2/static/main-BfdqwKKW.js
new file mode 100644
index 0000000000000000000000000000000000000000..c2b7160bd485cdcc7eb8232da8fa8fa3b5388e12
--- /dev/null
+++ b/compendium_v2/static/main-BfdqwKKW.js
@@ -0,0 +1,176 @@
+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/bundle.css b/compendium_v2/static/main.css
similarity index 68%
rename from compendium_v2/static/bundle.css
rename to compendium_v2/static/main.css
index 3e7ebe32c867827aaf5afe2f8af0321097e3ccd3..5a7e564ce541af2c4735f7887cda58bbc4891f45 100644
--- a/compendium_v2/static/bundle.css
+++ b/compendium_v2/static/main.css
@@ -1,8 +1,4 @@
 @charset "UTF-8";/*!
-* 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)
-*/@font-face{font-family:Raleway;font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Raleway;font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ITw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Raleway;font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqhPAMif.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Raleway;font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqZPAA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Raleway;font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ISQ.woff) format("woff")}@font-face{font-family:Raleway;font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqZPBg.woff) format("woff")}.sv-dragdrop-movedown{transform:translate(0);animation:svdragdropmovedown .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmovedown{0%{transform:translateY(-50px)}to{transform:translate(0)}}.sv-dragdrop-moveup{transform:translate(0);animation:svdragdropmoveup .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmoveup{0%{transform:translateY(50px)}to{transform:translate(0)}}.sv_progress-buttons__container-center{text-align:center}.sv_progress-buttons__container{display:inline-block;font-size:0;width:100%;max-width:1100px;white-space:nowrap;overflow:hidden}.sv_progress-buttons__image-button-left{display:inline-block;vertical-align:top;margin-top:22px;font-size:calc(.875*(var(--sjs-font-size, 16px)));width:16px;height:16px;cursor:pointer;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iMTEsMTIgOSwxNCAzLDggOSwyIDExLDQgNyw4ICIvPg0KPC9zdmc+DQo=)}.sv_progress-buttons__image-button-right{display:inline-block;vertical-align:top;margin-top:22px;font-size:calc(.875*(var(--sjs-font-size, 16px)));width:16px;height:16px;cursor:pointer;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iNSw0IDcsMiAxMyw4IDcsMTQgNSwxMiA5LDggIi8+DQo8L3N2Zz4NCg==)}.sv_progress-buttons__image-button--hidden{visibility:hidden}.sv_progress-buttons__list-container{max-width:calc(100% - 36px);display:inline-block;overflow:hidden}.sv_progress-buttons__list{display:inline-block;width:max-content;padding-left:28px;padding-right:28px;margin-top:14px;margin-bottom:14px}.sv_progress-buttons__list li{width:138px;font-size:calc(.875*(var(--sjs-font-size, 16px)));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));position:relative;text-align:center;vertical-align:top;display:inline-block}.sv_progress-buttons__list li:before{width:24px;height:24px;content:"";line-height:30px;display:block;margin:0 auto 10px;border:3px solid;border-radius:50%;box-sizing:content-box;cursor:pointer}.sv_progress-buttons__list li:after{width:73%;height:3px;content:"";position:absolute;top:15px;left:-36.5%}.sv_progress-buttons__list li:first-child:after{content:none}.sv_progress-buttons__list .sv_progress-buttons__page-title{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.sv_progress-buttons__list .sv_progress-buttons__page-description{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv_progress-buttons__list li.sv_progress-buttons__list-element--nonclickable:before{cursor:not-allowed}.sv_progress-toc{padding:var(--sjs-base-unit, var(--base-unit, 8px));max-width:336px;height:100%;background:#fff;box-sizing:border-box;min-width:calc(32*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc .sv-list__item.sv-list__item--selected .sv-list__item-body{background:#19b3941a;color:#161616;font-weight:400}.sv_progress-toc .sv-list__item span{white-space:break-spaces}.sv_progress-toc .sv-list__item-body{padding-inline-start:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-end:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:var(--sjs-corner-radius, 4px);padding-top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv_progress-toc--left{border-right:1px solid #d6d6d6}.sv_progress-toc--right{border-left:1px solid #d6d6d6}.sv_progress-toc--mobile{position:fixed;top:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));right:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));width:auto;min-width:auto;height:auto;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));z-index:15;border-radius:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc--mobile>div{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc--mobile:hover{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sd-title+.sv-components-row>.sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile),.sd-title~.sv-components-row>.sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile){margin-top:2px}.sv_progress-toc.sv_progress-toc--sticky{position:sticky;height:auto;overflow-y:auto;top:0}.sv-container-modern{color:var(--text-color, #404040);font-size:var(--font-size, var(--sjs-font-size, 16px));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-container-modern__title{color:var(--main-color, #1ab394);padding-left:.55em;padding-top:5em;padding-bottom:.9375em}@media only screen and (min-width: 1000px){.sv-container-modern__title{margin-right:5%;margin-left:5%}}@media only screen and (max-width: 1000px){.sv-container-modern__title{margin-right:10px;margin-left:10px}}.sv-container-modern__title h3{margin:0;font-size:1.875em}.sv-container-modern__title h5{margin:0}.sv-container-modern__close{clear:right}.sv-container-modern fieldset,.sv-container-modern legend{border:none;padding:0;margin:0}.sv-body{width:100%;padding-bottom:calc(10*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-top:2em}@media only screen and (min-width: 1000px){.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-right:5%;margin-left:5%}}@media only screen and (max-width: 1000px){.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-right:10px;margin-left:10px}}.sv-body__timer{padding:0 var(--sjs-base-unit, var(--base-unit, 8px));box-sizing:border-box}.sv-body__progress{margin-bottom:4.5em}.sv-body__progress:not(:first-child){margin-top:2.5em}.sv-root-modern{width:100%;--sv-mobile-width: 600px}.sv-page__title{margin:0 0 1.333em;font-size:1.875em;padding-left:.293em}.sv-page__description{min-height:2.8em;font-size:1em;padding-left:.55em}.sv-page__title+.sv-page__description{margin-top:-2.8em}.sv-panel{box-sizing:border-box;width:100%}.sv-panel__title{font-size:1.25em;margin:0;padding:0 .44em .1em;position:relative}.sv-panel__footer{margin:0;padding:1em .44em 1em 0}.sv-panel__description{padding-left:.55em}.sv-panel__title--expandable{cursor:pointer;display:flex;padding-right:24px;align-items:center}.sv-panel__title--expandable:after{content:"";display:block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;background-size:10px 12px;width:24px;height:24px;position:absolute;right:0}.sv-panel__title--expandable.sv-panel__title--expanded:after{transform:rotate(180deg)}.sv-panel__icon{outline:none}.sv-panel__icon:before{content:"";display:inline-block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:.5em;width:.6em;margin-left:1.5em;vertical-align:middle}.sv-panel__icon--expanded:before{transform:rotate(180deg)}.sv-panel .sv-question__title{font-size:1em;padding-left:.55em}.sv-panel__content:not(:first-child){margin-top:.75em}.sv-panel .sv-row:not(:last-child){padding-bottom:1.875em}.sv-panel__title--error{background-color:var(--error-background-color, rgba(213, 41, 1, .2))}.sv-paneldynamic__progress-container{position:relative;margin-left:.75em;margin-right:250px;margin-top:20px}.sv-paneldynamic__add-btn{background-color:var(--add-button-color, #1948b3);float:right;margin-top:-18px}[dir=rtl] .sv-paneldynamic__add-btn,[style*="direction:rtl"] .sv-paneldynamic__add-btn,[style*="direction: rtl"] .sv-paneldynamic__add-btn{float:left}.sv-paneldynamic__add-btn--list-mode{float:none;margin-top:1em}.sv-paneldynamic__remove-btn{background-color:var(--remove-button-color, #ff1800);margin-top:1.25em}.sv-paneldynamic__remove-btn--right{margin-top:0;margin-left:1.25em}.sv-paneldynamic__prev-btn,.sv-paneldynamic__next-btn{box-sizing:border-box;display:inline-block;fill:var(--text-color, #404040);cursor:pointer;width:.7em;top:-.28em;position:absolute}.sv-paneldynamic__prev-btn svg,.sv-paneldynamic__next-btn svg{display:block;height:.7em;width:.7em}.sv-paneldynamic__prev-btn{left:-1.3em;transform:rotate(90deg)}.sv-paneldynamic__next-btn{right:-1.3em;transform:rotate(270deg)}.sv-paneldynamic__prev-btn--disabled,.sv-paneldynamic__next-btn--disabled{fill:var(--disable-color, #dbdbdb);cursor:auto}.sv-paneldynamic__progress-text{color:var(--progress-text-color, #9d9d9d);font-weight:700;font-size:.87em;margin-top:.69em;margin-left:1em}.sv-paneldynamic__separator{border:none;margin:0}.sv-paneldynamic__progress--top{margin-bottom:1em}.sv-paneldynamic__progress--bottom{margin-top:1em}.sv-paneldynamic__panel-wrapper~.sv-paneldynamic__panel-wrapper{padding-top:2.5em}.sv-paneldynamic__panel-wrapper--in-row{display:flex;flex-direction:row;align-items:center}@supports (display: flex){.sv-row{display:flex;flex-wrap:wrap}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.sv-row>.sv-row__panel,.sv-row__question:not(:last-child){float:left}}@media only screen and (-ms-high-contrast: active)and (max-width: 600px),only screen and (-ms-high-contrast: none)and (max-width: 600px){.sv-row>.sv-row__panel,.sv-row__question:not(:last-child){padding-bottom:2.5em;float:none}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){[dir=rtl] .sv-row__question:not(:last-child),[style*="direction:rtl"] .sv-row__question:not(:last-child),[style*="direction: rtl"] .sv-row__question:not(:last-child){float:right}}@media only screen and (-ms-high-contrast: active)and (max-width: 6000px),only screen and (-ms-high-contrast: none)and (max-width: 6000px){.sv-row__question--small:only-child{max-width:3000px}}@media only screen and (-ms-high-contrast: active)and (max-width: 3000px),only screen and (-ms-high-contrast: none)and (max-width: 3000px){.sv-row__question--small:only-child{max-width:1200px}}@media only screen and (-ms-high-contrast: active)and (max-width: 2000px),only screen and (-ms-high-contrast: none)and (max-width: 2000px){.sv-row__question--small:only-child{max-width:700px}}@media only screen and (-ms-high-contrast: active)and (max-width: 1000px),only screen and (-ms-high-contrast: none)and (max-width: 1000px){.sv-row__question--small:only-child{max-width:500px}}@media only screen and (-ms-high-contrast: active)and (max-width: 500px),only screen and (-ms-high-contrast: none)and (max-width: 500px){.sv-row__question--small:only-child{max-width:300px}}@media only screen and (-ms-high-contrast: active)and (max-width: 600px),only screen and (-ms-high-contrast: none)and (max-width: 600px){.sv-row>.sv-row__panel,.sv-row__question{width:100%!important;padding-right:0!important}}.sv-row>.sv-row__panel,.sv-row__question{vertical-align:top;white-space:normal}.sv-row__question:first-child:last-child{flex:none!important}.sv-row:not(:last-child){padding-bottom:2.5em}.sv-question{overflow:auto;box-sizing:border-box;font-family:inherit;padding-left:var(--sv-element-add-padding-left, 0px);padding-right:var(--sv-element-add-padding-right, 0px)}.sv-question__title{position:relative;box-sizing:border-box;margin:0;padding:.25em .44em;cursor:default;font-size:1.25em}.sv-question__required-text{line-height:.8em;font-size:1.4em}.sv-question__description{margin:0;padding-left:.55em;font-size:1em}.sv-question__input{width:100%;height:1.81em}.sv-question__content{margin-left:.55em}.sv-question__erbox{color:var(--error-color, #d52901);font-size:.74em;font-weight:700}.sv-question__erbox--location--top{margin-bottom:.4375em}.sv-question__erbox--location--bottom{margin-top:.4375em}.sv-question__footer{padding:.87em 0}.sv-question__title--answer{background-color:var(--answer-background-color, rgba(26, 179, 148, .2))}.sv-question__title--error{background-color:var(--error-background-color, rgba(213, 41, 1, .2))}.sv-question__header--location--top{margin-bottom:.65em}.sv-question__header--location--left{float:left;width:27%;margin-right:.875em}[dir=rtl] .sv-question__header--location--left,[style*="direction:rtl"] .sv-question__header--location--left,[style*="direction: rtl"] .sv-question__header--location--left{float:right}.sv-question__header--location--bottom{margin-top:.8em}.sv-question__content--left{overflow:hidden}.sv-question__other,.sv-question__form-group{margin-top:.5em}.sv-question--disabled .sv-question__header{color:var(--disabled-text-color, rgba(64, 64, 64, .5))}.sv-image{display:inline-block}.sv-question__title--expandable{cursor:pointer;display:flex;padding-right:24px;align-items:center}.sv-question__title--expandable:after{content:"";display:block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;background-size:10px 12px;width:24px;height:24px;position:absolute;right:0}.sv-question__title--expandable.sv-question__title--expanded:after{transform:rotate(180deg)}.sv-question__icon{outline:none}.sv-question__icon:before{content:"";display:inline-block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:.5em;width:.6em;margin-left:1.5em;vertical-align:middle}.sv-question__icon--expanded:before{transform:rotate(180deg)}.sv-progress{height:.19em;background-color:var(--header-background-color, #e7e7e7);position:relative}.sv-progress__bar{position:relative;height:100%;background-color:var(--main-color, #1ab394)}.sv-progress__text{position:absolute;margin-top:.69em;color:var(--progress-text-color, #9d9d9d);font-size:.87em;font-weight:700;padding-left:.6321em}@media only screen and (min-width: 1000px){.sv-progress__text{margin-left:5%}}@media only screen and (max-width: 1000px){.sv-progress__text{margin-left:10px}}.sv_progress-buttons__list li:before{border-color:var(--progress-buttons-color, #8dd9ca);background-color:var(--progress-buttons-color, #8dd9ca)}.sv_progress-buttons__list li:after{background-color:var(--text-border-color, #d4d4d4)}.sv_progress-buttons__list .sv_progress-buttons__page-title,.sv_progress-buttons__list .sv_progress-buttons__page-description{color:var(--text-color, #404040)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before{border-color:var(--main-color, #1ab394);background-color:var(--main-color, #1ab394)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed+li:after{background-color:var(--progress-buttons-color, #8dd9ca)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before{border-color:var(--main-color, #1ab394);background-color:#fff}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before{border-color:var(--main-color, #1ab394);background-color:#fff}.sv-title{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-weight:700;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal}.sv-description{color:var(--disabled-text-color, rgba(64, 64, 64, .5))}.sv-question .sv-selectbase{margin-bottom:4px}.sv-selectbase__item{margin-bottom:.425em;vertical-align:top}.sv-selectbase__item--inline{display:inline-block;padding-right:5%}.sv-selectbase__column{min-width:140px;vertical-align:top}.sv-selectbase__label{position:relative;display:block;box-sizing:border-box;cursor:inherit;margin-left:41px;min-height:30px}[dir=rtl] .sv-selectbase__label,[style*="direction:rtl"] .sv-selectbase__label,[style*="direction: rtl"] .sv-selectbase__label{margin-right:41px;margin-left:0}.sv-selectbase__decorator.sv-item__decorator{position:absolute;left:-41px}[dir=rtl] .sv-selectbase__decorator.sv-item__decorator,[style*="direction:rtl"] .sv-selectbase__decorator.sv-item__decorator,[style*="direction: rtl"] .sv-selectbase__decorator.sv-item__decorator{left:initial;right:-41px}.sv-selectbase__clear-btn{margin-top:.9em;background-color:var(--clean-button-color, #1948b3)}.sv-selectbase .sv-selectbase__item.sv-q-col-1{padding-right:0}.sv-question .sv-q-column-1{width:100%;max-width:100%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-2{max-width:50%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-3{max-width:33.33333%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-4{max-width:25%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-5{max-width:20%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-multipletext{width:100%;table-layout:fixed}.sv-multipletext__item-label{display:flex;align-items:center}.sv-multipletext__item{flex:1}.sv-multipletext__item-title{margin-right:1em;width:33%}.sv-multipletext__cell:not(:first-child){padding-left:.5em}.sv-multipletext__cell:not(:last-child){padding-right:.5em}.sv-matrix{overflow-x:auto}.sv-matrix .sv-table__cell--header{text-align:center}.sv-matrix__label{display:inline-block;margin:0}.sv-matrix__cell{min-width:10em;text-align:center}.sv-matrix__cell:first-child{text-align:left}.sv-matrix__text{cursor:pointer}.sv-matrix__text--checked{color:var(--body-background-color, white);background-color:var(--main-color, #1ab394)}.sv-matrix__text--disabled{cursor:default}.sv-matrix__text--disabled.sv-matrix__text--checked{background-color:var(--disable-color, #dbdbdb)}.sv-matrix__row--error{background-color:var(--error-background-color, rgba(213, 41, 1, .2))}.sv-matrixdynamic__add-btn{background-color:var(--add-button-color, #1948b3)}.sv-matrixdynamic__remove-btn{background-color:var(--remove-button-color, #ff1800)}.sv-detail-panel__icon{display:block;position:absolute;left:50%;top:50%;height:13px;width:24px;transform:translate(-50%,-50%) rotate(270deg)}.sv-detail-panel__icon--expanded{transform:translate(-50%,-50%)}.sv-detail-panel__icon:before{content:"";display:block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 20 20' style='enable-background:new 0 0 20 20;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='19,6 17,4 10,11 3,4 1,6 10,15 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:18px;width:24px}.sv-root-modern ::-webkit-scrollbar{height:6px;width:6px;background-color:var(--main-hover-color, #9f9f9f)}.sv-root-modern ::-webkit-scrollbar-thumb{background:var(--main-color, #1ab394)}.sv-table{width:100%;background-color:rgba(var(--main-hover-color, #9f9f9f),.1);border-collapse:separate;border-spacing:0}.sv-table tbody tr:last-child .sv-table__cell{padding-bottom:2.5em}.sv-table tr:first-child .sv-table__cell{padding-top:1.875em}.sv-table td:first-child,.sv-table th:first-child{padding-left:1.875em}.sv-table td:last-child,.sv-table th:last-child{padding-right:1.875em}.sv-table__row--detail{background-color:var(--header-background-color, #e7e7e7)}.sv-table__row--detail td{border-top:1px solid var(--text-border-color, #d4d4d4);border-bottom:1px solid var(--text-border-color, #d4d4d4);padding:1em 0}.sv-table__cell{padding:.9375em 0;box-sizing:content-box;vertical-align:top}.sv-table__cell:not(:last-child){padding-right:1em}.sv-table__cell:not(:first-child){padding-left:1em}.sv-table__cell--header{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-weight:700;text-align:left}.sv-table__cell--rowText{vertical-align:middle}.sv-table__cell--detail{text-align:center;vertical-align:middle;width:32px}.sv-table__cell--detail-rowtext{vertical-align:middle}.sv-table__cell--detail-panel{padding-left:1em}.sv-table__cell--detail-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;border:3px solid var(--border-color, rgba(64, 64, 64, .5));border-radius:50px;text-align:center;vertical-align:middle;width:32px;height:32px;padding:0;margin:0;outline:none;cursor:pointer;background:#0000}.sv-table__empty--rows--section{text-align:center;vertical-align:middle}.sv-table__empty--rows--text{padding:20px}.sv-table__cell--actions sv-action-bar,.sv-table__cell--actions .sv-action-bar{margin-left:0;padding-left:0}.sv-footer.sv-action-bar{display:block;min-height:var(--base-line-height, 2em);padding:2.5em 0 .87em;margin-left:auto}.sv-footer.sv-action-bar .sv-action__content{display:block}.sv-footer.sv-action-bar .sv-action:not(:last-child) .sv-action__content{padding-right:0}.sv-btn--navigation{margin:0 1em;float:right;background-color:var(--main-color, #1ab394)}.sv-footer__complete-btn,.sv-footer__next-btn,.sv-footer__preview-btn{float:right}.sv-footer__prev-btn,.sv-footer__edit-btn,[dir=rtl] .sv-footer__complete-btn,[style*="direction:rtl"] .sv-footer__complete-btn,[style*="direction: rtl"] .sv-footer__complete-btn,[dir=rtl] .sv-footer__preview-btn,[style*="direction:rtl"] .sv-footer__preview-btn,[style*="direction: rtl"] .sv-footer__preview-btn,[dir=rtl] .sv-footer__next-btn,[style*="direction:rtl"] .sv-footer__next-btn,[style*="direction: rtl"] .sv-footer__next-btn{float:left}[dir=rtl] .sv-footer__prev-btn,[style*="direction:rtl"] .sv-footer__prev-btn,[style*="direction: rtl"] .sv-footer__prev-btn,[dir=rtl] .sv-footer__edit-btn,[style*="direction:rtl"] .sv-footer__edit-btn,[style*="direction: rtl"] .sv-footer__edit-btn{float:right}.sv-btn.sv-action-bar-item,.sv-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:1.214em;color:var(--body-background-color, white);cursor:pointer;font-family:inherit;font-size:.875em;font-weight:700;outline:none;padding:.5em 2.786em .6em;text-align:start}.sv-btn--navigation{background-color:var(--main-color, #1ab394)}.sv-item{position:relative;cursor:pointer}.sv-item--disabled{cursor:default}.sv-item__decorator{position:relative;display:inline-block;box-sizing:border-box;width:30px;height:30px;border:solid 1px rgba(0,0,0,0);vertical-align:middle}.sv-item__svg{position:absolute;top:50%;left:50%;display:inline-block;box-sizing:border-box;width:24px;height:24px;margin-right:-50%;transform:translate(-50%,-50%)}.sv-item__control:focus+.sv-item__decorator{border-color:var(--main-color, #1ab394);outline:none}.sv-item__control-label{position:relative;top:4px}.sv-checkbox__decorator{border-radius:2px}.sv-checkbox__svg{border:3px solid var(--border-color, rgba(64, 64, 64, .5));border-radius:2px;fill:#0000}.sv-checkbox--allowhover:hover .sv-checkbox__svg{border:none;background-color:var(--main-hover-color, #9f9f9f);fill:#fff}.sv-checkbox--checked .sv-checkbox__svg{border:none;background-color:var(--main-color, #1ab394);fill:#fff}.sv-checkbox--checked.sv-checkbox--disabled .sv-checkbox__svg{border:none;background-color:var(--disable-color, #dbdbdb);fill:#fff}.sv-checkbox--disabled .sv-checkbox__svg{border:3px solid var(--disable-color, #dbdbdb)}.sv-radio__decorator{border-radius:100%}.sv-radio__svg{border:3px solid var(--border-color, rgba(64, 64, 64, .5));border-radius:100%;fill:#0000}.sv-radio--allowhover:hover .sv-radio__svg{fill:var(--border-color, rgba(64, 64, 64, .5))}.sv-radio--checked .sv-radio__svg{border-color:var(--radio-checked-color, #404040);fill:var(--radio-checked-color, #404040)}.sv-radio--disabled .sv-radio__svg{border-color:var(--disable-color, #dbdbdb)}.sv-radio--disabled.sv-radio--checked .sv-radio__svg{fill:var(--disable-color, #dbdbdb)}.sv-boolean{display:block;position:relative;line-height:1.5em}.sv-boolean__switch{float:left;box-sizing:border-box;width:4em;height:1.5em;margin-right:1.0625em;margin-left:1.3125em;padding:.125em .1875em;border-radius:.75em;margin-bottom:2px}.sv-boolean input:focus~.sv-boolean__switch{outline:1px solid var(--main-color, #1ab394);outline-offset:1px}[dir=rtl] .sv-boolean__switch,[style*="direction:rtl"] .sv-boolean__switch,[style*="direction: rtl"] .sv-boolean__switch{float:right}.sv-boolean__slider{display:block;width:1.25em;height:1.25em;transition-duration:.1s;transition-property:margin-left;transition-timing-function:linear;border:none;border-radius:100%}.sv-boolean--indeterminate .sv-boolean__slider{margin-left:calc(50% - .625em)}.sv-boolean--checked .sv-boolean__slider{margin-left:calc(100% - 1.25em)}.sv-boolean__label{cursor:pointer;float:left}[dir=rtl] .sv-boolean__label,[style*="direction:rtl"] .sv-boolean__label,[style*="direction: rtl"] .sv-boolean__label{float:right}[dir=rtl] .sv-boolean--indeterminate .sv-boolean__slider,[style*="direction:rtl"] .sv-boolean--indeterminate .sv-boolean__slider,[style*="direction: rtl"] .sv-boolean--indeterminate .sv-boolean__slider{margin-right:calc(50% - .625em)}[dir=rtl] .sv-boolean--checked .sv-boolean__slider,[style*="direction:rtl"] .sv-boolean--checked .sv-boolean__slider,[style*="direction: rtl"] .sv-boolean--checked .sv-boolean__slider{margin-right:calc(100% - 1.25em)}.sv-boolean__switch{background-color:var(--main-color, #1ab394)}.sv-boolean__slider{background-color:var(--slider-color, #fff)}.sv-boolean__label--disabled{color:var(--disabled-label-color, rgba(64, 64, 64, .5))}.sv-boolean--disabled .sv-boolean__switch{background-color:var(--main-hover-color, #9f9f9f)}.sv-boolean--disabled .sv-boolean__slider{background-color:var(--disabled-slider-color, #cfcfcf)}.sv-imagepicker__item{border:none;padding:.24em}.sv-imagepicker__item--inline{display:inline-block}.sv-imagepicker__item--inline:not(:last-child){margin-right:4%}.sv-imagepicker__image{border:.24em solid rgba(0,0,0,0);display:block;pointer-events:none}.sv-imagepicker__label{cursor:inherit}.sv-imagepicker__text{font-size:1.14em;padding-left:.24em}.sv-imagepicker__item--allowhover:hover .sv-imagepicker__image{background-color:var(--main-hover-color, #9f9f9f);border-color:var(--main-hover-color, #9f9f9f)}.sv-imagepicker__item:not(.sv-imagepicker__item--checked) .sv-imagepicker__control:focus~div .sv-imagepicker__image{background-color:var(--main-hover-color, #9f9f9f);border-color:var(--main-hover-color, #9f9f9f)}.sv-imagepicker__item--checked .sv-imagepicker__image{background-color:var(--main-color, #1ab394);border-color:var(--main-color, #1ab394)}.sv-imagepicker__item{cursor:pointer}.sv-imagepicker__item--disabled{cursor:default}.sv-imagepicker__item--disabled.sv-imagepicker__item--checked .sv-imagepicker__image{background-color:var(--disable-color, #dbdbdb);border-color:var(--disable-color, #dbdbdb)}.sv-dropdown{appearance:none;-webkit-appearance:none;-moz-appearance:none;display:block;background:#0000;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat,repeat;background-position:right .7em top 50%,0 0;background-size:.57em 100%;border:none;border-bottom:.06em solid var(--text-border-color, #d4d4d4);box-sizing:border-box;font-family:inherit;font-size:inherit;padding-block:.25em;padding-inline-end:1.5em;padding-inline-start:.87em;height:2.19em;width:100%;display:flex;justify-content:space-between}.sv-dropdown input[readonly]{pointer-events:none}.sv-dropdown:focus,.sv-dropdown:focus-within{background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%231AB394;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E ");border-color:var(--text-border-color, #d4d4d4);outline:none}.sv-dropdown::-ms-expand{display:none}.sv-dropdown--error{border-color:var(--error-color, #d52901);color:var(--error-color, #d52901)}.sv-dropdown--error::placeholder,.sv-dropdown--error::-ms-input-placeholder{color:var(--error-color, #d52901)}.sv-dropdown option{color:var(--text-color, #404040)}.sv-dropdown__value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:inherit;color:var(--text-color, #404040);position:relative}.sv-dropdown__value .sv-string-viewer{line-height:28px}.sv_dropdown_control__input-field-component{height:auto}.sv-dropdown__hint-prefix{opacity:.5}.sv-dropdown__hint-prefix span{word-break:unset;line-height:28px}.sv-dropdown__hint-suffix{display:flex;opacity:.5}.sv-dropdown__hint-suffix span{word-break:unset;line-height:28px}.sv-dropdown_clean-button{padding:3px 12px;margin:auto 0}.sv-dropdown_clean-button-svg{width:12px;height:12px}.sv-input.sv-dropdown:focus-within .sv-dropdown__filter-string-input{z-index:2000}.sv-dropdown__filter-string-input{border:none;outline:none;padding:0;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:inherit;background-color:#0000;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;left:0;top:0;height:100%}.sv-dropdown--empty:not(.sv-input--disabled) .sv-dropdown__filter-string-input::placeholder{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));color:var(--text-color, #404040)}.sv-dropdown__filter-string-input::placeholder{color:var(--disabled-text-color, rgba(64, 64, 64, .5));font-size:inherit;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;-webkit-appearance:none;-moz-appearance:none;appearance:none}[dir=rtl] .sv-dropdown,[style*="direction:rtl"] .sv-dropdown,[style*="direction: rtl"] .sv-dropdown{background-position:left .7em top 50%,0 0}.sv-input.sv-tagbox:not(.sv-tagbox--empty):not(.sv-input--disabled){height:auto;padding:.5em;padding-inline-end:2em}.sv-tagbox_clean-button{height:1.5em;padding:.5em;margin:auto 0}.sv-tagbox__value.sv-dropdown__value{position:relative;gap:.25em;display:flex;flex-wrap:wrap;flex-grow:1;padding-inline:unset;margin-inline:unset;margin-block:unset}.sv-tagbox__item{position:relative;display:flex;color:var(--text-color, #404040);height:1.5em;padding-block:.25em;padding-inline-end:.4em;padding-inline-start:.87em;border:solid .1875em #9f9f9f;border-radius:2px;min-width:2.3125em}.sv-tagbox__item:hover{background-color:var(--main-hover-color, #9f9f9f);color:var(--body-background-color, white)}.sv-tagbox__item:hover .sv-tagbox__item_clean-button-svg use{fill:var(--body-background-color, white)}.sv-tagbox__item-text{color:inherit;font-size:1em}.sv-tagbox__item_clean-button-svg{margin:.3125em;width:1em;height:1em}.sv-tagbox__item_clean-button-svg use{fill:var(--text-color, #404040)}.sv-tagbox__filter-string-input{width:auto;display:flex;flex-grow:1;position:initial}.sv-tagbox__placeholder{position:absolute;top:0;left:0;max-width:100%;width:auto;height:100%;text-align:start;cursor:text;pointer-events:none;color:var(--main-hover-color, #9f9f9f)}.sv-tagbox{border-bottom:.06em solid var(--text-border-color, #d4d4d4)}.sv-tagbox:focus{border-color:var(--text-border-color, #d4d4d4)}.sv-tagbox--error{border-color:var(--error-color, #d52901);color:var(--error-color, #d52901)}.sv-tagbox--error::placeholder{color:var(--error-color, #d52901)}.sv-tagbox--error::-ms-input-placeholder{color:var(--error-color, #d52901)}.sv-tagbox .sv-dropdown__filter-string-input{height:auto}.sv-text{box-sizing:border-box;width:100%;height:2.19em;padding:.25em 0 .25em .87em;border:none;border-radius:0;border-bottom:.07em solid var(--text-border-color, #d4d4d4);box-shadow:none;background-color:#0000;font-family:inherit;font-size:1em}.sv-text:focus{border-color:var(--main-color, #1ab394);outline:none;box-shadow:none}.sv-text:invalid{box-shadow:none}.sv-text:-webkit-autofill{-webkit-box-shadow:0 0 0 30px #fff inset}.sv-text::placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text:-ms-input-placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text::-ms-input-placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text[type=date]{padding-right:2px;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat,repeat;background-position:right .61em top 50%,0 0;background-size:.57em auto,100%}.sv-text[type=date]:focus{background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%231AB394;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E ")}.sv-text[type=date]::-webkit-calendar-picker-indicator{color:#0000;background:#0000}.sv-text[type=date]::-webkit-clear-button{display:none}.sv-text[type=date]::-webkit-inner-spin-button{display:none}.sv-text--error{color:var(--error-color, #d52901);border-color:var(--error-color, #d52901)}.sv-text--error::placeholder{color:var(--error-color, #d52901)}.sv-text--error::-ms-input-placeholder{color:var(--error-color, #d52901)}input.sv-text,textarea.sv-comment,select.sv-dropdown{color:var(--text-color, #404040);background-color:var(--inputs-background-color, white)}.sv-rating{color:var(--text-color, #404040);padding-bottom:3px}.sv-rating input:focus+.sv-rating__min-text+.sv-rating__item-text,.sv-rating input:focus+.sv-rating__item-text{outline:1px solid var(--main-color, #1ab394);outline-offset:2px}.sv-rating__item{position:relative;display:inline}.sv-rating__item-text{min-width:2.3125em;height:2.3125em;display:inline-block;color:var(--main-hover-color, #9f9f9f);padding:0 .3125em;border:solid .1875em var(--main-hover-color, #9f9f9f);text-align:center;font-size:1em;font-weight:700;line-height:1.13;cursor:pointer;margin:3px .26em 3px 0;box-sizing:border-box}.sv-rating__item-text>span{margin-top:.44em;display:inline-block}.sv-rating__item-text:hover{background-color:var(--main-hover-color, #9f9f9f);color:var(--body-background-color, white)}.sv-rating__item--selected .sv-rating__item-text{background-color:var(--main-color, #1ab394);color:var(--body-background-color, white);border-color:var(--main-color, #1ab394)}.sv-rating__item--selected .sv-rating__item-text:hover{background-color:var(--main-color, #1ab394)}.sv-rating__item-star>svg{fill:var(--text-color, #404040);height:32px;width:32px;display:inline-block;vertical-align:middle;border:1px solid rgba(0,0,0,0)}.sv-rating__item-star>svg:hover{border:1px solid var(--main-hover-color, #9f9f9f)}.sv-rating__item-star>svg.sv-star-2{display:none}.sv-rating__item-star--selected>svg{fill:var(--main-color, #1ab394)}.sv-rating__item-smiley>svg{height:24px;width:24px;padding:4px;display:inline-block;vertical-align:middle;border:3px solid var(--border-color, rgba(64, 64, 64, .5));margin:3px .26em 3px 0;fill:var(--main-hover-color, #9f9f9f)}.sv-rating__item-smiley>svg>use{display:block}.sv-rating__item-smiley>svg:hover{border:3px solid var(--main-hover-color, #9f9f9f);background-color:var(--main-hover-color, #9f9f9f)}.sv-rating__item-smiley--selected>svg{background-color:var(--main-color, #1ab394);fill:var(--body-background-color, white);border:3px solid var(--main-color, #1ab394)}.sv-rating__min-text{font-size:1em;margin-right:1.25em;cursor:pointer}.sv-rating__max-text{font-size:1em;margin-left:.87em;cursor:pointer}.sv-question--disabled .sv-rating__item-text{cursor:default;color:var(--disable-color, #dbdbdb);border-color:var(--disable-color, #dbdbdb)}.sv-question--disabled .sv-rating__item-text:hover{background-color:#0000}.sv-question--disabled .sv-rating--disabled .sv-rating__item-text:hover .sv-rating__item--selected .sv-rating__item-text,.sv-question--disabled .sv-rating__item--selected .sv-rating__item-text{background-color:var(--disable-color, #dbdbdb);color:var(--body-background-color, white)}.sv-question--disabled .sv-rating__min-text,.sv-question--disabled .sv-rating__max-text{cursor:default}.sv-comment{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:.06em solid var(--text-border-color, #d4d4d4);border-radius:0;box-sizing:border-box;padding:.25em .87em;font-family:inherit;font-size:1em;outline:none;width:100%;max-width:100%}.sv-comment:focus{border-color:var(--main-color, #1ab394)}.sv-file{position:relative}.sv-file__decorator{background-color:var(--body-container-background-color, #f4f4f4);padding:1.68em 0}.sv-file__clean-btn{background-color:var(--remove-button-color, #ff1800);margin-top:1.25em}.sv-file__choose-btn:not(.sv-file__choose-btn--disabled){background-color:var(--add-button-color, #1948b3);display:inline-block}.sv-file__choose-btn--disabled{cursor:default;background-color:var(--disable-color, #dbdbdb);display:inline-block}.sv-file__no-file-chosen{display:inline-block;font-size:.87em;margin-left:1em}.sv-file__preview{display:inline-block;padding-right:23px;position:relative;margin-top:1.25em;vertical-align:top}.sv-file__preview:not(:last-child){margin-right:31px}.sv-file__remove-svg{position:absolute;fill:#ff1800;cursor:pointer;height:16px;top:0;right:0;width:16px}.sv-file__remove-svg .sv-svg-icon{width:16px;height:16px}.sv-file__sign a{color:var(--text-color, #404040);text-align:left;text-decoration:none}.sv-file__wrapper{position:relative;display:inline-block;margin:0 0 0 50%;transform:translate(-50%);padding:0}.sv-clearfix:after{content:"";display:table;clear:both}.sv-completedpage{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:1.875em;font-weight:700;box-sizing:border-box;height:14em;padding-top:4.5em;padding-bottom:4.5em;text-align:center;color:var(--text-color, #404040);background-color:var(--body-container-background-color, #f4f4f4)}.sv-completedpage:before{display:block;content:"";background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 23.0.6, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 72 72' style='enable-background:new 0 0 72 72;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cg%3E%3Cpath class='st0' d='M11.9,72c-0.6-0.1-1.2-0.3-1.8-0.4C4.2,70.1,0,64.7,0,58.6c0-15.1,0-30.1,0-45.2C0,6,6,0,13.4,0 c12,0,24,0,36,0c2.4,0,4.4,1.7,4.6,4c0.2,2.4-1.3,4.4-3.6,4.9C50,9,49.7,9,49.4,9C37.6,9,25.8,9,14,9c-1.5,0-2.8,0.4-3.9,1.5 c-0.8,0.9-1.2,2-1.2,3.2c0,8.2,0,16.4,0,24.6C9,45,9,51.6,9,58.2c0,2.9,1.9,4.8,4.8,4.8c14.9,0,29.7,0,44.6,0c2.6,0,4.6-2,4.6-4.6 c0-5.9,0-11.8,0-17.7c0-2.4,1.6-4.3,3.9-4.6c2.3-0.3,4.3,1,5,3.4c0,0.1,0.1,0.2,0.1,0.2c0,6.8,0,13.6,0,20.4c0,0.1-0.1,0.3-0.1,0.4 c-0.8,5.4-4.7,9.8-10.1,11.2c-0.6,0.1-1.2,0.3-1.8,0.4C44,72,28,72,11.9,72z'/%3E%3Cpath class='st0' d='M35.9,38.8c0.4-0.4,0.5-0.7,0.7-0.9c8.4-8.4,16.8-16.8,25.2-25.2c1.9-1.9,4.5-2,6.3-0.4 c1.9,1.6,2.1,4.6,0.4,6.4c-0.2,0.2-0.3,0.3-0.5,0.5c-9.5,9.5-19.1,19.1-28.6,28.6c-2.2,2.2-4.8,2.2-7,0 c-5.1-5.1-10.2-10.2-15.4-15.4c-1.3-1.3-1.7-2.8-1.2-4.5c0.5-1.7,1.6-2.8,3.4-3.1c1.6-0.4,3.1,0.1,4.2,1.3c4,4,7.9,7.9,11.9,11.9 C35.6,38.2,35.7,38.5,35.9,38.8z'/%3E%3C/g%3E%3C/svg%3E%0A");width:72px;height:72px;margin-left:calc(50% - 36px);padding:36px 0;box-sizing:border-box}@media only screen and (min-width: 1000px){.sv-completedpage{margin-right:5%;margin-left:calc(5% + .293em)}}@media only screen and (max-width: 1000px){.sv-completedpage{margin-left:calc(10px + .293em);margin-right:10px}}.sv-header{white-space:nowrap}.sv-logo--left{display:inline-block;vertical-align:top;margin-right:2em}.sv-logo--right{vertical-align:top;margin-left:2em;float:right}.sv-logo--top,.sv-logo--bottom{display:block;width:100%;text-align:center}.sv-header__text{display:inline-block;vertical-align:top}.sjs_sp_container{border:1px dashed var(--disable-color, #dbdbdb)}.sjs_sp_placeholder{color:var(--foreground-light, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)))}.sv-action-bar{display:flex;box-sizing:content-box;position:relative;align-items:center;margin-left:auto;overflow:hidden;white-space:nowrap}.sv-action-bar-separator{display:inline-block;width:1px;height:24px;vertical-align:middle;margin-right:16px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv-action-bar--default-size-mode .sv-action-bar-separator{margin:0 var(--sjs-base-unit, var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-separator{margin:0 calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-action-bar-item{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;padding:var(--sjs-base-unit, var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:calc(.5*(var(--sjs-corner-radius, 4px)));background-color:#0000;color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:pointer;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));overflow-x:hidden;white-space:nowrap}button.sv-action-bar-item{overflow:hidden}.sv-action-bar--default-size-mode .sv-action-bar-item{height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));margin:0 var(--sjs-base-unit, var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-item{height:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));font-size:calc(.75*(var(--sjs-font-size, 16px)));line-height:var(--sjs-font-size, 16px);margin:0 calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-action:first-of-type .sv-action-bar-item{margin-inline-start:0}.sv-action:last-of-type .sv-action-bar-item{margin-inline-end:0}.sv-action-bar--default-size-mode .sv-action-bar-item__title--with-icon{margin-inline-start:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-item__title--with-icon{margin-inline-start:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-action-bar-item__icon svg{display:block}.sv-action-bar-item__icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-action-bar-item:not(.sv-action-bar-item--pressed):hover:enabled,.sv-action-bar-item:not(.sv-action-bar-item--pressed):focus:enabled{outline:none;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-action-bar-item--active.sv-action-bar-item--pressed:focus,.sv-action-bar-item--active.sv-action-bar-item--pressed:focus-visible{outline:none}.sv-action-bar-item:not(.sv-action-bar-item--pressed):active:enabled{opacity:.5}.sv-action-bar-item:disabled{opacity:.25;cursor:default}.sv-action-bar-item__title{color:inherit;vertical-align:middle;white-space:nowrap}.sv-action-bar-item--secondary .sv-action-bar-item__icon use{fill:var(--sjs-secondary-backcolor, var(--secondary, #ff9814))}.sv-action-bar-item--active .sv-action-bar-item__icon use{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-action-bar-item-dropdown{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding:var(--sjs-base-unit, var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:calc(.5*(var(--sjs-corner-radius, 4px)));background-color:#0000;cursor:pointer;line-height:calc(1.5*(var(--sjs-font-size, 16px)));font-size:var(--sjs-font-size, 16px);font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-expand-action:before{content:"";display:inline-block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:10px;width:12px;margin:auto 8px}.sv-expand-action--expanded:before{transform:rotate(180deg)}.sv-dots{width:48px}.sv-dots__item{width:100%}.sv-dots__item .sv-action-bar-item__icon{margin:auto}.sv-action--hidden{width:0px;height:0px;overflow:hidden;visibility:hidden}.sv-action--hidden .sv-action__content{min-width:fit-content}.sv-action__content{display:flex;flex-direction:row;align-items:center}.sv-action__content>*{flex:0 0 auto}.sv-action--space{margin-left:auto}.sv-action-bar-item--pressed:not(.sv-action-bar-item--active){background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));opacity:50%}.sv-dragged-element-shortcut{height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));min-width:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:calc(4.5*(var(--sjs-base-unit, var(--base-unit, 8px))));background-color:var(--sjs-general-backcolor, var(--background, #fff));padding:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));cursor:grabbing;position:absolute;z-index:10000;box-shadow:0 8px 16px #0000001a;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:var(--sjs-font-size, 16px);padding-left:calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)))}.sv-matrixdynamic__drag-icon{padding-top:calc(1.75*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-matrixdynamic__drag-icon:after{content:" ";display:block;height:calc(.75*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))));border:1px solid #e7e7e7;box-sizing:border-box;border-radius:calc(1.25*(var(--sjs-base-unit, var(--base-unit, 8px))));cursor:move;margin-top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-matrixdynamic-dragged-row{cursor:grabbing;position:absolute;z-index:10000;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-matrixdynamic-dragged-row .sd-table__row{box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1));background-color:var(--sjs-general-backcolor, var(--background, #fff));display:flex;flex-grow:0;flex-shrink:0;align-items:center;line-height:0}.sv-matrixdynamic-dragged-row .sd-table__cell.sd-table__cell--drag>div{background-color:var(--sjs-questionpanel-backcolor, var(--sjs-question-background, var(--sjs-general-backcolor, var(--background, #fff))));min-height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sd-table__cell--header.sd-table__cell--drag,.sd-table__cell.sd-table__cell--drag{padding-right:0;padding-left:0}.sd-question--mobile .sd-table__cell--header.sd-table__cell--drag,.sd-question--mobile .sd-table__cell.sd-table__cell--drag{display:none}.sv-matrix-row--drag-drop-ghost-mod td{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-matrix-row--drag-drop-ghost-mod td>*{visibility:hidden}.sv-drag-drop-choices-shortcut{cursor:grabbing;position:absolute;z-index:10000;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));min-width:100px;max-width:400px}.sv-drag-drop-choices-shortcut .sv-ranking-item{height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-drag-drop-choices-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-viewer,.sv-drag-drop-choices-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-editor{overflow:hidden;white-space:nowrap}.sv-drag-drop-choices-shortcut__content.sv-drag-drop-choices-shortcut__content{min-width:100px;box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1));background-color:var(--sjs-general-backcolor, var(--background, #fff));border-radius:calc(4.5*var(--sjs-base-unit, var(--base-unit, 8px)));padding-right:calc(2*var(--sjs-base-unit, var(--base-unit, 8px)));margin-left:0}sv-popup{display:block;position:absolute}.sv-popup{position:fixed;left:0;top:0;width:100vw;outline:none;z-index:2000;height:100vh}.sv-dropdown-popup,.sv-popup.sv-popup-inner{height:0}.sv-popup-inner>.sv-popup__container{margin-top:calc(-1*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item--with-icon .sv-popup-inner>.sv-popup__container{margin-top:calc(-.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup__container{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1));border-radius:var(--sjs-corner-radius, 4px);position:absolute;padding:0}.sv-popup__body-content{background-color:var(--sjs-general-backcolor, var(--background, #fff));border-radius:var(--sjs-corner-radius, 4px);width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;max-height:90vh;max-width:100vw}.sv-popup--modal{display:flex;align-items:center;justify-content:center;background-color:var(--background-semitransparent, rgba(144, 144, 144, .5));padding:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(15*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(8*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:border-box}.sv-popup--modal>.sv-popup__container{position:static;display:flex}.sv-popup--modal>.sv-popup__container>.sv-popup__body-content{background-color:var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9));padding:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));height:auto;gap:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--modal .sv-popup__body-footer .sv-footer-action-bar{overflow:visible}.sv-popup--confirm .sv-popup__container{border-radius:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--confirm .sv-popup__body-content{border-radius:var(--sjs-base-unit, var(--base-unit, 8px));max-width:min-content;align-items:flex-end;min-width:452px}.sv-popup--confirm .sv-popup__body-header{color:var(--sjs-font-editorfont-color, var(--sjs-general-forecolor, rgba(0, 0, 0, .91)));align-self:self-start;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:var(--sjs-font-size, 16px);font-style:normal;font-weight:400;line-height:calc(1.5*(var(--sjs-font-size, 16px)))}.sv-popup--confirm .sv-popup__scrolling-content{display:none}.sv-popup--confirm .sv-popup__body-footer{max-width:max-content}.sv-popup--confirm .sv-popup__body-footer .sv-action-bar{gap:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sd-root-modern--mobile .sv-popup--confirm .sv-popup__body-content{min-width:auto}.sv-popup--overlay{width:100%;height:var(--sv-popup-overlay-height, 100vh)}.sv-popup--overlay .sv-popup__container{background:var(--background-semitransparent, rgba(144, 144, 144, .5));max-width:100vw;max-height:calc(var(--sv-popup-overlay-height, 100vh) - 1*var(--sjs-base-unit, var(--base-unit, 8px)));height:calc(var(--sv-popup-overlay-height, 100vh) - 1*var(--sjs-base-unit, var(--base-unit, 8px)));width:100%;padding-top:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border:unset;box-shadow:unset;box-sizing:content-box}.sv-popup--overlay .sv-popup__body-content{max-height:var(--sv-popup-overlay-height, 100vh);max-width:100vw;border-radius:calc(4*(var(--sjs-corner-radius, 4px))) calc(4*(var(--sjs-corner-radius, 4px))) 0px 0px;background:var(--sjs-general-backcolor, var(--background, #fff));padding:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(100% - 1*var(--sjs-base-unit, var(--base-unit, 8px)))}.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 10*var(--base-unit, 8px))}.sv-popup--overlay .sv-popup__body-footer .sv-action-bar,.sv-popup--overlay .sv-popup__body-footer-item{width:100%}.sv-popup--overlay .sv-popup__body-footer .sv-action{flex:1 0 0}.sv-popup--overlay .sv-popup__button.sv-popup__button{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:2px solid var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff))}.sv-popup--modal .sv-popup__scrolling-content{padding:2px;margin:-2px}.sv-popup__scrolling-content{height:100%;overflow:auto;display:flex;flex-direction:column}.sv-popup__scrolling-content::-webkit-scrollbar,.sv-popup__scrolling-content *::-webkit-scrollbar{height:6px;width:6px;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-popup__scrolling-content::-webkit-scrollbar-thumb,.sv-popup__scrolling-content *::-webkit-scrollbar-thumb{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)))}.sv-popup__content{min-width:100%;height:100%;display:flex;flex-direction:column;min-height:0;position:relative}.sv-popup--show-pointer.sv-popup--top .sv-popup__pointer{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px))))) rotate(180deg)}.sv-popup--show-pointer.sv-popup--bottom .sv-popup__pointer{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))),calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))))}.sv-popup--show-pointer.sv-popup--right .sv-popup__container{transform:translate(var(--sjs-base-unit, var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right .sv-popup__container .sv-popup__pointer{transform:translate(-12px,-4px) rotate(-90deg)}.sv-popup--show-pointer.sv-popup--left .sv-popup__container{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))))}.sv-popup--show-pointer.sv-popup--left .sv-popup__container .sv-popup__pointer{transform:translate(-4px,-4px) rotate(90deg)}.sv-popup__pointer{display:block;position:absolute}.sv-popup__pointer:after{content:" ";display:block;width:0;height:0;border-left:var(--sjs-base-unit, var(--base-unit, 8px)) solid rgba(0,0,0,0);border-right:var(--sjs-base-unit, var(--base-unit, 8px)) solid rgba(0,0,0,0);border-bottom:var(--sjs-base-unit, var(--base-unit, 8px)) solid var(--sjs-general-backcolor, var(--background, #fff));align-self:center}.sv-popup__body-header{font-family:Open Sans;font-size:calc(1.5*(var(--sjs-font-size, 16px)));line-height:calc(2*(var(--sjs-font-size, 16px)));font-style:normal;font-weight:700;color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-popup__body-footer{display:flex}.sv-popup__body-footer .sv-action-bar{gap:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--modal .sv-list__filter,.sv-popup--overlay .sv-list__filter{padding-top:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter-icon,.sv-popup--overlay .sv-list__filter-icon{top:calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown .sv-list__filter{margin-bottom:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--dropdown .sv-popup__body-content{background-color:var(--sjs-general-backcolor, var(--background, #fff));padding:var(--sjs-base-unit, var(--base-unit, 8px)) 0;height:100%}.sv-popup--dropdown>.sv-popup__container>.sv-popup__body-content .sv-list{background-color:#0000}.sv-dropdown-popup .sv-popup__body-content{padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0}.sv-dropdown-popup .sv-list__filter{margin-bottom:0}.sv-popup--overlay .sv-popup__body-content{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));gap:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay{z-index:2001;padding:0}.sv-popup--dropdown-overlay .sv-popup__body-content{padding:0;border-radius:0}.sv-popup--dropdown-overlay .sv-popup__body-footer .sv-action-bar .sv-action{flex:0 0 auto}.sv-popup--dropdown-overlay .sv-popup__button.sv-popup__button{background-color:#0000;color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:none;box-shadow:none;padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-popup__container{max-height:calc(var(--sv-popup-overlay-height, 100vh));height:calc(var(--sv-popup-overlay-height, 100vh));padding-top:0}.sv-popup--dropdown-overlay .sv-popup__body-content{height:calc(var(--sv-popup-overlay-height, 100vh));gap:0}.sv-popup--dropdown-overlay .sv-popup__body-footer{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));padding-top:var(--sjs-base-unit, var(--base-unit, 8px));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px));border-top:1px solid var(--sjs-border-light, var(--border-light, #eaeaea))}.sv-popup--dropdown-overlay .sv-popup__scrolling-content{height:calc(100% - 6*var(--base-unit, 8px))}.sv-popup--dropdown-overlay .sv-list__filter-icon .sv-svg-icon{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__container{padding:0}.sv-popup--dropdown-overlay .sv-list{flex-grow:1;padding:var(--sjs-base-unit, var(--base-unit, 8px)) 0}.sv-popup--dropdown-overlay .sv-list__filter{display:flex;align-items:center;margin-bottom:0;padding:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px)) calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__filter-icon{position:static;height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__empty-container{display:flex;flex-direction:column;justify-content:center;flex-grow:1;padding:var(--sjs-base-unit, var(--base-unit, 8px)) calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-popup--dropdown-overlay .sv-popup__button:disabled{pointer-events:none;color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25}.sv-popup--dropdown-overlay .sv-list__filter-clear-button{height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:100%;background-color:#0000}.sv-popup--dropdown-overlay .sv-list__filter-clear-button svg{height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__filter-clear-button svg use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-popup--dropdown-overlay .sv-list__input{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090));font-size:max(16px,var(--sjs-font-size, 16px));line-height:max(24px,1.5*(var(--sjs-font-size, 16px)));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0 calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__item:hover .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item:focus .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item--focused .sv-list__item-body{background:var(--sjs-general-backcolor, var(--background, #fff))}.sv-popup--dropdown-overlay .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-popup--dropdown-overlay .sv-popup__body-footer .sv-action-bar{justify-content:flex-start}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter{padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px)) calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list{padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-popup__button.sv-popup__button{padding:var(--sjs-base-unit, var(--base-unit, 8px)) calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-popup__body-footer{padding-top:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));background-color:var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter-icon .sv-svg-icon{width:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter-icon{height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__input{padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0 calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)));color:var(--sjs-general-forecolor, var(--foreground, #161616));font-weight:400}.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__body-content{--sv-popup-overlay-max-height: calc(var(--sv-popup-overlay-height, 100vh) - var(--sjs-base-unit, var(--base-unit, 8px)) * 8);--sv-popup-overlay-max-width: calc(100% - var(--sjs-base-unit, var(--base-unit, 8px)) * 8);position:absolute;transform:translate(-50%,-50%);left:50%;top:50%;max-height:var(--sv-popup-overlay-max-height);min-height:min(var(--sv-popup-overlay-max-height),30*(var(--sjs-base-unit, var(--base-unit, 8px))));height:auto;width:auto;min-width:min(40*(var(--sjs-base-unit, var(--base-unit, 8px))),var(--sv-popup-overlay-max-width));max-width:var(--sv-popup-overlay-max-width);border-radius:var(--sjs-corner-radius, 4px);overflow:hidden;box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1))}.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__content,.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__scrolling-content,.sv-popup--dropdown-overlay.sv-popup--tablet .sv-list__container{flex-grow:1}.sv-popup--visible{opacity:1}.sv-popup--enter{animation-name:fadeIn;animation-fill-mode:forwards;animation-duration:.15s}.sv-popup--modal.sv-popup--enter{animation-timing-function:cubic-bezier(0,0,.58,1);animation-duration:.25s}.sv-popup--leave{animation-direction:reverse;animation-name:fadeIn;animation-fill-mode:forwards;animation-duration:.15s}.sv-popup--modal.sv-popup--leave{animation-timing-function:cubic-bezier(.42,0,1,1);animation-duration:.25s}.sv-popup--hidden{opacity:0}@keyframes modalMoveUp{0%{transform:translateY(64px)}to{transform:translateY(0)}}.sv-popup--modal.sv-popup--leave .sv-popup__container,.sv-popup--modal.sv-popup--enter .sv-popup__container{animation-name:modalMoveUp;animation-timing-function:cubic-bezier(0,0,.58,1);animation-fill-mode:forwards;animation-duration:.25s}.sv-popup--modal.sv-popup--leave .sv-popup__container{animation-direction:reverse;animation-timing-function:cubic-bezier(.42,0,1,1)}.sv-button-group{display:flex;align-items:center;flex-direction:row;font-size:var(--sjs-font-size, 16px);overflow:auto;border:1px solid var(--sjs-border-default, var(--border, #d6d6d6))}.sv-button-group__item{display:flex;box-sizing:border-box;flex-direction:row;justify-content:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;padding:11px calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)));outline:none;font-size:var(--sjs-font-size, 16px);font-weight:400;background:var(--sjs-general-backcolor, var(--background, #fff));cursor:pointer;overflow:hidden;color:var(--sjs-general-forecolor, var(--foreground, #161616));position:relative}.sv-button-group__item:not(:last-of-type){border-right:1px solid var(--sjs-border-default, var(--border, #d6d6d6))}.sv-button-group__item--hover:hover{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-button-group__item-icon{display:block;height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-button-group__item-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-button-group__item--selected{font-weight:600;color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item--selected .sv-button-group__item-icon use{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item--selected:hover{background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-button-group__item-decorator{display:flex;align-items:center;max-width:100%}.sv-button-group__item-caption{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-button-group__item-icon+.sv-button-group__item-caption{margin-left:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-button-group__item--disabled{color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:default}.sv-button-group__item--disabled .sv-button-group__item-decorator{opacity:.25;font-weight:400}.sv-button-group__item--disabled .sv-button-group__item-icon use{fill:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-button-group__item--disabled:hover{background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-button-group:focus-within{box-shadow:0 0 0 1px var(--sjs-primary-backcolor, var(--primary, #19b394));border-color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-visuallyhidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.sv-hidden{display:none!important}.sv-title-actions{display:flex;align-items:center;width:100%}.sv-title-actions__title{flex-wrap:wrap;max-width:90%;min-width:50%;white-space:initial}.sv-action-title-bar{min-width:56px}.sv-title-actions .sv-title-actions__title{flex-wrap:wrap;flex:0 1 auto;max-width:unset;min-width:unset}.sv-title-actions .sv-action-title-bar{flex:1 1 auto;justify-content:flex-end;min-width:unset}.sv_window{position:fixed;bottom:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));right:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:var(--sjs-base-unit, var(--base-unit, 8px));border:1px solid var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, .16)));box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1));background-clip:padding-box;z-index:100;max-height:50vh;overflow:auto;box-sizing:border-box;background:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));width:calc(100% - 4*(var(--sjs-base-unit, var(--base-unit, 8px))))!important}@-moz-document url-prefix(){.sv_window,.sv_window *{scrollbar-width:thin;scrollbar-color:var(--sjs-border-default, var(--border, #d6d6d6)) rgba(0,0,0,0)}}.sv_window::-webkit-scrollbar,.sv_window *::-webkit-scrollbar{width:12px;height:12px;background-color:#0000}.sv_window::-webkit-scrollbar-thumb,.sv_window *::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:32px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv_window::-webkit-scrollbar-track,.sv_window *::-webkit-scrollbar-track{background:#0000}.sv_window::-webkit-scrollbar-thumb:hover,.sv_window *::-webkit-scrollbar-thumb:hover{border:2px solid rgba(0,0,0,0);background-color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv_window_root-content{height:100%}.sv_window--full-screen{top:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));right:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));bottom:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));max-height:100%;width:initial!important;max-width:initial!important}.sv_window_header{display:flex;justify-content:flex-end}.sv_window_content{overflow:hidden}.sv_window--collapsed{height:initial}.sv_window--collapsed .sv_window_header{height:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));padding:var(--sjs-base-unit, var(--base-unit, 8px)) var(--sjs-base-unit, var(--base-unit, 8px)) var(--sjs-base-unit, var(--base-unit, 8px)) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:var(--sjs-base-unit, var(--base-unit, 8px));display:flex;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));box-sizing:content-box}.sv_window--collapsed .sv_window_content{display:none}.sv_window--collapsed .sv_window_buttons_container{margin-top:0;margin-right:0}.sv_window_header_title_collapsed{color:var(--sjs-general-dim-forecolor, rgba(0, 0, 0, .91));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-style:normal;font-weight:600;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));flex:1;display:flex;justify-content:flex-start;align-items:center}.sv_window_header_description{color:var(--sjs-font-questiondescription-color, var(--sjs-general-forecolor-light, rgba(0, 0, 0, .45)));font-feature-settings:"salt" on;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-style:normal;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sv_window_buttons_container{position:fixed;margin-top:var(--sjs-base-unit, var(--base-unit, 8px));margin-right:var(--sjs-base-unit, var(--base-unit, 8px));display:flex;gap:var(--sjs-base-unit, var(--base-unit, 8px));z-index:10000}.sv_window_button{display:flex;padding:var(--sjs-base-unit, var(--base-unit, 8px));justify-content:center;align-items:center;border-radius:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));cursor:pointer}.sv_window_button:hover,.sv_window_button:active{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)))}.sv_window_button:hover svg use,.sv_window_button:hover svg path,.sv_window_button:active svg use,.sv_window_button:active svg path{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv_window_button:active{opacity:.5}.sv_window_button svg use,.sv_window_button svg path{fill:var(--sjs-general-dim-forecolor-light, rgba(0, 0, 0, .45))}sv-brand-info,.sv-brand-info{z-index:1;position:relative;margin-top:1px}.sv-brand-info{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));text-align:right;color:#161616;padding:24px 40px}.sv-brand-info a{color:#161616;text-decoration-line:underline}.sd-body--static .sv-brand-info{padding-top:0;margin-top:16px}.sd-body--responsive .sv-brand-info{padding-top:16px;margin-top:-8px}.sd-root-modern--mobile .sv-brand-info{padding:48px 24px 8px;margin-top:0;text-align:center}.sv-brand-info__text{font-weight:600;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));color:#161616}.sv-brand-info__logo{display:inline-block}.sv-brand-info__logo img{width:118px}.sv-brand-info__terms{font-weight:400;font-size:calc(.75*(var(--sjs-font-size, 16px)));line-height:var(--sjs-font-size, 16px);padding-top:4px}.sv-brand-info__terms a{color:#909090}.sd-body--responsive .sv-brand-info{padding-right:0;padding-left:0}.sv-ranking{outline:none;user-select:none;-webkit-user-select:none}.sv-ranking-item{cursor:pointer;position:relative;opacity:1}.sv-ranking-item:focus .sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking-item:hover:not(:focus) .sv-ranking-item__icon--hover{visibility:visible}.sv-question--disabled .sv-ranking-item:hover .sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking-item:focus{outline:none}.sv-ranking-item:focus .sv-ranking-item__icon--focus{visibility:visible;top:calc(.6*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item:focus .sv-ranking-item__index{background:var(--sjs-general-backcolor, var(--background, #fff));outline:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-ranking-item__content.sv-ranking-item__content{display:flex;align-items:center;line-height:1em;padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0px;border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item__icon-container{position:relative;left:0;bottom:0;flex-shrink:0;width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));align-self:flex-start;padding-left:var(--sjs-base-unit, var(--base-unit, 8px));padding-right:var(--sjs-base-unit, var(--base-unit, 8px));margin-left:calc(-2*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:content-box}.sv-ranking-item--disabled.sv-ranking-item--disabled,.sv-ranking-item--readonly.sv-ranking-item--readonly,.sv-ranking-item--preview.sv-ranking-item--preview{cursor:initial;user-select:initial;-webkit-user-select:initial}.sv-ranking-item--disabled.sv-ranking-item--disabled .sv-ranking-item__icon-container.sv-ranking-item__icon-container .sv-ranking-item__icon.sv-ranking-item__icon,.sv-ranking-item--readonly.sv-ranking-item--readonly .sv-ranking-item__icon-container.sv-ranking-item__icon-container .sv-ranking-item__icon.sv-ranking-item__icon,.sv-ranking-item--preview.sv-ranking-item--preview .sv-ranking-item__icon-container.sv-ranking-item__icon-container .sv-ranking-item__icon.sv-ranking-item__icon{visibility:hidden}.sv-ranking-item__icon.sv-ranking-item__icon{visibility:hidden;fill:var(--sjs-primary-backcolor, var(--primary, #19b394));position:absolute;top:var(--sjs-base-unit, var(--base-unit, 8px));width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item__index.sv-ranking-item__index{--sjs-internal-font-editorfont-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));display:flex;flex-shrink:0;align-items:center;justify-content:center;background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-size:var(--sjs-internal-font-editorfont-size);border-radius:100%;border:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid rgba(0,0,0,0);width:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)));box-sizing:border-box;font-weight:600;margin-left:calc(0*(var(--sjs-base-unit, var(--base-unit, 8px))));transition:outline var(--sjs-transition-duration, .15s),background var(--sjs-transition-duration, .15s);outline:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid rgba(0,0,0,0);align-self:self-start}.sv-ranking-item__index.sv-ranking-item__index svg{fill:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));width:var(--sjs-internal-font-editorfont-size);height:var(--sjs-internal-font-editorfont-size)}.sv-ranking-item__text{--sjs-internal-font-editorfont-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-size:var(--sjs-internal-font-editorfont-size);line-height:calc(1.5*(var(--sjs-internal-font-editorfont-size)));margin:0 calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));overflow-wrap:break-word;word-break:normal;align-self:self-start;padding-top:var(--sjs-base-unit, var(--base-unit, 8px));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-ranking-item__text .sv-string-viewer,.sv-ranking-item__text .sv-string-editor{overflow:initial;white-space:pre-line}.sd-ranking--disabled .sv-ranking-item__text{color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));opacity:.25}.sv-ranking-item--disabled .sv-ranking-item__text{color:var(--sjs-font-questiondescription-color, var(--sjs-general-forecolor-light, rgba(0, 0, 0, .45)));opacity:.25}.sv-ranking-item--readonly .sv-ranking-item__index{background-color:var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)))}.sv-ranking-item--preview .sv-ranking-item__index{background-color:#0000;border:1px solid var(--sjs-general-forecolor, var(--foreground, #161616));box-sizing:border-box}.sv-ranking-item__ghost.sv-ranking-item__ghost{display:none;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(31*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));z-index:1;position:absolute;left:0;top:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}[dir=rtl] .sv-ranking-item__ghost{left:initilal;right:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item--ghost{height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item--ghost .sv-ranking-item__text .sv-string-viewer,.sv-ranking-item--ghost .sv-ranking-item__text .sv-string-editor{white-space:unset}.sv-ranking-item--ghost .sv-ranking-item__ghost{display:block}.sv-ranking-item--ghost .sv-ranking-item__content{visibility:hidden}.sv-ranking-item--drag .sv-ranking-item__content{box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1));border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--drag .sv-ranking-item:hover .sv-ranking-item__icon{visibility:hidden}.sv-ranking-item--drag .sv-ranking-item__icon--hover{visibility:visible}.sv-ranking--mobile .sv-ranking-item__icon--hover{visibility:visible;fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-ranking--mobile.sv-ranking--drag .sv-ranking-item--ghost .sv-ranking-item__icon.sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking--mobile.sv-ranking-shortcut{max-width:80%}.sv-ranking--mobile .sv-ranking-item__index.sv-ranking-item__index,.sv-ranking--mobile .sd-element--with-frame .sv-ranking-item__icon{margin-left:0}.sv-ranking--design-mode .sv-ranking-item:hover .sv-ranking-item__icon{visibility:hidden}.sv-ranking--disabled{opacity:.8}.sv-ranking-shortcut[hidden]{display:none}.sv-ranking-shortcut .sv-ranking-item__icon{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-ranking-shortcut .sv-ranking-item__text{margin-right:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut .sv-ranking-item__icon--hover{visibility:visible}.sv-ranking-shortcut .sv-ranking-item__icon{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));top:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-ranking-shortcut .sv-ranking-item__content{padding-left:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut .sv-ranking-item__icon-container{margin-left:calc(0*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut{cursor:grabbing;position:absolute;z-index:10000;border-radius:calc(12.5*var(--sjs-base-unit, var(--base-unit, 8px)));min-width:100px;max-width:400px;box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1));background-color:var(--sjs-general-backcolor, var(--background, #fff));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-ranking-shortcut .sv-ranking-item{height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-viewer,.sv-ranking-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-editor{overflow:hidden;white-space:nowrap}.sv-ranking--select-to-rank{display:flex}.sv-ranking--select-to-rank-vertical{flex-direction:column-reverse}.sv-ranking--select-to-rank-vertical .sv-ranking__containers-divider{margin:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0;height:1px}.sv-ranking--select-to-rank-vertical .sv-ranking__container--empty{padding-top:var(--sjs-base-unit, var(--base-unit, 8px));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px));display:flex;justify-content:center;align-items:center}.sv-ranking-item--animate-item-removing{animation-name:moveIn,fadeIn;animation-direction:reverse;animation-fill-mode:forwards;animation-timing-function:linear;animation-duration:var(--sjs-ranking-move-out-duration, .15s),var(--sjs-ranking-fade-out-duration, .1s);animation-delay:var(--sjs-ranking-move-out-delay, 0ms),0s}.sv-ranking-item--animate-item-adding{animation-name:moveIn,fadeIn;opacity:0;animation-fill-mode:forwards;animation-timing-function:linear;animation-duration:var(--sjs-ranking-move-in-duration, .15s),var(--sjs-ranking-fade-in-duration, .1s);animation-delay:0s,var(--sjs-ranking-fade-in-delay, .15s)}.sv-ranking-item--animate-item-adding-empty{animation-name:fadeIn;opacity:0;animation-timing-function:linear;animation-duration:var(--sjs-ranking-fade-in-duration, .1s);animation-delay:0}.sv-ranking-item--animate-item-removing-empty{animation-name:fadeIn;animation-direction:reverse;animation-timing-function:linear;animation-duration:var(--sjs-ranking-fade-out-duration, .1s);animation-delay:0}@keyframes sv-animate-item-opacity-reverse-keyframes{0%{opacity:0}to{opacity:1}}@keyframes sv-animate-item-opacity-keyframes{0%{opacity:1}to{opacity:0}}.sv-ranking--select-to-rank-horizontal .sv-ranking__container{max-width:calc(50% - 1px)}.sv-ranking--select-to-rank-horizontal .sv-ranking__containers-divider{width:1px}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--to .sv-ranking-item{left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking-item{left:initial}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking__container-placeholder{padding-left:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--empty.sv-ranking__container--from .sv-ranking__container-placeholder{padding-right:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking__container-placeholder{color:var(--sjs-font-questiondescription-color, var(--sjs-general-dim-forecolor-light, rgba(0, 0, 0, .45)));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-style:normal;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));white-space:normal;display:flex;justify-content:center;align-items:center;height:100%;padding-top:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:border-box}.sv-ranking__container{flex:1}.sv-ranking__container--empty{box-sizing:border-box;text-align:center}.sv-ranking__containers-divider{background:var(--sjs-border-default, var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, .16))))}.sv-ranking__container--from .sv-ranking-item__icon--focus{display:none}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--to .sv-ranking-item{left:0!important;padding-left:16px}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--to .sv-ranking-item .sv-ranking-item__ghost{left:initial}.sv-ranking--select-to-rank-swap-areas{flex-direction:row-reverse}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--to .sv-ranking-item{padding-left:0;left:-24px!important}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--from .sv-ranking-item{padding-left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));left:0}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--from .sv-ranking-item__ghost.sv-ranking-item__ghost{left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking__container-placeholder{padding-right:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-left:0}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking-item__ghost.sv-ranking-item__ghost{right:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--from .sv-ranking__container-placeholder{padding-left:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-right:0}.sd-question--mobile .sv-ranking-item__icon-container,.sd-root-modern.sd-root-modern--mobile .sv-ranking-item__icon-container{margin-left:calc(-2*(var(--sjs-base-unit, var(--base-unit, 8px))));display:flex;justify-content:flex-end;padding:0;width:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list{padding:0;margin:0;overflow-y:auto;background:var(--sjs-general-backcolor, var(--background, #fff));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));list-style-type:none}.sv-list__empty-container{width:100%;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));box-sizing:border-box;padding:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__empty-text{line-height:calc(1.5*(var(--sjs-font-size, 16px)));font-size:var(--sjs-font-size, 16px);font-weight:400;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item{width:100%;align-items:center;box-sizing:border-box;color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-list__item-body{--sjs-list-item-padding-left-default: calc(2 * var(--sjs-base-unit, var(--base-unit, 8px)));--sjs-list-item-padding-left: calc(var(--sjs-list-item-level) * var(--sjs-list-item-padding-left-default));position:relative;width:100%;align-items:center;box-sizing:border-box;padding-block:var(--sjs-base-unit, var(--base-unit, 8px));padding-inline-end:calc(8*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-start:var(--sjs-list-item-padding-left, calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-weight:400;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));cursor:pointer;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;transition:background-color var(--sjs-transition-duration, .15s),color var(--sjs-transition-duration, .15s)}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected){outline:none}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected) .sv-list__item-body{border:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid var(--sjs-border-light, var(--border-light, #eaeaea));border-radius:var(--sjs-corner-radius, 4px);padding-block:calc(.75*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-end:calc(7.75*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-start:calc(1.75*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected) .sv-string-viewer{margin-inline-start:calc(-.25*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item:hover,.sv-list__item:focus{outline:none}.sv-list__item:focus .sv-list__item-body,.sv-list__item--hovered>.sv-list__item-body{background-color:var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)))}.sv-list__item--with-icon.sv-list__item--with-icon{padding:0}.sv-list__item--with-icon.sv-list__item--with-icon>.sv-list__item-body{padding-top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));gap:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));display:flex}.sv-list__item-icon{float:left;flex-shrink:0;width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item-icon svg{display:block}.sv-list__item-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list-item__marker-icon{position:absolute;right:var(--sjs-base-unit, var(--base-unit, 8px));width:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));flex-shrink:0;padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:content-box}.sv-list-item__marker-icon svg{display:block}.sv-list-item__marker-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}[dir=rtl] .sv-list__item-icon,[style*="direction:rtl"] .sv-list__item-icon,[style*="direction: rtl"] .sv-list__item-icon{float:right}.sv-list__item-separator{margin:var(--sjs-base-unit, var(--base-unit, 8px)) 0;height:1px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv-list--filtering .sv-list__item-separator{display:none}.sv-list__item.sv-list__item--selected>.sv-list__item-body,.sv-list__item.sv-list__item--selected:hover>.sv-list__item-body,.sv-list__item.sv-list__item--selected.sv-list__item--focused>.sv-list__item-body,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused>.sv-list__item-body,li:focus .sv-list__item.sv-list__item--selected>.sv-list__item-body{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-list__item.sv-list__item--selected .sv-list__item-icon use,.sv-list__item.sv-list__item--selected:hover .sv-list__item-icon use,.sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-icon use,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-icon use,li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use{fill:var(--sjs-general-backcolor, var(--background, #fff))}.sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use,.sv-list__item.sv-list__item--selected:hover .sv-list-item__marker-icon use,.sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list-item__marker-icon use,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list-item__marker-icon use,li:focus .sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use{fill:var(--sjs-primary-forecolor, var(--primary-foreground, #fff))}.sv-multi-select-list .sv-list__item.sv-list__item--selected .sv-list__item-body,.sv-multi-select-list .sv-list__item.sv-list__item--selected:hover .sv-list__item-body{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-weight:400}.sv-list__item--group-selected>.sv-list__item-body{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-weight:400}.sv-list__item--group-selected>.sv-list__item-body use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item.sv-list__item--disabled .sv-list__item-body{cursor:default;color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item span{white-space:nowrap}.sv-list__item-text--wrap span{white-space:normal;word-wrap:break-word}.sv-list__container{position:relative;height:100%;flex-direction:column;display:flex;min-height:0}.sv-list__filter{border-bottom:1px solid var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, .16)));background:var(--sjs-general-backcolor, var(--background, #fff));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-list__filter-icon{display:block;position:absolute;top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));inset-inline-start:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__filter-icon .sv-svg-icon{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__filter-icon .sv-svg-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;background:var(--sjs-general-backcolor, var(--background, #fff));box-sizing:border-box;width:100%;min-width:calc(30*(var(--sjs-base-unit, var(--base-unit, 8px))));outline:none;font-size:var(--sjs-font-size, 16px);color:var(--sjs-general-forecolor, var(--foreground, #161616));padding:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-start:calc(7*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)));border:none}.sv-list__input::placeholder{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__input:disabled,.sv-list__input:disabled::placeholder{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__loading-indicator{pointer-events:none}.sv-list__loading-indicator .sv-list__item-body{background-color:#0000}:root{--sjs-transition-duration: .15s}.sv-save-data_root{position:fixed;left:50%;bottom:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));background:var(--sjs-general-backcolor, var(--background, #fff));opacity:0;padding:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))));box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1));border-radius:calc(2*(var(--sjs-corner-radius, 4px)));color:var(--sjs-general-forecolor, var(--foreground, #161616));min-width:calc(30*(var(--sjs-base-unit, var(--base-unit, 8px))));text-align:center;z-index:1600;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));display:flex;flex-direction:row;justify-content:center;align-items:center;transform:translate(-50%) translateY(calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px)))));transition-timing-function:ease-in;transition-property:transform,opacity;transition-delay:.25s;transition:.5s}.sv-save-data_root.sv-save-data_root--shown{transition-timing-function:ease-out;transition-property:transform,opacity;transform:translate(-50%) translateY(0);transition-delay:.25s;opacity:.75}.sv-save-data_root span{display:flex;flex-grow:1}.sv-save-data_root .sv-action-bar{display:flex;flex-grow:0;flex-shrink:0}.sv-save-data_root--shown.sv-save-data_success,.sv-save-data_root--shown.sv-save-data_error{opacity:1}.sv-save-data_root.sv-save-data_root--with-buttons{padding:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-save-data_root.sv-save-data_error{background-color:var(--sjs-special-red, var(--red, #e60a3e));color:var(--sjs-general-backcolor, var(--background, #fff));font-weight:600;gap:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-save-data_root.sv-save-data_error .sv-save-data_button{font-weight:600;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));color:#fff;background-color:var(--sjs-special-red, var(--red, #e60a3e));border:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid #fff;border-radius:calc(1.5*(var(--sjs-corner-radius, 4px)));padding:var(--sjs-base-unit, var(--base-unit, 8px)) calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));display:flex;align-items:center}.sv-save-data_root.sv-save-data_error .sv-save-data_button:hover,.sv-save-data_root.sv-save-data_error .sv-save-data_button:focus{color:var(--sjs-special-red, var(--red, #e60a3e));background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-save-data_root.sv-save-data_success{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));color:#fff;font-weight:600}.sv-string-viewer.sv-string-viewer--multiline{white-space:pre-wrap}.sjs_sp_container{position:relative;max-width:100%}.sjs_sp_controls{position:absolute;left:0;bottom:0}.sjs_sp_controls>button{-webkit-user-select:none;user-select:none}.sjs_sp_container>div>canvas:focus{outline:none}.sjs_sp_placeholder{display:flex;align-items:center;justify-content:center;position:absolute;z-index:1;-webkit-user-select:none;user-select:none;pointer-events:none;width:100%;height:100%}.sjs_sp_canvas{position:relative;max-width:100%;display:block}.sjs_sp__background-image{position:absolute;top:0;left:0;object-fit:cover;max-width:100%;width:100%;height:100%}:root{--sjs-default-font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif}.sv-boolean__decorator{border-radius:2px}.sv_main .sv-boolean__decorator+.sv-boolean__label{float:none;vertical-align:top;margin-left:.5em}.sv-boolean__svg{border:none;border-radius:2px;background-color:#1ab394;fill:#fff;width:24px;height:24px}.sv-boolean--allowhover:hover .sv-boolean__checked-path{display:inline-block}.sv-boolean--allowhover:hover .sv-boolean__svg{background-color:#9f9f9f;fill:#fff}.sv-boolean--allowhover:hover .sv-boolean__unchecked-path,.sv-boolean--allowhover:hover .sv-boolean__indeterminate-path,.sv-boolean__checked-path,.sv-boolean__indeterminate-path{display:none}.sv-boolean--indeterminate .sv-boolean__svg{background-color:inherit;fill:#1ab394}.sv-boolean--indeterminate .sv-boolean__indeterminate-path{display:inline-block}.sv-boolean--indeterminate .sv-boolean__unchecked-path,.sv-boolean--checked .sv-boolean__unchecked-path{display:none}.sv-boolean--checked .sv-boolean__checked-path{display:inline-block}.sv-boolean--disabled.sv-boolean--indeterminate .sv-boolean__svg{background-color:inherit;fill:#dbdbdb}.sv-boolean--disabled .sv-boolean__svg{background-color:#dbdbdb}td.sv_matrix_cell .sv_qbln,td.td.sv_matrix_cell .sv_qbln{text-align:center}td.sv_matrix_cell .sv_qbln .sv-boolean,td.td.sv_matrix_cell .sv_qbln .sv-boolean{text-align:initial}sv-components-container,.sd-components-container{display:flex}.sv-components-row{display:flex;flex-direction:row;width:100%}.sv-components-column{display:flex;flex-direction:column}.sv-components-column--expandable{flex-grow:1}.sv-components-row>.sv-components-column--expandable{width:1px}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question{display:block;width:100%!important}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-question__header--location--left,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-question__header--location--left{float:none}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-selectbase__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-imagepicker__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-selectbase__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-imagepicker__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table thead,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table thead{display:none}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td.sv-table__cell--choice,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td.sv-table__cell--choice{text-align:initial}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tbody,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tr,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tbody,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tr,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdropdown .sv-table__responsive-title,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdynamic .sv-table__responsive-title,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdropdown .sv-table__responsive-title,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdynamic .sv-table__responsive-title{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td label.sv-matrix__label,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label{display:inline}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell{text-align:initial}@media (max-width: 600px){.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question{display:block;width:100%!important}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-question__header--location--left,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-question__header--location--left{float:none}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-selectbase__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-imagepicker__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-selectbase__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-imagepicker__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table thead,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table thead{display:none}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td.sv-table__cell--choice,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td.sv-table__cell--choice{text-align:initial}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tbody,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tr,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tbody,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tr,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdropdown .sv-table__responsive-title,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdynamic .sv-table__responsive-title,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdropdown .sv-table__responsive-title,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdynamic .sv-table__responsive-title{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td label.sv-matrix__label,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label{display:inline}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell{text-align:initial}}body{--sv-modern-mark: true}.sv-matrixdynamic__drag-icon{padding-top:16px}.sv-matrixdynamic__drag-icon:after{content:" ";display:block;height:6px;width:20px;border:1px solid var(--border-color, rgba(64, 64, 64, .5));box-sizing:border-box;border-radius:10px;cursor:move;margin-top:12px}.sv-matrix__drag-drop-ghost-position-top,.sv-matrix__drag-drop-ghost-position-bottom{position:relative}.sv-matrix__drag-drop-ghost-position-top:after,.sv-matrix__drag-drop-ghost-position-bottom:after{content:"";width:100%;height:4px;background-color:var(--main-color, #1ab394);position:absolute;left:0}.sv-matrix__drag-drop-ghost-position-top:after{top:0}.sv-matrix__drag-drop-ghost-position-bottom:after{bottom:0}.sv-skeleton-element{background-color:var(--background-dim, var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3)))}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.sd-element__title-expandable-svg{height:1.5rem;width:1.5rem;margin-right:.5rem}.sv-multipletext__cell{padding:.5rem}.hidden-checkbox-labels .sv-checkbox .sv-item__control-label{visibility:hidden}.survey-title{color:#2db394}.survey-description{color:#262261;font-weight:400}.survey-title:after{content:"";display:inline-block;width:.1rem;height:1em;background-color:#2db394;margin:0 .5rem;vertical-align:middle}.survey-title-nren{color:#262261}#sv-nav-complete{width:0px;height:0px;overflow:hidden;visibility:hidden}.sv-header-flex{display:flex;align-items:center;border-radius:2rem;color:#2db394;font-weight:700;padding-left:1rem!important;background-color:var(--answer-background-color, rgba(26, 179, 148, .2))}.sv-error-color-fix{background-color:var(--error-background-color, rgba(26, 179, 148, .2))}.sv-container-modern__title{display:none}.sv-title.sv-page__title{font-size:1.5rem;font-weight:700;color:#2db394;margin-bottom:.25rem}.sv-title.sv-panel__title{color:#262261}.sv-description{font-weight:700;color:#262261}.sv-text{border-bottom:.2rem dotted var(--text-border-color, #d4d4d4)}.verification{min-height:1.5rem;flex:0 0 auto;margin-left:auto;display:inline-block;border-radius:1rem;padding:0 1rem;margin-top:.25rem;margin-bottom:.25rem;margin-right:.4rem;box-shadow:0 0 2px 2px #2db394}.verification-required{font-size:.85rem;font-weight:700;text-transform:uppercase;background-color:#fff}.verification-ok{color:#fff;font-size:.85rem;font-weight:700;text-transform:uppercase;background-color:#2db394;pointer-events:none}.sv-action-bar-item.verification.verification-ok:hover{cursor:auto;background-color:#2db394}.survey-content,.survey-progress{padding-right:5rem;padding-left:5rem}.sv-question__num{white-space:nowrap}.survey-container{margin-top:2.5rem;margin-bottom:4rem;max-width:90rem}.survey-edit-buttons-block{display:flex;align-items:center;justify-content:center;padding:1em}.survey-edit-explainer{background-color:var(--error-background-color);color:#262261;padding:1em;font-weight:700;text-align:center}.survey-tooltip{position:relative}.survey-tooltip:after{display:none;position:absolute;padding:10px 15px;transform:translateY(calc(-100% - 10px));left:0;top:0;width:20em;z-index:999;content:attr(description);text-align:center;border-radius:10px;background-color:#d1f0ea}.survey-tooltip:hover:after{display:block}.survey-tooltip:before{display:none;position:absolute;transform:translate(-50%,calc(-100% - 5px)) rotate(45deg);left:50%;top:0;z-index:99;width:15px;height:15px;content:" ";background-color:#d1f0ea}.survey-tooltip:hover:before{display:block}.sortable{cursor:pointer}.sortable:hover{text-decoration:dotted underline}th.sortable[aria-sort=descending]:after{content:"▼";color:currentcolor;font-size:100%;margin-left:.25rem}th.sortable[aria-sort=ascending]:after{content:"▲";color:currentcolor;font-size:100%;margin-left:.25rem}/*!
 * Bootstrap  v5.3.3 (https://getbootstrap.com/)
 * Copyright 2011-2024 The Bootstrap Authors
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
diff --git a/compendium_v2/static/report-C0OEVICj.js b/compendium_v2/static/report-C0OEVICj.js
deleted file mode 100644
index 9f95b5c41b59a2e44a7640bbe4c5f85ac32183b1..0000000000000000000000000000000000000000
--- a/compendium_v2/static/report-C0OEVICj.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var Jn=Object.defineProperty;var Qn=(i,t,e)=>t in i?Jn(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var S=(i,t,e)=>Qn(i,typeof t!="symbol"?t+"":t,e);/*!
- * @kurkle/color v0.3.2
- * https://github.com/kurkle/color#readme
- * (c) 2023 Jukka Kurkela
- * Released under the MIT License
- */function me(i){return i+.5|0}const mt=(i,t,e)=>Math.max(Math.min(i,e),t);function te(i){return mt(me(i*2.55),0,255)}function xt(i){return mt(me(i*255),0,255)}function ut(i){return mt(me(i/2.55)/100,0,1)}function Hi(i){return mt(me(i*100),0,100)}const tt={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},fi=[..."0123456789ABCDEF"],to=i=>fi[i&15],eo=i=>fi[(i&240)>>4]+fi[i&15],xe=i=>(i&240)>>4===(i&15),io=i=>xe(i.r)&&xe(i.g)&&xe(i.b)&&xe(i.a);function so(i){var t=i.length,e;return i[0]==="#"&&(t===4||t===5?e={r:255&tt[i[1]]*17,g:255&tt[i[2]]*17,b:255&tt[i[3]]*17,a:t===5?tt[i[4]]*17:255}:(t===7||t===9)&&(e={r:tt[i[1]]<<4|tt[i[2]],g:tt[i[3]]<<4|tt[i[4]],b:tt[i[5]]<<4|tt[i[6]],a:t===9?tt[i[7]]<<4|tt[i[8]]:255})),e}const no=(i,t)=>i<255?t(i):"";function oo(i){var t=io(i)?to:eo;return i?"#"+t(i.r)+t(i.g)+t(i.b)+no(i.a,t):void 0}const ro=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function nn(i,t,e){const s=t*Math.min(e,1-e),n=(o,r=(o+i/30)%12)=>e-s*Math.max(Math.min(r-3,9-r,1),-1);return[n(0),n(8),n(4)]}function ao(i,t,e){const s=(n,o=(n+i/60)%6)=>e-e*t*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function lo(i,t,e){const s=nn(i,1,.5);let n;for(t+e>1&&(n=1/(t+e),t*=n,e*=n),n=0;n<3;n++)s[n]*=1-t-e,s[n]+=t;return s}function co(i,t,e,s,n){return i===n?(t-e)/s+(t<e?6:0):t===n?(e-i)/s+2:(i-t)/s+4}function ki(i){const e=i.r/255,s=i.g/255,n=i.b/255,o=Math.max(e,s,n),r=Math.min(e,s,n),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=co(e,s,n,h,o),l=l*60+.5),[l|0,c||0,a]}function wi(i,t,e,s){return(Array.isArray(t)?i(t[0],t[1],t[2]):i(t,e,s)).map(xt)}function Mi(i,t,e){return wi(nn,i,t,e)}function ho(i,t,e){return wi(lo,i,t,e)}function fo(i,t,e){return wi(ao,i,t,e)}function on(i){return(i%360+360)%360}function uo(i){const t=ro.exec(i);let e=255,s;if(!t)return;t[5]!==s&&(e=t[6]?te(+t[5]):xt(+t[5]));const n=on(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?s=ho(n,o,r):t[1]==="hsv"?s=fo(n,o,r):s=Mi(n,o,r),{r:s[0],g:s[1],b:s[2],a:e}}function go(i,t){var e=ki(i);e[0]=on(e[0]+t),e=Mi(e),i.r=e[0],i.g=e[1],i.b=e[2]}function po(i){if(!i)return;const t=ki(i),e=t[0],s=Hi(t[1]),n=Hi(t[2]);return i.a<255?`hsla(${e}, ${s}%, ${n}%, ${ut(i.a)})`:`hsl(${e}, ${s}%, ${n}%)`}const Wi={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"},Ni={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 mo(){const i={},t=Object.keys(Ni),e=Object.keys(Wi);let s,n,o,r,a;for(s=0;s<t.length;s++){for(r=a=t[s],n=0;n<e.length;n++)o=e[n],a=a.replace(o,Wi[o]);o=parseInt(Ni[r],16),i[a]=[o>>16&255,o>>8&255,o&255]}return i}let ye;function bo(i){ye||(ye=mo(),ye.transparent=[0,0,0,0]);const t=ye[i.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const _o=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function xo(i){const t=_o.exec(i);let e=255,s,n,o;if(t){if(t[7]!==s){const r=+t[7];e=t[8]?te(r):mt(r*255,0,255)}return s=+t[1],n=+t[3],o=+t[5],s=255&(t[2]?te(s):mt(s,0,255)),n=255&(t[4]?te(n):mt(n,0,255)),o=255&(t[6]?te(o):mt(o,0,255)),{r:s,g:n,b:o,a:e}}}function yo(i){return i&&(i.a<255?`rgba(${i.r}, ${i.g}, ${i.b}, ${ut(i.a)})`:`rgb(${i.r}, ${i.g}, ${i.b})`)}const Ze=i=>i<=.0031308?i*12.92:Math.pow(i,1/2.4)*1.055-.055,zt=i=>i<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4);function vo(i,t,e){const s=zt(ut(i.r)),n=zt(ut(i.g)),o=zt(ut(i.b));return{r:xt(Ze(s+e*(zt(ut(t.r))-s))),g:xt(Ze(n+e*(zt(ut(t.g))-n))),b:xt(Ze(o+e*(zt(ut(t.b))-o))),a:i.a+e*(t.a-i.a)}}function ve(i,t,e){if(i){let s=ki(i);s[t]=Math.max(0,Math.min(s[t]+s[t]*e,t===0?360:1)),s=Mi(s),i.r=s[0],i.g=s[1],i.b=s[2]}}function rn(i,t){return i&&Object.assign(t||{},i)}function ji(i){var t={r:0,g:0,b:0,a:255};return Array.isArray(i)?i.length>=3&&(t={r:i[0],g:i[1],b:i[2],a:255},i.length>3&&(t.a=xt(i[3]))):(t=rn(i,{r:0,g:0,b:0,a:1}),t.a=xt(t.a)),t}function ko(i){return i.charAt(0)==="r"?xo(i):uo(i)}class he{constructor(t){if(t instanceof he)return t;const e=typeof t;let s;e==="object"?s=ji(t):e==="string"&&(s=so(t)||bo(t)||ko(t)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var t=rn(this._rgb);return t&&(t.a=ut(t.a)),t}set rgb(t){this._rgb=ji(t)}rgbString(){return this._valid?yo(this._rgb):void 0}hexString(){return this._valid?oo(this._rgb):void 0}hslString(){return this._valid?po(this._rgb):void 0}mix(t,e){if(t){const s=this.rgb,n=t.rgb;let o;const r=e===o?.5:e,a=2*r-1,l=s.a-n.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,s.r=255&c*s.r+o*n.r+.5,s.g=255&c*s.g+o*n.g+.5,s.b=255&c*s.b+o*n.b+.5,s.a=r*s.a+(1-r)*n.a,this.rgb=s}return this}interpolate(t,e){return t&&(this._rgb=vo(this._rgb,t._rgb,e)),this}clone(){return new he(this.rgb)}alpha(t){return this._rgb.a=xt(t),this}clearer(t){const e=this._rgb;return e.a*=1-t,this}greyscale(){const t=this._rgb,e=me(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=e,this}opaquer(t){const e=this._rgb;return e.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 ve(this._rgb,2,t),this}darken(t){return ve(this._rgb,2,-t),this}saturate(t){return ve(this._rgb,1,t),this}desaturate(t){return ve(this._rgb,1,-t),this}rotate(t){return go(this._rgb,t),this}}/*!
- * Chart.js v4.4.7
- * https://www.chartjs.org
- * (c) 2024 Chart.js Contributors
- * Released under the MIT License
- */function ht(){}const wo=(()=>{let i=0;return()=>i++})();function R(i){return i==null}function W(i){if(Array.isArray&&Array.isArray(i))return!0;const t=Object.prototype.toString.call(i);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function T(i){return i!==null&&Object.prototype.toString.call(i)==="[object Object]"}function it(i){return(typeof i=="number"||i instanceof Number)&&isFinite(+i)}function ot(i,t){return it(i)?i:t}function A(i,t){return typeof i>"u"?t:i}const Mo=(i,t)=>typeof i=="string"&&i.endsWith("%")?parseFloat(i)/100*t:+i;function E(i,t,e){if(i&&typeof i.call=="function")return i.apply(e,t)}function L(i,t,e,s){let n,o,r;if(W(i))for(o=i.length,n=0;n<o;n++)t.call(e,i[n],n);else if(T(i))for(r=Object.keys(i),o=r.length,n=0;n<o;n++)t.call(e,i[r[n]],r[n])}function Ne(i,t){let e,s,n,o;if(!i||!t||i.length!==t.length)return!1;for(e=0,s=i.length;e<s;++e)if(n=i[e],o=t[e],n.datasetIndex!==o.datasetIndex||n.index!==o.index)return!1;return!0}function je(i){if(W(i))return i.map(je);if(T(i)){const t=Object.create(null),e=Object.keys(i),s=e.length;let n=0;for(;n<s;++n)t[e[n]]=je(i[e[n]]);return t}return i}function an(i){return["__proto__","prototype","constructor"].indexOf(i)===-1}function So(i,t,e,s){if(!an(i))return;const n=t[i],o=e[i];T(n)&&T(o)?ct(n,o,s):t[i]=je(o)}function ct(i,t,e){const s=W(t)?t:[t],n=s.length;if(!T(i))return i;e=e||{};const o=e.merger||So;let r;for(let a=0;a<n;++a){if(r=s[a],!T(r))continue;const l=Object.keys(r);for(let c=0,h=l.length;c<h;++c)o(l[c],i,r,e)}return i}function ne(i,t){return ct(i,t,{merger:Po})}function Po(i,t,e){if(!an(i))return;const s=t[i],n=e[i];T(s)&&T(n)?ne(s,n):Object.prototype.hasOwnProperty.call(t,i)||(t[i]=je(n))}const Vi={"":i=>i,x:i=>i.x,y:i=>i.y};function Co(i){const t=i.split("."),e=[];let s="";for(const n of t)s+=n,s.endsWith("\\")?s=s.slice(0,-1)+".":(e.push(s),s="");return e}function Oo(i){const t=Co(i);return e=>{for(const s of t){if(s==="")break;e=e&&e[s]}return e}}function jt(i,t){return(Vi[t]||(Vi[t]=Oo(t)))(i)}function Si(i){return i.charAt(0).toUpperCase()+i.slice(1)}const de=i=>typeof i<"u",yt=i=>typeof i=="function",$i=(i,t)=>{if(i.size!==t.size)return!1;for(const e of i)if(!t.has(e))return!1;return!0};function Ao(i){return i.type==="mouseup"||i.type==="click"||i.type==="contextmenu"}const N=Math.PI,Y=2*N,Do=Y+N,Ve=Number.POSITIVE_INFINITY,To=N/180,V=N/2,wt=N/4,Yi=N*2/3,ui=Math.log10,lt=Math.sign;function oe(i,t,e){return Math.abs(i-t)<e}function Ui(i){const t=Math.round(i);i=oe(i,t,i/1e3)?t:i;const e=Math.pow(10,Math.floor(ui(i))),s=i/e;return(s<=1?1:s<=2?2:s<=5?5:10)*e}function Ro(i){const t=[],e=Math.sqrt(i);let s;for(s=1;s<e;s++)i%s===0&&(t.push(s),t.push(i/s));return e===(e|0)&&t.push(e),t.sort((n,o)=>n-o).pop(),t}function fe(i){return!isNaN(parseFloat(i))&&isFinite(i)}function Lo(i,t){const e=Math.round(i);return e-t<=i&&e+t>=i}function Io(i,t,e){let s,n,o;for(s=0,n=i.length;s<n;s++)o=i[s][e],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function Dt(i){return i*(N/180)}function Eo(i){return i*(180/N)}function Xi(i){if(!it(i))return;let t=1,e=0;for(;Math.round(i*t)/t!==i;)t*=10,e++;return e}function ln(i,t){const e=t.x-i.x,s=t.y-i.y,n=Math.sqrt(e*e+s*s);let o=Math.atan2(s,e);return o<-.5*N&&(o+=Y),{angle:o,distance:n}}function gi(i,t){return Math.sqrt(Math.pow(t.x-i.x,2)+Math.pow(t.y-i.y,2))}function Fo(i,t){return(i-t+Do)%Y-N}function pt(i){return(i%Y+Y)%Y}function Pi(i,t,e,s){const n=pt(i),o=pt(t),r=pt(e),a=pt(o-n),l=pt(r-n),c=pt(n-o),h=pt(n-r);return n===o||n===r||s&&o===r||a>l&&c<h}function K(i,t,e){return Math.max(t,Math.min(e,i))}function zo(i){return K(i,-32768,32767)}function bt(i,t,e,s=1e-6){return i>=Math.min(t,e)-s&&i<=Math.max(t,e)+s}function Ci(i,t,e){e=e||(r=>i[r]<t);let s=i.length-1,n=0,o;for(;s-n>1;)o=n+s>>1,e(o)?n=o:s=o;return{lo:n,hi:s}}const Tt=(i,t,e,s)=>Ci(i,e,s?n=>{const o=i[n][t];return o<e||o===e&&i[n+1][t]===e}:n=>i[n][t]<e),Bo=(i,t,e)=>Ci(i,e,s=>i[s][t]>=e);function Ho(i,t,e){let s=0,n=i.length;for(;s<n&&i[s]<t;)s++;for(;n>s&&i[n-1]>e;)n--;return s>0||n<i.length?i.slice(s,n):i}const cn=["push","pop","shift","splice","unshift"];function Wo(i,t){if(i._chartjs){i._chartjs.listeners.push(t);return}Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),cn.forEach(e=>{const s="_onData"+Si(e),n=i[e];Object.defineProperty(i,e,{configurable:!0,enumerable:!1,value(...o){const r=n.apply(this,o);return i._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...o)}),r}})})}function Ki(i,t){const e=i._chartjs;if(!e)return;const s=e.listeners,n=s.indexOf(t);n!==-1&&s.splice(n,1),!(s.length>0)&&(cn.forEach(o=>{delete i[o]}),delete i._chartjs)}function hn(i){const t=new Set(i);return t.size===i.length?i:Array.from(t)}const dn=function(){return typeof window>"u"?function(i){return i()}:window.requestAnimationFrame}();function fn(i,t){let e=[],s=!1;return function(...n){e=n,s||(s=!0,dn.call(window,()=>{s=!1,i.apply(t,e)}))}}function No(i,t){let e;return function(...s){return t?(clearTimeout(e),e=setTimeout(i,t,s)):i.apply(this,s),t}}const Oi=i=>i==="start"?"left":i==="end"?"right":"center",X=(i,t,e)=>i==="start"?t:i==="end"?e:(t+e)/2,jo=(i,t,e,s)=>i===(s?"left":"right")?e:i==="center"?(t+e)/2:t;function Vo(i,t,e){const s=t.length;let n=0,o=s;if(i._sorted){const{iScale:r,_parsed:a}=i,l=r.axis,{min:c,max:h,minDefined:d,maxDefined:f}=r.getUserBounds();d&&(n=K(Math.min(Tt(a,l,c).lo,e?s:Tt(t,l,r.getPixelForValue(c)).lo),0,s-1)),f?o=K(Math.max(Tt(a,r.axis,h,!0).hi+1,e?0:Tt(t,l,r.getPixelForValue(h),!0).hi+1),n,s)-n:o=s-n}return{start:n,count:o}}function $o(i){const{xScale:t,yScale:e,_scaleRanges:s}=i,n={xmin:t.min,xmax:t.max,ymin:e.min,ymax:e.max};if(!s)return i._scaleRanges=n,!0;const o=s.xmin!==t.min||s.xmax!==t.max||s.ymin!==e.min||s.ymax!==e.max;return Object.assign(s,n),o}const ke=i=>i===0||i===1,qi=(i,t,e)=>-(Math.pow(2,10*(i-=1))*Math.sin((i-t)*Y/e)),Gi=(i,t,e)=>Math.pow(2,-10*i)*Math.sin((i-t)*Y/e)+1,re={linear:i=>i,easeInQuad:i=>i*i,easeOutQuad:i=>-i*(i-2),easeInOutQuad:i=>(i/=.5)<1?.5*i*i:-.5*(--i*(i-2)-1),easeInCubic:i=>i*i*i,easeOutCubic:i=>(i-=1)*i*i+1,easeInOutCubic:i=>(i/=.5)<1?.5*i*i*i:.5*((i-=2)*i*i+2),easeInQuart:i=>i*i*i*i,easeOutQuart:i=>-((i-=1)*i*i*i-1),easeInOutQuart:i=>(i/=.5)<1?.5*i*i*i*i:-.5*((i-=2)*i*i*i-2),easeInQuint:i=>i*i*i*i*i,easeOutQuint:i=>(i-=1)*i*i*i*i+1,easeInOutQuint:i=>(i/=.5)<1?.5*i*i*i*i*i:.5*((i-=2)*i*i*i*i+2),easeInSine:i=>-Math.cos(i*V)+1,easeOutSine:i=>Math.sin(i*V),easeInOutSine:i=>-.5*(Math.cos(N*i)-1),easeInExpo:i=>i===0?0:Math.pow(2,10*(i-1)),easeOutExpo:i=>i===1?1:-Math.pow(2,-10*i)+1,easeInOutExpo:i=>ke(i)?i:i<.5?.5*Math.pow(2,10*(i*2-1)):.5*(-Math.pow(2,-10*(i*2-1))+2),easeInCirc:i=>i>=1?i:-(Math.sqrt(1-i*i)-1),easeOutCirc:i=>Math.sqrt(1-(i-=1)*i),easeInOutCirc:i=>(i/=.5)<1?-.5*(Math.sqrt(1-i*i)-1):.5*(Math.sqrt(1-(i-=2)*i)+1),easeInElastic:i=>ke(i)?i:qi(i,.075,.3),easeOutElastic:i=>ke(i)?i:Gi(i,.075,.3),easeInOutElastic(i){return ke(i)?i:i<.5?.5*qi(i*2,.1125,.45):.5+.5*Gi(i*2-1,.1125,.45)},easeInBack(i){return i*i*((1.70158+1)*i-1.70158)},easeOutBack(i){return(i-=1)*i*((1.70158+1)*i+1.70158)+1},easeInOutBack(i){let t=1.70158;return(i/=.5)<1?.5*(i*i*(((t*=1.525)+1)*i-t)):.5*((i-=2)*i*(((t*=1.525)+1)*i+t)+2)},easeInBounce:i=>1-re.easeOutBounce(1-i),easeOutBounce(i){return i<1/2.75?7.5625*i*i:i<2/2.75?7.5625*(i-=1.5/2.75)*i+.75:i<2.5/2.75?7.5625*(i-=2.25/2.75)*i+.9375:7.5625*(i-=2.625/2.75)*i+.984375},easeInOutBounce:i=>i<.5?re.easeInBounce(i*2)*.5:re.easeOutBounce(i*2-1)*.5+.5};function Ai(i){if(i&&typeof i=="object"){const t=i.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Zi(i){return Ai(i)?i:new he(i)}function Je(i){return Ai(i)?i:new he(i).saturate(.5).darken(.1).hexString()}const Yo=["x","y","borderWidth","radius","tension"],Uo=["color","borderColor","backgroundColor"];function Xo(i){i.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),i.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),i.set("animations",{colors:{type:"color",properties:Uo},numbers:{type:"number",properties:Yo}}),i.describe("animations",{_fallback:"animation"}),i.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 Ko(i){i.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Ji=new Map;function qo(i,t){t=t||{};const e=i+JSON.stringify(t);let s=Ji.get(e);return s||(s=new Intl.NumberFormat(i,t),Ji.set(e,s)),s}function un(i,t,e){return qo(t,e).format(i)}const gn={values(i){return W(i)?i:""+i},numeric(i,t,e){if(i===0)return"0";const s=this.chart.options.locale;let n,o=i;if(e.length>1){const c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(n="scientific"),o=Go(i,e)}const r=ui(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:n,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),un(i,s,l)},logarithmic(i,t,e){if(i===0)return"0";const s=e[t].significand||i/Math.pow(10,Math.floor(ui(i)));return[1,2,3,5,10,15].includes(s)||t>.8*e.length?gn.numeric.call(this,i,t,e):""}};function Go(i,t){let e=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(e)>=1&&i!==Math.floor(i)&&(e=i-Math.floor(i)),e}var pn={formatters:gn};function Zo(i){i.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,e)=>e.lineWidth,tickColor:(t,e)=>e.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:pn.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),i.route("scale.ticks","color","","color"),i.route("scale.grid","color","","borderColor"),i.route("scale.border","color","","borderColor"),i.route("scale.title","color","","color"),i.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),i.describe("scales",{_fallback:"scale"}),i.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Lt=Object.create(null),pi=Object.create(null);function ae(i,t){if(!t)return i;const e=t.split(".");for(let s=0,n=e.length;s<n;++s){const o=e[s];i=i[o]||(i[o]=Object.create(null))}return i}function Qe(i,t,e){return typeof t=="string"?ct(ae(i,t),e):ct(ae(i,""),t)}class Jo{constructor(t,e){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,n)=>Je(n.backgroundColor),this.hoverBorderColor=(s,n)=>Je(n.borderColor),this.hoverColor=(s,n)=>Je(n.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(e)}set(t,e){return Qe(this,t,e)}get(t){return ae(this,t)}describe(t,e){return Qe(pi,t,e)}override(t,e){return Qe(Lt,t,e)}route(t,e,s,n){const o=ae(this,t),r=ae(this,s),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const l=this[a],c=r[n];return T(l)?Object.assign({},c,l):A(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(e=>e(this))}}var B=new Jo({_scriptable:i=>!i.startsWith("on"),_indexable:i=>i!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Xo,Ko,Zo]);function Qo(i){return!i||R(i.size)||R(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family}function Qi(i,t,e,s,n){let o=t[n];return o||(o=t[n]=i.measureText(n).width,e.push(n)),o>s&&(s=o),s}function Mt(i,t,e){const s=i.currentDevicePixelRatio,n=e!==0?Math.max(e/2,.5):0;return Math.round((t-n)*s)/s+n}function ts(i,t){!t&&!i||(t=t||i.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,i.width,i.height),t.restore())}function mi(i,t,e,s){mn(i,t,e,s,null)}function mn(i,t,e,s,n){let o,r,a,l,c,h,d,f;const u=t.pointStyle,p=t.rotation,g=t.radius;let m=(p||0)*To;if(u&&typeof u=="object"&&(o=u.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){i.save(),i.translate(e,s),i.rotate(m),i.drawImage(u,-u.width/2,-u.height/2,u.width,u.height),i.restore();return}if(!(isNaN(g)||g<=0)){switch(i.beginPath(),u){default:n?i.ellipse(e,s,n/2,g,0,0,Y):i.arc(e,s,g,0,Y),i.closePath();break;case"triangle":h=n?n/2:g,i.moveTo(e+Math.sin(m)*h,s-Math.cos(m)*g),m+=Yi,i.lineTo(e+Math.sin(m)*h,s-Math.cos(m)*g),m+=Yi,i.lineTo(e+Math.sin(m)*h,s-Math.cos(m)*g),i.closePath();break;case"rectRounded":c=g*.516,l=g-c,r=Math.cos(m+wt)*l,d=Math.cos(m+wt)*(n?n/2-c:l),a=Math.sin(m+wt)*l,f=Math.sin(m+wt)*(n?n/2-c:l),i.arc(e-d,s-a,c,m-N,m-V),i.arc(e+f,s-r,c,m-V,m),i.arc(e+d,s+a,c,m,m+V),i.arc(e-f,s+r,c,m+V,m+N),i.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,h=n?n/2:l,i.rect(e-h,s-l,2*h,2*l);break}m+=wt;case"rectRot":d=Math.cos(m)*(n?n/2:g),r=Math.cos(m)*g,a=Math.sin(m)*g,f=Math.sin(m)*(n?n/2:g),i.moveTo(e-d,s-a),i.lineTo(e+f,s-r),i.lineTo(e+d,s+a),i.lineTo(e-f,s+r),i.closePath();break;case"crossRot":m+=wt;case"cross":d=Math.cos(m)*(n?n/2:g),r=Math.cos(m)*g,a=Math.sin(m)*g,f=Math.sin(m)*(n?n/2:g),i.moveTo(e-d,s-a),i.lineTo(e+d,s+a),i.moveTo(e+f,s-r),i.lineTo(e-f,s+r);break;case"star":d=Math.cos(m)*(n?n/2:g),r=Math.cos(m)*g,a=Math.sin(m)*g,f=Math.sin(m)*(n?n/2:g),i.moveTo(e-d,s-a),i.lineTo(e+d,s+a),i.moveTo(e+f,s-r),i.lineTo(e-f,s+r),m+=wt,d=Math.cos(m)*(n?n/2:g),r=Math.cos(m)*g,a=Math.sin(m)*g,f=Math.sin(m)*(n?n/2:g),i.moveTo(e-d,s-a),i.lineTo(e+d,s+a),i.moveTo(e+f,s-r),i.lineTo(e-f,s+r);break;case"line":r=n?n/2:Math.cos(m)*g,a=Math.sin(m)*g,i.moveTo(e-r,s-a),i.lineTo(e+r,s+a);break;case"dash":i.moveTo(e,s),i.lineTo(e+Math.cos(m)*(n?n/2:g),s+Math.sin(m)*g);break;case!1:i.closePath();break}i.fill(),t.borderWidth>0&&i.stroke()}}function ue(i,t,e){return e=e||.5,!t||i&&i.x>t.left-e&&i.x<t.right+e&&i.y>t.top-e&&i.y<t.bottom+e}function Di(i,t){i.save(),i.beginPath(),i.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),i.clip()}function Ti(i){i.restore()}function tr(i,t,e,s,n){if(!t)return i.lineTo(e.x,e.y);if(n==="middle"){const o=(t.x+e.x)/2;i.lineTo(o,t.y),i.lineTo(o,e.y)}else n==="after"!=!!s?i.lineTo(t.x,e.y):i.lineTo(e.x,t.y);i.lineTo(e.x,e.y)}function er(i,t,e,s){if(!t)return i.lineTo(e.x,e.y);i.bezierCurveTo(s?t.cp1x:t.cp2x,s?t.cp1y:t.cp2y,s?e.cp2x:e.cp1x,s?e.cp2y:e.cp1y,e.x,e.y)}function ir(i,t){t.translation&&i.translate(t.translation[0],t.translation[1]),R(t.rotation)||i.rotate(t.rotation),t.color&&(i.fillStyle=t.color),t.textAlign&&(i.textAlign=t.textAlign),t.textBaseline&&(i.textBaseline=t.textBaseline)}function sr(i,t,e,s,n){if(n.strikethrough||n.underline){const o=i.measureText(s),r=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=e-o.actualBoundingBoxAscent,c=e+o.actualBoundingBoxDescent,h=n.strikethrough?(l+c)/2:c;i.strokeStyle=i.fillStyle,i.beginPath(),i.lineWidth=n.decorationWidth||2,i.moveTo(r,h),i.lineTo(a,h),i.stroke()}}function nr(i,t){const e=i.fillStyle;i.fillStyle=t.color,i.fillRect(t.left,t.top,t.width,t.height),i.fillStyle=e}function ge(i,t,e,s,n,o={}){const r=W(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(i.save(),i.font=n.string,ir(i,o),l=0;l<r.length;++l)c=r[l],o.backdrop&&nr(i,o.backdrop),a&&(o.strokeColor&&(i.strokeStyle=o.strokeColor),R(o.strokeWidth)||(i.lineWidth=o.strokeWidth),i.strokeText(c,e,s,o.maxWidth)),i.fillText(c,e,s,o.maxWidth),sr(i,e,s,c,o),s+=Number(n.lineHeight);i.restore()}function $e(i,t){const{x:e,y:s,w:n,h:o,radius:r}=t;i.arc(e+r.topLeft,s+r.topLeft,r.topLeft,1.5*N,N,!0),i.lineTo(e,s+o-r.bottomLeft),i.arc(e+r.bottomLeft,s+o-r.bottomLeft,r.bottomLeft,N,V,!0),i.lineTo(e+n-r.bottomRight,s+o),i.arc(e+n-r.bottomRight,s+o-r.bottomRight,r.bottomRight,V,0,!0),i.lineTo(e+n,s+r.topRight),i.arc(e+n-r.topRight,s+r.topRight,r.topRight,0,-V,!0),i.lineTo(e+r.topLeft,s)}const or=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,rr=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function ar(i,t){const e=(""+i).match(or);if(!e||e[1]==="normal")return t*1.2;switch(i=+e[2],e[3]){case"px":return i;case"%":i/=100;break}return t*i}const lr=i=>+i||0;function Ri(i,t){const e={},s=T(t),n=s?Object.keys(t):t,o=T(i)?s?r=>A(i[r],i[t[r]]):r=>i[r]:()=>i;for(const r of n)e[r]=lr(o(r));return e}function bn(i){return Ri(i,{top:"y",right:"x",bottom:"y",left:"x"})}function Ht(i){return Ri(i,["topLeft","topRight","bottomLeft","bottomRight"])}function Q(i){const t=bn(i);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function $(i,t){i=i||{},t=t||B.font;let e=A(i.size,t.size);typeof e=="string"&&(e=parseInt(e,10));let s=A(i.style,t.style);s&&!(""+s).match(rr)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const n={family:A(i.family,t.family),lineHeight:ar(A(i.lineHeight,t.lineHeight),e),size:e,style:s,weight:A(i.weight,t.weight),string:""};return n.string=Qo(n),n}function z(i,t,e,s){let n,o,r;for(n=0,o=i.length;n<o;++n)if(r=i[n],r!==void 0&&(t!==void 0&&typeof r=="function"&&(r=r(t)),e!==void 0&&W(r)&&(r=r[e%r.length]),r!==void 0))return r}function cr(i,t,e){const{min:s,max:n}=i,o=Mo(t,(n-s)/2),r=(a,l)=>e&&a===0?0:a+l;return{min:r(s,-Math.abs(o)),max:r(n,o)}}function It(i,t){return Object.assign(Object.create(i),t)}function Li(i,t=[""],e,s,n=()=>i[0]){const o=e||i;typeof s>"u"&&(s=vn("_fallback",i));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:i,_rootScopes:o,_fallback:s,_getTarget:n,override:a=>Li([a,...i],t,o,s)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete i[0][l],!0},get(a,l){return xn(a,l,()=>br(l,t,i,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(i[0])},has(a,l){return is(a).includes(l)},ownKeys(a){return is(a)},set(a,l,c){const h=a._storage||(a._storage=n());return a[l]=h[l]=c,delete a._keys,!0}})}function Vt(i,t,e,s){const n={_cacheable:!1,_proxy:i,_context:t,_subProxy:e,_stack:new Set,_descriptors:_n(i,s),setContext:o=>Vt(i,o,e,s),override:o=>Vt(i.override(o),t,e,s)};return new Proxy(n,{deleteProperty(o,r){return delete o[r],delete i[r],!0},get(o,r,a){return xn(o,r,()=>dr(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(i,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(i,r)},getPrototypeOf(){return Reflect.getPrototypeOf(i)},has(o,r){return Reflect.has(i,r)},ownKeys(){return Reflect.ownKeys(i)},set(o,r,a){return i[r]=a,delete o[r],!0}})}function _n(i,t={scriptable:!0,indexable:!0}){const{_scriptable:e=t.scriptable,_indexable:s=t.indexable,_allKeys:n=t.allKeys}=i;return{allKeys:n,scriptable:e,indexable:s,isScriptable:yt(e)?e:()=>e,isIndexable:yt(s)?s:()=>s}}const hr=(i,t)=>i?i+Si(t):t,Ii=(i,t)=>T(t)&&i!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function xn(i,t,e){if(Object.prototype.hasOwnProperty.call(i,t)||t==="constructor")return i[t];const s=e();return i[t]=s,s}function dr(i,t,e){const{_proxy:s,_context:n,_subProxy:o,_descriptors:r}=i;let a=s[t];return yt(a)&&r.isScriptable(t)&&(a=fr(t,a,i,e)),W(a)&&a.length&&(a=ur(t,a,i,r.isIndexable)),Ii(t,a)&&(a=Vt(a,n,o&&o[t],r)),a}function fr(i,t,e,s){const{_proxy:n,_context:o,_subProxy:r,_stack:a}=e;if(a.has(i))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+i);a.add(i);let l=t(o,r||s);return a.delete(i),Ii(i,l)&&(l=Ei(n._scopes,n,i,l)),l}function ur(i,t,e,s){const{_proxy:n,_context:o,_subProxy:r,_descriptors:a}=e;if(typeof o.index<"u"&&s(i))return t[o.index%t.length];if(T(t[0])){const l=t,c=n._scopes.filter(h=>h!==l);t=[];for(const h of l){const d=Ei(c,n,i,h);t.push(Vt(d,o,r&&r[i],a))}}return t}function yn(i,t,e){return yt(i)?i(t,e):i}const gr=(i,t)=>i===!0?t:typeof i=="string"?jt(t,i):void 0;function pr(i,t,e,s,n){for(const o of t){const r=gr(e,o);if(r){i.add(r);const a=yn(r._fallback,e,n);if(typeof a<"u"&&a!==e&&a!==s)return a}else if(r===!1&&typeof s<"u"&&e!==s)return null}return!1}function Ei(i,t,e,s){const n=t._rootScopes,o=yn(t._fallback,e,s),r=[...i,...n],a=new Set;a.add(s);let l=es(a,r,e,o||e,s);return l===null||typeof o<"u"&&o!==e&&(l=es(a,r,o,l,s),l===null)?!1:Li(Array.from(a),[""],n,o,()=>mr(t,e,s))}function es(i,t,e,s,n){for(;e;)e=pr(i,t,e,s,n);return e}function mr(i,t,e){const s=i._getTarget();t in s||(s[t]={});const n=s[t];return W(n)&&T(e)?e:n||{}}function br(i,t,e,s){let n;for(const o of t)if(n=vn(hr(o,i),e),typeof n<"u")return Ii(i,n)?Ei(e,s,i,n):n}function vn(i,t){for(const e of t){if(!e)continue;const s=e[i];if(typeof s<"u")return s}}function is(i){let t=i._keys;return t||(t=i._keys=_r(i._scopes)),t}function _r(i){const t=new Set;for(const e of i)for(const s of Object.keys(e).filter(n=>!n.startsWith("_")))t.add(s);return Array.from(t)}const xr=Number.EPSILON||1e-14,$t=(i,t)=>t<i.length&&!i[t].skip&&i[t],kn=i=>i==="x"?"y":"x";function yr(i,t,e,s){const n=i.skip?t:i,o=t,r=e.skip?t:e,a=gi(o,n),l=gi(r,o);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const d=s*c,f=s*h;return{previous:{x:o.x-d*(r.x-n.x),y:o.y-d*(r.y-n.y)},next:{x:o.x+f*(r.x-n.x),y:o.y+f*(r.y-n.y)}}}function vr(i,t,e){const s=i.length;let n,o,r,a,l,c=$t(i,0);for(let h=0;h<s-1;++h)if(l=c,c=$t(i,h+1),!(!l||!c)){if(oe(t[h],0,xr)){e[h]=e[h+1]=0;continue}n=e[h]/t[h],o=e[h+1]/t[h],a=Math.pow(n,2)+Math.pow(o,2),!(a<=9)&&(r=3/Math.sqrt(a),e[h]=n*r*t[h],e[h+1]=o*r*t[h])}}function kr(i,t,e="x"){const s=kn(e),n=i.length;let o,r,a,l=$t(i,0);for(let c=0;c<n;++c){if(r=a,a=l,l=$t(i,c+1),!a)continue;const h=a[e],d=a[s];r&&(o=(h-r[e])/3,a[`cp1${e}`]=h-o,a[`cp1${s}`]=d-o*t[c]),l&&(o=(l[e]-h)/3,a[`cp2${e}`]=h+o,a[`cp2${s}`]=d+o*t[c])}}function wr(i,t="x"){const e=kn(t),s=i.length,n=Array(s).fill(0),o=Array(s);let r,a,l,c=$t(i,0);for(r=0;r<s;++r)if(a=l,l=c,c=$t(i,r+1),!!l){if(c){const h=c[t]-l[t];n[r]=h!==0?(c[e]-l[e])/h:0}o[r]=a?c?lt(n[r-1])!==lt(n[r])?0:(n[r-1]+n[r])/2:n[r-1]:n[r]}vr(i,n,o),kr(i,o,t)}function we(i,t,e){return Math.max(Math.min(i,e),t)}function Mr(i,t){let e,s,n,o,r,a=ue(i[0],t);for(e=0,s=i.length;e<s;++e)r=o,o=a,a=e<s-1&&ue(i[e+1],t),o&&(n=i[e],r&&(n.cp1x=we(n.cp1x,t.left,t.right),n.cp1y=we(n.cp1y,t.top,t.bottom)),a&&(n.cp2x=we(n.cp2x,t.left,t.right),n.cp2y=we(n.cp2y,t.top,t.bottom)))}function Sr(i,t,e,s,n){let o,r,a,l;if(t.spanGaps&&(i=i.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")wr(i,n);else{let c=s?i[i.length-1]:i[0];for(o=0,r=i.length;o<r;++o)a=i[o],l=yr(c,a,i[Math.min(o+1,r-(s?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&&Mr(i,e)}function Fi(){return typeof window<"u"&&typeof document<"u"}function zi(i){let t=i.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Ye(i,t,e){let s;return typeof i=="string"?(s=parseInt(i,10),i.indexOf("%")!==-1&&(s=s/100*t.parentNode[e])):s=i,s}const qe=i=>i.ownerDocument.defaultView.getComputedStyle(i,null);function Pr(i,t){return qe(i).getPropertyValue(t)}const Cr=["top","right","bottom","left"];function Rt(i,t,e){const s={};e=e?"-"+e:"";for(let n=0;n<4;n++){const o=Cr[n];s[o]=parseFloat(i[t+"-"+o+e])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const Or=(i,t,e)=>(i>0||t>0)&&(!e||!e.shadowRoot);function Ar(i,t){const e=i.touches,s=e&&e.length?e[0]:i,{offsetX:n,offsetY:o}=s;let r=!1,a,l;if(Or(n,o,i.target))a=n,l=o;else{const c=t.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function Ct(i,t){if("native"in i)return i;const{canvas:e,currentDevicePixelRatio:s}=t,n=qe(e),o=n.boxSizing==="border-box",r=Rt(n,"padding"),a=Rt(n,"border","width"),{x:l,y:c,box:h}=Ar(i,e),d=r.left+(h&&a.left),f=r.top+(h&&a.top);let{width:u,height:p}=t;return o&&(u-=r.width+a.width,p-=r.height+a.height),{x:Math.round((l-d)/u*e.width/s),y:Math.round((c-f)/p*e.height/s)}}function Dr(i,t,e){let s,n;if(t===void 0||e===void 0){const o=i&&zi(i);if(!o)t=i.clientWidth,e=i.clientHeight;else{const r=o.getBoundingClientRect(),a=qe(o),l=Rt(a,"border","width"),c=Rt(a,"padding");t=r.width-c.width-l.width,e=r.height-c.height-l.height,s=Ye(a.maxWidth,o,"clientWidth"),n=Ye(a.maxHeight,o,"clientHeight")}}return{width:t,height:e,maxWidth:s||Ve,maxHeight:n||Ve}}const Me=i=>Math.round(i*10)/10;function Tr(i,t,e,s){const n=qe(i),o=Rt(n,"margin"),r=Ye(n.maxWidth,i,"clientWidth")||Ve,a=Ye(n.maxHeight,i,"clientHeight")||Ve,l=Dr(i,t,e);let{width:c,height:h}=l;if(n.boxSizing==="content-box"){const f=Rt(n,"border","width"),u=Rt(n,"padding");c-=u.width+f.width,h-=u.height+f.height}return c=Math.max(0,c-o.width),h=Math.max(0,s?c/s:h-o.height),c=Me(Math.min(c,r,l.maxWidth)),h=Me(Math.min(h,a,l.maxHeight)),c&&!h&&(h=Me(c/2)),(t!==void 0||e!==void 0)&&s&&l.height&&h>l.height&&(h=l.height,c=Me(Math.floor(h*s))),{width:c,height:h}}function ss(i,t,e){const s=t||1,n=Math.floor(i.height*s),o=Math.floor(i.width*s);i.height=Math.floor(i.height),i.width=Math.floor(i.width);const r=i.canvas;return r.style&&(e||!r.style.height&&!r.style.width)&&(r.style.height=`${i.height}px`,r.style.width=`${i.width}px`),i.currentDevicePixelRatio!==s||r.height!==n||r.width!==o?(i.currentDevicePixelRatio=s,r.height=n,r.width=o,i.ctx.setTransform(s,0,0,s,0,0),!0):!1}const Rr=function(){let i=!1;try{const t={get passive(){return i=!0,!1}};Fi()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return i}();function ns(i,t){const e=Pr(i,t),s=e&&e.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function Ot(i,t,e,s){return{x:i.x+e*(t.x-i.x),y:i.y+e*(t.y-i.y)}}function Lr(i,t,e,s){return{x:i.x+e*(t.x-i.x),y:s==="middle"?e<.5?i.y:t.y:s==="after"?e<1?i.y:t.y:e>0?t.y:i.y}}function Ir(i,t,e,s){const n={x:i.cp2x,y:i.cp2y},o={x:t.cp1x,y:t.cp1y},r=Ot(i,n,e),a=Ot(n,o,e),l=Ot(o,t,e),c=Ot(r,a,e),h=Ot(a,l,e);return Ot(c,h,e)}const Er=function(i,t){return{x(e){return i+i+t-e},setWidth(e){t=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,s){return e-s},leftForLtr(e,s){return e-s}}},Fr=function(){return{x(i){return i},setWidth(i){},textAlign(i){return i},xPlus(i,t){return i+t},leftForLtr(i,t){return i}}};function Wt(i,t,e){return i?Er(t,e):Fr()}function wn(i,t){let e,s;(t==="ltr"||t==="rtl")&&(e=i.canvas.style,s=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",t,"important"),i.prevTextDirection=s)}function Mn(i,t){t!==void 0&&(delete i.prevTextDirection,i.canvas.style.setProperty("direction",t[0],t[1]))}function Sn(i){return i==="angle"?{between:Pi,compare:Fo,normalize:pt}:{between:bt,compare:(t,e)=>t-e,normalize:t=>t}}function os({start:i,end:t,count:e,loop:s,style:n}){return{start:i%e,end:t%e,loop:s&&(t-i+1)%e===0,style:n}}function zr(i,t,e){const{property:s,start:n,end:o}=e,{between:r,normalize:a}=Sn(s),l=t.length;let{start:c,end:h,loop:d}=i,f,u;if(d){for(c+=l,h+=l,f=0,u=l;f<u&&r(a(t[c%l][s]),n,o);++f)c--,h--;c%=l,h%=l}return h<c&&(h+=l),{start:c,end:h,loop:d,style:i.style}}function Br(i,t,e){if(!e)return[i];const{property:s,start:n,end:o}=e,r=t.length,{compare:a,between:l,normalize:c}=Sn(s),{start:h,end:d,loop:f,style:u}=zr(i,t,e),p=[];let g=!1,m=null,b,_,y;const v=()=>l(n,y,b)&&a(n,y)!==0,x=()=>a(o,b)===0||l(o,y,b),w=()=>g||v(),M=()=>!g||x();for(let k=h,P=h;k<=d;++k)_=t[k%r],!_.skip&&(b=c(_[s]),b!==y&&(g=l(b,n,o),m===null&&w()&&(m=a(b,n)===0?k:P),m!==null&&M()&&(p.push(os({start:m,end:k,loop:f,count:r,style:u})),m=null),P=k,y=b));return m!==null&&p.push(os({start:m,end:d,loop:f,count:r,style:u})),p}function Hr(i,t){const e=[],s=i.segments;for(let n=0;n<s.length;n++){const o=Br(s[n],i.points,t);o.length&&e.push(...o)}return e}function Wr(i,t,e,s){let n=0,o=t-1;if(e&&!s)for(;n<t&&!i[n].skip;)n++;for(;n<t&&i[n].skip;)n++;for(n%=t,e&&(o+=n);o>n&&i[o%t].skip;)o--;return o%=t,{start:n,end:o}}function Nr(i,t,e,s){const n=i.length,o=[];let r=t,a=i[t],l;for(l=t+1;l<=e;++l){const c=i[l%n];c.skip||c.stop?a.skip||(s=!1,o.push({start:t%n,end:(l-1)%n,loop:s}),t=r=c.stop?l:null):(r=l,a.skip&&(t=l)),a=c}return r!==null&&o.push({start:t%n,end:r%n,loop:s}),o}function jr(i,t){const e=i.points,s=i.options.spanGaps,n=e.length;if(!n)return[];const o=!!i._loop,{start:r,end:a}=Wr(e,n,o,s);if(s===!0)return rs(i,[{start:r,end:a,loop:o}],e,t);const l=a<r?a+n:a,c=!!i._fullLoop&&r===0&&a===n-1;return rs(i,Nr(e,r,l,c),e,t)}function rs(i,t,e,s){return!s||!s.setContext||!e?t:Vr(i,t,e,s)}function Vr(i,t,e,s){const n=i._chart.getContext(),o=as(i.options),{_datasetIndex:r,options:{spanGaps:a}}=i,l=e.length,c=[];let h=o,d=t[0].start,f=d;function u(p,g,m,b){const _=a?-1:1;if(p!==g){for(p+=l;e[p%l].skip;)p-=_;for(;e[g%l].skip;)g+=_;p%l!==g%l&&(c.push({start:p%l,end:g%l,loop:m,style:b}),h=b,d=g%l)}}for(const p of t){d=a?d:p.start;let g=e[d%l],m;for(f=d+1;f<=p.end;f++){const b=e[f%l];m=as(s.setContext(It(n,{type:"segment",p0:g,p1:b,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:r}))),$r(m,h)&&u(d,f-1,p.loop,h),g=b,h=m}d<f-1&&u(d,f-1,p.loop,h)}return c}function as(i){return{backgroundColor:i.backgroundColor,borderCapStyle:i.borderCapStyle,borderDash:i.borderDash,borderDashOffset:i.borderDashOffset,borderJoinStyle:i.borderJoinStyle,borderWidth:i.borderWidth,borderColor:i.borderColor}}function $r(i,t){if(!t)return!1;const e=[],s=function(n,o){return Ai(o)?(e.includes(o)||e.push(o),e.indexOf(o)):o};return JSON.stringify(i,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 Yr{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,s,n){const o=e.listeners[n],r=e.duration;o.forEach(a=>a({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(s-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=dn.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;const o=s.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(n.draw(),this._notify(n,s,t,"progress")),o.length||(s.running=!1,this._notify(n,s,t,"complete"),s.initial=!1),e+=o.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let s=e.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,s)),s}listen(t,e,s){this._getAnims(t).listeners[e].push(s)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((s,n)=>Math.max(s,n._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const s=e.items;let n=s.length-1;for(;n>=0;--n)s[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var dt=new Yr;const ls="transparent",Ur={boolean(i,t,e){return e>.5?t:i},color(i,t,e){const s=Zi(i||ls),n=s.valid&&Zi(t||ls);return n&&n.valid?n.mix(s,e).hexString():t},number(i,t,e){return i+(t-i)*e}};class Xr{constructor(t,e,s,n){const o=e[s];n=z([t.to,n,o,t.from]);const r=z([t.from,o,n]);this._active=!0,this._fn=t.fn||Ur[t.type||typeof r],this._easing=re[t.easing]||re.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=s,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,s){if(this._active){this._notify(!1);const n=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=z([t.to,e,n,t.from]),this._from=z([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,s=this._duration,n=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||e<s),!this._active){this._target[n]=a,this._notify(!0);return}if(e<0){this._target[n]=o;return}l=e/s%2,l=r&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,s)=>{t.push({res:e,rej:s})})}_notify(t){const e=t?"res":"rej",s=this._promises||[];for(let n=0;n<s.length;n++)s[n][e]()}}class Pn{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!T(t))return;const e=Object.keys(B.animation),s=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const o=t[n];if(!T(o))return;const r={};for(const a of e)r[a]=o[a];(W(o.properties)&&o.properties||[n]).forEach(a=>{(a===n||!s.has(a))&&s.set(a,r)})})}_animateOptions(t,e){const s=e.options,n=qr(t,s);if(!n)return[];const o=this._createAnimations(n,s);return s.$shared&&Kr(t.options.$animations,s).then(()=>{t.options=s},()=>{}),o}_createAnimations(t,e){const s=this._properties,n=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),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"){n.push(...this._animateOptions(t,e));continue}const h=e[c];let d=o[c];const f=s.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 Xr(f,t,c,h),n.push(d)}return n}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}const s=this._createAnimations(t,e);if(s.length)return dt.add(this._chart,s),!0}}function Kr(i,t){const e=[],s=Object.keys(t);for(let n=0;n<s.length;n++){const o=i[s[n]];o&&o.active()&&e.push(o.wait())}return Promise.all(e)}function qr(i,t){if(!t)return;let e=i.options;if(!e){i.options=t;return}return e.$shared&&(i.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e}function cs(i,t){const e=i&&i.options||{},s=e.reverse,n=e.min===void 0?t:0,o=e.max===void 0?t:0;return{start:s?o:n,end:s?n:o}}function Gr(i,t,e){if(e===!1)return!1;const s=cs(i,e),n=cs(t,e);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}function Zr(i){let t,e,s,n;return T(i)?(t=i.top,e=i.right,s=i.bottom,n=i.left):t=e=s=n=i,{top:t,right:e,bottom:s,left:n,disabled:i===!1}}function Cn(i,t){const e=[],s=i._getSortedDatasetMetas(t);let n,o;for(n=0,o=s.length;n<o;++n)e.push(s[n].index);return e}function hs(i,t,e,s={}){const n=i.keys,o=s.mode==="single";let r,a,l,c;if(t===null)return;let h=!1;for(r=0,a=n.length;r<a;++r){if(l=+n[r],l===e){if(h=!0,s.all)continue;break}c=i.values[l],it(c)&&(o||t===0||lt(t)===lt(c))&&(t+=c)}return!h&&!s.all?0:t}function Jr(i,t){const{iScale:e,vScale:s}=t,n=e.axis==="x"?"x":"y",o=s.axis==="x"?"x":"y",r=Object.keys(i),a=new Array(r.length);let l,c,h;for(l=0,c=r.length;l<c;++l)h=r[l],a[l]={[n]:h,[o]:i[h]};return a}function ti(i,t){const e=i&&i.options.stacked;return e||e===void 0&&t.stack!==void 0}function Qr(i,t,e){return`${i.id}.${t.id}.${e.stack||e.type}`}function ta(i){const{min:t,max:e,minDefined:s,maxDefined:n}=i.getUserBounds();return{min:s?t:Number.NEGATIVE_INFINITY,max:n?e:Number.POSITIVE_INFINITY}}function ea(i,t,e){const s=i[t]||(i[t]={});return s[e]||(s[e]={})}function ds(i,t,e,s){for(const n of t.getMatchingVisibleMetas(s).reverse()){const o=i[n.index];if(e&&o>0||!e&&o<0)return n.index}return null}function fs(i,t){const{chart:e,_cachedMeta:s}=i,n=e._stacks||(e._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,h=Qr(o,r,s),d=t.length;let f;for(let u=0;u<d;++u){const p=t[u],{[l]:g,[c]:m}=p,b=p._stacks||(p._stacks={});f=b[c]=ea(n,h,g),f[a]=m,f._top=ds(f,r,!0,s.type),f._bottom=ds(f,r,!1,s.type);const _=f._visualValues||(f._visualValues={});_[a]=m}}function ei(i,t){const e=i.scales;return Object.keys(e).filter(s=>e[s].axis===t).shift()}function ia(i,t){return It(i,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function sa(i,t,e){return It(i,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}function Kt(i,t){const e=i.controller.index,s=i.vScale&&i.vScale.axis;if(s){t=t||i._parsed;for(const n of t){const o=n._stacks;if(!o||o[s]===void 0||o[s][e]===void 0)return;delete o[s][e],o[s]._visualValues!==void 0&&o[s]._visualValues[e]!==void 0&&delete o[s]._visualValues[e]}}}const ii=i=>i==="reset"||i==="none",us=(i,t)=>t?i:Object.assign({},i),na=(i,t,e)=>i&&!t.hidden&&t._stacked&&{keys:Cn(e,!0),values:null};class Nt{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,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=ti(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&&Kt(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,s=this.getDataset(),n=(d,f,u,p)=>d==="x"?f:d==="r"?p:u,o=e.xAxisID=A(s.xAxisID,ei(t,"x")),r=e.yAxisID=A(s.yAxisID,ei(t,"y")),a=e.rAxisID=A(s.rAxisID,ei(t,"r")),l=e.indexAxis,c=e.iAxisID=n(l,o,r,a),h=e.vAxisID=n(l,r,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.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 e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ki(this._data,this),t._stacked&&Kt(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),s=this._data;if(T(e)){const n=this._cachedMeta;this._data=Jr(e,n)}else if(s!==e){if(s){Ki(s,this);const n=this._cachedMeta;Kt(n),n._parsed=[]}e&&Object.isExtensible(e)&&Wo(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,s=this.getDataset();let n=!1;this._dataCheck();const o=e._stacked;e._stacked=ti(e.vScale,e),e.stack!==s.stack&&(n=!0,Kt(e),e.stack=s.stack),this._resyncElements(t),(n||o!==e._stacked)&&(fs(this,e._parsed),e._stacked=ti(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:s,_data:n}=this,{iScale:o,_stacked:r}=s,a=o.axis;let l=t===0&&e===n.length?!0:s._sorted,c=t>0&&s._parsed[t-1],h,d,f;if(this._parsing===!1)s._parsed=n,s._sorted=!0,f=n;else{W(n[t])?f=this.parseArrayData(s,n,t,e):T(n[t])?f=this.parseObjectData(s,n,t,e):f=this.parsePrimitiveData(s,n,t,e);const u=()=>d[a]===null||c&&d[a]<c[a];for(h=0;h<e;++h)s._parsed[h+t]=d=f[h],l&&(u()&&(l=!1),c=d);s._sorted=l}r&&fs(this,f)}parsePrimitiveData(t,e,s,n){const{iScale:o,vScale:r}=t,a=o.axis,l=r.axis,c=o.getLabels(),h=o===r,d=new Array(n);let f,u,p;for(f=0,u=n;f<u;++f)p=f+s,d[f]={[a]:h||o.parse(c[p],p),[l]:r.parse(e[p],p)};return d}parseArrayData(t,e,s,n){const{xScale:o,yScale:r}=t,a=new Array(n);let l,c,h,d;for(l=0,c=n;l<c;++l)h=l+s,d=e[h],a[l]={x:o.parse(d[0],h),y:r.parse(d[1],h)};return a}parseObjectData(t,e,s,n){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(n);let h,d,f,u;for(h=0,d=n;h<d;++h)f=h+s,u=e[f],c[h]={x:o.parse(jt(u,a),f),y:r.parse(jt(u,l),f)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,s){const n=this.chart,o=this._cachedMeta,r=e[t.axis],a={keys:Cn(n,!0),values:e._stacks[t.axis]._visualValues};return hs(a,r,o.index,{mode:s})}updateRangeFromParsed(t,e,s,n){const o=s[e.axis];let r=o===null?NaN:o;const a=n&&s._stacks[e.axis];n&&a&&(n.values=a,r=hs(n,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,e){const s=this._cachedMeta,n=s._parsed,o=s._sorted&&t===s.iScale,r=n.length,a=this._getOtherScale(t),l=na(e,s,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:d}=ta(a);let f,u;function p(){u=n[f];const g=u[a.axis];return!it(u[t.axis])||h>g||d<g}for(f=0;f<r&&!(!p()&&(this.updateRangeFromParsed(c,t,u,l),o));++f);if(o){for(f=r-1;f>=0;--f)if(!p()){this.updateRangeFromParsed(c,t,u,l);break}}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,s=[];let n,o,r;for(n=0,o=e.length;n<o;++n)r=e[n][t.axis],it(r)&&s.push(r);return s}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,s=e.iScale,n=e.vScale,o=this.getParsed(t);return{label:s?""+s.getLabelForValue(o[s.axis]):"",value:n?""+n.getLabelForValue(o[n.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=Zr(A(this.options.clip,Gr(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,s=this._cachedMeta,n=s.data||[],o=e.chartArea,r=[],a=this._drawStart||0,l=this._drawCount||n.length-a,c=this.options.drawActiveElementsOnTop;let h;for(s.dataset&&s.dataset.draw(t,o,a,l),h=a;h<a+l;++h){const d=n[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,e){const s=e?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(s):this.resolveDataElementOptions(t||0,s)}getContext(t,e,s){const n=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const r=this._cachedMeta.data[t];o=r.$context||(r.$context=sa(this.getContext(),t,r)),o.parsed=this.getParsed(t),o.raw=n.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=ia(this.chart.getContext(),this.index)),o.dataset=n,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=s,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",s){const n=e==="active",o=this._cachedDataOpts,r=t+"-"+e,a=o[r],l=this.enableOptionSharing&&de(s);if(a)return us(a,l);const c=this.chart.config,h=c.datasetElementScopeKeys(this._type,t),d=n?[`${t}Hover`,"hover",t,""]:[t,""],f=c.getOptionScopes(this.getDataset(),h),u=Object.keys(B.elements[t]),p=()=>this.getContext(s,n,e),g=c.resolveNamedOptions(f,u,p,d);return g.$shared&&(g.$shared=l,o[r]=Object.freeze(us(g,l))),g}_resolveAnimations(t,e,s){const n=this.chart,o=this._cachedDataOpts,r=`animation-${e}`,a=o[r];if(a)return a;let l;if(n.options.animation!==!1){const h=this.chart.config,d=h.datasetAnimationScopeKeys(this._type,e),f=h.getOptionScopes(this.getDataset(),d);l=h.createResolver(f,this.getContext(t,s,e))}const c=new Pn(n,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,e){return!e||ii(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const s=this.resolveDataElementOptions(t,e),n=this._sharedOptions,o=this.getSharedOptions(s),r=this.includeOptions(e,o)||o!==n;return this.updateSharedOptions(o,e,s),{sharedOptions:o,includeOptions:r}}updateElement(t,e,s,n){ii(n)?Object.assign(t,s):this._resolveAnimations(e,n).update(t,s)}updateSharedOptions(t,e,s){t&&!ii(e)&&this._resolveAnimations(void 0,e).update(t,s)}_setStyle(t,e,s,n){t.active=n;const o=this.getStyle(e,n);this._resolveAnimations(e,s,n).update(t,{options:!n&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,e,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 e=this._data,s=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const n=s.length,o=e.length,r=Math.min(o,n);r&&this.parse(0,r),o>n?this._insertElements(n,o-n,t):o<n&&this._removeElements(o,n-o)}_insertElements(t,e,s=!0){const n=this._cachedMeta,o=n.data,r=t+e;let a;const l=c=>{for(c.length+=e,a=c.length-1;a>=r;a--)c[a]=c[a-e]};for(l(o),a=t;a<r;++a)o[a]=new this.dataElementType;this._parsing&&l(n._parsed),this.parse(t,e),s&&this.updateElements(o,t,e,"reset")}updateElements(t,e,s,n){}_removeElements(t,e){const s=this._cachedMeta;if(this._parsing){const n=s._parsed.splice(t,e);s._stacked&&Kt(s,n)}s.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,s,n]=t;this[e](s,n)}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,e){e&&this._sync(["_removeElements",t,e]);const s=arguments.length-2;s&&this._sync(["_insertElements",t,s])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}S(Nt,"defaults",{}),S(Nt,"datasetElementType",null),S(Nt,"dataElementType",null);function oa(i,t){if(!i._cache.$bar){const e=i.getMatchingVisibleMetas(t);let s=[];for(let n=0,o=e.length;n<o;n++)s=s.concat(e[n].controller.getAllParsedValues(i));i._cache.$bar=hn(s.sort((n,o)=>n-o))}return i._cache.$bar}function ra(i){const t=i.iScale,e=oa(t,i.type);let s=t._length,n,o,r,a;const l=()=>{r===32767||r===-32768||(de(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(n=0,o=e.length;n<o;++n)r=t.getPixelForValue(e[n]),l();for(a=void 0,n=0,o=t.ticks.length;n<o;++n)r=t.getPixelForTick(n),l();return s}function aa(i,t,e,s){const n=e.barThickness;let o,r;return R(n)?(o=t.min*e.categoryPercentage,r=e.barPercentage):(o=n*s,r=1),{chunk:o/s,ratio:r,start:t.pixels[i]-o/2}}function la(i,t,e,s){const n=t.pixels,o=n[i];let r=i>0?n[i-1]:null,a=i<n.length-1?n[i+1]:null;const l=e.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/s,ratio:e.barPercentage,start:c}}function ca(i,t,e,s){const n=e.parse(i[0],s),o=e.parse(i[1],s),r=Math.min(n,o),a=Math.max(n,o);let l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),t[e.axis]=c,t._custom={barStart:l,barEnd:c,start:n,end:o,min:r,max:a}}function On(i,t,e,s){return W(i)?ca(i,t,e,s):t[e.axis]=e.parse(i,s),t}function gs(i,t,e,s){const n=i.iScale,o=i.vScale,r=n.getLabels(),a=n===o,l=[];let c,h,d,f;for(c=e,h=e+s;c<h;++c)f=t[c],d={},d[n.axis]=a||n.parse(r[c],c),l.push(On(f,d,o,c));return l}function si(i){return i&&i.barStart!==void 0&&i.barEnd!==void 0}function ha(i,t,e){return i!==0?lt(i):(t.isHorizontal()?1:-1)*(t.min>=e?1:-1)}function da(i){let t,e,s,n,o;return i.horizontal?(t=i.base>i.x,e="left",s="right"):(t=i.base<i.y,e="bottom",s="top"),t?(n="end",o="start"):(n="start",o="end"),{start:e,end:s,reverse:t,top:n,bottom:o}}function fa(i,t,e,s){let n=t.borderSkipped;const o={};if(!n){i.borderSkipped=o;return}if(n===!0){i.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:r,end:a,reverse:l,top:c,bottom:h}=da(i);n==="middle"&&e&&(i.enableBorderRadius=!0,(e._top||0)===s?n=c:(e._bottom||0)===s?n=h:(o[ps(h,r,a,l)]=!0,n=c)),o[ps(n,r,a,l)]=!0,i.borderSkipped=o}function ps(i,t,e,s){return s?(i=ua(i,t,e),i=ms(i,e,t)):i=ms(i,t,e),i}function ua(i,t,e){return i===t?e:i===e?t:i}function ms(i,t,e){return i==="start"?t:i==="end"?e:i}function ga(i,{inflateAmount:t},e){i.inflateAmount=t==="auto"?e===1?.33:0:t}class ni extends Nt{parsePrimitiveData(t,e,s,n){return gs(t,e,s,n)}parseArrayData(t,e,s,n){return gs(t,e,s,n)}parseObjectData(t,e,s,n){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,p,g;for(f=s,u=s+n;f<u;++f)g=e[f],p={},p[o.axis]=o.parse(jt(g,c),f),d.push(On(jt(g,h),p,r,f));return d}updateRangeFromParsed(t,e,s,n){super.updateRangeFromParsed(t,e,s,n);const o=s._custom;o&&e===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 e=this._cachedMeta,{iScale:s,vScale:n}=e,o=this.getParsed(t),r=o._custom,a=si(r)?"["+r.start+", "+r.end+"]":""+n.getLabelForValue(o[n.axis]);return{label:""+s.getLabelForValue(o[s.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,s,n){const o=n==="reset",{index:r,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),h=this._getRuler(),{sharedOptions:d,includeOptions:f}=this._getSharedOptions(e,n);for(let u=e;u<e+s;u++){const p=this.getParsed(u),g=o||R(p[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(u),m=this._calculateBarIndexPixels(u,h),b=(p._stacks||{})[a.axis],_={horizontal:c,base:g.base,enableBorderRadius:!b||si(p._custom)||r===b._top||r===b._bottom,x:c?g.head:m.center,y:c?m.center:g.head,height:c?m.size:Math.abs(g.size),width:c?Math.abs(g.size):m.size};f&&(_.options=d||this.resolveDataElementOptions(u,t[u].active?"active":n));const y=_.options||t[u].options;fa(_,y,b,r),ga(_,y,h.ratio),this.updateElement(t[u],u,_,n)}}_getStacks(t,e){const{iScale:s}=this._cachedMeta,n=s.getMatchingVisibleMetas(this._type).filter(h=>h.controller.options.grouped),o=s.options.stacked,r=[],a=this._cachedMeta.controller.getParsed(e),l=a&&a[s.axis],c=h=>{const d=h._parsed.find(u=>u[s.axis]===l),f=d&&d[h.vScale.axis];if(R(f)||isNaN(f))return!0};for(const h of n)if(!(e!==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,e,s){const n=this._getStacks(t,s),o=e!==void 0?n.indexOf(e):-1;return o===-1?n.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,s=e.iScale,n=[];let o,r;for(o=0,r=e.data.length;o<r;++o)n.push(s.getPixelForValue(this.getParsed(o)[s.axis],o));const a=t.barThickness;return{min:a||ra(e),pixels:n,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:e,_stacked:s,index:n},options:{base:o,minBarLength:r}}=this,a=o||0,l=this.getParsed(t),c=l._custom,h=si(c);let d=l[e.axis],f=0,u=s?this.applyStack(e,l,s):d,p,g;u!==d&&(f=u-d,u=d),h&&(d=c.barStart,u=c.barEnd-c.barStart,d!==0&&lt(d)!==lt(c.barEnd)&&(f=0),f+=d);const m=!R(o)&&!h?o:f;let b=e.getPixelForValue(m);if(this.chart.getDataVisibility(t)?p=e.getPixelForValue(f+u):p=b,g=p-b,Math.abs(g)<r){g=ha(g,e,a)*r,d===a&&(b-=g/2);const _=e.getPixelForDecimal(0),y=e.getPixelForDecimal(1),v=Math.min(_,y),x=Math.max(_,y);b=Math.max(Math.min(b,x),v),p=b+g,s&&!h&&(l._stacks[e.axis]._visualValues[n]=e.getValueForPixel(p)-e.getValueForPixel(b))}if(b===e.getPixelForValue(a)){const _=lt(g)*e.getLineWidthForValue(a)/2;b+=_,g-=_}return{size:g,base:b,head:p,center:p+g/2}}_calculateBarIndexPixels(t,e){const s=e.scale,n=this.options,o=n.skipNull,r=A(n.maxBarThickness,1/0);let a,l;if(e.grouped){const c=o?this._getStackCount(t):e.stackCount,h=n.barThickness==="flex"?la(t,e,n,c):aa(t,e,n,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=s.getPixelForValue(this.getParsed(t)[s.axis],t),l=Math.min(r,e.min*e.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,e=t.vScale,s=t.data,n=s.length;let o=0;for(;o<n;++o)this.getParsed(o)[e.axis]!==null&&!s[o].hidden&&s[o].draw(this._ctx)}}S(ni,"id","bar"),S(ni,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),S(ni,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class oi extends Nt{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:s,data:n=[],_dataset:o}=e,r=this.chart._animationsDisabled;let{start:a,count:l}=Vo(e,n,r);this._drawStart=a,this._drawCount=l,$o(e)&&(a=0,l=n.length),s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!o._decimated,s.points=n;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(s,void 0,{animated:!r,options:c},t),this.updateElements(n,a,l,t)}updateElements(t,e,s,n){const o=n==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:h,includeOptions:d}=this._getSharedOptions(e,n),f=r.axis,u=a.axis,{spanGaps:p,segment:g}=this.options,m=fe(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||n==="none",_=e+s,y=t.length;let v=e>0&&this.getParsed(e-1);for(let x=0;x<y;++x){const w=t[x],M=b?w:{};if(x<e||x>=_){M.skip=!0;continue}const k=this.getParsed(x),P=R(k[u]),O=M[f]=r.getPixelForValue(k[f],x),C=M[u]=o||P?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,k,l):k[u],x);M.skip=isNaN(O)||isNaN(C)||P,M.stop=x>0&&Math.abs(k[f]-v[f])>m,g&&(M.parsed=k,M.raw=c.data[x]),d&&(M.options=h||this.resolveDataElementOptions(x,w.active?"active":n)),b||this.updateElement(w,x,M,n),v=k}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,s=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return s;const o=n[0].size(this.resolveDataElementOptions(0)),r=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}S(oi,"id","line"),S(oi,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),S(oi,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function St(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Bi{constructor(t){S(this,"options");this.options=t||{}}static override(t){Object.assign(Bi.prototype,t)}init(){}formats(){return St()}parse(){return St()}format(){return St()}add(){return St()}diff(){return St()}startOf(){return St()}endOf(){return St()}}var pa={_date:Bi};function ma(i,t,e,s){const{controller:n,data:o,_sorted:r}=i,a=n._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const l=a._reversePixels?Bo:Tt;if(s){if(n._sharedOptions){const c=o[0],h=typeof c.getRange=="function"&&c.getRange(t);if(h){const d=l(o,t,e-h),f=l(o,t,e+h);return{lo:d.lo,hi:f.hi}}}}else return l(o,t,e)}return{lo:0,hi:o.length-1}}function be(i,t,e,s,n){const o=i.getSortedVisibleDatasetMetas(),r=e[t];for(let a=0,l=o.length;a<l;++a){const{index:c,data:h}=o[a],{lo:d,hi:f}=ma(o[a],t,r,n);for(let u=d;u<=f;++u){const p=h[u];p.skip||s(p,c,u)}}}function ba(i){const t=i.indexOf("x")!==-1,e=i.indexOf("y")!==-1;return function(s,n){const o=t?Math.abs(s.x-n.x):0,r=e?Math.abs(s.y-n.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function ri(i,t,e,s,n){const o=[];return!n&&!i.isPointInArea(t)||be(i,e,t,function(a,l,c){!n&&!ue(a,i.chartArea,0)||a.inRange(t.x,t.y,s)&&o.push({element:a,datasetIndex:l,index:c})},!0),o}function _a(i,t,e,s){let n=[];function o(r,a,l){const{startAngle:c,endAngle:h}=r.getProps(["startAngle","endAngle"],s),{angle:d}=ln(r,{x:t.x,y:t.y});Pi(d,c,h)&&n.push({element:r,datasetIndex:a,index:l})}return be(i,e,t,o),n}function xa(i,t,e,s,n,o){let r=[];const a=ba(e);let l=Number.POSITIVE_INFINITY;function c(h,d,f){const u=h.inRange(t.x,t.y,n);if(s&&!u)return;const p=h.getCenterPoint(n);if(!(!!o||i.isPointInArea(p))&&!u)return;const m=a(t,p);m<l?(r=[{element:h,datasetIndex:d,index:f}],l=m):m===l&&r.push({element:h,datasetIndex:d,index:f})}return be(i,e,t,c),r}function ai(i,t,e,s,n,o){return!o&&!i.isPointInArea(t)?[]:e==="r"&&!s?_a(i,t,e,n):xa(i,t,e,s,n,o)}function bs(i,t,e,s,n){const o=[],r=e==="x"?"inXRange":"inYRange";let a=!1;return be(i,e,t,(l,c,h)=>{l[r]&&l[r](t[e],n)&&(o.push({element:l,datasetIndex:c,index:h}),a=a||l.inRange(t.x,t.y,n))}),s&&!a?[]:o}var ya={evaluateInteractionItems:be,modes:{index(i,t,e,s){const n=Ct(t,i),o=e.axis||"x",r=e.includeInvisible||!1,a=e.intersect?ri(i,n,o,s,r):ai(i,n,o,!1,s,r),l=[];return a.length?(i.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(i,t,e,s){const n=Ct(t,i),o=e.axis||"xy",r=e.includeInvisible||!1;let a=e.intersect?ri(i,n,o,s,r):ai(i,n,o,!1,s,r);if(a.length>0){const l=a[0].datasetIndex,c=i.getDatasetMeta(l).data;a=[];for(let h=0;h<c.length;++h)a.push({element:c[h],datasetIndex:l,index:h})}return a},point(i,t,e,s){const n=Ct(t,i),o=e.axis||"xy",r=e.includeInvisible||!1;return ri(i,n,o,s,r)},nearest(i,t,e,s){const n=Ct(t,i),o=e.axis||"xy",r=e.includeInvisible||!1;return ai(i,n,o,e.intersect,s,r)},x(i,t,e,s){const n=Ct(t,i);return bs(i,n,"x",e.intersect,s)},y(i,t,e,s){const n=Ct(t,i);return bs(i,n,"y",e.intersect,s)}}};const An=["left","top","right","bottom"];function qt(i,t){return i.filter(e=>e.pos===t)}function _s(i,t){return i.filter(e=>An.indexOf(e.pos)===-1&&e.box.axis===t)}function Gt(i,t){return i.sort((e,s)=>{const n=t?s:e,o=t?e:s;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function va(i){const t=[];let e,s,n,o,r,a;for(e=0,s=(i||[]).length;e<s;++e)n=i[e],{position:o,options:{stack:r,stackWeight:a=1}}=n,t.push({index:e,box:n,pos:o,horizontal:n.isHorizontal(),weight:n.weight,stack:r&&o+r,stackWeight:a});return t}function ka(i){const t={};for(const e of i){const{stack:s,pos:n,stackWeight:o}=e;if(!s||!An.includes(n))continue;const r=t[s]||(t[s]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return t}function wa(i,t){const e=ka(i),{vBoxMaxWidth:s,hBoxMaxHeight:n}=t;let o,r,a;for(o=0,r=i.length;o<r;++o){a=i[o];const{fullSize:l}=a.box,c=e[a.stack],h=c&&a.stackWeight/c.weight;a.horizontal?(a.width=h?h*s:l&&t.availableWidth,a.height=n):(a.width=s,a.height=h?h*n:l&&t.availableHeight)}return e}function Ma(i){const t=va(i),e=Gt(t.filter(c=>c.box.fullSize),!0),s=Gt(qt(t,"left"),!0),n=Gt(qt(t,"right")),o=Gt(qt(t,"top"),!0),r=Gt(qt(t,"bottom")),a=_s(t,"x"),l=_s(t,"y");return{fullSize:e,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(r).concat(a),chartArea:qt(t,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(r).concat(a)}}function xs(i,t,e,s){return Math.max(i[e],t[e])+Math.max(i[s],t[s])}function Dn(i,t){i.top=Math.max(i.top,t.top),i.left=Math.max(i.left,t.left),i.bottom=Math.max(i.bottom,t.bottom),i.right=Math.max(i.right,t.right)}function Sa(i,t,e,s){const{pos:n,box:o}=e,r=i.maxPadding;if(!T(n)){e.size&&(i[n]-=e.size);const d=s[e.stack]||{size:0,count:1};d.size=Math.max(d.size,e.horizontal?o.height:o.width),e.size=d.size/d.count,i[n]+=e.size}o.getPadding&&Dn(r,o.getPadding());const a=Math.max(0,t.outerWidth-xs(r,i,"left","right")),l=Math.max(0,t.outerHeight-xs(r,i,"top","bottom")),c=a!==i.w,h=l!==i.h;return i.w=a,i.h=l,e.horizontal?{same:c,other:h}:{same:h,other:c}}function Pa(i){const t=i.maxPadding;function e(s){const n=Math.max(t[s]-i[s],0);return i[s]+=n,n}i.y+=e("top"),i.x+=e("left"),e("right"),e("bottom")}function Ca(i,t){const e=t.maxPadding;function s(n){const o={left:0,top:0,right:0,bottom:0};return n.forEach(r=>{o[r]=Math.max(t[r],e[r])}),o}return s(i?["left","right"]:["top","bottom"])}function ee(i,t,e,s){const n=[];let o,r,a,l,c,h;for(o=0,r=i.length,c=0;o<r;++o){a=i[o],l=a.box,l.update(a.width||t.w,a.height||t.h,Ca(a.horizontal,t));const{same:d,other:f}=Sa(t,e,a,s);c|=d&&n.length,h=h||f,l.fullSize||n.push(a)}return c&&ee(n,t,e,s)||h}function Se(i,t,e,s,n){i.top=e,i.left=t,i.right=t+s,i.bottom=e+n,i.width=s,i.height=n}function ys(i,t,e,s){const n=e.padding;let{x:o,y:r}=t;for(const a of i){const l=a.box,c=s[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;de(c.start)&&(r=c.start),l.fullSize?Se(l,n.left,r,e.outerWidth-n.right-n.left,f):Se(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;de(c.start)&&(o=c.start),l.fullSize?Se(l,o,n.top,f,e.outerHeight-n.bottom-n.top):Se(l,o,t.top+c.placed,f,d),c.start=o,c.placed+=d,o=l.right}}t.x=o,t.y=r}var et={addBox(i,t){i.boxes||(i.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(e){t.draw(e)}}]},i.boxes.push(t)},removeBox(i,t){const e=i.boxes?i.boxes.indexOf(t):-1;e!==-1&&i.boxes.splice(e,1)},configure(i,t,e){t.fullSize=e.fullSize,t.position=e.position,t.weight=e.weight},update(i,t,e,s){if(!i)return;const n=Q(i.options.layout.padding),o=Math.max(t-n.width,0),r=Math.max(e-n.height,0),a=Ma(i.boxes),l=a.vertical,c=a.horizontal;L(i.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const h=l.reduce((g,m)=>m.box.options&&m.box.options.display===!1?g:g+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:e,padding:n,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),f=Object.assign({},n);Dn(f,Q(s));const u=Object.assign({maxPadding:f,w:o,h:r,x:n.left,y:n.top},n),p=wa(l.concat(c),d);ee(a.fullSize,u,d,p),ee(l,u,d,p),ee(c,u,d,p)&&ee(l,u,d,p),Pa(u),ys(a.leftAndTop,u,d,p),u.x+=u.w,u.y+=u.h,ys(a.rightAndBottom,u,d,p),i.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h,height:u.h,width:u.w},L(a.chartArea,g=>{const m=g.box;Object.assign(m,i.chartArea),m.update(u.w,u.h,{left:0,top:0,right:0,bottom:0})})}};class Tn{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,s){}removeEventListener(t,e,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,s,n){return e=Math.max(0,e||t.width),s=s||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):s)}}isAttached(t){return!0}updateConfig(t){}}class Oa extends Tn{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ze="$chartjs",Aa={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},vs=i=>i===null||i==="";function Da(i,t){const e=i.style,s=i.getAttribute("height"),n=i.getAttribute("width");if(i[ze]={initial:{height:s,width:n,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",vs(n)){const o=ns(i,"width");o!==void 0&&(i.width=o)}if(vs(s))if(i.style.height==="")i.height=i.width/(t||2);else{const o=ns(i,"height");o!==void 0&&(i.height=o)}return i}const Rn=Rr?{passive:!0}:!1;function Ta(i,t,e){i&&i.addEventListener(t,e,Rn)}function Ra(i,t,e){i&&i.canvas&&i.canvas.removeEventListener(t,e,Rn)}function La(i,t){const e=Aa[i.type]||i.type,{x:s,y:n}=Ct(i,t);return{type:e,chart:t,native:i,x:s!==void 0?s:null,y:n!==void 0?n:null}}function Ue(i,t){for(const e of i)if(e===t||e.contains(t))return!0}function Ia(i,t,e){const s=i.canvas,n=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Ue(a.addedNodes,s),r=r&&!Ue(a.removedNodes,s);r&&e()});return n.observe(document,{childList:!0,subtree:!0}),n}function Ea(i,t,e){const s=i.canvas,n=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Ue(a.removedNodes,s),r=r&&!Ue(a.addedNodes,s);r&&e()});return n.observe(document,{childList:!0,subtree:!0}),n}const pe=new Map;let ks=0;function Ln(){const i=window.devicePixelRatio;i!==ks&&(ks=i,pe.forEach((t,e)=>{e.currentDevicePixelRatio!==i&&t()}))}function Fa(i,t){pe.size||window.addEventListener("resize",Ln),pe.set(i,t)}function za(i){pe.delete(i),pe.size||window.removeEventListener("resize",Ln)}function Ba(i,t,e){const s=i.canvas,n=s&&zi(s);if(!n)return;const o=fn((a,l)=>{const c=n.clientWidth;e(a,l),c<n.clientWidth&&e()},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(n),Fa(i,o),r}function li(i,t,e){e&&e.disconnect(),t==="resize"&&za(i)}function Ha(i,t,e){const s=i.canvas,n=fn(o=>{i.ctx!==null&&e(La(o,i))},i);return Ta(s,t,n),n}class Wa extends Tn{acquireContext(t,e){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(Da(t,e),s):null}releaseContext(t){const e=t.canvas;if(!e[ze])return!1;const s=e[ze].initial;["height","width"].forEach(o=>{const r=s[o];R(r)?e.removeAttribute(o):e.setAttribute(o,r)});const n=s.style||{};return Object.keys(n).forEach(o=>{e.style[o]=n[o]}),e.width=e.width,delete e[ze],!0}addEventListener(t,e,s){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),r={attach:Ia,detach:Ea,resize:Ba}[e]||Ha;n[e]=r(t,e,s)}removeEventListener(t,e){const s=t.$proxies||(t.$proxies={}),n=s[e];if(!n)return;({attach:li,detach:li,resize:li}[e]||Ra)(t,e,n),s[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,s,n){return Tr(t,e,s,n)}isAttached(t){const e=t&&zi(t);return!!(e&&e.isConnected)}}function Na(i){return!Fi()||typeof OffscreenCanvas<"u"&&i instanceof OffscreenCanvas?Oa:Wa}class nt{constructor(){S(this,"x");S(this,"y");S(this,"active",!1);S(this,"options");S(this,"$animations")}tooltipPosition(t){const{x:e,y:s}=this.getProps(["x","y"],t);return{x:e,y:s}}hasValue(){return fe(this.x)&&fe(this.y)}getProps(t,e){const s=this.$animations;if(!e||!s)return this;const n={};return t.forEach(o=>{n[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),n}}S(nt,"defaults",{}),S(nt,"defaultRoutes");function ja(i,t){const e=i.options.ticks,s=Va(i),n=Math.min(e.maxTicksLimit||s,s),o=e.major.enabled?Ya(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>n)return Ua(t,c,o,r/n),c;const h=$a(o,t,n);if(r>0){let d,f;const u=r>1?Math.round((l-a)/(r-1)):null;for(Pe(t,c,h,R(u)?0:a-u,a),d=0,f=r-1;d<f;d++)Pe(t,c,h,o[d],o[d+1]);return Pe(t,c,h,l,R(u)?t.length:l+u),c}return Pe(t,c,h),c}function Va(i){const t=i.options.offset,e=i._tickSize(),s=i._length/e+(t?0:1),n=i._maxLength/e;return Math.floor(Math.min(s,n))}function $a(i,t,e){const s=Xa(i),n=t.length/e;if(!s)return Math.max(n,1);const o=Ro(s);for(let r=0,a=o.length-1;r<a;r++){const l=o[r];if(l>n)return l}return Math.max(n,1)}function Ya(i){const t=[];let e,s;for(e=0,s=i.length;e<s;e++)i[e].major&&t.push(e);return t}function Ua(i,t,e,s){let n=0,o=e[0],r;for(s=Math.ceil(s),r=0;r<i.length;r++)r===o&&(t.push(i[r]),n++,o=e[n*s])}function Pe(i,t,e,s,n){const o=A(s,0),r=Math.min(A(n,i.length),i.length);let a=0,l,c,h;for(e=Math.ceil(e),n&&(l=n-s,e=l/Math.floor(l/e)),h=o;h<0;)a++,h=Math.round(o+a*e);for(c=Math.max(o,0);c<r;c++)c===h&&(t.push(i[c]),a++,h=Math.round(o+a*e))}function Xa(i){const t=i.length;let e,s;if(t<2)return!1;for(s=i[0],e=1;e<t;++e)if(i[e]-i[e-1]!==s)return!1;return s}const Ka=i=>i==="left"?"right":i==="right"?"left":i,ws=(i,t,e)=>t==="top"||t==="left"?i[t]+e:i[t]-e,Ms=(i,t)=>Math.min(t||i,i);function Ss(i,t){const e=[],s=i.length/t,n=i.length;let o=0;for(;o<n;o+=s)e.push(i[Math.floor(o)]);return e}function qa(i,t,e){const s=i.ticks.length,n=Math.min(t,s-1),o=i._startPixel,r=i._endPixel,a=1e-6;let l=i.getPixelForTick(n),c;if(!(e&&(s===1?c=Math.max(l-o,r-l):t===0?c=(i.getPixelForTick(1)-l)/2:c=(l-i.getPixelForTick(n-1))/2,l+=n<t?c:-c,l<o-a||l>r+a)))return l}function Ga(i,t){L(i,e=>{const s=e.gc,n=s.length/2;let o;if(n>t){for(o=0;o<n;++o)delete e.data[s[o]];s.splice(0,n)}})}function Zt(i){return i.drawTicks?i.tickLength:0}function Ps(i,t){if(!i.display)return 0;const e=$(i.font,t),s=Q(i.padding);return(W(i.text)?i.text.length:1)*e.lineHeight+s.height}function Za(i,t){return It(i,{scale:t,type:"scale"})}function Ja(i,t,e){return It(i,{tick:e,index:t,type:"tick"})}function Qa(i,t,e){let s=Oi(i);return(e&&t!=="right"||!e&&t==="right")&&(s=Ka(s)),s}function tl(i,t,e,s){const{top:n,left:o,bottom:r,right:a,chart:l}=i,{chartArea:c,scales:h}=l;let d=0,f,u,p;const g=r-n,m=a-o;if(i.isHorizontal()){if(u=X(s,o,a),T(e)){const b=Object.keys(e)[0],_=e[b];p=h[b].getPixelForValue(_)+g-t}else e==="center"?p=(c.bottom+c.top)/2+g-t:p=ws(i,e,t);f=a-o}else{if(T(e)){const b=Object.keys(e)[0],_=e[b];u=h[b].getPixelForValue(_)-m+t}else e==="center"?u=(c.left+c.right)/2-m+t:u=ws(i,e,t);p=X(s,r,n),d=e==="left"?-V:V}return{titleX:u,titleY:p,maxWidth:f,rotation:d}}class Yt extends nt{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,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:s,_suggestedMax:n}=this;return t=ot(t,Number.POSITIVE_INFINITY),e=ot(e,Number.NEGATIVE_INFINITY),s=ot(s,Number.POSITIVE_INFINITY),n=ot(n,Number.NEGATIVE_INFINITY),{min:ot(t,s),max:ot(e,n),minDefined:it(t),maxDefined:it(e)}}getMinMax(t){let{min:e,max:s,minDefined:n,maxDefined:o}=this.getUserBounds(),r;if(n&&o)return{min:e,max:s};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)r=a[l].controller.getMinMax(this,t),n||(e=Math.min(e,r.min)),o||(s=Math.max(s,r.max));return e=o&&e>s?s:e,s=n&&e>s?e:s,{min:ot(e,ot(s,e)),max:ot(s,ot(e,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(){E(this.options.beforeUpdate,[this])}update(t,e,s){const{beginAtZero:n,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,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=cr(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?Ss(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||r.source==="auto")&&(this.ticks=ja(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,e,s;this.isHorizontal()?(e=this.left,s=this.right):(e=this.top,s=this.bottom,t=!t),this._startPixel=e,this._endPixel=s,this._reversePixels=t,this._length=s-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){E(this.options.afterUpdate,[this])}beforeSetDimensions(){E(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(){E(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),E(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){E(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let s,n,o;for(s=0,n=t.length;s<n;s++)o=t[s],o.label=E(e.callback,[o.value,s,t],this)}afterTickToLabelConversion(){E(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){E(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,s=Ms(this.ticks.length,t.ticks.maxTicksLimit),n=e.minRotation||0,o=e.maxRotation;let r=n,a,l,c;if(!this._isVisible()||!e.display||n>=o||s<=1||!this.isHorizontal()){this.labelRotation=n;return}const h=this._getLabelSizes(),d=h.widest.width,f=h.highest.height,u=K(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/s:u/(s-1),d+6>a&&(a=u/(s-(t.offset?.5:1)),l=this.maxHeight-Zt(t.grid)-e.padding-Ps(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),r=Eo(Math.min(Math.asin(K((h.highest.height+6)/a,-1,1)),Math.asin(K(l/c,-1,1))-Math.asin(K(f/c,-1,1)))),r=Math.max(n,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){E(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){E(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:s,title:n,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=Ps(n,e.options.font);if(a?(t.width=this.maxWidth,t.height=Zt(o)+l):(t.height=this.maxHeight,t.width=Zt(o)+l),s.display&&this.ticks.length){const{first:c,last:h,widest:d,highest:f}=this._getLabelSizes(),u=s.padding*2,p=Dt(this.labelRotation),g=Math.cos(p),m=Math.sin(p);if(a){const b=s.mirror?0:m*d.width+g*f.height;t.height=Math.min(this.maxHeight,t.height+b+u)}else{const b=s.mirror?0:g*d.width+m*f.height;t.width=Math.min(this.maxWidth,t.width+b+u)}this._calculatePadding(c,h,m,g)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,s,n){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=n*t.width,u=s*e.height):(f=s*t.height,u=n*e.width):o==="start"?u=e.width:o==="end"?f=t.width:o!=="inner"&&(f=t.width/2,u=e.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=e.height/2,d=t.height/2;o==="start"?(h=0,d=t.height):o==="end"&&(h=e.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(){E(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return e==="top"||e==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let e,s;for(e=0,s=t.length;e<s;e++)R(t[e].label)&&(t.splice(e,1),s--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let s=this.ticks;e<s.length&&(s=Ss(s,e)),this._labelSizes=t=this._computeLabelSizes(s,s.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,s){const{ctx:n,_longestTextCache:o}=this,r=[],a=[],l=Math.floor(e/Ms(e,s));let c=0,h=0,d,f,u,p,g,m,b,_,y,v,x;for(d=0;d<e;d+=l){if(p=t[d].label,g=this._resolveTickFontOptions(d),n.font=m=g.string,b=o[m]=o[m]||{data:{},gc:[]},_=g.lineHeight,y=v=0,!R(p)&&!W(p))y=Qi(n,b.data,b.gc,y,p),v=_;else if(W(p))for(f=0,u=p.length;f<u;++f)x=p[f],!R(x)&&!W(x)&&(y=Qi(n,b.data,b.gc,y,x),v+=_);r.push(y),a.push(v),c=Math.max(y,c),h=Math.max(v,h)}Ga(o,e);const w=r.indexOf(c),M=a.indexOf(h),k=P=>({width:r[P]||0,height:a[P]||0});return{first:k(0),last:k(e-1),widest:k(w),highest:k(M),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return zo(this._alignToPixels?Mt(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const s=e[t];return s.$context||(s.$context=Ja(this.getContext(),t,s))}return this.$context||(this.$context=Za(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,e=Dt(this.labelRotation),s=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),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*s>a*n?a/s:l/n:l*n<a*s?l/s:a/n}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,s=this.chart,n=this.options,{grid:o,position:r,border:a}=n,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=Zt(o),u=[],p=a.setContext(this.getContext()),g=p.display?p.width:0,m=g/2,b=function(F){return Mt(s,F,g)};let _,y,v,x,w,M,k,P,O,C,D,j;if(r==="top")_=b(this.bottom),M=this.bottom-f,P=_-m,C=b(t.top)+m,j=t.bottom;else if(r==="bottom")_=b(this.top),C=t.top,j=b(t.bottom)-m,M=_+m,P=this.top+f;else if(r==="left")_=b(this.right),w=this.right-f,k=_-m,O=b(t.left)+m,D=t.right;else if(r==="right")_=b(this.left),O=t.left,D=b(t.right)-m,w=_+m,k=this.left+f;else if(e==="x"){if(r==="center")_=b((t.top+t.bottom)/2+.5);else if(T(r)){const F=Object.keys(r)[0],H=r[F];_=b(this.chart.scales[F].getPixelForValue(H))}C=t.top,j=t.bottom,M=_+m,P=M+f}else if(e==="y"){if(r==="center")_=b((t.left+t.right)/2);else if(T(r)){const F=Object.keys(r)[0],H=r[F];_=b(this.chart.scales[F].getPixelForValue(H))}w=_-m,k=w-f,O=t.left,D=t.right}const J=A(n.ticks.maxTicksLimit,d),I=Math.max(1,Math.ceil(d/J));for(y=0;y<d;y+=I){const F=this.getContext(y),H=o.setContext(F),st=a.setContext(F),U=H.lineWidth,Et=H.color,_e=st.dash||[],Ft=st.dashOffset,Ut=H.tickWidth,vt=H.tickColor,Xt=H.tickBorderDash||[],kt=H.tickBorderDashOffset;v=qa(this,y,l),v!==void 0&&(x=Mt(s,v,U),c?w=k=O=D=x:M=P=C=j=x,u.push({tx1:w,ty1:M,tx2:k,ty2:P,x1:O,y1:C,x2:D,y2:j,width:U,color:Et,borderDash:_e,borderDashOffset:Ft,tickWidth:Ut,tickColor:vt,tickBorderDash:Xt,tickBorderDashOffset:kt}))}return this._ticksLength=d,this._borderValue=_,u}_computeLabelItems(t){const e=this.axis,s=this.options,{position:n,ticks:o}=s,r=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:h,mirror:d}=o,f=Zt(s.grid),u=f+h,p=d?-h:u,g=-Dt(this.labelRotation),m=[];let b,_,y,v,x,w,M,k,P,O,C,D,j="middle";if(n==="top")w=this.bottom-p,M=this._getXAxisLabelAlignment();else if(n==="bottom")w=this.top+p,M=this._getXAxisLabelAlignment();else if(n==="left"){const I=this._getYAxisLabelAlignment(f);M=I.textAlign,x=I.x}else if(n==="right"){const I=this._getYAxisLabelAlignment(f);M=I.textAlign,x=I.x}else if(e==="x"){if(n==="center")w=(t.top+t.bottom)/2+u;else if(T(n)){const I=Object.keys(n)[0],F=n[I];w=this.chart.scales[I].getPixelForValue(F)+u}M=this._getXAxisLabelAlignment()}else if(e==="y"){if(n==="center")x=(t.left+t.right)/2-u;else if(T(n)){const I=Object.keys(n)[0],F=n[I];x=this.chart.scales[I].getPixelForValue(F)}M=this._getYAxisLabelAlignment(f).textAlign}e==="y"&&(l==="start"?j="top":l==="end"&&(j="bottom"));const J=this._getLabelSizes();for(b=0,_=a.length;b<_;++b){y=a[b],v=y.label;const I=o.setContext(this.getContext(b));k=this.getPixelForTick(b)+o.labelOffset,P=this._resolveTickFontOptions(b),O=P.lineHeight,C=W(v)?v.length:1;const F=C/2,H=I.color,st=I.textStrokeColor,U=I.textStrokeWidth;let Et=M;r?(x=k,M==="inner"&&(b===_-1?Et=this.options.reverse?"left":"right":b===0?Et=this.options.reverse?"right":"left":Et="center"),n==="top"?c==="near"||g!==0?D=-C*O+O/2:c==="center"?D=-J.highest.height/2-F*O+O:D=-J.highest.height+O/2:c==="near"||g!==0?D=O/2:c==="center"?D=J.highest.height/2-F*O:D=J.highest.height-C*O,d&&(D*=-1),g!==0&&!I.showLabelBackdrop&&(x+=O/2*Math.sin(g))):(w=k,D=(1-C)*O/2);let _e;if(I.showLabelBackdrop){const Ft=Q(I.backdropPadding),Ut=J.heights[b],vt=J.widths[b];let Xt=D-Ft.top,kt=0-Ft.left;switch(j){case"middle":Xt-=Ut/2;break;case"bottom":Xt-=Ut;break}switch(M){case"center":kt-=vt/2;break;case"right":kt-=vt;break;case"inner":b===_-1?kt-=vt:b>0&&(kt-=vt/2);break}_e={left:kt,top:Xt,width:vt+Ft.width,height:Ut+Ft.height,color:I.backdropColor}}m.push({label:v,font:P,textOffset:D,options:{rotation:g,color:H,strokeColor:st,strokeWidth:U,textAlign:Et,textBaseline:j,translation:[x,w],backdrop:_e}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Dt(this.labelRotation))return t==="top"?"left":"right";let n="center";return e.align==="start"?n="left":e.align==="end"?n="right":e.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:s,mirror:n,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,h;return e==="left"?n?(h=this.right+o,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-a,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h=this.left)):e==="right"?n?(h=this.left+o,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+a,s==="near"?c="left":s==="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,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:s,top:n,width:o,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(s,n,o,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(o=>o.value===t);return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,s=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,h)=>{!h.width||!h.color||(s.save(),s.lineWidth=h.width,s.strokeStyle=h.color,s.setLineDash(h.borderDash||[]),s.lineDashOffset=h.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(e.display)for(o=0,r=n.length;o<r;++o){const l=n[o];e.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),e.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:e,options:{border:s,grid:n}}=this,o=s.setContext(this.getContext()),r=s.display?o.width:0;if(!r)return;const a=n.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,h,d,f;this.isHorizontal()?(c=Mt(t,this.left,r)-r/2,h=Mt(t,this.right,a)+a/2,d=f=l):(d=Mt(t,this.top,r)-r/2,f=Mt(t,this.bottom,a)+a/2,c=h=l),e.save(),e.lineWidth=o.width,e.strokeStyle=o.color,e.beginPath(),e.moveTo(c,d),e.lineTo(h,f),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const s=this.ctx,n=this._computeLabelArea();n&&Di(s,n);const o=this.getLabelItems(t);for(const r of o){const a=r.options,l=r.font,c=r.label,h=r.textOffset;ge(s,c,0,h,l,a)}n&&Ti(s)}drawTitle(){const{ctx:t,options:{position:e,title:s,reverse:n}}=this;if(!s.display)return;const o=$(s.font),r=Q(s.padding),a=s.align;let l=o.lineHeight/2;e==="bottom"||e==="center"||T(e)?(l+=r.bottom,W(s.text)&&(l+=o.lineHeight*(s.text.length-1))):l+=r.top;const{titleX:c,titleY:h,maxWidth:d,rotation:f}=tl(this,l,e,a);ge(t,s.text,0,0,o,{color:s.color,maxWidth:d,rotation:f,textAlign:Qa(a,e,n),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,e=t.ticks&&t.ticks.z||0,s=A(t.grid&&t.grid.z,-1),n=A(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Yt.prototype.draw?[{z:e,draw:o=>{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",n=[];let o,r;for(o=0,r=e.length;o<r;++o){const a=e[o];a[s]===this.id&&(!t||a.type===t)&&n.push(a)}return n}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return $(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Ce{constructor(t,e,s){this.type=t,this.scope=e,this.override=s,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let s;sl(e)&&(s=this.register(e));const n=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in n||(n[o]=t,el(t,r,s),this.override&&B.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,s=t.id,n=this.scope;s in e&&delete e[s],n&&s in B[n]&&(delete B[n][s],this.override&&delete Lt[s])}}function el(i,t,e){const s=ct(Object.create(null),[e?B.get(e):{},B.get(t),i.defaults]);B.set(t,s),i.defaultRoutes&&il(t,i.defaultRoutes),i.descriptors&&B.describe(t,i.descriptors)}function il(i,t){Object.keys(t).forEach(e=>{const s=e.split("."),n=s.pop(),o=[i].concat(s).join("."),r=t[e].split("."),a=r.pop(),l=r.join(".");B.route(o,n,l,a)})}function sl(i){return"id"in i&&"defaults"in i}class nl{constructor(){this.controllers=new Ce(Nt,"datasets",!0),this.elements=new Ce(nt,"elements"),this.plugins=new Ce(Object,"plugins"),this.scales=new Ce(Yt,"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,e,s){[...e].forEach(n=>{const o=s||this._getRegistryForType(n);s||o.isForType(n)||o===this.plugins&&n.id?this._exec(t,o,n):L(n,r=>{const a=s||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,e,s){const n=Si(t);E(s["before"+n],[],s),e[t](s),E(s["after"+n],[],s)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const s=this._typedRegistries[e];if(s.isForType(t))return s}return this.plugins}_get(t,e,s){const n=e.get(t);if(n===void 0)throw new Error('"'+t+'" is not a registered '+s+".");return n}}var at=new nl;class ol{constructor(){this._init=[]}notify(t,e,s,n){e==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=n?this._descriptors(t).filter(n):this._descriptors(t),r=this._notify(o,t,e,s);return e==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,e,s,n){n=n||{};for(const o of t){const r=o.plugin,a=r[s],l=[e,n,o.options];if(E(a,l,r)===!1&&n.cancelable)return!1}return!0}invalidate(){R(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const s=t&&t.config,n=A(s.options&&s.options.plugins,{}),o=rl(s);return n===!1&&!e?[]:ll(t,o,n,e)}_notifyStateChanges(t){const e=this._oldCache||[],s=this._cache,n=(o,r)=>o.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(n(e,s),t,"stop"),this._notify(n(s,e),t,"start")}}function rl(i){const t={},e=[],s=Object.keys(at.plugins.items);for(let o=0;o<s.length;o++)e.push(at.getPlugin(s[o]));const n=i.plugins||[];for(let o=0;o<n.length;o++){const r=n[o];e.indexOf(r)===-1&&(e.push(r),t[r.id]=!0)}return{plugins:e,localIds:t}}function al(i,t){return!t&&i===!1?null:i===!0?{}:i}function ll(i,{plugins:t,localIds:e},s,n){const o=[],r=i.getContext();for(const a of t){const l=a.id,c=al(s[l],n);c!==null&&o.push({plugin:a,options:cl(i.config,{plugin:a,local:e[l]},c,r)})}return o}function cl(i,{plugin:t,local:e},s,n){const o=i.pluginScopeKeys(t),r=i.getOptionScopes(s,o);return e&&t.defaults&&r.push(t.defaults),i.createResolver(r,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function bi(i,t){const e=B.datasets[i]||{};return((t.datasets||{})[i]||{}).indexAxis||t.indexAxis||e.indexAxis||"x"}function hl(i,t){let e=i;return i==="_index_"?e=t:i==="_value_"&&(e=t==="x"?"y":"x"),e}function dl(i,t){return i===t?"_index_":"_value_"}function Cs(i){if(i==="x"||i==="y"||i==="r")return i}function fl(i){if(i==="top"||i==="bottom")return"x";if(i==="left"||i==="right")return"y"}function _i(i,...t){if(Cs(i))return i;for(const e of t){const s=e.axis||fl(e.position)||i.length>1&&Cs(i[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${i}' axis. Please provide 'axis' or 'position' option.`)}function Os(i,t,e){if(e[t+"AxisID"]===i)return{axis:t}}function ul(i,t){if(t.data&&t.data.datasets){const e=t.data.datasets.filter(s=>s.xAxisID===i||s.yAxisID===i);if(e.length)return Os(i,"x",e[0])||Os(i,"y",e[0])}return{}}function gl(i,t){const e=Lt[i.type]||{scales:{}},s=t.scales||{},n=bi(i.type,t),o=Object.create(null);return Object.keys(s).forEach(r=>{const a=s[r];if(!T(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=_i(r,a,ul(r,i),B.scales[a.type]),c=dl(l,n),h=e.scales||{};o[r]=ne(Object.create(null),[{axis:l},a,h[l],h[c]])}),i.data.datasets.forEach(r=>{const a=r.type||i.type,l=r.indexAxis||bi(a,t),h=(Lt[a]||{}).scales||{};Object.keys(h).forEach(d=>{const f=hl(d,l),u=r[f+"AxisID"]||f;o[u]=o[u]||Object.create(null),ne(o[u],[{axis:f},s[u],h[d]])})}),Object.keys(o).forEach(r=>{const a=o[r];ne(a,[B.scales[a.type],B.scale])}),o}function In(i){const t=i.options||(i.options={});t.plugins=A(t.plugins,{}),t.scales=gl(i,t)}function En(i){return i=i||{},i.datasets=i.datasets||[],i.labels=i.labels||[],i}function pl(i){return i=i||{},i.data=En(i.data),In(i),i}const As=new Map,Fn=new Set;function Oe(i,t){let e=As.get(i);return e||(e=t(),As.set(i,e),Fn.add(e)),e}const Jt=(i,t,e)=>{const s=jt(t,e);s!==void 0&&i.add(s)};class ml{constructor(t){this._config=pl(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=En(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(),In(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Oe(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return Oe(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return Oe(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id,s=this.type;return Oe(`${s}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const s=this._scopeCache;let n=s.get(t);return(!n||e)&&(n=new Map,s.set(t,n)),n}getOptionScopes(t,e,s){const{options:n,type:o}=this,r=this._cachedScopes(t,s),a=r.get(e);if(a)return a;const l=new Set;e.forEach(h=>{t&&(l.add(t),h.forEach(d=>Jt(l,t,d))),h.forEach(d=>Jt(l,n,d)),h.forEach(d=>Jt(l,Lt[o]||{},d)),h.forEach(d=>Jt(l,B,d)),h.forEach(d=>Jt(l,pi,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Fn.has(e)&&r.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,Lt[e]||{},B.datasets[e]||{},{type:e},B,pi]}resolveNamedOptions(t,e,s,n=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=Ds(this._resolverCache,t,n);let l=r;if(_l(r,e)){o.$shared=!1,s=yt(s)?s():s;const c=this.createResolver(t,s,a);l=Vt(r,s,c)}for(const c of e)o[c]=l[c];return o}createResolver(t,e,s=[""],n){const{resolver:o}=Ds(this._resolverCache,t,s);return T(e)?Vt(o,e,void 0,n):o}}function Ds(i,t,e){let s=i.get(t);s||(s=new Map,i.set(t,s));const n=e.join();let o=s.get(n);return o||(o={resolver:Li(t,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},s.set(n,o)),o}const bl=i=>T(i)&&Object.getOwnPropertyNames(i).some(t=>yt(i[t]));function _l(i,t){const{isScriptable:e,isIndexable:s}=_n(i);for(const n of t){const o=e(n),r=s(n),a=(r||o)&&i[n];if(o&&(yt(a)||bl(a))||r&&W(a))return!0}return!1}var xl="4.4.7";const yl=["top","bottom","left","right","chartArea"];function Ts(i,t){return i==="top"||i==="bottom"||yl.indexOf(i)===-1&&t==="x"}function Rs(i,t){return function(e,s){return e[i]===s[i]?e[t]-s[t]:e[i]-s[i]}}function Ls(i){const t=i.chart,e=t.options.animation;t.notifyPlugins("afterRender"),E(e&&e.onComplete,[i],t)}function vl(i){const t=i.chart,e=t.options.animation;E(e&&e.onProgress,[i],t)}function zn(i){return Fi()&&typeof i=="string"?i=document.getElementById(i):i&&i.length&&(i=i[0]),i&&i.canvas&&(i=i.canvas),i}const Be={},Is=i=>{const t=zn(i);return Object.values(Be).filter(e=>e.canvas===t).pop()};function kl(i,t,e){const s=Object.keys(i);for(const n of s){const o=+n;if(o>=t){const r=i[n];delete i[n],(e>0||o>t)&&(i[o+e]=r)}}}function wl(i,t,e,s){return!e||i.type==="mouseout"?null:s?t:i}function Ae(i,t,e){return i.options.clip?i[e]:t[e]}function Ml(i,t){const{xScale:e,yScale:s}=i;return e&&s?{left:Ae(e,t,"left"),right:Ae(e,t,"right"),top:Ae(s,t,"top"),bottom:Ae(s,t,"bottom")}:t}class At{static register(...t){at.add(...t),Es()}static unregister(...t){at.remove(...t),Es()}constructor(t,e){const s=this.config=new ml(e),n=zn(t),o=Is(n);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=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||Na(n)),this.platform.updateConfig(s);const a=this.platform.acquireContext(n,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,h=l&&l.width;if(this.id=wo(),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 ol,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=No(d=>this.update(d),r.resizeDelay||0),this._dataChanges=[],Be[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}dt.listen(this,"complete",Ls),dt.listen(this,"progress",vl),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:s,height:n,_aspectRatio:o}=this;return R(t)?e&&o?o:n?s/n: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 at}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ss(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ts(this.canvas,this.ctx),this}stop(){return dt.stop(this),this}resize(t,e){dt.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const s=this.options,n=this.canvas,o=s.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(n,t,e,o),a=s.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,ss(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),E(s.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};L(e,(s,n)=>{s.id=n})}buildOrUpdateScales(){const t=this.options,e=t.scales,s=this.scales,n=Object.keys(s).reduce((r,a)=>(r[a]=!1,r),{});let o=[];e&&(o=o.concat(Object.keys(e).map(r=>{const a=e[r],l=_i(r,a),c=l==="r",h=l==="x";return{options:a,dposition:c?"chartArea":h?"bottom":"left",dtype:c?"radialLinear":h?"category":"linear"}}))),L(o,r=>{const a=r.options,l=a.id,c=_i(l,a),h=A(a.type,r.dtype);(a.position===void 0||Ts(a.position,c)!==Ts(r.dposition))&&(a.position=r.dposition),n[l]=!0;let d=null;if(l in s&&s[l].type===h)d=s[l];else{const f=at.getScale(h);d=new f({id:l,type:h,ctx:this.ctx,chart:this}),s[d.id]=d}d.init(a,t)}),L(n,(r,a)=>{r||delete s[a]}),L(s,r=>{et.configure(this,r,r.options),et.addBox(this,r)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,s=t.length;if(t.sort((n,o)=>n.index-o.index),s>e){for(let n=e;n<s;++n)this._destroyDatasetMeta(n);t.splice(e,s-e)}this._sortedMetasets=t.slice(0).sort(Rs("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((s,n)=>{e.filter(o=>o===s._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let s,n;for(this._removeUnreferencedMetasets(),s=0,n=e.length;s<n;s++){const o=e[s];let r=this.getDatasetMeta(s);const a=o.type||this.config.type;if(r.type&&r.type!==a&&(this._destroyDatasetMeta(s),r=this.getDatasetMeta(s)),r.type=a,r.indexAxis=o.indexAxis||bi(a,this.options),r.order=o.order||0,r.index=s,r.label=""+o.label,r.visible=this.isDatasetVisible(s),r.controller)r.controller.updateIndex(s),r.controller.linkScales();else{const l=at.getController(a),{datasetElementType:c,dataElementType:h}=B.datasets[a];Object.assign(l,{dataElementType:at.getElement(h),datasetElementType:c&&at.getElement(c)}),r.controller=new l(this,s),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){L(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const s=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!s.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=!n&&o.indexOf(d)===-1;d.buildOrUpdateElements(f),r=Math.max(+d.getMaxOverflow(),r)}r=this._minPadding=s.layout.autoPadding?r:0,this._updateLayout(r),n||L(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Rs("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){L(this.scales,t=>{et.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!$i(e,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:s,start:n,count:o}of e){const r=s==="_removeElements"?-o:o;kl(t,n,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,s=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),n=s(0);for(let o=1;o<e;o++)if(!$i(n,s(o)))return;return Array.from(n).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;et.update(this,this.width,this.height,t);const e=this.chartArea,s=e.width<=0||e.height<=0;this._layers=[],L(this.boxes,n=>{s&&n.position==="chartArea"||(n.configure&&n.configure(),this._layers.push(...n._layers()))},this),this._layers.forEach((n,o)=>{n._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,s=this.data.datasets.length;e<s;++e)this.getDatasetMeta(e).controller.configure();for(let e=0,s=this.data.datasets.length;e<s;++e)this._updateDataset(e,yt(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const s=this.getDatasetMeta(t),n={meta:s,index:t,mode:e,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",n)!==!1&&(s.controller._update(e),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(dt.has(this)?this.attached&&!dt.running(this)&&dt.start(this):(this.draw(),Ls({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:s,height:n}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(s,n)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,s=[];let n,o;for(n=0,o=e.length;n<o;++n){const r=e[n];(!t||r.visible)&&s.push(r)}return s}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,s=t._clip,n=!s.disabled,o=Ml(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(n&&Di(e,{left:s.left===!1?0:o.left-s.left,right:s.right===!1?this.width:o.right+s.right,top:s.top===!1?0:o.top-s.top,bottom:s.bottom===!1?this.height:o.bottom+s.bottom}),t.controller.draw(),n&&Ti(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return ue(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,s,n){const o=ya.modes[e];return typeof o=="function"?o(this,t,s,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],s=this._metasets;let n=s.filter(o=>o&&o._dataset===e).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},s.push(n)),n}getContext(){return this.$context||(this.$context=It(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!e.hidden}setDatasetVisibility(t,e){const s=this.getDatasetMeta(t);s.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,s){const n=s?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,n);de(e)?(o.data[e].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),r.update(o,{visible:s}),this.update(a=>a.datasetIndex===t?n:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),dt.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),ts(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Be[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,e=this.platform,s=(o,r)=>{e.addEventListener(this,o,r),t[o]=r},n=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};L(this.options.events,o=>s(o,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,s=(l,c)=>{e.addEventListener(this,l,c),t[l]=c},n=(l,c)=>{t[l]&&(e.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{n("attach",a),this.attached=!0,this.resize(),s("resize",o),s("detach",r)};r=()=>{this.attached=!1,n("resize",o),this._stop(),this._resize(0,0),s("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){L(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},L(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,s){const n=s?"set":"remove";let o,r,a,l;for(e==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+n+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){r=t[a];const c=r&&this.getDatasetMeta(r.datasetIndex).controller;c&&c[n+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],s=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}});!Ne(s,e)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,e))}notifyPlugins(t,e,s){return this._plugins.notify(this,t,e,s)}isPluginEnabled(t){return this._plugins._cache.filter(e=>e.plugin.id===t).length===1}_updateHoverStyles(t,e,s){const n=this.options.hover,o=(l,c)=>l.filter(h=>!c.some(d=>h.datasetIndex===d.datasetIndex&&h.index===d.index)),r=o(e,t),a=s?t:o(t,e);r.length&&this.updateHoverStyle(r,n.mode,!1),a.length&&n.mode&&this.updateHoverStyle(a,n.mode,!0)}_eventHandler(t,e){const s={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,n)===!1)return;const o=this._handleEvent(t,e,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,n),(o||s.changed)&&this.render(),this}_handleEvent(t,e,s){const{_active:n=[],options:o}=this,r=e,a=this._getActiveElements(t,n,s,r),l=Ao(t),c=wl(t,this._lastEvent,s,l);s&&(this._lastEvent=null,E(o.onHover,[t,a,this],this),l&&E(o.onClick,[t,a,this],this));const h=!Ne(a,n);return(h||e)&&(this._active=a,this._updateHoverStyles(a,n,e)),this._lastEvent=c,h}_getActiveElements(t,e,s,n){if(t.type==="mouseout")return[];if(!s)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,n)}}S(At,"defaults",B),S(At,"instances",Be),S(At,"overrides",Lt),S(At,"registry",at),S(At,"version",xl),S(At,"getChart",Is);function Es(){return L(At.instances,i=>i._plugins.invalidate())}function Sl(i,t,e){const{startAngle:s,pixelMargin:n,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=n/a;i.beginPath(),i.arc(o,r,a,s-c,e+c),l>n?(c=n/l,i.arc(o,r,l,e+c,s-c,!0)):i.arc(o,r,n,e+V,s-V),i.closePath(),i.clip()}function Pl(i){return Ri(i,["outerStart","outerEnd","innerStart","innerEnd"])}function Cl(i,t,e,s){const n=Pl(i.options.borderRadius),o=(e-t)/2,r=Math.min(o,s*t/2),a=l=>{const c=(e-Math.min(o,l))*s/2;return K(l,0,Math.min(o,c))};return{outerStart:a(n.outerStart),outerEnd:a(n.outerEnd),innerStart:K(n.innerStart,0,r),innerEnd:K(n.innerEnd,0,r)}}function Bt(i,t,e,s){return{x:e+i*Math.cos(t),y:s+i*Math.sin(t)}}function Xe(i,t,e,s,n,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=t,d=Math.max(t.outerRadius+s+e-c,0),f=h>0?h+s+e+c:0;let u=0;const p=n-l;if(s){const I=h>0?h-s:0,F=d>0?d-s:0,H=(I+F)/2,st=H!==0?p*H/(H+s):p;u=(p-st)/2}const g=Math.max(.001,p*d-e/N)/d,m=(p-g)/2,b=l+m+u,_=n-m-u,{outerStart:y,outerEnd:v,innerStart:x,innerEnd:w}=Cl(t,f,d,_-b),M=d-y,k=d-v,P=b+y/M,O=_-v/k,C=f+x,D=f+w,j=b+x/C,J=_-w/D;if(i.beginPath(),o){const I=(P+O)/2;if(i.arc(r,a,d,P,I),i.arc(r,a,d,I,O),v>0){const U=Bt(k,O,r,a);i.arc(U.x,U.y,v,O,_+V)}const F=Bt(D,_,r,a);if(i.lineTo(F.x,F.y),w>0){const U=Bt(D,J,r,a);i.arc(U.x,U.y,w,_+V,J+Math.PI)}const H=(_-w/f+(b+x/f))/2;if(i.arc(r,a,f,_-w/f,H,!0),i.arc(r,a,f,H,b+x/f,!0),x>0){const U=Bt(C,j,r,a);i.arc(U.x,U.y,x,j+Math.PI,b-V)}const st=Bt(M,b,r,a);if(i.lineTo(st.x,st.y),y>0){const U=Bt(M,P,r,a);i.arc(U.x,U.y,y,b-V,P)}}else{i.moveTo(r,a);const I=Math.cos(P)*d+r,F=Math.sin(P)*d+a;i.lineTo(I,F);const H=Math.cos(O)*d+r,st=Math.sin(O)*d+a;i.lineTo(H,st)}i.closePath()}function Ol(i,t,e,s,n){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){Xe(i,t,e,s,l,n);for(let c=0;c<o;++c)i.fill();isNaN(a)||(l=r+(a%Y||Y))}return Xe(i,t,e,s,l,n),i.fill(),l}function Al(i,t,e,s,n){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;i.setLineDash(d||[]),i.lineDashOffset=f,u?(i.lineWidth=c*2,i.lineJoin=h||"round"):(i.lineWidth=c,i.lineJoin=h||"bevel");let p=t.endAngle;if(o){Xe(i,t,e,s,p,n);for(let g=0;g<o;++g)i.stroke();isNaN(a)||(p=r+(a%Y||Y))}u&&Sl(i,t,p),o||(Xe(i,t,e,s,p,n),i.stroke())}class ie extends nt{constructor(e){super();S(this,"circumference");S(this,"endAngle");S(this,"fullCircles");S(this,"innerRadius");S(this,"outerRadius");S(this,"pixelMargin");S(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,e&&Object.assign(this,e)}inRange(e,s,n){const o=this.getProps(["x","y"],n),{angle:r,distance:a}=ln(o,{x:e,y:s}),{startAngle:l,endAngle:c,innerRadius:h,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),u=(this.options.spacing+this.options.borderWidth)/2,p=A(f,c-l),g=Pi(r,l,c)&&l!==c,m=p>=Y||g,b=bt(a,h+u,d+u);return m&&b}getCenterPoint(e){const{x:s,y:n,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:c,spacing:h}=this.options,d=(o+r)/2,f=(a+l+h+c)/2;return{x:s+Math.cos(d)*f,y:n+Math.sin(d)*f}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:s,circumference:n}=this,o=(s.offset||0)/4,r=(s.spacing||0)/2,a=s.circular;if(this.pixelMargin=s.borderAlign==="inner"?.33:0,this.fullCircles=n>Y?Math.floor(n/Y):0,n===0||this.innerRadius<0||this.outerRadius<0)return;e.save();const l=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(N,n||0)),h=o*c;e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,Ol(e,this,h,r,a),Al(e,this,h,r,a),e.restore()}}S(ie,"id","arc"),S(ie,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),S(ie,"defaultRoutes",{backgroundColor:"backgroundColor"}),S(ie,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"});function Bn(i,t,e=t){i.lineCap=A(e.borderCapStyle,t.borderCapStyle),i.setLineDash(A(e.borderDash,t.borderDash)),i.lineDashOffset=A(e.borderDashOffset,t.borderDashOffset),i.lineJoin=A(e.borderJoinStyle,t.borderJoinStyle),i.lineWidth=A(e.borderWidth,t.borderWidth),i.strokeStyle=A(e.borderColor,t.borderColor)}function Dl(i,t,e){i.lineTo(e.x,e.y)}function Tl(i){return i.stepped?tr:i.tension||i.cubicInterpolationMode==="monotone"?er:Dl}function Hn(i,t,e={}){const s=i.length,{start:n=0,end:o=s-1}=e,{start:r,end:a}=t,l=Math.max(n,r),c=Math.min(o,a),h=n<r&&o<r||n>a&&o>a;return{count:s,start:l,loop:t.loop,ilen:c<l&&!h?s+c-l:c-l}}function Rl(i,t,e,s){const{points:n,options:o}=t,{count:r,start:a,loop:l,ilen:c}=Hn(n,e,s),h=Tl(o);let{move:d=!0,reverse:f}=s||{},u,p,g;for(u=0;u<=c;++u)p=n[(a+(f?c-u:u))%r],!p.skip&&(d?(i.moveTo(p.x,p.y),d=!1):h(i,g,p,f,o.stepped),g=p);return l&&(p=n[(a+(f?c:0))%r],h(i,g,p,f,o.stepped)),!!l}function Ll(i,t,e,s){const n=t.points,{count:o,start:r,ilen:a}=Hn(n,e,s),{move:l=!0,reverse:c}=s||{};let h=0,d=0,f,u,p,g,m,b;const _=v=>(r+(c?a-v:v))%o,y=()=>{g!==m&&(i.lineTo(h,m),i.lineTo(h,g),i.lineTo(h,b))};for(l&&(u=n[_(0)],i.moveTo(u.x,u.y)),f=0;f<=a;++f){if(u=n[_(f)],u.skip)continue;const v=u.x,x=u.y,w=v|0;w===p?(x<g?g=x:x>m&&(m=x),h=(d*h+v)/++d):(y(),i.lineTo(v,x),p=w,d=0,g=m=x),b=x}y()}function xi(i){const t=i.options,e=t.borderDash&&t.borderDash.length;return!i._decimated&&!i._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!e?Ll:Rl}function Il(i){return i.stepped?Lr:i.tension||i.cubicInterpolationMode==="monotone"?Ir:Ot}function El(i,t,e,s){let n=t._path;n||(n=t._path=new Path2D,t.path(n,e,s)&&n.closePath()),Bn(i,t.options),i.stroke(n)}function Fl(i,t,e,s){const{segments:n,options:o}=t,r=xi(t);for(const a of n)Bn(i,o,a.style),i.beginPath(),r(i,t,a,{start:e,end:e+s-1})&&i.closePath(),i.stroke()}const zl=typeof Path2D=="function";function Bl(i,t,e,s){zl&&!t.options.segment?El(i,t,e,s):Fl(i,t,e,s)}class De extends nt{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,e){const s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){const n=s.spanGaps?this._loop:this._fullLoop;Sr(this._points,s,t,n,e),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=jr(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,s=t.length;return s&&e[t[s-1].end]}interpolate(t,e){const s=this.options,n=t[e],o=this.points,r=Hr(this,{property:e,start:n,end:n});if(!r.length)return;const a=[],l=Il(s);let c,h;for(c=0,h=r.length;c<h;++c){const{start:d,end:f}=r[c],u=o[d],p=o[f];if(u===p){a.push(u);continue}const g=Math.abs((n-u[e])/(p[e]-u[e])),m=l(u,p,g,s.stepped);m[e]=t[e],a.push(m)}return a.length===1?a[0]:a}pathSegment(t,e,s){return xi(this)(t,this,e,s)}path(t,e,s){const n=this.segments,o=xi(this);let r=this._loop;e=e||0,s=s||this.points.length-e;for(const a of n)r&=o(t,this,a,{start:e,end:e+s-1});return!!r}draw(t,e,s,n){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Bl(t,this,s,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}S(De,"id","line"),S(De,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),S(De,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),S(De,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Fs(i,t,e,s){const n=i.options,{[e]:o}=i.getProps([e],s);return Math.abs(t-o)<n.radius+n.hitRadius}class He extends nt{constructor(e){super();S(this,"parsed");S(this,"skip");S(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,s,n){const o=this.options,{x:r,y:a}=this.getProps(["x","y"],n);return Math.pow(e-r,2)+Math.pow(s-a,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(e,s){return Fs(this,e,"x",s)}inYRange(e,s){return Fs(this,e,"y",s)}getCenterPoint(e){const{x:s,y:n}=this.getProps(["x","y"],e);return{x:s,y:n}}size(e){e=e||this.options||{};let s=e.radius||0;s=Math.max(s,s&&e.hoverRadius||0);const n=s&&e.borderWidth||0;return(s+n)*2}draw(e,s){const n=this.options;this.skip||n.radius<.1||!ue(this,s,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,mi(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}S(He,"id","point"),S(He,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),S(He,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Wn(i,t){const{x:e,y:s,base:n,width:o,height:r}=i.getProps(["x","y","base","width","height"],t);let a,l,c,h,d;return i.horizontal?(d=r/2,a=Math.min(e,n),l=Math.max(e,n),c=s-d,h=s+d):(d=o/2,a=e-d,l=e+d,c=Math.min(s,n),h=Math.max(s,n)),{left:a,top:c,right:l,bottom:h}}function _t(i,t,e,s){return i?0:K(t,e,s)}function Hl(i,t,e){const s=i.options.borderWidth,n=i.borderSkipped,o=bn(s);return{t:_t(n.top,o.top,0,e),r:_t(n.right,o.right,0,t),b:_t(n.bottom,o.bottom,0,e),l:_t(n.left,o.left,0,t)}}function Wl(i,t,e){const{enableBorderRadius:s}=i.getProps(["enableBorderRadius"]),n=i.options.borderRadius,o=Ht(n),r=Math.min(t,e),a=i.borderSkipped,l=s||T(n);return{topLeft:_t(!l||a.top||a.left,o.topLeft,0,r),topRight:_t(!l||a.top||a.right,o.topRight,0,r),bottomLeft:_t(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:_t(!l||a.bottom||a.right,o.bottomRight,0,r)}}function Nl(i){const t=Wn(i),e=t.right-t.left,s=t.bottom-t.top,n=Hl(i,e/2,s/2),o=Wl(i,e/2,s/2);return{outer:{x:t.left,y:t.top,w:e,h:s,radius:o},inner:{x:t.left+n.l,y:t.top+n.t,w:e-n.l-n.r,h:s-n.t-n.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,o.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(n.b,n.r))}}}}function ci(i,t,e,s){const n=t===null,o=e===null,a=i&&!(n&&o)&&Wn(i,s);return a&&(n||bt(t,a.left,a.right))&&(o||bt(e,a.top,a.bottom))}function jl(i){return i.topLeft||i.topRight||i.bottomLeft||i.bottomRight}function Vl(i,t){i.rect(t.x,t.y,t.w,t.h)}function hi(i,t,e={}){const s=i.x!==e.x?-t:0,n=i.y!==e.y?-t:0,o=(i.x+i.w!==e.x+e.w?t:0)-s,r=(i.y+i.h!==e.y+e.h?t:0)-n;return{x:i.x+s,y:i.y+n,w:i.w+o,h:i.h+r,radius:i.radius}}class We extends nt{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:e,options:{borderColor:s,backgroundColor:n}}=this,{inner:o,outer:r}=Nl(this),a=jl(r.radius)?$e:Vl;t.save(),(r.w!==o.w||r.h!==o.h)&&(t.beginPath(),a(t,hi(r,e,o)),t.clip(),a(t,hi(o,-e,r)),t.fillStyle=s,t.fill("evenodd")),t.beginPath(),a(t,hi(o,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,s){return ci(this,t,e,s)}inXRange(t,e){return ci(this,t,null,e)}inYRange(t,e){return ci(this,null,t,e)}getCenterPoint(t){const{x:e,y:s,base:n,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+n)/2:e,y:o?s:(s+n)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}S(We,"id","bar"),S(We,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),S(We,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const zs=(i,t)=>{let{boxHeight:e=t,boxWidth:s=t}=i;return i.usePointStyle&&(e=Math.min(e,t),s=i.pointStyleWidth||Math.min(s,t)),{boxWidth:s,boxHeight:e,itemHeight:Math.max(t,e)}},$l=(i,t)=>i!==null&&t!==null&&i.datasetIndex===t.datasetIndex&&i.index===t.index;class Bs extends nt{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,e,s){this.maxWidth=t,this.maxHeight=e,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 e=E(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(s=>t.filter(s,this.chart.data))),t.sort&&(e=e.sort((s,n)=>t.sort(s,n,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display){this.width=this.height=0;return}const s=t.labels,n=$(s.font),o=n.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=zs(s,o);let c,h;e.font=n.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(r,o,a,l)+10):(h=this.maxHeight,c=this._fitCols(r,n,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,s,n){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=n+a;let d=t;o.textAlign="left",o.textBaseline="middle";let f=-1,u=-h;return this.legendItems.forEach((p,g)=>{const m=s+e/2+o.measureText(p.text).width;(g===0||c[c.length-1]+m+2*a>r)&&(d+=h,c[c.length-(g>0?0:1)]=0,u+=h,f++),l[g]={left:0,top:u,row:f,width:m,height:n},c[c.length-1]+=m+a}),d}_fitCols(t,e,s,n){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,p=0,g=0;return this.legendItems.forEach((m,b)=>{const{itemWidth:_,itemHeight:y}=Yl(s,e,o,m,n);b>0&&u+y+2*a>h&&(d+=f+a,c.push({width:f,height:u}),p+=f+a,g++,f=u=0),l[b]={left:p,top:u,col:g,width:_,height:y},f=Math.max(f,_),u+=y+a}),d+=f,c.push({width:f,height:u}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:s,labels:{padding:n},rtl:o}}=this,r=Wt(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=X(s,this.left+n,this.right-this.lineWidths[a]);for(const c of e)a!==c.row&&(a=c.row,l=X(s,this.left+n,this.right-this.lineWidths[a])),c.top+=this.top+t+n,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+n}else{let a=0,l=X(s,this.top+t+n,this.bottom-this.columnSizes[a].height);for(const c of e)c.col!==a&&(a=c.col,l=X(s,this.top+t+n,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+n,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Di(t,this),this._draw(),Ti(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:s,ctx:n}=this,{align:o,labels:r}=t,a=B.color,l=Wt(t.rtl,this.left,this.width),c=$(r.font),{padding:h}=r,d=c.size,f=d/2;let u;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;const{boxWidth:p,boxHeight:g,itemHeight:m}=zs(r,d),b=function(w,M,k){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;n.save();const P=A(k.lineWidth,1);if(n.fillStyle=A(k.fillStyle,a),n.lineCap=A(k.lineCap,"butt"),n.lineDashOffset=A(k.lineDashOffset,0),n.lineJoin=A(k.lineJoin,"miter"),n.lineWidth=P,n.strokeStyle=A(k.strokeStyle,a),n.setLineDash(A(k.lineDash,[])),r.usePointStyle){const O={radius:g*Math.SQRT2/2,pointStyle:k.pointStyle,rotation:k.rotation,borderWidth:P},C=l.xPlus(w,p/2),D=M+f;mn(n,O,C,D,r.pointStyleWidth&&p)}else{const O=M+Math.max((d-g)/2,0),C=l.leftForLtr(w,p),D=Ht(k.borderRadius);n.beginPath(),Object.values(D).some(j=>j!==0)?$e(n,{x:C,y:O,w:p,h:g,radius:D}):n.rect(C,O,p,g),n.fill(),P!==0&&n.stroke()}n.restore()},_=function(w,M,k){ge(n,k.text,w,M+m/2,c,{strikethrough:k.hidden,textAlign:l.textAlign(k.textAlign)})},y=this.isHorizontal(),v=this._computeTitleHeight();y?u={x:X(o,this.left+h,this.right-s[0]),y:this.top+h+v,line:0}:u={x:this.left+h,y:X(o,this.top+v+h,this.bottom-e[0].height),line:0},wn(this.ctx,t.textDirection);const x=m+h;this.legendItems.forEach((w,M)=>{n.strokeStyle=w.fontColor,n.fillStyle=w.fontColor;const k=n.measureText(w.text).width,P=l.textAlign(w.textAlign||(w.textAlign=r.textAlign)),O=p+f+k;let C=u.x,D=u.y;l.setWidth(this.width),y?M>0&&C+O+h>this.right&&(D=u.y+=x,u.line++,C=u.x=X(o,this.left+h,this.right-s[u.line])):M>0&&D+x>this.bottom&&(C=u.x=C+e[u.line].width+h,u.line++,D=u.y=X(o,this.top+v+h,this.bottom-e[u.line].height));const j=l.x(C);if(b(j,D,w),C=jo(P,C+p+f,y?C+O:this.right,t.rtl),_(l.x(C),D,w),y)u.x+=O+h;else if(typeof w.text!="string"){const J=c.lineHeight;u.y+=Nn(w,J)+h}else u.y+=x}),Mn(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,s=$(e.font),n=Q(e.padding);if(!e.display)return;const o=Wt(t.rtl,this.left,this.width),r=this.ctx,a=e.position,l=s.size/2,c=n.top+l;let h,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),h=this.top+c,d=X(t.align,d,this.right-f);else{const p=this.columnSizes.reduce((g,m)=>Math.max(g,m.height),0);h=c+X(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const u=X(a,d,d+f);r.textAlign=o.textAlign(Oi(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=s.string,ge(r,e.text,u,h,s)}_computeTitleHeight(){const t=this.options.title,e=$(t.font),s=Q(t.padding);return t.display?e.lineHeight+s.height:0}_getLegendItemAt(t,e){let s,n,o;if(bt(t,this.left,this.right)&&bt(e,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;s<o.length;++s)if(n=o[s],bt(t,n.left,n.left+n.width)&&bt(e,n.top,n.top+n.height))return this.legendItems[s]}return null}handleEvent(t){const e=this.options;if(!Kl(t.type,e))return;const s=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const n=this._hoveredItem,o=$l(n,s);n&&!o&&E(e.onLeave,[t,n,this],this),this._hoveredItem=s,s&&!o&&E(e.onHover,[t,s,this],this)}else s&&E(e.onClick,[t,s,this],this)}}function Yl(i,t,e,s,n){const o=Ul(s,i,t,e),r=Xl(n,s,t.lineHeight);return{itemWidth:o,itemHeight:r}}function Ul(i,t,e,s){let n=i.text;return n&&typeof n!="string"&&(n=n.reduce((o,r)=>o.length>r.length?o:r)),t+e.size/2+s.measureText(n).width}function Xl(i,t,e){let s=i;return typeof t.text!="string"&&(s=Nn(t,e)),s}function Nn(i,t){const e=i.text?i.text.length:0;return t*e}function Kl(i,t){return!!((i==="mousemove"||i==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(i==="click"||i==="mouseup"))}var Lc={id:"legend",_element:Bs,start(i,t,e){const s=i.legend=new Bs({ctx:i.ctx,options:e,chart:i});et.configure(i,s,e),et.addBox(i,s)},stop(i){et.removeBox(i,i.legend),delete i.legend},beforeUpdate(i,t,e){const s=i.legend;et.configure(i,s,e),s.options=e},afterUpdate(i){const t=i.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(i,t){t.replay||i.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(i,t,e){const s=t.datasetIndex,n=e.chart;n.isDatasetVisible(s)?(n.hide(s),t.hidden=!0):(n.show(s),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:i=>i.chart.options.color,boxWidth:40,padding:10,generateLabels(i){const t=i.data.datasets,{labels:{usePointStyle:e,pointStyle:s,textAlign:n,color:o,useBorderRadius:r,borderRadius:a}}=i.legend.options;return i._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(e?0:void 0),h=Q(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:s||c.pointStyle,rotation:c.rotation,textAlign:n||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:i=>i.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:i=>!i.startsWith("on"),labels:{_scriptable:i=>!["generateLabels","filter","sort"].includes(i)}}};class jn extends nt{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,e){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=e;const n=W(s.text)?s.text.length:1;this._padding=Q(s.padding);const o=n*$(s.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:e,left:s,bottom:n,right:o,options:r}=this,a=r.align;let l=0,c,h,d;return this.isHorizontal()?(h=X(a,s,o),d=e+t,c=o-s):(r.position==="left"?(h=s+t,d=X(a,n,e),l=N*-.5):(h=o-t,d=X(a,e,n),l=N*.5),c=n-e),{titleX:h,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const s=$(e.font),o=s.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);ge(t,e.text,0,0,s,{color:e.color,maxWidth:l,rotation:c,textAlign:Oi(e.align),textBaseline:"middle",translation:[r,a]})}}function ql(i,t){const e=new jn({ctx:i.ctx,options:t,chart:i});et.configure(i,e,t),et.addBox(i,e),i.titleBlock=e}var Ic={id:"title",_element:jn,start(i,t,e){ql(i,e)},stop(i){const t=i.titleBlock;et.removeBox(i,t),delete i.titleBlock},beforeUpdate(i,t,e){const s=i.titleBlock;et.configure(i,s,e),s.options=e},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 se={average(i){if(!i.length)return!1;let t,e,s=new Set,n=0,o=0;for(t=0,e=i.length;t<e;++t){const a=i[t].element;if(a&&a.hasValue()){const l=a.tooltipPosition();s.add(l.x),n+=l.y,++o}}return o===0||s.size===0?!1:{x:[...s].reduce((a,l)=>a+l)/s.size,y:n/o}},nearest(i,t){if(!i.length)return!1;let e=t.x,s=t.y,n=Number.POSITIVE_INFINITY,o,r,a;for(o=0,r=i.length;o<r;++o){const l=i[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),h=gi(t,c);h<n&&(n=h,a=l)}}if(a){const l=a.tooltipPosition();e=l.x,s=l.y}return{x:e,y:s}}};function rt(i,t){return t&&(W(t)?Array.prototype.push.apply(i,t):i.push(t)),i}function ft(i){return(typeof i=="string"||i instanceof String)&&i.indexOf(`
-`)>-1?i.split(`
-`):i}function Gl(i,t){const{element:e,datasetIndex:s,index:n}=t,o=i.getDatasetMeta(s).controller,{label:r,value:a}=o.getLabelAndValue(n);return{chart:i,label:r,parsed:o.getParsed(n),raw:i.data.datasets[s].data[n],formattedValue:a,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:e}}function Hs(i,t){const e=i.chart.ctx,{body:s,footer:n,title:o}=i,{boxWidth:r,boxHeight:a}=t,l=$(t.bodyFont),c=$(t.titleFont),h=$(t.footerFont),d=o.length,f=n.length,u=s.length,p=Q(t.padding);let g=p.height,m=0,b=s.reduce((v,x)=>v+x.before.length+x.lines.length+x.after.length,0);if(b+=i.beforeBody.length+i.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),b){const v=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=u*v+(b-u)*l.lineHeight+(b-1)*t.bodySpacing}f&&(g+=t.footerMarginTop+f*h.lineHeight+(f-1)*t.footerSpacing);let _=0;const y=function(v){m=Math.max(m,e.measureText(v).width+_)};return e.save(),e.font=c.string,L(i.title,y),e.font=l.string,L(i.beforeBody.concat(i.afterBody),y),_=t.displayColors?r+2+t.boxPadding:0,L(s,v=>{L(v.before,y),L(v.lines,y),L(v.after,y)}),_=0,e.font=h.string,L(i.footer,y),e.restore(),m+=p.width,{width:m,height:g}}function Zl(i,t){const{y:e,height:s}=t;return e<s/2?"top":e>i.height-s/2?"bottom":"center"}function Jl(i,t,e,s){const{x:n,width:o}=s,r=e.caretSize+e.caretPadding;if(i==="left"&&n+o+r>t.width||i==="right"&&n-o-r<0)return!0}function Ql(i,t,e,s){const{x:n,width:o}=e,{width:r,chartArea:{left:a,right:l}}=i;let c="center";return s==="center"?c=n<=(a+l)/2?"left":"right":n<=o/2?c="left":n>=r-o/2&&(c="right"),Jl(c,i,t,e)&&(c="center"),c}function Ws(i,t,e){const s=e.yAlign||t.yAlign||Zl(i,e);return{xAlign:e.xAlign||t.xAlign||Ql(i,t,e,s),yAlign:s}}function tc(i,t){let{x:e,width:s}=i;return t==="right"?e-=s:t==="center"&&(e-=s/2),e}function ec(i,t,e){let{y:s,height:n}=i;return t==="top"?s+=e:t==="bottom"?s-=n+e:s-=n/2,s}function Ns(i,t,e,s){const{caretSize:n,caretPadding:o,cornerRadius:r}=i,{xAlign:a,yAlign:l}=e,c=n+o,{topLeft:h,topRight:d,bottomLeft:f,bottomRight:u}=Ht(r);let p=tc(t,a);const g=ec(t,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(h,f)+n:a==="right"&&(p+=Math.max(d,u)+n),{x:K(p,0,s.width-t.width),y:K(g,0,s.height-t.height)}}function Te(i,t,e){const s=Q(e.padding);return t==="center"?i.x+i.width/2:t==="right"?i.x+i.width-s.right:i.x+s.left}function js(i){return rt([],ft(i))}function ic(i,t,e){return It(i,{tooltip:t,tooltipItems:e,type:"tooltip"})}function Vs(i,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?i.override(e):i}const Vn={beforeTitle:ht,title(i){if(i.length>0){const t=i[0],e=t.chart.data.labels,s=e?e.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 e[t.dataIndex]}return""},afterTitle:ht,beforeBody:ht,beforeLabel:ht,label(i){if(this&&this.options&&this.options.mode==="dataset")return i.label+": "+i.formattedValue||i.formattedValue;let t=i.dataset.label||"";t&&(t+=": ");const e=i.formattedValue;return R(e)||(t+=e),t},labelColor(i){const e=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(i){const e=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:ht,afterBody:ht,beforeFooter:ht,footer:ht,afterFooter:ht};function q(i,t,e,s){const n=i[t].call(e,s);return typeof n>"u"?Vn[t].call(e,s):n}class yi extends nt{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 e=this.chart,s=this.options.setContext(this.getContext()),n=s.enabled&&e.options.animation&&s.animations,o=new Pn(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=ic(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:s}=e,n=q(s,"beforeTitle",this,t),o=q(s,"title",this,t),r=q(s,"afterTitle",this,t);let a=[];return a=rt(a,ft(n)),a=rt(a,ft(o)),a=rt(a,ft(r)),a}getBeforeBody(t,e){return js(q(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:s}=e,n=[];return L(t,o=>{const r={before:[],lines:[],after:[]},a=Vs(s,o);rt(r.before,ft(q(a,"beforeLabel",this,o))),rt(r.lines,q(a,"label",this,o)),rt(r.after,ft(q(a,"afterLabel",this,o))),n.push(r)}),n}getAfterBody(t,e){return js(q(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:s}=e,n=q(s,"beforeFooter",this,t),o=q(s,"footer",this,t),r=q(s,"afterFooter",this,t);let a=[];return a=rt(a,ft(n)),a=rt(a,ft(o)),a=rt(a,ft(r)),a}_createItems(t){const e=this._active,s=this.chart.data,n=[],o=[],r=[];let a=[],l,c;for(l=0,c=e.length;l<c;++l)a.push(Gl(this.chart,e[l]));return t.filter&&(a=a.filter((h,d,f)=>t.filter(h,d,f,s))),t.itemSort&&(a=a.sort((h,d)=>t.itemSort(h,d,s))),L(a,h=>{const d=Vs(t.callbacks,h);n.push(q(d,"labelColor",this,h)),o.push(q(d,"labelPointStyle",this,h)),r.push(q(d,"labelTextColor",this,h))}),this.labelColors=n,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,e){const s=this.options.setContext(this.getContext()),n=this._active;let o,r=[];if(!n.length)this.opacity!==0&&(o={opacity:0});else{const a=se[s.position].call(this,n,this._eventPosition);r=this._createItems(s),this.title=this.getTitle(r,s),this.beforeBody=this.getBeforeBody(r,s),this.body=this.getBody(r,s),this.afterBody=this.getAfterBody(r,s),this.footer=this.getFooter(r,s);const l=this._size=Hs(this,s),c=Object.assign({},a,l),h=Ws(this.chart,s,c),d=Ns(s,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&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,s,n){const o=this.getCaretPosition(t,s,n);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,s){const{xAlign:n,yAlign:o}=this,{caretSize:r,cornerRadius:a}=s,{topLeft:l,topRight:c,bottomLeft:h,bottomRight:d}=Ht(a),{x:f,y:u}=t,{width:p,height:g}=e;let m,b,_,y,v,x;return o==="center"?(v=u+g/2,n==="left"?(m=f,b=m-r,y=v+r,x=v-r):(m=f+p,b=m+r,y=v-r,x=v+r),_=m):(n==="left"?b=f+Math.max(l,h)+r:n==="right"?b=f+p-Math.max(c,d)-r:b=this.caretX,o==="top"?(y=u,v=y-r,m=b-r,_=b+r):(y=u+g,v=y+r,m=b+r,_=b-r),x=y),{x1:m,x2:b,x3:_,y1:y,y2:v,y3:x}}drawTitle(t,e,s){const n=this.title,o=n.length;let r,a,l;if(o){const c=Wt(s.rtl,this.x,this.width);for(t.x=Te(this,s.titleAlign,s),e.textAlign=c.textAlign(s.titleAlign),e.textBaseline="middle",r=$(s.titleFont),a=s.titleSpacing,e.fillStyle=s.titleColor,e.font=r.string,l=0;l<o;++l)e.fillText(n[l],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,l+1===o&&(t.y+=s.titleMarginBottom-a)}}_drawColorBox(t,e,s,n,o){const r=this.labelColors[s],a=this.labelPointStyles[s],{boxHeight:l,boxWidth:c}=o,h=$(o.bodyFont),d=Te(this,"left",o),f=n.x(d),u=l<h.lineHeight?(h.lineHeight-l)/2:0,p=e.y+u;if(o.usePointStyle){const g={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},m=n.leftForLtr(f,c)+c/2,b=p+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,mi(t,g,m,b),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,mi(t,g,m,b)}else{t.lineWidth=T(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 g=n.leftForLtr(f,c),m=n.leftForLtr(n.xPlus(f,1),c-2),b=Ht(r.borderRadius);Object.values(b).some(_=>_!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,$e(t,{x:g,y:p,w:c,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),$e(t,{x:m,y:p+1,w:c-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(g,p,c,l),t.strokeRect(g,p,c,l),t.fillStyle=r.backgroundColor,t.fillRect(m,p+1,c-2,l-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,e,s){const{body:n}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:h}=s,d=$(s.bodyFont);let f=d.lineHeight,u=0;const p=Wt(s.rtl,this.x,this.width),g=function(k){e.fillText(k,p.x(t.x+u),t.y+f/2),t.y+=f+o},m=p.textAlign(r);let b,_,y,v,x,w,M;for(e.textAlign=r,e.textBaseline="middle",e.font=d.string,t.x=Te(this,m,s),e.fillStyle=s.bodyColor,L(this.beforeBody,g),u=a&&m!=="right"?r==="center"?c/2+h:c+2+h:0,v=0,w=n.length;v<w;++v){for(b=n[v],_=this.labelTextColors[v],e.fillStyle=_,L(b.before,g),y=b.lines,a&&y.length&&(this._drawColorBox(e,t,v,p,s),f=Math.max(d.lineHeight,l)),x=0,M=y.length;x<M;++x)g(y[x]),f=d.lineHeight;L(b.after,g)}u=0,f=d.lineHeight,L(this.afterBody,g),t.y-=o}drawFooter(t,e,s){const n=this.footer,o=n.length;let r,a;if(o){const l=Wt(s.rtl,this.x,this.width);for(t.x=Te(this,s.footerAlign,s),t.y+=s.footerMarginTop,e.textAlign=l.textAlign(s.footerAlign),e.textBaseline="middle",r=$(s.footerFont),e.fillStyle=s.footerColor,e.font=r.string,a=0;a<o;++a)e.fillText(n[a],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+s.footerSpacing}}drawBackground(t,e,s,n){const{xAlign:o,yAlign:r}=this,{x:a,y:l}=t,{width:c,height:h}=s,{topLeft:d,topRight:f,bottomLeft:u,bottomRight:p}=Ht(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(a+d,l),r==="top"&&this.drawCaret(t,e,s,n),e.lineTo(a+c-f,l),e.quadraticCurveTo(a+c,l,a+c,l+f),r==="center"&&o==="right"&&this.drawCaret(t,e,s,n),e.lineTo(a+c,l+h-p),e.quadraticCurveTo(a+c,l+h,a+c-p,l+h),r==="bottom"&&this.drawCaret(t,e,s,n),e.lineTo(a+u,l+h),e.quadraticCurveTo(a,l+h,a,l+h-u),r==="center"&&o==="left"&&this.drawCaret(t,e,s,n),e.lineTo(a,l+d),e.quadraticCurveTo(a,l,a+d,l),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,s=this.$animations,n=s&&s.x,o=s&&s.y;if(n||o){const r=se[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=Hs(this,t),l=Object.assign({},r,this._size),c=Ws(e,t,l),h=Ns(t,l,c,e);(n._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 e=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},o={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const r=Q(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=s,this.drawBackground(o,t,n,e),wn(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),Mn(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const s=this._active,n=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=!Ne(s,n),r=this._positionChanged(n,e);(o||r)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,s=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,s),a=this._positionChanged(r,t),l=e||!Ne(r,o)||a;return l&&(this._active=r,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,s,n){const o=this.options;if(t.type==="mouseout")return[];if(!n)return e.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,s);return o.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:s,caretY:n,options:o}=this,r=se[o.position].call(this,t,e);return r!==!1&&(s!==r.x||n!==r.y)}}S(yi,"positioners",se);var Ec={id:"tooltip",_element:yi,positioners:se,afterInit(i,t,e){e&&(i.tooltip=new yi({chart:i,options:e}))},beforeUpdate(i,t,e){i.tooltip&&i.tooltip.initialize(e)},reset(i,t,e){i.tooltip&&i.tooltip.initialize(e)},afterDraw(i){const t=i.tooltip;if(t&&t._willRender()){const e={tooltip:t};if(i.notifyPlugins("beforeTooltipDraw",{...e,cancelable:!0})===!1)return;t.draw(i.ctx),i.notifyPlugins("afterTooltipDraw",e)}},afterEvent(i,t){if(i.tooltip){const e=t.replay;i.tooltip.handleEvent(t.event,e,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:(i,t)=>t.bodyFont.size,boxWidth:(i,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:Vn},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:i=>i!=="filter"&&i!=="itemSort"&&i!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const sc=(i,t,e,s)=>(typeof t=="string"?(e=i.push(t)-1,s.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function nc(i,t,e,s){const n=i.indexOf(t);if(n===-1)return sc(i,t,e,s);const o=i.lastIndexOf(t);return n!==o?e:n}const oc=(i,t)=>i===null?null:K(Math.round(i),0,t);function $s(i){const t=this.getLabels();return i>=0&&i<t.length?t[i]:i}class Ys extends Yt{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const s=this.getLabels();for(const{index:n,label:o}of e)s[n]===o&&s.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(R(t))return null;const s=this.getLabels();return e=isFinite(e)&&s[e]===t?e:nc(s,t,A(e,t),this._addedLabels),oc(e,s.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:s,max:n}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(s=0),e||(n=this.getLabels().length-1)),this.min=s,this.max=n}buildTicks(){const t=this.min,e=this.max,s=this.options.offset,n=[];let o=this.getLabels();o=t===0&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(s?0:1),1),this._startValue=this.min-(s?.5:0);for(let r=t;r<=e;r++)n.push({value:r});return n}getLabelForValue(t){return $s.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 e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}S(Ys,"id","category"),S(Ys,"defaults",{ticks:{callback:$s}});function rc(i,t){const e=[],{bounds:n,step:o,min:r,max:a,precision:l,count:c,maxTicks:h,maxDigits:d,includeBounds:f}=i,u=o||1,p=h-1,{min:g,max:m}=t,b=!R(r),_=!R(a),y=!R(c),v=(m-g)/(d+1);let x=Ui((m-g)/p/u)*u,w,M,k,P;if(x<1e-14&&!b&&!_)return[{value:g},{value:m}];P=Math.ceil(m/x)-Math.floor(g/x),P>p&&(x=Ui(P*x/p/u)*u),R(l)||(w=Math.pow(10,l),x=Math.ceil(x*w)/w),n==="ticks"?(M=Math.floor(g/x)*x,k=Math.ceil(m/x)*x):(M=g,k=m),b&&_&&o&&Lo((a-r)/o,x/1e3)?(P=Math.round(Math.min((a-r)/x,h)),x=(a-r)/P,M=r,k=a):y?(M=b?r:M,k=_?a:k,P=c-1,x=(k-M)/P):(P=(k-M)/x,oe(P,Math.round(P),x/1e3)?P=Math.round(P):P=Math.ceil(P));const O=Math.max(Xi(x),Xi(M));w=Math.pow(10,R(l)?O:l),M=Math.round(M*w)/w,k=Math.round(k*w)/w;let C=0;for(b&&(f&&M!==r?(e.push({value:r}),M<r&&C++,oe(Math.round((M+C*x)*w)/w,r,Us(r,v,i))&&C++):M<r&&C++);C<P;++C){const D=Math.round((M+C*x)*w)/w;if(_&&D>a)break;e.push({value:D})}return _&&f&&k!==a?e.length&&oe(e[e.length-1].value,a,Us(a,v,i))?e[e.length-1].value=a:e.push({value:a}):(!_||k===a)&&e.push({value:k}),e}function Us(i,t,{horizontal:e,minRotation:s}){const n=Dt(s),o=(e?Math.sin(n):Math.cos(n))||.001,r=.75*t*(""+i).length;return Math.min(t/o,r)}class ac extends Yt{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,e){return R(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:s}=this.getUserBounds();let{min:n,max:o}=this;const r=l=>n=e?n:l,a=l=>o=s?o:l;if(t){const l=lt(n),c=lt(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(n===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(n-l)}this.min=n,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:e,stepSize:s}=t,n;return s?(n=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e=e||11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const n={maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,r=rc(n,o);return t.bounds==="ticks"&&Io(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 e=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const n=(s-e)/Math.max(t.length-1,1)/2;e-=n,s+=n}this._startValue=e,this._endValue=s,this._valueRange=s-e}getLabelForValue(t){return un(t,this.chart.options.locale,this.options.ticks.format)}}class Xs extends ac{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=it(t)?t:0,this.max=it(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,s=Dt(this.options.ticks.minRotation),n=(t?Math.sin(s):Math.cos(s))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/n))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}S(Xs,"id","linear"),S(Xs,"defaults",{ticks:{callback:pn.formatters.numeric}});const Ge={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}},Z=Object.keys(Ge);function Ks(i,t){return i-t}function qs(i,t){if(R(t))return null;const e=i._adapter,{parser:s,round:n,isoWeekday:o}=i._parseOpts;let r=t;return typeof s=="function"&&(r=s(r)),it(r)||(r=typeof s=="string"?e.parse(r,s):e.parse(r)),r===null?null:(n&&(r=n==="week"&&(fe(o)||o===!0)?e.startOf(r,"isoWeek",o):e.startOf(r,n)),+r)}function Gs(i,t,e,s){const n=Z.length;for(let o=Z.indexOf(i);o<n-1;++o){const r=Ge[Z[o]],a=r.steps?r.steps:Number.MAX_SAFE_INTEGER;if(r.common&&Math.ceil((e-t)/(a*r.size))<=s)return Z[o]}return Z[n-1]}function lc(i,t,e,s,n){for(let o=Z.length-1;o>=Z.indexOf(e);o--){const r=Z[o];if(Ge[r].common&&i._adapter.diff(n,s,r)>=t-1)return r}return Z[e?Z.indexOf(e):0]}function cc(i){for(let t=Z.indexOf(i)+1,e=Z.length;t<e;++t)if(Ge[Z[t]].common)return Z[t]}function Zs(i,t,e){if(!e)i[t]=!0;else if(e.length){const{lo:s,hi:n}=Ci(e,t),o=e[s]>=t?e[s]:e[n];i[o]=!0}}function hc(i,t,e,s){const n=i._adapter,o=+n.startOf(t[0].value,s),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+n.add(a,1,s))l=e[a],l>=0&&(t[l].major=!0);return t}function Js(i,t,e){const s=[],n={},o=t.length;let r,a;for(r=0;r<o;++r)a=t[r],n[a]=r,s.push({value:a,major:!1});return o===0||!e?s:hc(i,s,n,e)}class Ke extends Yt{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,e={}){const s=t.time||(t.time={}),n=this._adapter=new pa._date(t.adapters.date);n.init(e),ne(s.displayFormats,n.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return t===void 0?null:qs(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,s=t.time.unit||"day";let{min:n,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function l(c){!r&&!isNaN(c.min)&&(n=Math.min(n,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))),n=it(n)&&!isNaN(n)?n:+e.startOf(Date.now(),s),o=it(o)&&!isNaN(o)?o:+e.endOf(Date.now(),s)+1,this.min=Math.min(n,o-1),this.max=Math.max(n+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],s=t[t.length-1]),{min:e,max:s}}buildTicks(){const t=this.options,e=t.time,s=t.ticks,n=s.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const o=this.min,r=this.max,a=Ho(n,o,r);return this._unit=e.unit||(s.autoSkip?Gs(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):lc(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:cc(this._unit),this.initOffsets(n),t.reverse&&a.reverse(),Js(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let e=0,s=0,n,o;this.options.offset&&t.length&&(n=this.getDecimalForValue(t[0]),t.length===1?e=1-n:e=(this.getDecimalForValue(t[1])-n)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?s=o:s=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;e=K(e,0,r),s=K(s,0,r),this._offsets={start:e,end:s,factor:1/(e+1+s)}}_generate(){const t=this._adapter,e=this.min,s=this.max,n=this.options,o=n.time,r=o.unit||Gs(o.minUnit,e,s,this._getLabelCapacity(e)),a=A(n.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=fe(l)||l===!0,h={};let d=e,f,u;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":r),t.diff(s,e,r)>1e5*a)throw new Error(e+" and "+s+" are too far apart with stepSize of "+a+" "+r);const p=n.ticks.source==="data"&&this.getDataTimestamps();for(f=d,u=0;f<s;f=+t.add(f,a,r),u++)Zs(h,f,p);return(f===s||n.bounds==="ticks"||u===1)&&Zs(h,f,p),Object.keys(h).sort(Ks).map(g=>+g)}getLabelForValue(t){const e=this._adapter,s=this.options.time;return s.tooltipFormat?e.format(t,s.tooltipFormat):e.format(t,s.displayFormats.datetime)}format(t,e){const n=this.options.time.displayFormats,o=this._unit,r=e||n[o];return this._adapter.format(t,r)}_tickFormatFunction(t,e,s,n){const o=this.options,r=o.ticks.callback;if(r)return E(r,[t,e,s],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,h=l&&a[l],d=c&&a[c],f=s[e],u=c&&d&&f&&f.major;return this._adapter.format(t,n||(u?d:h))}generateTickLabels(t){let e,s,n;for(e=0,s=t.length;e<s;++e)n=t[e],n.label=this._tickFormatFunction(n.value,e,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,s=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+s)*e.factor)}getValueForPixel(t){const e=this._offsets,s=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+s*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,s=this.ctx.measureText(t).width,n=Dt(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(n),r=Math.sin(n),a=this._resolveTickFontOptions(0).size;return{w:s*o+a*r,h:s*r+a*o}}_getLabelCapacity(t){const e=this.options.time,s=e.displayFormats,n=s[e.unit]||s.millisecond,o=this._tickFormatFunction(t,0,Js(this,[t],this._majorUnit),n),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||[],e,s;if(t.length)return t;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(e=0,s=n.length;e<s;++e)t=t.concat(n[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let e,s;if(t.length)return t;const n=this.getLabels();for(e=0,s=n.length;e<s;++e)t.push(qs(this,n[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return hn(t.sort(Ks))}}S(Ke,"id","time"),S(Ke,"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 Re(i,t,e){let s=0,n=i.length-1,o,r,a,l;e?(t>=i[s].pos&&t<=i[n].pos&&({lo:s,hi:n}=Tt(i,"pos",t)),{pos:o,time:a}=i[s],{pos:r,time:l}=i[n]):(t>=i[s].time&&t<=i[n].time&&({lo:s,hi:n}=Tt(i,"time",t)),{time:o,pos:a}=i[s],{time:r,pos:l}=i[n]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class Qs extends Ke{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Re(e,this.min),this._tableRange=Re(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:s}=this,n=[],o=[];let r,a,l,c,h;for(r=0,a=t.length;r<a;++r)c=t[r],c>=e&&c<=s&&n.push(c);if(n.length<2)return[{time:e,pos:0},{time:s,pos:1}];for(r=0,a=n.length;r<a;++r)h=n[r+1],l=n[r-1],c=n[r],Math.round((h+l)/2)!==c&&o.push({time:c,pos:r/(a-1)});return o}_generate(){const t=this.min,e=this.max;let s=super.getDataTimestamps();return(!s.includes(t)||!s.length)&&s.splice(0,0,t),(!s.includes(e)||s.length===1)&&s.push(e),s.sort((n,o)=>n-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),s=this.getLabelTimestamps();return e.length&&s.length?t=this.normalize(e.concat(s)):t=e.length?e:s,t=this._cache.all=t,t}getDecimalForValue(t){return(Re(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,s=this.getDecimalForPixel(t)/e.factor-e.end;return Re(this._table,s*this._tableRange+this._minPos,!0)}}S(Qs,"id","timeseries"),S(Qs,"defaults",Ke.defaults);var Pt={},tn;function Fc(){if(tn)return Pt;tn=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.cartesianProductGenerator=Pt.cartesianProduct=void 0;function i(...s){if(!Array.isArray(s))throw new TypeError("Please, send an array.");const[n,o,...r]=s,a=e(n,o);return r.length?i(a,...r):a}Pt.cartesianProduct=i;function*t(...s){if(!Array.isArray(s))throw new TypeError("Please, send an array.");const[n,o,...r]=s,a=e(n,o);yield a,r.length&&(yield*t(a,...r))}Pt.cartesianProductGenerator=t;function e(s,n){const o=[];for(let r=0;r<s.length;r++){if(!n){o.push([s[r]]);continue}for(let a=0;a<n.length;a++)Array.isArray(s[r])?o.push([...s[r],n[a]]):o.push([s[r],n[a]])}return o}return Pt}/*!
- * 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 en=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var i=window.screen;if(i)return(i.deviceXDPI||1)/(i.logicalXDPI||1)}return 1}(),le={toTextLines:function(i){var t=[],e;for(i=[].concat(i);i.length;)e=i.pop(),typeof e=="string"?t.unshift.apply(t,e.split(`
-`)):Array.isArray(e)?i.push.apply(i,e):R(i)||t.unshift(""+e);return t},textSize:function(i,t,e){var s=[].concat(t),n=s.length,o=i.font,r=0,a;for(i.font=e.string,a=0;a<n;++a)r=Math.max(i.measureText(s[a]).width,r);return i.font=o,{height:n*e.lineHeight,width:r}},bound:function(i,t,e){return Math.max(i,Math.min(t,e))},arrayDiff:function(i,t){var e=i.slice(),s=[],n,o,r,a;for(n=0,r=t.length;n<r;++n)a=t[n],o=e.indexOf(a),o===-1?s.push([a,1]):e.splice(o,1);for(n=0,r=e.length;n<r;++n)s.push([e[n],-1]);return s},rasterize:function(i){return Math.round(i*en)/en}};function di(i,t){var e=t.x,s=t.y;if(e===null)return{x:0,y:-1};if(s===null)return{x:1,y:0};var n=i.x-e,o=i.y-s,r=Math.sqrt(n*n+o*o);return{x:r?n/r:0,y:r?o/r:-1}}function dc(i,t,e,s,n){switch(n){case"center":e=s=0;break;case"bottom":e=0,s=1;break;case"right":e=1,s=0;break;case"left":e=-1,s=0;break;case"top":e=0,s=-1;break;case"start":e=-e,s=-s;break;case"end":break;default:n*=Math.PI/180,e=Math.cos(n),s=Math.sin(n);break}return{x:i,y:t,vx:e,vy:s}}var fc=0,$n=1,Yn=2,Un=4,Xn=8;function Le(i,t,e){var s=fc;return i<e.left?s|=$n:i>e.right&&(s|=Yn),t<e.top?s|=Xn:t>e.bottom&&(s|=Un),s}function uc(i,t){for(var e=i.x0,s=i.y0,n=i.x1,o=i.y1,r=Le(e,s,t),a=Le(n,o,t),l,c,h;!(!(r|a)||r&a);)l=r||a,l&Xn?(c=e+(n-e)*(t.top-s)/(o-s),h=t.top):l&Un?(c=e+(n-e)*(t.bottom-s)/(o-s),h=t.bottom):l&Yn?(h=s+(o-s)*(t.right-e)/(n-e),c=t.right):l&$n&&(h=s+(o-s)*(t.left-e)/(n-e),c=t.left),l===r?(e=c,s=h,r=Le(e,s,t)):(n=c,o=h,a=Le(n,o,t));return{x0:e,x1:n,y0:s,y1:o}}function Ie(i,t){var e=t.anchor,s=i,n,o;return t.clamp&&(s=uc(s,t.area)),e==="start"?(n=s.x0,o=s.y0):e==="end"?(n=s.x1,o=s.y1):(n=(s.x0+s.x1)/2,o=(s.y0+s.y1)/2),dc(n,o,i.vx,i.vy,t.align)}var Ee={arc:function(i,t){var e=(i.startAngle+i.endAngle)/2,s=Math.cos(e),n=Math.sin(e),o=i.innerRadius,r=i.outerRadius;return Ie({x0:i.x+s*o,y0:i.y+n*o,x1:i.x+s*r,y1:i.y+n*r,vx:s,vy:n},t)},point:function(i,t){var e=di(i,t.origin),s=e.x*i.options.radius,n=e.y*i.options.radius;return Ie({x0:i.x-s,y0:i.y-n,x1:i.x+s,y1:i.y+n,vx:e.x,vy:e.y},t)},bar:function(i,t){var e=di(i,t.origin),s=i.x,n=i.y,o=0,r=0;return i.horizontal?(s=Math.min(i.x,i.base),o=Math.abs(i.base-i.x)):(n=Math.min(i.y,i.base),r=Math.abs(i.base-i.y)),Ie({x0:s,y0:n+r,x1:s+o,y1:n,vx:e.x,vy:e.y},t)},fallback:function(i,t){var e=di(i,t.origin);return Ie({x0:i.x,y0:i.y,x1:i.x+(i.width||0),y1:i.y+(i.height||0),vx:e.x,vy:e.y},t)}},gt=le.rasterize;function gc(i){var t=i.borderWidth||0,e=i.padding,s=i.size.height,n=i.size.width,o=-n/2,r=-s/2;return{frame:{x:o-e.left-t,y:r-e.top-t,w:n+e.width+t*2,h:s+e.height+t*2},text:{x:o,y:r,w:n,h:s}}}function pc(i,t){var e=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!e)return null;if(e.xCenter!==void 0&&e.yCenter!==void 0)return{x:e.xCenter,y:e.yCenter};var s=e.getBasePixel();return i.horizontal?{x:s,y:null}:{x:null,y:s}}function mc(i){return i instanceof ie?Ee.arc:i instanceof He?Ee.point:i instanceof We?Ee.bar:Ee.fallback}function bc(i,t,e,s,n,o){var r=Math.PI/2;if(o){var a=Math.min(o,n/2,s/2),l=t+a,c=e+a,h=t+s-a,d=e+n-a;i.moveTo(t,c),l<h&&c<d?(i.arc(l,c,a,-Math.PI,-r),i.arc(h,c,a,-r,0),i.arc(h,d,a,0,r),i.arc(l,d,a,r,Math.PI)):l<h?(i.moveTo(l,e),i.arc(h,c,a,-r,r),i.arc(l,c,a,r,Math.PI+r)):c<d?(i.arc(l,c,a,-Math.PI,0),i.arc(l,d,a,0,Math.PI)):i.arc(l,c,a,-Math.PI,Math.PI),i.closePath(),i.moveTo(t,e)}else i.rect(t,e,s,n)}function _c(i,t,e){var s=e.backgroundColor,n=e.borderColor,o=e.borderWidth;!s&&(!n||!o)||(i.beginPath(),bc(i,gt(t.x)+o/2,gt(t.y)+o/2,gt(t.w)-o,gt(t.h)-o,e.borderRadius),i.closePath(),s&&(i.fillStyle=s,i.fill()),n&&o&&(i.strokeStyle=n,i.lineWidth=o,i.lineJoin="miter",i.stroke()))}function xc(i,t,e){var s=e.lineHeight,n=i.w,o=i.x,r=i.y+s/2;return t==="center"?o+=n/2:(t==="end"||t==="right")&&(o+=n),{h:s,w:n,x:o,y:r}}function yc(i,t,e){var s=i.shadowBlur,n=e.stroked,o=gt(e.x),r=gt(e.y),a=gt(e.w);n&&i.strokeText(t,o,r,a),e.filled&&(s&&n&&(i.shadowBlur=0),i.fillText(t,o,r,a),s&&n&&(i.shadowBlur=s))}function vc(i,t,e,s){var n=s.textAlign,o=s.color,r=!!o,a=s.font,l=t.length,c=s.textStrokeColor,h=s.textStrokeWidth,d=c&&h,f;if(!(!l||!r&&!d))for(e=xc(e,n,a),i.font=a.string,i.textAlign=n,i.textBaseline="middle",i.shadowBlur=s.textShadowBlur,i.shadowColor=s.textShadowColor,r&&(i.fillStyle=o),d&&(i.lineJoin="round",i.lineWidth=h,i.strokeStyle=c),f=0,l=t.length;f<l;++f)yc(i,t[f],{stroked:d,filled:r,w:e.w,x:e.x,y:e.y+e.h*f})}var Kn=function(i,t,e,s){var n=this;n._config=i,n._index=s,n._model=null,n._rects=null,n._ctx=t,n._el=e};ct(Kn.prototype,{_modelize:function(i,t,e,s){var n=this,o=n._index,r=$(z([e.font,{}],s,o)),a=z([e.color,B.color],s,o);return{align:z([e.align,"center"],s,o),anchor:z([e.anchor,"center"],s,o),area:s.chart.chartArea,backgroundColor:z([e.backgroundColor,null],s,o),borderColor:z([e.borderColor,null],s,o),borderRadius:z([e.borderRadius,0],s,o),borderWidth:z([e.borderWidth,0],s,o),clamp:z([e.clamp,!1],s,o),clip:z([e.clip,!1],s,o),color:a,display:i,font:r,lines:t,offset:z([e.offset,4],s,o),opacity:z([e.opacity,1],s,o),origin:pc(n._el,s),padding:Q(z([e.padding,4],s,o)),positioner:mc(n._el),rotation:z([e.rotation,0],s,o)*(Math.PI/180),size:le.textSize(n._ctx,t,r),textAlign:z([e.textAlign,"start"],s,o),textShadowBlur:z([e.textShadowBlur,0],s,o),textShadowColor:z([e.textShadowColor,a],s,o),textStrokeColor:z([e.textStrokeColor,a],s,o),textStrokeWidth:z([e.textStrokeWidth,0],s,o)}},update:function(i){var t=this,e=null,s=null,n=t._index,o=t._config,r,a,l,c=z([o.display,!0],i,n);c&&(r=i.dataset.data[n],a=A(E(o.formatter,[r,i]),r),l=R(a)?[]:le.toTextLines(a),l.length&&(e=t._modelize(c,l,o,i),s=gc(e))),t._model=e,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(i,t){var e=this,s=i.ctx,n=e._model,o=e._rects,r;this.visible()&&(s.save(),n.clip&&(r=n.area,s.beginPath(),s.rect(r.left,r.top,r.right-r.left,r.bottom-r.top),s.clip()),s.globalAlpha=le.bound(0,n.opacity,1),s.translate(gt(t.x),gt(t.y)),s.rotate(n.rotation),_c(s,o.frame,n),vc(s,n.lines,o.text,n),s.restore())}});var kc=Number.MIN_SAFE_INTEGER||-9007199254740991,wc=Number.MAX_SAFE_INTEGER||9007199254740991;function Qt(i,t,e){var s=Math.cos(e),n=Math.sin(e),o=t.x,r=t.y;return{x:o+s*(i.x-o)-n*(i.y-r),y:r+n*(i.x-o)+s*(i.y-r)}}function sn(i,t){var e=wc,s=kc,n=t.origin,o,r,a,l,c;for(o=0;o<i.length;++o)r=i[o],a=r.x-n.x,l=r.y-n.y,c=t.vx*a+t.vy*l,e=Math.min(e,c),s=Math.max(s,c);return{min:e,max:s}}function Fe(i,t){var e=t.x-i.x,s=t.y-i.y,n=Math.sqrt(e*e+s*s);return{vx:(t.x-i.x)/n,vy:(t.y-i.y)/n,origin:i,ln:n}}var qn=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};ct(qn.prototype,{center:function(){var i=this._rect;return{x:i.x+i.w/2,y:i.y+i.h/2}},update:function(i,t,e){this._rotation=e,this._rect={x:t.x+i.x,y:t.y+i.y,w:t.w,h:t.h}},contains:function(i){var t=this,e=1,s=t._rect;return i=Qt(i,t.center(),-t._rotation),!(i.x<s.x-e||i.y<s.y-e||i.x>s.x+s.w+e*2||i.y>s.y+s.h+e*2)},intersects:function(i){var t=this._points(),e=i._points(),s=[Fe(t[0],t[1]),Fe(t[0],t[3])],n,o,r;for(this._rotation!==i._rotation&&s.push(Fe(e[0],e[1]),Fe(e[0],e[3])),n=0;n<s.length;++n)if(o=sn(t,s[n]),r=sn(e,s[n]),o.max<r.min||r.max<o.min)return!1;return!0},_points:function(){var i=this,t=i._rect,e=i._rotation,s=i.center();return[Qt({x:t.x,y:t.y},s,e),Qt({x:t.x+t.w,y:t.y},s,e),Qt({x:t.x+t.w,y:t.y+t.h},s,e),Qt({x:t.x,y:t.y+t.h},s,e)]}});function Gn(i,t,e){var s=t.positioner(i,t),n=s.vx,o=s.vy;if(!n&&!o)return{x:s.x,y:s.y};var r=e.w,a=e.h,l=t.rotation,c=Math.abs(r/2*Math.cos(l))+Math.abs(a/2*Math.sin(l)),h=Math.abs(r/2*Math.sin(l))+Math.abs(a/2*Math.cos(l)),d=1/Math.max(Math.abs(n),Math.abs(o));return c*=n*d,h*=o*d,c+=t.offset*n,h+=t.offset*o,{x:s.x+c,y:s.y+h}}function Mc(i,t){var e,s,n,o;for(e=i.length-1;e>=0;--e)for(n=i[e].$layout,s=e-1;s>=0&&n._visible;--s)o=i[s].$layout,o._visible&&n._box.intersects(o._box)&&t(n,o);return i}function Sc(i){var t,e,s,n,o,r,a;for(t=0,e=i.length;t<e;++t)s=i[t],n=s.$layout,n._visible&&(a=new Proxy(s._el,{get:(l,c)=>l.getProps([c],!0)[c]}),o=s.geometry(),r=Gn(a,s.model(),o),n._box.update(r,o,s.rotation()));return Mc(i,function(l,c){var h=l._hidable,d=c._hidable;h&&d||d?c._visible=!1:h&&(l._visible=!1)})}var ce={prepare:function(i){var t=[],e,s,n,o,r;for(e=0,n=i.length;e<n;++e)for(s=0,o=i[e].length;s<o;++s)r=i[e][s],t.push(r),r.$layout={_box:new qn,_hidable:!1,_visible:!0,_set:e,_idx:r._index};return t.sort(function(a,l){var c=a.$layout,h=l.$layout;return c._idx===h._idx?h._set-c._set:h._idx-c._idx}),this.update(t),t},update:function(i){var t=!1,e,s,n,o,r;for(e=0,s=i.length;e<s;++e)n=i[e],o=n.model(),r=n.$layout,r._hidable=o&&o.display==="auto",r._visible=n.visible(),t|=r._hidable;t&&Sc(i)},lookup:function(i,t){var e,s;for(e=i.length-1;e>=0;--e)if(s=i[e].$layout,s&&s._visible&&s._box.contains(t))return i[e];return null},draw:function(i,t){var e,s,n,o,r,a;for(e=0,s=t.length;e<s;++e)n=t[e],o=n.$layout,o._visible&&(r=n.geometry(),a=Gn(n._el,n.model(),r),o._box.update(a,r,n.rotation()),n.draw(i,a))}},Pc=function(i){if(R(i))return null;var t=i,e,s,n;if(T(i))if(!R(i.label))t=i.label;else if(!R(i.r))t=i.r;else for(t="",e=Object.keys(i),n=0,s=e.length;n<s;++n)t+=(n!==0?", ":"")+e[n]+": "+i[e[n]];return""+t},Cc={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:Pc,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},G="$datalabels",Zn="$default";function Oc(i,t){var e=i.datalabels,s={},n=[],o,r;return e===!1?null:(e===!0&&(e={}),t=ct({},[t,e]),o=t.labels||{},r=Object.keys(o),delete t.labels,r.length?r.forEach(function(a){o[a]&&n.push(ct({},[t,o[a],{_key:a}]))}):n.push(t),s=n.reduce(function(a,l){return L(l.listeners||{},function(c,h){a[h]=a[h]||{},a[h][l._key||Zn]=c}),delete l.listeners,a},{}),{labels:n,listeners:s})}function vi(i,t,e,s){if(t){var n=e.$context,o=e.$groups,r;t[o._set]&&(r=t[o._set][o._key],r&&E(r,[n,s])===!0&&(i[G]._dirty=!0,e.update(n)))}}function Ac(i,t,e,s,n){var o,r;!e&&!s||(e?s?e!==s&&(r=o=!0):r=!0:o=!0,r&&vi(i,t.leave,e,n),o&&vi(i,t.enter,s,n))}function Dc(i,t){var e=i[G],s=e._listeners,n,o;if(!(!s.enter&&!s.leave)){if(t.type==="mousemove")o=ce.lookup(e._labels,t);else if(t.type!=="mouseout")return;n=e._hovered,e._hovered=o,Ac(i,s,n,o,t)}}function Tc(i,t){var e=i[G],s=e._listeners.click,n=s&&ce.lookup(e._labels,t);n&&vi(i,s,n,t)}var zc={id:"datalabels",defaults:Cc,beforeInit:function(i){i[G]={_actives:[]}},beforeUpdate:function(i){var t=i[G];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(i,t,e){var s=t.index,n=i[G],o=n._datasets[s]=[],r=i.isDatasetVisible(s),a=i.data.datasets[s],l=Oc(a,e),c=t.meta.data||[],h=i.ctx,d,f,u,p,g,m,b,_;for(h.save(),d=0,u=c.length;d<u;++d)if(b=c[d],b[G]=[],r&&b&&i.getDataVisibility(d)&&!b.skip)for(f=0,p=l.labels.length;f<p;++f)g=l.labels[f],m=g._key,_=new Kn(g,h,b,d),_.$groups={_set:s,_key:m||Zn},_.$context={active:!1,chart:i,dataIndex:d,dataset:a,datasetIndex:s},_.update(_.$context),b[G].push(_),o.push(_);h.restore(),ct(n._listeners,l.listeners,{merger:function(y,v,x){v[y]=v[y]||{},v[y][t.index]=x[y],n._listened=!0}})},afterUpdate:function(i){i[G]._labels=ce.prepare(i[G]._datasets)},afterDatasetsDraw:function(i){ce.draw(i,i[G]._labels)},beforeEvent:function(i,t){if(i[G]._listened){var e=t.event;switch(e.type){case"mousemove":case"mouseout":Dc(i,e);break;case"click":Tc(i,e);break}}},afterEvent:function(i){var t=i[G],e=t._actives,s=t._actives=i.getActiveElements(),n=le.arrayDiff(e,s),o,r,a,l,c,h,d;for(o=0,r=n.length;o<r;++o)if(c=n[o],c[1])for(d=c[0].element[G]||[],a=0,l=d.length;a<l;++a)h=d[a],h.$context.active=c[1]===1,h.update(h.$context);(t._dirty||n.length)&&(ce.update(t._labels),i.render()),delete t._dirty}};export{ni as B,At as C,oi as L,He as P,Ys as a,Xs as b,De as c,Ec as d,Lc as e,zc as f,We as g,Ic as p,Fc as r};
diff --git a/compendium_v2/static/report.js b/compendium_v2/static/report.js
new file mode 100644
index 0000000000000000000000000000000000000000..ae41cb9d889b186a9e9a16d0a8c12b41e0c37f90
--- /dev/null
+++ b/compendium_v2/static/report.js
@@ -0,0 +1,79 @@
+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,{})}));
diff --git a/compendium_v2/static/survey-s5I1rSwQ.js b/compendium_v2/static/survey-s5I1rSwQ.js
deleted file mode 100644
index 7f5720896b53f628627406c1064859904e9d8825..0000000000000000000000000000000000000000
--- a/compendium_v2/static/survey-s5I1rSwQ.js
+++ /dev/null
@@ -1,64 +0,0 @@
-var bh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ch(ke){return ke&&ke.__esModule&&Object.prototype.hasOwnProperty.call(ke,"default")?ke.default:ke}var ma={exports:{}},ye={};/**
- * @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 Bl;function dh(){if(Bl)return ye;Bl=1;var ke=Symbol.for("react.transitional.element"),Qt=Symbol.for("react.portal"),Qe=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),R=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),D=Symbol.iterator;function k(w){return w===null||typeof w!="object"?null:(w=D&&w[D]||w["@@iterator"],typeof w=="function"?w:null)}var pe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z=Object.assign,fe={};function ve(w,H,te){this.props=w,this.context=H,this.refs=fe,this.updater=te||pe}ve.prototype.isReactComponent={},ve.prototype.setState=function(w,H){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,H,"setState")},ve.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function bt(){}bt.prototype=ve.prototype;function Rt(w,H,te){this.props=w,this.context=H,this.refs=fe,this.updater=te||pe}var ln=Rt.prototype=new bt;ln.constructor=Rt,Z(ln,ve.prototype),ln.isPureReactComponent=!0;var V=Array.isArray,Ee={H:null,A:null,T:null,S:null},Ae=Object.prototype.hasOwnProperty;function gt(w,H,te,se,K,Re){return te=Re.ref,{$$typeof:ke,type:w,key:H,ref:te!==void 0?te:null,props:Re}}function ot(w,H){return gt(w.type,H,void 0,void 0,void 0,w.props)}function he(w){return typeof w=="object"&&w!==null&&w.$$typeof===ke}function Bn(w){var H={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(te){return H[te]})}var ct=/\/+/g;function It(w,H){return typeof w=="object"&&w!==null&&w.key!=null?Bn(""+w.key):H.toString(36)}function yt(){}function cn(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(yt,yt):(w.status="pending",w.then(function(H){w.status==="pending"&&(w.status="fulfilled",w.value=H)},function(H){w.status==="pending"&&(w.status="rejected",w.reason=H)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function st(w,H,te,se,K){var Re=typeof w;(Re==="undefined"||Re==="boolean")&&(w=null);var le=!1;if(w===null)le=!0;else switch(Re){case"bigint":case"string":case"number":le=!0;break;case"object":switch(w.$$typeof){case ke:case Qt:le=!0;break;case P:return le=w._init,st(le(w._payload),H,te,se,K)}}if(le)return K=K(w),le=se===""?"."+It(w,0):se,V(K)?(te="",le!=null&&(te=le.replace(ct,"$&/")+"/"),st(K,H,te,"",function(Ce){return Ce})):K!=null&&(he(K)&&(K=ot(K,te+(K.key==null||w&&w.key===K.key?"":(""+K.key).replace(ct,"$&/")+"/")+le)),H.push(K)),1;le=0;var at=se===""?".":se+":";if(V(w))for(var Ve=0;Ve<w.length;Ve++)se=w[Ve],Re=at+It(se,Ve),le+=st(se,H,te,Re,K);else if(Ve=k(w),typeof Ve=="function")for(w=Ve.call(w),Ve=0;!(se=w.next()).done;)se=se.value,Re=at+It(se,Ve++),le+=st(se,H,te,Re,K);else if(Re==="object"){if(typeof w.then=="function")return st(cn(w),H,te,se,K);throw H=String(w),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return le}function tt(w,H,te){if(w==null)return w;var se=[],K=0;return st(w,se,"","",function(Re){return H.call(te,Re,K++)}),se}function pn(w){if(w._status===-1){var H=w._result;H=H(),H.then(function(te){(w._status===0||w._status===-1)&&(w._status=1,w._result=te)},function(te){(w._status===0||w._status===-1)&&(w._status=2,w._result=te)}),w._status===-1&&(w._status=0,w._result=H)}if(w._status===1)return w._result.default;throw w._result}var Fn=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)};function Be(){}return ye.Children={map:tt,forEach:function(w,H,te){tt(w,function(){H.apply(this,arguments)},te)},count:function(w){var H=0;return tt(w,function(){H++}),H},toArray:function(w){return tt(w,function(H){return H})||[]},only:function(w){if(!he(w))throw Error("React.Children.only expected to receive a single React element child.");return w}},ye.Component=ve,ye.Fragment=Qe,ye.Profiler=E,ye.PureComponent=Rt,ye.StrictMode=O,ye.Suspense=C,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ee,ye.act=function(){throw Error("act(...) is not supported in production builds of React.")},ye.cache=function(w){return function(){return w.apply(null,arguments)}},ye.cloneElement=function(w,H,te){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var se=Z({},w.props),K=w.key,Re=void 0;if(H!=null)for(le in H.ref!==void 0&&(Re=void 0),H.key!==void 0&&(K=""+H.key),H)!Ae.call(H,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&H.ref===void 0||(se[le]=H[le]);var le=arguments.length-2;if(le===1)se.children=te;else if(1<le){for(var at=Array(le),Ve=0;Ve<le;Ve++)at[Ve]=arguments[Ve+2];se.children=at}return gt(w.type,K,void 0,void 0,Re,se)},ye.createContext=function(w){return w={$$typeof:R,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:B,_context:w},w},ye.createElement=function(w,H,te){var se,K={},Re=null;if(H!=null)for(se in H.key!==void 0&&(Re=""+H.key),H)Ae.call(H,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(K[se]=H[se]);var le=arguments.length-2;if(le===1)K.children=te;else if(1<le){for(var at=Array(le),Ve=0;Ve<le;Ve++)at[Ve]=arguments[Ve+2];K.children=at}if(w&&w.defaultProps)for(se in le=w.defaultProps,le)K[se]===void 0&&(K[se]=le[se]);return gt(w,Re,void 0,void 0,null,K)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(w){return{$$typeof:M,render:w}},ye.isValidElement=he,ye.lazy=function(w){return{$$typeof:P,_payload:{_status:-1,_result:w},_init:pn}},ye.memo=function(w,H){return{$$typeof:d,type:w,compare:H===void 0?null:H}},ye.startTransition=function(w){var H=Ee.T,te={};Ee.T=te;try{var se=w(),K=Ee.S;K!==null&&K(te,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(Be,Fn)}catch(Re){Fn(Re)}finally{Ee.T=H}},ye.unstable_useCacheRefresh=function(){return Ee.H.useCacheRefresh()},ye.use=function(w){return Ee.H.use(w)},ye.useActionState=function(w,H,te){return Ee.H.useActionState(w,H,te)},ye.useCallback=function(w,H){return Ee.H.useCallback(w,H)},ye.useContext=function(w){return Ee.H.useContext(w)},ye.useDebugValue=function(){},ye.useDeferredValue=function(w,H){return Ee.H.useDeferredValue(w,H)},ye.useEffect=function(w,H){return Ee.H.useEffect(w,H)},ye.useId=function(){return Ee.H.useId()},ye.useImperativeHandle=function(w,H,te){return Ee.H.useImperativeHandle(w,H,te)},ye.useInsertionEffect=function(w,H){return Ee.H.useInsertionEffect(w,H)},ye.useLayoutEffect=function(w,H){return Ee.H.useLayoutEffect(w,H)},ye.useMemo=function(w,H){return Ee.H.useMemo(w,H)},ye.useOptimistic=function(w,H){return Ee.H.useOptimistic(w,H)},ye.useReducer=function(w,H,te){return Ee.H.useReducer(w,H,te)},ye.useRef=function(w){return Ee.H.useRef(w)},ye.useState=function(w){return Ee.H.useState(w)},ye.useSyncExternalStore=function(w,H,te){return Ee.H.useSyncExternalStore(w,H,te)},ye.useTransition=function(){return Ee.H.useTransition()},ye.version="19.0.0",ye}var Fl;function Ul(){return Fl||(Fl=1,ma.exports=dh()),ma.exports}var va={exports:{}},Ze={};/**
- * @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 kl;function hh(){if(kl)return Ze;kl=1;var ke=Ul();function Qt(C){var d="https://react.dev/errors/"+C;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var P=2;P<arguments.length;P++)d+="&args[]="+encodeURIComponent(arguments[P])}return"Minified React error #"+C+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Qe(){}var O={d:{f:Qe,r:function(){throw Error(Qt(522))},D:Qe,C:Qe,L:Qe,m:Qe,X:Qe,S:Qe,M:Qe},p:0,findDOMNode:null},E=Symbol.for("react.portal");function B(C,d,P){var D=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E,key:D==null?null:""+D,children:C,containerInfo:d,implementation:P}}var R=ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function M(C,d){if(C==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Ze.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,Ze.createPortal=function(C,d){var P=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(Qt(299));return B(C,d,null,P)},Ze.flushSync=function(C){var d=R.T,P=O.p;try{if(R.T=null,O.p=2,C)return C()}finally{R.T=d,O.p=P,O.d.f()}},Ze.preconnect=function(C,d){typeof C=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,O.d.C(C,d))},Ze.prefetchDNS=function(C){typeof C=="string"&&O.d.D(C)},Ze.preinit=function(C,d){if(typeof C=="string"&&d&&typeof d.as=="string"){var P=d.as,D=M(P,d.crossOrigin),k=typeof d.integrity=="string"?d.integrity:void 0,pe=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;P==="style"?O.d.S(C,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:D,integrity:k,fetchPriority:pe}):P==="script"&&O.d.X(C,{crossOrigin:D,integrity:k,fetchPriority:pe,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Ze.preinitModule=function(C,d){if(typeof C=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var P=M(d.as,d.crossOrigin);O.d.M(C,{crossOrigin:P,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&O.d.M(C)},Ze.preload=function(C,d){if(typeof C=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var P=d.as,D=M(P,d.crossOrigin);O.d.L(C,P,{crossOrigin:D,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})}},Ze.preloadModule=function(C,d){if(typeof C=="string")if(d){var P=M(d.as,d.crossOrigin);O.d.m(C,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:P,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else O.d.m(C)},Ze.requestFormReset=function(C){O.d.r(C)},Ze.unstable_batchedUpdates=function(C,d){return C(d)},Ze.useFormState=function(C,d,P){return R.H.useFormState(C,d,P)},Ze.useFormStatus=function(){return R.H.useHostTransitionStatus()},Ze.version="19.0.0",Ze}var Ql;function gh(){if(Ql)return va.exports;Ql=1;function ke(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ke)}catch(Qt){console.error(Qt)}}return ke(),va.exports=hh(),va.exports}var Ro={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 yh=Ro.exports,Hl;function mh(){return Hl||(Hl=1,function(ke,Qt){(function(O,E){ke.exports=E()})(yh,function(){return function(Qe){var O={};function E(B){if(O[B])return O[B].exports;var R=O[B]={i:B,l:!1,exports:{}};return Qe[B].call(R.exports,R,R.exports,E),R.l=!0,R.exports}return E.m=Qe,E.c=O,E.d=function(B,R,M){E.o(B,R)||Object.defineProperty(B,R,{enumerable:!0,get:M})},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,R){if(R&1&&(B=E(B)),R&8||R&4&&typeof B=="object"&&B&&B.__esModule)return B;var M=Object.create(null);if(E.r(M),Object.defineProperty(M,"default",{enumerable:!0,value:B}),R&2&&typeof B!="string")for(var C in B)E.d(M,C,(function(d){return B[d]}).bind(null,C));return M},E.n=function(B){var R=B&&B.__esModule?function(){return B.default}:function(){return B};return E.d(R,"a",R),R},E.o=function(B,R){return Object.prototype.hasOwnProperty.call(B,R)},E.p="",E(E.s="./src/entries/core.ts")}({"./src/entries/core.ts":function(Qe,O,E){E.r(O),E.d(O,"Version",function(){return ai}),E.d(O,"ReleaseDate",function(){return oa}),E.d(O,"checkLibraryVersion",function(){return Ip}),E.d(O,"setLicenseKey",function(){return Dp}),E.d(O,"slk",function(){return _u}),E.d(O,"hasLicense",function(){return Ap}),E.d(O,"settings",function(){return I}),E.d(O,"Helpers",function(){return d}),E.d(O,"AnswerCountValidator",function(){return Xi}),E.d(O,"EmailValidator",function(){return Wr}),E.d(O,"NumericValidator",function(){return Yi}),E.d(O,"RegexValidator",function(){return Ur}),E.d(O,"SurveyValidator",function(){return Nt}),E.d(O,"TextValidator",function(){return zr}),E.d(O,"ValidatorResult",function(){return rt}),E.d(O,"ExpressionValidator",function(){return $r}),E.d(O,"ValidatorRunner",function(){return Hr}),E.d(O,"ItemValue",function(){return re}),E.d(O,"Base",function(){return ce}),E.d(O,"Event",function(){return gn}),E.d(O,"EventBase",function(){return nt}),E.d(O,"ArrayChanges",function(){return At}),E.d(O,"ComputedUpdater",function(){return Ie}),E.d(O,"SurveyError",function(){return Je}),E.d(O,"SurveyElementCore",function(){return Kn}),E.d(O,"SurveyElement",function(){return qe}),E.d(O,"DragTypeOverMeEnum",function(){return Yn}),E.d(O,"CalculatedValue",function(){return u}),E.d(O,"CustomError",function(){return Xe}),E.d(O,"AnswerRequiredError",function(){return Fr}),E.d(O,"OneAnswerRequiredError",function(){return $i}),E.d(O,"RequreNumericError",function(){return kr}),E.d(O,"ExceedSizeError",function(){return Qr}),E.d(O,"LocalizableString",function(){return ut}),E.d(O,"LocalizableStrings",function(){return Nr}),E.d(O,"HtmlConditionItem",function(){return f}),E.d(O,"UrlConditionItem",function(){return g}),E.d(O,"ChoicesRestful",function(){return Q}),E.d(O,"ChoicesRestfull",function(){return de}),E.d(O,"FunctionFactory",function(){return K}),E.d(O,"registerFunction",function(){return Re}),E.d(O,"ConditionRunner",function(){return ze}),E.d(O,"ExpressionRunner",function(){return wt}),E.d(O,"ExpressionExecutor",function(){return Or}),E.d(O,"Operand",function(){return Pt}),E.d(O,"Const",function(){return wr}),E.d(O,"BinaryOperand",function(){return hn}),E.d(O,"Variable",function(){return xr}),E.d(O,"FunctionOperand",function(){return Ci}),E.d(O,"ArrayOperand",function(){return Dt}),E.d(O,"UnaryOperand",function(){return Pr}),E.d(O,"ConditionsParser",function(){return Un}),E.d(O,"ProcessValue",function(){return te}),E.d(O,"JsonError",function(){return ct}),E.d(O,"JsonIncorrectTypeError",function(){return st}),E.d(O,"JsonMetadata",function(){return Bn}),E.d(O,"JsonMetadataClass",function(){return he}),E.d(O,"JsonMissingTypeError",function(){return cn}),E.d(O,"JsonMissingTypeErrorBase",function(){return yt}),E.d(O,"JsonObject",function(){return Be}),E.d(O,"JsonObjectProperty",function(){return gt}),E.d(O,"JsonRequiredPropertyError",function(){return tt}),E.d(O,"JsonUnknownPropertyError",function(){return It}),E.d(O,"Serializer",function(){return w}),E.d(O,"property",function(){return V}),E.d(O,"propertyArray",function(){return Ae}),E.d(O,"MatrixDropdownCell",function(){return ps}),E.d(O,"MatrixDropdownRowModelBase",function(){return Bt}),E.d(O,"QuestionMatrixDropdownModelBase",function(){return cr}),E.d(O,"MatrixDropdownColumn",function(){return Zr}),E.d(O,"matrixDropdownColumnTypes",function(){return as}),E.d(O,"QuestionMatrixDropdownRenderedCell",function(){return St}),E.d(O,"QuestionMatrixDropdownRenderedRow",function(){return ls}),E.d(O,"QuestionMatrixDropdownRenderedErrorRow",function(){return Va}),E.d(O,"QuestionMatrixDropdownRenderedTable",function(){return cs}),E.d(O,"MatrixDropdownRowModel",function(){return Oa}),E.d(O,"QuestionMatrixDropdownModel",function(){return fs}),E.d(O,"MatrixDynamicRowModel",function(){return Ia}),E.d(O,"QuestionMatrixDynamicModel",function(){return ms}),E.d(O,"MatrixRowModel",function(){return Ga}),E.d(O,"MatrixCells",function(){return Ja}),E.d(O,"QuestionMatrixModel",function(){return Is}),E.d(O,"QuestionMatrixBaseModel",function(){return lt}),E.d(O,"MultipleTextItemModel",function(){return Ms}),E.d(O,"MultipleTextCell",function(){return Ns}),E.d(O,"MultipleTextErrorCell",function(){return ou}),E.d(O,"MutlipleTextErrorRow",function(){return iu}),E.d(O,"MutlipleTextRow",function(){return js}),E.d(O,"QuestionMultipleTextModel",function(){return mo}),E.d(O,"MultipleTextEditorModel",function(){return ru}),E.d(O,"PanelModel",function(){return ei}),E.d(O,"PanelModelBase",function(){return Ps}),E.d(O,"QuestionRowModel",function(){return Ba}),E.d(O,"FlowPanelModel",function(){return su}),E.d(O,"PageModel",function(){return ws}),E.d(O,"DefaultTitleModel",function(){return Mc}),E.d(O,"Question",function(){return _e}),E.d(O,"QuestionNonValue",function(){return vo}),E.d(O,"QuestionEmptyModel",function(){return au}),E.d(O,"QuestionCheckboxBase",function(){return ti}),E.d(O,"QuestionSelectBase",function(){return xs}),E.d(O,"QuestionCheckboxModel",function(){return ri}),E.d(O,"QuestionTagboxModel",function(){return qs}),E.d(O,"QuestionRankingModel",function(){return _s}),E.d(O,"QuestionCommentModel",function(){return Bs}),E.d(O,"QuestionDropdownModel",function(){return ni}),E.d(O,"QuestionFactory",function(){return we}),E.d(O,"ElementFactory",function(){return Yt}),E.d(O,"QuestionFileModel",function(){return ks}),E.d(O,"QuestionFilePage",function(){return hu}),E.d(O,"QuestionHtmlModel",function(){return Qs}),E.d(O,"QuestionRadiogroupModel",function(){return Hs}),E.d(O,"QuestionRatingModel",function(){return Us}),E.d(O,"RenderedRatingItem",function(){return Co}),E.d(O,"QuestionExpressionModel",function(){return ss}),E.d(O,"QuestionTextBase",function(){return go}),E.d(O,"CharacterCounter",function(){return Ya}),E.d(O,"QuestionTextModel",function(){return yo}),E.d(O,"QuestionBooleanModel",function(){return Ws}),E.d(O,"QuestionImagePickerModel",function(){return oi}),E.d(O,"ImageItemValue",function(){return mu}),E.d(O,"QuestionImageModel",function(){return $s}),E.d(O,"QuestionSignaturePadModel",function(){return Js}),E.d(O,"QuestionPanelDynamicModel",function(){return Ks}),E.d(O,"QuestionPanelDynamicItem",function(){return et}),E.d(O,"SurveyTimer",function(){return vs}),E.d(O,"SurveyTimerModel",function(){return La}),E.d(O,"tryFocusPage",function(){return xc}),E.d(O,"createTOCListModel",function(){return Qa}),E.d(O,"getTocRootCss",function(){return za}),E.d(O,"TOCModel",function(){return An}),E.d(O,"SurveyProgressModel",function(){return pp}),E.d(O,"ProgressButtons",function(){return Fa}),E.d(O,"ProgressButtonsResponsivityManager",function(){return wc}),E.d(O,"SurveyModel",function(){return en}),E.d(O,"SurveyTrigger",function(){return jn}),E.d(O,"SurveyTriggerComplete",function(){return xu}),E.d(O,"SurveyTriggerSetValue",function(){return Vu}),E.d(O,"SurveyTriggerVisible",function(){return wu}),E.d(O,"SurveyTriggerCopyValue",function(){return Eu}),E.d(O,"SurveyTriggerRunExpression",function(){return Ou}),E.d(O,"SurveyTriggerSkip",function(){return Su}),E.d(O,"Trigger",function(){return Pu}),E.d(O,"PopupSurveyModel",function(){return Ru}),E.d(O,"SurveyWindowModel",function(){return dp}),E.d(O,"TextPreProcessor",function(){return Vt}),E.d(O,"Notifier",function(){return Ma}),E.d(O,"Cover",function(){return po}),E.d(O,"CoverCell",function(){return ja}),E.d(O,"dxSurveyService",function(){return Aa}),E.d(O,"englishStrings",function(){return P}),E.d(O,"surveyLocalization",function(){return D}),E.d(O,"surveyStrings",function(){return fe}),E.d(O,"getLocaleString",function(){return k}),E.d(O,"getLocaleStrings",function(){return pe}),E.d(O,"setupLocale",function(){return Z}),E.d(O,"QuestionCustomWidget",function(){return eo}),E.d(O,"CustomWidgetCollection",function(){return In}),E.d(O,"QuestionCustomModel",function(){return Pa}),E.d(O,"QuestionCompositeModel",function(){return wa}),E.d(O,"ComponentQuestionJSON",function(){return ba}),E.d(O,"ComponentCollection",function(){return ro}),E.d(O,"ListModel",function(){return Wt}),E.d(O,"MultiSelectListModel",function(){return uu}),E.d(O,"PopupModel",function(){return mn}),E.d(O,"createDialogOptions",function(){return Ei}),E.d(O,"PopupBaseViewModel",function(){return Os}),E.d(O,"PopupDropdownViewModel",function(){return Ts}),E.d(O,"PopupModalViewModel",function(){return Ys}),E.d(O,"createPopupViewModel",function(){return yp}),E.d(O,"createPopupModalViewModel",function(){return gp}),E.d(O,"DropdownListModel",function(){return ho}),E.d(O,"DropdownMultiSelectListModel",function(){return lu}),E.d(O,"QuestionButtonGroupModel",function(){return Au}),E.d(O,"ButtonGroupItemModel",function(){return mp}),E.d(O,"ButtonGroupItemValue",function(){return Du}),E.d(O,"IsMobile",function(){return uo}),E.d(O,"IsTouch",function(){return Le}),E.d(O,"_setIsTouch",function(){return tc}),E.d(O,"confirmAction",function(){return Li}),E.d(O,"confirmActionAsync",function(){return Mt}),E.d(O,"detectIEOrEdge",function(){return wn}),E.d(O,"doKey2ClickUp",function(){return or}),E.d(O,"doKey2ClickDown",function(){return Bi}),E.d(O,"doKey2ClickBlur",function(){return _i}),E.d(O,"loadFileFromBase64",function(){return Xn}),E.d(O,"increaseHeightByContent",function(){return sr}),E.d(O,"createSvg",function(){return Sn}),E.d(O,"chooseFiles",function(){return Hi}),E.d(O,"sanitizeEditableContent",function(){return ki}),E.d(O,"prepareElementForVerticalAnimation",function(){return dt}),E.d(O,"cleanHtmlElementAfterAnimation",function(){return Ge}),E.d(O,"classesToSelector",function(){return Fe}),E.d(O,"renamedIcons",function(){return nr}),E.d(O,"getIconNameFromProxy",function(){return _r}),E.d(O,"InputMaskBase",function(){return xo}),E.d(O,"InputMaskPattern",function(){return ra}),E.d(O,"InputMaskNumeric",function(){return ia}),E.d(O,"InputMaskDateTime",function(){return ju}),E.d(O,"InputMaskCurrency",function(){return qu}),E.d(O,"CssClassBuilder",function(){return q}),E.d(O,"TextAreaModel",function(){return Dn}),E.d(O,"surveyCss",function(){return Ne}),E.d(O,"defaultV2Css",function(){return lo}),E.d(O,"defaultV2ThemeName",function(){return Da}),E.d(O,"DragDropCore",function(){return hs}),E.d(O,"DragDropChoices",function(){return cu}),E.d(O,"DragDropRankingSelectToRank",function(){return fu}),E.d(O,"StylesManager",function(){return Fu}),E.d(O,"defaultStandardCss",function(){return un}),E.d(O,"modernCss",function(){return ku}),E.d(O,"SvgIconRegistry",function(){return Qu}),E.d(O,"SvgRegistry",function(){return zp}),E.d(O,"SvgThemeSets",function(){return So}),E.d(O,"addIconsToThemeSet",function(){return Up}),E.d(O,"RendererFactory",function(){return to}),E.d(O,"ResponsivityManager",function(){return Rr}),E.d(O,"VerticalResponsivityManager",function(){return Wn}),E.d(O,"unwrap",function(){return Zo}),E.d(O,"getOriginalEvent",function(){return Ko}),E.d(O,"getElement",function(){return Vn}),E.d(O,"activateLazyRenderingChecks",function(){return tr}),E.d(O,"createDropdownActionModel",function(){return Ar}),E.d(O,"createDropdownActionModelAdvanced",function(){return Lr}),E.d(O,"createPopupModelWithListModel",function(){return Gn}),E.d(O,"getActionDropdownButtonTarget",function(){return Ri}),E.d(O,"BaseAction",function(){return vn}),E.d(O,"Action",function(){return be}),E.d(O,"ActionDropdownViewModel",function(){return $o}),E.d(O,"AnimationUtils",function(){return jr}),E.d(O,"AnimationPropertyUtils",function(){return Ii}),E.d(O,"AnimationGroupUtils",function(){return Jn}),E.d(O,"AnimationProperty",function(){return Cn}),E.d(O,"AnimationBoolean",function(){return Pn}),E.d(O,"AnimationGroup",function(){return xt}),E.d(O,"AnimationTab",function(){return Zn}),E.d(O,"AdaptiveActionContainer",function(){return bn}),E.d(O,"defaultActionBarCss",function(){return $n}),E.d(O,"ActionContainer",function(){return ft}),E.d(O,"DragOrClickHelper",function(){return gs}),E.d(O,"Model",function(){return en});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 M(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 d=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=[],l=[],h=0;h<t.length;h++)s.push(t[h]),l.push(e[h]);s.sort(),l.sort(),t=s,e=l}for(var h=0;h<t.length;h++)if(!i.isTwoValueEquals(t[h],e[h],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),l=this.getNumberFromStr(e,r);if(!Number.isNaN(s)&&!Number.isNaN(l)&&s!==l)return s>l?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 l in t)if(t.hasOwnProperty(l)&&(!e.hasOwnProperty(l)||!this.isTwoValueEquals(t[l],e[l],n,r,o)))return!1;for(l in e)if(e.hasOwnProperty(l)&&!t.hasOwnProperty(l))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=".",l=!0,h="A",y="",x=function(Y){if(!Y)return!1;for(var W=0;W<Y.length;W++)if(i.isCharDigit(Y[W]))return!0;return!1};if(e){y=e;for(var T=y.length-1,j=x(y),z=function(){return j&&!i.isCharDigit(y[T])||i.isCharNotLetterAndDigit(y[T])};T>=0&&z();)T--;var U="";for(T<y.length-1&&(U=y.substring(T+1),y=y.substring(0,T+1)),T=y.length-1;T>=0&&!(z()||(T--,!j)););h=y.substring(T+1),o=y.substring(0,T+1),parseInt(h)?r=parseInt(h):h.length==1&&(l=!1),(U||o)&&(s=U)}if(n>-1&&x(o)&&(o=this.getNumberByIndex(n,o)),l){for(var X=(t+r).toString();X.length<h.length;)X="0"+X;return o+X+s}return o+String.fromCharCode(h.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,l=0;l<n.length;l++)typeof n[l]=="number"&&(s=i.correctAfterPlusMinis(s,n[l],s+n[l]));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,l=0;l<o&&l<s;l++){var h=n[l],y=r[l];if(h.length===y.length){if(h!==y)return h<y?-1:1}else return h.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 P={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"},D={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(h){var y=e.locales[h];y&&n.push(y)},o=function(h){if(h){r(h);var y=h.indexOf("-");y<1||(h=h.substring(0,y),r(h))}};o(t),o(this.currentLocale),o(this.defaultLocale),this.defaultLocale!=="en"&&r("en");for(var s=0;s<n.length;s++){var l=n[s][i];if(l!==void 0)return l}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(l){return t.getLocaleName(l).toLowerCase()};return e.sort(function(l,h){var y=s(l),x=s(h);return y===x?0:y<x?-1:1}),e},onGetExternalString:function(i,t){}};function k(i,t){return t===void 0&&(t=null),D.getString(i,t)}function pe(i){return D.getLocaleStrings(i)}function Z(i){D.setupLocale(i)}var fe=P;D.locales.en=P,D.localeNames.en="english";var ve=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)}}(),bt=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function Rt(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 ln(i,t,e){Rt(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 V(i){return i===void 0&&(i={}),function(t,e){var n=function(r,o){if(o&&typeof o=="object"&&o.type===Ie.ComputedUpdaterType){ce.startCollectDependencies(function(){return r[e]=o.updater()},r,e);var s=o.updater(),l=ce.finishCollectDependencies();return o.setDependencies(l),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 ln(this,i,e)},set:function(r){Rt(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 Rt(this,i,e),this.getLocalizableString(e)}}))}}function Ee(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 Ae(i){return function(t,e){Object.defineProperty(t,e,{get:function(){return Ee(this,i,e),this.getPropertyValue(e)},set:function(n){Ee(this,i,e);var r=this.getPropertyValue(e);n!==r&&(r?r.splice.apply(r,bt([0,r.length],n||[])):this.setPropertyValue(e,n),i&&i.onSet&&i.onSet(n,this))}})}}var gt=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&&w.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 d.isValueEmpty(n)?e===!1&&(this.type=="boolean"||this.type=="switch")&&!this.defaultValueFunc||e===""||d.isValueEmpty(e):d.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&&w.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:w.findProperty(t.getType(),this.oldName)},i.prototype.isAvailableInVersionCore=function(t){return!t||!this.version?!0:d.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}(),ot=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(h){t.setLocalizableStringText(e.name,h)}};Object.defineProperty(t,e.name,o)}else{var s=e.isArray||e.type==="multiplevalues";if(typeof t.createNewArray=="function"&&(w.isDescendantOf(e.className,"itemvalue")?(t.createNewArray(e.name,function(h){h.locOwner=t,h.ownerPropertyName=e.name}),s=!0):s&&t.createNewArray(e.name),s)){var l=e.getDefaultValue(t);Array.isArray(l)&&t.setPropertyValue(e.name,l)}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}(),he=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(),ot.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=w.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?w.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&&!!w.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;ot.removeAllProperties(this.name),this.makeParentRegularClass()}},i.prototype.makeParentRegularClass=function(){if(this.parentName){var t=w.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 l=new gt(this,n,s);if(r&&(l.type=r),typeof t=="object"){if(t.type&&(l.type=t.type),t.default!==void 0&&(l.defaultValue=t.default),t.defaultFunc!==void 0&&(l.defaultValueFunc=t.defaultFunc),d.isValueEmpty(t.isSerializable)||(l.isSerializable=t.isSerializable),d.isValueEmpty(t.isLightSerializable)||(l.isLightSerializable=t.isLightSerializable),d.isValueEmpty(t.maxLength)||(l.maxLength=t.maxLength),t.displayName!==void 0&&(l.displayName=t.displayName),d.isValueEmpty(t.category)||(l.category=t.category),d.isValueEmpty(t.categoryIndex)||(l.categoryIndex=t.categoryIndex),d.isValueEmpty(t.nextToProperty)||(l.nextToProperty=t.nextToProperty),d.isValueEmpty(t.overridingProperty)||(l.overridingProperty=t.overridingProperty),d.isValueEmpty(t.visibleIndex)||(l.visibleIndex=t.visibleIndex),d.isValueEmpty(t.showMode)||(l.showMode=t.showMode),d.isValueEmpty(t.maxValue)||(l.maxValue=t.maxValue),d.isValueEmpty(t.minValue)||(l.minValue=t.minValue),d.isValueEmpty(t.dataList)||(l.dataList=t.dataList),d.isValueEmpty(t.isDynamicChoices)||(l.isDynamicChoices=t.isDynamicChoices),d.isValueEmpty(t.isBindable)||(l.isBindable=t.isBindable),d.isValueEmpty(t.isUnique)||(l.isUnique=t.isUnique),d.isValueEmpty(t.uniqueProperty)||(l.uniquePropertyName=t.uniqueProperty),d.isValueEmpty(t.isArray)||(l.isArray=t.isArray),(t.visible===!0||t.visible===!1)&&(l.visible=t.visible),t.visibleIf&&(l.visibleIf=t.visibleIf),t.enableIf&&(l.enableIf=t.enableIf),t.onExecuteExpression&&(l.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(l.onPropertyEditorUpdate=t.onPropertyEditorUpdate),t.readOnly===!0&&(l.readOnly=!0),t.availableInMatrixColumn===!0&&(l.availableInMatrixColumn=!0),t.choices){var h=typeof t.choices=="function"?t.choices:null,y=typeof t.choices!="function"?t.choices:null;l.setChoices(y,h)}t.baseValue&&l.setBaseValue(t.baseValue),t.onSerializeValue&&(l.onSerializeValue=t.onSerializeValue),t.onGetValue&&(l.onGetValue=t.onGetValue),t.onSetValue&&(l.onSetValue=t.onSetValue),t.onSettingValue&&(l.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+l.name),t.serializationProperty&&(l.serializationProperty=t.serializationProperty,l.serializationProperty&&l.serializationProperty.indexOf("loc")==0&&(l.isLocalizable=!0)),t.isLocalizable&&(l.isLocalizable=t.isLocalizable),t.className&&(l.className=t.className),t.baseClassName&&(l.baseClassName=t.baseClassName,l.isArray=!0),l.isArray===!0&&(l.isArray=!0),t.classNamePart&&(l.classNamePart=t.classNamePart),t.alternativeName&&(l.alternativeName=t.alternativeName),t.oldName&&(l.oldName=t.oldName),t.layout&&(l.layout=t.layout),t.version&&(l.version=t.version),t.dependsOn&&this.addDependsOnProperties(l,t.dependsOn)}return this.properties.push(l),e&&!this.isOverridedProp(l.name)&&(l.isCustom=!0,ot.addProperty(this.name,l)),l}},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=w.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}(),Bn=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=w.findProperty(n.getType(),e);if(r)return this.getObjPropertyValueCore(n,r)}var o=w.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 he(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={},l=this.getProperties(t),h=0;h<l.length;h++)s[l[h].name]=l[h];var y=[];n||(n=[]);for(var x=0;x<o.length;x++){var T=o[x];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 gt(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},ot.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(),ot.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=w.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 l=0;l<t.properties.length;l++){var h=t.properties[l];t.parentName&&w.findProperty(t.parentName,h.name)||(o[h.name]=this.generateSchemaProperty(h,n,r),h.isRequired&&s.push(h.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 l=t.getChoices(null);Array.isArray(l)&&l.length>0&&(s.enum=this.getChoicesValues(l))}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 h=this.getChildrenClasses(t.baseClassName,!0);t.baseClassName=="question"&&h.push(this.findClass("panel")),s.items={anyOf:[]};for(var y=0;y<h.length;y++){var x=h[y].name;s.items.anyOf.push({$ref:this.getChemeRefName(x,n)}),this.generateChemaClass(x,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 l={properties:{}};this.generateSchemaProperties(r,l,e,n),o?s.allOf=[{$ref:this.getChemeRefName(r.parentName,n)},{properties:l.properties}]:s.properties=l.properties,Array.isArray(l.required)&&(s.required=l.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}(),ct=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}(),It=function(i){ve(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}(ct),yt=function(i){ve(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}(ct),cn=function(i){ve(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}(yt),st=function(i){ve(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}(yt),tt=function(i){ve(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}(ct),pn=function(i){ve(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}(ct),Fn=function(i){ve(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}(ct),Be=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=w.getProperties(o),s=!!o&&!w.isDescendantOf(o,"itemvalue")),!!r){e.startLoadingFromJson&&e.startLoadingFromJson(t),r=this.addDynamicProperties(e,t,r),this.options=n;var l={};l[i.typePropertyName]=!0;var h={};for(var y in t)this.setPropertyValueToObj(t,e,y,r,l,h,o,s,n);this.options=void 0,e.endLoadingFromJson&&e.endLoadingFromJson()}}},i.prototype.setPropertyValueToObj=function(t,e,n,r,o,s,l,h,y){var x=this;if(!o[n]){if(n===i.positionPropertyName){e[n]=t[n];return}var T=this.findProperty(r,n);if(!T&&h&&this.addNewError(new It(n.toString(),l),t,e),T){var j=T.dependsOn;Array.isArray(j)&&(s[n]=!0,j.forEach(function(z){s[z]||x.setPropertyValueToObj(t,e,z,r,o,s,l,!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,w.getProperties(t.getType()),r,n),this.propertiesToJson(t,this.getDynamicProperties(t),r,n),r},i.prototype.getDynamicProperties=function(t){return w.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 l=[],h=0;h<s.length;h++)l.push(this.toJsonObjectCore(s[h],n,r));s=l.length>0?l:null}else s=this.toJsonObjectCore(s,n,r);if(s!=null){var y=n.getSerializedName(r.version),x=typeof t.getPropertyValue=="function"&&t.getPropertyValue(y,null)!==null;(r.storeDefaults&&x||!n.isDefaultValueByObj(t,s))&&(!w.onSerializingProperty||!w.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 pn(s,e.getType()),r||t,e)}if(this.isValueArray(t)){this.valueToArray(t,e,n.name,n,o);return}var l=this.createNewObj(t,n);l.newObj&&(this.toObjectCore(t,l.newObj,o),t=l.newObj),l.error||(n!=null?(n.setValue(e,t,this),o&&o.validatePropertyValues&&(n.validateValue(t)||this.addNewError(new Fn(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?w.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 st(n.name,n.baseClassName):o=new cn(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=w.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(d.isValueEmpty(s.defaultValue)&&!e[s.name])return new tt(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 Bn,i}(),w=Be.metaData,H="@survey",te=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&&!d.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 l=t[s];if(l!=null){if(!l.hasOwnProperty("oldValue")||!l.hasOwnProperty("newValue"))return!0;var h={};h[s]=l.oldValue;var y=this.getValue(r,h);h[s]=l.newValue;var x=this.getValue(r,h);if(!d.isTwoValueEquals(y,x,!1,!1,!1))return!0}}}}return!1},i.prototype.getValueFromPath=function(t,e){if(t.length===2&&t[0]===H)return this.getValueFromSurvey(t[1]);for(var n=0;e&&n<t.length;){var r=t[n];if(d.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=[H,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=!d.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 l=e[0]=="[";if(l){var h=this.getObjInArray(t,e);if(!h)return null;t=h.value,e=h.text,s.push(h.index)}else{if(!o&&e==this.getFirstName(e))return{value:t,text:e,path:s};if(t=this.getObjectValue(t,o),d.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],l=s.toUpperCase();for(var h in e)if(!(Array.isArray(r)&&r.indexOf(h)>-1)){var y=h[0];if(y===l||y===s){var x=h.toLowerCase();if(x==o)return h;if(o.length<=x.length)continue;var T=o[x.length];if(T!="."&&T!="[")continue;if(x==o.substring(0,x.length))return h}}if(n&&t[0]!=="["){var j=t.indexOf(".");return j>-1&&(t=t.substring(0,j),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}(),se=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}(),K=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 se.warn("Unknown function name: "+t),null;var s={func:o};if(n)for(var l in n)s[l]=n[l];return s.func(e,r)},i.Instance=new i,i}(),Re=K.Instance.register;function le(i,t){if(i!=null)if(Array.isArray(i))for(var e=0;e<i.length;e++)le(i[e],t);else d.isNumber(i)&&(i=d.getNumber(i)),t.push(i)}function at(i){var t=[];le(i,t);for(var e=0,n=0;n<t.length;n++)e=d.correctAfterPlusMinis(e,t[n],e+t[n]);return e}K.Instance.register("sum",at);function Ve(i,t){var e=[];le(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 Ve(i,!0)}K.Instance.register("min",Ce);function Do(i){return Ve(i,!1)}K.Instance.register("max",Do);function kn(i){var t=[];return le(i,t),t.length}K.Instance.register("count",kn);function Ao(i){var t=[];le(i,t);var e=at(i);return t.length>0?e/t.length:0}K.Instance.register("avg",Ao);function yr(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 mr(i){return typeof i=="string"?d.isNumber(i)?d.getNumber(i):void 0:i}function vr(i,t,e,n,r,o){if(!i||d.isValueEmpty(i[t])||o&&!o.run(i))return e;var s=r?mr(i[t]):1;return n(e,s)}function Ht(i,t,e,n){n===void 0&&(n=!0);var r=yr(i,t);if(r){var o=r.expression?new ze(r.expression):void 0;o&&o.isAsync&&(o=void 0);var s=void 0;if(Array.isArray(r.data))for(var l=0;l<r.data.length;l++)s=vr(r.data[l],r.name,s,e,n,o);else for(var h in r.data)s=vr(r.data[h],r.name,s,e,n,o);return s}}function fn(i,t){var e=Ht(i,t,function(n,r){return n==null&&(n=0),r==null||r==null?n:d.correctAfterPlusMinis(n,r,n+r)});return e!==void 0?e:0}K.Instance.register("sumInArray",fn);function Lo(i,t){return Ht(i,t,function(e,n){return e==null?n:n==null||n==null||e<n?e:n})}K.Instance.register("minInArray",Lo);function Mo(i,t){return Ht(i,t,function(e,n){return e==null?n:n==null||n==null||e>n?e:n})}K.Instance.register("maxInArray",Mo);function li(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}K.Instance.register("countInArray",li);function ci(i,t){var e=li(i,t);return e==0?0:fn(i,t)/e}K.Instance.register("avgInArray",ci);function dn(i){return!i&&i.length!==3?"":i[0]?i[1]:i[2]}K.Instance.register("iif",dn);function zt(i){return!i&&i.length<1||!i[0]?null:M("function-getDate",i[0])}K.Instance.register("getDate",zt);function Ut(i,t,e){if(e==="days")return Qn([i,t]);var n=M("function-dateDiffMonths",i),r=M("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 pi(i){return!Array.isArray(i)||i.length<1||!i[0]?null:Ut(i[0],void 0,(i.length>1?i[1]:"")||"years")}K.Instance.register("age",pi);function fi(i){return!Array.isArray(i)||i.length<2||!i[0]||!i[1]?null:Ut(i[0],i[1],(i.length>2?i[2]:"")||"days")}K.Instance.register("dateDiff",fi);function di(i){if(!Array.isArray(i)||i.length<2||!i[0]||!i[1])return null;var t=M("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}K.Instance.register("dateAdd",di);function hi(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 gi(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(!hi(n.panels[r]))return!1;return!0}}return hi(e)}K.Instance.register("isContainerReady",gi);function jo(){return this.survey&&this.survey.isDisplayMode}K.Instance.register("isDisplayMode",jo);function br(){return M("function-currentDate")}K.Instance.register("currentDate",br);function yi(i){var t=M("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}K.Instance.register("today",yi);function No(i){if(!(i.length!==1||!i[0]))return M("function-getYear",i[0]).getFullYear()}K.Instance.register("getYear",No);function qo(){return M("function-currentYear").getFullYear()}K.Instance.register("currentYear",qo);function Qn(i){if(!Array.isArray(i)||i.length!==2||!i[0]||!i[1])return 0;var t=M("function-diffDays",i[0]),e=M("function-diffDays",i[1]),n=Math.abs(e-t);return Math.ceil(n/(1e3*60*60*24))}K.Instance.register("diffDays",Qn);function Hn(i,t){var e=yi(void 0);return t&&t[0]&&(e=M("function-"+i,t[0])),e}function pt(i){var t=Hn("year",i);return t.getFullYear()}K.Instance.register("year",pt);function _o(i){var t=Hn("month",i);return t.getMonth()+1}K.Instance.register("month",_o);function mi(i){var t=Hn("day",i);return t.getDate()}K.Instance.register("day",mi);function Bo(i){var t=Hn("weekday",i);return t.getDay()}K.Instance.register("weekday",Bo);function vi(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 Cr(i,t){return t.length>1&&!d.isValueEmpty(t[1])?i.getDisplayValue(!0,t[1]):i.displayValue}function bi(i){var t=this,e=vi(this,i[0]);if(!e)return"";if(e.isReady)this.returnResult(Cr(e,i));else{var n=function(r,o){r.isReady&&(r.onReadyChanged.remove(n),t.returnResult(Cr(r,i)))};e.onReadyChanged.add(n)}}K.Instance.register("displayValue",bi,!0);function Fo(i){if(!(i.length!==2||!i[0]||!i[1])){var t=vi(this,i[0]);return t?t[i[1]]:void 0}}K.Instance.register("propertyValue",Fo);function ko(i){if(i.length<2)return"";var t=i[0];if(!t||typeof t!="string")return"";var e=i[1];if(!d.isNumber(e))return"";var n=i.length>2?i[2]:void 0;return d.isNumber(n)?t.substring(e,n):t.substring(e)}K.Instance.register("substring",ko);var Ct=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)}}(),Pt=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}(),hn=function(i){Ct(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=He.binaryFunctions.arithmeticOp(e):s.consumer=He.binaryFunctions[e],s.consumer==null&&He.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"("+He.safeToString(this.left,e)+" "+He.operatorToString(this.operatorName)+" "+He.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}(Pt),Pr=function(i){Ct(t,i);function t(e,n){var r=i.call(this)||this;return r.expressionValue=e,r.operatorName=n,r.consumer=He.unaryFunctions[n],r.consumer==null&&He.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 He.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}(Pt),Dt=function(i){Ct(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}(Pt),wr=function(i){Ct(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(He.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(d.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 d.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}(Pt),xr=function(i){Ct(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}(wr),Ci=function(i){Ct(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 Dt([])),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=d.createCopy(e.properties);var r=this.id,o=e.asyncValues,s=e.onCompleteAsyncFunc,l=this;n.returnResult=function(h){o[r]={value:h},s(l)}}return K.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 K.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}(Pt),He=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&&!d.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(d.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),d.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=M("expression-operand",t);return n.setHours(0,0,0),n}return t},i.unaryFunctions={empty:function(t){return d.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 d.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 d.sumAnyValues(t,e)},minus:function(t,e){return d.correctAfterPlusMinis(t,e,t-e)},mul:function(t,e){return d.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&&!d.isValueEmpty(e)?!0:i.binaryFunctions.containsCore(t,e,!1)},anyof:function(t,e){if(d.isValueEmpty(t)&&d.isValueEmpty(e))return!0;if(d.isValueEmpty(t)||!Array.isArray(t)&&t.length===0)return!1;if(d.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&&!d.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 l=0;for(e=o[s];l<t.length&&!i.isTwoValueEquals(t[l],e);l++);if(l==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}(),Qo=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){Qo(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(x){return x.charCodeAt(0).toString(16).toUpperCase()}function o(x){return x.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(x){return x.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 l(x){switch(x.type){case"literal":return'"'+o(x.text)+'"';case"class":var T=x.parts.map(function(j){return Array.isArray(j)?s(j[0])+"-"+s(j[1]):s(j)});return"["+(x.inverted?"^":"")+T+"]";case"any":return"any character";case"end":return"end of input";case"other":return x.description}}function h(x){var T=x.map(l),j,z;if(T.sort(),T.length>0){for(j=1,z=1;j<T.length;j++)T[j-1]!==T[j]&&(T[z]=T[j],z++);T.length=z}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(x){return x?'"'+o(x)+'"':"end of input"}return"Expected "+h(e)+" but "+y(n)+" found."},t}(Error);function Pi(i,t){t=t!==void 0?t:{};var e={},n={Expression:_n},r=_n,o=function(m,b){return _l(m,b,!0)},s="||",l=oe("||",!1),h="or",y=oe("or",!0),x=function(){return"or"},T="&&",j=oe("&&",!1),z="and",U=oe("and",!0),X=function(){return"and"},Y=function(m,b){return _l(m,b)},W="<=",ue=oe("<=",!1),Me="lessorequal",je=oe("lessorequal",!0),ht=function(){return"lessorequal"},vt=">=",hr=oe(">=",!1),Nn="greaterorequal",Wp=oe("greaterorequal",!0),$p=function(){return"greaterorequal"},Hu="==",Gp=oe("==",!1),zu="equal",Uu=oe("equal",!0),Wu=function(){return"equal"},Jp="=",Zp=oe("=",!1),$u="!=",Kp=oe("!=",!1),Yp="notequal",Xp=oe("notequal",!0),ef=function(){return"notequal"},tf="<",nf=oe("<",!1),rf="less",of=oe("less",!0),sf=function(){return"less"},af=">",uf=oe(">",!1),lf="greater",cf=oe("greater",!0),pf=function(){return"greater"},ff="+",df=oe("+",!1),hf=function(){return"plus"},gf="-",yf=oe("-",!1),mf=function(){return"minus"},vf="*",bf=oe("*",!1),Cf=function(){return"mul"},Pf="/",wf=oe("/",!1),xf=function(){return"div"},Vf="%",Sf=oe("%",!1),Of=function(){return"mod"},Ef="^",Tf=oe("^",!1),Rf="power",If=oe("power",!0),Df=function(){return"power"},Gu="*=",Af=oe("*=",!1),Lf="contains",Mf=oe("contains",!0),jf="contain",Nf=oe("contain",!0),qf=function(){return"contains"},_f="notcontains",Bf=oe("notcontains",!0),Ff="notcontain",kf=oe("notcontain",!0),Qf=function(){return"notcontains"},Hf="anyof",zf=oe("anyof",!0),Uf=function(){return"anyof"},Wf="allof",$f=oe("allof",!0),Gf=function(){return"allof"},Ju="(",Zu=oe("(",!1),Ku=")",Yu=oe(")",!1),Jf=function(m){return m},Zf=function(m,b){return new Ci(m,b)},Kf="!",Yf=oe("!",!1),Xf="negate",ed=oe("negate",!0),td=function(m){return new Pr(m,"negate")},nd=function(m,b){return new Pr(m,b)},rd="empty",id=oe("empty",!0),od=function(){return"empty"},sd="notempty",ad=oe("notempty",!0),ud=function(){return"notempty"},Xu="undefined",ld=oe("undefined",!1),el="null",cd=oe("null",!1),pd=function(){return null},fd=function(m){return new wr(m)},dd="{",hd=oe("{",!1),gd="}",yd=oe("}",!1),md=function(m){return new xr(m)},sa=function(m){return m},tl="''",vd=oe("''",!1),nl=function(){return""},rl='""',bd=oe('""',!1),il="'",ol=oe("'",!1),sl=function(m){return"'"+m+"'"},al='"',ul=oe('"',!1),Cd="[",Pd=oe("[",!1),wd="]",xd=oe("]",!1),Vd=function(m){return m},ll=",",cl=oe(",",!1),Sd=function(m,b){if(m==null)return new Dt([]);var L=[m];if(Array.isArray(b))for(var S=fh(b),N=3;N<S.length;N+=4)L.push(S[N]);return new Dt(L)},Od="true",Ed=oe("true",!0),Td=function(){return!0},Rd="false",Id=oe("false",!0),Dd=function(){return!1},pl="0x",Ad=oe("0x",!1),Ld=function(){return parseInt(To(),16)},Md=/^[\-]/,jd=qn(["-"],!1,!1),Nd=function(m,b){return m==null?b:-b},qd=".",_d=oe(".",!1),Bd=function(){return parseFloat(To())},Fd=function(){return parseInt(To(),10)},kd="0",Qd=oe("0",!1),Hd=function(){return 0},fl=function(m){return m.join("")},dl="\\'",zd=oe("\\'",!1),Ud=function(){return"'"},hl='\\"',Wd=oe('\\"',!1),$d=function(){return'"'},Gd=/^[^"']/,Jd=qn(['"',"'"],!0,!1),aa=function(){return To()},Zd=/^[^{}]/,Kd=qn(["{","}"],!0,!1),gl=/^[0-9]/,yl=qn([["0","9"]],!1,!1),ml=/^[1-9]/,vl=qn([["1","9"]],!1,!1),bl=/^[a-zA-Z_]/,Cl=qn([["a","z"],["A","Z"],"_"],!1,!1),Yd=eh("whitespace"),Pl=/^[ \t\n\r]/,wl=qn([" ","	",`
-`,"\r"],!1,!1),v=0,ie=0,Oo=[{line:1,column:1}],Tt=0,ua=[],$=0,ee={},Eo;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 To(){return i.substring(ie,v)}function oe(m,b){return{type:"literal",text:m,ignoreCase:b}}function qn(m,b,L){return{type:"class",parts:m,inverted:b,ignoreCase:L}}function Xd(){return{type:"end"}}function eh(m){return{type:"other",description:m}}function xl(m){var b=Oo[m],L;if(b)return b;for(L=m-1;!Oo[L];)L--;for(b=Oo[L],b={line:b.line,column:b.column};L<m;)i.charCodeAt(L)===10?(b.line++,b.column=1):b.column++,L++;return Oo[m]=b,b}function Vl(m,b){var L=xl(m),S=xl(b);return{start:{offset:m,line:L.line,column:L.column},end:{offset:b,line:S.line,column:S.column}}}function J(m){v<Tt||(v>Tt&&(Tt=v,ua=[]),ua.push(m))}function th(m,b,L){return new zn(zn.buildMessage(m,b),m,b,L)}function _n(){var m,b,L,S,N,F,G,ne,xe,Oe=v*34+0,ya=ee[Oe];if(ya)return v=ya.nextPos,ya.result;if(m=v,b=ge(),b!==e)if(L=la(),L!==e){for(S=[],N=v,F=ge(),F!==e?(G=Sl(),G!==e?(ne=ge(),ne!==e?(xe=la(),xe!==e?(F=[F,G,ne,xe],N=F):(v=N,N=e)):(v=N,N=e)):(v=N,N=e)):(v=N,N=e);N!==e;)S.push(N),N=v,F=ge(),F!==e?(G=Sl(),G!==e?(ne=ge(),ne!==e?(xe=la(),xe!==e?(F=[F,G,ne,xe],N=F):(v=N,N=e)):(v=N,N=e)):(v=N,N=e)):(v=N,N=e);S!==e?(N=ge(),N!==e?(ie=m,b=o(L,S),m=b):(v=m,m=e)):(v=m,m=e)}else v=m,m=e;else v=m,m=e;return ee[Oe]={nextPos:v,result:m},m}function Sl(){var m,b,L=v*34+1,S=ee[L];return S?(v=S.nextPos,S.result):(m=v,i.substr(v,2)===s?(b=s,v+=2):(b=e,$===0&&J(l)),b===e&&(i.substr(v,2).toLowerCase()===h?(b=i.substr(v,2),v+=2):(b=e,$===0&&J(y))),b!==e&&(ie=m,b=x()),m=b,ee[L]={nextPos:v,result:m},m)}function la(){var m,b,L,S,N,F,G,ne,xe=v*34+2,Oe=ee[xe];if(Oe)return v=Oe.nextPos,Oe.result;if(m=v,b=ca(),b!==e){for(L=[],S=v,N=ge(),N!==e?(F=Ol(),F!==e?(G=ge(),G!==e?(ne=ca(),ne!==e?(N=[N,F,G,ne],S=N):(v=S,S=e)):(v=S,S=e)):(v=S,S=e)):(v=S,S=e);S!==e;)L.push(S),S=v,N=ge(),N!==e?(F=Ol(),F!==e?(G=ge(),G!==e?(ne=ca(),ne!==e?(N=[N,F,G,ne],S=N):(v=S,S=e)):(v=S,S=e)):(v=S,S=e)):(v=S,S=e);L!==e?(ie=m,b=o(b,L),m=b):(v=m,m=e)}else v=m,m=e;return ee[xe]={nextPos:v,result:m},m}function Ol(){var m,b,L=v*34+3,S=ee[L];return S?(v=S.nextPos,S.result):(m=v,i.substr(v,2)===T?(b=T,v+=2):(b=e,$===0&&J(j)),b===e&&(i.substr(v,3).toLowerCase()===z?(b=i.substr(v,3),v+=3):(b=e,$===0&&J(U))),b!==e&&(ie=m,b=X()),m=b,ee[L]={nextPos:v,result:m},m)}function ca(){var m,b,L,S,N,F,G,ne,xe=v*34+4,Oe=ee[xe];if(Oe)return v=Oe.nextPos,Oe.result;if(m=v,b=pa(),b!==e){for(L=[],S=v,N=ge(),N!==e?(F=El(),F!==e?(G=ge(),G!==e?(ne=pa(),ne!==e?(N=[N,F,G,ne],S=N):(v=S,S=e)):(v=S,S=e)):(v=S,S=e)):(v=S,S=e);S!==e;)L.push(S),S=v,N=ge(),N!==e?(F=El(),F!==e?(G=ge(),G!==e?(ne=pa(),ne!==e?(N=[N,F,G,ne],S=N):(v=S,S=e)):(v=S,S=e)):(v=S,S=e)):(v=S,S=e);L!==e?(ie=m,b=Y(b,L),m=b):(v=m,m=e)}else v=m,m=e;return ee[xe]={nextPos:v,result:m},m}function El(){var m,b,L=v*34+5,S=ee[L];return S?(v=S.nextPos,S.result):(m=v,i.substr(v,2)===W?(b=W,v+=2):(b=e,$===0&&J(ue)),b===e&&(i.substr(v,11).toLowerCase()===Me?(b=i.substr(v,11),v+=11):(b=e,$===0&&J(je))),b!==e&&(ie=m,b=ht()),m=b,m===e&&(m=v,i.substr(v,2)===vt?(b=vt,v+=2):(b=e,$===0&&J(hr)),b===e&&(i.substr(v,14).toLowerCase()===Nn?(b=i.substr(v,14),v+=14):(b=e,$===0&&J(Wp))),b!==e&&(ie=m,b=$p()),m=b,m===e&&(m=v,i.substr(v,2)===Hu?(b=Hu,v+=2):(b=e,$===0&&J(Gp)),b===e&&(i.substr(v,5).toLowerCase()===zu?(b=i.substr(v,5),v+=5):(b=e,$===0&&J(Uu))),b!==e&&(ie=m,b=Wu()),m=b,m===e&&(m=v,i.charCodeAt(v)===61?(b=Jp,v++):(b=e,$===0&&J(Zp)),b===e&&(i.substr(v,5).toLowerCase()===zu?(b=i.substr(v,5),v+=5):(b=e,$===0&&J(Uu))),b!==e&&(ie=m,b=Wu()),m=b,m===e&&(m=v,i.substr(v,2)===$u?(b=$u,v+=2):(b=e,$===0&&J(Kp)),b===e&&(i.substr(v,8).toLowerCase()===Yp?(b=i.substr(v,8),v+=8):(b=e,$===0&&J(Xp))),b!==e&&(ie=m,b=ef()),m=b,m===e&&(m=v,i.charCodeAt(v)===60?(b=tf,v++):(b=e,$===0&&J(nf)),b===e&&(i.substr(v,4).toLowerCase()===rf?(b=i.substr(v,4),v+=4):(b=e,$===0&&J(of))),b!==e&&(ie=m,b=sf()),m=b,m===e&&(m=v,i.charCodeAt(v)===62?(b=af,v++):(b=e,$===0&&J(uf)),b===e&&(i.substr(v,7).toLowerCase()===lf?(b=i.substr(v,7),v+=7):(b=e,$===0&&J(cf))),b!==e&&(ie=m,b=pf()),m=b)))))),ee[L]={nextPos:v,result:m},m)}function pa(){var m,b,L,S,N,F,G,ne,xe=v*34+6,Oe=ee[xe];if(Oe)return v=Oe.nextPos,Oe.result;if(m=v,b=fa(),b!==e){for(L=[],S=v,N=ge(),N!==e?(F=Tl(),F!==e?(G=ge(),G!==e?(ne=fa(),ne!==e?(N=[N,F,G,ne],S=N):(v=S,S=e)):(v=S,S=e)):(v=S,S=e)):(v=S,S=e);S!==e;)L.push(S),S=v,N=ge(),N!==e?(F=Tl(),F!==e?(G=ge(),G!==e?(ne=fa(),ne!==e?(N=[N,F,G,ne],S=N):(v=S,S=e)):(v=S,S=e)):(v=S,S=e)):(v=S,S=e);L!==e?(ie=m,b=o(b,L),m=b):(v=m,m=e)}else v=m,m=e;return ee[xe]={nextPos:v,result:m},m}function Tl(){var m,b,L=v*34+7,S=ee[L];return S?(v=S.nextPos,S.result):(m=v,i.charCodeAt(v)===43?(b=ff,v++):(b=e,$===0&&J(df)),b!==e&&(ie=m,b=hf()),m=b,m===e&&(m=v,i.charCodeAt(v)===45?(b=gf,v++):(b=e,$===0&&J(yf)),b!==e&&(ie=m,b=mf()),m=b),ee[L]={nextPos:v,result:m},m)}function fa(){var m,b,L,S,N,F,G,ne,xe=v*34+8,Oe=ee[xe];if(Oe)return v=Oe.nextPos,Oe.result;if(m=v,b=da(),b!==e){for(L=[],S=v,N=ge(),N!==e?(F=Rl(),F!==e?(G=ge(),G!==e?(ne=da(),ne!==e?(N=[N,F,G,ne],S=N):(v=S,S=e)):(v=S,S=e)):(v=S,S=e)):(v=S,S=e);S!==e;)L.push(S),S=v,N=ge(),N!==e?(F=Rl(),F!==e?(G=ge(),G!==e?(ne=da(),ne!==e?(N=[N,F,G,ne],S=N):(v=S,S=e)):(v=S,S=e)):(v=S,S=e)):(v=S,S=e);L!==e?(ie=m,b=o(b,L),m=b):(v=m,m=e)}else v=m,m=e;return ee[xe]={nextPos:v,result:m},m}function Rl(){var m,b,L=v*34+9,S=ee[L];return S?(v=S.nextPos,S.result):(m=v,i.charCodeAt(v)===42?(b=vf,v++):(b=e,$===0&&J(bf)),b!==e&&(ie=m,b=Cf()),m=b,m===e&&(m=v,i.charCodeAt(v)===47?(b=Pf,v++):(b=e,$===0&&J(wf)),b!==e&&(ie=m,b=xf()),m=b,m===e&&(m=v,i.charCodeAt(v)===37?(b=Vf,v++):(b=e,$===0&&J(Sf)),b!==e&&(ie=m,b=Of()),m=b)),ee[L]={nextPos:v,result:m},m)}function da(){var m,b,L,S,N,F,G,ne,xe=v*34+10,Oe=ee[xe];if(Oe)return v=Oe.nextPos,Oe.result;if(m=v,b=ha(),b!==e){for(L=[],S=v,N=ge(),N!==e?(F=Il(),F!==e?(G=ge(),G!==e?(ne=ha(),ne!==e?(N=[N,F,G,ne],S=N):(v=S,S=e)):(v=S,S=e)):(v=S,S=e)):(v=S,S=e);S!==e;)L.push(S),S=v,N=ge(),N!==e?(F=Il(),F!==e?(G=ge(),G!==e?(ne=ha(),ne!==e?(N=[N,F,G,ne],S=N):(v=S,S=e)):(v=S,S=e)):(v=S,S=e)):(v=S,S=e);L!==e?(ie=m,b=o(b,L),m=b):(v=m,m=e)}else v=m,m=e;return ee[xe]={nextPos:v,result:m},m}function Il(){var m,b,L=v*34+11,S=ee[L];return S?(v=S.nextPos,S.result):(m=v,i.charCodeAt(v)===94?(b=Ef,v++):(b=e,$===0&&J(Tf)),b===e&&(i.substr(v,5).toLowerCase()===Rf?(b=i.substr(v,5),v+=5):(b=e,$===0&&J(If))),b!==e&&(ie=m,b=Df()),m=b,ee[L]={nextPos:v,result:m},m)}function ha(){var m,b,L,S,N,F,G,ne,xe=v*34+12,Oe=ee[xe];if(Oe)return v=Oe.nextPos,Oe.result;if(m=v,b=ga(),b!==e){for(L=[],S=v,N=ge(),N!==e?(F=Dl(),F!==e?(G=ge(),G!==e?(ne=ga(),ne===e&&(ne=null),ne!==e?(N=[N,F,G,ne],S=N):(v=S,S=e)):(v=S,S=e)):(v=S,S=e)):(v=S,S=e);S!==e;)L.push(S),S=v,N=ge(),N!==e?(F=Dl(),F!==e?(G=ge(),G!==e?(ne=ga(),ne===e&&(ne=null),ne!==e?(N=[N,F,G,ne],S=N):(v=S,S=e)):(v=S,S=e)):(v=S,S=e)):(v=S,S=e);L!==e?(ie=m,b=Y(b,L),m=b):(v=m,m=e)}else v=m,m=e;return ee[xe]={nextPos:v,result:m},m}function Dl(){var m,b,L=v*34+13,S=ee[L];return S?(v=S.nextPos,S.result):(m=v,i.substr(v,2)===Gu?(b=Gu,v+=2):(b=e,$===0&&J(Af)),b===e&&(i.substr(v,8).toLowerCase()===Lf?(b=i.substr(v,8),v+=8):(b=e,$===0&&J(Mf)),b===e&&(i.substr(v,7).toLowerCase()===jf?(b=i.substr(v,7),v+=7):(b=e,$===0&&J(Nf)))),b!==e&&(ie=m,b=qf()),m=b,m===e&&(m=v,i.substr(v,11).toLowerCase()===_f?(b=i.substr(v,11),v+=11):(b=e,$===0&&J(Bf)),b===e&&(i.substr(v,10).toLowerCase()===Ff?(b=i.substr(v,10),v+=10):(b=e,$===0&&J(kf))),b!==e&&(ie=m,b=Qf()),m=b,m===e&&(m=v,i.substr(v,5).toLowerCase()===Hf?(b=i.substr(v,5),v+=5):(b=e,$===0&&J(zf)),b!==e&&(ie=m,b=Uf()),m=b,m===e&&(m=v,i.substr(v,5).toLowerCase()===Wf?(b=i.substr(v,5),v+=5):(b=e,$===0&&J($f)),b!==e&&(ie=m,b=Gf()),m=b))),ee[L]={nextPos:v,result:m},m)}function ga(){var m,b,L,S,N,F,G=v*34+14,ne=ee[G];return ne?(v=ne.nextPos,ne.result):(m=v,i.charCodeAt(v)===40?(b=Ju,v++):(b=e,$===0&&J(Zu)),b!==e?(L=ge(),L!==e?(S=_n(),S!==e?(N=ge(),N!==e?(i.charCodeAt(v)===41?(F=Ku,v++):(F=e,$===0&&J(Yu)),F===e&&(F=null),F!==e?(ie=m,b=Jf(S),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=nh(),m===e&&(m=rh(),m===e&&(m=Al(),m===e&&(m=sh())))),ee[G]={nextPos:v,result:m},m)}function nh(){var m,b,L,S,N,F=v*34+15,G=ee[F];return G?(v=G.nextPos,G.result):(m=v,b=ql(),b!==e?(i.charCodeAt(v)===40?(L=Ju,v++):(L=e,$===0&&J(Zu)),L!==e?(S=Ll(),S!==e?(i.charCodeAt(v)===41?(N=Ku,v++):(N=e,$===0&&J(Yu)),N===e&&(N=null),N!==e?(ie=m,b=Zf(b,S),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e)):(v=m,m=e),ee[F]={nextPos:v,result:m},m)}function rh(){var m,b,L,S,N=v*34+16,F=ee[N];return F?(v=F.nextPos,F.result):(m=v,i.charCodeAt(v)===33?(b=Kf,v++):(b=e,$===0&&J(Yf)),b===e&&(i.substr(v,6).toLowerCase()===Xf?(b=i.substr(v,6),v+=6):(b=e,$===0&&J(ed))),b!==e?(L=ge(),L!==e?(S=_n(),S!==e?(ie=m,b=td(S),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,b=Al(),b!==e?(L=ge(),L!==e?(S=ih(),S!==e?(ie=m,b=nd(b,S),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e)),ee[N]={nextPos:v,result:m},m)}function ih(){var m,b,L=v*34+17,S=ee[L];return S?(v=S.nextPos,S.result):(m=v,i.substr(v,5).toLowerCase()===rd?(b=i.substr(v,5),v+=5):(b=e,$===0&&J(id)),b!==e&&(ie=m,b=od()),m=b,m===e&&(m=v,i.substr(v,8).toLowerCase()===sd?(b=i.substr(v,8),v+=8):(b=e,$===0&&J(ad)),b!==e&&(ie=m,b=ud()),m=b),ee[L]={nextPos:v,result:m},m)}function Al(){var m,b,L,S,N,F=v*34+18,G=ee[F];return G?(v=G.nextPos,G.result):(m=v,b=ge(),b!==e?(i.substr(v,9)===Xu?(L=Xu,v+=9):(L=e,$===0&&J(ld)),L===e&&(i.substr(v,4)===el?(L=el,v+=4):(L=e,$===0&&J(cd))),L!==e?(ie=m,b=pd(),m=b):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,b=ge(),b!==e?(L=oh(),L!==e?(ie=m,b=fd(L),m=b):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,b=ge(),b!==e?(i.charCodeAt(v)===123?(L=dd,v++):(L=e,$===0&&J(hd)),L!==e?(S=ch(),S!==e?(i.charCodeAt(v)===125?(N=gd,v++):(N=e,$===0&&J(yd)),N!==e?(ie=m,b=md(S),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e)):(v=m,m=e))),ee[F]={nextPos:v,result:m},m)}function oh(){var m,b,L,S,N=v*34+19,F=ee[N];return F?(v=F.nextPos,F.result):(m=v,b=ah(),b!==e&&(ie=m,b=sa(b)),m=b,m===e&&(m=v,b=uh(),b!==e&&(ie=m,b=sa(b)),m=b,m===e&&(m=v,b=ql(),b!==e&&(ie=m,b=sa(b)),m=b,m===e&&(m=v,i.substr(v,2)===tl?(b=tl,v+=2):(b=e,$===0&&J(vd)),b!==e&&(ie=m,b=nl()),m=b,m===e&&(m=v,i.substr(v,2)===rl?(b=rl,v+=2):(b=e,$===0&&J(bd)),b!==e&&(ie=m,b=nl()),m=b,m===e&&(m=v,i.charCodeAt(v)===39?(b=il,v++):(b=e,$===0&&J(ol)),b!==e?(L=Ml(),L!==e?(i.charCodeAt(v)===39?(S=il,v++):(S=e,$===0&&J(ol)),S!==e?(ie=m,b=sl(L),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,i.charCodeAt(v)===34?(b=al,v++):(b=e,$===0&&J(ul)),b!==e?(L=Ml(),L!==e?(i.charCodeAt(v)===34?(S=al,v++):(S=e,$===0&&J(ul)),S!==e?(ie=m,b=sl(L),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e))))))),ee[N]={nextPos:v,result:m},m)}function sh(){var m,b,L,S,N=v*34+20,F=ee[N];return F?(v=F.nextPos,F.result):(m=v,i.charCodeAt(v)===91?(b=Cd,v++):(b=e,$===0&&J(Pd)),b!==e?(L=Ll(),L!==e?(i.charCodeAt(v)===93?(S=wd,v++):(S=e,$===0&&J(xd)),S!==e?(ie=m,b=Vd(L),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e),ee[N]={nextPos:v,result:m},m)}function Ll(){var m,b,L,S,N,F,G,ne,xe=v*34+21,Oe=ee[xe];if(Oe)return v=Oe.nextPos,Oe.result;if(m=v,b=_n(),b===e&&(b=null),b!==e){for(L=[],S=v,N=ge(),N!==e?(i.charCodeAt(v)===44?(F=ll,v++):(F=e,$===0&&J(cl)),F!==e?(G=ge(),G!==e?(ne=_n(),ne!==e?(N=[N,F,G,ne],S=N):(v=S,S=e)):(v=S,S=e)):(v=S,S=e)):(v=S,S=e);S!==e;)L.push(S),S=v,N=ge(),N!==e?(i.charCodeAt(v)===44?(F=ll,v++):(F=e,$===0&&J(cl)),F!==e?(G=ge(),G!==e?(ne=_n(),ne!==e?(N=[N,F,G,ne],S=N):(v=S,S=e)):(v=S,S=e)):(v=S,S=e)):(v=S,S=e);L!==e?(ie=m,b=Sd(b,L),m=b):(v=m,m=e)}else v=m,m=e;return ee[xe]={nextPos:v,result:m},m}function ah(){var m,b,L=v*34+22,S=ee[L];return S?(v=S.nextPos,S.result):(m=v,i.substr(v,4).toLowerCase()===Od?(b=i.substr(v,4),v+=4):(b=e,$===0&&J(Ed)),b!==e&&(ie=m,b=Td()),m=b,m===e&&(m=v,i.substr(v,5).toLowerCase()===Rd?(b=i.substr(v,5),v+=5):(b=e,$===0&&J(Id)),b!==e&&(ie=m,b=Dd()),m=b),ee[L]={nextPos:v,result:m},m)}function uh(){var m,b,L,S=v*34+23,N=ee[S];return N?(v=N.nextPos,N.result):(m=v,i.substr(v,2)===pl?(b=pl,v+=2):(b=e,$===0&&J(Ad)),b!==e?(L=gr(),L!==e?(ie=m,b=Ld(),m=b):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,Md.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,$===0&&J(jd)),b===e&&(b=null),b!==e?(L=lh(),L!==e?(ie=m,b=Nd(b,L),m=b):(v=m,m=e)):(v=m,m=e)),ee[S]={nextPos:v,result:m},m)}function lh(){var m,b,L,S,N=v*34+24,F=ee[N];return F?(v=F.nextPos,F.result):(m=v,b=gr(),b!==e?(i.charCodeAt(v)===46?(L=qd,v++):(L=e,$===0&&J(_d)),L!==e?(S=gr(),S!==e?(ie=m,b=Bd(),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,b=ph(),b!==e?(L=gr(),L===e&&(L=null),L!==e?(ie=m,b=Fd(),m=b):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,i.charCodeAt(v)===48?(b=kd,v++):(b=e,$===0&&J(Qd)),b!==e&&(ie=m,b=Hd()),m=b)),ee[N]={nextPos:v,result:m},m)}function ch(){var m,b,L,S=v*34+25,N=ee[S];if(N)return v=N.nextPos,N.result;if(m=v,b=[],L=Nl(),L!==e)for(;L!==e;)b.push(L),L=Nl();else b=e;return b!==e&&(ie=m,b=fl(b)),m=b,ee[S]={nextPos:v,result:m},m}function Ml(){var m,b,L,S=v*34+26,N=ee[S];if(N)return v=N.nextPos,N.result;if(m=v,b=[],L=jl(),L!==e)for(;L!==e;)b.push(L),L=jl();else b=e;return b!==e&&(ie=m,b=fl(b)),m=b,ee[S]={nextPos:v,result:m},m}function jl(){var m,b,L=v*34+27,S=ee[L];return S?(v=S.nextPos,S.result):(m=v,i.substr(v,2)===dl?(b=dl,v+=2):(b=e,$===0&&J(zd)),b!==e&&(ie=m,b=Ud()),m=b,m===e&&(m=v,i.substr(v,2)===hl?(b=hl,v+=2):(b=e,$===0&&J(Wd)),b!==e&&(ie=m,b=$d()),m=b,m===e&&(m=v,Gd.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,$===0&&J(Jd)),b!==e&&(ie=m,b=aa()),m=b)),ee[L]={nextPos:v,result:m},m)}function Nl(){var m,b,L=v*34+28,S=ee[L];return S?(v=S.nextPos,S.result):(m=v,Zd.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,$===0&&J(Kd)),b!==e&&(ie=m,b=aa()),m=b,ee[L]={nextPos:v,result:m},m)}function ql(){var m,b,L,S,N,F,G,ne=v*34+29,xe=ee[ne];if(xe)return v=xe.nextPos,xe.result;if(m=v,b=ui(),b!==e){if(L=[],S=v,N=gr(),N!==e){for(F=[],G=ui();G!==e;)F.push(G),G=ui();F!==e?(N=[N,F],S=N):(v=S,S=e)}else v=S,S=e;for(;S!==e;)if(L.push(S),S=v,N=gr(),N!==e){for(F=[],G=ui();G!==e;)F.push(G),G=ui();F!==e?(N=[N,F],S=N):(v=S,S=e)}else v=S,S=e;L!==e?(ie=m,b=aa(),m=b):(v=m,m=e)}else v=m,m=e;return ee[ne]={nextPos:v,result:m},m}function gr(){var m,b,L=v*34+30,S=ee[L];if(S)return v=S.nextPos,S.result;if(m=[],gl.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,$===0&&J(yl)),b!==e)for(;b!==e;)m.push(b),gl.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,$===0&&J(yl));else m=e;return ee[L]={nextPos:v,result:m},m}function ph(){var m,b,L=v*34+31,S=ee[L];if(S)return v=S.nextPos,S.result;if(m=[],ml.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,$===0&&J(vl)),b!==e)for(;b!==e;)m.push(b),ml.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,$===0&&J(vl));else m=e;return ee[L]={nextPos:v,result:m},m}function ui(){var m,b,L=v*34+32,S=ee[L];if(S)return v=S.nextPos,S.result;if(m=[],bl.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,$===0&&J(Cl)),b!==e)for(;b!==e;)m.push(b),bl.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,$===0&&J(Cl));else m=e;return ee[L]={nextPos:v,result:m},m}function ge(){var m,b,L=v*34+33,S=ee[L];if(S)return v=S.nextPos,S.result;for($++,m=[],Pl.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,$===0&&J(wl));b!==e;)m.push(b),Pl.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,$===0&&J(wl));return $--,m===e&&(b=e,$===0&&J(Yd)),ee[L]={nextPos:v,result:m},m}function _l(m,b,L){return L===void 0&&(L=!1),b.reduce(function(S,N){return new hn(N[1],S,N[3],L)},m)}function fh(m){return[].concat.apply([],m)}if(Eo=r(),Eo!==e&&v===i.length)return Eo;throw Eo!==e&&v<i.length&&J(Xd()),th(ua,Tt<i.length?i.charAt(Tt):null,Tt<i.length?Vl(Tt,Tt+1):Vl(Tt,Tt))}var wi=Pi,Vr=function(){function i(t,e){this.at=t,this.code=e}return i}(),Un=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=wi(this.patchExpression(t)),e.hasAsyncFunction()||(i.parserCache[t]=e)),e}catch(n){n instanceof zn&&(this.conditionError=new Vr(n.location.start.offset,n.message))}},Object.defineProperty(i.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),i.parserCache={},i}(),Sr=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)}}(),xi=function(){function i(t,e,n,r,o){this.operand=t,this.id=e,this.onComplete=n,this.processValue=new te,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=d.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}(),Or=function(){function i(t){this.parser=new Un,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&&se.warn("Invalid expression: "+this.expression),null;var r=new xi(this.operand,n,this.onComplete,t,e);return r.run(this.isAsync)},i.createExpressionExecutor=function(t){return new i(t)},i}(),Er=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=Or.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}(),ze=function(i){Sr(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}(Er),wt=function(i){Sr(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}(Er),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)}}(),Tr=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},zo=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=w.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}(),Vi=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}(),Ie=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}(),ce=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 nt,this.bindingsValue=new zo(this),ot.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 Vi(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)),d.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:d.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==Ie.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 nt;return this.eventList.push(t),t},i.prototype.onBaseCreating=function(){},i.prototype.getType=function(){return"base"},i.prototype.isDescendantOf=function(t){return w.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 Be().toJsonObject(this,t)},i.prototype.fromJSON=function(t,e){new Be().toObject(t,this,e),this.onSurveyLoad()},i.prototype.onSurveyLoad=function(){},i.prototype.clone=function(){var t=w.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=w.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 l=this.createNewArray(t);return l.splice.apply(l,Tr([0,0],s)),l}else return this.setPropertyValueDirectly(t,s),s}var h=this.getDefaultPropertyValue(t);if(h!==void 0)return h}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?se.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(h){h&&h.onPropertyValueChangedCallback&&h.onPropertyValueChangedCallback(t,e,n,o,r)};if(this.isInternal){s(this);return}o||(o=this);var l=this.getSurvey();l||(l=this),s(l),l!==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(l){o.onExecute(r,l)}),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 wt(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 l=new ut(e,n,t,s);l.onStrChanged=function(y,x){o.propertyValueChanged(t,y,x)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[t]=l;var h=this.getPropertyByName(t);return l.disableLocalization=h&&h.isLocalizable===!1,l},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 l=0;l<s.length;l++)t.push(s[l].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 l=Object.getPrototypeOf(r).push.call(r,s);if(!o.isDisposedValue){e&&e(s,r.length-1);var h=new At(r.length-1,0,[s],[]);o.propertyValueChanged(t,r,r,h),o.notifyArrayChanged(r,h)}return l},r.shift=function(){var s=Object.getPrototypeOf(r).shift.call(r);if(!o.isDisposedValue&&s){n&&n(s);var l=new At(r.length-1,1,[],[]);o.propertyValueChanged(t,r,r,l),o.notifyArrayChanged(r,l)}return s},r.unshift=function(s){var l=Object.getPrototypeOf(r).unshift.call(r,s);if(!o.isDisposedValue){e&&e(s,r.length-1);var h=new At(0,0,[s],[]);o.propertyValueChanged(t,r,r,h),o.notifyArrayChanged(r,h)}return l},r.pop=function(){var s=Object.getPrototypeOf(r).pop.call(r);if(!o.isDisposedValue){n&&n(s);var l=new At(r.length-1,1,[],[]);o.propertyValueChanged(t,r,r,l),o.notifyArrayChanged(r,l)}return s},r.splice=function(s,l){for(var h,y=[],x=2;x<arguments.length;x++)y[x-2]=arguments[x];s||(s=0),l||(l=0);var T=(h=Object.getPrototypeOf(r).splice).call.apply(h,Tr([r,s,l],y));if(y||(y=[]),!o.isDisposedValue){if(n&&T)for(var j=0;j<T.length;j++)n(T[j]);if(e)for(var j=0;j<y.length;j++)e(y[j],s+j);var z=new At(s,l,y,T);o.propertyValueChanged(t,r,r,z),o.notifyArrayChanged(r,z)}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 l=0;l<n.length;l++){var h=n[l];r&&i.createItemValue&&(h=i.createItemValue(h,this.getItemValueType())),Object.getPrototypeOf(e).push.call(e,h),o&&o(e[l])}var y=new At(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),d.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}(),At=function(){function i(t,e,n,r){this.index=t,this.deleteCount=e,this.itemsToAdd=n,this.deletedItems=r}return i}(),gn=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}(),nt=function(i){Ho(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t}(gn),Si=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)}}(),Rr=function(){function i(t,e,n,r,o){var s=this;r===void 0&&(r=null),o===void 0&&(o=function(l){queueMicrotask?queueMicrotask(l):l()}),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(l){return R.getComputedStyle(l)},this.model.updateCallback=function(l){l&&(s.isInitialized=!1),setTimeout(function(){s.process()},1)},typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(function(l){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&&ar(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}(),Wn=function(i){Si(t,i);function t(e,n,r,o,s,l){s===void 0&&(s=40);var h=i.call(this,e,n,r,o,l)||this;return h.minDimensionConst=s,h.recalcMinDimensionConst=!1,h}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}(Rr),q=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}(),Ir=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},$n={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"},ft=function(i){Ir(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 q().append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return $n},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()),Jt(e,this.cssClasses),this.actions.forEach(function(r){n.setActionCssClasses(r)})},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof vn?e:new be(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},yn([Ae({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),yn([V({})],t.prototype,"containerCss",void 0),yn([V({defaultValue:!1})],t.prototype,"isEmpty",void 0),yn([V({defaultValue:300})],t.prototype,"subItemsShowDelay",void 0),yn([V({defaultValue:300})],t.prototype,"subItemsHideDelay",void 0),t}(ce),Lt=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}(),Uo=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)}}(),$e=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},Dr={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"},Wt=function(i){Uo(t,i);function t(e,n,r,o,s){var l=i.call(this)||this;if(l.onSelectionChanged=n,l.allowSelection=r,l.elementId=s,l.onItemClick=function(y){if(!l.isItemDisabled(y)){l.isExpanded=!1,l.allowSelection&&(l.selectedItem=y),l.onSelectionChanged&&l.onSelectionChanged(y);var x=y.action;x&&x(y)}},l.onItemHover=function(y){l.mouseOverHandler(y)},l.isItemDisabled=function(y){return y.enabled!==void 0&&!y.enabled},l.isItemSelected=function(y){return l.areSameItems(l.selectedItem,y)},l.isItemFocused=function(y){return l.areSameItems(l.focusedItem,y)},l.getListClass=function(){return new q().append(l.cssClasses.itemsContainer).append(l.cssClasses.itemsContainerFiltering,!!l.filterString&&l.visibleActions.length!==l.visibleItems.length).toString()},l.getItemClass=function(y){var x=l.isItemSelected(y);return new q().append(l.cssClasses.item).append(l.cssClasses.itemWithIcon,!!y.iconName).append(l.cssClasses.itemDisabled,l.isItemDisabled(y)).append(l.cssClasses.itemFocused,l.isItemFocused(y)).append(l.cssClasses.itemSelected,!y.hasSubItems&&x).append(l.cssClasses.itemGroup,y.hasSubItems).append(l.cssClasses.itemGroupSelected,y.hasSubItems&&x).append(l.cssClasses.itemHovered,y.isHovered).append(l.cssClasses.itemTextWrap,l.textWrapEnabled).append(y.css).toString()},l.getItemStyle=function(y){var x=y.level||0;return{"--sjs-list-item-level":x+1}},Object.keys(e).indexOf("items")!==-1){var h=e;Object.keys(h).forEach(function(y){switch(y){case"items":l.setItems(h.items);break;case"onFilterStringChangedCallback":l.setOnFilterStringChangedCallback(h.onFilterStringChangedCallback);break;case"onTextSearchCallback":l.setOnTextSearchCallback(h.onTextSearchCallback);break;default:l[y]=h[y]}}),l.updateActionsIds()}else l.setItems(e),l.selectedItem=o;return l}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 be(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(Fe(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 Dr},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(Fe(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 be({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=Yo(r);r&&o&&(Lt.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?(Lt.focusElement(Lt.getNextElementPreorder(n)),e.preventDefault()):(e.key==="ArrowUp"||e.keyCode===38)&&(Lt.focusElement(Lt.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=Lt.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,$e([V({defaultValue:!0,onSet:function(e,n){n.onSet()}})],t.prototype,"searchEnabled",void 0),$e([V({defaultValue:!1})],t.prototype,"showFilter",void 0),$e([V({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),$e([V({defaultValue:!1})],t.prototype,"isExpanded",void 0),$e([V({})],t.prototype,"selectedItem",void 0),$e([V()],t.prototype,"focusedItem",void 0),$e([V({onSet:function(e,n){n.onFilterStringChanged(n.filterString)}})],t.prototype,"filterString",void 0),$e([V({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),$e([V({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),$e([V({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),$e([V({defaultValue:!0})],t.prototype,"renderElements",void 0),$e([V({defaultValue:!1})],t.prototype,"textWrapEnabled",void 0),$e([V({defaultValue:"sv-list-item-content"})],t.prototype,"itemComponent",void 0),t}(ft),Oi=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)}}(),Ue=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},mn=function(i){Oi(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 l=r;for(var h in l)s[h]=l[h]}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()},Ue([V()],t.prototype,"contentComponentName",void 0),Ue([V()],t.prototype,"contentComponentData",void 0),Ue([V({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),Ue([V({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),Ue([V({defaultValue:!0})],t.prototype,"showPointer",void 0),Ue([V({defaultValue:!1})],t.prototype,"isModal",void 0),Ue([V({defaultValue:!0})],t.prototype,"canShrink",void 0),Ue([V({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),Ue([V({defaultValue:!0})],t.prototype,"isFocusedContainer",void 0),Ue([V({defaultValue:""})],t.prototype,"cssClass",void 0),Ue([V({defaultValue:""})],t.prototype,"title",void 0),Ue([V({defaultValue:"auto"})],t.prototype,"overlayDisplayMode",void 0),Ue([V({defaultValue:"popup"})],t.prototype,"displayMode",void 0),Ue([V({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(ce);function Ei(i,t,e,n,r,o,s,l,h){return r===void 0&&(r=function(){}),o===void 0&&(o=function(){}),h===void 0&&(h="popup"),se.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:l,displayMode:h}}var Ti=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)}}(),me=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},Wo=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function Ar(i,t,e){return t.locOwner=e,Lr(i,t,t)}function Lr(i,t,e){var n,r=t.onSelectionChanged;t.onSelectionChanged=function(h){for(var y=[],x=1;x<arguments.length;x++)y[x-1]=arguments[x];l.hasTitle&&(l.title=h.title),r&&r(h,y)};var o=Gn(t,e);o.getTargetCallback=Ri;var s=Object.assign({},i,{component:"sv-action-bar-item-dropdown",popupModel:o,action:function(h,y){i.action&&i.action(),o.isFocusedContent=o.isFocusedContent||!y,o.show()}}),l=new be(s);return l.data=(n=o.contentComponentData)===null||n===void 0?void 0:n.model,l}function Gn(i,t){var e=new Wt(i);e.onSelectionChanged=function(o){i.onSelectionChanged&&i.onSelectionChanged(o),r.hide()};var n=t||{};n.onDispose=function(){e.dispose()};var r=new mn("sv-list",{model:e},n);return r.isFocusedContent=e.showFilter,r.onShow=function(){n.onShow&&n.onShow(),e.scrollToSelectedItem()},r}function Ri(i){return i==null?void 0:i.previousElementSibling}var vn=function(i){Ti(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||$n},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 q().append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return new q().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 q().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,me([V()],t.prototype,"tooltip",void 0),me([V()],t.prototype,"showTitle",void 0),me([V()],t.prototype,"innerCss",void 0),me([V()],t.prototype,"active",void 0),me([V()],t.prototype,"pressed",void 0),me([V()],t.prototype,"data",void 0),me([V()],t.prototype,"popupModel",void 0),me([V()],t.prototype,"needSeparator",void 0),me([V()],t.prototype,"template",void 0),me([V({defaultValue:"large"})],t.prototype,"mode",void 0),me([V()],t.prototype,"visibleIndex",void 0),me([V()],t.prototype,"disableTabStop",void 0),me([V()],t.prototype,"disableShrink",void 0),me([V()],t.prototype,"disableHide",void 0),me([V({defaultValue:!1})],t.prototype,"needSpace",void 0),me([V()],t.prototype,"ariaChecked",void 0),me([V()],t.prototype,"ariaExpanded",void 0),me([V({defaultValue:"button"})],t.prototype,"ariaRole",void 0),me([V()],t.prototype,"iconName",void 0),me([V({defaultValue:24})],t.prototype,"iconSize",void 0),me([V()],t.prototype,"markerIconName",void 0),me([V()],t.prototype,"css",void 0),me([V({defaultValue:!1})],t.prototype,"isPressed",void 0),me([V({defaultValue:!1})],t.prototype,"isHovered",void 0),t}(ce),be=function(i){Ti(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=Wo([],e.items);var n=Object.assign({},e);n.searchEnabled=!1;var r=Gn(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()},me([V()],t.prototype,"id",void 0),me([V({defaultValue:!0,onSet:function(e,n){n.raiseUpdate()}})],t.prototype,"_visible",void 0),me([V({onSet:function(e,n){n.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),me([V()],t.prototype,"_enabled",void 0),me([V()],t.prototype,"action",void 0),me([V()],t.prototype,"onFocus",void 0),me([V()],t.prototype,"_component",void 0),me([V()],t.prototype,"items",void 0),me([V({onSet:function(e,n){n.locTitleValue.text!==e&&(n.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(vn),$o=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}(),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)}}(),bn=function(i){Go(t,i);function t(){var e=i.call(this)||this;return e.minVisibleItemsCount=0,e.isResponsivenessDisabled=!1,e.dotsItem=Lr({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(l){return l.removePriority});s.sort(function(l,h){return l.removePriority-h.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(l){r+=l.minDimension,o+=l.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 Rr(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}(ft);(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 Mr(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 $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)}}(),jr=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),l=function(y){y===void 0&&(y=!0),e(y),clearTimeout(o),r.removeCancelCallback(l),t.removeEventListener("animationend",h)},h=function(y){y.target==y.currentTarget&&--s<=0&&l(!1)};s>0?(t.addEventListener("animationend",h),this.addCancelCallback(l),o=setTimeout(function(){l(!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}(),Ii=function(i){$t(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(l){n(),r.onNextRender(function(){r.clearHtmlElement(o,s)},l)})},t}(jr),Jn=function(i){$t(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.runGroupAnimation=function(e,n,r,o,s){var l=this,h={isAddingRunning:n.length>0,isDeletingRunning:r.length>0,isReorderingRunning:o.length>0},y=n.map(function(W){return e.getAnimatedElement(W)}),x=n.map(function(W){return e.getEnterOptions?e.getEnterOptions(W,h):{}}),T=r.map(function(W){return e.getAnimatedElement(W)}),j=r.map(function(W){return e.getLeaveOptions?e.getLeaveOptions(W,h):{}}),z=o.map(function(W){return e.getAnimatedElement(W.item)}),U=o.map(function(W){return e.getReorderOptions?e.getReorderOptions(W.item,W.movedForward,h):{}});n.forEach(function(W,ue){l.beforeAnimationRun(y[ue],x[ue])}),r.forEach(function(W,ue){l.beforeAnimationRun(T[ue],j[ue])}),o.forEach(function(W,ue){l.beforeAnimationRun(z[ue],U[ue])});var X=n.length+r.length+z.length,Y=function(W){--X<=0&&(s&&s(),l.onNextRender(function(){n.forEach(function(ue,Me){l.clearHtmlElement(y[Me],x[Me])}),r.forEach(function(ue,Me){l.clearHtmlElement(T[Me],j[Me])}),o.forEach(function(ue,Me){l.clearHtmlElement(z[Me],U[Me])})},W))};n.forEach(function(W,ue){l.runAnimation(y[ue],x[ue],Y)}),r.forEach(function(W,ue){l.runAnimation(T[ue],j[ue],Y)}),o.forEach(function(W,ue){l.runAnimation(z[ue],U[ue],Y)})},t}(jr),Cn=function(){function i(t,e,n){var r=this;this.animationOptions=t,this.update=e,this.getCurrentValue=n,this._debouncedSync=Mr(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(l),n.cancelCallback=void 0},l=function(h,y){y.isCancel?e&&e():t(),s()};this.cancelCallback=function(){e&&e(),s()},r.add(l)}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}(),Pn=function(i){$t(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.animation=new Ii,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}(Cn),xt=function(i){$t(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.animation=new Jn,e}return t.prototype._sync=function(e){var n=this,r,o;e=[].concat(e);var s=[].concat(this.getCurrentValue()),l=(r=this.animationOptions.allowSyncRemovalAddition)!==null&&r!==void 0?r:!0,h=zi(s,e,(o=this.animationOptions.getKey)!==null&&o!==void 0?o:function(U){return U});!l&&(h.reorderedItems.length>0||h.addedItems.length>0)&&(h.deletedItems=[],h.mergedItems=e),this.animationOptions.onCompareArrays&&this.animationOptions.onCompareArrays(h);var y=h.addedItems,x=h.reorderedItems,T=h.deletedItems,j=h.mergedItems,z=function(){n.animation.runGroupAnimation(n.animationOptions,y,T,x,function(){T.length>0&&n.update(e)})};[y,T,x].some(function(U){return U.length>0})?T.length<=0||x.length>0||y.length>0?(this.onNextRender(z,function(){n.update(e)}),this.update(j)):z():this.update(e)},t}(Cn),Zn=function(i){$t(t,i);function t(e,n,r,o){var s=i.call(this,e,n,r)||this;return s.mergeValues=o,s.animation=new Jn,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}(Cn),Di=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)}}(),Ke=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},Kn=function(i){Di(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=w.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},Ke([V({})],t.prototype,"hasDescription",void 0),Ke([V({localizable:!0,onSet:function(e,n){n.updateDescriptionVisibility(e)}})],t.prototype,"description",void 0),t}(ce),Yn;(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"})(Yn||(Yn={}));var qe=function(i){Di(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 Pn(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=ce.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,l=-1;if(!s&&n&&(l=e.getBoundingClientRect().left,s=l<0),!s&&B.isAvailable()){var h=B.getInnerHeight();if(s=h>0&&h<o,!s&&n){var y=B.getInnerWidth();s=y>0&&y<l}}return s},t.ScrollIntoView=function(e,n,r){if(e.scrollIntoView(n),typeof r=="function"){var o=null,s=0,l=function(){var h=e.getBoundingClientRect().top;if(h===o){if(s++>2){r();return}}else o=h,s=0;requestAnimationFrame(l)};B.requestAnimationFrame(l)}},t.ScrollElementToTop=function(e,n,r,o){var s=I.environment.root;if(!e||typeof s>"u")return!1;var l=s.getElementById(e);return t.ScrollElementToViewCore(l,!1,n,r,o)},t.ScrollElementToViewCore=function(e,n,r,o,s){if(!e||!e.scrollIntoView)return s&&s(),!1;var l=t.IsNeedScrollIntoView(e,n,r);return l?t.ScrollIntoView(e,o,s):s&&s(),l},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 bn:new ft;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 d.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 q().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(l,h){return h.effectiveWidth+l},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 q().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,dt(o)},r=function(o){e.isAnimatingCollapseExpand=!1,Ge(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 l=Fe(s.content);if(l)return(o=e.getWrapperElement())===null||o===void 0?void 0:o.querySelector(":scope "+l)}},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,Ke([V({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),Ke([V({defaultValue:!1})],t.prototype,"isDragMe",void 0),Ke([V({onSet:function(e,n){n.colSpan=e}})],t.prototype,"effectiveColSpan",void 0),Ke([V({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),Ke([V({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),Ke([V({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),Ke([V()],t.prototype,"rootStyle",void 0),Ke([V()],t.prototype,"_renderedIsExpanded",void 0),t}(Kn),Ai=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 l;(l=o.onAfterRenderElement)===null||l===void 0||l.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 nt,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 Kn&&(this._allowLineBreaks=((t=w.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(D.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=D.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 l=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,l)}},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:d.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}(),Nr=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=d.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]]:d.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 Li(i){return I&&I.confirmActionFunc?I.confirmActionFunc(i):confirm(i)}function Mt(i){var t=function(e){e?i.funcOnYes():i.funcOnNo&&i.funcOnNo()};I&&I.confirmActionAsync&&I.confirmActionAsync(i.message,t,i)||t(Li(i.message))}function wn(){if(typeof wn.isIEOrEdge>"u"){var i=navigator.userAgent,t=i.indexOf("MSIE "),e=i.indexOf("Trident/"),n=i.indexOf("Edge/");wn.isIEOrEdge=n>0||e>0||t>0}return wn.isIEOrEdge}function Xn(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 l=new Blob([r],{type:n});navigator&&navigator.msSaveBlob&&navigator.msSaveOrOpenBlob(l,t)}catch{}}function Gt(){return B.isAvailable()&&B.hasOwn("orientation")}var xn=function(i){return!!i&&!!("host"in i&&i.host)},Vn=function(i){var t=I.environment.root;return typeof i=="string"?t.getElementById(i):i};function Jo(i,t){if(typeof I.environment>"u")return!1;var e=I.environment.root,n=xn(e)?e.host.clientHeight:e.documentElement.clientHeight,r=i.getBoundingClientRect(),o=Math.max(n,B.getInnerHeight()),s=-50,l=o+t,h=r.top,y=r.bottom,x=Math.max(s,h),T=Math.min(l,y);return x<=T}function er(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:er(i.parentElement):xn(t)?t.host:t.documentElement}function tr(i){var t=I.environment;if(t){var e=t.root,n=e.getElementById(i);if(n){var r=er(n);r&&setTimeout(function(){return r.dispatchEvent(new CustomEvent("scroll"))},10)}}}function Mi(i){var t=B.getLocation();!i||!t||(t.href=qi(i))}function qr(i){return i?["url(",i,")"].join(""):""}function ji(i){return typeof i=="string"?/^data:((?:\w+\/(?:(?!;).)+)?)((?:;[^;]+?)*),(.+)$/.test(i):null}var nr={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 _r(i){var t=Ni(i);return t||rr(i)}function rr(i){var t="icon-",e=i.replace(t,""),n=nr[e]||e;return t+n}function Ni(i){var t=I.customIcons[i];return t?rr(t):(i=rr(i),t=I.customIcons[i],t||null)}function Sn(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],l=_r(n);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+l);var h=r.getElementsByTagName("title")[0];if(o)h||(h=R.getDocument().createElementNS("http://www.w3.org/2000/svg","title"),r.appendChild(h));else{h&&r.removeChild(h);return}h.textContent=o}}function qi(i){return i&&(i.toLocaleLowerCase().indexOf("javascript:")>-1?encodeURIComponent(i):i)}function Zo(i){return typeof i!="function"?i:i()}function mt(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 ir(i){if(mt(i)===void 0)return i}var On="sv-focused--by-key";function _i(i){var t=i.target;!t||!t.classList||t.classList.remove(On)}function or(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(On)&&e.classList.add(On);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 Bi(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 sr(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 Ko(i){return i.originalEvent||i}function Fi(i){i.preventDefault(),i.stopPropagation()}function Fe(i){if(!i)return i;var t=/\s*?([\w-]+)\s*?/g;return i.replace(t,".$1")}function Br(i){return getComputedStyle?Number.parseFloat(getComputedStyle(i).width):i.offsetWidth}function ar(i){return!!(i.offsetWidth||i.offsetHeight||i.getClientRects().length)}function Yo(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 ki(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 l=e.toString().length;if(e.modify("extend","forward","character"),e.toString().length==l)break}n=e.getRangeAt(0),n.setStart(n.endContainer,n.endOffset)}}function Jt(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]={}),Jt(n,t[e])):t[e]=n}}function En(i,t){var e={};Jt(t.list,e),Jt(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 Xo(i,t,e){var n=new ut(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"),l=o.getActionById("cancel");return l.title=k("cancel",e.locale),l.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",Qi(r),!0}function Qi(i){i.width="min-content"}function Hi(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 zi(i,t,e){var n=new Map,r=new Map,o=new Map,s=new Map;i.forEach(function(Y){var W=e(Y);if(!n.has(W))n.set(e(Y),Y);else throw new Error("keys must be unique")}),t.forEach(function(Y){var W=e(Y);if(!r.has(W))r.set(W,Y);else throw new Error("keys must be unique")});var l=[],h=[];r.forEach(function(Y,W){n.has(W)?o.set(W,o.size):l.push(Y)}),n.forEach(function(Y,W){r.has(W)?s.set(W,s.size):h.push(Y)});var y=[];o.forEach(function(Y,W){var ue=s.get(W),Me=r.get(W);ue!==Y&&y.push({item:Me,movedForward:ue<Y})});var x=new Array(i.length),T=0,j=Array.from(o.keys());i.forEach(function(Y,W){o.has(e(Y))?(x[W]=r.get(j[T]),T++):x[W]=Y});var z=new Map,U=[];x.forEach(function(Y){var W=e(Y);r.has(W)?U.length>0&&(z.set(W,U),U=[]):U.push(Y)});var X=new Array;return r.forEach(function(Y,W){z.has(W)&&z.get(W).forEach(function(ue){X.push(ue)}),X.push(Y)}),U.forEach(function(Y){X.push(Y)}),{reorderedItems:y,deletedItems:h,addedItems:l,mergedItems:X}}function es(i){if(R.isAvailable()){var t=R.getComputedStyle(i),e=t.paddingTop,n=t.paddingBottom,r=t.borderTopWidth,o=t.borderBottomWidth,s=t.marginTop,l=t.marginBottom,h=t.boxSizing,y=i.offsetHeight+"px";if(h=="content-box"){var x=i.offsetHeight;[o,r,n,e].forEach(function(T){x-=parseFloat(T)}),y=x+"px"}return{paddingTop:e,paddingBottom:n,borderTopWidth:r,borderBottomWidth:o,marginTop:s,marginBottom:l,heightFrom:"0px",heightTo:y}}else return}function Zt(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 dt(i){Zt(i,es(i))}function Ge(i){Array.isArray(i.__sv_created_properties)&&(i.__sv_created_properties.forEach(function(t){i.style.removeProperty(t)}),delete i.__sv_created_properties)}function Ui(i){return Math.floor(i*100)/100}var Tn=typeof globalThis<"u"?globalThis.document:(void 0).document,ts=Tn?{root:Tn,_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:Tn.head,stylesSheetsMountContainer:Tn.head}:void 0,Wi={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:Wi,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 Xo(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:ts,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}},Je=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 k(t,this.getLocale())},i.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},i}(),Ye=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)}}(),Fr=function(i){Ye(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}(Je),$i=function(i){Ye(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}(Je),kr=function(i){Ye(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}(Je),Qr=function(i){Ye(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}(Je),ns=function(i){Ye(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}(Je),rs=function(i){Ye(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}(Je),Gi=function(i){Ye(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}(Je),Rn=function(i){Ye(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}(Je),Ji=function(i){Ye(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}(Je),is=function(i){Ye(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}(Je),Zi=function(i){Ye(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}(Je),Ki=function(i){Ye(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}(Je),Xe=function(i){Ye(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}(Je),jt=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(){function i(t,e){e===void 0&&(e=null),this.value=t,this.error=e}return i}(),Nt=function(i){jt(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 Xe(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}(ce),Hr=function(){function i(){}return i.prototype.run=function(t){var e=this,n=[],r=null,o=null;this.prepareAsyncValidators();for(var s=[],l=t.getValidators(),h=0;h<l.length;h++){var y=l[h];!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 j=0;j<e.asyncValidators.length;j++)if(e.asyncValidators[j].isRunning)return;e.onAsyncCompleted(s)}})}l=t.getValidators();for(var h=0;h<l.length;h++){var y=l[h],x=y.validate(t.validatedValue,t.getValidatorTitle(),r,o);x&&x.error&&n.push(x.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}(),Yi=function(i){jt(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(!d.isNumber(e))return new rt(null,new kr(this.text,this.errorOwner));var s=new rt(d.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}(Nt),zr=function(i){jt(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 rt(null,this.createCustomError("textNoDigitsAllow"))}return this.minLength>0&&e.length<this.minLength?new rt(null,this.createCustomError(n)):this.maxLength>0&&e.length>this.maxLength?new rt(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}(Nt),Xi=function(i){jt(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 rt(null,this.createCustomError(this.getLocalizationFormatString("minSelectError",this.minCount))):this.maxCount&&s>this.maxCount?new rt(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}(Nt),Ur=function(i){jt(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 l=0;l<e.length;l++){var h=this.hasError(s,e[l],n);if(h)return h}return this.hasError(s,e,n)},t.prototype.hasError=function(e,n,r){return e.test(n)?null:new rt(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}(Nt),Wr=function(i){jt(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 rt(e,this.createCustomError(n))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationString("invalidEmail")},t}(Nt),$r=function(i){jt(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(h){s.isRunningValue=!1,s.onAsyncCompleted&&s.onAsyncCompleted(s.generateError(h,e,n))},this.isRunningValue=!0;var l=this.conditionRunner.run(r,o);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(l,e,n))},t.prototype.generateError=function(e,n,r){return e?null:new rt(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 ze(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}(Nt);w.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),w.addClass("numericvalidator",["minValue:number","maxValue:number"],function(){return new Yi},"surveyvalidator"),w.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],function(){return new zr},"surveyvalidator"),w.addClass("answercountvalidator",["minCount:number","maxCount:number"],function(){return new Xi},"surveyvalidator"),w.addClass("regexvalidator",["regex",{name:"caseInsensitive:boolean",alternativeName:"insensitive"}],function(){return new Ur},"surveyvalidator"),w.addClass("emailvalidator",[],function(){return new Wr},"surveyvalidator"),w.addClass("expressionvalidator",["expression:condition"],function(){return new $r},"surveyvalidator");var eo=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||In.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}(),In=function(){function i(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new gn}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 eo(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}(),to=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}(),Dn=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 sr(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&&sr(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}(),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)}}(),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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},Gr=function(){function i(t,e,n){this.name=t,this.canRun=e,this.doComplete=n,this.runSecondCheck=function(r){return!1}}return i}(),_e=function(i){os(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 ut(this,!0),this.locProcessedTitle.sharedData=n,n},Object.defineProperty(t.prototype,"commentTextAreaModel",{get:function(){return this.commentTextAreaModelValue||(this.commentTextAreaModelValue=new Dn(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 wt(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 Gr(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 wt(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 te().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=In.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 q().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 q().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 q().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 q().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 q().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 q().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 q().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 q().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 q().append(e.title).append(n.question.titleRequired,this.isRequired);e.title=o.toString();var s=new q().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 l in r)e[l]=r[l]}}},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 l=this.survey.isSmoothScrollEnabled?{behavior:"smooth"}:void 0;this.survey.scrollElementToTop(this,this,null,this.id,n,l,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;qe.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=d.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());(!d.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:d.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=d.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 l=this;o===void 0&&(o=null),s===void 0&&(s=null);var h=function(y){l.runExpressionSetValueCore(y,r)};this.runDefaultValueExpression(e,o,s,h)||h(n)},t.prototype.convertFuncValuetoQuestionValue=function(e){return d.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(l){s.runExpressionSetValue(l)}),n||(n=this.defaultValueExpression?this.data.getFilteredValues():{}),r||(r=this.defaultValueExpression?this.data.getFilteredProperties():{}),e&&e.canRun&&(e.onRunComplete=function(l){l==null&&(l=s.defaultValue),s.isChangingViaDefaultValue=!0,o(l),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 q().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=w.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 Be().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 Xe(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 l=this.fireSurveyValidation();l&&e.push(l)}}},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 Fr(this.requiredErrorText,this);s.onUpdateErrorTextCallback=function(h){h.text=o.requiredErrorText},e.push(s)}if(!this.isEmpty()&&this.customWidget){var l=this.customWidget.validate(this);l&&e.push(this.addCustomError(l))}},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 Hr,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||se.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 ur(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)&&d.isNumber(this[s])&&(n=0),this.updateBindingProp(s,n)}},t.prototype.updateBindingProp=function(e,n){this[e]=n},t.prototype.getComponentName=function(){return to.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,l=void 0;this.triggerResponsivenessCallback=function(h){h&&(l=void 0,n.renderAs="default",s=!1);var y=function(){var x=e.querySelector(r);!l&&n.isDefaultRendering()&&(l=x.scrollWidth),s||!ar(x)?s=!1:s=n.processResponsiveness(l,Br(x))};h?setTimeout(y,1):y()},this.resizeObserver=new ResizeObserver(function(h){B.requestAnimationFrame(function(){n.triggerResponsiveness(!1)})}),this.onMobileChangedCallback=function(){setTimeout(function(){var h=e.querySelector(r);n.processResponsiveness(l,Br(h))},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,qt([V({defaultValue:!1})],t.prototype,"_isMobile",void 0),qt([V()],t.prototype,"forceIsInputReadOnly",void 0),qt([V()],t.prototype,"ariaExpanded",void 0),qt([V({localizable:!0,onSet:function(e,n){return n.resetRenderedCommentPlaceholder()}})],t.prototype,"commentPlaceholder",void 0),qt([V()],t.prototype,"renderAs",void 0),qt([V({defaultValue:!1})],t.prototype,"inMatrixMode",void 0),t}(qe);function ur(i){if(!i)return i;for(i=i.trim().replace(/[\{\}]+/g,"");i&&i[0]===I.expressionDisableConversionChar;)i=i.substring(1);return i}w.addClass("question",[{name:"!name",onSettingValue:function(i,t){return ur(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 ur(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}}]),w.addAlterNativeClassName("question","questionbase");var no=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,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 l=i.length-1;l>=0;l--)(s=i[l])&&(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){no(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,l){l==o.value&&(l=void 0),o.propertyValueChanged("text",s,l)},o.locTextValue.onGetTextCallback=function(s){return s||(d.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"&&ot.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],l=s&&typeof s.getType=="function"?s.getType():r??"itemvalue",h=w.createClass(l);h.setData(s),s.originalItem&&(h.originalItem=s.originalItem),e.push(h)}},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=d.isValueEmpty(n),o=0;o<e.length;o++)if(r&&d.isValueEmpty(e[o].value)||d.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,l,h){return l===void 0&&(l=!0),t.runConditionsForItemsCore(e,n,r,o,s,!0,l,h)},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,l,h,y){h===void 0&&(h=!0),o||(o={});for(var x=o.item,T=o.choice,j=!1,z=0;z<e.length;z++){var U=e[z];o.item=U.value,o.choice=U.value;var X=h&&U.getConditionRunner?U.getConditionRunner(l):!1;X||(X=r);var Y=!0;X&&(Y=X.run(o,s)),y&&(Y=y(U,Y)),n&&Y&&n.push(U);var W=l?U.isVisible:U.isEnabled;Y!=W&&(j=!0,l?U.setIsVisible&&U.setIsVisible(Y):U.setIsEnabled&&U.setIsEnabled(Y))}return x?o.item=x:delete o.item,T?o.choice=T:delete o.choice,j},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(!d.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,d.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=w.getProperties(this.getType());(!n||n.length==0)&&(n=w.getProperties("itemvalue"));for(var r=new Be,o=0;o<n.length;o++){var s=n[o];s.name==="text"&&!this.locText.hasNonDefaultText()&&d.isTwoValueEquals(this.value,this.text,!1,!0,!1)||r.valueToJson(this,e,s)}return e},t.prototype.setData=function(e,n){if(!d.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 Be().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 ze(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new ze(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 _e&&n.isItemSelected&&this.selectedValue===void 0&&(this.selectedValue=new Ie(function(){return n.isItemSelected(e)})),this.selectedValue},enumerable:!1,configurable:!0}),t.prototype.getComponent=function(){return this._locOwner instanceof _e?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){},Jr([V({defaultValue:!0})],t.prototype,"_visible",void 0),Jr([V()],t.prototype,"selectedValue",void 0),Jr([V()],t.prototype,"icon",void 0),t}(vn);ce.createItemValue=function(i,t){var e=null;return t?e=Be.metaData.createClass(t,{}):typeof i.getType=="function"?e=new re(null,void 0,i.getType()):e=new re(null),e.setData(i),e},ce.itemValueLocStrChanged=function(i){re.locStrsChanged(i)},gt.getItemValuesDefaultValue=function(i,t){var e=new Array;return re.setData(e,Array.isArray(i)?i:[],t),e},w.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)}}(),u=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 l=e[s];l===this||o.indexOf(l.name)<0||(l.doCalculation(e,n,r),n[l.name]=l.value)}},t.prototype.ensureExpression=function(e){var n=this;this.expressionRunner||(this.expressionRunner=new wt(this.expression),this.expressionRunner.onRunComplete=function(r){d.isTwoValueEquals(r,n.value,!1,!0,!1)||n.setValue(r),n.unlocCalculation()})},t}(ce);w.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],function(){return new u},"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 ze(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}(ce),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);w.addClass("expressionitem",["expression:condition"],function(){return new c},"base"),w.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new f},"expressionitem"),w.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],function(){return new g},"expressionitem");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)}}(),_=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}(),Q=function(i){A(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 _;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=w.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 w.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=w.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 l=o[s];if(l){var h=this.getItemValueCallback?this.getItemValueCallback(l):this.getValue(l),y=this.createItemValue(h);this.setTitle(y,l),this.setCustomProperties(y,l),this.attachOriginalItems&&(y.originalItem=l);var x=this.getImageLink(l);x&&(y.imageLink=x),r.push(y)}}else this.allowEmptyResponse||(this.error=new rs(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],l=this.getValueCore(n,this.getPropertyBinding(s.name));this.isValueEmpty(l)||(e[s.name]=l)}},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 ns(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}(ce),de=function(i){A(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return Object.defineProperty(t,"EncodeParameters",{get:function(){return Q.EncodeParameters},set:function(e){Q.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){Q.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return I.web.onBeforeRequestChoices},set:function(e){I.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t}(Q);w.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 Q});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)}}(),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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},lt=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 ze(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 q().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"},Pe([V()],t.prototype,"verticalAlign",void 0),Pe([V()],t.prototype,"alternateRows",void 0),t}(_e);w.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 We=function(){function i(){}return i}(),Kt=function(){function i(t,e){this.name=t,this.returnDisplayValue=e,this.isExists=!1,this.canProcess=!0}return i}(),Vt=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],l=this.getName(t.substring(s.start+1,s.end));if(l){var h=new Kt(l,e);if(this.onProcess(h),!h.isExists){h.canProcess&&(this.hasAllValuesOnLastRunValue=!1);continue}d.isValueEmpty(h.value)&&(this.hasAllValuesOnLastRunValue=!1);var y=d.isValueEmpty(h.value)?"":h.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 Kt(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 l=new We;l.start=r,l.end=s,e.push(l)}r=-1}return e},i.prototype.getName=function(t){if(t)return t.trim()},i}(),lr=function(){function i(t){var e=this;this.variableName=t,this.textPreProcessor=new Vt,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 te().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 te().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 te().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}(),_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)}}(),ba=function(){function i(t,e){this.name=t,this.json=e;var n=this;w.addClass(t,[],function(r){return ro.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 l=w.findProperty(e,s);l&&n.push(l)}),n}var r=[];for(var o in this.json.questionJSON)r.push(o);return w.getDynamicPropertiesByTypes(this.name,e,r)},i}(),ro=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(w.findClass(e))throw"There is already class with name '"+e+"'";var n=new ba(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){w.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 wa(t,e)},i.prototype.createCustomModel=function(t,e){return this.onCreateCustom?this.onCreateCustom(t,e):new Pa(t,e)},i.Instance=new i,i}(),Ca=function(i){_t(t,i);function t(e,n){var r=i.call(this,e)||this;return r.customQuestion=n,ot.createProperties(r),qe.CreateDisabledDesignElements=!0,r.locQuestionTitle=r.createLocalizableString("questionTitle",r),r.locQuestionTitle.setJson(r.customQuestion.defaultQuestionTitle),r.createWrapper(),qe.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 Xe(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),l=this.convertDataValue(e,n);this.valueToDataCallback&&(l=this.valueToDataCallback(l)),this.data.setValue(s,l,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),!d.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}(_e),Pa=function(i){_t(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,l){var h=e.getDynamicProperty(n);h&&e.propertyValueChanged(n,r,o,l)})},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||!w.findClass(o))throw"type attribute in questionJSON is empty or incorrect";r=w.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=w.createClass("text"),se.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)&&w.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}(Ca),Wl=function(i){_t(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}(lr),wa=function(i){_t(t,i);function t(e,n){var r=i.call(this,e,n)||this;return r.customQuestion=n,r.settingNewValue=!1,r.textProcessing=new Wl(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 q().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,l){e.setNewValueIntoQuestion(l.name,e.editingObjValue[l.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=w.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();d.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,l=this.contentPanel.questions.length+1;s<l&&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,l=0;l<r.length;l++)e.push({name:o+"."+r[l].name,text:s+"."+r[l].title,question:r[l]})},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=d.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(),l=e?e[s]:void 0,h=r[o];!this.isTwoValueEquals(h.value,l)&&(l!==void 0||!h.isEmpty())&&(h.value=l)}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,l){n.customQuestion.onAfterRenderContentElement(n,s,l)}},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"group"},enumerable:!1,configurable:!0}),t.ItemVariableName="composite",t}(Ca),we=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),Yt.Instance.registerElement(t,e,n)},i.prototype.registerCustomQuestion=function(t){Yt.Instance.registerCustomQuestion(t)},i.prototype.unregisterElement=function(t,e){e===void 0&&(e=!1),Yt.Instance.unregisterElement(t,e)},i.prototype.clear=function(){Yt.Instance.clear()},i.prototype.getAllTypes=function(){return Yt.Instance.getAllTypes()},i.prototype.createQuestion=function(t,e){return Yt.Instance.createElement(t,e)},i.Instance=new i,i}(),Yt=function(){function i(){var t=this;this.creatorHash={},this.registerCustomQuestion=function(e,n){n===void 0&&(n=!0);var r=function(o){var s=w.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&&w.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=ro.Instance.getCustomQuestionByName(t);return r?ro.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}(),$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)}}(),ss=function(i){$l(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){io().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||!d.isNumber(e)?e:parseFloat(e.toFixed(this.precision))},t.prototype.getValueAsStr=function(e){if(this.displayStyle=="date"){var n=M("question-expression",e);if(n&&n.toLocaleDateString)return n.toLocaleDateString()}if(this.displayStyle!="none"&&d.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}(_e);function io(){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"]}w.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return io()},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 ss("")},"question"),we.Instance.registerQuestion("expression",function(i){return new ss(i)});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)}}();function oo(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 Jl(i,t,e,n){oo(i,t,e,n),i.locPlaceholder&&i.locPlaceholder.isEmpty&&!e.locPlaceholder.isEmpty&&(i.optionsCaption=e.optionsCaption)}var as={dropdown:{onCellQuestionUpdate:function(i,t,e,n){Jl(i,t,e,n)}},checkbox:{onCellQuestionUpdate:function(i,t,e,n){oo(i,t,e,n),i.colCount=t.colCount>-1?t.colCount:e.columnColCount}},radiogroup:{onCellQuestionUpdate:function(i,t,e,n){oo(i,t,e,n),i.colCount=t.colCount>-1?t.colCount:e.columnColCount}},tagbox:{onCellQuestionUpdate:function(i,t,e,n){oo(i,t,e,n)}},text:{},comment:{},boolean:{onCellQuestionUpdate:function(i,t,e,n){i.renderAs=t.renderAs}},expression:{},rating:{}},Zr=function(i){Gl(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 as)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){io().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=as[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),l=this.templateQuestion?this.templateQuestion.getType():"";s!==l&&(this.templateQuestion&&this.removeProperties(l),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(h,y){o.propertyValueChanged(y.name,y.oldValue,y.newValue,y.arrayChanges,y.target)}),this.templateQuestion.onItemValuePropertyChanged.add(function(h,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=w.createClass(e);return n||(n=w.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 Be().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(l){o[l]=r.jsonObj[l]}),o.choicesOrder==="random"){o.choicesOrder="none";var s=this.templateQuestion.visibleChoices;Array.isArray(s)&&(o.choices=s)}new Be().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 l=e.visibleChoices;r.templateQuestion.choices=l,r.propertyValueChanged("choices",l,l)}}}},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)}w.hasOriginalProperty(this,e)&&this.colOwner.onColumnPropertyChanged(this,e,r)}},t.prototype.doItemValuePropertyChanged=function(e,n,r,o,s){w.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 w.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);w.addDynamicPropertiesIntoObj(this,this.templateQuestion,n)},t}(ce);w.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=Zr.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 io()},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 Zr("")});var 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)}}(),Kr=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},Zl=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function xa(i,t,e){return i+(t?"-error":"")+(e?"-detail":"")}var St=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)),xa(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 q().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 q().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 q().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}(),ls=function(i){us(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 xa(((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 q().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,Kr([V({defaultValue:!1})],t.prototype,"isGhostRow",void 0),Kr([V({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),Kr([V({defaultValue:!0})],t.prototype,"visible",void 0),t}(ce),Va=function(i){us(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 q().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}(ls),cs=function(i){us(t,i);function t(e){var n=i.call(this)||this;return n.matrix=e,n._renderedRows=[],n.renderedRowsAnimation=new xt(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){dt(s)})},r=function(o){o.querySelectorAll(":scope > td > *").forEach(function(s){Ge(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 l=this.createDetailPanelRow(e,this.rows[r]);this.rows.splice(o+1,0,l)}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 ls(e,n)},t.prototype.createErrorRenderedRow=function(e){return new Va(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 l=this.createTextCell(s[r].locText);this.setHeaderCellCssClasses(l),l.row=s[r],this.headerRow.cells.push(l)}if(this.matrix.hasFooter){var l=this.createTextCell(this.matrix.getFooterText());this.setHeaderCellCssClasses(l),this.headerRow.cells.push(l)}}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 q().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 q().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 l=[],h=0;h<o.cells.length;h++)this.showCellErrorsTop&&!s.cells[h].isEmpty&&l.push(s.cells[h]),l.push(o.cells[h]),this.showCellErrorsBottom&&!s.cells[h].isEmpty&&l.push(s.cells[h]);o.cells=l,e.splice(r,0,o)}else e.splice.apply(e,Zl([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 St,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 q().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 St,l=this.matrix.allowAdaptiveActions?new bn:new ft;this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(l.cssClasses=this.matrix.survey.getCss().actionBar),l.setItems(o);var h=new re(l);return s.item=h,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 be({id:"remove-row",iconName:"icon-delete-24x24",iconSize:"auto",component:"sv-action-bar-item",innerCss:new q().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 be({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 be({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 be({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 q().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 l=e.cells[s];if(l.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(l.column))this.createMutlipleEditCells(n,l);else{l.column.isShowInMultipleColumns&&l.question.visibleChoices.map(function(y){return y.hideCaption=!1});var o=this.createEditCell(l);n.cells.push(o),this.setCellWidth(l.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 l=new St;l.isEmpty=!0,l.isDetailRowCell=n.isDetailRow,n.cells.push(l)}}},t.prototype.createDetailPanelRow=function(e,n){var r=this.matrix.isDesignMode,o=this.createRenderedRow(this.cssClasses,!0);o.row=e;var s=new St;this.matrix.hasRowText&&(s.colSpans=2),s.isEmpty=!0,r||o.cells.push(s);var l=null;this.hasActionCellInRows("end")&&(l=new St,l.isEmpty=!0);var h=new St;return h.panel=e.detailPanel,h.colSpans=n.cells.length-(r?0:s.colSpans)-(l?l.colSpans:0),h.className=this.cssClasses.detailPanelCell,o.cells.push(h),l&&(this.matrix.isMobile?this.addRowActionsCell(e,o,"end"):o.cells.push(l)),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),l=this.createErrorRow(s);this.showCellErrorsTop?(n.push(l),n.push(s)):(n.push(s),n.push(l))}}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 l=this.createVerticalRow(n,r,o[s],s),h=this.createErrorRow(l);this.showCellErrorsTop?(e.push(h),e.push(l)):(e.push(l),e.push(h))}},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 l=r?r.locText:e.locTitle,h=this.createTextCell(l);h.column=e,h.className=new q().append(h.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell).toString(),s.cells.push(h)}for(var y=this.matrix.visibleRows,x=0;x<y.length;x++){var T=r,j=o>=0?o:x,z=y[x].cells[n],U=r?z.question.visibleChoices:void 0;U&&j<U.length&&(T=U[j]);var X=this.createEditCell(z,T);X.item=T,X.choiceIndex=j,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 l=this.createEditCell(n,r?void 0:o[s]);r||(this.setItemCellCssClasses(l),l.choiceIndex=s),e.cells.push(l)}},t.prototype.setItemCellCssClasses=function(e){e.className=new q().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 St;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 St;return r.question=e.question,r.row=e.row,r.matrix=this.matrix,r.isErrorsCell=!0,r.className=new q().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 q().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 St;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 q().append(this.cssClasses.cell).append(this.cssClasses.emptyCell).append(this.cssClasses.errorsCell,e).toString(),n},Kr([Ae({onPush:function(e,n,r){r.updateRenderedRows()},onRemove:function(e,n,r){r.updateRenderedRows()}})],t.prototype,"rows",void 0),Kr([Ae()],t.prototype,"_renderedRows",void 0),t}(ce),so=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(){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)},ot.getProperties(t.getType()).forEach(function(s){var l=s.name;t[l]!==void 0&&(o[l]=t[l])}),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}(),Kl=function(i){so(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=w.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 K.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(ps),Yl=function(i){so(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==Bt.IndexVariableName?(e.isExists=!0,e.value=this.row.rowIndex,!0):[Bt.RowValueVariableName,Bt.RowNameVariableName].indexOf(e.name)>-1?(e.isExists=!0,e.value=this.row.rowName,!0):!1},t}(lr),Bt=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 Yl(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()+ce.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,l=t?t[r.getValueName()+ce.commentSuffix]:"";l==null&&(l=""),r.updateValueFromSurvey(o),(l||this.isTwoValueEquals(s,r.comment))&&r.updateCommentFromSurvey(l),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(!d.isValueEmpty(e))for(var n=0;n<t.length;n++){var r=t[n].getValueName(),o=this.editingObj?w.getObjPropertyValue(this.editingObj,r):e[r];d.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=d.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 ze(n).run(t,e)):this.visible=!0;for(var l=0;l<this.cells.length;l++)l>0&&Jt(this.value,s),t[i.RowVariableName]=s,this.cells[l].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+ce.commentSuffix:t,s=e,l=this.getQuestionByName(t),h=this.data.onRowChanging(this,o,r);if(l&&!this.isTwoValueEquals(h,s)&&(this.isSettingValue=!0,n?l.comment=h:l.value=h,this.isSettingValue=!1,r=this.value),!(this.data.isValidateOnValueChanging&&this.hasQuestonError(l))){var y=e==null&&!l||n&&!e&&!!l;this.data.onRowChanged(this,o,r,y),o&&this.runTriggers(ao.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),l=s?o:r;this.isSettingValue=!0,n?l.comment=e:l.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++)d.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(d.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 l=this.getCellByColumn(t);l&&this.updateCellOnColumnItemValueChanged(l,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 l=o[s].question;!l||!l.visible||(l.onCompletedAsyncValidators=function(y){n()},!(e&&e.isOnValueChanged===!0&&l.isEmpty())&&(r=l.hasErrors(t,e)||r))}if(this.hasPanel){this.ensureDetailPanel();var h=this.detailPanel.hasErrors(t,!1,e);!e.hideErroredPanel&&h&&t&&(e.isSingleDetailPanel&&(e.hideErroredPanel=!0),this.showDetailPanel()),r=h||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 l=t.question[e];if(Array.isArray(l)){var h=r==="value"?s:n.value,y=re.getItemByValue(l,h);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(!d.isValueEmpty(s)){o.question.value=s;var l=r.name+ce.commentSuffix;t&&!d.isValueEmpty(t[l])&&(o.question.comment=t[l])}}this.isSettingValue=!1},i.prototype.isTwoValueEquals=function(t,e){return d.isTwoValueEquals(t,e,!1,!0,!1)},i.prototype.getCellValue=function(t,e){return this.editingObj?w.getObjPropertyValue(this.editingObj,e):t?t[e]:void 0},i.prototype.createCell=function(t){return new ps(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}(),ao=function(i){so(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 Kl(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=d.getUnbindValue(this.value),i.prototype.runCondition.call(this,e,n,""),o++;while(!d.isTwoValueEquals(s,this.value)&&o<3)},t.prototype.updateCellOnColumnChanged=function(e,n,r){e.updateCellQuestion()},t}(Bt),cr=function(i){so(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=we.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 w.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 cs(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 w.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,l){if(this.generatedVisibleRows)for(var h=0;h<this.generatedVisibleRows.length;h++)this.generatedVisibleRows[h].updateCellQuestionOnColumnItemValueChanged(e,n,r,o,s,l)},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,l=this.getColumnByName(r);return l?s=l.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[Bt.RowVariableName];i.prototype.runCondition.call(this,e,n);var o=0,s;do s=d.getUnbindValue(this.totalValue),this.runCellsCondition(e,n),this.runTotalsCondition(e,n),o++;while(!d.isTwoValueEquals(s,this.totalValue)&&o<3);this.updateVisibilityBasedOnRows(),e[Bt.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 ze(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,l=n&&s,h=l&&e.isFilteredMultipleColumns,y=h?e.getVisibleChoicesInCell:[],x=new Array;if(l)for(var T=0;T<s.length;T++){var j=s[T].cells[e.index],z=j==null?void 0:j.question;if(z&&z.isVisible)if(o=!0,h)this.updateNewVisibleChoices(z,x);else break}return e.hasVisibleCell=o&&e.isColumnsVisibleIf,h&&(e.setVisibleChoicesInCell(x),!d.isArraysEqual(y,x,!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 Zr(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 l=this.getRowValue(o),h=s.value;this.isTwoValueEquals(l,h)||(r=this.getNewValueOnRowChanged(s,"",h,!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 ao(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 l=o[s],h=n.getQuestionByName(l);if(h||(h=this.getSharedQuestionByName(l,n)),h){var y=h.getDisplayValue(e,r[l]);e&&h.title&&h.title!==l?(r[h.title]=y,delete r[l]):r[l]=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 l={name:s.dataName,title:s.text,value:s.value,displayValue:n.getRowDisplayValue(!1,s,s.value),getString:function(h){return typeof h=="object"?JSON.stringify(h):h},isNode:!0,data:s.cells.map(function(h){return h.question.getPlainData(e)}).filter(function(h){return!!h})};return(e.calculations||[]).forEach(function(h){l[h.propertyName]=s[h.propertyName]}),l}),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,l=this.getConditionObjectsRowIndeces();s&&l.push(-1);for(var h=0;h<l.length;h++){var y=l[h],x=y>-1?this.getConditionObjectRowName(y):"row";if(x)for(var T=y>-1?this.getConditionObjectRowText(y):"row",j=y>-1||n===!0,z=j&&y===-1?".":"",U=(j?this.getValueName():"")+z+x+".",X=(j?this.processedTitle:"")+z+T+".",Y=0;Y<r.length;Y++){var W=r[Y];if(!(y===-1&&n===W)){var ue={name:U+W.name,text:X+W.fullTitle,question:this};y===-1&&n===!0?ue.context=this:o&&U.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 qe.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);var e=ce.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=!d.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 l=0;l<s.length;l++)if(s[l]){var h=s[l].question;if(h&&h.isVisible){if(e(h)){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 l=o.cells[s].question.getAllErrors();l&&l.length>0&&(e=e.concat(l))}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 l=0;l<o.length;l++)o[l].isVisible&&(s=o[l].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 l=void 0,h=o[s].getQuestionByName(e);if(h)l=h.value;else{var y=this.getRowValue(s);l=y?y[e]:void 0}this.isValueEmpty(l)||(!this.isUniqueCaseSensitive&&typeof l=="string"&&(l=l.toLocaleLowerCase()),n[l]||(n[l]=[]),n[l].push(o[s]))}for(var x in n)n[x].length>1&&n[x].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),l=r.detailPanel.getQuestionByName(n);!s&&l&&(o.showDetailPanel(),o.detailPanel&&(s=o.detailPanel.getQuestionByName(n))),s&&(l&&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 Ki(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 l=null;r&&!o&&(l=r[n]),this.isRowChanging=!0,w.setObjPropertyValue(s,n,l),this.isRowChanging=!1,this.onCellValueChanged(e,n,s)}else{var h=this.createNewValue(!0),y=this.getNewValueOnRowChanged(e,n,r,o,this.createNewValue());if(this.isTwoValueEquals(h,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 l=this.getRowValueCore(e,s,!0);if(o&&delete l[n],e.questions.forEach(function(y){delete l[y.getValueName()]}),r){r=JSON.parse(JSON.stringify(r));for(var h in r)this.isValueEmpty(r[h])||(l[h]=r[h])}return this.isObject(l)&&Object.keys(l).length===0&&(s=this.deleteRowValue(s,e)),{value:s,rowValue:l}},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 q().append(this.getPropertyValue("detailButtonCss"+e.id));return n.append(this.cssClasses.detailButton,n.toString()==="").toString()},t.prototype.getDetailPanelIconCss=function(e){var n=new q().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 q().append(n.detailIcon).append(n.detailIconExpanded,r);this.setPropertyValue("detailIconCss"+e.id,o.toString());var s=new q().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 Be().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 ao?"row-footer":"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,e.row instanceof ao?"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 q().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}(lt);w.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 Zr.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],function(){return new cr("")},"matrixbase");var 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)}}(),Oa=function(i){Sa(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}(Bt),fs=function(i){Sa(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 l=r[s].rowName,h=n[l];if(h){if(e){var y=re.getTextOrHtmlByValue(this.rows,l);y&&(l=y)}o[l]=this.getRowDisplayValue(e,r[s],h)}}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 d.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 Oa(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&&!d.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}(cr);w.addClass("matrixdropdown",[{name:"rows:itemvalue[]",uniqueProperty:"value"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"},"hideIfRowsEmpty:boolean"],function(){return new fs("")},"matrixdropdownbase"),we.Instance.registerQuestion("matrixdropdown",function(i){var t=new fs(i);return t.choices=[1,2,3,4,5],t.rows=we.DefaultRows,cr.addDefaultColumns(t),t});var ds=!1,Ea=null;typeof navigator<"u"&&navigator&&B.isAvailable()&&(Ea=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)))&&(ds=!0)}(Ea);var Xl=!1,uo=ds||Xl,Ta={get isTouch(){return!this.hasMouse&&this.hasTouchEvent},get hasTouchEvent(){return B.isAvailable()&&(B.hasOwn("ontouchstart")||navigator.maxTouchPoints>0)},hasMouse:!0},ec=B.matchMedia;Ta.hasMouse=nc(ec);var Le=Ta.isTouch;function tc(i){Le=i}function nc(i){if(!i||uo)return!1;var t=i("(pointer:fine)"),e=i("(any-hover:hover)");return!!t&&t.matches||!!e&&e.matches}var rc=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){Ra.PreventScrolling&&i.preventDefault()},{passive:!1});var Ra=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 xn(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,l=this.draggedElementShortcut.offsetWidth,h=this.draggedElementShortcut.shortcutXOffset||l/2,y=this.draggedElementShortcut.shortcutYOffset||s/2;document.querySelectorAll("[dir='rtl']").length!==0&&(h=l/2,y=s/2);var x=document.documentElement.clientHeight,T=document.documentElement.clientWidth,j=t.pageX,z=t.pageY,U=t.clientX,X=t.clientY;e-=r,n-=o;var Y=this.getShortcutBottomCoordinate(X,s,y),W=this.getShortcutRightCoordinate(U,l,h);if(W>=T){this.draggedElementShortcut.style.left=T-l-e+"px",this.draggedElementShortcut.style.top=X-y-n+"px";return}if(U-h<=0){this.draggedElementShortcut.style.left=j-U-e+"px",this.draggedElementShortcut.style.top=X-n-y+"px";return}if(Y>=x){this.draggedElementShortcut.style.left=U-h-e+"px",this.draggedElementShortcut.style.top=x-s-n+"px";return}if(X-y<=0){this.draggedElementShortcut.style.left=U-h-e+"px",this.draggedElementShortcut.style.top=z-X-n+"px";return}this.draggedElementShortcut.style.left=U-e-h+"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,l,h,y;t.tagName==="HTML"?(s=0,l=document.documentElement.clientHeight,h=0,y=document.documentElement.clientWidth):(s=t.getBoundingClientRect().top,l=t.getBoundingClientRect().bottom,h=t.getBoundingClientRect().left,y=t.getBoundingClientRect().right);var x=function(){var T=e-s<=o,j=l-e<=o,z=n-h<=o,U=y-n<=o;T&&!z&&!U?t.scrollTop-=15:j&&!z&&!U?t.scrollTop+=15:U&&!T&&!j?t.scrollLeft+=15:z&&!T&&!j&&(t.scrollLeft-=15),r.scrollIntervalId=r.requestAnimationFrame(x)};this.scrollIntervalId=this.requestAnimationFrame(x)},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=er(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 rc([],t.parentElement.childNodes).indexOf(t)},i.prototype.insertNodeToParentAtIndex=function(t,e,n){t.insertBefore(e,t.childNodes[n])},i.PreventScrolling=!1,i}(),hs=function(){function i(t,e,n,r){var o=this,s;this.surveyValue=t,this.creator=e,this._isBottom=null,this.onGhostPositionChanged=new nt,this.onDragStart=new nt,this.onDragEnd=new nt,this.onDragClear=new nt,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 Ra(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}(),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)}}(),oc=function(i){ic(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 q().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 l=!0;if(n){var h=n.closest("[data-sv-drop-target-matrix-row]"),y=h.cloneNode(l);y.style.cssText=`
-        width: `+h.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 x=n.getBoundingClientRect();s.shortcutXOffset=r.clientX-x.x,s.shortcutYOffset=r.clientY-x.y}var T=this.parentElement.renderedTable.rows;return T.forEach(function(j,z){j.row===o.draggedElement&&(j.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,l=this.parentElement.renderedTable.rows;l.forEach(function(h,y){h.row===n.dropTarget&&(r=y),h.row===n.draggedElement&&(s=h,o=y,s.isGhostRow=!0)}),l.splice(o,1),l.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}(hs),gs=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}(),ys=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)}}(),Ia=function(i){ys(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}(Bt),ms=function(i){ys(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 gs(n.startDragMatrixRow),n}return t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.dragDropMatrixRows=new oc(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=d.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,l=o.length;l<r.length;l++)s||(s=!r[l].isEmpty),o.push(r[l].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 sc(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 l=this.getQuestionToFocusOnAddingRow();l&&l.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 l=this.value;if(l&&Array.isArray(l)&&l.length>=this.rowCount-1){var h=l[this.rowCount-2];for(var s in h)n=n||{},n[s]=h[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,l=s>-1?n.visibleRows[s]:void 0;setTimeout(function(){l?n.renderedTable.focusActionCell(l,n.getActionCellIndex(l)):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){Mt({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 l=r[s];l&&(r[s]=this.getRowDisplayValue(e,o[s],l))}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 Zi(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 Ia(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 l=void 0;n&&n.editingObj===e[o]?l=n:(n=void 0,l=this.createMatrixRow(e[o])),r.splice(o,0,l),n||this.onMatrixRowCreated(l),this.isRendredTableCreated&&this.renderedTable.onAddedRow(l,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&&d.isValueEmpty(e)&&!d.isValueEmpty(this.defaultRowValue)){e=[];for(var r=0;r<this.minRowCount;r++)e.push(d.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&&!d.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 q().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return new q().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t.prototype.getRootCss=function(){var e;return new q().append(i.prototype.getRootCss.call(this)).append(this.cssClasses.empty,!(!((e=this.renderedTable)===null||e===void 0)&&e.showTable)).toString()},t}(cr),sc=function(i){ys(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}(cs);w.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 ms("")},"matrixdropdownbase"),we.Instance.registerQuestion("matrixdynamic",function(i){var t=new ms(i);return t.choices=[1,2,3,4,5],cr.addDefaultColumns(t),t});var Ne={currentType:"",getCss:function(){var i=this.currentType?this[this.currentType]:lo;return i||(i=lo),i},getAvailableThemes:function(){return Object.keys(this).filter(function(i){return["currentType","getCss","getAvailableThemes"].indexOf(i)===-1})}},lo={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"}},Da="defaultV2";Ne[Da]=lo;var ac="surveyjs.io",uc=65536,Aa=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,l=o?o.isCompleted:null;n(r.status==200,s,l,r.response)},r.send()},i.prototype.canSendResult=function(t){if(!this.isSurveJSIOService)return!0;var e=JSON.stringify(t);return e.length<uc},Object.defineProperty(i.prototype,"isSurveJSIOService",{get:function(){return this.serviceUrl.indexOf(ac)>=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 l={postId:t,surveyResult:JSON.stringify(e)};r&&(l.clientId=r),o&&(l.isPartialCompleted=!0);var h=JSON.stringify(l);s.onload=s.onerror=function(){n&&n(s.status===200,s.response,s)},s.send(h)},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,l=null;if(r.status==200){s=JSON.parse(r.response),l=[];for(var h in s.QuestionResult){var y={name:h,value:s.QuestionResult[h]};l.push(y)}}n(r.status==200,s,l,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}(),Xt={setTimeout:function(i){return Xt.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()}},vs=function(){function i(){this.listenerCounter=0,this.timerId=-1,this.onTimerTick=new nt,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=Xt.now(),this.timerId<0&&(this.timerId=Xt.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&&(Xt.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=Xt.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=Xt.setTimeout(function(){t.doTimer()}))}},i.instanceValue=null,i}(),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)}}(),Yr=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},La=function(i){lc(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(),vs.instance.start(this.timerFunc)))},t.prototype.stop=function(){this.isRunning&&(this.setIsRunning(!1),vs.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 q().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 q().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}),Yr([V()],t.prototype,"text",void 0),Yr([V()],t.prototype,"progress",void 0),Yr([V()],t.prototype,"clockMajorText",void 0),Yr([V()],t.prototype,"clockMinorText",void 0),Yr([V({defaultValue:0})],t.prototype,"spent",void 0),t}(ce),cc=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,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 l=i.length-1;l>=0;l--)(s=i[l])&&(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){cc(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 ft,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 q().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},co([V({defaultValue:!1})],t.prototype,"active",void 0),co([V({defaultValue:!1})],t.prototype,"isDisplayed",void 0),co([V()],t.prototype,"message",void 0),co([V()],t.prototype,"css",void 0),t}(ce),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)}}(),Te=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},ja=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}(),po=function(i){pc(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 ja(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 q().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 q().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 q().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=qr(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),l=o.indexOf(this.titlePositionY),h=o.indexOf(this.descriptionPositionY),y=["left","center","right"],x=y.indexOf(this.logoPositionX),T=y.indexOf(this.titlePositionX),j=y.indexOf(this.descriptionPositionX),z=[[0,0,0],[0,0,0],[0,0,0]];return z[s][x]=e,z[l][T]+=n,z[h][j]+=r,z.reduce(function(U,X){return U+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,l=r?r.getBoundingClientRect().height:0,h=o?o.getBoundingClientRect().height:0;this.actualHeight=this.calculateActualHeight(s,l,h)}},Object.defineProperty(t.prototype,"hasBackground",{get:function(){return!!this.backgroundImage||this.backgroundColor!=="transparent"},enumerable:!1,configurable:!0}),Te([V({defaultValue:0})],t.prototype,"actualHeight",void 0),Te([V()],t.prototype,"height",void 0),Te([V()],t.prototype,"mobileHeight",void 0),Te([V()],t.prototype,"inheritWidthFrom",void 0),Te([V()],t.prototype,"textAreaWidth",void 0),Te([V()],t.prototype,"textGlowEnabled",void 0),Te([V()],t.prototype,"overlapEnabled",void 0),Te([V()],t.prototype,"backgroundColor",void 0),Te([V()],t.prototype,"titleColor",void 0),Te([V()],t.prototype,"descriptionColor",void 0),Te([V({onSet:function(e,n){n.renderBackgroundImage=qr(e)}})],t.prototype,"backgroundImage",void 0),Te([V()],t.prototype,"renderBackgroundImage",void 0),Te([V()],t.prototype,"backgroundImageFit",void 0),Te([V()],t.prototype,"backgroundImageOpacity",void 0),Te([V()],t.prototype,"logoPositionX",void 0),Te([V()],t.prototype,"logoPositionY",void 0),Te([V()],t.prototype,"titlePositionX",void 0),Te([V()],t.prototype,"titlePositionY",void 0),Te([V()],t.prototype,"descriptionPositionX",void 0),Te([V()],t.prototype,"descriptionPositionY",void 0),Te([V()],t.prototype,"logoStyle",void 0),Te([V()],t.prototype,"titleStyle",void 0),Te([V()],t.prototype,"descriptionStyle",void 0),Te([V()],t.prototype,"headerClasses",void 0),Te([V()],t.prototype,"contentClasses",void 0),Te([V()],t.prototype,"maxWidth",void 0),Te([V()],t.prototype,"backgroundImageClasses",void 0),t}(ce);w.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 po});var 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)}}(),dc=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},hc=function(){function i(t){this.type=t,this.timestamp=new Date}return i}(),gc=function(i){fc(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 hc(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,{}))},dc([V({defaultValue:!1})],t.prototype,"hasActiveTasks",void 0),t}(ce),Na=function(){function i(t,e,n){n===void 0&&(n=-1),this.source=t,this.target=e,this.nestedPanelDepth=n}return i}(),yc=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 Na(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}(),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)}}(),bs=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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){mc(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},bs([V()],t.prototype,"width",void 0),bs([V({onSet:function(e,n,r){e!==r&&(n.width=e)}})],t.prototype,"effectiveWidth",void 0),bs([V()],t.prototype,"questionTitleWidth",void 0),t}(ce);w.addClass("panellayoutcolumn",[{name:"effectiveWidth:number",isSerializable:!1,minValue:0},{name:"width:number",visible:!1},"questionTitleWidth"],function(i){return new qa});var 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)}}(),Xr=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},Ba=function(i){Cs(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 xt(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=er),!!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=Jo(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){dt(r),Zt(r,{width:Br(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:Ge}},getEnterOptions:function(r){var o=r,s=r.isPanel?o.cssClasses.panel:o.cssClasses;return{cssClass:s.enter,onBeforeRunAnimation:n,onAfterRunAnimation:Ge}}}},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,l=[],h=0;h<this.elements.length;h++){var y=this.elements[h];if(y.isVisible){y.isSingleInRow=o;var x=this.getElementWidth(y);x&&(y.renderWidth=this.getRenderedWidthFromWidth(x),l.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 h=0;h<this.elements.length;h++){var y=this.elements[h];!y.isVisible||l.indexOf(y)>-1||(l.length==0?y.renderWidth=Number.parseFloat((100/r).toFixed(6))+"%":y.renderWidth=this.getRenderedCalcWidth(y,l,r))}}},t.prototype.getRenderedCalcWidth=function(e,n,r){for(var o="100%",s=0;s<n.length;s++)o+=" - "+n[s].renderWidth;var l=r-n.length;return l>1&&(o="("+o+")/"+l.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 d.isNumber(e)?e+"px":e},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return new q().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,Xr([V({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),t}(ce),Ps=function(i){Cs(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 xt(n.getRowsAnimationOptions(),function(r){n.setPropertyValue("visibleRows",r)},function(){return n.visibleRows}),n.isRandomizing=!1,n.onColumnPropertyValueChangedCallback=function(r,o,s,l,h){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 yc(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:dt,onAfterRunAnimation:Ge}},getEnterOptions:function(n,r){var o=e.cssClasses;return{cssClass:new q().append(o.rowEnter).append(o.rowDelayedEnter,r.isDeletingRunning).toString(),onBeforeRunAnimation:dt,onAfterRunAnimation:Ge}}}},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=d.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 l=s.getElementByName(e);if(l)return l}}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),d.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 l={};s.collectValues(l,n-1)&&(e[s.name]=l)}else{var h=s;if(!h.isEmpty()){var y=h.getValueName();if(e[y]=h.value,this.data){var x=this.data.getComment(y);x&&(e[y+ce.commentSuffix]=x)}}}}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 l=e?s.title:s.getValueName();n[l]=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 ce.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,l=n+r<o?n+r:o,h=s;h<=l;h++)if(h!==n){var y=this.questions[h];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 $i(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 l=r;l.validate(e.fireCallback,e)||(o||(o=l),e.firstErrorQuestion||(e.firstErrorQuestion=l),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 l=s.getFirstQuestionToFocus(e,n);if(l)return l}else{var h=s.getFirstQuestionToFocus(e);if(h)return h}}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 l=0;l<n.length;l++){var h=n[l];r&&!h.visible||((s&&h.isPanel||!s&&!h.isPanel)&&e.push(h),h.isPanel?h.addElementsToListCore(e,h.elements,r,o,s):o&&this.addElementsToListCore(e,h.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(l){l.width?(n+=l.width,l.setPropertyValue("effectiveWidth",l.width)):r++}),r)for(var o=Ui((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 _e)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,l=0;l<o;l++)s+=n.elements[l].colSpan;var h=e.getPropertyValueWithoutDefault("colSpan");if(!h&&o===r){for(var y=0,l=0;l<n.elements.length;l++)l!==r&&(y+=n.elements[l].colSpan);h=this.columns.length-y}var x=this.columns.slice(s,s+(h||1));return e.setPropertyValue("effectiveColSpan",x.length),x},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 qe.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 Ba(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(l){return n.rows[o-1].addElement(l)}),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 j=n.createRowAndSetLazy(T);return n.isDesignModeV2&&j.setIsLazyRendering(!1),n.rows.splice(T,0,j),j},l=function(T,j,z){for(var U,X=[],Y=3;Y<arguments.length;Y++)X[Y-3]=arguments[Y];var W=(U=T.elements).splice.apply(U,_a([j,z],X));return T.updateVisible(),W};if(!o){r==0||e.startWithNewLine?l(s(this.rows.length),0,0,e):this.rows[this.rows.length-1].addElement(e);return}var h=this.findRowByElement(o);if(h){var y=this.rows.indexOf(h),x=h.elements.indexOf(o);x==0?o.startWithNewLine?e.startWithNewLine||y<1?s(y).addElement(e):this.rows[y-1].addElement(e):l(h,0,0,e):e.startWithNewLine?l.apply(void 0,_a([s(y+1),0,0],[e].concat(l(h,x,h.elements.length)))):l(h,x,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,l=s?this.createRowAndSetLazy(e.length):e[e.length-1];s&&e.push(l),l.addElement(o)}return e.forEach(function(h){return h.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(l){return o.push.apply(o,l.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),l=s.row,h=s.index;if(h>=0&&h<o.length){var y=[];y.push(l);for(var x=h-1;x>=h-r&&x>=0;x--)y.push(o[x]);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 Ai(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=we.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=w.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 q().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,Xr([Ae()],t.prototype,"gridLayoutColumns",void 0),Xr([V({defaultValue:!0})],t.prototype,"showTitle",void 0),Xr([V({defaultValue:!0})],t.prototype,"showDescription",void 0),Xr([V()],t.prototype,"questionTitleWidth",void 0),t}(qe),ei=function(i){Cs(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=d.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 _e||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 q().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 q().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}(Ps);w.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 Ps}),w.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 ei},"panelbase"),Yt.Instance.registerElement("panel",function(i){return new ei(i)});var vc=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 Na(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,l=s.indexOf(t);l>-1&&(e=t,n=t,this.dragDropInfo.isBottom?e=l<s.length-1?s[l+1]:null:n=l>0?s[l-1]:null)}}var h={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(h)},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 l=[],h=[];if(!t&&o){var y=!1;if(this.page.isDesignModeV2){var x=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&&(l.push(e),h.push(o.panel.elements[s])),e.startWithNewLine&&o.elements.length>1&&(!o.panel.elements[s]||!o.panel.elements[s].startWithNewLine)&&h.push(e),x&&x.elements[0]===n&&x.elements[1]&&l.push(x.elements[1]),o.elements.length<=1&&l.push(e),e.startWithNewLine&&o.elements.length>1&&o.elements[0]!==r&&h.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 l.map(function(T){T.startWithNewLine=!0}),h.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),l=o.elements.indexOf(e);return l<s&&!r&&l--,r&&l++,s<l?l-s>1:s-l>0},i.prototype.dragDropIsSameElement=function(t,e){return t==e||t.name==e.name},i}(),bc=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,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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},ws=function(i){bc(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 vc(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 q().append(this.cssClasses.page.title).toString():""},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.isPanel||!this.cssClasses.page||!this.survey?"":new q().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 q().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},Cc([V({defaultValue:-1,onSet:function(e,n){return n.onNumChanged(e)}})],t.prototype,"num",void 0),t}(ei);w.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 ws},"panel");var 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)}}(),Fa=function(i){Pc(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 q().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 q().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 ws||(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,l=0;l<r.length;l++)r[l].style.width=s+"px"},Object.defineProperty(t.prototype,"isFitToSurveyWidth",{get:function(){return Ne.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 Ne.currentType!=="defaultV2"?!1:this.survey.progressBarShowPageNumbers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemTitles",{get:function(){return Ne.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}(ce),wc=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 xc(i,t){return i.isDesignMode||t.focusFirstQuestion(),!0}function ka(i){if(i.parentQuestion)return ka(i.parentQuestion);for(var t=i.parent;t&&t.getType()!=="page"&&t.parent;)t=t.parent;return t&&t.getType()==="page"?t:null}function Qa(i,t){var e=Ha(i,t),n={items:e,searchEnabled:!1,locOwner:i},r=new Wt(n);r.allowSelection=!1;var o=function(s,l){r.selectedItem=!!s&&r.actions.filter(function(h){return h.id===s.name})[0]||l};return o(i.currentPage,e[0]),i.onCurrentPageChanged.add(function(s,l){o(i.currentPage)}),i.onFocusInQuestion.add(function(s,l){o(ka(l.question))}),i.registerFunctionOnPropertyValueChanged("pages",function(){r.setItems(Ha(i,t))},"toc"),r}function Ha(i,t){var e=i.pages,n=(e||[]).map(function(r){return new be({id:r.name,locTitle:r.locNavigationTitle,action:function(){if(R.activeElementBlur(),t&&t(),r.isPage)return i.tryNavigateToPage(r)},visible:new Ie(function(){return r.isVisible&&!r.isStartPage})})});return n}function za(i,t){t===void 0&&(t=!1);var e=An.RootStyle;return t?e+" "+An.RootStyle+"--mobile":(e+=" "+An.RootStyle+"--"+(i.tocLocation||"").toLowerCase(),An.StickyPosition&&(e+=" "+An.RootStyle+"--sticky"),e)}var An=function(){function i(t){var e=this;this.survey=t,this.icon="icon-navmenu_24x24",this.togglePopup=function(){e.popupModel.toggleVisibility()},this.listModel=Qa(t,function(){e.popupModel.isVisible=!1}),this.popupModel=new mn("sv-list",{model:this.listModel}),this.popupModel.overlayDisplayMode="plain",this.popupModel.displayMode=new Ie(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,l=t.scrollTop>s?0:s-t.scrollTop;e.style.height=n-l-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 za(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}(),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)}}(),Se=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},en=function(i){Vc(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 nt,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 gc,r.questionErrorComponent="sv-question-error",r.onBeforeRunConstructor();var o=function(l){return"<h3>"+l+"</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 La(r),r.timerModelValue.onTimerTick=function(l){r.doTimer(l)},r.createNewArray("pages",function(l){l.isReadyForCleanChangedCallback&&l.isReadyForCleanChangedCallback(),r.doOnPageAdded(l)},function(l){l.isReadyForClean?r.doOnPageRemoved(l):l.isReadyForCleanChangedCallback=function(){r.doOnPageRemoved(l),l.isReadyForCleanChangedCallback=void 0}}),r.createNewArray("triggers",function(l){l.setOwner(r)}),r.createNewArray("calculatedValues",function(l){l.setOwner(r)}),r.createNewArray("completedHtmlOnCondition",function(l){l.locOwner=r}),r.createNewArray("navigateToUrlOnCondition",function(l){l.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 Ma(r.css.saveData),r.notifier.addAction(r.createTryAgainAction(),"error"),r.onPopupVisibleChanged.add(function(l,h){h.visible?r.onScrollCallback=function(){h.popup.hide()}:r.onScrollCallback=void 0}),r.progressBarValue=new Fa(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(l){return r.progressBar.processResponsiveness&&r.progressBar.processResponsiveness(l)}}),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 An(r);return r.addLayoutElement({id:"toc-navigation",component:"sv-navigation-toc",data:s,processResponsiveness:function(l){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,l=this.createLocalizableString(e,this,!1,n);l.onGetLocalizationTextCallback=r,o&&(l.onGetTextCallback=function(h){return s.processHtml(h,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 l=e[s],h=function(y,x){l(y,x)};o[s].add(h)}else o[s]=e[s]},o=this;for(var s in e)r();e&&e.data&&this.onValueChanged.add(function(l,h){e.data[h.name]=h.value})},t.prototype.getCss=function(){return this.css},t.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=new q().append(this.css.body).append(this.css.completedPage).toString(),this.completedBeforeCss=new q().append(this.css.body).append(this.css.completedBeforePage).toString(),this.loadingBodyCss=new q().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,Ne.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 q().append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyCss",{get:function(){return new q().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 q().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&&tr(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)&&Mi(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 l=this.getCalculatedValueByName(s);l&&l.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")||D.currentLocale},set:function(e){e===D.defaultLocale&&!D.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 D.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=D.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?mt(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoWidth",{get:function(){return this.logoWidth?ir(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?mt(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoHeight",{get:function(){return this.logoHeight?ir(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 q().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(!(Gt()||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=qr(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 q().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 wt(e),l=void 0;return s.onRunComplete=function(h){l=h,n&&n(h)},s.run(r,o)||l},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 ze(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),l="",h="",y=s-1;y>=0&&e[y]!="}";y--);for(y<s-1&&(l=e.substring(y+1,s)),s+=n.length,y=s;y<e.length&&e[y]!="{";y++);for(y>s&&(h=e.substring(s,y)),y=0;y<l.length&&l.charCodeAt(y)<33;)y++;for(l=l.substring(y),y=h.length-1;y>=0&&h.charCodeAt(y)<33;)y--;if(h=h.substring(0,y+1),!l&&!h)return r;var x=r||o;return l+x+h},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&&Ne.currentType==="defaultV2"&&tn(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 q().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 l=this.getPageByName(o);l||(l=this.getPanelByName(o)),l&&this.collectDataFromPanel(l,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,l){w.hasOriginalProperty(n.editingObj,l.name)&&(l.name==="locale"&&n.setDataCore({}),n.updateOnSetValue(l.name,n.editingObj[l.name],l.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 x=y.getPlainData(e);x&&(n.push(x),r.push(y.valueName||y.name))}),e.includeValues)for(var o=this.getValuesKeys(),s=0;s<o.length;s++){var l=o[s];if(r.indexOf(l)==-1){var h=this.getDataValueCore(this.valuesHash,l);h&&n.push({name:l,title:l,value:h,displayValue:h,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=w.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?w.getObjPropertyValue(this.editingObj,n):this.getDataFromValueHash(e,n)},t.prototype.setDataValueCore=function(e,n,r){this.editingObj?w.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){Jt(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[l].isRunningValidators){var h=e[l];h.onCompletedAsyncValidators=function(y){r.onCompletedAsyncQuestionValidators(h,n,y)},s.asyncValidationQuesitons.push(e[l])}},s=this,l=0;l<e.length;l++)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 l=this.asyncValidationQuesitons,h=0;h<l.length;h++)if(l[h].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,l=!0,h={fireCallback:e,focusOnFirstError:n,firstErrorQuestion:null,result:!1},y=0;y<s.length;y++)s[y].validate(e,n,h)||(l=!1);return h.firstErrorQuestion&&(n||o)&&(n?h.firstErrorQuestion.focus(!0):this.currentPage=h.firstErrorQuestion.page),!l||!r?l:this.checkForAsyncQuestionValidation(this.getAllQuestions(),function(x){return r(x)})?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 l=n[s];if(l.errors.length>0){r.push(l);for(var h=0;h<l.errors.length;h++)o.push(l.errors[h])}}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=w.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(l){return l.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,d.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(l){l.hasShown&&l.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),l=s.indexOf(o);l>=0&&(n=l===0,r=l===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(j){x=!0,r.setCompletedState("saving",j)},l=function(j){r.setCompletedState("error",j)},h=function(j){r.setCompletedState("success",j),r.navigateTo()},y=function(j){r.setCompletedState("","")},x=!1,T={isCompleteOnTrigger:e,completeTrigger:n,showSaveInProgress:s,showSaveError:l,showSaveSuccess:h,clearSaveMessages:y,showDataSaving:s,showDataSavingError:l,showDataSavingSuccess:h,showDataSavingClear:y};this.onComplete.fire(this,T),!o&&this.surveyPostId&&this.sendResult(),x||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 l=this.activePage.questions,h=0;h<l.length;h++){var y=l[h];if(y.visible){var x=this.getValue(y.getValueName());this.isValueEmpty(x)||(s.data[y.getValueName()]=x)}}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 l=this.focusOnFirstError;for(var h in e.errors){var y=o.getQuestionByName(h);y&&y.errors&&(s=!0,y.addError(new Xe(e.errors[h],this)),l&&(l=!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 qe.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 q().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=qe.GetFirstNonTextElement(e));var r=e,o=this.css.variables;if(o){var s=Number.parseFloat(R.getComputedStyle(r).getPropertyValue(o.mobileWidth));if(s){var l=!1;this.resizeObserver=new ResizeObserver(function(h){B.requestAnimationFrame(function(){l||!ar(r)?l=!1:l=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(h){return h.processResponsiveness&&h.processResponsiveness(e)});var l={height:r,width:e};return this.onResize.fire(this,l),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 l=o[s].getQuestionFromArray(n,r);if(l)return l}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 Xe(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,l,h,y){var x=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 j=this.getPageByElement(e);if(this.isLazyRendering&&j){var z=1,U=I.environment.rootElement,X=this.rootElement||h||U;this.skeletonHeight&&X&&typeof X.getBoundingClientRect=="function"&&(z=X.getBoundingClientRect().height/this.skeletonHeight-1),j.forceRenderElement(e,function(){x.suspendLazyRendering(),qe.ScrollElementToTop(T.elementId,s,l,function(){x.releaseLazyRendering(),tr(j.id),y&&y()})},z)}else if(e.isPage&&!this.isSinglePage&&!this.isDesignMode&&this.rootElement){var Y=this.rootElement.querySelector(Fe(this.css.rootWrapper));qe.ScrollElementToViewCore(Y,!1,s,l,y)}else qe.ScrollElementToTop(T.elementId,s,l,y)}},t.prototype.chooseFiles=function(e,n,r){this.onOpenFileChooser.isEmpty?Hi(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(l){s.onUploadFiles.fire(s,{question:e,name:n,files:r||[],callback:function(h,y){o(h,y),l()}})}),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 Aa},t.prototype.uploadFilesCore=function(e,n,r){var o=this,s=[];n.forEach(function(l){r&&r("uploading",l),o.createSurveyService().sendFile(o.surveyPostId,l,function(h,y){h?(s.push({content:y,file:l}),s.length===n.length&&r&&r("success",s)):r&&r("error",{response:y,file:l})})})},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 l=[];return o.forEach(function(h){l.push(h),h.getNestedQuestions(e).forEach(function(y){return l.push(y)})}),l},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 l=o[s];l.quizQuestionCount>0&&e.push(l)}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=w.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=w.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 l=r[s];this.isTwoValueEquals(l.valueForSurvey,n)||(l.value=n),this.checkQuestionErrorOnValueChangedCore(l)&&(o=!0),o=o||l.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 l=o[s];this.checkQuestionErrorOnValueChanged(l),l.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],l=s.getValueName();r[l]=this.getValue(l)}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 l=!1;if(!r&&o&&this.hasRequiredValidQuestionTrigger){var h=this.getQuestionByValueName(o);l=h&&!h.validate(!1)}this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var y=this.getFilteredProperties(),x=this.canBeCompletedByTrigger,T=0;T<this.triggers.length;T++){var j=this.triggers[T];l&&j.requireValidQuestion||j.checkExpression(n,r,this.triggerKeys,this.triggerValues,y)}x!==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 l=this.surveyShowDataSaving||!r&&s.isSurveJSIOService;l&&this.setCompletedState("saving",""),s.sendResult(e,this.data,function(h,y,x){(l||s.isSurveJSIOService)&&(h?o.setCompletedState("success",""):o.setCompletedState("error",y));var T={success:h,response:y,request:x};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,l,h){r.onGetResult.fire(r,{success:o,data:s,dataList:l,response:h})})},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,l,h){o&&(r.isCompletedBefore=l=="completed",r.loadSurveyFromServiceJson(s)),r.isLoading=!1}):this.createSurveyService().loadSurvey(this.surveyId,function(o,s,l){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 Be;r.toObject(e,this,n),r.errors.length>0&&(this.jsonErrors=r.errors),this.onStateAndCurrentPageChanged(),this.updateState(),this.sjsVersion&&I.version&&d.compareVerions(this.sjsVersion,I.version)>0&&se.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 ft;return e.setItems(this.createNavigationActions()),e},t.prototype.createNavigationActions=function(){var e=this,n="sv-nav-btn",r=new be({id:"sv-nav-start",visible:new Ie(function(){return e.isShowStartingPage}),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return e.start()},component:n}),o=new be({id:"sv-nav-prev",visible:new Ie(function(){return e.isShowPrevButton}),visibleIndex:20,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return e.performPrevious()},component:n}),s=new be({id:"sv-nav-next",visible:new Ie(function(){return e.isShowNextButton}),visibleIndex:30,data:{mouseDown:function(){return e.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return e.nextPageUIClick()},component:n}),l=new be({id:"sv-nav-preview",visible:new Ie(function(){return e.isPreviewButtonVisible}),visibleIndex:40,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return e.showPreview()},component:n}),h=new be({id:"sv-nav-complete",visible:new Ie(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,l.innerCss=e.cssNavigationPreview,h.innerCss=e.cssNavigationComplete},[r,o,s,l,h]},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:D.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 l=s.useDisplayValuesInDynamicTexts;e.isExists=!0;var h=s.getValueName().toLowerCase();n=h+n.substring(h.length),n=n.toLocaleLowerCase();var y={};y[h]=e.returnDisplayValue&&l?s.getDisplayValue(!1,void 0):s.value,e.value=new te().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 te,o=r.getFirstName(e.name);if(o!==e.name){var s={},l=this.getValue(o);d.isValueEmpty(l)&&(l=this.getVariable(o)),!d.isValueEmpty(l)&&(s[o]=l,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 te().hasValue(e,this.variablesHash)?new te().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),d.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:d.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 l=n;if(o&&(l=this.questionOnValueChanging(e,n)),!(this.isValidateOnValueChanging&&this.checkErrorsOnValueChanging(e,l))&&!(!this.editingObj&&this.isValueEqual(e,l)&&this.isTwoValueEquals(l,n))){var h=this.getValue(e);this.isValueEmpyOnSetValue(e,l)?this.deleteDataValueCore(this.valuesHash,e):(l=this.getUnbindValue(l),this.setDataValueCore(this.valuesHash,e,l)),this.updateOnSetValue(e,l,h,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,l){o===void 0&&(o=!1),s===void 0&&(s=!0),this.updateQuestionValue(e,n),!(o===!0||this.isDisposed||this.isRunningElementsBindings)&&(l=l||e,this.checkTriggersAndRunConditions(e,n,r),s&&this.notifyQuestionOnValueChanged(e,n,l),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())};Xt.safeTimeOut(s,I.autoAdvanceDelay)}var l=this.getCurrentPageQuestions();if(!(l.indexOf(r)<0)){for(var h=0;h<l.length;h++)if(l[h].hasInput&&l[h].isEmpty())return;if(!(this.isLastPage&&(this.goNextPageAutomatic!==!0||!this.allowCompleteSurveyAutomatic))&&!this.checkIsCurrentPageHasErrors(!1)){var y=this.currentPage,x=function(){y===n.currentPage&&(n.isLastPage?n.tryCompleteOrShowPreview():n.nextPage())};Xt.safeTimeOut(x,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 l=0;l<s.length;l++)s[l].updateCommentFromSurvey(n),this.checkQuestionErrorOnValueChanged(s[l]);r||this.checkTriggersAndRunConditions(e,this.getValue(e),void 0),r!=="text"&&this.tryGoNextPageAutomatic(e);var h=this.getQuestionByValueName(e);h&&(this.fireOnValueChanged(o,n,h),h.comment=n,h.comment!=n&&(h.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 Xe(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 Xe(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 Vt,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],l=s.correctAnswerCount;e?r+=l:r+=s.quizQuestionCount-l}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 Ie(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,l=r.minorSpent,h=r.minorLimit;s>0?e=this.getDisplayClockTime(s-o):e=this.getDisplayClockTime(o),l!==void 0&&(h>0?n=this.getDisplayClockTime(h-l):n=this.getDisplayClockTime(l))}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),l=this.getDisplayTime(this.timeLimit);if(this.timerInfoMode=="page")return this.getTimerInfoPageText(e,n,s);if(this.timerInfoMode=="survey")return this.getTimerInfoSurveyText(r,l);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,l);var h=this.getTimerInfoPageText(e,n,s),y=this.getTimerInfoSurveyText(r,l);return h+" "+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 te,l=s.getFirstName(e);if(l==e)this.setValue(e,n);else{if(!this.getQuestionByName(l))return;var h=this.getUnbindValue(this.getFilteredValues());s.setValue(h,e,n),this.setValue(l,h[l])}}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 te;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 l={componentName:e,element:n,wrapperName:r,reason:o,item:s};return this.onElementWrapperComponentName.fire(this,l),l.componentName},t.prototype.elementWrapperDataCore=function(e,n,r,o,s){if(this.onElementWrapperComponentData.isEmpty)return e;var l={data:e,element:n,wrapperName:r,reason:o,item:s};return this.onElementWrapperComponentData.fire(this,l),l.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"&&tn(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"&&tn(s.id,this.progressBarComponentName)){if(this.questionsOnPageMode!="singlePage"||this.progressBarType=="questions"){var l=this.findLayoutElement("advanced-header"),h=l&&l.data,y=!h||h.hasBackground;tn(this.showProgressBar,"aboveHeader")&&(y=!1),tn(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 tn(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"&&tn(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)):tn(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(x,T){return(x.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 po;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",Se([V()],t.prototype,"completedCss",void 0),Se([V()],t.prototype,"completedBeforeCss",void 0),Se([V()],t.prototype,"loadingBodyCss",void 0),Se([V()],t.prototype,"containerCss",void 0),Se([V({onSet:function(e,n){n.updateCss()}})],t.prototype,"fitToContainer",void 0),Se([V({onSet:function(e,n){if(e==="advanced"){var r=n.findLayoutElement("advanced-header");if(!r){var o=new po;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),Se([V()],t.prototype,"showBrandInfo",void 0),Se([V()],t.prototype,"enterKeyAction",void 0),Se([V()],t.prototype,"lazyRenderingFirstBatchSizeValue",void 0),Se([V({defaultValue:!0})],t.prototype,"titleIsEmpty",void 0),Se([V({defaultValue:{}})],t.prototype,"cssVariables",void 0),Se([V()],t.prototype,"_isMobile",void 0),Se([V()],t.prototype,"_isCompact",void 0),Se([V({onSet:function(e,n){n.updateCss()}})],t.prototype,"backgroundImage",void 0),Se([V()],t.prototype,"renderBackgroundImage",void 0),Se([V()],t.prototype,"backgroundImageFit",void 0),Se([V({onSet:function(e,n){n.updateCss()}})],t.prototype,"backgroundImageAttachment",void 0),Se([V()],t.prototype,"backgroundImageStyle",void 0),Se([V()],t.prototype,"wrapperFormCss",void 0),Se([V({getDefaultValue:function(e){return e.progressBarType==="buttons"}})],t.prototype,"progressBarShowPageTitles",void 0),Se([V()],t.prototype,"progressBarShowPageNumbers",void 0),Se([V()],t.prototype,"progressBarInheritWidthFrom",void 0),Se([V({defaultValue:!0})],t.prototype,"validationEnabled",void 0),Se([V()],t.prototype,"rootCss",void 0),Se([V({onSet:function(e,n){n.updateGridColumns()}})],t.prototype,"gridLayoutEnabled",void 0),Se([V()],t.prototype,"calculatedWidthMode",void 0),Se([V({defaultValue:100,onSet:function(e,n,r){n.pages.forEach(function(o){return o.updateRootStyle()})}})],t.prototype,"widthScale",void 0),Se([V()],t.prototype,"staticStartWidth",void 0),Se([V()],t.prototype,"responsiveStartWidth",void 0),Se([Ae()],t.prototype,"layoutElements",void 0),t}(Kn);function tn(i,t){return!i||!t?!1:i.toUpperCase()===t.toUpperCase()}w.addClass("survey",[{name:"locale",choices:function(){return D.getLocales(!0)},onGetValue:function(i){return i.locale==D.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=d.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 Ua=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)}}(),fo=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},xs=function(i){Ua(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 xt(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 Dn(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=w.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,l){return l&&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 ze(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new ze(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 Q},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 l=[],h=1;h<arguments.length;h++)l[h-1]=arguments[h];if(e.waitingGetChoiceDisplayValueResponse=!1,!s||!s.length){e.updateIsReady();return}var y=s.map(function(x,T){return e.createItemValue(r[T],x)});e.setCustomValuesIntoItems(y,l),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 l=0;l<e.length&&l<o.length;l++)e[l][s]=o[l]})},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(l,h){return l.index===h.index?0:l.index<h.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(l){return e.push({index:l,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,l){var h=re.getItemByValue(n.visibleChoices,s),y={name:l,title:"Choice",value:s,displayValue:n.getChoicesDisplayValue(n.visibleChoices,s),getString:function(x){return typeof x=="object"?JSON.stringify(x):x},isNode:!1};return h&&(e.calculations||[]).forEach(function(x){y[x.propertyName]=h[x.propertyName]}),n.isOtherSelected&&n.otherItemValue===h&&(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,l=[],h=[],y=0;y<n.length;y++)h.push(r?r(y):n[y]);if(d.isTwoValueEquals(this.value,h)&&this.getMultipleSelectedItems().forEach(function(T,j){return l.push(o.getItemDisplayValue(T,h[j]))}),l.length===0)for(var y=0;y<h.length;y++){var x=this.getChoicesDisplayValue(s,h[y]);x&&l.push(x)}return l.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&&w.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(d.isValueObject(s)){var l=this.getValueKeyName(s);if(l&&!this.isValueEmpty(s[l])){var h=this.choiceTextsFromQuestion?s[this.choiceTextsFromQuestion]:void 0;r.push(this.createItemValue(s[l],h))}}}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 l=e.isItemSelected(o[s]);(l&&r||!l&&!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 Gi(this.otherErrorText,this);s.onUpdateErrorTextCallback=function(l){l.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 l=0;l<r.length;l++)r[l].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:d.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 l=s.value,y=re.getItemByValue(n,s.value);y&&(l=y.value),r.push(l)}}return{value:r}}var h=e.isExists&&this.hasUnknownValue(e.value)?null:e.value,y=re.getItemByValue(n,h);return y&&(h=y.value),{value:h}},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 d.compareStrings(r.calculatedText,o.calculatedText)*n})},t.prototype.randomizeArray=function(e){return d.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 q().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 q().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],l=o[1],h=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,y=!l&&!h&&!(this.survey&&this.survey.isDesignMode),x=e===this.noneItem;return n.isDisabled=l||s,n.isChecked=h,n.isNone=x,r.append(this.cssClasses.itemDisabled,l).append(this.cssClasses.itemReadOnly,s).append(this.cssClasses.itemPreview,this.isPreviewStyle).append(this.cssClasses.itemChecked,h).append(this.cssClasses.itemHover,y).append(this.cssClasses.itemNone,x).toString()},t.prototype.getLabelClass=function(e){return new q().append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return new q().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:dt,onAfterRunAnimation:Ge}},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 l=s.parentElement.firstElementChild.offsetLeft;s.offsetLeft>l&&Zt(s,{moveAnimationDuration:"0s",fadeAnimationDelay:"0s"},"--")}dt(s)},onAfterRunAnimation:Ge}}}},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,l=0;l<n;l++){for(var h=[],y=o;y<o+Math.floor(r.length/n);y++)h.push(r[y]);s>0&&(s--,h.push(r[y]),y++),o=y,e.push(h)}else for(var l=0;l<n;l++){for(var h=[],y=l;y<r.length;y+=n)h.push(r[y]);e.push(h)}}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):en.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 q().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;qe.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}),fo([V({onSet:function(e,n){n.onSelectedItemValuesChangedHandler(e)}})],t.prototype,"selectedItemValues",void 0),fo([V()],t.prototype,"separateSpecialChoices",void 0),fo([V({localizable:!0})],t.prototype,"otherPlaceholder",void 0),fo([Ae()],t.prototype,"_renderedChoices",void 0),t}(_e),ti=function(i){Ua(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}(xs);function Vs(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}w.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 Vs(i,"select")}},{name:"choiceValuesFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(i){return Vs(i,"array")}},{name:"choiceTextsFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(i){return Vs(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"),w.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase");var Ss=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}(),Ln=function(){function i(){}return i.calculatePosition=function(t,e,n,r,o,s){s===void 0&&(s="flex");var l=t.left,h=t.top;return s==="flex"&&(o=="center"?l=(t.left+t.right-n)/2:o=="left"?l=t.left-n:l=t.right),r=="middle"?h=(t.top+t.bottom-e)/2:r=="top"?h=t.top-e:h=t.bottom,o!="center"&&r!="middle"&&(r=="top"?h=h+t.height:h=h-t.height),{left:Math.round(l),top:Math.round(h)}},i.getCorrectedVerticalDimensions=function(t,e,n,r,o,s){o===void 0&&(o=!0),s===void 0&&(s={top:0,bottom:0});var l,h=n-i.bottomIndent;if(r==="top"&&(l={height:e,top:t}),t<-s.top)l={height:o?e+t:e,top:-s.top};else if(e+t>n){var y=Math.min(e,h-t);l={height:o?y:e,top:o?t:t-(e-y)}}return l&&(l.height=Math.min(l.height,h),l.top=Math.max(l.top,-s.top)),l},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 l=void 0,h=t;return r==="center"&&(o==="fixed"?(t+e>n&&(l=n-t),h-=s.left):t<0?(h=s.left,l=Math.min(e,n)):e+t>n&&(h=n-e,h=Math.max(h,s.left),l=Math.min(e,n))),r==="left"&&t<0&&(h=s.left,l=Math.min(e,n)),r==="right"&&e+t>n&&(l=n-t),{width:l-s.left-s.right,left:h}},i.updateVerticalPosition=function(t,e,n,r,o){if(r==="middle")return r;var s=e-(t.top+(n!=="center"?t.height:0)),l=e+t.bottom-(n!=="center"?t.height:0)-o;return s>0&&l<=0&&r=="top"?r="bottom":l>0&&s<=0&&r=="bottom"?r="top":l>0&&s>0&&(r=s<l?"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,l){s===void 0&&(s=0),l===void 0&&(l=0);var h={};return o!="center"?(h.top=t.top+t.height/2,h.left=t[o]):r!="middle"&&(h.top=t[r],h.left=t.left+t.width/2),h.left=Math.round(h.left-n),h.top=Math.round(h.top-e),o=="left"&&(h.left-=s+l),o==="center"&&(h.left-=s),h},i.bottomIndent=16,i}(),Sc=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},Wa='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^="-"])',Os=function(i){Sc(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 Pn(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 nt,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 q().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 ft,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(Wa),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||Wa);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,Vn(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,l=r.clientHeight;if(!(n>0&&Math.abs(o-l-s)<1)&&!(n<0&&s<=0))return}r=r.parentElement}e.cancelable&&e.preventDefault()},Mn([V({defaultValue:"0px"})],t.prototype,"top",void 0),Mn([V({defaultValue:"0px"})],t.prototype,"left",void 0),Mn([V({defaultValue:"auto"})],t.prototype,"height",void 0),Mn([V({defaultValue:"auto"})],t.prototype,"width",void 0),Mn([V({defaultValue:"auto"})],t.prototype,"minWidth",void 0),Mn([V({defaultValue:!1})],t.prototype,"_isVisible",void 0),Mn([V()],t.prototype,"locale",void 0),t}(ce),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)}}(),Es=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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 $a(i,t){var e=i||B.getInnerWidth(),n=t||B.getInnerHeight(),r=Math.min(e,n),o=r>=Ts.tabletSizeBreakpoint;return o}var Ts=function(i){Oc(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,en.platform==="vue"||en.platform==="vue3"||en.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=$a(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 Ss(n.x,n.y,n.width,n.height)}return new Ss(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 Ss(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(),l=(e=this.container)===null||e===void 0?void 0:e.querySelector(this.containerSelector);if(l){var h=(n=this.container)===null||n===void 0?void 0:n.querySelector(this.fixedPopupContainer),y=l.querySelector(this.scrollingContentSelector),x=R.getComputedStyle(l),T=parseFloat(x.marginLeft)||0,j=parseFloat(x.marginRight)||0,z=parseFloat(x.marginTop)||0,U=parseFloat(x.marginBottom)||0,X=l.offsetHeight-y.offsetHeight+y.scrollHeight,Y=l.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=o.width+"px");var W=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(Nn){return typeof Nn=="number"}))),W=Ln.updateVerticalPosition(o,X,this.model.horizontalPosition,this.model.verticalPosition,s.height),ue=Ln.updateHorizontalPosition(o,Y,ue,s.width)}this.popupDirection=Ln.calculatePopupDirection(W,ue);var je=Ln.calculatePosition(o,X,Y+T+j,W,ue,this.model.positionMode);if(B.isAvailable()){var ht=Ln.getCorrectedVerticalDimensions(je.top,X,s.height,W,this.model.canShrink,{top:z,bottom:U});if(ht&&(this.height=ht.height+"px",je.top=ht.top),this.model.setWidthByTarget)this.width=o.width+"px",je.left=o.left;else{var vt=Ln.updateHorizontalDimensions(je.left,Y,B.getInnerWidth(),ue,this.model.positionMode,{left:T,right:j});vt&&(this.width=vt.width?vt.width+"px":void 0,je.left=vt.left)}}if(h){var hr=h.getBoundingClientRect();je.top-=hr.top,je.left-=hr.left}je.left+=s.left,je.top+=s.top,this.left=je.left+"px",this.top=je.top+"px",this.showHeader&&(this.pointerTarget=Ln.calculatePointerTarget(o,je.top,je.left,W,ue,T,j),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,Es([V()],t.prototype,"isTablet",void 0),Es([V({defaultValue:"left"})],t.prototype,"popupDirection",void 0),Es([V({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(Os),Ec=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)}}(),nn=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},ho=function(i){Ec(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,l){r.onPropertyChangedHandler(s,l)},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=$a(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 mn("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(),l=s.menuType;e.question.processOpenDropdownMenu(s),l!==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 l=s.indexOf(o.toLocaleLowerCase());return n.question.searchMode=="startsWith"?l==0:l>-1})},t.prototype.createListModel=function(){var e=this,n=this.getAvailableItems(),r=this.onSelectionChanged;r||(r=function(l){e.question.value=l.id,e.question.searchEnabled&&e.applyInputString(l),e.popupModel.hide()});var o={items:n,onSelectionChanged:r,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},s=new Wt(o);return this.setOnTextSearchCallbackForListModel(s),s.renderElements=!1,s.forceShowFilter=!0,s.areSameItemsCallback=function(l,h){return l===h},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 q().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 ni&&!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;or(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}_i(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()},nn([V({defaultValue:!1})],t.prototype,"focused",void 0),nn([V({defaultValue:!0})],t.prototype,"searchEnabled",void 0),nn([V({defaultValue:"",onSet:function(e,n){n.onSetFilterString()}})],t.prototype,"filterString",void 0),nn([V({defaultValue:"",onSet:function(e,n){n.question.inputHasValue=!!e}})],t.prototype,"inputString",void 0),nn([V({})],t.prototype,"showInputFieldComponent",void 0),nn([V()],t.prototype,"ariaActivedescendant",void 0),nn([V({defaultValue:!1,onSet:function(e,n){e?n.listModel.addScrollEventListener(function(r){n.onScroll(r)}):n.listModel.removeScrollEventListener()}})],t.prototype,"hasScroll",void 0),nn([V({defaultValue:""})],t.prototype,"hintString",void 0),t}(ce),Tc=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},ni=function(i){Tc(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 q().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&&En(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 ho(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)},Ft([V()],t.prototype,"allowClear",void 0),Ft([V({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),Ft([V()],t.prototype,"searchMode",void 0),Ft([V()],t.prototype,"textWrapEnabled",void 0),Ft([V({defaultValue:!1})],t.prototype,"inputHasValue",void 0),Ft([V({defaultValue:""})],t.prototype,"readOnlyText",void 0),Ft([V({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),Ft([V()],t.prototype,"choicesLazyLoadPageSize",void 0),Ft([V()],t.prototype,"suggestedItem",void 0),t}(xs);w.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 ni("")},"selectbase"),we.Instance.registerQuestion("dropdown",function(i){var t=new ni(i);return t.choices=we.DefaultChoices,t});var Rs=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)}}(),Ga=function(i){Rs(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(l){s.value=l.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 q().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 q().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}(ce),Ja=function(i){Rs(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),d.isValueEmpty(e)||d.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 l=re.getItemByValue(r.columns,n);if(l)return l.locText.getJson()||l.value}return s},o.onStrChanged=function(s,l){r.updateValues(e,n,l)},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 l in s)(r===this.defaultRowValue||!e||e[l]!==s[l])&&(o[l]=s[l]);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 l in s)l!="pos"&&(this.values[o][l]=s[l])}}this.locNotification=!0,this.runFuncOnLocs(function(h,y,x){return x.setJson(r.getCellLocData(h,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 ut(this.cellsOwner,!0)},t}(ce),Is=function(i){Rs(t,i);function t(e){var n=i.call(this,e)||this;return n.isRowChanging=!1,n.emptyLocalizableString=new ut(n),n.cellsValue=new Ja(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,l=this.hasCellText,h=this.cssClasses;return new q().append(h.cell,l).append(l?h.cellText:h.label).append(h.itemOnError,!l&&(this.isAllRowRequired||this.eachRowUnique?e.hasError:this.hasCssError())).append(l?h.cellTextSelected:h.itemChecked,r).append(l?h.cellTextDisabled:h.itemDisabled,this.isDisabledStyle).append(l?h.cellTextReadOnly:h.itemReadOnly,this.isReadOnlyStyle).append(l?h.cellTextPreview:h.itemPreview,this.isPreviewStyle).append(h.itemHover,s&&!l).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 ze(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 l=this.id+"_"+s.value.toString().replace(/\s/g,"_");e.push(this.createMatrixRow(s,l,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"?d.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 d.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 Ji(null,this)),o.isNotUnique&&e.push(new is(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 l=this.isAllRowRequired||r,h=this.eachRowUnique;if(n.noValue=!1,n.isNotUnique=!1,e&&(this.errorsInRow=void 0),!(!l&&!h)){for(var y={},x=0;x<s.length;x++){var T=s[x].value,j=this.isValueEmpty(T),z=h&&!j&&y[T]===!0;j=j&&l,e&&(j||z)&&this.addErrorIntoRow(s[x]),j||(y[T]=!0),n.noValue=n.noValue||j,n.isNotUnique=n.isNotUnique||z}e&&s.forEach(function(U){U.hasError=o.hasErrorInRow(U)})}}},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 Ga(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],l=r[s.name];this.isValueEmpty(l)&&(l=null),this.generatedVisibleRows[o].setValueDirectly(l)}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 l=re.getTextOrHtmlByValue(this.columns,n[o]);l||(l=n[o]),r[s]=l}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 l=n.rows.filter(function(x){return x.value===s})[0],h={name:s,title:l?l.text:"row",value:o[s],displayValue:re.getTextOrHtmlByValue(n.visibleColumns,o[s]),getString:function(x){return typeof x=="object"?JSON.stringify(x):x},isNode:!1},y=re.getItemByValue(n.visibleColumns,o[s]);return y&&(e.calculations||[]).forEach(function(x){h[x.propertyName]=y[x.propertyName]}),h})}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 ni(n);r.choices=this.columns;var o=new Be().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={},l=this.rows,h=0;h<l.length;h++){var y=l[h].value;o[y]&&(e&&!l[h].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}(lt);w.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 Is("")},"matrixbase"),we.Instance.registerQuestion("matrix",function(i){var t=new Is(i);return t.rows=we.DefaultRows,t.columns=we.DefaultColums,t});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)}}(),Ka=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},Ya=function(i){Za(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.updateRemainingCharacterCounter=function(e,n){this.remainingCharacterCounter=d.getRemainingCharacterCounterText(e,n)},Ka([V()],t.prototype,"remainingCharacterCounter",void 0),t}(ce),go=function(i){Za(t,i);function t(e){var n=i.call(this,e)||this;return n.characterCounter=new Ya,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 d.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 q().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}),Ka([V({localizable:!0,onSet:function(e,n){return n.resetRenderedPlaceholder()}})],t.prototype,"placeholder",void 0),t}(_e);w.addClass("textbase",[],function(){return new go("")},"question");var Rc=function(){function i(t,e,n){var r=this;this.inputMaskInstance=t,this.inputElement=e,this.prevUnmaskedValue=void 0,this.inputMaskInstancePropertyChangedHandler=function(s,l){if(l.name!=="saveMaskedValue"){var h=r.inputMaskInstance.getMaskedValue(r.prevUnmaskedValue);r.inputElement.value=h}},this.clickHandler=function(s){r.inputElement.value==r.inputMaskInstance.getMaskedValue("")&&r.inputElement.setSelectionRange(0,0)},this.beforeInputHandler=function(s){var l=r.createArgs(s),h=r.inputMaskInstance.processInput(l);r.inputElement.value=h.value,r.inputElement.setSelectionRange(h.caretPosition,h.caretPosition),h.cancelPreventDefault||s.preventDefault()},this.changeHandler=function(s){var l=r.inputMaskInstance.processInput({prevValue:"",insertedChars:s.target.value,selectionStart:0,selectionEnd:0});r.inputElement.value=l.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}(),Ds=/[0-9]/;function Xa(){var i=w.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 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)}}(),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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},yo=function(i){Ic(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 Nr(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 Rc(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";w.findClass(e)||(e="masksettings");var n=w.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&&!d.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 Ot(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 M("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 Xe(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 l=new Xe(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);l.onUpdateErrorTextCallback=function(T){T.text=o.getMinMaxErrorText(o.maxErrorText,o.getCalculatedMinMax(o.renderedMax))},e.push(l)}this.dateValidationMessage&&e.push(new Xe(this.dateValidationMessage,this));var h=this.getValidatorTitle(),y=new Wr;if(y.errorOwner=this,this.inputType==="email"&&!this.validators.some(function(T){return T.getType()==="emailvalidator"})){var x=y.validate(this.value,h);x&&x.error&&e.push(x.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 d.convertValToQuestionVal(e,n)},t.prototype.getMinMaxErrorText=function(e,n){if(d.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 d.isNumber(e)?d.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(),l=o+1;return s+"-"+(l<10?"0":"")+l}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},As([V({onSet:function(e,n){n.onSetMaskType(e)}})],t.prototype,"maskType",void 0),As([V()],t.prototype,"inputTextAlignment",void 0),As([V()],t.prototype,"_inputValue",void 0),t}(go),Dc=["number","range","date","datetime-local","month","time","week"];function Ot(i){var t=i?i.inputType:"";return t?Dc.indexOf(t)>-1:!1}function eu(i,t){var e=i.split(t);return e.length!==2||!d.isNumber(e[0])||!d.isNumber(e[1])?-1:parseFloat(e[0])*60+parseFloat(e[1])}function Ac(i,t,e){var n=eu(i,e),r=eu(t,e);return n<0||r<0?!1:n>r}function tu(i,t,e,n){var r=n?e:t;if(!Ot(i)||d.isValueEmpty(t)||d.isValueEmpty(e))return r;if(i.inputType.indexOf("date")===0||i.inputType==="month"){var o=i.inputType==="month",s="question-text-minmax",l=M(s,o?t+"-01":t),h=M(s,o?e+"-01":e);if(!l||!h)return r;if(l>h)return n?t:e}if(i.inputType==="week"||i.inputType==="time"){var y=i.inputType==="week"?"-W":":";return Ac(t,e,y)?n?t:e:r}if(i.inputType==="number"){if(!d.isNumber(t)||!d.isNumber(e))return r;if(d.getNumber(t)>d.getNumber(e))return n?t:e}return typeof t=="string"||typeof e=="string"?r:t>e?n?t:e:r}function nu(i,t){i&&i.inputType&&(t.inputType=i.inputType!=="range"?i.inputType:"number",t.textUpdateMode="onBlur")}w.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 Ot(i)},onPropertyEditorUpdate:function(i,t){nu(i,t)},onSettingValue:function(i,t){return tu(i,t,i.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(i){return Ot(i)},onSettingValue:function(i,t){return tu(i,i.min,t,!0)},onPropertyEditorUpdate:function(i,t){nu(i,t)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Ot(i)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Ot(i)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(i){return Ot(i)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(i){return Ot(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=Xa();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 yo("")},"textbase"),we.Instance.registerQuestion("text",function(i){return new yo(i)});var pr=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)}}(),Ls=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},ru=function(i){pr(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}(yo),Ms=function(i){pr(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 ru(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 d.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}(ce),mo=function(i){pr(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=we.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 Be().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 d.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,l=[],h=0;h<n.length;h++)r==0&&(o=this.onRowCreated(new js),s=this.onRowCreated(new iu),this.showItemErrorOnTop?(l.push(s),l.push(o)):(l.push(o),l.push(s))),o.cells.push(new Ns(n[h],this)),s.cells.push(new ou(n[h],this)),r++,(r>=e||h==n.length-1)&&(r=0,s.onAfterCreated());this.rows=l},t.prototype.getRows=function(){return d.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 Ms(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(l){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 qe.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],l=n[s.name];if(!d.isValueEmpty(l)){var h=s.name;e&&s.title&&(h=s.title),r[h]=s.editor.getDisplayValue(e,l)}}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 q().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 q().append(this.cssClasses.item).toString()},t.prototype.getItemTitleCss=function(){return new q().append(this.cssClasses.itemTitle).toString()},Ls([Ae()],t.prototype,"rows",void 0),t}(_e),js=function(i){pr(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isVisible=!0,e.cells=[],e}return Ls([V()],t.prototype,"isVisible",void 0),Ls([Ae()],t.prototype,"cells",void 0),t}(ce),iu=function(i){pr(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}(js),Ns=function(){function i(t,e){this.item=t,this.question=e,this.isErrorsCell=!1}return i.prototype.getClassName=function(){return new q().append(this.question.cssClasses.cell).toString()},Object.defineProperty(i.prototype,"className",{get:function(){return this.getClassName()},enumerable:!1,configurable:!0}),i}(),ou=function(i){pr(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 q().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}(Ns);w.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=Xa();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 Ot(i)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Ot(i)}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new Ms("")}),w.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 mo("")},"question"),we.Instance.registerQuestion("multipletext",function(i){var t=new mo(i);return mo.addDefaultItems(t),t});var 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)}}(),su=function(i){Lc(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 l=this.getQuestionFromText(s[0]);l?e.push(this.getHtmlForQuestion(l)):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 l=this;if(l.getContent){var h=l.getContent(n);this.content=h}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(ei);w.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],function(){return new su},"panel");var Mc=function(){function i(){}return i.getIconCss=function(t,e){return new q().append(t.icon).append(t.iconExpanded,!e).toString()},i}(),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)}}(),vo=function(i){jc(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}(_e);w.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 vo("")},"question");var Nc=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)}}(),au=function(i){Nc(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getType=function(){return"empty"},t}(_e);w.addClass("empty",[],function(){return new au("")},"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)}}(),ri=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",l=s?o:{};s||(l[n.valuePropertyName]=o),r.push(l)}),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(h){return re.getItemByValue(o,h)}).filter(function(h){return!!h});!s.length&&!r&&this.updateSelectedItemValues();var l=this.validateItemValues(s);return l},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 Xe(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 q().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)||!d.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 l=this.noneIndexInArray(n,[o.val]);l.index>-1&&l.index<n.length-1&&n.splice(l.index,1)}else if(s.index>-1&&n.length>1){var h=this.convertValueToObject([s.val])[0];n.splice(0,n.length,h)}}},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 l=n[s];return r&&l[r]&&(l=l[r]),l};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=[],l=0;l<n.length;l++){var h=this.getRealValue(n[l]),y=this.canClearValueAnUnknown(h);!e&&!y||e&&!this.isValueDisabled(h)?s.push(n[l]):(r=!0,y&&this.addIntoInvisibleOldValues(n[l]))}for(var l=0;l<o.length;l++)s.push(o[l]),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;d.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 d.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?d.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())),d.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}(ti);w.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 ri("")},"checkboxbase"),we.Instance.registerQuestion("checkbox",function(i){var t=new ri(i);return t.choices=we.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)}}(),Bc=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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){_c(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()},Bc([V()],t.prototype,"hideSelectedItems",void 0),t}(Wt),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)}}(),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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},lu=function(i){Fc(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(l,h){e.resetFilterString(),l.id==="selectall"?e.selectAllItems():h==="added"&&l.value===I.noneItemValue?e.selectNoneItem():h==="added"?e.selectItem(l.value):h==="removed"&&e.deselectItem(l.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 uu(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 Ie(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()},bo([V({defaultValue:""})],t.prototype,"filterStringPlaceholder",void 0),bo([V({defaultValue:!0})],t.prototype,"closeOnSelect",void 0),bo([V()],t.prototype,"previousValue",void 0),bo([V({localizable:{defaultStr:"tagboxDoneButtonCaption"}})],t.prototype,"doneButtonCaption",void 0),t}(ho),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)}}(),rn=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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){kc(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 lu(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 q().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),En(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(l){return l.value});return r.filter(function(l){return s.indexOf(l)===-1}).forEach(function(l){var h=n.getItemIfChoicesNotContainThisValue(l,n.itemDisplayNameMap[l]);h&&e.push(h)}),e.sort(function(l,h){return r.indexOf(l.value)-r.indexOf(h.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}),rn([V()],t.prototype,"searchMode",void 0),rn([V()],t.prototype,"allowClear",void 0),rn([V({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),rn([V({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setHideSelectedItems(e)}})],t.prototype,"hideSelectedItems",void 0),rn([V({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),rn([V()],t.prototype,"choicesLazyLoadPageSize",void 0),rn([V({getDefaultValue:function(){return I.tagboxCloseOnSelect}})],t.prototype,"closeOnSelect",void 0),rn([V()],t.prototype,"textWrapEnabled",void 0),t}(ri);w.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"),we.Instance.registerQuestion("tagbox",function(i){var t=new qs(i);return t.choices=we.DefaultChoices,t});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)}}(),cu=function(i){Qc(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,l=n.closest("[data-sv-drop-target-item-value]").cloneNode(s);l.classList.add("sv-drag-drop-choices-shortcut__content");var h=l.querySelector(".svc-item-value-controls__drag-icon");h.style.visibility="visible";var y=l.querySelector(".svc-item-value-controls__remove");y.style.backgroundColor="transparent",l.classList.remove("svc-item-value--moveup"),l.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,o.appendChild(l);var x=n.getBoundingClientRect();return o.shortcutXOffset=r.clientX-x.x,o.shortcutYOffset=r.clientY-x.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 l=r.closest("[data-sv-drop-target-item-value]");this.imagepickerControlsNode=l.querySelector(".svc-image-item-value-controls");var h=l.querySelector(".sd-imagepicker__image-container"),y=l.querySelector(e.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="none"),h.style.width=y.width+"px",h.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}(hs),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)}}(),pu=function(i){Hc(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,l=s[r];n.isValueSetByUser=!0,s.splice(r,1),s.splice(o,0,l),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,l=n.cloneNode(s);o.appendChild(l);var h=n.getBoundingClientRect();o.style.left=h.x,o.style.top=h.y,this.domAdapter.rootElement.append(o);var y=o.offsetHeight,x=r.clientY;return x>h.y+y&&(x=h.y+y-10),o.shortcutXOffset=r.clientX-h.x,o.shortcutYOffset=x-h.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 q().append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,uo).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 l=e.value.length;s=l}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}(cu),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)}}(),fu=function(i){zc(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),l=n.unRankingChoices,h=l[r];s.splice(o,0,h),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,l=this.getIndices(s,n,r),h=l.fromIndex,y=l.toIndex;o(s,h,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}(pu),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)}}(),on=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},_s=function(i){Uc(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 xt(n.getChoicesAnimationOptions(!0),function(r){n._renderedRankingChoices=r},function(){return n.renderedRankingChoices}),n._unRankingChoicesAnimation=new xt(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 l=r.target;n.isDragStartNodeValid(l)&&n.isAllowStartDrag(l,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 l=r.target;n.isAllowStartDrag(l,o)&&n.handleKeydownSelectToRank(r,o," ",!1)}},n.handleKeydown=function(r,o){if(!n.isReadOnlyAttr&&!n.isDesignMode){var s=r.key,l=n.rankingChoices.indexOf(o);if(n.selectToRankEnabled){n.handleKeydownSelectToRank(r,o);return}if(s==="ArrowUp"&&l||s==="ArrowDown"&&l!==n.rankingChoices.length-1){var h=s=="ArrowUp"?l-1:l+1;n.dragDropRankingChoices.reorderRankedItem(n,l,h),n.setValueAfterKeydown(h,"",!0,r)}}},n.focusItem=function(r,o){if(n.domNode)if(n.selectToRankEnabled&&o){var s="[data-ranking='"+o+"']",l=n.domNode.querySelectorAll(s+" ."+n.cssClasses.item);l[r].focus()}else{var l=n.domNode.querySelectorAll("."+n.cssClasses.item);l[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 gs(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 q().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 q().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 q().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 q().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 d.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,l="";n.selectToRankEnabled&&(!e&&s.containerFromMode?l=Fe(s.containerFromMode):e&&s.containerToMode&&(l=Fe(s.containerToMode)));var h=e?n.renderedRankingChoices.indexOf(r):n.renderedUnRankingChoices.indexOf(r);return(o=n.domNode)===null||o===void 0?void 0:o.querySelector(l+" [data-sv-drop-target-ranking-item='"+h+"']")},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 fu(this.survey,null,this.longTap):new pu(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 l=this.dragDropRankingChoices,h=this.rankingChoices,y=h.indexOf(n)!==-1,x=y?h:this.unRankingChoices,T=x.indexOf(n);if(!(T<0)){var j;if(s===" "&&!y){if(!this.checkMaxSelectedChoicesUnreached()||!this.canStartDragDueItemEnabled(n))return;j=this.value.length,l.selectToRank(this,T,j),this.setValueAfterKeydown(j,"to-container",o,e);return}if(y){if(s===" "){l.unselectFromRank(this,T),j=this.unRankingChoices.indexOf(n),this.setValueAfterKeydown(j,"from-container",o,e);return}var z=s==="ArrowUp"?-1:s==="ArrowDown"?1:0;z!==0&&(j=T+z,!(j<0||j>=h.length)&&(l.reorderRankedItem(this,T,j),this.setValueAfterKeydown(j,"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 q().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return new q().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 uo},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}),on([Ae({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),on([Ae({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),on([Ae()],t.prototype,"_renderedRankingChoices",void 0),on([Ae()],t.prototype,"_renderedUnRankingChoices",void 0),on([V({defaultValue:null})],t.prototype,"currentDropTarget",void 0),on([V({defaultValue:!0})],t.prototype,"carryForwardStartUnranked",void 0),on([V({localizable:{defaultStr:"selectToRankEmptyRankedAreaText"}})],t.prototype,"selectToRankEmptyRankedAreaText",void 0),on([V({localizable:{defaultStr:"selectToRankEmptyUnrankedAreaText"}})],t.prototype,"selectToRankEmptyUnrankedAreaText",void 0),t}(ri);w.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 _s("")},"checkbox"),we.Instance.registerQuestion("ranking",function(i){var t=new _s(i);return t.choices=we.DefaultChoices,t});var 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)}}(),Bs=function(i){Wc(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 Dn(this.getTextAreaOptions())),this.textAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getTextAreaOptions=function(){var e=this,n=this,r=function(s){d.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}(go);w.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 Bs("")},"textbase"),we.Instance.registerQuestion("comment",function(i){return new Bs(i)});var ii="environment",sn="user",$c=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(sn)>-1?sn:r.indexOf(ii)>-1?ii:r.indexOf("front")>-1?sn:r.indexOf("back")>-1?ii:""};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===sn)return-1;if(s===sn)return 1;if(o===ii)return-1;if(s===ii)return 1}}var l=t.indexOf(n),h=t.indexOf(r);return l<h?-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(l){var h;t.srcObject=l,!(!((h=i.cameraList[i.cameraIndex])===null||h===void 0)&&h.deviceId)&&l.getTracks()[0].getCapabilities().facingMode&&(i.canSwitchFacingMode=!0,o.updateCanFlipValue()),t.play(),e(l)}).catch(function(l){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===sn?"environment":sn: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=sn,i.canSwitchFacingMode=!1,i}(),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)}}(),De=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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 Gc(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 du=function(i){Fs(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 Rn(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 Rn(s,n))}),n.stateChanged("error"))),r==="success"&&Array.isArray(o)&&n.setValueFromResult(o),r==="error"&&(typeof o=="string"&&n.errors.push(new Rn(o,n)),Array.isArray(o)&&o.length>0&&o.forEach(function(s){return n.errors.push(new Rn(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}),De([V()],t.prototype,"isUploading",void 0),De([V({defaultValue:"empty"})],t.prototype,"currentState",void 0),t}(_e),hu=function(i){Fs(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,De([Ae({})],t.prototype,"items",void 0),t}(ce),ks=function(i){Fs(t,i);function t(e){var n=i.call(this,e)||this;return n.isDragging=!1,n.fileNavigator=new ft,n.canFlipCameraValue=void 0,n.prevPreviewLength=0,n._renderedPages=[],n.pagesAnimation=new Zn(n.getPagesAnimationOptions(),function(r){n._renderedPages=r},function(){return n.renderedPages}),n.calcAvailableItemsCount=function(r,o,s){var l=Math.floor(r/(o+s));return(l+1)*(o+s)-s<=r&&l++,l},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){Mt({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(),wn()&&(r.preventDefault(),Xn(o.content,o.name))},n.createLocalizableString("takePhotoCaption",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.actionsContainer=new ft,n.actionsContainer.locOwner=n,n.fileIndexAction=new be({id:"fileIndex",title:n.getFileIndexCaption(),enabled:!1}),n.prevFileAction=new be({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 be({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 be({iconName:"icon-takepicture",id:"sv-file-take-picture",iconSize:"auto",innerCss:new Ie(function(){return new q().append(n.cssClasses.contextButton).append(n.cssClasses.takePictureButton).toString()}),locTitle:n.locTakePhotoCaption,showTitle:!1,action:function(){n.snapPicture()}}),n.closeCameraAction=new be({iconName:"icon-closecamera",id:"sv-file-close-camera",iconSize:"auto",innerCss:new Ie(function(){return new q().append(n.cssClasses.contextButton).append(n.cssClasses.closeCameraButton).toString()}),action:function(){n.stopVideo()}}),n.changeCameraAction=new be({iconName:"icon-changecamera",id:"sv-file-change-camera",iconSize:"auto",innerCss:new Ie(function(){return new q().append(n.cssClasses.contextButton).append(n.cssClasses.changeCameraButton).toString()}),visible:new Ie(function(){return n.canFlipCamera()}),action:function(){n.flipCamera()}}),n.chooseFileAction=new be({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 be({iconName:"icon-takepicture_24x24",id:"sv-file-start-camera",iconSize:"auto",locTitle:n.locTakePhotoCaption,showTitle:new Ie(function(){return!n.isAnswered}),enabledIf:function(){return!n.isInputReadOnly},action:function(){n.startVideo()}}),n.cleanAction=new be({iconName:"icon-clear",id:"sv-file-clean",iconSize:"auto",locTitle:n.locClearButtonCaption,showTitle:!1,enabledIf:function(){return!n.isInputReadOnly},innerCss:new Ie(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()},mt(this.imageWidth),mt(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 hu(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 Ie(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 q().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(l){return!d.isTwoValueEquals(l,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 l=new FileReader;l.onload=function(h){o=o.concat([{name:s.name,type:s.type,content:l.result}]),o.length===e.length&&(n.value=(n.value||[]).concat(o))},l.readAsDataURL(s)}):n.uploadFiles(e)};this.allowMultiple?r():this.clear(r)}},Object.defineProperty(t.prototype,"camera",{get:function(){return this.cameraValue||(this.cameraValue=new $c),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 gu(this,function(o,s){o!=="error"&&(s.forEach(function(l){n.previewValue.push(l)}),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 Qr(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(l){return typeof l=="object"?JSON.stringify(l):l},isNode:!1}})}return n},t.prototype.getImageWrapperCss=function(e){return new q().append(this.cssClasses.imageWrapper).append(this.cssClasses.imageWrapperDefaultImage,this.defaultImage(e)).toString()},t.prototype.getActionsContainerCss=function(e){return new q().append(e.actionsContainer).append(e.actionsContainerAnswered,this.isAnswered).toString()},t.prototype.getRemoveButtonCss=function(){return new q().append(this.cssClasses.removeFileButton).append(this.cssClasses.contextButton).toString()},t.prototype.getChooseFileCss=function(){var e=this.isAnswered;return new q().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 q().append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(t.prototype,"fileRootCss",{get:function(){return new q().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 q().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 Fe(this.cssClasses.dragArea)},t.prototype.getFileListSelector=function(){return Fe(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 q().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 q().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(Fe(this.cssClasses.page));if(s){var l=s.querySelector(Fe(this.cssClasses.previewItem));this.calculatedGapBetweenItems=Math.ceil(Number.parseFloat(R.getComputedStyle(s).gap)),l&&(this.calculatedItemWidth=Math.ceil(Number.parseFloat(R.getComputedStyle(l).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){Mt({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)},De([V()],t.prototype,"isDragging",void 0),De([Ae({})],t.prototype,"previewValue",void 0),De([Ae({})],t.prototype,"pages",void 0),De([V({defaultValue:0,onSet:function(e,n){n.updateRenderedPages()}})],t.prototype,"indexToShow",void 0),De([V({defaultValue:1,onSet:function(e,n){n.updateFileNavigator()}})],t.prototype,"pageSize",void 0),De([V({defaultValue:!1})],t.prototype,"containsMultiplyFiles",void 0),De([V()],t.prototype,"allowCameraAccess",void 0),De([V({onSet:function(e,n){n.isLoadingFromJson||n.updateCurrentMode()}})],t.prototype,"sourceType",void 0),De([V()],t.prototype,"canFlipCameraValue",void 0),De([V({localizable:{defaultStr:"confirmRemoveFile"}})],t.prototype,"confirmRemoveMessage",void 0),De([V({localizable:{defaultStr:"confirmRemoveAllFiles"}})],t.prototype,"confirmRemoveAllMessage",void 0),De([V({localizable:{defaultStr:"noFileChosen"}})],t.prototype,"noFileChosenCaption",void 0),De([V({localizable:{defaultStr:"chooseFileCaption"}})],t.prototype,"chooseButtonCaption",void 0),De([V({localizable:{defaultStr:"replaceFileCaption"}})],t.prototype,"replaceButtonCaption",void 0),De([V({localizable:{defaultStr:"removeFileCaption"}})],t.prototype,"removeFileCaption",void 0),De([V({localizable:{defaultStr:"loadingFile"}})],t.prototype,"loadingFileTitle",void 0),De([V({localizable:{defaultStr:"chooseFile"}})],t.prototype,"chooseFileTitle",void 0),De([V({localizable:{defaultStr:"fileOrPhotoPlaceholder"}})],t.prototype,"fileOrPhotoPlaceholder",void 0),De([V({localizable:{defaultStr:"photoPlaceholder"}})],t.prototype,"photoPlaceholder",void 0),De([V({localizable:{defaultStr:"filePlaceholder"}})],t.prototype,"filePlaceholder",void 0),De([V()],t.prototype,"locRenderedPlaceholderValue",void 0),De([Ae()],t.prototype,"_renderedPages",void 0),t}(du);w.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 ks("")},"question"),we.Instance.registerQuestion("file",function(i){return new ks(i)});var gu=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,l){!e.fileQuestion||!e.callback||(s!=="error"?(e.loaded[o]={content:l,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}(),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){Jc(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 q().append(this.cssClasses.root).append(this.cssClasses.nested,this.getIsNested()).toString()||void 0},enumerable:!1,configurable:!0}),t}(vo);w.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 Qs("")},"nonvalue"),we.Instance.registerQuestion("html",function(i){return new Qs(i)});var 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)}}(),Hs=function(i){Zc(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 be({locTitleName:"clearCaption",id:"sv-clr-btn-"+this.id,action:function(){e.clearValue(!0)},innerCss:this.cssClasses.clearButton,visible:new Ie(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}(ti);w.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1},{name:"separateSpecialChoices",visible:!0},{name:"itemComponent",visible:!1,default:"survey-radiogroup-item"}],function(){return new Hs("")},"checkboxbase"),we.Instance.registerQuestion("radiogroup",function(i){var t=new Hs(i);return t.choices=we.DefaultChoices,t});var zs=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)}}(),it=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},Co=function(i){zs(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}),it([V({defaultValue:""})],t.prototype,"highlight",void 0),it([V({defaultValue:""})],t.prototype,"text",void 0),it([V()],t.prototype,"style",void 0),t}(ce),Kc=function(i){zs(t,i);function t(e,n,r){var o=i.call(this,e,n)||this;return o.description=r,o}return t}(re),Us=function(i){zs(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 l=!!e&&e[o];if(l||(l=n(s)),!l)return null;var h=R.createElement("canvas");if(!h)return null;var y=h.getContext("2d");y.fillStyle=l,y.fillStyle=="#000000"&&(y.fillStyle=n(s));var x=y.fillStyle;if(x.startsWith("rgba"))return x.substring(5,x.length-1).split(",").map(function(j){return+j.trim()});var T=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(x);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(l){o=o||!l.isVisible,l.setIsVisible(l,!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 Co(r,e.minRateDescription&&e.locMinRateDescription||r.locText)),o==n.length-1&&(s=new Co(r,e.maxRateDescription&&e.locMaxRateDescription||r.locText))),s||(s=new Co(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 Kc(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 q().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),l=n.filter(function(h){return s.indexOf(h)!=-1});return this.useRateValues()?l[this.rateValues.indexOf(e)]:l[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,l=n?t.normalColorLight:t.normalColor;if(e<s?o=l:(r=l,e-=s),!r||!o)return null;for(var h=[0,0,0,0],y=0;y<4;y++)h[y]=r[y]+(o[y]-r[y])*e/s,y<3&&(h[y]=Math.trunc(h[y]));return"rgba("+h[0]+", "+h[1]+", "+h[2]+", "+h[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(Nn){return Nn.value==r.value})[0])>=this.rateValues.indexOf(e):o=this.value>=e.value);var s=this.isReadOnly||!e.isEnabled,l=!s&&this.value!=e.value&&!(this.survey&&this.survey.isDesignMode),h=this.renderedRateItems.filter(function(Nn){return Nn.itemValue==e})[0],y=this.isStar&&(h==null?void 0:h.highlight)=="highlighted",x=this.isStar&&(h==null?void 0:h.highlight)=="unhighlighted",T=this.cssClasses.item,j=this.cssClasses.selected,z=this.cssClasses.itemDisabled,U=this.cssClasses.itemReadOnly,X=this.cssClasses.itemPreview,Y=this.cssClasses.itemHover,W=this.cssClasses.itemOnError,ue=null,Me=null,je=null,ht=null,vt=null;this.isStar&&(T=this.cssClasses.itemStar,j=this.cssClasses.itemStarSelected,z=this.cssClasses.itemStarDisabled,U=this.cssClasses.itemStarReadOnly,X=this.cssClasses.itemStarPreview,Y=this.cssClasses.itemStarHover,W=this.cssClasses.itemStarOnError,ue=this.cssClasses.itemStarHighlighted,Me=this.cssClasses.itemStarUnhighlighted,vt=this.cssClasses.itemStarSmall),this.isSmiley&&(T=this.cssClasses.itemSmiley,j=this.cssClasses.itemSmileySelected,z=this.cssClasses.itemSmileyDisabled,U=this.cssClasses.itemSmileyReadOnly,X=this.cssClasses.itemSmileyPreview,Y=this.cssClasses.itemSmileyHover,W=this.cssClasses.itemSmileyOnError,ue=this.cssClasses.itemSmileyHighlighted,je=this.cssClasses.itemSmileyScaleColored,ht=this.cssClasses.itemSmileyRateColored,vt=this.cssClasses.itemSmileySmall);var hr=!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 q().append(T).append(j,o).append(z,this.isDisabledStyle).append(U,this.isReadOnlyStyle).append(X,this.isPreviewStyle).append(Y,l).append(ue,y).append(je,this.scaleColorMode=="colored").append(ht,this.rateColorMode=="scale"&&o).append(Me,x).append(W,this.hasCssError()).append(vt,this.itemSmallMode).append(this.cssClasses.itemFixedSize,hr).toString()},t.prototype.getControlClass=function(){return this.isEmpty(),new q().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 ho(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),En(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,it([V({defaultValue:!1})],t.prototype,"inputHasValue",void 0),it([V()],t.prototype,"autoGenerate",void 0),it([V()],t.prototype,"rateCount",void 0),it([V({defaultValue:!1})],t.prototype,"hasMinRateDescription",void 0),it([V({defaultValue:!1})],t.prototype,"hasMaxRateDescription",void 0),it([V()],t.prototype,"displayRateDescriptionsAsExtremeItems",void 0),it([V()],t.prototype,"displayMode",void 0),it([V()],t.prototype,"rateDescriptionLocation",void 0),it([V()],t.prototype,"rateType",void 0),it([V()],t.prototype,"scaleColorMode",void 0),it([V()],t.prototype,"rateColorMode",void 0),t}(_e);w.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 Us("")},"question"),we.Instance.registerQuestion("rating",function(i){return new Us(i)});var 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)}}(),fr=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},Ws=function(i){Yc(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 q().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 q().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&&(Fi(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){Fi(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}),fr([V()],t.prototype,"booleanValueRendered",void 0),fr([V()],t.prototype,"showTitle",void 0),fr([V({localizable:!0})],t.prototype,"label",void 0),fr([V({defaultValue:!1})],t.prototype,"swapOrder",void 0),fr([V()],t.prototype,"valueTrue",void 0),fr([V()],t.prototype,"valueFalse",void 0),t}(_e);w.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 Ws("")},"question"),we.Instance.registerQuestion("boolean",function(i){return new Ws(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)}}(),Et=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},mu=function(i){yu(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 oi&&this.locOwner.contentMode=="video"?this.videoNotLoaded:this.imageNotLoaded},set:function(e){this.locOwner instanceof oi&&this.locOwner.contentMode=="video"?this.videoNotLoaded=e:this.imageNotLoaded=e},enumerable:!1,configurable:!0}),Et([V({defaultValue:!1})],t.prototype,"videoNotLoaded",void 0),Et([V({defaultValue:!1})],t.prototype,"imageNotLoaded",void 0),t}(re),oi=function(i){yu(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?d.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 q().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 Fe(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,je){var ht=Math.floor(ue/(Me+je));return(ht+1)*(Me+je)-je<=ue&&ht++,ht};if(this.isResponsive){var o=this.choices.length+(this.isDesignMode?1:0),s=(this.gapBetweenItems||0)*this.imageScale,l=this.minImageWidth*this.imageScale,h=this.maxImageWidth*this.imageScale,y=this.maxImageHeight*this.imageScale,x=this.minImageHeight*this.imageScale,T=this.colCount,j;if(T===0)if((s+l)*o-s>n){var z=r(n,l,s);j=Math.floor((n-s*(z-1))/z)}else j=Math.floor((n-s*(o-1))/o);else{var U=r(n,l,s);U<T?(this.responsiveColCount=U>=1?U:1,T=this.responsiveColCount):this.responsiveColCount=T,j=Math.floor((n-s*(T-1))/T)}j=Math.max(l,Math.min(j,h));var X=Number.MIN_VALUE;this.choices.forEach(function(ue){var Me=j/ue.aspectRatio;X=Me>X?Me:X}),X>y?X=y:X<x&&(X=x);var Y=this.responsiveImageWidth,W=this.responsiveImageHeight;return this.responsiveImageWidth=j,this.responsiveImageHeight=X,Y!==this.responsiveImageWidth||W!==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())},Et([V({})],t.prototype,"responsiveImageHeight",void 0),Et([V({})],t.prototype,"responsiveImageWidth",void 0),Et([V({})],t.prototype,"isResponsiveValue",void 0),Et([V({})],t.prototype,"maxImageWidth",void 0),Et([V({})],t.prototype,"minImageWidth",void 0),Et([V({})],t.prototype,"maxImageHeight",void 0),Et([V({})],t.prototype,"minImageHeight",void 0),Et([V({})],t.prototype,"responsiveColCount",void 0),t}(ti);w.addClass("imageitemvalue",[{name:"imageLink:file",serializationProperty:"locImageLink"}],function(i){return new mu(i)},"itemvalue"),w.addClass("responsiveImageSize",[],void 0,"number"),w.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 oi("")},"checkboxbase"),w.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),w.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),w.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),w.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),we.Instance.registerQuestion("imagepicker",function(i){var t=new oi(i);return t});var 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)}}(),ep=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},vu=[".mp4",".mov",".wmv",".flv",".avi",".mkv"],tp="https://www.youtube.com/",bu="embed",$s=function(i){Xc(t,i);function t(e){var n=i.call(this,e)||this,r=n.createLocalizableString("imageLink",n,!1);return r.onGetTextCallback=function(o){return np(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?ir(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.imageHeight?mt(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?ir(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){return this.imageWidth?mt(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 q().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 d.isUrlYoutubeVideo(this.imageLink)},t.prototype.isVideo=function(){var e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(var n=0;n<vu.length;n++)if(e.endsWith(vu[n]))return!0;return!1},ep([V({defaultValue:!1})],t.prototype,"contentNotLoaded",void 0),t}(vo);function np(i,t){if(!i||!d.isUrlYoutubeVideo(i))return t?"":i;var e=i.toLocaleLowerCase();if(e.indexOf(bu)>-1)return i;for(var n="",r=i.length-1;r>=0&&!(i[r]==="="||i[r]==="/");r--)n=i[r]+n;return tp+bu+"/"+n}w.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 $s("")},"nonvalue"),we.Instance.registerQuestion("image",function(i){return new $s(i)});/*!
- * Signature Pad v4.2.0 | https://github.com/szimek/signature_pad
- * (c) 2024 Szymon Nowak | Released under the MIT license
- */class Po{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 Gs{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 Gs(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,l=e.y-n.y,h={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},x=Math.sqrt(r*r+o*o),T=Math.sqrt(s*s+l*l),j=h.x-y.x,z=h.y-y.y,U=T/(x+T),X={x:y.x+j*U,y:y.y+z*U},Y=e.x-X.x,W=e.y-X.y;return{c1:new Po(h.x+Y,h.y+W),c2:new Po(y.x+Y,y.y+W)}}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,l=this.point(s,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),h=this.point(s,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){const y=l-n,x=h-r;e+=Math.sqrt(y*y+x*x)}n=l,r=h}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 rp{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 ip(i,t=250){let e=0,n=null,r,o,s;const l=()=>{e=Date.now(),n=null,r=i.apply(o,s),n||(o=null,s=[])};return function(...y){const x=Date.now(),T=t-(x-e);return o=this,s=y,T<=0||T>t?(n&&(clearTimeout(n),n=null),e=x,r=i.apply(o,s),n||(o=null,s=[])):n||(n=window.setTimeout(l,T)),r}}class wo extends rp{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?ip(wo.prototype._strokeUpdate,this.throttle):wo.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,l=e.width||this.canvas.width/s,h=e.height||this.canvas.height/s,y=e.xOffset||0,x=e.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,y,x,l,h),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],l=s.points,h=l.length>0&&l[l.length-1],y=h?o.distanceTo(h)<=this.minDistance:!1,x=this._getPointGroupOptions(s);if(!h||!(h&&y)){const T=this._addPoint(o,x);h?T&&this._drawCurve(T,x):this._drawDot(o,x),l.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 Po(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=Gs.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 l=s/o,h=l*l,y=h*l,x=1-l,T=x*x,j=T*x;let z=j*t.startPoint.x;z+=3*T*l*t.control1.x,z+=3*x*h*t.control2.x,z+=y*t.endPoint.x;let U=j*t.startPoint.y;U+=3*T*l*t.control1.y,U+=3*x*h*t.control2.y,U+=y*t.endPoint.y;const X=Math.min(t.startWidth+y*r,e.maxWidth);this._drawCurveSegment(z,U,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 l=0;l<o.length;l+=1){const h=o[l],y=new Po(h.x,h.y,h.pressure,h.time);l===0&&this._reset(s);const x=this._addPoint(y,s);x&&e(x,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,l=this.canvas.height/n,h=document.createElementNS("http://www.w3.org/2000/svg","svg");if(h.setAttribute("xmlns","http://www.w3.org/2000/svg"),h.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),h.setAttribute("viewBox",`${r} ${o} ${s} ${l}`),h.setAttribute("width",s.toString()),h.setAttribute("height",l.toString()),t&&this.backgroundColor){const y=document.createElement("rect");y.setAttribute("width","100%"),y.setAttribute("height","100%"),y.setAttribute("fill",this.backgroundColor),h.appendChild(y)}return this._fromData(e,(y,{penColor:x})=>{const T=document.createElement("path");if(!isNaN(y.control1.x)&&!isNaN(y.control1.y)&&!isNaN(y.control2.x)&&!isNaN(y.control2.y)){const j=`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",j),T.setAttribute("stroke-width",(y.endWidth*2.25).toFixed(3)),T.setAttribute("stroke",x),T.setAttribute("fill","none"),T.setAttribute("stroke-linecap","round"),h.appendChild(T)}},(y,{penColor:x,dotSize:T,minWidth:j,maxWidth:z})=>{const U=document.createElement("circle"),X=T>0?T:(j+z)/2;U.setAttribute("r",X.toString()),U.setAttribute("cx",y.x.toString()),U.setAttribute("cy",y.y.toString()),U.setAttribute("fill",x),h.appendChild(U)}),h.outerHTML}}var op=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)}}(),kt=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},sp=300,ap=200,Js=function(i){op(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,l=this.backgroundImage?"transparent":this.backgroundColor;e.backgroundColor=l||s||o.defaultValue||"#ffffff"},t.prototype.getCssRoot=function(e){return new q().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,ji(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 l=o.toDataURL(n.getFormat());n.fromDataUrl(l)}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 gu(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 wo(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(l,h){(h.name==="signatureWidth"||h.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",Zs(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||ap},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerWidth",{get:function(){return this.signatureWidth||sp},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([Gc(this.signaturePad.toDataURL(this.getFormat()),this.name+"."+Zs(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&&(se.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),this.signatureHeight===200&&this.height&&(se.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},kt([V({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),kt([V({defaultValue:!1})],t.prototype,"isReadyForUpload",void 0),kt([V({defaultValue:!1})],t.prototype,"valueWasChangedFromLastUpload",void 0),kt([V()],t.prototype,"signatureAutoScaleEnabled",void 0),kt([V()],t.prototype,"penMinWidth",void 0),kt([V()],t.prototype,"penMaxWidth",void 0),kt([V({})],t.prototype,"showPlaceholder",void 0),kt([V({localizable:{defaultStr:"signaturePlaceHolder"}})],t.prototype,"placeholder",void 0),kt([V({localizable:{defaultStr:"signaturePlaceHolderReadOnly"}})],t.prototype,"placeholderReadOnly",void 0),t}(du);function Zs(i){return i||(i="png"),i=i.replace("image/","").replace("+xml",""),i!=="jpeg"&&i!=="svg"&&(i="png"),i}w.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 Zs(t)}},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1}],function(){return new Js("")},"question"),we.Instance.registerQuestion("signaturepad",function(i){return new Js(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)}}(),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 l=i.length-1;l>=0;l--)(s=i[l])&&(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(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},lp=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==et.IndexVariableName){var n=this.panelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(e.name==et.VisibleIndexVariableName){var n=this.visiblePanelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(e.name.toLowerCase().indexOf(et.ParentItemVariableName+".")==0){var r=this.data;if(r&&r.parentQuestion&&r.parent&&r.parent.data){var o=new t(r.parentQuestion,r.parent.data,et.ItemVariableName),s=et.ItemVariableName+e.name.substring(et.ParentItemVariableName.length),l=o.processValue(s,e.returnDisplayValue);e.isExists=l.isExists,e.value=l.value}return!0}return!1},t}(lr),et=function(){function i(t,e){this.data=t,this.panelValue=e,this.textPreProcessor=new lp(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(!d.isTwoValueEquals(e,r,!1,!0,!1)){this.data.setPanelItemData(this,t,d.getUnbindValue(e));for(var o=this.panel.questions,s=i.ItemVariableName+"."+t,l=0;l<o.length;l++){var h=o[l];h.getValueName()!==t&&h.checkBindings(t,e),h.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}(),cp=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}(),Ks=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=w.findProperty(e.getType(),n.name);if(r)for(var o=this.panelsCore,s=0;s<o.length;s++){var l=o[s].getQuestionByName(e.name);l&&l[n.name]!==n.newValue&&(l[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 q,o=!1,s=e.renderedPanels.filter(function(h){return h!==e.currentPanel})[0],l=e.visiblePanels.indexOf(s);return l<0&&(o=!0,l=e.removedPanelIndex),r.append("sv-pd-animation-adding",!!e.focusNewPanelCallback).append("sv-pd-animation-removing",o).append("sv-pd-animation-left",l<=e.currentIndex).append("sv-pd-animation-right",l>e.currentIndex).toString()};return{getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(r){var o,s;if(r&&e.cssContent){var l=Fe(e.cssContent);return(s=(o=e.getWrapperElement())===null||o===void 0?void 0:o.querySelector(":scope "+l+" #"+r.id))===null||s===void 0?void 0:s.parentElement}},getEnterOptions:function(){var r=new q().append(e.cssClasses.panelWrapperEnter).append(n()).toString();return{onBeforeRunAnimation:function(o){if(e.focusNewPanelCallback){var s=e.isRenderModeList?o:o.parentElement;qe.ScrollElementToViewCore(s,!1,!1,{behavior:"smooth"})}!e.isRenderModeList&&o.parentElement?Zt(o.parentElement,{heightTo:o.offsetHeight+"px"}):dt(o)},onAfterRunAnimation:function(o){Ge(o),o.parentElement&&Ge(o.parentElement)},cssClass:r}},getLeaveOptions:function(){var r=new q().append(e.cssClasses.panelWrapperLeave).append(n()).toString();return{onBeforeRunAnimation:function(o){!e.isRenderModeList&&o.parentElement?Zt(o.parentElement,{heightFrom:o.offsetHeight+"px"}):dt(o)},onAfterRunAnimation:function(o){Ge(o),o.parentElement&&Ge(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?xt:Zn)(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 cp(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=d.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 l=this.setPanelVisibleIndex(o[s],r,this.showQuestionNumbers!="off");n&&(r+=l)}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 et(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,up([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 qe.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 l=r[s];r.splice(s,1),r.splice(n,0,l)}if(this.isValueEmpty(this.defaultPanelValue)||(o=!0,this.copyValue(r[n],this.defaultPanelValue)),this.defaultValueFromLastPanel&&r.length>1){var h=e>-1&&e<=s?e:s;o=!0,this.copyValue(r[n],r[h])}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 l=n.visiblePanelCount,h=r>=l?l-1:r,y=l===0?n.addButtonId:h>-1?n.getPanelRemoveButtonId(n.visiblePanels[h]):"";y&&qe.FocusElement(y,!0,(s=n.survey)===null||s===void 0?void 0:s.rootElement)};this.isRequireConfirmOnDelete(e)?Mt({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(d.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 l in o)if(!this.getSharedQuestionFromArray(l,e)){var h=n.getQuestionByName(l);h||this.iscorrectValueWithPostPrefix(n,l,I.commentSuffix)||this.iscorrectValueWithPostPrefix(n,l,I.matrix.totalsSuffix)||(delete o[l],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,l=this.template.questions,h=0;h<l.length;h++)l[h].addConditionObjectsByContext(s,n);for(var y=0;y<I.panel.maxPanelCountInCondition;y++)for(var x="["+y+"].",T=this.getValueName()+x,j=this.processedTitle+x,h=0;h<s.length;h++)s[h].context?e.push(s[h]):e.push({name:T+s[h].name,text:j+s[h].text,question:s[h].question});if(o){for(var T=n===!0?this.getValueName()+".":"",j=n===!0?this.processedTitle+".":"",h=0;h<s.length;h++)if(s[h].question!=n){var z={name:T+et.ItemVariableName+"."+s[h].name,text:j+et.ItemVariableName+"."+s[h].text,question:s[h].question};z.context=this,e.push(z)}}},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[et.ParentItemVariableName]=this.parent.getValue()),this.isValueChangingInternally=!0;for(var s=0;s<e.length;s++){var l=e[s],h=this.getPanelItemData(l.data),y=d.createCopy(o),x=et.ItemVariableName;y[x]=h,y[et.IndexVariableName.toLowerCase()]=s;var T=d.createCopy(r);T[x]=l,l.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(et.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 l=o[s];l.visible&&!r.isVisible||(l.clearValueIfInvisible(e),this.isSetPanelItemData[l.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 l=o[s].getAllErrors();l&&l.length>0&&(e=e.concat(l))}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),l=0;l<s.length;l++){var h=s[l],y=o.getQuestionByValueName(h);if(y||(y=this.getSharedQuestionFromArray(h,e)),y){var x=y.getDisplayValue(r,n[h]);n[h]=x,r&&y.title&&y.title!==h&&(n[y.title]=x,delete n[h])}}return n},t.prototype.hasErrorInPanels=function(e,n){for(var r=!1,o=this.visiblePanels,s=[],l=0;l<o.length;l++)this.setOnCompleteAsyncInPanel(o[l]);for(var h=!!n&&n.focusOnFirstError,y=0;y<o.length;y++){var x=o[y].hasErrors(e,h,n);x=this.isValueDuplicated(o[y],s,n,e)||x,!this.isRenderModeList&&x&&!r&&h&&(this.currentIndex=y),r=x||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 l=s.value;this.changingValueQuestion&&s!=this.changingValueQuestion&&s.hasErrors(o,r);for(var h=0;h<n.length;h++)if(l==n[h])return o&&s.addError(new Ki(this.keyDuplicationError,this)),r&&!r.firstErrorQuestion&&(r.firstErrorQuestion=s),!0;return n.push(l),!1},t.prototype.getPanelActions=function(e){var n=this,r=e.footerActions;return this.panelRemoveButtonLocation!=="right"&&r.push(new be({id:"remove-panel-"+e.id,component:"sv-paneldynamic-remove-btn",visible:new Ie(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 Be().toObject(r,n),n.renderWidth="100%",n.updateCustomWidgets(),new et(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 w.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(!d.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 l=this.getUnbindValue(this.value);if((!l||!Array.isArray(l))&&(l=[]),l.length<=s)for(var h=l.length;h<=s;h++)l.push({});if(l[s]||(l[s]={}),this.isValueEmpty(r)?delete l[s][n]:l[s][n]=r,s>=0&&s<this.panelsCore.length&&(this.changingValueQuestion=this.panelsCore[s].getQuestionByValueName(n)),this.value=l,this.changingValueQuestion=null,this.survey){var y={question:this,panel:e.panel,name:n,itemIndex:s,itemValue:l[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 l={name:o.name||s,title:o.title||"Panel",value:o.getValue(),displayValue:o.getValue(),getString:function(h){return typeof h=="object"?JSON.stringify(h):h},isNode:!0,data:o.questions.map(function(h){return h.getPlainData(e)}).filter(function(h){return!!h})};return(e.calculations||[]).forEach(function(h){l[h.propertyName]=o[h.propertyName]}),l}),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 q().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 q().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 q().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 q().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,this.panelRemoveButtonLocation==="right").toString()},t.prototype.getAddButtonCss=function(){return new q().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode",this.displayMode==="list").toString()},t.prototype.getPrevButtonCss=function(){return new q().append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonVisible).toString()},t.prototype.getNextButtonCss=function(){return new q().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 bn,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 be({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),o=new be({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),s=new be({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),l=new be({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),h=new be({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),y=new be({id:"sv-pd-next-btn-icon",component:"sv-paneldynamic-next-btn",data:{question:this}});n.push(r,o,s,l,h,y),this.updateFooterActionsCallback=function(){var x=e.legacyNavigation,T=e.isRenderModeList,j=e.isMobile,z=!x&&!T;r.visible=z&&e.currentIndex>0,o.visible=z&&e.currentIndex<e.visiblePanelCount-1,o.needSpace=j&&o.visible&&r.visible,s.visible=e.canAddPanel,s.needSpace=e.isMobile&&!o.visible&&r.visible,h.visible=!e.isRenderModeList&&!j,h.needSpace=!x&&!e.isMobile;var U=x&&!T;l.visible=U,y.visible=U,l.needSpace=U},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(h){if(h||(h=r.locTabTitlePlaceholder.renderedHtml),!r.survey)return h;var y={title:h,panel:e,visiblePanelIndex:n};return r.survey.dynamicPanelGetTabTitle(r,y),y.title},o.sharedData=this.locTemplateTabTitle;var s=this.getPanelVisibleIndexById(e.id)===this.currentIndex,l=new be({id:e.id,pressed:s,locTitle:o,disableHide:s,action:function(){r.currentIndex=r.getPanelVisibleIndexById(l.id)}});return l}},t.prototype.getAdditionalTitleToolbarCss=function(e){var n=e??this.cssClasses;return new q().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(h){s.visiblePanelsCore.forEach(function(y){return n.push(e.createTabByPanel(r[h],h))})},s=this,l=0;l<r.length;l++)o(l);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,si([Ae({})],t.prototype,"_renderedPanels",void 0),si([V({onSet:function(e,n){n.fireCallback(n.renderModeChangedCallback),n.updatePanelView()}})],t.prototype,"displayMode",void 0),si([V({onSet:function(e,n){n.fireCallback(n.currentIndexChangedCallback)}})],t.prototype,"showProgressBar",void 0),si([V({onSet:function(e,n){}})],t.prototype,"progressBarLocation",void 0),si([V({defaultValue:!1,onSet:function(e,n){n.updateFooterActions()}})],t.prototype,"legacyNavigation",void 0),t}(_e);w.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 Ks("")},"question"),we.Instance.registerQuestion("paneldynamic",function(i){return new Ks(i)});var pp=function(){function i(){}return i.getProgressTextInBarCss=function(t){return new q().append(t.progressText).append(t.progressTextInBar).toString()},i.getProgressTextUnderBarCss=function(t){return new q().append(t.progressText).append(t.progressTextUnderBar).toString()},i}(),an=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){an(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+" "+He.toOperandString(this.value)},t.prototype.isCheckRequired=function(e){return e?(this.createConditionRunner(),this.conditionRunner&&this.conditionRunner.hasFunction()===!0?!0:new te().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 ze(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}(ce),jn=function(i){an(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}(Pu),wu=function(i){an(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}(jn),xu=function(i){an(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}(jn),Vu=function(i){an(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}(jn),Su=function(i){an(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}(jn),Ou=function(i){an(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 wt(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,d.convertValToQuestionVal(e),!1)},t}(jn),Eu=function(i){an(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}(jn);w.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),w.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),w.addClass("visibletrigger",["pages:pages","questions:questions"],function(){return new wu},"surveytrigger"),w.addClass("completetrigger",[],function(){return new xu},"surveytrigger"),w.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 Vu},"surveytrigger"),w.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"},{name:"copyDisplayValue:boolean",visible:!1}],function(){return new Eu},"surveytrigger"),w.addClass("skiptrigger",[{name:"!gotoName:question"}],function(){return new Su},"surveytrigger"),w.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],function(){return new Ou},"surveytrigger");var Tu=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)}}(),fp=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},Ru=function(i){Tu(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 Ie(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 en(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()},fp([V()],t.prototype,"width",void 0),t}(ce),dp=function(i){Tu(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t}(Ru),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)}}(),Ys=function(i){hp(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}(Os),Xs=function(){return Xs=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},Xs.apply(this,arguments)};function gp(i,t){var e,n=Xs({},i);n.verticalPosition="top",n.horizontalPosition="left",n.showPointer=!1,n.isModal=!0,n.displayMode=i.displayMode||"popup";var r=new mn(i.componentName,i.data,n);r.isFocusedContent=(e=i.isFocusedContent)!==null&&e!==void 0?e:!0;var o=new Ys(r);if(t&&t.appendChild){var s=R.createElement("div");t.appendChild(s),o.setComponentElement(s)}o.container||o.initializePopupContainer();var l=function(h,y){y.isVisible||s&&o.resetComponentElement(),o.onVisibilityChanged.remove(l)};return o.onVisibilityChanged.add(l),o}function yp(i){return i.isModal?new Ys(i):new Ts(i)}var Iu=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)}}(),ea=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},Du=function(i){Iu(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"},ea([V()],t.prototype,"iconName",void 0),ea([V()],t.prototype,"iconSize",void 0),ea([V()],t.prototype,"showCaption",void 0),t}(re),Au=function(i){Iu(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}(ti);w.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],function(){return new Au("")},"checkboxbase"),w.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],function(i){return new Du(i)},"itemvalue");var mp=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 q().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}(),vp=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)}}(),bp=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},xo=function(i){vp(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=w.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=w.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"},bp([V()],t.prototype,"saveMaskedValue",void 0),t}(ce);w.addClass("masksettings",[{name:"saveMaskedValue:boolean",visibleIf:function(i){return i?i.getType()!=="masksettings":!1}}],function(){return new xo});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)}}(),Pp=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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 ta(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 wp(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 xp(i,t,e){for(var n=i??"",r="",o=0,s=typeof t=="string"?ta(t):t,l=0;l<s.length;l++)switch(s[l].type){case"regex":if(o<n.length&&(o=wp(n,o,s[l])),o<n.length)r+=n[o];else if(e)r+=I.maskSettings.patternPlaceholderChar;else return r;o++;break;case"const":case"fixed":r+=s[l].value,s[l].value===n[o]&&o++;break}return r}function na(i,t,e,n){n===void 0&&(n=!1);var r="";if(!i)return r;for(var o=typeof t=="string"?ta(t):t,s=0;s<o.length;s++)if(o[s].type==="fixed"&&!n&&(r+=o[s].value),o[s].type==="regex"){var l=I.maskSettings.patternDefinitions[o[s].value];if(i[s]&&i[s].match(l))r+=i[s];else if(e){r="";break}else break}return r}var ra=function(i){Cp(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.literals=[],e}return t.prototype.updateLiterals=function(){this.literals=ta(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 xp(r,this.literals,n)},t.prototype._getUnmaskedValue=function(e,n){n===void 0&&(n=!1);var r=e??"";return na(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=na(e.prevValue.slice(0,e.selectionStart),this.literals.slice(0,e.selectionStart),!1),s=na(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)},Pp([V()],t.prototype,"pattern",void 0),t}(xo);w.addClass("patternmask",[{name:"pattern"}],function(){return new ra},"masksettings");var Vp=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)}}(),dr=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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 Sp(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 ia=function(i){Vp(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,l=n.selectionStart,h=!n.insertedChars&&n.inputDirection==="forward",y=0;y<r.length;y++){var x=r[y];if(x!==this.thousandsSeparator&&s++,s===o+(h?1:0)){h?l=y:l=y+1;break}}return l},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=Sp(o).join(this.thousandsSeparator));var s=e.fractionalPart,l=e.isNegative?"-":"";if(s===""){if(r)return!o||o==="0"?o:l+o;var h=e.hasDecimalSeparator&&!r?this.decimalSeparator:"",y=o+h;return y==="0"?y:l+y}else return o=o||"0",s=s.substring(0,this.precision),[l+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 l=s,h=s;if(s>0){if(s+1>r&&s<=o)return!0;for(;l=l*10+9,h=h*10,!(h>o);)if(l>r)return!0;return!1}if(s<0){if(s>=r&&s-1<o)return!0;for(;l=l*10,h=h*10-9,!(l<r);)if(h<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 l=r[s];switch(l){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:l.match(Ds)&&(n.hasDecimalSeparator?n.fractionalPart+=l:n.integralPart+=l)}}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,l=this.parseNumber(s);if(!this.validateNumber(l,!1))return n;var h=this.getNumberMaskedValue(s),y=this.calccaretPosition(r,e,h);return n.value=h,n.caretPosition=y,n},t.prototype.getType=function(){return"numericmask"},t.prototype.isPropertyEmpty=function(e){return e===""||e===void 0||e===null},dr([V()],t.prototype,"allowNegativeValues",void 0),dr([V()],t.prototype,"decimalSeparator",void 0),dr([V()],t.prototype,"precision",void 0),dr([V()],t.prototype,"thousandsSeparator",void 0),dr([V()],t.prototype,"min",void 0),dr([V()],t.prototype,"max",void 0),t}(xo);w.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 ia},"masksettings");var Op=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(){return Vo=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},Vo.apply(this,arguments)},Lu=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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 Mu(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 Ep(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 Tp(i){for(var t=[],e,n=function(s,l,h){if(h===void 0&&(h=!1),e&&e===s){t[t.length-1].count++;var y=Mu(s,t[t.length-1].count);t[t.length-1].maxCount=y}else{var y=Mu(s,1);t.push({type:s,value:l,count:1,maxCount:y,upperCase:h})}},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 ju=function(i){Op(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=Tp(this.pattern||"")},t.prototype.leaveOnlyNumbers=function(e){for(var n="",r=0;r<e.length;r++)e[r].match(Ds)&&(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 l=n.inputDateTimeData[s];switch(l.isCompleted=!0,o.type){case"hour":{n.is12Hours?l.value=((r.getHours()-1)%n.twelve+1).toString():l.value=r.getHours().toString();break}case"minute":{l.value=r.getMinutes().toString();break}case"second":{l.value=r.getSeconds().toString();break}case"timeMarker":{var h=r.getHours()>=n.twelve?"pm":"am";l.value=o.upperCase?h.toUpperCase():h;break}case"day":{l.value=r.getDate().toString();break}case"month":{l.value=(r.getMonth()+1).toString();break}case"year":{var y=r.getFullYear();o.count==2&&(y=y%100),l.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 l=this.getPlaceholder(2,e.day.toString(),"0")+e.day;n.push(l)}if(e.hour!==void 0){var h=this.getPlaceholder(2,e.hour.toString(),"0")+e.hour;r.push(h)}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 x=this.getPlaceholder(2,e.second.toString(),"0")+e.second;r.push(x)}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 l=e.year!==void 0?e.year:n?s:o,h=e.month!==void 0?e.month:n&&this.hasDatePart?12:1,y=e.day!==void 0?e.day:n&&this.hasDatePart?this.getMaxDateForMonth(l,h):1,x=e.hour!==void 0?e.hour:n?23:0,T=e.minute!==void 0?e.minute:n?59:0,j=e.second!==void 0?e.second:n?59:0;return{year:l,month:h,day:y,hour:x,minute:T,second:j}},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=Vo({},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=Vo({},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 l=parseInt(r[0]),h=this.validBeginningOfNumbers[o+(e.lexem.upperCase?"U":"")];o==="year"&&!this.isYearValid(s)?(r=r.slice(0,r.length-1),e.isCompleted=!1):h!==void 0&&l>h?this.isDateValid12(s)?e.isCompleted=!0:r=r.slice(0,r.length-1):h!==void 0&&l!==0&&l<=h&&(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,l=10;n==="month"&&(l=3),n==="hour"&&(l=this.is12Hours?3:5),r.isCompleted=!0;for(var h=0;h<l;h++)if(e[n]=s+h,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=Ep(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 l=this.inputDateTimeData.filter(function(j){return!!j.value});s=this.inputDateTimeData.indexOf(l[l.length-1])}for(var h=0;h<this.inputDateTimeData.length;h++){var y=this.inputDateTimeData[h];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 x=e||s>h,T=this.getCorrectDatePartFormat(y,x);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 l=n.inputDateTimeData[s],h=e[r],y=void 0;o.type==="timeMarker"?y=n.cleanTimeMarker(h,o.upperCase):y=n.leaveOnlyNumbers(h),l.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 l=this.createIDateTimeComposition();this.inputDateTimeData.forEach(function(y){y.lexem.type==="timeMarker"?r.updateTimeMarkerInputDateTimeData(y,l):r.updateInputDateTimeData(y,l)});var h=this.getFormatedString(n);return h},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="",l=!1,h=!1,y=0;y<e.length;y++){var x=e[y];if(x.match(Ds)||x===r[n.length].value||r[n.length].type==="timeMarker"?(l=!1,h=!1,s+=x):o.indexOf(x)!==-1?h||(l=!0,n.push(s),s=""):l||(h=!0,n.push(s),s=""),n.length>=r.length){l=!1;break}}return(s!=""||l)&&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 l=(r=this.inputDateTimeData.filter(function(x){return x.lexem.type==="timeMarker"})[0])===null||r===void 0?void 0:r.value.toLowerCase()[0],h=this.createIDateTimeComposition(),y=!1;return this.inputDateTimeData.forEach(function(x){var T=x.value;if(!(x.lexem.type=="timeMarker"||x.lexem.type=="separator")){if(!T||T.length<x.lexem.count){y=!0;return}var j=parseInt(n.parseTwoDigitYear(x));x.lexem.type=="hour"&&l==="p"&&j!=n.twelve&&(j+=n.twelve),h[x.lexem.type]=j}}),y?"":this.getISO_8601Format(h)},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},Lu([V()],t.prototype,"min",void 0),Lu([V()],t.prototype,"max",void 0),t}(ra);w.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 ju},"patternmask");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)}}(),Nu=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 l=i.length-1;l>=0;l--)(s=i[l])&&(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},qu=function(i){Rp(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)},Nu([V()],t.prototype,"prefix",void 0),Nu([V()],t.prototype,"suffix",void 0),t}(ia);w.addClass("currencymask",[{name:"prefix"},{name:"suffix"}],function(){return new qu},"numericmask");var ai,oa;ai="1.12.20",I.version=ai,oa="2025-01-21";function Ip(i,t){if(ai!=i){var e="survey-core has version '"+ai+"' and "+t+" has version '"+i+"'. SurveyJS libraries should have the same versions to work correctly.";console.error(e)}}function Dp(i){_u(i)}function _u(i){Lp(i,Bu,oa)}function Ap(i){return Bu[i.toString()]===!0}var Bu={};function Lp(i,t,e){if(i){var n=function(s){var l={},h,y=0,x,T=0,j,z="",U=String.fromCharCode,X=s.length,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(h=0;h<64;h++)l[Y.charAt(h)]=h;for(x=0;x<X;x++){var W=l[s.charAt(x)];for(y=(y<<6)+W,T+=6;T>=8;)((j=y>>>(T-=8)&255)||x<X-2)&&(z+=U(j))}return z},r=n(i);if(r){var o=r.indexOf(";");o<0||Mp(r.substring(0,o))&&(r=r.substring(o+1),r.split(",").forEach(function(s){var l=s.indexOf("=");l>0&&(t[s.substring(0,l)]=new Date(e)<=new Date(s.substring(l+1)))}))}}}function Mp(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 jp={"$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"},Np={"$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"},_p={"$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"},Bp={"$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"},Fp={"$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"},kp={"$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"},Qp={"$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 Hp(i,t){Object.keys(i||{}).forEach(function(e){var n=e.substring(1);t.style.setProperty("--"+n,i[e])})}var Fu=function(){function i(){i.autoApplyTheme()}return i.autoApplyTheme=function(){if(!(Ne.currentType==="bootstrap"||Ne.currentType==="bootstrapmaterial")){var t=i.getIncludedThemeCss();t.length===1&&i.applyTheme(t[0].name)}},i.getAvailableThemes=function(){var t=Ne.getAvailableThemes().filter(function(e){return["defaultV2","default","modern"].indexOf(e)!==-1}).map(function(e){return{name:e,theme:Ne[e]}});return t},i.getIncludedThemeCss=function(){if(typeof I.environment>"u")return[];var t=I.environment.rootElement,e=i.getAvailableThemes(),n=xn(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("")),Vn(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=xn(n)?n.host:n;if(Ne.currentType=t,i.Enabled){if(t!=="bootstrap"&&t!=="bootstrapmaterial"){Hp(i.ThemeColors[t],r),i.Logger&&i.Logger.log("apply theme "+t+" completed");return}var o=i.ThemeCss[t];if(!o){Ne.currentType="defaultV2";return}i.insertStylesRulesIntoDocument();var s=e||i.ThemeSelector[t]||i.ThemeSelector.default,l=(t+s).trim(),h=i.findSheet(l);if(!h){h=i.createSheet(l);var y=i.ThemeColors[t]||i.ThemeColors.default;Object.keys(o).forEach(function(x){var T=o[x];Object.keys(y||{}).forEach(function(j){return T=T.replace(new RegExp("\\"+j,"g"),y[j])});try{x.indexOf("body")===0?h.insertRule(x+" { "+T+" }",0):h.insertRule(s+x+" { "+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:jp,default:Np,orange:qp,darkblue:_p,darkrose:Bp,stone:Fp,winter:kp,winterstone:Qp},i.ThemeCss={},i.ThemeSelector={default:".sv_main ",modern:".sv-root-modern "},i.Enabled=!0,i}();en.prototype.onBeforeRunConstructor=function(){B.isAvailable()&&Fu.autoApplyTheme()};var un={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"}};Ne.default=un,Ne.orange=un,Ne.darkblue=un,Ne.darkrose=un,Ne.stone=un,Ne.winter=un,Ne.winterstone=un;var ku={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"}};Ne.modern=ku;var Qu=function(){function i(){this.icons={},this.iconPrefix="icon-",this.onIconsChanged=new nt}return i.prototype.processId=function(t,e){return t.indexOf(e)==0&&(t=t.substring(e.length)),t=nr[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 l=0;l<s.attributes.length;l++)o.setAttributeNS("http://www.w3.org/2000/svg",s.attributes[l].name,s.attributes[l].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}(),zp=new Qu,So={};function Up(i,t){So[i]||(So[i]={});var e=So[i];for(var n in t)e[n]=t[n]}}})})}(Ro)),Ro.exports}var Io={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 vh=Io.exports,zl;function Ph(){return zl||(zl=1,function(ke,Qt){(function(O,E){ke.exports=E(Ul(),gh(),mh())})(vh,function(Qe,O,E){return function(B){var R={};function M(C){if(R[C])return R[C].exports;var d=R[C]={i:C,l:!1,exports:{}};return B[C].call(d.exports,d,d.exports,M),d.l=!0,d.exports}return M.m=B,M.c=R,M.d=function(C,d,P){M.o(C,d)||Object.defineProperty(C,d,{enumerable:!0,get:P})},M.r=function(C){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})},M.t=function(C,d){if(d&1&&(C=M(C)),d&8||d&4&&typeof C=="object"&&C&&C.__esModule)return C;var P=Object.create(null);if(M.r(P),Object.defineProperty(P,"default",{enumerable:!0,value:C}),d&2&&typeof C!="string")for(var D in C)M.d(P,D,(function(k){return C[k]}).bind(null,D));return P},M.n=function(C){var d=C&&C.__esModule?function(){return C.default}:function(){return C};return M.d(d,"a",d),d},M.o=function(C,d){return Object.prototype.hasOwnProperty.call(C,d)},M.p="",M(M.s="./src/entries/react-ui.ts")}({"./build/survey-core/icons/iconsV1.js":function(B,R,M){/*!
- * 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(d,P){B.exports=P()})(this,function(){return function(C){var d={};function P(D){if(d[D])return d[D].exports;var k=d[D]={i:D,l:!1,exports:{}};return C[D].call(k.exports,k,k.exports,P),k.l=!0,k.exports}return P.m=C,P.c=d,P.d=function(D,k,pe){P.o(D,k)||Object.defineProperty(D,k,{enumerable:!0,get:pe})},P.r=function(D){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(D,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(D,"__esModule",{value:!0})},P.t=function(D,k){if(k&1&&(D=P(D)),k&8||k&4&&typeof D=="object"&&D&&D.__esModule)return D;var pe=Object.create(null);if(P.r(pe),Object.defineProperty(pe,"default",{enumerable:!0,value:D}),k&2&&typeof D!="string")for(var Z in D)P.d(pe,Z,(function(fe){return D[fe]}).bind(null,Z));return pe},P.n=function(D){var k=D&&D.__esModule?function(){return D.default}:function(){return D};return P.d(k,"a",k),k},P.o=function(D,k){return Object.prototype.hasOwnProperty.call(D,k)},P.p="",P(P.s="./packages/survey-core/src/iconsV1.ts")}({"./packages/survey-core/src/iconsV1.ts":function(C,d,P){P.r(d),P.d(d,"icons",function(){return k});var D=P("./packages/survey-core/src/images-v1 sync recursive \\.svg$"),k={};D.keys().forEach(function(pe){k[pe.substring(2,pe.length-4).toLowerCase()]=D(pe)})},"./packages/survey-core/src/images-v1 sync recursive \\.svg$":function(C,d,P){var D={"./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(Z){var fe=pe(Z);return P(fe)}function pe(Z){if(!P.o(D,Z)){var fe=new Error("Cannot find module '"+Z+"'");throw fe.code="MODULE_NOT_FOUND",fe}return D[Z]}k.keys=function(){return Object.keys(D)},k.resolve=pe,C.exports=k,k.id="./packages/survey-core/src/images-v1 sync recursive \\.svg$"},"./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg":function(C,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,M){/*!
- * 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(d,P){B.exports=P()})(this,function(){return function(C){var d={};function P(D){if(d[D])return d[D].exports;var k=d[D]={i:D,l:!1,exports:{}};return C[D].call(k.exports,k,k.exports,P),k.l=!0,k.exports}return P.m=C,P.c=d,P.d=function(D,k,pe){P.o(D,k)||Object.defineProperty(D,k,{enumerable:!0,get:pe})},P.r=function(D){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(D,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(D,"__esModule",{value:!0})},P.t=function(D,k){if(k&1&&(D=P(D)),k&8||k&4&&typeof D=="object"&&D&&D.__esModule)return D;var pe=Object.create(null);if(P.r(pe),Object.defineProperty(pe,"default",{enumerable:!0,value:D}),k&2&&typeof D!="string")for(var Z in D)P.d(pe,Z,(function(fe){return D[fe]}).bind(null,Z));return pe},P.n=function(D){var k=D&&D.__esModule?function(){return D.default}:function(){return D};return P.d(k,"a",k),k},P.o=function(D,k){return Object.prototype.hasOwnProperty.call(D,k)},P.p="",P(P.s="./packages/survey-core/src/iconsV2.ts")}({"./packages/survey-core/src/iconsV2.ts":function(C,d,P){P.r(d),P.d(d,"icons",function(){return k});var D=P("./packages/survey-core/src/images-v2 sync recursive \\.svg$"),k={};D.keys().forEach(function(pe){k[pe.substring(2,pe.length-4).toLowerCase()]=D(pe)})},"./packages/survey-core/src/images-v2 sync recursive \\.svg$":function(C,d,P){var D={"./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(Z){var fe=pe(Z);return P(fe)}function pe(Z){if(!P.o(D,Z)){var fe=new Error("Cannot find module '"+Z+"'");throw fe.code="MODULE_NOT_FOUND",fe}return D[Z]}k.keys=function(){return Object.keys(D)},k.resolve=pe,C.exports=k,k.id="./packages/survey-core/src/images-v2 sync recursive \\.svg$"},"./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg":function(C,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,d){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,M){M.r(R),M.d(R,"Survey",function(){return Pt}),M.d(R,"attachKey2click",function(){return hn}),M.d(R,"ReactSurveyElementsWrapper",function(){return k}),M.d(R,"SurveyNavigationBase",function(){return Dt}),M.d(R,"SurveyTimerPanel",function(){return xr}),M.d(R,"SurveyPage",function(){return gi}),M.d(R,"SurveyRow",function(){return Ee}),M.d(R,"SurveyPanel",function(){return He}),M.d(R,"SurveyFlowPanel",function(){return zn}),M.d(R,"SurveyQuestion",function(){return zt}),M.d(R,"SurveyElementErrors",function(){return Ut}),M.d(R,"SurveyQuestionAndErrorsCell",function(){return fi}),M.d(R,"ReactSurveyElement",function(){return fe}),M.d(R,"SurveyElementBase",function(){return Z}),M.d(R,"SurveyQuestionElementBase",function(){return ve}),M.d(R,"SurveyQuestionCommentItem",function(){return Ht}),M.d(R,"SurveyQuestionComment",function(){return vr}),M.d(R,"SurveyQuestionCheckbox",function(){return wi}),M.d(R,"SurveyQuestionCheckboxItem",function(){return Vr}),M.d(R,"SurveyQuestionRanking",function(){return Sr}),M.d(R,"SurveyQuestionRankingItem",function(){return xi}),M.d(R,"SurveyQuestionRankingItemContent",function(){return Or}),M.d(R,"RatingItem",function(){return wt}),M.d(R,"RatingItemStar",function(){return Tr}),M.d(R,"RatingItemSmiley",function(){return Vi}),M.d(R,"RatingDropdownItem",function(){return ce}),M.d(R,"TagboxFilterString",function(){return gn}),M.d(R,"SurveyQuestionOptionItem",function(){return Si}),M.d(R,"SurveyQuestionDropdownBase",function(){return Wn}),M.d(R,"SurveyQuestionDropdown",function(){return Ir}),M.d(R,"SurveyQuestionTagboxItem",function(){return $n}),M.d(R,"SurveyQuestionTagbox",function(){return Lt}),M.d(R,"SurveyQuestionDropdownSelect",function(){return $e}),M.d(R,"SurveyQuestionMatrix",function(){return Wt}),M.d(R,"SurveyQuestionMatrixRow",function(){return Oi}),M.d(R,"SurveyQuestionMatrixCell",function(){return Ue}),M.d(R,"SurveyQuestionHtml",function(){return Ei}),M.d(R,"SurveyQuestionFile",function(){return Gn}),M.d(R,"SurveyFileChooseButton",function(){return Ar}),M.d(R,"SurveyFilePreview",function(){return bn}),M.d(R,"SurveyQuestionMultipleText",function(){return $t}),M.d(R,"SurveyQuestionRadiogroup",function(){return Cn}),M.d(R,"SurveyQuestionRadioItem",function(){return Pn}),M.d(R,"SurveyQuestionText",function(){return Zn}),M.d(R,"SurveyQuestionBoolean",function(){return Ke}),M.d(R,"SurveyQuestionBooleanCheckbox",function(){return Yn}),M.d(R,"SurveyQuestionBooleanRadio",function(){return Ai}),M.d(R,"SurveyQuestionEmpty",function(){return Nr}),M.d(R,"SurveyQuestionMatrixDropdownCell",function(){return Mi}),M.d(R,"SurveyQuestionMatrixDropdownBase",function(){return Vn}),M.d(R,"SurveyQuestionMatrixDropdown",function(){return ji}),M.d(R,"SurveyQuestionMatrixDynamic",function(){return _r}),M.d(R,"SurveyQuestionMatrixDynamicAddButton",function(){return rr}),M.d(R,"SurveyQuestionPanelDynamic",function(){return sr}),M.d(R,"SurveyProgress",function(){return Fe}),M.d(R,"SurveyProgressButtons",function(){return ar}),M.d(R,"SurveyProgressToc",function(){return Qi}),M.d(R,"SurveyQuestionRating",function(){return zi}),M.d(R,"SurveyQuestionRatingDropdown",function(){return Zt}),M.d(R,"SurveyQuestionExpression",function(){return Ge}),M.d(R,"PopupSurvey",function(){return Tn}),M.d(R,"SurveyWindow",function(){return ts}),M.d(R,"ReactQuestionFactory",function(){return Ce}),M.d(R,"ReactElementFactory",function(){return D}),M.d(R,"SurveyQuestionImagePicker",function(){return I}),M.d(R,"SurveyQuestionImage",function(){return Fr}),M.d(R,"SurveyQuestionSignaturePad",function(){return kr}),M.d(R,"SurveyQuestionButtonGroup",function(){return ns}),M.d(R,"SurveyQuestionCustom",function(){return Rn}),M.d(R,"SurveyQuestionComposite",function(){return Ji}),M.d(R,"Popup",function(){return tt}),M.d(R,"ListItemContent",function(){return Zi}),M.d(R,"ListItemGroup",function(){return Xe}),M.d(R,"List",function(){return En}),M.d(R,"TitleActions",function(){return le}),M.d(R,"TitleElement",function(){return Ve}),M.d(R,"SurveyActionBar",function(){return te}),M.d(R,"LogoImage",function(){return rt}),M.d(R,"SurveyHeader",function(){return br}),M.d(R,"SvgIcon",function(){return he}),M.d(R,"SurveyQuestionMatrixDynamicRemoveButton",function(){return Hr}),M.d(R,"SurveyQuestionMatrixDetailButton",function(){return zr}),M.d(R,"SurveyQuestionMatrixDynamicDragDropIcon",function(){return Xn}),M.d(R,"SurveyQuestionPanelDynamicAddButton",function(){return qi}),M.d(R,"SurveyQuestionPanelDynamicRemoveButton",function(){return Ur}),M.d(R,"SurveyQuestionPanelDynamicPrevButton",function(){return On}),M.d(R,"SurveyQuestionPanelDynamicNextButton",function(){return mt}),M.d(R,"SurveyQuestionPanelDynamicProgressText",function(){return or}),M.d(R,"SurveyNavigationButton",function(){return $r}),M.d(R,"QuestionErrorComponent",function(){return Dn}),M.d(R,"MatrixRow",function(){return Mt}),M.d(R,"Skeleton",function(){return qt}),M.d(R,"NotifierComponent",function(){return Qn}),M.d(R,"ComponentsContainer",function(){return pt}),M.d(R,"CharacterCounterComponent",function(){return kn}),M.d(R,"HeaderMobile",function(){return _e}),M.d(R,"HeaderCell",function(){return ur}),M.d(R,"Header",function(){return no}),M.d(R,"SurveyLocStringViewer",function(){return In}),M.d(R,"SurveyLocStringEditor",function(){return re}),M.d(R,"LoadingIndicatorComponent",function(){return me}),M.d(R,"SvgBundleComponent",function(){return mi}),M.d(R,"PopupModal",function(){return Cr}),M.d(R,"SurveyModel",function(){return C.SurveyModel}),M.d(R,"SurveyWindowModel",function(){return C.SurveyWindowModel}),M.d(R,"Model",function(){return C.SurveyModel}),M.d(R,"settings",function(){return C.settings}),M.d(R,"surveyLocalization",function(){return C.surveyLocalization}),M.d(R,"surveyStrings",function(){return C.surveyStrings});var C=M("survey-core"),d=M("react"),P=M.n(d),D=function(){function p(){this.creatorHash={}}return p.prototype.registerElement=function(u,a){this.creatorHash[u]=a},p.prototype.getAllTypes=function(){var u=new Array;for(var a in this.creatorHash)u.push(a);return u.sort()},p.prototype.isElementRegistered=function(u){return!!this.creatorHash[u]},p.prototype.createElement=function(u,a){var c=this.creatorHash[u];return c==null?null:c(a)},p.Instance=new p,p}(),k=function(){function p(){}return p.wrapRow=function(u,a,c){var f=u.getRowWrapperComponentName(c),g=u.getRowWrapperComponentData(c);return D.Instance.createElement(f,{element:a,row:c,componentData:g})},p.wrapElement=function(u,a,c){var f=u.getElementWrapperComponentName(c),g=u.getElementWrapperComponentData(c);return D.Instance.createElement(f,{element:a,question:c,componentData:g})},p.wrapQuestionContent=function(u,a,c){var f=u.getQuestionContentWrapperComponentName(c),g=u.getElementWrapperComponentData(c);return D.Instance.createElement(f,{element:a,question:c,componentData:g})},p.wrapItemValue=function(u,a,c,f){var g=u.getItemValueWrapperComponentName(f,c),A=u.getItemValueWrapperComponentData(f,c);return D.Instance.createElement(g,{key:a==null?void 0:a.key,element:a,question:c,item:f,componentData:A})},p.wrapMatrixCell=function(u,a,c,f){f===void 0&&(f="cell");var g=u.getElementWrapperComponentName(c,f),A=u.getElementWrapperComponentData(c,f);return D.Instance.createElement(g,{element:a,cell:c,componentData:A})},p}();C.SurveyModel.platform="react";var pe=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Z=function(p){pe(u,p);function u(a){var c=p.call(this,a)||this;return c._allowComponentUpdate=!0,c.prevStateElements=[],c}return u.renderLocString=function(a,c,f){return c===void 0&&(c=null),D.Instance.createElement(a.renderAs,{locStr:a.renderAsData,style:c,key:f})},u.renderQuestionDescription=function(a){var c=u.renderLocString(a.locDescription);return d.createElement("div",{style:a.hasDescription?void 0:{display:"none"},id:a.ariaDescriptionId,className:a.cssDescription},c)},u.prototype.componentDidMount=function(){this.makeBaseElementsReact()},u.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact(),this.disableStateElementsRerenderEvent(this.getStateElements())},u.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(A){return!g.includes(A)})),this.prevStateElements=[],this.getStateElements().forEach(function(A){A.afterRerender()})},u.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},u.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},u.prototype.shouldComponentUpdate=function(a,c){return this._allowComponentUpdate&&(this.unMakeBaseElementsReact(),this.prevStateElements=this.getStateElements()),this._allowComponentUpdate},u.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},u.prototype.wrapElement=function(a){return a},Object.defineProperty(u.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}),u.prototype.getRenderedElements=function(){return this.getStateElements()},u.prototype.startEndRendering=function(a){for(var c=this.getRenderedElements(),f=0,g=c;f<g.length;f++){var A=g[f];A.reactRendering||(A.reactRendering=0),A.reactRendering+=a}},u.prototype.canRender=function(){return!0},u.prototype.renderElement=function(){return null},Object.defineProperty(u.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),u.prototype.makeBaseElementsReact=function(){for(var a=this.getStateElements(),c=0;c<a.length;c++)a[c].enableOnElementRerenderedEvent(),this.makeBaseElementReact(a[c])},u.prototype.unMakeBaseElementsReact=function(){for(var a=this.getStateElements(),c=0;c<a.length;c++)this.unMakeBaseElementReact(a[c])},u.prototype.disableStateElementsRerenderEvent=function(a){a.forEach(function(c){c.disableOnElementRerenderedEvent()})},u.prototype.getStateElements=function(){var a=this.getStateElement();return a?[a]:[]},u.prototype.getStateElement=function(){return null},Object.defineProperty(u.prototype,"isDisplayMode",{get:function(){var a=this.props;return a.isDisplayMode||!1},enumerable:!1,configurable:!0}),u.prototype.renderLocString=function(a,c,f){return c===void 0&&(c=null),u.renderLocString(a,c,f)},u.prototype.canMakeReact=function(a){return!!a&&!!a.iteratePropertiesHash},u.prototype.makeBaseElementReact=function(a){var c=this;this.canMakeReact(a)&&(a.iteratePropertiesHash(function(f,g){if(c.canUsePropInState(g)){var A=f[g];if(Array.isArray(A)){var A=A;A.onArrayChanged=function(Q){c.isRendering||(c.changedStatePropNameValue=g,c.setState(function(de){var ae={};return ae[g]=A,ae}))}}}}),a.setPropertyValueCoreHandler=function(f,g,A){if(f[g]!==A){if(f[g]=A,!c.canUsePropInState(g)||c.isRendering)return;c.changedStatePropNameValue=g,c.setState(function(_){var Q={};return Q[g]=A,Q})}})},u.prototype.canUsePropInState=function(a){return!0},u.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(){}}}))},u}(d.Component),fe=function(p){pe(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),u}(Z),ve=function(p){pe(u,p);function u(a){return p.call(this,a)||this}return u.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.updateDomElement()},u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.updateDomElement()},u.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")}},u.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(u.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),u.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(u.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),u.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},u.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(u.prototype,"isDisplayMode",{get:function(){var a=this.props;return a.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),u.prototype.wrapCell=function(a,c,f){if(!f)return c;var g=this.questionBase.survey,A=null;return g&&(A=k.wrapMatrixCell(g,c,a,f)),A??c},u.prototype.setControl=function(a){a&&(this.control=a)},u.prototype.setContent=function(a){a&&(this.content=a)},u}(Z),bt=function(p){pe(u,p);function u(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(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.prototype.setValueCore=function(a){this.questionBase.value=a},u.prototype.getValueCore=function(){return this.questionBase.value},u.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)},u.prototype.getValue=function(a){return C.Helpers.isValueEmpty(a)?"":a},u}(ve),Rt=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ln=function(p){Rt(u,p);function u(a){var c=p.call(this,a)||this;return c.element.cssClasses,c.rootRef=d.createRef(),c}return u.prototype.getStateElement=function(){return this.element},Object.defineProperty(u.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.rootRef.current&&this.element.setWrapperElement(this.rootRef.current)},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.element.setWrapperElement(void 0)},u.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},u.prototype.renderElement=function(){var a=this.element,c=this.createElement(a,this.index),f=a.cssClassesValue,g=function(){var A=a;A&&A.isQuestion&&A.focusIn()};return d.createElement("div",{className:f.questionWrapper,style:a.rootStyle,"data-key":c.key,key:c.key,onFocus:g,ref:this.rootRef},c)},u.prototype.createElement=function(a,c){var f=c?"-"+c:0;if(!this.row.isNeedRender)return D.Instance.createElement(a.skeletonComponentName,{key:a.name+f,element:a,css:this.css});var g=a.getTemplate();return D.Instance.isElementRegistered(g)||(g="question"),D.Instance.createElement(g,{key:a.name+f,element:a,creator:this.creator,survey:this.survey,css:this.css})},u}(Z),V=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ee=function(p){V(u,p);function u(a){var c=p.call(this,a)||this;return c.rootRef=d.createRef(),c.recalculateCss(),c}return u.prototype.recalculateCss=function(){this.row.visibleElements.map(function(a){return a.cssClasses})},u.prototype.getStateElement=function(){return this.row},Object.defineProperty(u.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),u.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator},u.prototype.renderElementContent=function(){var a=this,c=this.row.visibleElements.map(function(f,g){var A=g?"-"+g:0,_=f.name+A;return d.createElement(ln,{element:f,index:g,row:a.row,survey:a.survey,creator:a.creator,css:a.css,key:_})});return d.createElement("div",{ref:this.rootRef,className:this.row.getRowCss()},c)},u.prototype.renderElement=function(){var a=this.survey,c=this.renderElementContent(),f=k.wrapRow(a,c,this.row);return f||c},u.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)}},u.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},u.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.row.setRootElement(void 0),this.stopLazyRendering()},u.prototype.createElement=function(a,c){var f=c?"-"+c:0,g=a.getType();return D.Instance.isElementRegistered(g)||(g="question"),D.Instance.createElement(g,{key:a.name+f,element:a,creator:this.creator,survey:this.survey,css:this.css})},u}(Z),Ae=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),gt=function(p){Ae(u,p);function u(a){var c=p.call(this,a)||this;return c.rootRef=d.createRef(),c}return u.prototype.getStateElement=function(){return this.panelBase},u.prototype.canUsePropInState=function(a){return a!=="elements"&&p.prototype.canUsePropInState.call(this,a)},Object.defineProperty(u.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),u.prototype.getPanelBase=function(){return this.props.element||this.props.question},u.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},u.prototype.getCss=function(){return this.props.css},u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.doAfterRender()},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this);var a=this.rootRef.current;a&&a.removeAttribute("data-rendered")},u.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()},u.prototype.doAfterRender=function(){var a=this.rootRef.current;a&&this.survey&&(this.panelBase.isPanel?this.panelBase.afterRender(a):this.survey.afterRenderPage(a))},u.prototype.getIsVisible=function(){return this.panelBase.isVisible},u.prototype.canRender=function(){return p.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&!!this.panelBase.survey&&this.getIsVisible()},u.prototype.renderRows=function(a){var c=this;return this.panelBase.visibleRows.map(function(f){return c.createRow(f,a)})},u.prototype.createRow=function(a,c){return d.createElement(Ee,{key:a.id,row:a,survey:this.survey,creator:this.creator,css:c})},u}(Z),ot=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),he=function(p){ot(u,p);function u(a){var c=p.call(this,a)||this;return c.svgIconRef=P.a.createRef(),c}return u.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)},u.prototype.componentDidUpdate=function(){this.updateSvg()},u.prototype.render=function(){var a="sv-svg-icon";return this.props.className&&(a+=" "+this.props.className),this.props.iconName?P.a.createElement("svg",{className:a,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img"},P.a.createElement("use",null)):null},u.prototype.componentDidMount=function(){this.updateSvg()},u}(P.a.Component);D.Instance.registerElement("sv-svg-icon",function(p){return P.a.createElement(he,p)});var Bn=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ct=function(p){Bn(u,p);function u(a){return p.call(this,a)||this}return u.prototype.render=function(){var a="sv-action-bar-separator "+this.props.cssClasses;return P.a.createElement("div",{className:a})},u}(P.a.Component);D.Instance.registerElement("sv-action-bar-separator",function(p){return P.a.createElement(ct,p)});var It=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),yt=function(p){It(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.item},u.prototype.renderElement=function(){var a=this.item.getActionRootCss(),c=this.item.needSeparator?P.a.createElement(ct,null):null,f=D.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return P.a.createElement("div",{className:a,id:this.item.id},P.a.createElement("div",{className:"sv-action__content"},c,f))},u}(Z),cn=function(p){It(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.item},u.prototype.renderElement=function(){return P.a.createElement(P.a.Fragment,null,this.renderInnerButton())},u.prototype.renderText=function(){if(!this.item.hasTitle)return null;var a=this.item.getActionBarItemTitleCss();return P.a.createElement("span",{className:a},this.item.title)},u.prototype.renderButtonContent=function(){var a=this.renderText(),c=this.item.iconName?P.a.createElement(he,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return P.a.createElement(P.a.Fragment,null,c,a)},u.prototype.renderInnerButton=function(){var a=this,c=this.item.getActionBarItemCss(),f=this.item.tooltip||this.item.title,g=this.renderButtonContent(),A=this.item.disableTabStop?-1:void 0,_=hn(P.a.createElement("button",{className:c,type:"button",disabled:this.item.disabled,onMouseDown:function(Q){return a.item.doMouseDown(Q)},onFocus:function(Q){return a.item.doFocus(Q)},onClick:function(Q){return a.item.doAction(Q)},title:f,tabIndex:A,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},g),this.item,{processEsc:!1});return _},u}(Z);D.Instance.registerElement("sv-action-bar-item",function(p){return P.a.createElement(cn,p)});var st=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),tt=function(p){st(u,p);function u(a){var c=p.call(this,a)||this;return c.containerRef=P.a.createRef(),c.createModel(),c}return Object.defineProperty(u.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.model},u.prototype.createModel=function(){this.popup=Object(C.createPopupViewModel)(this.props.model)},u.prototype.setTargetElement=function(){var a=this.containerRef.current;this.popup.setComponentElement(a)},u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.setTargetElement()},u.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.setTargetElement()},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.popup.resetComponentElement()},u.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},u.prototype.render=function(){this.popup.model=this.model;var a;return this.model.isModal?a=P.a.createElement(pn,{model:this.popup}):a=P.a.createElement(Fn,{model:this.popup}),P.a.createElement("div",{ref:this.containerRef},a)},u}(Z);D.Instance.registerElement("sv-popup",function(p){return P.a.createElement(tt,p)});var pn=function(p){st(u,p);function u(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(u.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.model},u.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),!this.model.isPositionSet&&this.model.isVisible&&this.model.updateOnShowing()},u.prototype.renderContainer=function(a){var c=this,f=a.showHeader?this.renderHeaderPopup(a):null,g=a.title?this.renderHeaderContent():null,A=this.renderContent(),_=a.showFooter?this.renderFooter(this.model):null;return P.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(Q){c.clickInside(Q)}},f,P.a.createElement("div",{className:"sv-popup__body-content"},g,P.a.createElement("div",{className:"sv-popup__scrolling-content"},A),_))},u.prototype.renderHeaderContent=function(){return P.a.createElement("div",{className:"sv-popup__body-header"},this.model.title)},u.prototype.renderContent=function(){var a=D.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return P.a.createElement("div",{className:"sv-popup__content"},a)},u.prototype.renderHeaderPopup=function(a){return null},u.prototype.renderFooter=function(a){return P.a.createElement("div",{className:"sv-popup__body-footer"},P.a.createElement(te,{model:a.footerToolbar}))},u.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 P.a.createElement("div",{tabIndex:-1,className:f,style:g,onClick:function(A){a.model.clickOutside(A)},onKeyDown:this.handleKeydown},c)},u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.model.isVisible&&this.model.updateOnShowing()},u}(Z),Fn=function(p){st(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.prototype.renderHeaderPopup=function(a){var c=a;return c?P.a.createElement("span",{style:{left:c.pointerTarget.left,top:c.pointerTarget.top},className:"sv-popup__pointer"}):null},u}(pn),Be=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),w=function(p){Be(u,p);function u(a){return p.call(this,a)||this}return u.prototype.renderInnerButton=function(){var a=p.prototype.renderInnerButton.call(this);return P.a.createElement(P.a.Fragment,null,a,P.a.createElement(tt,{model:this.item.popupModel}))},u.prototype.componentDidMount=function(){this.viewModel=new C.ActionDropdownViewModel(this.item)},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},u}(cn);D.Instance.registerElement("sv-action-bar-item-dropdown",function(p){return P.a.createElement(w,p)});var H=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),te=function(p){H(u,p);function u(a){var c=p.call(this,a)||this;return c.rootRef=P.a.createRef(),c}return Object.defineProperty(u.prototype,"handleClick",{get:function(){return this.props.handleClick!==void 0?this.props.handleClick:!0},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),u.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)})}},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.model.resetResponsivityManager()},u.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)})}},u.prototype.getStateElement=function(){return this.model},u.prototype.renderElement=function(){if(!this.model.hasActions)return null;var a=this.renderItems();return P.a.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(c){c.stopPropagation()}:void 0},a)},u.prototype.renderItems=function(){return this.model.renderedActions.map(function(a,c){return P.a.createElement(yt,{item:a,key:"item"+c})})},u}(Z);D.Instance.registerElement("sv-action-bar",function(p){return P.a.createElement(te,p)});var se=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),K=function(p){se(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),u.prototype.render=function(){if(this.element.isTitleRenderedAsString)return Z.renderLocString(this.element.locTitle);var a=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return P.a.createElement(P.a.Fragment,null,a)},u.prototype.renderTitleSpans=function(a,c){var f=function(_){return P.a.createElement("span",{"data-key":_,key:_}," ")},g=[];a.isRequireTextOnStart&&(g.push(this.renderRequireText(a)),g.push(f("req-sp")));var A=a.no;return A&&(g.push(P.a.createElement("span",{"data-key":"q_num",key:"q_num",className:a.cssTitleNumber,style:{position:"static"},"aria-hidden":!0},A)),g.push(f("num-sp"))),a.isRequireTextBeforeTitle&&(g.push(this.renderRequireText(a)),g.push(f("req-sp"))),g.push(Z.renderLocString(a.locTitle,null,"q_title")),a.isRequireTextAfterTitle&&(g.push(f("req-sp")),g.push(this.renderRequireText(a))),g},u.prototype.renderRequireText=function(a){return P.a.createElement("span",{"data-key":"req-text",key:"req-text",className:a.cssRequiredText,"aria-hidden":!0},a.requiredText)},u}(P.a.Component),Re=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),le=function(p){Re(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),u.prototype.render=function(){var a=P.a.createElement(K,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?P.a.createElement("div",{className:"sv-title-actions"},P.a.createElement("span",{className:"sv-title-actions__title"},a),P.a.createElement(te,{model:this.element.getTitleToolbar()})):a},u}(P.a.Component);C.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),D.Instance.registerElement("sv-title-actions",function(p){return P.a.createElement(le,p)});var at=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ve=function(p){at(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),u.prototype.renderTitleExpandableSvg=function(){if(!this.element.getCssTitleExpandableSvg())return null;var a=this.element.isExpanded?"icon-collapse-16x16":"icon-expand-16x16";return P.a.createElement(he,{className:this.element.getCssTitleExpandableSvg(),iconName:a,size:"auto"})},u.prototype.render=function(){var a=this.element;if(!a||!a.hasTitle)return null;var c=a.titleAriaLabel||void 0,f=this.renderTitleExpandableSvg(),g=P.a.createElement(le,{element:a,cssClasses:a.cssClasses}),A=void 0,_=void 0;a.hasTitleEvents&&(_=function(de){Object(C.doKey2ClickUp)(de.nativeEvent)});var Q=a.titleTagName;return P.a.createElement(Q,{className:a.cssTitle,id:a.ariaTitleId,"aria-label":c,tabIndex:a.titleTabIndex,"aria-expanded":a.titleAriaExpanded,role:a.titleAriaRole,onClick:A,onKeyUp:_},f,g)},u}(P.a.Component),Ce=function(){function p(){this.creatorHash={}}return p.prototype.registerQuestion=function(u,a){this.creatorHash[u]=a},p.prototype.getAllTypes=function(){var u=new Array;for(var a in this.creatorHash)u.push(a);return u.sort()},p.prototype.createQuestion=function(u,a){var c=this.creatorHash[u];return c==null?null:c(a)},p.Instance=new p,p}(),Do=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),kn=function(p){Do(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.prototype.getStateElement=function(){return this.props.counter},u.prototype.renderElement=function(){return P.a.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},u}(Z);D.Instance.registerElement("sv-character-counter",function(p){return P.a.createElement(kn,p)});var Ao=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),yr=function(p){Ao(u,p);function u(a){var c=p.call(this,a)||this;return c.initialValue=c.viewModel.getTextValue()||"",c.textareaRef=P.a.createRef(),c}return Object.defineProperty(u.prototype,"viewModel",{get:function(){return this.props.viewModel},enumerable:!1,configurable:!0}),u.prototype.canRender=function(){return!!this.viewModel.question},u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this);var a=this.textareaRef.current;a&&this.viewModel.setElement(a)},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.viewModel.resetElement()},u.prototype.renderElement=function(){var a=this;return P.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}})},u}(Z);D.Instance.registerElement("sv-text-area",function(p){return P.a.createElement(yr,p)});var mr=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),vr=function(p){mr(u,p);function u(a){return p.call(this,a)||this}return u.prototype.renderCharacterCounter=function(){var a=null;return this.question.getMaxLength()&&(a=d.createElement(kn,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter})),a},u.prototype.renderElement=function(){if(this.question.isReadOnlyRenderDiv())return d.createElement("div",null,this.question.value);var a=this.renderCharacterCounter(),c=this.props.question.textAreaModel;return d.createElement(d.Fragment,null,d.createElement(yr,{viewModel:c}),a)},u}(bt),Ht=function(p){mr(u,p);function u(a){var c=p.call(this,a)||this;return c.textAreaModel=c.getTextAreaModel(),c}return u.prototype.canRender=function(){return!!this.props.question},u.prototype.getTextAreaModel=function(){return this.props.question.commentTextAreaModel},u.prototype.renderElement=function(){var a=this.props.question;if(a.isReadOnlyRenderDiv()){var c=this.textAreaModel.getTextValue()||"";return d.createElement("div",null,c)}return d.createElement(yr,{viewModel:this.textAreaModel})},u}(fe),fn=function(p){mr(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.prototype.getTextAreaModel=function(){return this.props.question.otherTextAreaModel},u}(Ht);Ce.Instance.registerQuestion("comment",function(p){return d.createElement(vr,p)});var Lo=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Mo=function(p){Lo(u,p);function u(a){var c=p.call(this,a)||this;return c.widgetRef=d.createRef(),c}return u.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)}},u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},u.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()},u.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)}},u.prototype.canRender=function(){return p.prototype.canRender.call(this)&&this.questionBase.visible},u.prototype.renderElement=function(){var a=this.questionBase.customWidget;if(a.isDefaultRender)return d.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 d.createElement("div",{ref:this.widgetRef,dangerouslySetInnerHTML:f})}return d.createElement("div",{ref:this.widgetRef},c)},u}(ve),li=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ci=function(p){li(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),u.prototype.render=function(){var a=this.element,c=a.hasTitle?P.a.createElement(Ve,{element:a}):null,f=a.hasDescriptionUnderTitle?Z.renderQuestionDescription(this.element):null,g=a.hasAdditionalTitleToolbar?P.a.createElement(te,{model:a.additionalTitleToolbar}):null,A={width:void 0};return a instanceof C.Question&&(A.width=a.titleWidth),P.a.createElement("div",{className:a.cssHeader,onClick:function(_){return a.clickTitleFunction&&a.clickTitleFunction(_.nativeEvent)},style:A},c,f,g)},u}(P.a.Component),dn=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),zt=function(p){dn(u,p);function u(a){var c=p.call(this,a)||this;return c.isNeedFocus=!1,c.rootRef=d.createRef(),c}return u.renderQuestionBody=function(a,c){var f=c.customWidget;return f?d.createElement(Mo,{creator:a,question:c}):a.createQuestionElement(c)},u.prototype.getStateElement=function(){return this.question},Object.defineProperty(u.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var a=this.rootRef.current;a&&a.removeAttribute("data-rendered")},u.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.doAfterRender()},u.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))}},u.prototype.canRender=function(){return p.prototype.canRender.call(this)&&!!this.question&&!!this.creator},u.prototype.renderQuestionContent=function(){var a=this.question,c={display:this.question.renderedIsExpanded?"":"none"},f=a.cssClasses,g=this.renderQuestion(),A=this.question.showErrorOnTop?this.renderErrors(f,"top"):null,_=this.question.showErrorOnBottom?this.renderErrors(f,"bottom"):null,Q=a&&a.hasComment?this.renderComment(f):null,de=a.hasDescriptionUnderInput?this.renderDescription():null;return d.createElement("div",{className:a.cssContent||void 0,style:c,role:"presentation"},A,g,Q,_,de)},u.prototype.renderElement=function(){var a=this.question,c=a.cssClasses,f=this.renderHeader(a),g=a.hasTitleOnLeftTop?f:null,A=a.hasTitleOnBottom?f:null,_=this.question.showErrorsAboveQuestion?this.renderErrors(c,""):null,Q=this.question.showErrorsBelowQuestion?this.renderErrors(c,""):null,de=a.getRootStyle(),ae=this.wrapQuestionContent(this.renderQuestionContent());return d.createElement(d.Fragment,null,d.createElement("div",{ref:this.rootRef,id:a.id,className:a.getRootCss(),style:de,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},_,g,ae,A,Q))},u.prototype.wrapElement=function(a){var c=this.question.survey,f=null;return c&&(f=k.wrapElement(c,a,this.question)),f??a},u.prototype.wrapQuestionContent=function(a){var c=this.question.survey,f=null;return c&&(f=k.wrapQuestionContent(c,a,this.question)),f??a},u.prototype.renderQuestion=function(){return u.renderQuestionBody(this.creator,this.question)},u.prototype.renderDescription=function(){return Z.renderQuestionDescription(this.question)},u.prototype.renderComment=function(a){var c=Z.renderLocString(this.question.locCommentText);return d.createElement("div",{className:this.question.getCommentAreaCss()},d.createElement("div",null,c),d.createElement(Ht,{question:this.question,cssClasses:a,otherCss:a.other,isDisplayMode:this.question.isInputReadOnly}))},u.prototype.renderHeader=function(a){return d.createElement(ci,{element:a})},u.prototype.renderErrors=function(a,c){return d.createElement(Ut,{element:this.question,cssClasses:a,creator:this.creator,location:c,id:this.question.id+"_errors"})},u}(Z);D.Instance.registerElement("question",function(p){return d.createElement(zt,p)});var Ut=function(p){dn(u,p);function u(a){var c=p.call(this,a)||this;return c.state=c.getState(),c}return Object.defineProperty(u.prototype,"id",{get:function(){return this.props.element.id+"_errors"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),u.prototype.getState=function(a){return a===void 0&&(a=null),a?{error:a.error+1}:{error:0}},u.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},u.prototype.componentWillUnmount=function(){},u.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 d.createElement("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id},a)},u}(fe),pi=function(p){dn(u,p);function u(a){return p.call(this,a)||this}return u.prototype.getStateElement=function(){return this.question},Object.defineProperty(u.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),u.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(u.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.doAfterRender()},u.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.doAfterRender()},u.prototype.doAfterRender=function(){},u.prototype.canRender=function(){return!!this.question},u.prototype.renderContent=function(){var a=this.renderQuestion();return d.createElement(d.Fragment,null,a)},u.prototype.getShowErrors=function(){return this.question.isVisible},u.prototype.renderQuestion=function(){return zt.renderQuestionBody(this.creator,this.question)},u}(fe),fi=function(p){dn(u,p);function u(a){var c=p.call(this,a)||this;return c.cellRef=d.createRef(),c}return u.prototype.componentWillUnmount=function(){if(p.prototype.componentWillUnmount.call(this),this.question){var a=this.cellRef.current;a&&a.removeAttribute("data-rendered")}},u.prototype.renderCellContent=function(){return d.createElement("div",{className:this.props.cell.cellQuestionWrapperClassName},this.renderQuestion())},u.prototype.renderElement=function(){var a=this.getCellStyle(),c=this.props.cell,f=function(){c.focusIn()};return d.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()))},u.prototype.getCellStyle=function(){return null},u.prototype.getHeaderText=function(){return""},u.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},u}(pi),di=function(p){dn(u,p);function u(a){var c=p.call(this,a)||this;return c.state={changed:0},c.question&&c.registerCallback(c.question),c}return Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),u.prototype.update=function(){this.setState({changed:this.state.changed+1})},u.prototype.getQuestionPropertiesToTrack=function(){return["errors"]},u.prototype.registerCallback=function(a){var c=this;a.registerFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),function(){c.update()},"__reactSubscription")},u.prototype.unRegisterCallback=function(a){a.unRegisterFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),"__reactSubscription")},u.prototype.componentDidUpdate=function(a){a.question&&a.question!==this.question&&this.unRegisterCallback(a.cell),this.question&&this.registerCallback(this.question)},u.prototype.componentWillUnmount=function(){this.question&&this.unRegisterCallback(this.question)},u.prototype.render=function(){return d.createElement(Ut,{element:this.question,creator:this.props.creator,cssClasses:this.question.cssClasses})},u}(d.Component),hi=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),gi=function(p){hi(u,p);function u(a){return p.call(this,a)||this}return u.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(u.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),u.prototype.renderElement=function(){var a=this.renderTitle(),c=this.renderDescription(),f=this.renderRows(this.panelBase.cssClasses),g=d.createElement(Ut,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator});return d.createElement("div",{ref:this.rootRef,className:this.page.cssRoot},a,c,g,f)},u.prototype.renderTitle=function(){return d.createElement(Ve,{element:this.page})},u.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var a=Z.renderLocString(this.page.locDescription);return d.createElement("div",{className:this.panelBase.cssClasses.page.description},a)},u}(gt),jo=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),br=function(p){jo(u,p);function u(a){var c=p.call(this,a)||this;return c.state={changed:0},c.rootRef=P.a.createRef(),c}return Object.defineProperty(u.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),u.prototype.componentDidMount=function(){var a=this;this.survey.afterRenderHeader(this.rootRef.current),this.survey.locLogo.onChanged=function(){a.setState({changed:a.state.changed+1})}},u.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},u.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var a=Z.renderLocString(this.survey.locDescription);return P.a.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},P.a.createElement(Ve,{element:this.survey}),this.survey.renderedHasDescription?P.a.createElement("div",{className:this.css.description},a):null)},u.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 D.Instance.createElement(c,{data:f})},u.prototype.render=function(){return this.survey.renderedHasHeader?P.a.createElement("div",{className:this.css.header,ref:this.rootRef},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),P.a.createElement("div",{className:this.css.headerClose})):null},u}(P.a.Component);D.Instance.registerElement("survey-header",function(p){return P.a.createElement(br,p)});var yi=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),No=function(p){yi(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.prototype.render=function(){return P.a.createElement("div",{className:"sv-brand-info"},P.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"},P.a.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),P.a.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",P.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")),P.a.createElement("div",{className:"sv-brand-info__terms"},P.a.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},u}(P.a.Component),qo=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Qn=function(p){qo(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.notifier},u.prototype.renderElement=function(){if(!this.notifier.isDisplayed)return null;var a={visibility:this.notifier.active?"visible":"hidden"};return P.a.createElement("div",{className:this.notifier.css,style:a,role:"alert","aria-live":"polite"},P.a.createElement("span",null,this.notifier.message),P.a.createElement(te,{model:this.notifier.actionBar}))},u}(Z);D.Instance.registerElement("sv-notifier",function(p){return P.a.createElement(Qn,p)});var Hn=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),pt=function(p){Hn(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.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?P.a.createElement("div",{className:"sv-components-column sv-components-container-"+this.props.container},c.map(function(g){return D.Instance.createElement(g.component,{survey:a.props.survey,model:g.data,container:a.props.container,key:g.id})})):P.a.createElement(P.a.Fragment,null,c.map(function(g){return D.Instance.createElement(g.component,{survey:a.props.survey,model:g.data,container:a.props.container,key:g.id})}))},u}(P.a.Component);D.Instance.registerElement("sv-components-container",function(p){return P.a.createElement(pt,p)});var _o=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),mi=function(p){_o(u,p);function u(a){var c=p.call(this,a)||this;return c.onIconsChanged=function(){c.containerRef.current&&(c.containerRef.current.innerHTML=C.SvgRegistry.iconsRenderedHtml())},c.containerRef=P.a.createRef(),c}return u.prototype.componentDidMount=function(){this.onIconsChanged(),C.SvgRegistry.onIconsChanged.add(this.onIconsChanged)},u.prototype.componentWillUnmount=function(){C.SvgRegistry.onIconsChanged.remove(this.onIconsChanged)},u.prototype.render=function(){var a={display:"none"};return P.a.createElement("svg",{style:a,id:"sv-icon-holder-global-container",ref:this.containerRef})},u}(P.a.Component),Bo=M("react-dom"),vi=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Cr=function(p){vi(u,p);function u(a){var c=p.call(this,a)||this;return c.isInitialized=!1,c.init=function(){c.isInitialized||(C.settings.showModal=function(f,g,A,_,Q,de,ae){ae===void 0&&(ae="popup");var Pe=Object(C.createDialogOptions)(f,g,A,_,void 0,void 0,Q,de,ae);return c.showDialog(Pe)},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 u.addModalDescriptor=function(a){C.settings.showModal||a.init(),this.modalDescriptors.push(a)},u.removeModalDescriptor=function(a){a.clean(),this.modalDescriptors.splice(this.modalDescriptors.indexOf(a),1),!C.settings.showModal&&this.modalDescriptors[0]&&this.modalDescriptors[0].init()},u.prototype.renderElement=function(){return this.model?Object(Bo.createPortal)(P.a.createElement(pn,{model:this.model}),this.model.container):null},u.prototype.showDialog=function(a,c){var f=this;this.model=Object(C.createPopupModalViewModel)(a,c);var g=function(A,_){_.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},u.prototype.componentDidMount=function(){u.addModalDescriptor(this.descriptor)},u.prototype.componentWillUnmount=function(){this.model&&(this.model.dispose(),this.model=void 0),u.removeModalDescriptor(this.descriptor)},u.modalDescriptors=[],u}(Z),bi=M("./build/survey-core/icons/iconsV1.js"),Fo=M("./build/survey-core/icons/iconsV2.js"),ko=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ct=function(){return Ct=Object.assign||function(p){for(var u,a=1,c=arguments.length;a<c;a++){u=arguments[a];for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(p[f]=u[f])}return p},Ct.apply(this,arguments)};Object(C.addIconsToThemeSet)("v1",bi.icons),Object(C.addIconsToThemeSet)("v2",Fo.icons),C.SvgRegistry.registerIcons(bi.icons);var Pt=function(p){ko(u,p);function u(a){var c=p.call(this,a)||this;return c.previousJSON={},c.isSurveyUpdated=!1,c.createSurvey(a),c.updateSurvey(a,{}),c.rootRef=d.createRef(),c.rootNodeId=a.id||null,c.rootNodeClassName=a.className||"",c}return Object.defineProperty(u,"cssType",{get:function(){return C.surveyCss.currentType},set:function(a){C.StylesManager.applyTheme(a)},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.survey},u.prototype.onSurveyUpdated=function(){if(this.survey){var a=this.rootRef.current;a&&this.survey.afterRenderSurvey(a),this.survey.startTimerFromUI(),this.setSurveyEvents()}},u.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},u.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.updateSurvey(this.props,a),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.onSurveyUpdated()},u.prototype.destroySurvey=function(){this.survey&&(this.survey.renderCallback=void 0,this.survey.onPartialSend.clear(),this.survey.stopTimer(),this.survey.destroyResizeObserver())},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.destroySurvey()},u.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?d.createElement("div",{className:this.css.rootBackgroundImage,style:this.survey.backgroundImageStyle}):null,f=this.survey.headerView==="basic"?d.createElement(br,{survey:this.survey}):null,g=function(de){de.preventDefault()},A=d.createElement("div",{className:"sv_custom_header"});this.survey.hasLogo&&(A=null);var _=this.survey.getRootCss(),Q=this.rootNodeClassName?this.rootNodeClassName+" "+_:_;return d.createElement("div",{id:this.rootNodeId,ref:this.rootRef,className:Q,style:this.survey.themeVariables,lang:this.survey.locale||"en",dir:this.survey.localeDir},this.survey.needRenderIcons?d.createElement(mi,null):null,d.createElement(Cr,null),d.createElement("div",{className:this.survey.wrapperFormCss},c,d.createElement("form",{onSubmit:g},A,d.createElement("div",{className:this.css.container},f,d.createElement(pt,{survey:this.survey,container:"header",needRenderWrapper:!1}),a,d.createElement(pt,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),d.createElement(Qn,{notifier:this.survey.notifier})))},u.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(u.prototype,"css",{get:function(){return this.survey.css},set:function(a){this.survey.css=a},enumerable:!1,configurable:!0}),u.prototype.renderCompleted=function(){if(!this.survey.showCompletedPage)return null;var a={__html:this.survey.processedCompletedHtml};return d.createElement(d.Fragment,null,d.createElement("div",{dangerouslySetInnerHTML:a,className:this.survey.completedCss}),d.createElement(pt,{survey:this.survey,container:"completePage",needRenderWrapper:!1}))},u.prototype.renderCompletedBefore=function(){var a={__html:this.survey.processedCompletedBeforeHtml};return d.createElement("div",{dangerouslySetInnerHTML:a,className:this.survey.completedBeforeCss})},u.prototype.renderLoading=function(){var a={__html:this.survey.processedLoadingHtml};return d.createElement("div",{dangerouslySetInnerHTML:a,className:this.survey.loadingBodyCss})},u.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),d.createElement("div",{className:this.survey.bodyContainerCss},d.createElement(pt,{survey:this.survey,container:"left"}),d.createElement("div",{className:"sv-components-column sv-components-column--expandable"},d.createElement(pt,{survey:this.survey,container:"center"}),d.createElement("div",{id:c,className:f,style:g},d.createElement(pt,{survey:this.survey,container:"contentTop"}),a,d.createElement(pt,{survey:this.survey,container:"contentBottom"}),this.survey.showBrandInfo?d.createElement(No,null):null)),d.createElement(pt,{survey:this.survey,container:"right"}))},u.prototype.renderPage=function(a){return d.createElement(gi,{survey:this.survey,page:a,css:this.css,creator:this})},u.prototype.renderEmptySurvey=function(){return d.createElement("div",{className:this.css.bodyEmpty},this.survey.emptySurveyText)},u.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)},u.prototype.isModelJSONChanged=function(a){return a.model?this.survey!==a.model:a.json?!C.Helpers.isTwoValueEquals(a.json,this.previousJSON):!1},u.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])}}},u.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)})},u.prototype.createQuestionElement=function(a){return Ce.Instance.createQuestion(a.isDefaultRendering()?a.getTemplate():a.getComponentName(),{question:a,isDisplayMode:a.isInputReadOnly,creator:this})},u.prototype.renderError=function(a,c,f,g){return D.Instance.createElement(this.survey.questionErrorComponent,{key:a,error:c,cssClasses:f,element:g})},u.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},u.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},u}(Z);D.Instance.registerElement("survey",function(p){return d.createElement(Pt,p)});function hn(p,u,a){return a===void 0&&(a={processEsc:!0,disableTabStop:!1}),u&&u.disableTabStop||a&&a.disableTabStop?d.cloneElement(p,{tabIndex:-1}):(a=Ct({},a),d.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 Pr=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Dt=function(p){Pr(u,p);function u(a){var c=p.call(this,a)||this;return c.updateStateFunction=null,c.state={update:0},c}return Object.defineProperty(u.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"css",{get:function(){return this.props.css||this.survey.css},enumerable:!1,configurable:!0}),u.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)}},u.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},u}(d.Component),wr=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),xr=function(p){wr(u,p);function u(a){var c=p.call(this,a)||this;return c.circleLength=440,c}return u.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(u.prototype,"timerModel",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),u.prototype.render=function(){if(!this.timerModel.isRunning)return null;var a=d.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?d.createElement(he,{className:this.timerModel.getProgressCss(),style:c,iconName:"icon-timercircle",size:"auto"}):null;a=d.createElement("div",{className:this.timerModel.rootCss},f,d.createElement("div",{className:this.timerModel.textContainerCss},d.createElement("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?d.createElement("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return a},u}(fe);D.Instance.registerElement("sv-timerpanel",function(p){return d.createElement(xr,p)});var Ci=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),He=function(p){Ci(u,p);function u(a){var c=p.call(this,a)||this;return c.hasBeenExpanded=!1,c}return Object.defineProperty(u.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),u.prototype.renderElement=function(){var a=this,c=this.renderHeader(),f=d.createElement(Ut,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),g={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.renderedIsExpanded?void 0:"none"},A=null;if(this.panel.renderedIsExpanded){var _=this.renderRows(this.panelBase.cssClasses),Q=this.panelBase.cssClasses.panel.content;A=this.renderContent(g,_,Q)}var de=function(){a.panelBase&&a.panelBase.focusIn()};return d.createElement("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:de,id:this.panelBase.id},this.panel.showErrorsAbovePanel?f:null,c,this.panel.showErrorsAbovePanel?null:f,A)},u.prototype.renderHeader=function(){return!this.panel.hasTitle&&!this.panel.hasDescription?null:d.createElement(ci,{element:this.panel})},u.prototype.wrapElement=function(a){var c=this.panel.survey,f=null;return c&&(f=k.wrapElement(c,a,this.panel)),f??a},u.prototype.renderContent=function(a,c,f){var g=this.renderBottom();return d.createElement("div",{style:a,className:f,id:this.panel.contentId},c,g)},u.prototype.renderTitle=function(){return this.panelBase.title?d.createElement(Ve,{element:this.panelBase}):null},u.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var a=Z.renderLocString(this.panelBase.locDescription);return d.createElement("div",{className:this.panel.cssClasses.panel.description},a)},u.prototype.renderBottom=function(){var a=this.panel.getFooterToolbar();return a.hasActions?d.createElement(te,{model:a}):null},u.prototype.getIsVisible=function(){return this.panelBase.getIsContentVisible()},u}(gt);D.Instance.registerElement("panel",function(p){return d.createElement(He,p)});var Qo=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),zn=function(p){Qo(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},u.prototype.getQuestion=function(a){return this.flowPanel.getQuestionByName(a)},u.prototype.renderQuestion=function(a){return"<question>"+a.name+"</question>"},u.prototype.renderRows=function(){var a=this.renderHtml();return a?[a]:[]},u.prototype.getNodeIndex=function(){return this.renderedIndex++},u.prototype.renderHtml=function(){if(!this.flowPanel)return null;var a="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser){var c={__html:a};return d.createElement("div",{dangerouslySetInnerHTML:c})}var f=new DOMParser().parseFromString(a,"text/xml");return this.renderedIndex=0,this.renderParentNode(f)},u.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},u.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},u.prototype.renderParentNode=function(a){var c=a.nodeName.toLowerCase(),f=this.renderNodes(this.getChildDomNodes(a));return c==="div"?d.createElement("div",{key:this.getNodeIndex()},f):d.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(c)},f)},u.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=d.createElement(zt,{key:f.name,element:f,creator:this.creator,css:this.css});return d.createElement("span",{key:this.getNodeIndex()},g)}return c==="div"?d.createElement("div",{key:this.getNodeIndex()},a.textContent):d.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(c)},a.textContent)},u.prototype.getChildDomNodes=function(a){for(var c=[],f=0;f<a.childNodes.length;f++)c.push(a.childNodes[f]);return c},u.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},u.prototype.renderContent=function(a,c){return d.createElement("f-panel",{style:a},c)},u}(He);D.Instance.registerElement("flowpanel",function(p){return d.createElement(zn,p)});var Pi=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),wi=function(p){Pi(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.prototype.renderElement=function(){var a=this,c=this.question.cssClasses;return d.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},d.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)},u.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)})},u.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)})},u.prototype.getColumnedBody=function(a){return d.createElement("div",{className:a.rootMultiColumn},this.getColumns(a))},u.prototype.getColumns=function(a){var c=this;return this.question.columns.map(function(f,g){var A=f.map(function(_,Q){return c.renderItem(_,g===0&&Q===0,a,""+g+Q)});return d.createElement("div",{key:"column"+g+c.question.getItemsColumnKey(f),className:c.question.getColumnClass(),role:"presentation"},A)})},u.prototype.getBody=function(a){return this.question.blockedRow?d.createElement("div",{className:a.rootRow},this.getItems(a,this.question.dataChoices)):d.createElement(d.Fragment,null,this.getItems(a,this.question.bodyItems))},u.prototype.getItems=function(a,c){for(var f=[],g=0;g<c.length;g++){var A=c[g];""+A.value;var _=this.renderItem(A,g==0,a,""+g);_&&f.push(_)}return f},Object.defineProperty(u.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),u.prototype.renderOther=function(){var a=this.question.cssClasses;return d.createElement("div",{className:this.question.getCommentAreaCss(!0)},d.createElement(fn,{question:this.question,otherCss:a.other,cssClasses:a,isDisplayMode:this.isDisplayMode}))},u.prototype.renderItem=function(a,c,f,g){var A=D.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}),_=this.question.survey,Q=null;return _&&A&&(Q=k.wrapItemValue(_,A,this.question,a)),Q??A},u}(ve),Vr=function(p){Pi(u,p);function u(a){var c=p.call(this,a)||this;return c.handleOnChange=function(f){c.question.clickItemHandler(c.item,f.target.checked)},c.rootRef=d.createRef(),c}return u.prototype.getStateElement=function(){return this.item},Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"hideCaption",{get:function(){return this.props.hideCaption===!0},enumerable:!1,configurable:!0}),u.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))},u.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},u.prototype.canRender=function(){return!!this.item&&!!this.question},u.prototype.renderElement=function(){var a=this.question.isItemSelected(this.item);return this.renderCheckbox(a,null)},Object.defineProperty(u.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),u.prototype.renderCheckbox=function(a,c){var f=this.question.getItemId(this.item),g=this.question.getItemClass(this.item),A=this.question.getLabelClass(this.item),_=this.hideCaption?null:d.createElement("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return d.createElement("div",{className:g,role:"presentation",ref:this.rootRef},d.createElement("label",{className:A},d.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?d.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?d.createElement("svg",{className:this.cssClasses.itemDecorator},d.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,_),c)},u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},u}(fe);D.Instance.registerElement("survey-checkbox-item",function(p){return d.createElement(Vr,p)}),Ce.Instance.registerQuestion("checkbox",function(p){return d.createElement(wi,p)});var Un=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Sr=function(p){Un(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.prototype.renderElement=function(){var a=this;if(this.question.selectToRankEnabled){var c=!0;return d.createElement("div",{className:this.question.rootClass,ref:function(f){return a.setControl(f)}},d.createElement("div",{className:this.question.getContainerClasses("from"),"data-ranking":"from-container"},this.getItems(this.question.renderedUnRankingChoices,c),this.question.renderedUnRankingChoices.length===0?d.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText)," "):null),d.createElement("div",{className:this.question.cssClasses.containersDivider}),d.createElement("div",{className:this.question.getContainerClasses("to"),"data-ranking":"to-container"},this.getItems(),this.question.renderedRankingChoices.length===0?d.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText)," "):null))}else return d.createElement("div",{className:this.question.rootClass,ref:function(f){return a.setControl(f)}},this.getItems())},u.prototype.getItems=function(a,c){var f=this;a===void 0&&(a=this.question.renderedRankingChoices);for(var g=[],A=function(de){var ae=a[de];g.push(_.renderItem(ae,de,function(Pe){f.question.handleKeydown.call(f.question,Pe,ae)},function(Pe){Pe.persist(),f.question.handlePointerDown.call(f.question,Pe,ae,Pe.currentTarget)},function(Pe){Pe.persist(),f.question.handlePointerUp.call(f.question,Pe,ae,Pe.currentTarget)},_.question.cssClasses,_.question.getItemClass(ae),_.question,c))},_=this,Q=0;Q<a.length;Q++)A(Q);return g},u.prototype.renderItem=function(a,c,f,g,A,_,Q,de,ae){""+a.renderedId;var Pe=this.renderLocString(a.locText),lt=c,We=this.question.getNumberByIndex(lt),Kt=this.question.getItemTabIndex(a),Vt=d.createElement(xi,{key:a.value,text:Pe,index:lt,indexText:We,itemTabIndex:Kt,handleKeydown:f,handlePointerDown:g,handlePointerUp:A,cssClasses:_,itemClass:Q,question:de,unrankedItem:ae,item:a}),lr=this.question.survey,_t=null;return lr&&(_t=k.wrapItemValue(lr,Vt,this.question,a)),_t??Vt},u}(ve),xi=function(p){Un(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"handlePointerUp",{get:function(){return this.props.handlePointerUp},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"itemClass",{get:function(){return this.props.itemClass},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"itemTabIndex",{get:function(){return this.props.itemTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"unrankedItem",{get:function(){return this.props.unrankedItem},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),u.prototype.renderEmptyIcon=function(){return d.createElement("svg",null,d.createElement("use",{xlinkHref:this.question.dashSvgIcon}))},u.prototype.renderElement=function(){var a=D.Instance.createElement(this.question.itemComponent,{item:this.item,cssClasses:this.cssClasses});return d.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},d.createElement("div",{tabIndex:-1,style:{outline:"none"}},d.createElement("div",{className:this.cssClasses.itemGhostNode}),d.createElement("div",{className:this.cssClasses.itemContent},d.createElement("div",{className:this.cssClasses.itemIconContainer},d.createElement("svg",{className:this.question.getIconHoverCss()},d.createElement("use",{xlinkHref:this.question.dragDropSvgIcon})),d.createElement("svg",{className:this.question.getIconFocusCss()},d.createElement("use",{xlinkHref:this.question.arrowsSvgIcon}))),d.createElement("div",{className:this.question.getItemIndexClasses(this.item)},!this.unrankedItem&&this.indexText?this.indexText:this.renderEmptyIcon()),a)))},u}(fe),Or=function(p){Un(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),u.prototype.renderElement=function(){return d.createElement("div",{className:this.cssClasses.controlLabel},Z.renderLocString(this.item.locText))},u}(fe);D.Instance.registerElement("sv-ranking-item",function(p){return d.createElement(Or,p)}),Ce.Instance.registerQuestion("ranking",function(p){return d.createElement(Sr,p)});var Er=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ze=function(p){Er(u,p);function u(a){var c=p.call(this,a)||this;return c.handleOnMouseDown=c.handleOnMouseDown.bind(c),c}return Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.item},u.prototype.handleOnMouseDown=function(a){this.question.onMouseDown()},u}(Z),wt=function(p){Er(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.prototype.render=function(){var a=this.renderLocString(this.item.locText);return P.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},P.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}),P.a.createElement("span",{className:this.question.cssClasses.itemText,"data-text":this.item.text},a))},u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this)},u}(ze);D.Instance.registerElement("sv-rating-item",function(p){return P.a.createElement(wt,p)});var Ho=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Tr=function(p){Ho(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.prototype.render=function(){var a=this;return P.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)}},P.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}),P.a.createElement(he,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),P.a.createElement(he,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},u}(ze);D.Instance.registerElement("sv-rating-item-star",function(p){return P.a.createElement(Tr,p)});var zo=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Vi=function(p){zo(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.prototype.render=function(){var a=this;return P.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)}},P.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}),P.a.createElement(he,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},u}(ze);D.Instance.registerElement("sv-rating-item-smiley",function(p){return P.a.createElement(Vi,p)});var Ie=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ce=function(p){Ie(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.item},u.prototype.render=function(){if(!this.item)return null;var a=this.props.item,c=this.renderDescription(a);return P.a.createElement("div",{className:"sd-rating-dropdown-item"},P.a.createElement("span",{className:"sd-rating-dropdown-item_text"},a.title),c)},u.prototype.renderDescription=function(a){return a.description?P.a.createElement("div",{className:"sd-rating-dropdown-item_description"},this.renderLocString(a.description,void 0,"locString")):null},u}(Z);D.Instance.registerElement("sv-rating-dropdown-item",function(p){return P.a.createElement(ce,p)});var At=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),gn=function(p){At(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),u.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.updateDomElement()},u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.updateDomElement()},u.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)}},u.prototype.onChange=function(a){var c=C.settings.environment.root;a.target===c.activeElement&&(this.model.inputStringRendered=a.target.value)},u.prototype.keyhandler=function(a){this.model.inputKeyHandler(a)},u.prototype.onBlur=function(a){this.question.onBlur(a)},u.prototype.onFocus=function(a){this.question.onFocus(a)},u.prototype.getStateElement=function(){return this.model},u.prototype.render=function(){var a=this;return d.createElement("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?d.createElement("div",{className:this.question.cssClasses.hintPrefix},d.createElement("span",null,this.model.hintStringPrefix)):null,d.createElement("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?d.createElement("div",{className:this.question.cssClasses.hintSuffix},d.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),d.createElement("span",null,this.model.hintStringSuffix)):null,d.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)}})))},u}(Z);Ce.Instance.registerQuestion("sv-tagbox-filter",function(p){return d.createElement(gn,p)});var nt=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Si=function(p){nt(u,p);function u(a){var c=p.call(this,a)||this;return c.state={changed:0},c.setupModel(),c}return u.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.setupModel()},u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.setupModel()},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},u.prototype.setupModel=function(){if(this.item.locText){var a=this;this.item.locText.onChanged=function(){a.setState({changed:a.state.changed+1})}}},u.prototype.getStateElement=function(){return this.item},Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),u.prototype.canRender=function(){return!!this.item},u.prototype.renderElement=function(){return d.createElement("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},u}(fe),Rr=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Wn=function(p){Rr(u,p);function u(){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 u.prototype.getStateElement=function(){return this.question.dropdownListModel},u.prototype.setValueCore=function(a){this.questionBase.renderedValue=a},u.prototype.getValueCore=function(){return this.questionBase.renderedValue},u.prototype.renderReadOnlyElement=function(){return d.createElement("div",null,this.question.readOnlyText)},u.prototype.renderSelect=function(a){var c=this,f,g,A=null;if(this.question.isReadOnly){var _=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";A=d.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(Q){return c.setControl(Q)}},_,this.renderReadOnlyElement())}else A=d.createElement(d.Fragment,null,this.renderInput(this.question.dropdownListModel),d.createElement(tt,{model:(g=(f=this.question)===null||f===void 0?void 0:f.dropdownListModel)===null||g===void 0?void 0:g.popupModel}));return d.createElement("div",{className:a.selectWrapper,onClick:this.click},A,this.createChevronButton())},u.prototype.renderValueElement=function(a){return this.question.showInputFieldComponent?D.Instance.createElement(this.question.inputFieldComponentName,{item:a.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},u.prototype.renderInput=function(a){var c=this,f=this.renderValueElement(a),g=C.settings.environment.root,A=function(_){_.target===g.activeElement&&(a.inputStringRendered=_.target.value)};return d.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(_){return c.setControl(_)}},a.showHintPrefix?d.createElement("div",{className:this.question.cssClasses.hintPrefix},d.createElement("span",null,a.hintStringPrefix)):null,d.createElement("div",{className:this.question.cssClasses.controlValue},a.showHintString?d.createElement("div",{className:this.question.cssClasses.hintSuffix},d.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},a.inputStringRendered),d.createElement("span",null,a.hintStringSuffix)):null,f,d.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(_){return c.inputElement=_},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(_){A(_)},onBlur:this.blur,onFocus:this.focus})),this.createClearButton())},u.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var a={display:this.question.showClearButton?"":"none"};return d.createElement("div",{className:this.question.cssClasses.cleanButton,style:a,onClick:this.clear,"aria-hidden":"true"},d.createElement(he,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},u.prototype.createChevronButton=function(){return this.question.cssClasses.chevronButtonIconId?d.createElement("div",{className:this.question.cssClasses.chevronButton,"aria-hidden":"true",onPointerDown:this.chevronPointerDown},d.createElement(he,{className:this.question.cssClasses.chevronButtonSvg,iconName:this.question.cssClasses.chevronButtonIconId,size:"auto"})):null},u.prototype.renderOther=function(a){return d.createElement("div",{className:this.question.getCommentAreaCss(!0)},d.createElement(fn,{question:this.question,otherCss:a.other,cssClasses:a,isDisplayMode:this.isDisplayMode,isOther:!0}))},u.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.updateInputDomElement()},u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.updateInputDomElement()},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.dropdownListModel&&(this.question.dropdownListModel.focused=!1)},u.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)}},u}(bt),q=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ir=function(p){q(u,p);function u(a){return p.call(this,a)||this}return u.prototype.renderElement=function(){var a=this.question.cssClasses,c=this.question.isOtherSelected?this.renderOther(a):null,f=this.renderSelect(a);return d.createElement("div",{className:this.question.renderCssRoot},f,c)},u}(Wn);Ce.Instance.registerQuestion("dropdown",function(p){return d.createElement(Ir,p)});var yn=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),$n=function(p){yn(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),u.prototype.canRender=function(){return!!this.item&&!!this.question},u.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 d.createElement("div",{className:"sv-tagbox__item"},d.createElement("div",{className:"sv-tagbox__item-text"},c),d.createElement("div",{className:this.question.cssClasses.cleanItemButton,onClick:f},d.createElement(he,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},u}(fe),ft=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Lt=function(p){ft(u,p);function u(a){return p.call(this,a)||this}return u.prototype.renderItem=function(a,c){var f=d.createElement($n,{key:a,question:this.question,item:c});return f},u.prototype.renderInput=function(a){var c=this,f=a,g=this.question.selectedChoices.map(function(A,_){return c.renderItem("item"+_,A)});return d.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(A){return c.setControl(A)}},d.createElement("div",{className:this.question.cssClasses.controlValue},g,d.createElement(gn,{model:f,question:this.question})),this.createClearButton())},u.prototype.renderElement=function(){var a=this.question.cssClasses,c=this.question.isOtherSelected?this.renderOther(a):null,f=this.renderSelect(a);return d.createElement("div",{className:this.question.renderCssRoot},f,c)},u.prototype.renderReadOnlyElement=function(){return this.question.locReadOnlyText?this.renderLocString(this.question.locReadOnlyText):null},u}(Wn);Ce.Instance.registerQuestion("tagbox",function(p){return d.createElement(Lt,p)});var Uo=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),$e=function(p){Uo(u,p);function u(a){return p.call(this,a)||this}return u.prototype.renderSelect=function(a){var c=this,f=function(_){c.question.onClick(_)},g=function(_){c.question.onKeyUp(_)},A=this.isDisplayMode?d.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):d.createElement("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(_){return c.setControl(_)},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?d.createElement("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map(function(_,Q){return d.createElement(Si,{key:"item"+Q,item:_})}));return d.createElement("div",{className:a.selectWrapper},A,this.createChevronButton())},u}(Ir);Ce.Instance.registerQuestion("sv-dropdown-select",function(p){return d.createElement($e,p)}),C.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select");var Dr=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Wt=function(p){Dr(u,p);function u(a){var c=p.call(this,a)||this;return c.state={rowsChanged:0},c}return Object.defineProperty(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.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})}}},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},u.prototype.renderElement=function(){for(var a=this,c=this.question.cssClasses,f=this.question.hasRows?d.createElement("td",null):null,g=[],A=0;A<this.question.visibleColumns.length;A++){var _=this.question.visibleColumns[A],Q="column"+A,de=this.renderLocString(_.locText),ae={};this.question.columnMinWidth&&(ae.minWidth=this.question.columnMinWidth,ae.width=this.question.columnMinWidth),g.push(d.createElement("th",{className:this.question.cssClasses.headerCell,style:ae,key:Q},this.wrapCell({column:_},de,"column-header")))}for(var Pe=[],lt=this.question.visibleRows,A=0;A<lt.length;A++){var We=lt[A],Q="row-"+We.name+"-"+A;Pe.push(d.createElement(Oi,{key:Q,question:this.question,cssClasses:c,row:We,isFirst:A==0}))}var Kt=this.question.showHeader?d.createElement("thead",null,d.createElement("tr",null,f,g)):null;return d.createElement("div",{className:c.tableWrapper,ref:function(Vt){return a.setControl(Vt)}},d.createElement("fieldset",null,d.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),d.createElement("table",{className:this.question.getTableCss()},Kt,d.createElement("tbody",null,Pe))))},u}(ve),Oi=function(p){Dr(u,p);function u(a){return p.call(this,a)||this}return u.prototype.getStateElement=function(){return this.row?this.row.item:p.prototype.getStateElement.call(this)},Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),u.prototype.wrapCell=function(a,c,f){if(!f)return c;var g=this.question.survey,A=null;return g&&(A=k.wrapMatrixCell(g,c,a,f)),A??c},u.prototype.canRender=function(){return!!this.row},u.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=d.createElement("td",{style:f,className:this.row.rowTextClasses},this.wrapCell({row:this.row},c,"row-header"))}var g=this.generateTds();return d.createElement("tr",{className:this.row.rowClasses||void 0},a,g)},u.prototype.generateTds=function(){for(var a=this,c=[],f=this.row,g=this.question.cellComponent,A=function(){var de=null,ae=_.question.visibleColumns[Q],Pe="value"+Q,lt=_.question.getItemClass(f,ae);if(_.question.hasCellText){var We=function(Vt){return function(){return a.cellClick(f,Vt)}};de=d.createElement("td",{key:Pe,className:lt,onClick:We?We(ae):function(){}},_.renderLocString(_.question.getCellDisplayLocText(f.name,ae)))}else{var Kt=D.Instance.createElement(g,{question:_.question,row:_.row,column:ae,columnIndex:Q,cssClasses:_.cssClasses,cellChanged:function(){a.cellClick(a.row,ae)}});de=d.createElement("td",{key:Pe,"data-responsive-title":ae.locText.renderedHtml,className:_.question.cssClasses.cell},Kt)}c.push(de)},_=this,Q=0;Q<this.question.visibleColumns.length;Q++)A();return c},u.prototype.cellClick=function(a,c){a.value=c.value,this.setState({value:this.row.value})},u}(fe),Ue=function(p){Dr(u,p);function u(a){var c=p.call(this,a)||this;return c.handleOnMouseDown=c.handleOnMouseDown.bind(c),c.handleOnChange=c.handleOnChange.bind(c),c}return u.prototype.handleOnChange=function(a){this.props.cellChanged&&this.props.cellChanged()},u.prototype.handleOnMouseDown=function(a){this.question.onMouseDown()},Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"columnIndex",{get:function(){return this.props.columnIndex},enumerable:!1,configurable:!0}),u.prototype.canRender=function(){return!!this.question&&!!this.row},u.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?d.createElement("span",{className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(this.column.locText)):void 0;return d.createElement("label",{onMouseDown:this.handleOnMouseDown,className:f},this.renderInput(c,a),d.createElement("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?d.createElement("svg",{className:this.cssClasses.itemDecorator},d.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null),g)},u.prototype.renderInput=function(a,c){return d.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})},u}(fe);D.Instance.registerElement("survey-matrix-cell",function(p){return d.createElement(Ue,p)}),Ce.Instance.registerQuestion("matrix",function(p){return d.createElement(Wt,p)});var mn=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ei=function(p){mn(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.prototype.componentDidMount=function(){this.reactOnStrChanged()},u.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},u.prototype.componentDidUpdate=function(a,c){this.reactOnStrChanged()},u.prototype.reactOnStrChanged=function(){var a=this;this.question.locHtml.onChanged=function(){a.setState({changed:a.state&&a.state.changed?a.state.changed+1:1})}},u.prototype.canRender=function(){return p.prototype.canRender.call(this)&&!!this.question.html},u.prototype.renderElement=function(){var a={__html:this.question.locHtml.renderedHtml};return d.createElement("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:a})},u}(ve);Ce.Instance.registerQuestion("html",function(p){return d.createElement(Ei,p)});var Ti=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),me=function(p){Ti(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.prototype.render=function(){return d.createElement("div",{className:"sd-loading-indicator"},d.createElement(he,{iconName:"icon-loading",size:"auto"}))},u}(d.Component),Wo=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ar=function(p){Wo(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),u.prototype.render=function(){var a=this;return hn(P.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?P.a.createElement(he,{title:this.question.chooseButtonText,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null,P.a.createElement("span",null,this.question.chooseButtonText)))},u}(fe);D.Instance.registerElement("sv-file-choose-btn",function(p){return P.a.createElement(Ar,p)});var Lr=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Gn=function(p){Lr(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.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,A=this.question.showFileDecorator?this.renderFileDecorator():null,_=this.question.showRemoveButton?this.renderClearButton(this.question.cssClasses.removeButton):null,Q=this.question.showRemoveButtonBottom?this.renderClearButton(this.question.cssClasses.removeButtonBottom):null,de=this.question.fileNavigatorVisible?d.createElement(te,{model:this.question.fileNavigator}):null,ae;return this.question.isReadOnlyAttr?ae=d.createElement("input",{readOnly:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(Pe){return a.setControl(Pe)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.isDisabledAttr?ae=d.createElement("input",{disabled:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(Pe){return a.setControl(Pe)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.hasFileUI?ae=d.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(Pe){return a.setControl(Pe)},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,d.createElement("div",{className:this.question.fileRootCss,ref:function(Pe){return a.setContent(Pe)}},ae,d.createElement("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},A,f,g,_,c,Q,de))},u.prototype.renderFileDecorator=function(){var a=this.question.showChooseButton?this.renderChooseButton():null,c=this.question.actionsContainerVisible?d.createElement(te,{model:this.question.actionsContainer}):null,f=this.question.isEmpty()?d.createElement("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption):null;return d.createElement("div",{className:this.question.getFileDecoratorCss()},d.createElement("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.renderLocString(this.question.locRenderedPlaceholder)),d.createElement("div",{className:this.question.cssClasses.wrapper},a,c,f))},u.prototype.renderChooseButton=function(){return d.createElement(Ar,{data:{question:this.question}})},u.prototype.renderClearButton=function(a){return this.question.isUploading?null:d.createElement("button",{type:"button",onClick:this.question.doClean,className:a},d.createElement("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?d.createElement(he,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null)},u.prototype.renderPreview=function(){return D.Instance.createElement("sv-file-preview",{question:this.question})},u.prototype.renderLoadingIndicator=function(){return d.createElement("div",{className:this.question.cssClasses.loadingIndicator},d.createElement(me,null))},u.prototype.renderVideo=function(){return d.createElement("div",{className:this.question.cssClasses.videoContainer},d.createElement(yt,{item:this.question.changeCameraAction}),d.createElement(yt,{item:this.question.closeCameraAction}),d.createElement("video",{autoPlay:!0,playsInline:!0,id:this.question.videoId,className:this.question.cssClasses.video}),d.createElement(yt,{item:this.question.takePictureAction}))},u}(ve);Ce.Instance.registerQuestion("file",function(p){return d.createElement(Gn,p)});var Ri=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),vn=function(p){Ri(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),u.prototype.renderFileSign=function(a,c){var f=this;return!a||!c.name?null:P.a.createElement("div",{className:a},P.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))},u.prototype.renderElement=function(){var a=this,c=this.item;return P.a.createElement("span",{className:this.question.cssClasses.previewItem,onClick:function(f){return a.question.doDownloadFileFromContainer(f)}},this.renderFileSign(this.question.cssClasses.fileSign,c),P.a.createElement("div",{className:this.question.getImageWrapperCss(c)},this.question.canPreviewImage(c)?P.a.createElement("img",{src:c.content,style:{height:this.question.imageHeight,width:this.question.imageWidth},alt:"File preview"}):this.question.cssClasses.defaultImage?P.a.createElement(he,{iconName:this.question.cssClasses.defaultImageIconId,size:"auto",className:this.question.cssClasses.defaultImage}):null,c.name&&!this.question.isReadOnly?P.a.createElement("div",{className:this.question.getRemoveButtonCss(),onClick:function(f){return a.question.doRemoveFile(c,f)}},P.a.createElement("span",{className:this.question.cssClasses.removeFile},this.question.removeFileCaption),this.question.cssClasses.removeFileSvgIconId?P.a.createElement(he,{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))},u.prototype.canRender=function(){return this.question.showPreviewContainer},u}(Z),be=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),$o=function(p){be(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"page",{get:function(){return this.props.page},enumerable:!1,configurable:!0}),u.prototype.renderElement=function(){var a=this,c=this.page.items.map(function(f,g){return P.a.createElement(vn,{item:f,question:a.question,key:g})});return P.a.createElement("div",{className:this.page.css,id:this.page.id},c)},u}(Z),Go=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),bn=function(p){Go(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),u.prototype.renderFileSign=function(a,c){var f=this;return!a||!c.name?null:P.a.createElement("div",{className:a},P.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))},u.prototype.renderElement=function(){var a=this,c=this.question.supportFileNavigator?this.question.renderedPages.map(function(f,g){return P.a.createElement($o,{page:f,question:a.question,key:f.id})}):this.question.previewValue.map(function(f,g){return P.a.createElement(vn,{item:f,question:a.question,key:g})});return P.a.createElement("div",{className:this.question.cssClasses.fileList||void 0},c)},u.prototype.canRender=function(){return this.question.showPreviewContainer},u}(Z);D.Instance.registerElement("sv-file-preview",function(p){return P.a.createElement(bn,p)});var Mr=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),$t=function(p){Mr(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.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 d.createElement("table",{className:this.question.getQuestionRootCss()},d.createElement("tbody",null,f))},u.prototype.renderCell=function(a,c,f){var g,A=function(){a.item.focusIn()};return a.isErrorsCell?g=d.createElement(di,{question:a.item.editor,creator:this.creator}):g=d.createElement(jr,{question:this.question,item:a.item,creator:this.creator,cssClasses:c}),d.createElement("td",{key:"item"+f,className:a.className,onFocus:A},g)},u.prototype.renderRow=function(a,c,f){for(var g="item"+a,A=[],_=0;_<c.length;_++){var Q=c[_];A.push(this.renderCell(Q,f,_))}return d.createElement("tr",{key:g,className:f.row},A)},u}(ve),jr=function(p){Mr(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),u.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(u.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),u.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),d.createElement("label",{className:this.question.getItemLabelCss(a)},d.createElement("span",{className:c.itemTitle,style:f},d.createElement(K,{element:a.editor,cssClasses:a.editor.cssClasses})),d.createElement(Ii,{cssClasses:c,itemCss:this.question.getItemCss(),question:a.editor,creator:this.creator}))},u}(fe),Ii=function(p){Mr(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.prototype.renderElement=function(){return d.createElement("div",{className:this.itemCss},this.renderContent())},u}(pi);Ce.Instance.registerQuestion("multipletext",function(p){return d.createElement($t,p)});var Jn=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Cn=function(p){Jn(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.prototype.renderElement=function(){var a=this,c=this.question.cssClasses,f=null;return this.question.showClearButtonInContent&&(f=d.createElement("div",null,d.createElement("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return a.question.clearValue(!0)},value:this.question.clearButtonCaption}))),d.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)},u.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)})},u.prototype.getColumnedBody=function(a){return d.createElement("div",{className:a.rootMultiColumn},this.getColumns(a))},u.prototype.getColumns=function(a){var c=this,f=this.getStateValue();return this.question.columns.map(function(g,A){var _=g.map(function(Q,de){return c.renderItem(Q,f,a,""+A+de)});return d.createElement("div",{key:"column"+A+c.question.getItemsColumnKey(g),className:c.question.getColumnClass(),role:"presentation"},_)})},u.prototype.getBody=function(a){return this.question.blockedRow?d.createElement("div",{className:a.rootRow},this.getItems(a,this.question.dataChoices)):d.createElement(d.Fragment,null,this.getItems(a,this.question.bodyItems))},u.prototype.getItems=function(a,c){for(var f=[],g=this.getStateValue(),A=0;A<c.length;A++){var _=c[A],Q=this.renderItem(_,g,a,""+A);f.push(Q)}return f},Object.defineProperty(u.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),u.prototype.renderOther=function(a){return d.createElement("div",{className:this.question.getCommentAreaCss(!0)},d.createElement(fn,{question:this.question,otherCss:a.other,cssClasses:a,isDisplayMode:this.isDisplayMode}))},u.prototype.renderItem=function(a,c,f,g){var A=D.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}),_=this.question.survey,Q=null;return _&&(Q=k.wrapItemValue(_,A,this.question,a)),Q??A},u.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},u}(ve),Pn=function(p){Jn(u,p);function u(a){var c=p.call(this,a)||this;return c.rootRef=d.createRef(),c.handleOnChange=c.handleOnChange.bind(c),c.handleOnMouseDown=c.handleOnMouseDown.bind(c),c}return u.prototype.getStateElement=function(){return this.item},Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"hideCaption",{get:function(){return this.props.hideCaption===!0},enumerable:!1,configurable:!0}),u.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},u.prototype.handleOnChange=function(a){this.question.clickItemHandler(this.item)},u.prototype.handleOnMouseDown=function(a){this.question.onMouseDown()},u.prototype.canRender=function(){return!!this.question&&!!this.item},u.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))},u.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:d.createElement("span",{className:f},this.renderLocString(this.item.locText,this.textStyle));return d.createElement("div",{className:a,role:"presentation",ref:this.rootRef},d.createElement("label",{onMouseDown:this.handleOnMouseDown,className:c},d.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?d.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?d.createElement("svg",{className:this.cssClasses.itemDecorator},d.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,g))},u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},u}(fe);D.Instance.registerElement("survey-radiogroup-item",function(p){return d.createElement(Pn,p)}),Ce.Instance.registerQuestion("radiogroup",function(p){return d.createElement(Cn,p)});var xt=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Zn=function(p){xt(u,p);function u(a){return p.call(this,a)||this}return u.prototype.renderInput=function(){var a=this,c=this.question.getControlClass(),f=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return d.createElement("div",null,this.question.inputValue);var g=this.question.getMaxLength()?d.createElement(kn,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return d.createElement(d.Fragment,null,d.createElement("input",{id:this.question.inputId,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:c,type:this.question.inputType,ref:function(A){return a.setControl(A)},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(A){a.question.onBlur(A)},onFocus:function(A){a.question.onFocus(A)},onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(A){return a.question.onCompositionUpdate(A.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)},u.prototype.renderElement=function(){return this.question.dataListId?d.createElement("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},u.prototype.setValueCore=function(a){this.question.inputValue=a},u.prototype.getValueCore=function(){return this.question.inputValue},u.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(d.createElement("option",{key:"item"+f,value:a[f]}));return d.createElement("datalist",{id:this.question.dataListId},c)},u}(bt);Ce.Instance.registerQuestion("text",function(p){return d.createElement(Zn,p)});var Di=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ke=function(p){Di(u,p);function u(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=d.createRef(),c}return u.prototype.getStateElement=function(){return this.question},Object.defineProperty(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.prototype.doCheck=function(a){this.question.booleanValue=a},u.prototype.handleOnChange=function(a){this.doCheck(a.target.checked)},u.prototype.handleOnClick=function(a){this.question.onLabelClick(a,!0)},u.prototype.handleOnSwitchClick=function(a){this.question.onSwitchClickModel(a.nativeEvent)},u.prototype.handleOnLabelClick=function(a,c){this.question.onLabelClick(a,c)},u.prototype.handleOnKeyDown=function(a){this.question.onKeyDownCore(a)},u.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)}},u.prototype.renderElement=function(){var a=this,c=this.question.cssClasses,f=this.question.getItemCss();return d.createElement("div",{className:c.root,onKeyDown:this.handleOnKeyDown},d.createElement("label",{className:f,onClick:this.handleOnClick},d.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}),d.createElement("div",{className:c.sliderGhost,onClick:function(g){return a.handleOnLabelClick(g,a.question.swapOrder)}},d.createElement("span",{className:this.question.getLabelCss(this.question.swapOrder)},this.renderLocString(this.question.locLabelLeft))),d.createElement("div",{className:c.switch,onClick:this.handleOnSwitchClick},d.createElement("span",{className:c.slider},this.question.isDeterminated&&c.sliderText?d.createElement("span",{className:c.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),d.createElement("div",{className:c.sliderGhost,onClick:function(g){return a.handleOnLabelClick(g,!a.question.swapOrder)}},d.createElement("span",{className:this.question.getLabelCss(!this.question.swapOrder)},this.renderLocString(this.question.locLabelRight)))))},u}(ve);Ce.Instance.registerQuestion("boolean",function(p){return d.createElement(Ke,p)});var Kn=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Yn=function(p){Kn(u,p);function u(a){return p.call(this,a)||this}return u.prototype.renderElement=function(){var a=this.question.cssClasses,c=this.question.getCheckboxItemCss(),f=this.question.canRenderLabelDescription?Z.renderQuestionDescription(this.question):null;return d.createElement("div",{className:a.rootCheckbox},d.createElement("div",{className:c},d.createElement("label",{className:a.checkboxLabel},d.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}),d.createElement("span",{className:a.checkboxMaterialDecorator},this.question.svgIcon?d.createElement("svg",{className:a.checkboxItemDecorator},d.createElement("use",{xlinkHref:this.question.svgIcon})):null,d.createElement("span",{className:"check"})),this.question.isLabelRendered&&d.createElement("span",{className:a.checkboxControlLabel,id:this.question.labelRenderedAriaID},d.createElement(le,{element:this.question,cssClasses:this.question.cssClasses}))),f))},u}(Ke);Ce.Instance.registerQuestion("sv-boolean-checkbox",function(p){return d.createElement(Yn,p)}),C.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox");var qe=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ai=function(p){qe(u,p);function u(a){var c=p.call(this,a)||this;return c.handleOnChange=function(f){c.question.booleanValue=f.nativeEvent.target.value=="true"},c}return u.prototype.renderRadioItem=function(a,c){var f=this.question.cssClasses;return d.createElement("div",{role:"presentation",className:this.question.getRadioItemClass(f,a)},d.createElement("label",{className:f.radioLabel},d.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?d.createElement("span",{className:f.materialRadioDecorator},this.question.itemSvgIcon?d.createElement("svg",{className:f.itemRadioDecorator},d.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,d.createElement("span",{className:f.radioControlLabel},this.renderLocString(c))))},u.prototype.renderElement=function(){var a=this.question.cssClasses;return d.createElement("div",{className:a.rootRadio},d.createElement("fieldset",{role:"presentation",className:a.radioFieldset},this.question.swapOrder?d.createElement(d.Fragment,null,this.renderRadioItem(!0,this.question.locLabelTrue),this.renderRadioItem(!1,this.question.locLabelFalse)):d.createElement(d.Fragment,null,this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue))))},u}(Ke);Ce.Instance.registerQuestion("sv-boolean-radio",function(p){return d.createElement(Ai,p)}),C.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio");var ut=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Nr=function(p){ut(u,p);function u(a){var c=p.call(this,a)||this;return c.state={value:c.question.value},c}return Object.defineProperty(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.prototype.renderElement=function(){return d.createElement("div",null)},u}(ve);Ce.Instance.registerQuestion("empty",function(p){return d.createElement(Nr,p)});var Li=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Mt=function(p){Li(u,p);function u(a){var c=p.call(this,a)||this;return c.root=P.a.createRef(),c.onPointerDownHandler=function(f){c.parentMatrix.onPointerDown(f.nativeEvent,c.model.row)},c}return Object.defineProperty(u.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.model},u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.root.current&&this.model.setRootElement(this.root.current)},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.model.setRootElement(void 0)},u.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},u.prototype.render=function(){var a=this,c=this.model;return c.visible?P.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},u}(Z);D.Instance.registerElement("sv-matrix-row",function(p){return P.a.createElement(Mt,p)});var wn=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Xn=function(p){wn(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),u.prototype.renderElement=function(){return P.a.createElement("div",null,this.renderIcon())},u.prototype.renderIcon=function(){return this.question.iconDragElement?P.a.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},P.a.createElement("use",{xlinkHref:this.question.iconDragElement})):P.a.createElement("span",{className:this.question.cssClasses.iconDrag})},u}(fe);D.Instance.registerElement("sv-matrix-drag-drop-icon",function(p){return P.a.createElement(Xn,p)});var Gt=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),xn=function(p){Gt(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"table",{get:function(){return this.question.renderedTable},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.table},u.prototype.wrapCell=function(a,c,f){return this.props.wrapCell(a,c,f)},u.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 A=f[g],_="column"+g,Q={};A.width&&(Q.width=A.width),A.minWidth&&(Q.minWidth=A.minWidth);var de=this.renderCellContent(A,"column-header",{}),ae=A.hasTitle?d.createElement("th",{className:A.className,key:_,style:Q}," ",de," "):d.createElement("td",{className:A.className,key:_,style:Q});c.push(ae)}return d.createElement("thead",null,d.createElement("tr",null,c))},u.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 d.createElement("tfoot",null,c)},u.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 d.createElement("tbody",null,c)},u.prototype.renderRow=function(a,c,f,g){for(var A=[],_=c.cells,Q=0;Q<_.length;Q++)A.push(this.renderCell(_[Q],f,g));var de="row"+a;return d.createElement(d.Fragment,{key:de},g=="row-footer"?d.createElement("tr",null,A):d.createElement(Mt,{model:c,parentMatrix:this.question},A))},u.prototype.renderCell=function(a,c,f){var g="cell"+a.id;if(a.hasQuestion)return d.createElement(Mi,{key:g,cssClasses:c,cell:a,creator:this.creator,reason:f});if(a.isErrorsCell&&a.isErrorsCell)return d.createElement(er,{cell:a,key:g,keyValue:g,question:a.question,creator:this.creator});var A=f;A||(A=a.hasTitle?"row-header":"");var _=this.renderCellContent(a,A,c),Q=null;return(a.width||a.minWidth)&&(Q={},a.width&&(Q.width=a.width),a.minWidth&&(Q.minWidth=a.minWidth)),d.createElement("td",{className:a.className,key:g,style:Q,colSpan:a.colSpans,title:a.getTitle()},_)},u.prototype.renderCellContent=function(a,c,f){var g=null,A=null;if((a.width||a.minWidth)&&(A={},a.width&&(A.width=a.width),a.minWidth&&(A.minWidth=a.minWidth)),a.hasTitle){c="row-header";var _=this.renderLocString(a.locTitle),Q=a.column?d.createElement(tr,{column:a.column,question:this.question}):null;g=d.createElement(d.Fragment,null,_,Q)}if(a.isDragHandlerCell&&(g=d.createElement(d.Fragment,null,d.createElement(Xn,{item:{data:{row:a.row,question:this.question}}}))),a.isActionsCell&&(g=D.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:f,cell:a,model:a.item.getData()})),a.hasPanel&&(g=d.createElement(He,{key:a.panel.id,element:a.panel,survey:this.question.survey,cssClasses:f,isDisplayMode:this.isDisplayMode,creator:this.creator})),!g)return null;var de=d.createElement(d.Fragment,null,g);return this.wrapCell(a,de,c)},u.prototype.renderElement=function(){var a=this.renderHeader(),c=this.renderFooter(),f=this.renderRows();return d.createElement("table",{className:this.question.getTableCss()},a,f,c)},u}(Z),Vn=function(p){Gt(u,p);function u(a){var c=p.call(this,a)||this;return c.question.renderedTable,c.state=c.getState(),c}return Object.defineProperty(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.prototype.getState=function(a){return a===void 0&&(a=null),{rowCounter:a?a.rowCounter+1:0}},u.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},u.prototype.componentDidMount=function(){var a=this;p.prototype.componentDidMount.call(this),this.question.onRenderedTableResetCallback=function(){a.updateStateOnCallback()}},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.onRenderedTableResetCallback=function(){}},u.prototype.renderElement=function(){return this.renderTableDiv()},u.prototype.renderTableDiv=function(){var a=this,c=this.question.showHorizontalScroll?{overflowX:"scroll"}:{};return d.createElement("div",{style:c,className:this.question.cssClasses.tableWrapper,ref:function(f){return a.setControl(f)}},d.createElement(xn,{question:this.question,creator:this.creator,wrapCell:function(f,g,A){return a.wrapCell(f,g,A)}}))},u}(ve),Jo=function(p){Gt(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),u.prototype.renderElement=function(){return d.createElement(te,{model:this.model,handleClick:!1})},u}(fe),er=function(p){Gt(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"key",{get:function(){return this.props.keyValue},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),u.prototype.render=function(){return this.cell.isVisible?d.createElement("td",{className:this.cell.className,key:this.key,colSpan:this.cell.colSpans,title:this.cell.getTitle()},p.prototype.render.call(this)):null},u.prototype.getQuestionPropertiesToTrack=function(){return p.prototype.getQuestionPropertiesToTrack.call(this).concat(["visible"])},u}(di);D.Instance.registerElement("sv-matrixdynamic-actions-cell",function(p){return d.createElement(Jo,p)});var tr=function(p){Gt(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.column},u.prototype.renderElement=function(){return this.column.isRenderedRequired?d.createElement(d.Fragment,null,d.createElement("span",null," "),d.createElement("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},u}(fe),Mi=function(p){Gt(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),u.prototype.getQuestion=function(){var a=p.prototype.getQuestion.call(this);return a||(this.cell?this.cell.question:null)},u.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)}},u.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},u.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},u.prototype.getHeaderText=function(){return this.cell.headers},u.prototype.renderElement=function(){return this.cell.isVisible?p.prototype.renderElement.call(this):null},u.prototype.renderCellContent=function(){var a=p.prototype.renderCellContent.call(this),c=this.cell.showResponsiveTitle?d.createElement("span",{className:this.cell.responsiveTitleCss},this.renderLocString(this.cell.responsiveLocTitle),d.createElement(tr,{column:this.cell.column,question:this.cell.matrix})):null;return d.createElement(d.Fragment,null,c,a)},u.prototype.renderQuestion=function(){return this.question.isVisible?this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():zt.renderQuestionBody(this.creator,this.question):d.createElement(d.Fragment,null)},u.prototype.renderOtherComment=function(){var a=this.cell.question,c=a.cssClasses||{};return d.createElement(fn,{question:a,cssClasses:c,otherCss:c.other,isDisplayMode:a.isInputReadOnly})},u.prototype.renderCellCheckboxButton=function(){var a=this.cell.question.id+"item"+this.cell.choiceIndex;return d.createElement(Vr,{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})},u.prototype.renderCellRadiogroupButton=function(){var a=this.cell.question.id+"item"+this.cell.choiceIndex;return d.createElement(Pn,{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})},u}(fi),qr=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ji=function(p){qr(u,p);function u(a){return p.call(this,a)||this}return u}(Vn);Ce.Instance.registerQuestion("matrixdropdown",function(p){return d.createElement(ji,p)});var nr=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),_r=function(p){nr(u,p);function u(a){var c=p.call(this,a)||this;return c.handleOnRowAddClick=c.handleOnRowAddClick.bind(c),c}return Object.defineProperty(u.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.prototype.handleOnRowAddClick=function(a){this.matrix.addRowUI()},u.prototype.renderElement=function(){var a=this.question.cssClasses,c=this.question.renderedTable.showTable,f=c?this.renderTableDiv():this.renderNoRowsContent(a);return d.createElement("div",null,this.renderAddRowButtonOnTop(a),f,this.renderAddRowButtonOnBottom(a))},u.prototype.renderAddRowButtonOnTop=function(a){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(a):null},u.prototype.renderAddRowButtonOnBottom=function(a){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(a):null},u.prototype.renderNoRowsContent=function(a){var c=this.renderLocString(this.matrix.locEmptyRowsText),f=d.createElement("div",{className:a.emptyRowsText},c),g=this.matrix.renderedTable.showAddRow?this.renderAddRowButton(a,!0):void 0;return d.createElement("div",{className:a.emptyRowsSection},f,g)},u.prototype.renderAddRowButton=function(a,c){return c===void 0&&(c=!1),D.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:a,isEmptySection:c})},u}(Vn);Ce.Instance.registerQuestion("matrixdynamic",function(p){return d.createElement(_r,p)});var rr=function(p){nr(u,p);function u(a){var c=p.call(this,a)||this;return c.handleOnRowAddClick=c.handleOnRowAddClick.bind(c),c}return Object.defineProperty(u.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),u.prototype.handleOnRowAddClick=function(a){this.matrix.addRowUI()},u.prototype.renderElement=function(){var a=this.renderLocString(this.matrix.locAddRowText),c=d.createElement("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},a,d.createElement("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?c:d.createElement("div",{className:this.props.cssClasses.footer},c)},u}(fe);D.Instance.registerElement("sv-matrixdynamic-add-btn",function(p){return d.createElement(rr,p)});var Ni=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Sn=function(p){Ni(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),u}(fe),qi=function(p){Ni(u,p);function u(){var a=p!==null&&p.apply(this,arguments)||this;return a.handleClick=function(c){a.question.addPanelUI()},a}return u.prototype.renderElement=function(){if(!this.question.canAddPanel)return null;var a=this.renderLocString(this.question.locPanelAddText);return P.a.createElement("button",{type:"button",id:this.question.addButtonId,className:this.question.getAddButtonCss(),onClick:this.handleClick},P.a.createElement("span",{className:this.question.cssClasses.buttonAddText},a))},u}(Sn);D.Instance.registerElement("sv-paneldynamic-add-btn",function(p){return P.a.createElement(qi,p)});var Zo=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),mt=function(p){Zo(u,p);function u(){var a=p!==null&&p.apply(this,arguments)||this;return a.handleClick=function(c){a.question.goToNextPanel()},a}return u.prototype.renderElement=function(){return P.a.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},P.a.createElement(he,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},u}(Sn);D.Instance.registerElement("sv-paneldynamic-next-btn",function(p){return P.a.createElement(mt,p)});var ir=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),On=function(p){ir(u,p);function u(){var a=p!==null&&p.apply(this,arguments)||this;return a.handleClick=function(c){a.question.goToPrevPanel()},a}return u.prototype.renderElement=function(){return P.a.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},P.a.createElement(he,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},u}(Sn);D.Instance.registerElement("sv-paneldynamic-prev-btn",function(p){return P.a.createElement(On,p)});var _i=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),or=function(p){_i(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.prototype.renderElement=function(){return P.a.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},u}(Sn);D.Instance.registerElement("sv-paneldynamic-progress-text",function(p){return P.a.createElement(or,p)});var Bi=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),sr=function(p){Bi(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.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()}},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},u.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},u.prototype.renderElement=function(){var a=this,c=[];this.question.renderedPanels.forEach(function(de,ae){c.push(d.createElement(Ko,{key:de.id,element:de,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,A=this.question.isProgressBottomShowing?this.renderNavigator():null,_=this.renderNavigatorV2(),Q=this.renderPlaceholder();return d.createElement("div",{className:this.question.cssClasses.root},Q,g,d.createElement("div",{className:this.question.cssClasses.panelsContainer},c),A,f,_)},u.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(),A=this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom;return d.createElement("div",{className:A},d.createElement("div",{style:{clear:"both"}},d.createElement("div",{className:this.question.cssClasses.progressContainer},c,a,f),g,this.renderProgressText()))},u.prototype.renderProgressText=function(){return d.createElement(or,{data:{question:this.question}})},u.prototype.rendrerPrevButton=function(){return d.createElement(On,{data:{question:this.question}})},u.prototype.rendrerNextButton=function(){return d.createElement(mt,{data:{question:this.question}})},u.prototype.renderRange=function(){return d.createElement("div",{className:this.question.cssClasses.progress},d.createElement("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},u.prototype.renderAddRowButton=function(){return D.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},u.prototype.renderNavigatorV2=function(){if(!this.question.showNavigation)return null;var a=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return d.createElement("div",{className:this.question.cssClasses.footer},d.createElement("hr",{className:this.question.cssClasses.separator}),a,this.question.footerToolbar.visibleActions.length?d.createElement("div",{className:this.question.cssClasses.footerButtonsContainer},d.createElement(te,{model:this.question.footerToolbar})):null)},u.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?d.createElement("div",{className:this.question.cssClasses.noEntriesPlaceholder},d.createElement("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},u}(ve),Ko=function(p){Bi(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),u.prototype.getSurvey=function(){return this.question?this.question.survey:null},u.prototype.getCss=function(){var a=this.getSurvey();return a?a.getCss():{}},u.prototype.render=function(){var a=p.prototype.render.call(this),c=this.renderButton(),f=this.question.showSeparator(this.index)?d.createElement("hr",{className:this.question.cssClasses.separator}):null;return d.createElement(d.Fragment,null,d.createElement("div",{className:this.question.getPanelWrapperCss(this.panel)},a,c),f)},u.prototype.renderButton=function(){return this.question.panelRemoveButtonLocation!=="right"||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:D.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},u}(He);Ce.Instance.registerQuestion("paneldynamic",function(p){return d.createElement(sr,p)});var Fi=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Fe=function(p){Fi(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),u.prototype.render=function(){var a={width:this.progress+"%"};return d.createElement("div",{className:this.survey.getProgressCssClasses(this.props.container)},d.createElement("div",{style:a,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},d.createElement("span",{className:C.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),d.createElement("span",{className:C.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},u}(Dt);D.Instance.registerElement("sv-progress-pages",function(p){return d.createElement(Fe,p)}),D.Instance.registerElement("sv-progress-questions",function(p){return d.createElement(Fe,p)}),D.Instance.registerElement("sv-progress-correctquestions",function(p){return d.createElement(Fe,p)}),D.Instance.registerElement("sv-progress-requiredquestions",function(p){return d.createElement(Fe,p)});var Br=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ar=function(p){Br(u,p);function u(a){var c=p.call(this,a)||this;return c.listContainerRef=d.createRef(),c}return Object.defineProperty(u.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"container",{get:function(){return this.props.container},enumerable:!1,configurable:!0}),u.prototype.onResize=function(a){this.setState({canShowItemTitles:a}),this.setState({canShowHeader:!a})},u.prototype.onUpdateScroller=function(a){this.setState({hasScroller:a})},u.prototype.onUpdateSettings=function(){this.setState({canShowItemTitles:this.model.showItemTitles}),this.setState({canShowFooter:!this.model.showItemTitles})},u.prototype.render=function(){var a=this;return d.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?d.createElement("div",{className:this.css.progressButtonsHeader},d.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.headerText},this.model.headerText)):null,d.createElement("div",{className:this.css.progressButtonsContainer},d.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!0),role:"button",onClick:function(){return a.clickScrollButton(a.listContainerRef.current,!0)}}),d.createElement("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},d.createElement("ul",{className:this.css.progressButtonsList},this.getListElements())),d.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!1),role:"button",onClick:function(){return a.clickScrollButton(a.listContainerRef.current,!1)}})),this.state.canShowFooter?d.createElement("div",{className:this.css.progressButtonsFooter},d.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.footerText},this.model.footerText)):null)},u.prototype.getListElements=function(){var a=this,c=[];return this.survey.visiblePages.forEach(function(f,g){c.push(a.renderListElement(f,g))}),c},u.prototype.renderListElement=function(a,c){var f=this,g=Z.renderLocString(a.locNavigationTitle);return d.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)},d.createElement("div",{className:this.css.progressButtonsConnector}),this.state.canShowItemTitles?d.createElement(d.Fragment,null,d.createElement("div",{className:this.css.progressButtonsPageTitle,title:a.renderedNavigationTitle},g),d.createElement("div",{className:this.css.progressButtonsPageDescription,title:a.navigationDescription},a.navigationDescription)):null,d.createElement("div",{className:this.css.progressButtonsButton},d.createElement("div",{className:this.css.progressButtonsButtonBackground}),d.createElement("div",{className:this.css.progressButtonsButtonContent}),d.createElement("span",null,this.model.getItemNumber(a))))},u.prototype.clickScrollButton=function(a,c){a&&(a.scrollLeft+=(c?-1:1)*70)},u.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)},u.prototype.componentWillUnmount=function(){this.respManager&&this.respManager.dispose(),p.prototype.componentWillUnmount.call(this)},u}(Dt);D.Instance.registerElement("sv-progress-buttons",function(p){return d.createElement(ar,p)});var Yo=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ki=function(p){Yo(u,p);function u(){var a=p!==null&&p.apply(this,arguments)||this;return a.handleKeydown=function(c){a.model.onKeyDown(c)},a}return Object.defineProperty(u.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.item},u.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=D.Instance.createElement(f,{item:this.item,key:this.item.id,model:this.model}),A=P.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),_=this.item.needSeparator?P.a.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,Q=this.model.isItemVisible(this.item),de={display:Q?null:"none"};return hn(P.a.createElement("li",{className:c,role:"option",style:de,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)}},_,A),this.item)},u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},u}(Z);D.Instance.registerElement("sv-list-item",function(p){return P.a.createElement(ki,p)});var Jt=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),En=function(p){Jt(u,p);function u(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=P.a.createRef(),c}return Object.defineProperty(u.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.model},u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},u.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))},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.model&&this.model.initListContainerHtmlElement(void 0)},u.prototype.renderElement=function(){return P.a.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())},u.prototype.renderList=function(){if(!this.model.renderElements)return null;var a=this.renderItems(),c={display:this.model.isEmpty?"none":null};return P.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)},u.prototype.renderItems=function(){var a=this;if(!this.model)return null;var c=this.model.renderedActions;return c?c.map(function(f,g){return P.a.createElement(ki,{model:a.model,item:f,key:"item"+g})}):null},u.prototype.searchElementContent=function(){var a=this;if(this.model.showFilter){var c=function(A){var _=C.settings.environment.root;A.target===_.activeElement&&(a.model.filterString=A.target.value)},f=function(A){a.model.goToItems(A)},g=this.model.showSearchClearButton&&this.model.filterString?P.a.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(A){a.model.onClickSearchClearButton(A)}},P.a.createElement(he,{iconName:"icon-searchclear",size:"auto"})):null;return P.a.createElement("div",{className:this.model.cssClasses.filter},P.a.createElement("div",{className:this.model.cssClasses.filterIcon},P.a.createElement(he,{iconName:"icon-search",size:"auto"})),P.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},u.prototype.emptyContent=function(){var a={display:this.model.isEmpty?null:"none"};return P.a.createElement("div",{className:this.model.cssClasses.emptyContainer,style:a},P.a.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},u}(Z);D.Instance.registerElement("sv-list",function(p){return P.a.createElement(En,p)});var Xo=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Qi=function(p){Xo(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.prototype.render=function(){var a=this.props.model,c;return a.isMobile?c=d.createElement("div",{onClick:a.togglePopup},d.createElement(he,{iconName:a.icon,size:24}),d.createElement(tt,{model:a.popupModel})):c=d.createElement(En,{model:a.listModel}),d.createElement("div",{className:a.containerCss},c)},u}(Dt);D.Instance.registerElement("sv-navigation-toc",function(p){return d.createElement(Qi,p)});var Hi=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),zi=function(p){Hi(u,p);function u(a){var c=p.call(this,a)||this;return c.handleOnClick=c.handleOnClick.bind(c),c}return Object.defineProperty(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.prototype.handleOnClick=function(a){this.question.setValueFromClick(a.target.value),this.setState({value:this.question.value})},u.prototype.renderItem=function(a,c){var f=D.Instance.createElement(this.question.itemComponent,{question:this.question,item:a,index:c,key:"value"+c,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode});return f},u.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 d.createElement("div",{className:this.question.ratingRootCss,ref:function(A){return a.setControl(A)}},d.createElement("fieldset",{role:"radiogroup"},d.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?d.createElement("span",{className:c.minText},f):null,this.question.renderedRateItems.map(function(A,_){return a.renderItem(A,_)}),this.question.hasMaxLabel?d.createElement("span",{className:c.maxText},g):null))},u}(ve);Ce.Instance.registerQuestion("rating",function(p){return d.createElement(zi,p)});var es=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Zt=function(p){es(u,p);function u(a){return p.call(this,a)||this}return u.prototype.renderElement=function(){var a=this.question.cssClasses,c=this.renderSelect(a);return d.createElement("div",{className:this.question.cssClasses.rootDropdown},c)},u}(Wn);Ce.Instance.registerQuestion("sv-rating-dropdown",function(p){return d.createElement(Zt,p)}),C.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown");var dt=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ge=function(p){dt(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.prototype.renderElement=function(){var a=this,c=this.question.cssClasses;return d.createElement("div",{id:this.question.inputId,className:c.root,ref:function(f){return a.setControl(f)}},this.question.formatedValue)},u}(ve);Ce.Instance.registerQuestion("expression",function(p){return d.createElement(Ge,p)});var Ui=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Tn=function(p){Ui(u,p);function u(a){var c=p.call(this,a)||this;return c.handleOnExpanded=c.handleOnExpanded.bind(c),c}return u.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},u.prototype.handleOnExpanded=function(a){this.popup.changeExpandCollapse()},u.prototype.canRender=function(){return p.prototype.canRender.call(this)&&this.popup.isShowing},u.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),d.createElement("div",{className:this.popup.cssRoot,style:g,onScroll:function(){return a.popup.onScroll()}},d.createElement("div",{className:this.popup.cssRootContent},c,f))},u.prototype.renderWindowHeader=function(){var a=this.popup,c=a.cssHeaderRoot,f=null,g,A=null,_=null;return a.isCollapsed?(c+=" "+a.cssRootCollapsedMod,f=this.renderTitleCollapsed(a),g=this.renderExpandIcon()):g=this.renderCollapseIcon(),a.allowClose&&(A=this.renderCloseButton(this.popup)),a.allowFullScreen&&(_=this.renderAllowFullScreenButon(this.popup)),d.createElement("div",{className:a.cssHeaderRoot},f,d.createElement("div",{className:a.cssHeaderButtonsContainer},_,d.createElement("div",{className:a.cssHeaderCollapseButton,onClick:this.handleOnExpanded},g),A))},u.prototype.renderTitleCollapsed=function(a){return a.locTitle?d.createElement("div",{className:a.cssHeaderTitleCollapsed},a.locTitle.renderedHtml):null},u.prototype.renderExpandIcon=function(){return d.createElement(he,{iconName:"icon-restore_16x16",size:16})},u.prototype.renderCollapseIcon=function(){return d.createElement(he,{iconName:"icon-minimize_16x16",size:16})},u.prototype.renderCloseButton=function(a){var c=this;return d.createElement("div",{className:a.cssHeaderCloseButton,onClick:function(){a.hide(),typeof c.props.onClose=="function"&&c.props.onClose()}},d.createElement(he,{iconName:"icon-close_16x16",size:16}))},u.prototype.renderAllowFullScreenButon=function(a){var c;return a.isFullScreen?c=d.createElement(he,{iconName:"icon-back-to-panel_16x16",size:16}):c=d.createElement(he,{iconName:"icon-full-screen_16x16",size:16}),d.createElement("div",{className:a.cssHeaderFullScreenButton,onClick:function(){a.toggleFullScreen()}},c)},u.prototype.renderBody=function(){return d.createElement("div",{className:this.popup.cssBody},this.doRender())},u.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()},u}(Pt),ts=function(p){Ui(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u}(Tn),Wi=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),I=function(p){Wi(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.prototype.renderElement=function(){var a=this.question.cssClasses;return d.createElement("fieldset",{className:this.question.getSelectBaseRootCss()},d.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.question.hasColumns?this.getColumns(a):this.getItems(a))},u.prototype.getColumns=function(a){var c=this;return this.question.columns.map(function(f,g){var A=f.map(function(_,Q){return c.renderItem("item"+Q,_,a)});return d.createElement("div",{key:"column"+g+c.question.getItemsColumnKey(f),className:c.question.getColumnClass(),role:"presentation"},A)})},u.prototype.getItems=function(a){for(var c=[],f=0;f<this.question.visibleChoices.length;f++){var g=this.question.visibleChoices[f],A="item"+f;c.push(this.renderItem(A,g,a))}return c},Object.defineProperty(u.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),u.prototype.renderItem=function(a,c,f){var g=d.createElement(Je,{key:a,question:this.question,item:c,cssClasses:f}),A=this.question.survey,_=null;return A&&(_=k.wrapItemValue(A,g,this.question,c)),_??g},u}(ve),Je=function(p){Wi(u,p);function u(a){var c=p.call(this,a)||this;return c.handleOnChange=c.handleOnChange.bind(c),c}return u.prototype.getStateElement=function(){return this.item},u.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.reactOnStrChanged()},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},u.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.reactOnStrChanged()},u.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(u.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),u.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})}},u.prototype.renderElement=function(){var a=this,c=this.item,f=this.question,g=this.cssClasses,A=f.isItemSelected(c),_=f.getItemClass(c),Q=null;f.showLabel&&(Q=d.createElement("span",{className:f.cssClasses.itemText},c.text?Z.renderLocString(c.locText):c.value));var de={objectFit:this.question.imageFit},ae=null;if(c.locImageLink.renderedHtml&&this.question.contentMode==="image"&&(ae=d.createElement("img",{className:g.image,src:c.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:c.locText.renderedHtml,style:de,onLoad:function(We){a.question.onContentLoaded(c,We.nativeEvent)},onError:function(We){c.onErrorHandler(c,We.nativeEvent)}})),c.locImageLink.renderedHtml&&this.question.contentMode==="video"&&(ae=d.createElement("video",{controls:!0,className:g.image,src:c.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:de,onLoadedMetadata:function(We){a.question.onContentLoaded(c,We.nativeEvent)},onError:function(We){c.onErrorHandler(c,We.nativeEvent)}})),!c.locImageLink.renderedHtml||c.contentNotLoaded){var Pe={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};ae=d.createElement("div",{className:g.itemNoImage,style:Pe},g.itemNoImageSvgIcon?d.createElement(he,{className:g.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}var lt=d.createElement("div",{className:_},d.createElement("label",{className:g.label},d.createElement("input",{className:g.itemControl,id:this.question.getItemId(c),type:this.question.inputType,name:this.question.questionName,checked:A,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}),d.createElement("div",{className:this.question.cssClasses.itemDecorator},d.createElement("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?d.createElement("span",{className:this.question.cssClasses.checkedItemDecorator,"aria-hidden":"true"},this.question.cssClasses.checkedItemSvgIconId?d.createElement(he,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,ae),Q)));return lt},u}(fe);Ce.Instance.registerQuestion("imagepicker",function(p){return d.createElement(I,p)});var Ye=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Fr=function(p){Ye(u,p);function u(a){return p.call(this,a)||this}return u.prototype.componentDidMount=function(){var a=this;p.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){a.forceUpdate()}},u.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.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=d.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(_){a.question.onLoadHandler()},onError:function(_){a.question.onErrorHandler()}})),this.question.renderedMode==="video"&&(g=d.createElement("video",{controls:!0,className:c,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:f,onLoadedMetadata:function(_){a.question.onLoadHandler()},onError:function(_){a.question.onErrorHandler()}})),this.question.renderedMode==="youtube"&&(g=d.createElement("iframe",{className:c,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:f}));var A=null;return(!this.question.imageLink||this.question.contentNotLoaded)&&(A=d.createElement("div",{className:this.question.cssClasses.noImage},d.createElement(he,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),d.createElement("div",{className:this.question.cssClasses.root},g,A)},u}(ve);Ce.Instance.registerQuestion("image",function(p){return d.createElement(Fr,p)});var $i=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),kr=function(p){$i(u,p);function u(a){var c=p.call(this,a)||this;return c.state={value:c.question.value},c}return Object.defineProperty(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.prototype.renderElement=function(){var a=this,c=this.question.cssClasses,f=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,g=this.renderCleanButton();return d.createElement("div",{className:c.root,ref:function(A){return a.setControl(A)},style:{width:this.question.renderedCanvasWidth}},d.createElement("div",{className:c.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.renderLocString(this.question.locRenderedPlaceholder)),d.createElement("div",null,this.renderBackgroundImage(),d.createElement("canvas",{tabIndex:-1,className:this.question.cssClasses.canvas,onBlur:function(A){a.question.onBlur(A)}})),g,f)},u.prototype.renderBackgroundImage=function(){return this.question.backgroundImage?d.createElement("img",{className:this.question.cssClasses.backgroundImage,src:this.question.backgroundImage,style:{width:this.question.renderedCanvasWidth}}):null},u.prototype.renderLoadingIndicator=function(){return d.createElement("div",{className:this.question.cssClasses.loadingIndicator},d.createElement(me,null))},u.prototype.renderCleanButton=function(){var a=this;if(!this.question.canShowClearButton)return null;var c=this.question.cssClasses;return d.createElement("div",{className:c.controls},d.createElement("button",{type:"button",className:c.clearButton,title:this.question.clearButtonCaption,onClick:function(){return a.question.clearValue(!0)}},this.question.cssClasses.clearButtonIconId?d.createElement(he,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):d.createElement("span",null,"✖")))},u}(ve);Ce.Instance.registerQuestion("signaturepad",function(p){return d.createElement(kr,p)});var Qr=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ns=function(p){Qr(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.question},u.prototype.renderElement=function(){var a=this.renderItems();return P.a.createElement("div",{className:this.question.cssClasses.root},a)},u.prototype.renderItems=function(){var a=this;return this.question.visibleChoices.map(function(c,f){return P.a.createElement(rs,{key:a.question.inputId+"_"+f,item:c,question:a.question,index:f})})},u}(ve),rs=function(p){Qr(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.item},u.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 P.a.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},c,P.a.createElement("div",{className:this.model.css.decorator},a,f))},u.prototype.renderIcon=function(){return this.model.iconName?P.a.createElement(he,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},u.prototype.renderInput=function(){var a=this;return P.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"})},u.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var a=this.renderLocString(this.model.caption);return P.a.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},a)},u}(Z),Gi=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Rn=function(p){Gi(u,p);function u(a){return p.call(this,a)||this}return u.prototype.getStateElements=function(){var a=p.prototype.getStateElements.call(this);return this.question.contentQuestion&&a.push(this.question.contentQuestion),a},u.prototype.renderElement=function(){return zt.renderQuestionBody(this.creator,this.question.contentQuestion)},u}(bt),Ji=function(p){Gi(u,p);function u(a){return p.call(this,a)||this}return u.prototype.canRender=function(){return!!this.question.contentPanel},u.prototype.renderElement=function(){return d.createElement(He,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},u}(bt);Ce.Instance.registerQuestion("custom",function(p){return d.createElement(Rn,p)}),Ce.Instance.registerQuestion("composite",function(p){return d.createElement(Ji,p)});var is=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Zi=function(p){is(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.item},u.prototype.render=function(){if(!this.item)return null;var a=this.renderLocString(this.item.locTitle,void 0,"locString"),c=this.item.iconName?P.a.createElement(he,{className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:this.item.iconSize,"aria-label":this.item.title}):null,f=this.item.markerIconName?P.a.createElement(he,{className:this.item.cssClasses.itemMarkerIcon,iconName:this.item.markerIconName,size:"auto"}):null;return P.a.createElement(P.a.Fragment,null,c,a,f)},u}(Z);D.Instance.registerElement("sv-list-item-content",function(p){return P.a.createElement(Zi,p)});var Ki=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Xe=function(p){Ki(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.item},u.prototype.render=function(){var a;if(!this.item)return null;var c=D.Instance.createElement("sv-list-item-content",{item:this.item,key:"content"+this.item.id,model:this.model});return P.a.createElement(P.a.Fragment,null,c,P.a.createElement(tt,{model:(a=this.item)===null||a===void 0?void 0:a.popupModel}))},u}(Z);D.Instance.registerElement("sv-list-item-group",function(p){return P.a.createElement(Xe,p)});var jt=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),rt=function(p){jt(u,p);function u(a){return p.call(this,a)||this}return Object.defineProperty(u.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),u.prototype.render=function(){var a=[];return a.push(P.a.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},P.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}}))),P.a.createElement(P.a.Fragment,null,a)},u}(P.a.Component);D.Instance.registerElement("sv-logo-image",function(p){return P.a.createElement(rt,p)});var Nt=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Hr=function(p){Nt(u,p);function u(a){var c=p.call(this,a)||this;return c.handleOnRowRemoveClick=c.handleOnRowRemoveClick.bind(c),c}return Object.defineProperty(u.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),u.prototype.handleOnRowRemoveClick=function(a){this.question.removeRowUI(this.row)},u.prototype.renderElement=function(){var a=this.renderLocString(this.question.locRemoveRowText);return P.a.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},a,P.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},u}(fe);D.Instance.registerElement("sv-matrix-remove-button",function(p){return P.a.createElement(Hr,p)});var Yi=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),zr=function(p){Yi(u,p);function u(a){var c=p.call(this,a)||this;return c.handleOnShowHideClick=c.handleOnShowHideClick.bind(c),c}return u.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),u.prototype.handleOnShowHideClick=function(a){this.row.showHideDetailPanelClick()},u.prototype.renderElement=function(){var a=this.row.isDetailPanelShowing,c=a,f=a?this.row.detailPanelId:void 0;return P.a.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":c,"aria-controls":f},P.a.createElement(he,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},u}(fe);D.Instance.registerElement("sv-matrix-detail-button",function(p){return P.a.createElement(zr,p)});var Xi=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ur=function(p){Xi(u,p);function u(){var a=p!==null&&p.apply(this,arguments)||this;return a.handleClick=function(c){a.question.removePanelUI(a.data.panel)},a}return u.prototype.renderElement=function(){var a=this.renderLocString(this.question.locPanelRemoveText),c=this.question.getPanelRemoveButtonId(this.data.panel);return P.a.createElement("button",{id:c,className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},P.a.createElement("span",{className:this.question.cssClasses.buttonRemoveText},a),P.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},u}(Sn);D.Instance.registerElement("sv-paneldynamic-remove-btn",function(p){return P.a.createElement(Ur,p)});var Wr=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),$r=function(p){Wr(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),u.prototype.canRender=function(){return this.item.isVisible},u.prototype.renderElement=function(){return P.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})},u}(fe);D.Instance.registerElement("sv-nav-btn",function(p){return P.a.createElement($r,p)});var eo=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),In=function(p){eo(u,p);function u(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=P.a.createRef(),c}return Object.defineProperty(u.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),u.prototype.componentDidMount=function(){this.reactOnStrChanged()},u.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},u.prototype.componentDidUpdate=function(a,c){a.locStr&&a.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},u.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},u.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var a=this.renderString();return this.isRendering=!1,a},u.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 P.a.createElement("span",{ref:this.rootRef,className:a,style:this.style,dangerouslySetInnerHTML:c})}return P.a.createElement("span",{ref:this.rootRef,className:a,style:this.style},this.locStr.renderedHtml)},u}(P.a.Component);D.Instance.registerElement(C.LocalizableString.defaultRenderer,function(p){return P.a.createElement(In,p)});var to=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Dn=function(p){to(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.prototype.render=function(){return P.a.createElement("div",null,P.a.createElement("span",{className:this.props.cssClasses.error.icon||void 0,"aria-hidden":"true"}),P.a.createElement("span",{className:this.props.cssClasses.error.item||void 0},P.a.createElement(In,{locStr:this.props.error.locText})))},u}(P.a.Component);D.Instance.registerElement("sv-question-error",function(p){return P.a.createElement(Dn,p)});var os=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),qt=function(p){os(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.prototype.render=function(){var a,c;return P.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}})},u}(P.a.Component);D.Instance.registerElement("sv-skeleton",function(p){return P.a.createElement(qt,p)});var Gr=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),_e=function(p){Gr(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),u.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 D.Instance.createElement(a,{data:c})},u.prototype.render=function(){return P.a.createElement("div",{className:"sv-header--mobile"},this.model.survey.hasLogo?P.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.survey.hasTitle?P.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},P.a.createElement(Ve,{element:this.model.survey})):null,this.model.survey.renderedHasDescription?P.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},P.a.createElement("div",{className:this.model.survey.css.description},Z.renderLocString(this.model.survey.locDescription))):null)},u}(P.a.Component),ur=function(p){Gr(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),u.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 D.Instance.createElement(a,{data:c})},u.prototype.render=function(){return P.a.createElement("div",{className:this.model.css,style:this.model.style},P.a.createElement("div",{className:"sv-header__cell-content",style:this.model.contentStyle},this.model.showLogo?P.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.showTitle?P.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},P.a.createElement(Ve,{element:this.model.survey})):null,this.model.showDescription?P.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},P.a.createElement("div",{className:this.model.survey.css.description},Z.renderLocString(this.model.survey.locDescription))):null))},u}(P.a.Component),no=function(p){Gr(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),u.prototype.getStateElement=function(){return this.model},u.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=P.a.createElement(_e,{model:this.model}):a=P.a.createElement("div",{className:this.model.contentClasses,style:{maxWidth:this.model.maxWidth}},this.model.cells.map(function(c,f){return P.a.createElement(ur,{key:f,model:c})})),P.a.createElement("div",{className:this.model.headerClasses,style:{height:this.model.renderedHeight}},this.model.backgroundImage?P.a.createElement("div",{style:this.model.backgroundImageStyle,className:this.model.backgroundImageClasses}):null,a)},u}(Z);D.Instance.registerElement("sv-header",function(p){return P.a.createElement(no,p)});var Jr=function(){var p=function(u,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(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(u,a);function c(){this.constructor=u}u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),re=function(p){Jr(u,p);function u(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(u.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),u.prototype.componentDidMount=function(){if(this.locStr){var a=this;this.locStr.onChanged=function(){a.setState({changed:a.state.changed+1})}}},u.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},u.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var a={__html:this.locStr.renderedHtml};return P.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:a,onBlur:this.onInput,onClick:this.onClick})}return P.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},u}(P.a.Component);D.Instance.registerElement(C.LocalizableString.editableRenderer,function(p){return P.a.createElement(re,p)}),Object(C.checkLibraryVersion)("1.12.20","survey-react-ui")},react:function(B,R){B.exports=Qe},"react-dom":function(B,R){B.exports=O},"survey-core":function(B,R){B.exports=E}})})}(Io)),Io.exports}export{gh as a,mh as b,Ph as c,bh as d,Ch as g,Ul as r};
diff --git a/compendium_v2/static/survey.css b/compendium_v2/static/survey.css
new file mode 100644
index 0000000000000000000000000000000000000000..f7c3cae39bd7c4181feadf49048451118b0bcce5
--- /dev/null
+++ b/compendium_v2/static/survey.css
@@ -0,0 +1,5 @@
+@charset "UTF-8";/*!
+* 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)
+*/@font-face{font-family:Raleway;font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Raleway;font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ITw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Raleway;font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqhPAMif.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Raleway;font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqZPAA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Raleway;font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ISQ.woff) format("woff")}@font-face{font-family:Raleway;font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqZPBg.woff) format("woff")}.sv-dragdrop-movedown{transform:translate(0);animation:svdragdropmovedown .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmovedown{0%{transform:translateY(-50px)}to{transform:translate(0)}}.sv-dragdrop-moveup{transform:translate(0);animation:svdragdropmoveup .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmoveup{0%{transform:translateY(50px)}to{transform:translate(0)}}.sv_progress-buttons__container-center{text-align:center}.sv_progress-buttons__container{display:inline-block;font-size:0;width:100%;max-width:1100px;white-space:nowrap;overflow:hidden}.sv_progress-buttons__image-button-left{display:inline-block;vertical-align:top;margin-top:22px;font-size:calc(.875*(var(--sjs-font-size, 16px)));width:16px;height:16px;cursor:pointer;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iMTEsMTIgOSwxNCAzLDggOSwyIDExLDQgNyw4ICIvPg0KPC9zdmc+DQo=)}.sv_progress-buttons__image-button-right{display:inline-block;vertical-align:top;margin-top:22px;font-size:calc(.875*(var(--sjs-font-size, 16px)));width:16px;height:16px;cursor:pointer;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iNSw0IDcsMiAxMyw4IDcsMTQgNSwxMiA5LDggIi8+DQo8L3N2Zz4NCg==)}.sv_progress-buttons__image-button--hidden{visibility:hidden}.sv_progress-buttons__list-container{max-width:calc(100% - 36px);display:inline-block;overflow:hidden}.sv_progress-buttons__list{display:inline-block;width:max-content;padding-left:28px;padding-right:28px;margin-top:14px;margin-bottom:14px}.sv_progress-buttons__list li{width:138px;font-size:calc(.875*(var(--sjs-font-size, 16px)));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));position:relative;text-align:center;vertical-align:top;display:inline-block}.sv_progress-buttons__list li:before{width:24px;height:24px;content:"";line-height:30px;display:block;margin:0 auto 10px;border:3px solid;border-radius:50%;box-sizing:content-box;cursor:pointer}.sv_progress-buttons__list li:after{width:73%;height:3px;content:"";position:absolute;top:15px;left:-36.5%}.sv_progress-buttons__list li:first-child:after{content:none}.sv_progress-buttons__list .sv_progress-buttons__page-title{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.sv_progress-buttons__list .sv_progress-buttons__page-description{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv_progress-buttons__list li.sv_progress-buttons__list-element--nonclickable:before{cursor:not-allowed}.sv_progress-toc{padding:var(--sjs-base-unit, var(--base-unit, 8px));max-width:336px;height:100%;background:#fff;box-sizing:border-box;min-width:calc(32*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc .sv-list__item.sv-list__item--selected .sv-list__item-body{background:#19b3941a;color:#161616;font-weight:400}.sv_progress-toc .sv-list__item span{white-space:break-spaces}.sv_progress-toc .sv-list__item-body{padding-inline-start:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-end:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:var(--sjs-corner-radius, 4px);padding-top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv_progress-toc--left{border-right:1px solid #d6d6d6}.sv_progress-toc--right{border-left:1px solid #d6d6d6}.sv_progress-toc--mobile{position:fixed;top:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));right:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));width:auto;min-width:auto;height:auto;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));z-index:15;border-radius:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc--mobile>div{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc--mobile:hover{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sd-title+.sv-components-row>.sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile),.sd-title~.sv-components-row>.sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile){margin-top:2px}.sv_progress-toc.sv_progress-toc--sticky{position:sticky;height:auto;overflow-y:auto;top:0}.sv-container-modern{color:var(--text-color, #404040);font-size:var(--font-size, var(--sjs-font-size, 16px));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-container-modern__title{color:var(--main-color, #1ab394);padding-left:.55em;padding-top:5em;padding-bottom:.9375em}@media only screen and (min-width: 1000px){.sv-container-modern__title{margin-right:5%;margin-left:5%}}@media only screen and (max-width: 1000px){.sv-container-modern__title{margin-right:10px;margin-left:10px}}.sv-container-modern__title h3{margin:0;font-size:1.875em}.sv-container-modern__title h5{margin:0}.sv-container-modern__close{clear:right}.sv-container-modern fieldset,.sv-container-modern legend{border:none;padding:0;margin:0}.sv-body{width:100%;padding-bottom:calc(10*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-top:2em}@media only screen and (min-width: 1000px){.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-right:5%;margin-left:5%}}@media only screen and (max-width: 1000px){.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-right:10px;margin-left:10px}}.sv-body__timer{padding:0 var(--sjs-base-unit, var(--base-unit, 8px));box-sizing:border-box}.sv-body__progress{margin-bottom:4.5em}.sv-body__progress:not(:first-child){margin-top:2.5em}.sv-root-modern{width:100%;--sv-mobile-width: 600px}.sv-page__title{margin:0 0 1.333em;font-size:1.875em;padding-left:.293em}.sv-page__description{min-height:2.8em;font-size:1em;padding-left:.55em}.sv-page__title+.sv-page__description{margin-top:-2.8em}.sv-panel{box-sizing:border-box;width:100%}.sv-panel__title{font-size:1.25em;margin:0;padding:0 .44em .1em;position:relative}.sv-panel__footer{margin:0;padding:1em .44em 1em 0}.sv-panel__description{padding-left:.55em}.sv-panel__title--expandable{cursor:pointer;display:flex;padding-right:24px;align-items:center}.sv-panel__title--expandable:after{content:"";display:block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;background-size:10px 12px;width:24px;height:24px;position:absolute;right:0}.sv-panel__title--expandable.sv-panel__title--expanded:after{transform:rotate(180deg)}.sv-panel__icon{outline:none}.sv-panel__icon:before{content:"";display:inline-block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:.5em;width:.6em;margin-left:1.5em;vertical-align:middle}.sv-panel__icon--expanded:before{transform:rotate(180deg)}.sv-panel .sv-question__title{font-size:1em;padding-left:.55em}.sv-panel__content:not(:first-child){margin-top:.75em}.sv-panel .sv-row:not(:last-child){padding-bottom:1.875em}.sv-panel__title--error{background-color:var(--error-background-color, rgba(213, 41, 1, .2))}.sv-paneldynamic__progress-container{position:relative;margin-left:.75em;margin-right:250px;margin-top:20px}.sv-paneldynamic__add-btn{background-color:var(--add-button-color, #1948b3);float:right;margin-top:-18px}[dir=rtl] .sv-paneldynamic__add-btn,[style*="direction:rtl"] .sv-paneldynamic__add-btn,[style*="direction: rtl"] .sv-paneldynamic__add-btn{float:left}.sv-paneldynamic__add-btn--list-mode{float:none;margin-top:1em}.sv-paneldynamic__remove-btn{background-color:var(--remove-button-color, #ff1800);margin-top:1.25em}.sv-paneldynamic__remove-btn--right{margin-top:0;margin-left:1.25em}.sv-paneldynamic__prev-btn,.sv-paneldynamic__next-btn{box-sizing:border-box;display:inline-block;fill:var(--text-color, #404040);cursor:pointer;width:.7em;top:-.28em;position:absolute}.sv-paneldynamic__prev-btn svg,.sv-paneldynamic__next-btn svg{display:block;height:.7em;width:.7em}.sv-paneldynamic__prev-btn{left:-1.3em;transform:rotate(90deg)}.sv-paneldynamic__next-btn{right:-1.3em;transform:rotate(270deg)}.sv-paneldynamic__prev-btn--disabled,.sv-paneldynamic__next-btn--disabled{fill:var(--disable-color, #dbdbdb);cursor:auto}.sv-paneldynamic__progress-text{color:var(--progress-text-color, #9d9d9d);font-weight:700;font-size:.87em;margin-top:.69em;margin-left:1em}.sv-paneldynamic__separator{border:none;margin:0}.sv-paneldynamic__progress--top{margin-bottom:1em}.sv-paneldynamic__progress--bottom{margin-top:1em}.sv-paneldynamic__panel-wrapper~.sv-paneldynamic__panel-wrapper{padding-top:2.5em}.sv-paneldynamic__panel-wrapper--in-row{display:flex;flex-direction:row;align-items:center}@supports (display: flex){.sv-row{display:flex;flex-wrap:wrap}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.sv-row>.sv-row__panel,.sv-row__question:not(:last-child){float:left}}@media only screen and (-ms-high-contrast: active)and (max-width: 600px),only screen and (-ms-high-contrast: none)and (max-width: 600px){.sv-row>.sv-row__panel,.sv-row__question:not(:last-child){padding-bottom:2.5em;float:none}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){[dir=rtl] .sv-row__question:not(:last-child),[style*="direction:rtl"] .sv-row__question:not(:last-child),[style*="direction: rtl"] .sv-row__question:not(:last-child){float:right}}@media only screen and (-ms-high-contrast: active)and (max-width: 6000px),only screen and (-ms-high-contrast: none)and (max-width: 6000px){.sv-row__question--small:only-child{max-width:3000px}}@media only screen and (-ms-high-contrast: active)and (max-width: 3000px),only screen and (-ms-high-contrast: none)and (max-width: 3000px){.sv-row__question--small:only-child{max-width:1200px}}@media only screen and (-ms-high-contrast: active)and (max-width: 2000px),only screen and (-ms-high-contrast: none)and (max-width: 2000px){.sv-row__question--small:only-child{max-width:700px}}@media only screen and (-ms-high-contrast: active)and (max-width: 1000px),only screen and (-ms-high-contrast: none)and (max-width: 1000px){.sv-row__question--small:only-child{max-width:500px}}@media only screen and (-ms-high-contrast: active)and (max-width: 500px),only screen and (-ms-high-contrast: none)and (max-width: 500px){.sv-row__question--small:only-child{max-width:300px}}@media only screen and (-ms-high-contrast: active)and (max-width: 600px),only screen and (-ms-high-contrast: none)and (max-width: 600px){.sv-row>.sv-row__panel,.sv-row__question{width:100%!important;padding-right:0!important}}.sv-row>.sv-row__panel,.sv-row__question{vertical-align:top;white-space:normal}.sv-row__question:first-child:last-child{flex:none!important}.sv-row:not(:last-child){padding-bottom:2.5em}.sv-question{overflow:auto;box-sizing:border-box;font-family:inherit;padding-left:var(--sv-element-add-padding-left, 0px);padding-right:var(--sv-element-add-padding-right, 0px)}.sv-question__title{position:relative;box-sizing:border-box;margin:0;padding:.25em .44em;cursor:default;font-size:1.25em}.sv-question__required-text{line-height:.8em;font-size:1.4em}.sv-question__description{margin:0;padding-left:.55em;font-size:1em}.sv-question__input{width:100%;height:1.81em}.sv-question__content{margin-left:.55em}.sv-question__erbox{color:var(--error-color, #d52901);font-size:.74em;font-weight:700}.sv-question__erbox--location--top{margin-bottom:.4375em}.sv-question__erbox--location--bottom{margin-top:.4375em}.sv-question__footer{padding:.87em 0}.sv-question__title--answer{background-color:var(--answer-background-color, rgba(26, 179, 148, .2))}.sv-question__title--error{background-color:var(--error-background-color, rgba(213, 41, 1, .2))}.sv-question__header--location--top{margin-bottom:.65em}.sv-question__header--location--left{float:left;width:27%;margin-right:.875em}[dir=rtl] .sv-question__header--location--left,[style*="direction:rtl"] .sv-question__header--location--left,[style*="direction: rtl"] .sv-question__header--location--left{float:right}.sv-question__header--location--bottom{margin-top:.8em}.sv-question__content--left{overflow:hidden}.sv-question__other,.sv-question__form-group{margin-top:.5em}.sv-question--disabled .sv-question__header{color:var(--disabled-text-color, rgba(64, 64, 64, .5))}.sv-image{display:inline-block}.sv-question__title--expandable{cursor:pointer;display:flex;padding-right:24px;align-items:center}.sv-question__title--expandable:after{content:"";display:block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;background-size:10px 12px;width:24px;height:24px;position:absolute;right:0}.sv-question__title--expandable.sv-question__title--expanded:after{transform:rotate(180deg)}.sv-question__icon{outline:none}.sv-question__icon:before{content:"";display:inline-block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:.5em;width:.6em;margin-left:1.5em;vertical-align:middle}.sv-question__icon--expanded:before{transform:rotate(180deg)}.sv-progress{height:.19em;background-color:var(--header-background-color, #e7e7e7);position:relative}.sv-progress__bar{position:relative;height:100%;background-color:var(--main-color, #1ab394)}.sv-progress__text{position:absolute;margin-top:.69em;color:var(--progress-text-color, #9d9d9d);font-size:.87em;font-weight:700;padding-left:.6321em}@media only screen and (min-width: 1000px){.sv-progress__text{margin-left:5%}}@media only screen and (max-width: 1000px){.sv-progress__text{margin-left:10px}}.sv_progress-buttons__list li:before{border-color:var(--progress-buttons-color, #8dd9ca);background-color:var(--progress-buttons-color, #8dd9ca)}.sv_progress-buttons__list li:after{background-color:var(--text-border-color, #d4d4d4)}.sv_progress-buttons__list .sv_progress-buttons__page-title,.sv_progress-buttons__list .sv_progress-buttons__page-description{color:var(--text-color, #404040)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before{border-color:var(--main-color, #1ab394);background-color:var(--main-color, #1ab394)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed+li:after{background-color:var(--progress-buttons-color, #8dd9ca)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before{border-color:var(--main-color, #1ab394);background-color:#fff}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before{border-color:var(--main-color, #1ab394);background-color:#fff}.sv-title{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-weight:700;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal}.sv-description{color:var(--disabled-text-color, rgba(64, 64, 64, .5))}.sv-question .sv-selectbase{margin-bottom:4px}.sv-selectbase__item{margin-bottom:.425em;vertical-align:top}.sv-selectbase__item--inline{display:inline-block;padding-right:5%}.sv-selectbase__column{min-width:140px;vertical-align:top}.sv-selectbase__label{position:relative;display:block;box-sizing:border-box;cursor:inherit;margin-left:41px;min-height:30px}[dir=rtl] .sv-selectbase__label,[style*="direction:rtl"] .sv-selectbase__label,[style*="direction: rtl"] .sv-selectbase__label{margin-right:41px;margin-left:0}.sv-selectbase__decorator.sv-item__decorator{position:absolute;left:-41px}[dir=rtl] .sv-selectbase__decorator.sv-item__decorator,[style*="direction:rtl"] .sv-selectbase__decorator.sv-item__decorator,[style*="direction: rtl"] .sv-selectbase__decorator.sv-item__decorator{left:initial;right:-41px}.sv-selectbase__clear-btn{margin-top:.9em;background-color:var(--clean-button-color, #1948b3)}.sv-selectbase .sv-selectbase__item.sv-q-col-1{padding-right:0}.sv-question .sv-q-column-1{width:100%;max-width:100%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-2{max-width:50%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-3{max-width:33.33333%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-4{max-width:25%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-5{max-width:20%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-multipletext{width:100%;table-layout:fixed}.sv-multipletext__item-label{display:flex;align-items:center}.sv-multipletext__item{flex:1}.sv-multipletext__item-title{margin-right:1em;width:33%}.sv-multipletext__cell:not(:first-child){padding-left:.5em}.sv-multipletext__cell:not(:last-child){padding-right:.5em}.sv-matrix{overflow-x:auto}.sv-matrix .sv-table__cell--header{text-align:center}.sv-matrix__label{display:inline-block;margin:0}.sv-matrix__cell{min-width:10em;text-align:center}.sv-matrix__cell:first-child{text-align:left}.sv-matrix__text{cursor:pointer}.sv-matrix__text--checked{color:var(--body-background-color, white);background-color:var(--main-color, #1ab394)}.sv-matrix__text--disabled{cursor:default}.sv-matrix__text--disabled.sv-matrix__text--checked{background-color:var(--disable-color, #dbdbdb)}.sv-matrix__row--error{background-color:var(--error-background-color, rgba(213, 41, 1, .2))}.sv-matrixdynamic__add-btn{background-color:var(--add-button-color, #1948b3)}.sv-matrixdynamic__remove-btn{background-color:var(--remove-button-color, #ff1800)}.sv-detail-panel__icon{display:block;position:absolute;left:50%;top:50%;height:13px;width:24px;transform:translate(-50%,-50%) rotate(270deg)}.sv-detail-panel__icon--expanded{transform:translate(-50%,-50%)}.sv-detail-panel__icon:before{content:"";display:block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 20 20' style='enable-background:new 0 0 20 20;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='19,6 17,4 10,11 3,4 1,6 10,15 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:18px;width:24px}.sv-root-modern ::-webkit-scrollbar{height:6px;width:6px;background-color:var(--main-hover-color, #9f9f9f)}.sv-root-modern ::-webkit-scrollbar-thumb{background:var(--main-color, #1ab394)}.sv-table{width:100%;background-color:rgba(var(--main-hover-color, #9f9f9f),.1);border-collapse:separate;border-spacing:0}.sv-table tbody tr:last-child .sv-table__cell{padding-bottom:2.5em}.sv-table tr:first-child .sv-table__cell{padding-top:1.875em}.sv-table td:first-child,.sv-table th:first-child{padding-left:1.875em}.sv-table td:last-child,.sv-table th:last-child{padding-right:1.875em}.sv-table__row--detail{background-color:var(--header-background-color, #e7e7e7)}.sv-table__row--detail td{border-top:1px solid var(--text-border-color, #d4d4d4);border-bottom:1px solid var(--text-border-color, #d4d4d4);padding:1em 0}.sv-table__cell{padding:.9375em 0;box-sizing:content-box;vertical-align:top}.sv-table__cell:not(:last-child){padding-right:1em}.sv-table__cell:not(:first-child){padding-left:1em}.sv-table__cell--header{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-weight:700;text-align:left}.sv-table__cell--rowText{vertical-align:middle}.sv-table__cell--detail{text-align:center;vertical-align:middle;width:32px}.sv-table__cell--detail-rowtext{vertical-align:middle}.sv-table__cell--detail-panel{padding-left:1em}.sv-table__cell--detail-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;border:3px solid var(--border-color, rgba(64, 64, 64, .5));border-radius:50px;text-align:center;vertical-align:middle;width:32px;height:32px;padding:0;margin:0;outline:none;cursor:pointer;background:#0000}.sv-table__empty--rows--section{text-align:center;vertical-align:middle}.sv-table__empty--rows--text{padding:20px}.sv-table__cell--actions sv-action-bar,.sv-table__cell--actions .sv-action-bar{margin-left:0;padding-left:0}.sv-footer.sv-action-bar{display:block;min-height:var(--base-line-height, 2em);padding:2.5em 0 .87em;margin-left:auto}.sv-footer.sv-action-bar .sv-action__content{display:block}.sv-footer.sv-action-bar .sv-action:not(:last-child) .sv-action__content{padding-right:0}.sv-btn--navigation{margin:0 1em;float:right;background-color:var(--main-color, #1ab394)}.sv-footer__complete-btn,.sv-footer__next-btn,.sv-footer__preview-btn{float:right}.sv-footer__prev-btn,.sv-footer__edit-btn,[dir=rtl] .sv-footer__complete-btn,[style*="direction:rtl"] .sv-footer__complete-btn,[style*="direction: rtl"] .sv-footer__complete-btn,[dir=rtl] .sv-footer__preview-btn,[style*="direction:rtl"] .sv-footer__preview-btn,[style*="direction: rtl"] .sv-footer__preview-btn,[dir=rtl] .sv-footer__next-btn,[style*="direction:rtl"] .sv-footer__next-btn,[style*="direction: rtl"] .sv-footer__next-btn{float:left}[dir=rtl] .sv-footer__prev-btn,[style*="direction:rtl"] .sv-footer__prev-btn,[style*="direction: rtl"] .sv-footer__prev-btn,[dir=rtl] .sv-footer__edit-btn,[style*="direction:rtl"] .sv-footer__edit-btn,[style*="direction: rtl"] .sv-footer__edit-btn{float:right}.sv-btn.sv-action-bar-item,.sv-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:1.214em;color:var(--body-background-color, white);cursor:pointer;font-family:inherit;font-size:.875em;font-weight:700;outline:none;padding:.5em 2.786em .6em;text-align:start}.sv-btn--navigation{background-color:var(--main-color, #1ab394)}.sv-item{position:relative;cursor:pointer}.sv-item--disabled{cursor:default}.sv-item__decorator{position:relative;display:inline-block;box-sizing:border-box;width:30px;height:30px;border:solid 1px rgba(0,0,0,0);vertical-align:middle}.sv-item__svg{position:absolute;top:50%;left:50%;display:inline-block;box-sizing:border-box;width:24px;height:24px;margin-right:-50%;transform:translate(-50%,-50%)}.sv-item__control:focus+.sv-item__decorator{border-color:var(--main-color, #1ab394);outline:none}.sv-item__control-label{position:relative;top:4px}.sv-checkbox__decorator{border-radius:2px}.sv-checkbox__svg{border:3px solid var(--border-color, rgba(64, 64, 64, .5));border-radius:2px;fill:#0000}.sv-checkbox--allowhover:hover .sv-checkbox__svg{border:none;background-color:var(--main-hover-color, #9f9f9f);fill:#fff}.sv-checkbox--checked .sv-checkbox__svg{border:none;background-color:var(--main-color, #1ab394);fill:#fff}.sv-checkbox--checked.sv-checkbox--disabled .sv-checkbox__svg{border:none;background-color:var(--disable-color, #dbdbdb);fill:#fff}.sv-checkbox--disabled .sv-checkbox__svg{border:3px solid var(--disable-color, #dbdbdb)}.sv-radio__decorator{border-radius:100%}.sv-radio__svg{border:3px solid var(--border-color, rgba(64, 64, 64, .5));border-radius:100%;fill:#0000}.sv-radio--allowhover:hover .sv-radio__svg{fill:var(--border-color, rgba(64, 64, 64, .5))}.sv-radio--checked .sv-radio__svg{border-color:var(--radio-checked-color, #404040);fill:var(--radio-checked-color, #404040)}.sv-radio--disabled .sv-radio__svg{border-color:var(--disable-color, #dbdbdb)}.sv-radio--disabled.sv-radio--checked .sv-radio__svg{fill:var(--disable-color, #dbdbdb)}.sv-boolean{display:block;position:relative;line-height:1.5em}.sv-boolean__switch{float:left;box-sizing:border-box;width:4em;height:1.5em;margin-right:1.0625em;margin-left:1.3125em;padding:.125em .1875em;border-radius:.75em;margin-bottom:2px}.sv-boolean input:focus~.sv-boolean__switch{outline:1px solid var(--main-color, #1ab394);outline-offset:1px}[dir=rtl] .sv-boolean__switch,[style*="direction:rtl"] .sv-boolean__switch,[style*="direction: rtl"] .sv-boolean__switch{float:right}.sv-boolean__slider{display:block;width:1.25em;height:1.25em;transition-duration:.1s;transition-property:margin-left;transition-timing-function:linear;border:none;border-radius:100%}.sv-boolean--indeterminate .sv-boolean__slider{margin-left:calc(50% - .625em)}.sv-boolean--checked .sv-boolean__slider{margin-left:calc(100% - 1.25em)}.sv-boolean__label{cursor:pointer;float:left}[dir=rtl] .sv-boolean__label,[style*="direction:rtl"] .sv-boolean__label,[style*="direction: rtl"] .sv-boolean__label{float:right}[dir=rtl] .sv-boolean--indeterminate .sv-boolean__slider,[style*="direction:rtl"] .sv-boolean--indeterminate .sv-boolean__slider,[style*="direction: rtl"] .sv-boolean--indeterminate .sv-boolean__slider{margin-right:calc(50% - .625em)}[dir=rtl] .sv-boolean--checked .sv-boolean__slider,[style*="direction:rtl"] .sv-boolean--checked .sv-boolean__slider,[style*="direction: rtl"] .sv-boolean--checked .sv-boolean__slider{margin-right:calc(100% - 1.25em)}.sv-boolean__switch{background-color:var(--main-color, #1ab394)}.sv-boolean__slider{background-color:var(--slider-color, #fff)}.sv-boolean__label--disabled{color:var(--disabled-label-color, rgba(64, 64, 64, .5))}.sv-boolean--disabled .sv-boolean__switch{background-color:var(--main-hover-color, #9f9f9f)}.sv-boolean--disabled .sv-boolean__slider{background-color:var(--disabled-slider-color, #cfcfcf)}.sv-imagepicker__item{border:none;padding:.24em}.sv-imagepicker__item--inline{display:inline-block}.sv-imagepicker__item--inline:not(:last-child){margin-right:4%}.sv-imagepicker__image{border:.24em solid rgba(0,0,0,0);display:block;pointer-events:none}.sv-imagepicker__label{cursor:inherit}.sv-imagepicker__text{font-size:1.14em;padding-left:.24em}.sv-imagepicker__item--allowhover:hover .sv-imagepicker__image{background-color:var(--main-hover-color, #9f9f9f);border-color:var(--main-hover-color, #9f9f9f)}.sv-imagepicker__item:not(.sv-imagepicker__item--checked) .sv-imagepicker__control:focus~div .sv-imagepicker__image{background-color:var(--main-hover-color, #9f9f9f);border-color:var(--main-hover-color, #9f9f9f)}.sv-imagepicker__item--checked .sv-imagepicker__image{background-color:var(--main-color, #1ab394);border-color:var(--main-color, #1ab394)}.sv-imagepicker__item{cursor:pointer}.sv-imagepicker__item--disabled{cursor:default}.sv-imagepicker__item--disabled.sv-imagepicker__item--checked .sv-imagepicker__image{background-color:var(--disable-color, #dbdbdb);border-color:var(--disable-color, #dbdbdb)}.sv-dropdown{appearance:none;-webkit-appearance:none;-moz-appearance:none;display:block;background:#0000;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat,repeat;background-position:right .7em top 50%,0 0;background-size:.57em 100%;border:none;border-bottom:.06em solid var(--text-border-color, #d4d4d4);box-sizing:border-box;font-family:inherit;font-size:inherit;padding-block:.25em;padding-inline-end:1.5em;padding-inline-start:.87em;height:2.19em;width:100%;display:flex;justify-content:space-between}.sv-dropdown input[readonly]{pointer-events:none}.sv-dropdown:focus,.sv-dropdown:focus-within{background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%231AB394;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E ");border-color:var(--text-border-color, #d4d4d4);outline:none}.sv-dropdown::-ms-expand{display:none}.sv-dropdown--error{border-color:var(--error-color, #d52901);color:var(--error-color, #d52901)}.sv-dropdown--error::placeholder,.sv-dropdown--error::-ms-input-placeholder{color:var(--error-color, #d52901)}.sv-dropdown option{color:var(--text-color, #404040)}.sv-dropdown__value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:inherit;color:var(--text-color, #404040);position:relative}.sv-dropdown__value .sv-string-viewer{line-height:28px}.sv_dropdown_control__input-field-component{height:auto}.sv-dropdown__hint-prefix{opacity:.5}.sv-dropdown__hint-prefix span{word-break:unset;line-height:28px}.sv-dropdown__hint-suffix{display:flex;opacity:.5}.sv-dropdown__hint-suffix span{word-break:unset;line-height:28px}.sv-dropdown_clean-button{padding:3px 12px;margin:auto 0}.sv-dropdown_clean-button-svg{width:12px;height:12px}.sv-input.sv-dropdown:focus-within .sv-dropdown__filter-string-input{z-index:2000}.sv-dropdown__filter-string-input{border:none;outline:none;padding:0;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:inherit;background-color:#0000;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;left:0;top:0;height:100%}.sv-dropdown--empty:not(.sv-input--disabled) .sv-dropdown__filter-string-input::placeholder{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));color:var(--text-color, #404040)}.sv-dropdown__filter-string-input::placeholder{color:var(--disabled-text-color, rgba(64, 64, 64, .5));font-size:inherit;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;-webkit-appearance:none;-moz-appearance:none;appearance:none}[dir=rtl] .sv-dropdown,[style*="direction:rtl"] .sv-dropdown,[style*="direction: rtl"] .sv-dropdown{background-position:left .7em top 50%,0 0}.sv-input.sv-tagbox:not(.sv-tagbox--empty):not(.sv-input--disabled){height:auto;padding:.5em;padding-inline-end:2em}.sv-tagbox_clean-button{height:1.5em;padding:.5em;margin:auto 0}.sv-tagbox__value.sv-dropdown__value{position:relative;gap:.25em;display:flex;flex-wrap:wrap;flex-grow:1;padding-inline:unset;margin-inline:unset;margin-block:unset}.sv-tagbox__item{position:relative;display:flex;color:var(--text-color, #404040);height:1.5em;padding-block:.25em;padding-inline-end:.4em;padding-inline-start:.87em;border:solid .1875em #9f9f9f;border-radius:2px;min-width:2.3125em}.sv-tagbox__item:hover{background-color:var(--main-hover-color, #9f9f9f);color:var(--body-background-color, white)}.sv-tagbox__item:hover .sv-tagbox__item_clean-button-svg use{fill:var(--body-background-color, white)}.sv-tagbox__item-text{color:inherit;font-size:1em}.sv-tagbox__item_clean-button-svg{margin:.3125em;width:1em;height:1em}.sv-tagbox__item_clean-button-svg use{fill:var(--text-color, #404040)}.sv-tagbox__filter-string-input{width:auto;display:flex;flex-grow:1;position:initial}.sv-tagbox__placeholder{position:absolute;top:0;left:0;max-width:100%;width:auto;height:100%;text-align:start;cursor:text;pointer-events:none;color:var(--main-hover-color, #9f9f9f)}.sv-tagbox{border-bottom:.06em solid var(--text-border-color, #d4d4d4)}.sv-tagbox:focus{border-color:var(--text-border-color, #d4d4d4)}.sv-tagbox--error{border-color:var(--error-color, #d52901);color:var(--error-color, #d52901)}.sv-tagbox--error::placeholder{color:var(--error-color, #d52901)}.sv-tagbox--error::-ms-input-placeholder{color:var(--error-color, #d52901)}.sv-tagbox .sv-dropdown__filter-string-input{height:auto}.sv-text{box-sizing:border-box;width:100%;height:2.19em;padding:.25em 0 .25em .87em;border:none;border-radius:0;border-bottom:.07em solid var(--text-border-color, #d4d4d4);box-shadow:none;background-color:#0000;font-family:inherit;font-size:1em}.sv-text:focus{border-color:var(--main-color, #1ab394);outline:none;box-shadow:none}.sv-text:invalid{box-shadow:none}.sv-text:-webkit-autofill{-webkit-box-shadow:0 0 0 30px #fff inset}.sv-text::placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text:-ms-input-placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text::-ms-input-placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text[type=date]{padding-right:2px;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat,repeat;background-position:right .61em top 50%,0 0;background-size:.57em auto,100%}.sv-text[type=date]:focus{background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%231AB394;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E ")}.sv-text[type=date]::-webkit-calendar-picker-indicator{color:#0000;background:#0000}.sv-text[type=date]::-webkit-clear-button{display:none}.sv-text[type=date]::-webkit-inner-spin-button{display:none}.sv-text--error{color:var(--error-color, #d52901);border-color:var(--error-color, #d52901)}.sv-text--error::placeholder{color:var(--error-color, #d52901)}.sv-text--error::-ms-input-placeholder{color:var(--error-color, #d52901)}input.sv-text,textarea.sv-comment,select.sv-dropdown{color:var(--text-color, #404040);background-color:var(--inputs-background-color, white)}.sv-rating{color:var(--text-color, #404040);padding-bottom:3px}.sv-rating input:focus+.sv-rating__min-text+.sv-rating__item-text,.sv-rating input:focus+.sv-rating__item-text{outline:1px solid var(--main-color, #1ab394);outline-offset:2px}.sv-rating__item{position:relative;display:inline}.sv-rating__item-text{min-width:2.3125em;height:2.3125em;display:inline-block;color:var(--main-hover-color, #9f9f9f);padding:0 .3125em;border:solid .1875em var(--main-hover-color, #9f9f9f);text-align:center;font-size:1em;font-weight:700;line-height:1.13;cursor:pointer;margin:3px .26em 3px 0;box-sizing:border-box}.sv-rating__item-text>span{margin-top:.44em;display:inline-block}.sv-rating__item-text:hover{background-color:var(--main-hover-color, #9f9f9f);color:var(--body-background-color, white)}.sv-rating__item--selected .sv-rating__item-text{background-color:var(--main-color, #1ab394);color:var(--body-background-color, white);border-color:var(--main-color, #1ab394)}.sv-rating__item--selected .sv-rating__item-text:hover{background-color:var(--main-color, #1ab394)}.sv-rating__item-star>svg{fill:var(--text-color, #404040);height:32px;width:32px;display:inline-block;vertical-align:middle;border:1px solid rgba(0,0,0,0)}.sv-rating__item-star>svg:hover{border:1px solid var(--main-hover-color, #9f9f9f)}.sv-rating__item-star>svg.sv-star-2{display:none}.sv-rating__item-star--selected>svg{fill:var(--main-color, #1ab394)}.sv-rating__item-smiley>svg{height:24px;width:24px;padding:4px;display:inline-block;vertical-align:middle;border:3px solid var(--border-color, rgba(64, 64, 64, .5));margin:3px .26em 3px 0;fill:var(--main-hover-color, #9f9f9f)}.sv-rating__item-smiley>svg>use{display:block}.sv-rating__item-smiley>svg:hover{border:3px solid var(--main-hover-color, #9f9f9f);background-color:var(--main-hover-color, #9f9f9f)}.sv-rating__item-smiley--selected>svg{background-color:var(--main-color, #1ab394);fill:var(--body-background-color, white);border:3px solid var(--main-color, #1ab394)}.sv-rating__min-text{font-size:1em;margin-right:1.25em;cursor:pointer}.sv-rating__max-text{font-size:1em;margin-left:.87em;cursor:pointer}.sv-question--disabled .sv-rating__item-text{cursor:default;color:var(--disable-color, #dbdbdb);border-color:var(--disable-color, #dbdbdb)}.sv-question--disabled .sv-rating__item-text:hover{background-color:#0000}.sv-question--disabled .sv-rating--disabled .sv-rating__item-text:hover .sv-rating__item--selected .sv-rating__item-text,.sv-question--disabled .sv-rating__item--selected .sv-rating__item-text{background-color:var(--disable-color, #dbdbdb);color:var(--body-background-color, white)}.sv-question--disabled .sv-rating__min-text,.sv-question--disabled .sv-rating__max-text{cursor:default}.sv-comment{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:.06em solid var(--text-border-color, #d4d4d4);border-radius:0;box-sizing:border-box;padding:.25em .87em;font-family:inherit;font-size:1em;outline:none;width:100%;max-width:100%}.sv-comment:focus{border-color:var(--main-color, #1ab394)}.sv-file{position:relative}.sv-file__decorator{background-color:var(--body-container-background-color, #f4f4f4);padding:1.68em 0}.sv-file__clean-btn{background-color:var(--remove-button-color, #ff1800);margin-top:1.25em}.sv-file__choose-btn:not(.sv-file__choose-btn--disabled){background-color:var(--add-button-color, #1948b3);display:inline-block}.sv-file__choose-btn--disabled{cursor:default;background-color:var(--disable-color, #dbdbdb);display:inline-block}.sv-file__no-file-chosen{display:inline-block;font-size:.87em;margin-left:1em}.sv-file__preview{display:inline-block;padding-right:23px;position:relative;margin-top:1.25em;vertical-align:top}.sv-file__preview:not(:last-child){margin-right:31px}.sv-file__remove-svg{position:absolute;fill:#ff1800;cursor:pointer;height:16px;top:0;right:0;width:16px}.sv-file__remove-svg .sv-svg-icon{width:16px;height:16px}.sv-file__sign a{color:var(--text-color, #404040);text-align:left;text-decoration:none}.sv-file__wrapper{position:relative;display:inline-block;margin:0 0 0 50%;transform:translate(-50%);padding:0}.sv-clearfix:after{content:"";display:table;clear:both}.sv-completedpage{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:1.875em;font-weight:700;box-sizing:border-box;height:14em;padding-top:4.5em;padding-bottom:4.5em;text-align:center;color:var(--text-color, #404040);background-color:var(--body-container-background-color, #f4f4f4)}.sv-completedpage:before{display:block;content:"";background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 23.0.6, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 72 72' style='enable-background:new 0 0 72 72;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cg%3E%3Cpath class='st0' d='M11.9,72c-0.6-0.1-1.2-0.3-1.8-0.4C4.2,70.1,0,64.7,0,58.6c0-15.1,0-30.1,0-45.2C0,6,6,0,13.4,0 c12,0,24,0,36,0c2.4,0,4.4,1.7,4.6,4c0.2,2.4-1.3,4.4-3.6,4.9C50,9,49.7,9,49.4,9C37.6,9,25.8,9,14,9c-1.5,0-2.8,0.4-3.9,1.5 c-0.8,0.9-1.2,2-1.2,3.2c0,8.2,0,16.4,0,24.6C9,45,9,51.6,9,58.2c0,2.9,1.9,4.8,4.8,4.8c14.9,0,29.7,0,44.6,0c2.6,0,4.6-2,4.6-4.6 c0-5.9,0-11.8,0-17.7c0-2.4,1.6-4.3,3.9-4.6c2.3-0.3,4.3,1,5,3.4c0,0.1,0.1,0.2,0.1,0.2c0,6.8,0,13.6,0,20.4c0,0.1-0.1,0.3-0.1,0.4 c-0.8,5.4-4.7,9.8-10.1,11.2c-0.6,0.1-1.2,0.3-1.8,0.4C44,72,28,72,11.9,72z'/%3E%3Cpath class='st0' d='M35.9,38.8c0.4-0.4,0.5-0.7,0.7-0.9c8.4-8.4,16.8-16.8,25.2-25.2c1.9-1.9,4.5-2,6.3-0.4 c1.9,1.6,2.1,4.6,0.4,6.4c-0.2,0.2-0.3,0.3-0.5,0.5c-9.5,9.5-19.1,19.1-28.6,28.6c-2.2,2.2-4.8,2.2-7,0 c-5.1-5.1-10.2-10.2-15.4-15.4c-1.3-1.3-1.7-2.8-1.2-4.5c0.5-1.7,1.6-2.8,3.4-3.1c1.6-0.4,3.1,0.1,4.2,1.3c4,4,7.9,7.9,11.9,11.9 C35.6,38.2,35.7,38.5,35.9,38.8z'/%3E%3C/g%3E%3C/svg%3E%0A");width:72px;height:72px;margin-left:calc(50% - 36px);padding:36px 0;box-sizing:border-box}@media only screen and (min-width: 1000px){.sv-completedpage{margin-right:5%;margin-left:calc(5% + .293em)}}@media only screen and (max-width: 1000px){.sv-completedpage{margin-left:calc(10px + .293em);margin-right:10px}}.sv-header{white-space:nowrap}.sv-logo--left{display:inline-block;vertical-align:top;margin-right:2em}.sv-logo--right{vertical-align:top;margin-left:2em;float:right}.sv-logo--top,.sv-logo--bottom{display:block;width:100%;text-align:center}.sv-header__text{display:inline-block;vertical-align:top}.sjs_sp_container{border:1px dashed var(--disable-color, #dbdbdb)}.sjs_sp_placeholder{color:var(--foreground-light, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)))}.sv-action-bar{display:flex;box-sizing:content-box;position:relative;align-items:center;margin-left:auto;overflow:hidden;white-space:nowrap}.sv-action-bar-separator{display:inline-block;width:1px;height:24px;vertical-align:middle;margin-right:16px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv-action-bar--default-size-mode .sv-action-bar-separator{margin:0 var(--sjs-base-unit, var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-separator{margin:0 calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-action-bar-item{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;padding:var(--sjs-base-unit, var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:calc(.5*(var(--sjs-corner-radius, 4px)));background-color:#0000;color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:pointer;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));overflow-x:hidden;white-space:nowrap}button.sv-action-bar-item{overflow:hidden}.sv-action-bar--default-size-mode .sv-action-bar-item{height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));margin:0 var(--sjs-base-unit, var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-item{height:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));font-size:calc(.75*(var(--sjs-font-size, 16px)));line-height:var(--sjs-font-size, 16px);margin:0 calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-action:first-of-type .sv-action-bar-item{margin-inline-start:0}.sv-action:last-of-type .sv-action-bar-item{margin-inline-end:0}.sv-action-bar--default-size-mode .sv-action-bar-item__title--with-icon{margin-inline-start:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-item__title--with-icon{margin-inline-start:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-action-bar-item__icon svg{display:block}.sv-action-bar-item__icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-action-bar-item:not(.sv-action-bar-item--pressed):hover:enabled,.sv-action-bar-item:not(.sv-action-bar-item--pressed):focus:enabled{outline:none;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-action-bar-item--active.sv-action-bar-item--pressed:focus,.sv-action-bar-item--active.sv-action-bar-item--pressed:focus-visible{outline:none}.sv-action-bar-item:not(.sv-action-bar-item--pressed):active:enabled{opacity:.5}.sv-action-bar-item:disabled{opacity:.25;cursor:default}.sv-action-bar-item__title{color:inherit;vertical-align:middle;white-space:nowrap}.sv-action-bar-item--secondary .sv-action-bar-item__icon use{fill:var(--sjs-secondary-backcolor, var(--secondary, #ff9814))}.sv-action-bar-item--active .sv-action-bar-item__icon use{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-action-bar-item-dropdown{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding:var(--sjs-base-unit, var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:calc(.5*(var(--sjs-corner-radius, 4px)));background-color:#0000;cursor:pointer;line-height:calc(1.5*(var(--sjs-font-size, 16px)));font-size:var(--sjs-font-size, 16px);font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-expand-action:before{content:"";display:inline-block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:10px;width:12px;margin:auto 8px}.sv-expand-action--expanded:before{transform:rotate(180deg)}.sv-dots{width:48px}.sv-dots__item{width:100%}.sv-dots__item .sv-action-bar-item__icon{margin:auto}.sv-action--hidden{width:0px;height:0px;overflow:hidden;visibility:hidden}.sv-action--hidden .sv-action__content{min-width:fit-content}.sv-action__content{display:flex;flex-direction:row;align-items:center}.sv-action__content>*{flex:0 0 auto}.sv-action--space{margin-left:auto}.sv-action-bar-item--pressed:not(.sv-action-bar-item--active){background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));opacity:50%}.sv-dragged-element-shortcut{height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));min-width:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:calc(4.5*(var(--sjs-base-unit, var(--base-unit, 8px))));background-color:var(--sjs-general-backcolor, var(--background, #fff));padding:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));cursor:grabbing;position:absolute;z-index:10000;box-shadow:0 8px 16px #0000001a;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:var(--sjs-font-size, 16px);padding-left:calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)))}.sv-matrixdynamic__drag-icon{padding-top:calc(1.75*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-matrixdynamic__drag-icon:after{content:" ";display:block;height:calc(.75*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))));border:1px solid #e7e7e7;box-sizing:border-box;border-radius:calc(1.25*(var(--sjs-base-unit, var(--base-unit, 8px))));cursor:move;margin-top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-matrixdynamic-dragged-row{cursor:grabbing;position:absolute;z-index:10000;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-matrixdynamic-dragged-row .sd-table__row{box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1));background-color:var(--sjs-general-backcolor, var(--background, #fff));display:flex;flex-grow:0;flex-shrink:0;align-items:center;line-height:0}.sv-matrixdynamic-dragged-row .sd-table__cell.sd-table__cell--drag>div{background-color:var(--sjs-questionpanel-backcolor, var(--sjs-question-background, var(--sjs-general-backcolor, var(--background, #fff))));min-height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sd-table__cell--header.sd-table__cell--drag,.sd-table__cell.sd-table__cell--drag{padding-right:0;padding-left:0}.sd-question--mobile .sd-table__cell--header.sd-table__cell--drag,.sd-question--mobile .sd-table__cell.sd-table__cell--drag{display:none}.sv-matrix-row--drag-drop-ghost-mod td{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-matrix-row--drag-drop-ghost-mod td>*{visibility:hidden}.sv-drag-drop-choices-shortcut{cursor:grabbing;position:absolute;z-index:10000;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));min-width:100px;max-width:400px}.sv-drag-drop-choices-shortcut .sv-ranking-item{height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-drag-drop-choices-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-viewer,.sv-drag-drop-choices-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-editor{overflow:hidden;white-space:nowrap}.sv-drag-drop-choices-shortcut__content.sv-drag-drop-choices-shortcut__content{min-width:100px;box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1));background-color:var(--sjs-general-backcolor, var(--background, #fff));border-radius:calc(4.5*var(--sjs-base-unit, var(--base-unit, 8px)));padding-right:calc(2*var(--sjs-base-unit, var(--base-unit, 8px)));margin-left:0}sv-popup{display:block;position:absolute}.sv-popup{position:fixed;left:0;top:0;width:100vw;outline:none;z-index:2000;height:100vh}.sv-dropdown-popup,.sv-popup.sv-popup-inner{height:0}.sv-popup-inner>.sv-popup__container{margin-top:calc(-1*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item--with-icon .sv-popup-inner>.sv-popup__container{margin-top:calc(-.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup__container{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1));border-radius:var(--sjs-corner-radius, 4px);position:absolute;padding:0}.sv-popup__body-content{background-color:var(--sjs-general-backcolor, var(--background, #fff));border-radius:var(--sjs-corner-radius, 4px);width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;max-height:90vh;max-width:100vw}.sv-popup--modal{display:flex;align-items:center;justify-content:center;background-color:var(--background-semitransparent, rgba(144, 144, 144, .5));padding:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(15*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(8*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:border-box}.sv-popup--modal>.sv-popup__container{position:static;display:flex}.sv-popup--modal>.sv-popup__container>.sv-popup__body-content{background-color:var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9));padding:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));height:auto;gap:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--modal .sv-popup__body-footer .sv-footer-action-bar{overflow:visible}.sv-popup--confirm .sv-popup__container{border-radius:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--confirm .sv-popup__body-content{border-radius:var(--sjs-base-unit, var(--base-unit, 8px));max-width:min-content;align-items:flex-end;min-width:452px}.sv-popup--confirm .sv-popup__body-header{color:var(--sjs-font-editorfont-color, var(--sjs-general-forecolor, rgba(0, 0, 0, .91)));align-self:self-start;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:var(--sjs-font-size, 16px);font-style:normal;font-weight:400;line-height:calc(1.5*(var(--sjs-font-size, 16px)))}.sv-popup--confirm .sv-popup__scrolling-content{display:none}.sv-popup--confirm .sv-popup__body-footer{max-width:max-content}.sv-popup--confirm .sv-popup__body-footer .sv-action-bar{gap:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sd-root-modern--mobile .sv-popup--confirm .sv-popup__body-content{min-width:auto}.sv-popup--overlay{width:100%;height:var(--sv-popup-overlay-height, 100vh)}.sv-popup--overlay .sv-popup__container{background:var(--background-semitransparent, rgba(144, 144, 144, .5));max-width:100vw;max-height:calc(var(--sv-popup-overlay-height, 100vh) - 1*var(--sjs-base-unit, var(--base-unit, 8px)));height:calc(var(--sv-popup-overlay-height, 100vh) - 1*var(--sjs-base-unit, var(--base-unit, 8px)));width:100%;padding-top:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border:unset;box-shadow:unset;box-sizing:content-box}.sv-popup--overlay .sv-popup__body-content{max-height:var(--sv-popup-overlay-height, 100vh);max-width:100vw;border-radius:calc(4*(var(--sjs-corner-radius, 4px))) calc(4*(var(--sjs-corner-radius, 4px))) 0px 0px;background:var(--sjs-general-backcolor, var(--background, #fff));padding:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(100% - 1*var(--sjs-base-unit, var(--base-unit, 8px)))}.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 10*var(--base-unit, 8px))}.sv-popup--overlay .sv-popup__body-footer .sv-action-bar,.sv-popup--overlay .sv-popup__body-footer-item{width:100%}.sv-popup--overlay .sv-popup__body-footer .sv-action{flex:1 0 0}.sv-popup--overlay .sv-popup__button.sv-popup__button{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:2px solid var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff))}.sv-popup--modal .sv-popup__scrolling-content{padding:2px;margin:-2px}.sv-popup__scrolling-content{height:100%;overflow:auto;display:flex;flex-direction:column}.sv-popup__scrolling-content::-webkit-scrollbar,.sv-popup__scrolling-content *::-webkit-scrollbar{height:6px;width:6px;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-popup__scrolling-content::-webkit-scrollbar-thumb,.sv-popup__scrolling-content *::-webkit-scrollbar-thumb{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)))}.sv-popup__content{min-width:100%;height:100%;display:flex;flex-direction:column;min-height:0;position:relative}.sv-popup--show-pointer.sv-popup--top .sv-popup__pointer{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px))))) rotate(180deg)}.sv-popup--show-pointer.sv-popup--bottom .sv-popup__pointer{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))),calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))))}.sv-popup--show-pointer.sv-popup--right .sv-popup__container{transform:translate(var(--sjs-base-unit, var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right .sv-popup__container .sv-popup__pointer{transform:translate(-12px,-4px) rotate(-90deg)}.sv-popup--show-pointer.sv-popup--left .sv-popup__container{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))))}.sv-popup--show-pointer.sv-popup--left .sv-popup__container .sv-popup__pointer{transform:translate(-4px,-4px) rotate(90deg)}.sv-popup__pointer{display:block;position:absolute}.sv-popup__pointer:after{content:" ";display:block;width:0;height:0;border-left:var(--sjs-base-unit, var(--base-unit, 8px)) solid rgba(0,0,0,0);border-right:var(--sjs-base-unit, var(--base-unit, 8px)) solid rgba(0,0,0,0);border-bottom:var(--sjs-base-unit, var(--base-unit, 8px)) solid var(--sjs-general-backcolor, var(--background, #fff));align-self:center}.sv-popup__body-header{font-family:Open Sans;font-size:calc(1.5*(var(--sjs-font-size, 16px)));line-height:calc(2*(var(--sjs-font-size, 16px)));font-style:normal;font-weight:700;color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-popup__body-footer{display:flex}.sv-popup__body-footer .sv-action-bar{gap:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--modal .sv-list__filter,.sv-popup--overlay .sv-list__filter{padding-top:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter-icon,.sv-popup--overlay .sv-list__filter-icon{top:calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown .sv-list__filter{margin-bottom:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--dropdown .sv-popup__body-content{background-color:var(--sjs-general-backcolor, var(--background, #fff));padding:var(--sjs-base-unit, var(--base-unit, 8px)) 0;height:100%}.sv-popup--dropdown>.sv-popup__container>.sv-popup__body-content .sv-list{background-color:#0000}.sv-dropdown-popup .sv-popup__body-content{padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0}.sv-dropdown-popup .sv-list__filter{margin-bottom:0}.sv-popup--overlay .sv-popup__body-content{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));gap:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay{z-index:2001;padding:0}.sv-popup--dropdown-overlay .sv-popup__body-content{padding:0;border-radius:0}.sv-popup--dropdown-overlay .sv-popup__body-footer .sv-action-bar .sv-action{flex:0 0 auto}.sv-popup--dropdown-overlay .sv-popup__button.sv-popup__button{background-color:#0000;color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:none;box-shadow:none;padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-popup__container{max-height:calc(var(--sv-popup-overlay-height, 100vh));height:calc(var(--sv-popup-overlay-height, 100vh));padding-top:0}.sv-popup--dropdown-overlay .sv-popup__body-content{height:calc(var(--sv-popup-overlay-height, 100vh));gap:0}.sv-popup--dropdown-overlay .sv-popup__body-footer{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));padding-top:var(--sjs-base-unit, var(--base-unit, 8px));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px));border-top:1px solid var(--sjs-border-light, var(--border-light, #eaeaea))}.sv-popup--dropdown-overlay .sv-popup__scrolling-content{height:calc(100% - 6*var(--base-unit, 8px))}.sv-popup--dropdown-overlay .sv-list__filter-icon .sv-svg-icon{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__container{padding:0}.sv-popup--dropdown-overlay .sv-list{flex-grow:1;padding:var(--sjs-base-unit, var(--base-unit, 8px)) 0}.sv-popup--dropdown-overlay .sv-list__filter{display:flex;align-items:center;margin-bottom:0;padding:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px)) calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__filter-icon{position:static;height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__empty-container{display:flex;flex-direction:column;justify-content:center;flex-grow:1;padding:var(--sjs-base-unit, var(--base-unit, 8px)) calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-popup--dropdown-overlay .sv-popup__button:disabled{pointer-events:none;color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25}.sv-popup--dropdown-overlay .sv-list__filter-clear-button{height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:100%;background-color:#0000}.sv-popup--dropdown-overlay .sv-list__filter-clear-button svg{height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__filter-clear-button svg use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-popup--dropdown-overlay .sv-list__input{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090));font-size:max(16px,var(--sjs-font-size, 16px));line-height:max(24px,1.5*(var(--sjs-font-size, 16px)));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0 calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__item:hover .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item:focus .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item--focused .sv-list__item-body{background:var(--sjs-general-backcolor, var(--background, #fff))}.sv-popup--dropdown-overlay .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-popup--dropdown-overlay .sv-popup__body-footer .sv-action-bar{justify-content:flex-start}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter{padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px)) calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list{padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-popup__button.sv-popup__button{padding:var(--sjs-base-unit, var(--base-unit, 8px)) calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-popup__body-footer{padding-top:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));background-color:var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter-icon .sv-svg-icon{width:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter-icon{height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__input{padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0 calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)));color:var(--sjs-general-forecolor, var(--foreground, #161616));font-weight:400}.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__body-content{--sv-popup-overlay-max-height: calc(var(--sv-popup-overlay-height, 100vh) - var(--sjs-base-unit, var(--base-unit, 8px)) * 8);--sv-popup-overlay-max-width: calc(100% - var(--sjs-base-unit, var(--base-unit, 8px)) * 8);position:absolute;transform:translate(-50%,-50%);left:50%;top:50%;max-height:var(--sv-popup-overlay-max-height);min-height:min(var(--sv-popup-overlay-max-height),30*(var(--sjs-base-unit, var(--base-unit, 8px))));height:auto;width:auto;min-width:min(40*(var(--sjs-base-unit, var(--base-unit, 8px))),var(--sv-popup-overlay-max-width));max-width:var(--sv-popup-overlay-max-width);border-radius:var(--sjs-corner-radius, 4px);overflow:hidden;box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1))}.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__content,.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__scrolling-content,.sv-popup--dropdown-overlay.sv-popup--tablet .sv-list__container{flex-grow:1}.sv-popup--visible{opacity:1}.sv-popup--enter{animation-name:fadeIn;animation-fill-mode:forwards;animation-duration:.15s}.sv-popup--modal.sv-popup--enter{animation-timing-function:cubic-bezier(0,0,.58,1);animation-duration:.25s}.sv-popup--leave{animation-direction:reverse;animation-name:fadeIn;animation-fill-mode:forwards;animation-duration:.15s}.sv-popup--modal.sv-popup--leave{animation-timing-function:cubic-bezier(.42,0,1,1);animation-duration:.25s}.sv-popup--hidden{opacity:0}@keyframes modalMoveUp{0%{transform:translateY(64px)}to{transform:translateY(0)}}.sv-popup--modal.sv-popup--leave .sv-popup__container,.sv-popup--modal.sv-popup--enter .sv-popup__container{animation-name:modalMoveUp;animation-timing-function:cubic-bezier(0,0,.58,1);animation-fill-mode:forwards;animation-duration:.25s}.sv-popup--modal.sv-popup--leave .sv-popup__container{animation-direction:reverse;animation-timing-function:cubic-bezier(.42,0,1,1)}.sv-button-group{display:flex;align-items:center;flex-direction:row;font-size:var(--sjs-font-size, 16px);overflow:auto;border:1px solid var(--sjs-border-default, var(--border, #d6d6d6))}.sv-button-group__item{display:flex;box-sizing:border-box;flex-direction:row;justify-content:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;padding:11px calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)));outline:none;font-size:var(--sjs-font-size, 16px);font-weight:400;background:var(--sjs-general-backcolor, var(--background, #fff));cursor:pointer;overflow:hidden;color:var(--sjs-general-forecolor, var(--foreground, #161616));position:relative}.sv-button-group__item:not(:last-of-type){border-right:1px solid var(--sjs-border-default, var(--border, #d6d6d6))}.sv-button-group__item--hover:hover{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-button-group__item-icon{display:block;height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-button-group__item-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-button-group__item--selected{font-weight:600;color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item--selected .sv-button-group__item-icon use{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item--selected:hover{background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-button-group__item-decorator{display:flex;align-items:center;max-width:100%}.sv-button-group__item-caption{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-button-group__item-icon+.sv-button-group__item-caption{margin-left:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-button-group__item--disabled{color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:default}.sv-button-group__item--disabled .sv-button-group__item-decorator{opacity:.25;font-weight:400}.sv-button-group__item--disabled .sv-button-group__item-icon use{fill:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-button-group__item--disabled:hover{background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-button-group:focus-within{box-shadow:0 0 0 1px var(--sjs-primary-backcolor, var(--primary, #19b394));border-color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-visuallyhidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.sv-hidden{display:none!important}.sv-title-actions{display:flex;align-items:center;width:100%}.sv-title-actions__title{flex-wrap:wrap;max-width:90%;min-width:50%;white-space:initial}.sv-action-title-bar{min-width:56px}.sv-title-actions .sv-title-actions__title{flex-wrap:wrap;flex:0 1 auto;max-width:unset;min-width:unset}.sv-title-actions .sv-action-title-bar{flex:1 1 auto;justify-content:flex-end;min-width:unset}.sv_window{position:fixed;bottom:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));right:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:var(--sjs-base-unit, var(--base-unit, 8px));border:1px solid var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, .16)));box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1));background-clip:padding-box;z-index:100;max-height:50vh;overflow:auto;box-sizing:border-box;background:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));width:calc(100% - 4*(var(--sjs-base-unit, var(--base-unit, 8px))))!important}@-moz-document url-prefix(){.sv_window,.sv_window *{scrollbar-width:thin;scrollbar-color:var(--sjs-border-default, var(--border, #d6d6d6)) rgba(0,0,0,0)}}.sv_window::-webkit-scrollbar,.sv_window *::-webkit-scrollbar{width:12px;height:12px;background-color:#0000}.sv_window::-webkit-scrollbar-thumb,.sv_window *::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:32px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv_window::-webkit-scrollbar-track,.sv_window *::-webkit-scrollbar-track{background:#0000}.sv_window::-webkit-scrollbar-thumb:hover,.sv_window *::-webkit-scrollbar-thumb:hover{border:2px solid rgba(0,0,0,0);background-color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv_window_root-content{height:100%}.sv_window--full-screen{top:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));right:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));bottom:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));max-height:100%;width:initial!important;max-width:initial!important}.sv_window_header{display:flex;justify-content:flex-end}.sv_window_content{overflow:hidden}.sv_window--collapsed{height:initial}.sv_window--collapsed .sv_window_header{height:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));padding:var(--sjs-base-unit, var(--base-unit, 8px)) var(--sjs-base-unit, var(--base-unit, 8px)) var(--sjs-base-unit, var(--base-unit, 8px)) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:var(--sjs-base-unit, var(--base-unit, 8px));display:flex;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));box-sizing:content-box}.sv_window--collapsed .sv_window_content{display:none}.sv_window--collapsed .sv_window_buttons_container{margin-top:0;margin-right:0}.sv_window_header_title_collapsed{color:var(--sjs-general-dim-forecolor, rgba(0, 0, 0, .91));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-style:normal;font-weight:600;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));flex:1;display:flex;justify-content:flex-start;align-items:center}.sv_window_header_description{color:var(--sjs-font-questiondescription-color, var(--sjs-general-forecolor-light, rgba(0, 0, 0, .45)));font-feature-settings:"salt" on;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-style:normal;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sv_window_buttons_container{position:fixed;margin-top:var(--sjs-base-unit, var(--base-unit, 8px));margin-right:var(--sjs-base-unit, var(--base-unit, 8px));display:flex;gap:var(--sjs-base-unit, var(--base-unit, 8px));z-index:10000}.sv_window_button{display:flex;padding:var(--sjs-base-unit, var(--base-unit, 8px));justify-content:center;align-items:center;border-radius:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));cursor:pointer}.sv_window_button:hover,.sv_window_button:active{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)))}.sv_window_button:hover svg use,.sv_window_button:hover svg path,.sv_window_button:active svg use,.sv_window_button:active svg path{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv_window_button:active{opacity:.5}.sv_window_button svg use,.sv_window_button svg path{fill:var(--sjs-general-dim-forecolor-light, rgba(0, 0, 0, .45))}sv-brand-info,.sv-brand-info{z-index:1;position:relative;margin-top:1px}.sv-brand-info{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));text-align:right;color:#161616;padding:24px 40px}.sv-brand-info a{color:#161616;text-decoration-line:underline}.sd-body--static .sv-brand-info{padding-top:0;margin-top:16px}.sd-body--responsive .sv-brand-info{padding-top:16px;margin-top:-8px}.sd-root-modern--mobile .sv-brand-info{padding:48px 24px 8px;margin-top:0;text-align:center}.sv-brand-info__text{font-weight:600;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));color:#161616}.sv-brand-info__logo{display:inline-block}.sv-brand-info__logo img{width:118px}.sv-brand-info__terms{font-weight:400;font-size:calc(.75*(var(--sjs-font-size, 16px)));line-height:var(--sjs-font-size, 16px);padding-top:4px}.sv-brand-info__terms a{color:#909090}.sd-body--responsive .sv-brand-info{padding-right:0;padding-left:0}.sv-ranking{outline:none;user-select:none;-webkit-user-select:none}.sv-ranking-item{cursor:pointer;position:relative;opacity:1}.sv-ranking-item:focus .sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking-item:hover:not(:focus) .sv-ranking-item__icon--hover{visibility:visible}.sv-question--disabled .sv-ranking-item:hover .sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking-item:focus{outline:none}.sv-ranking-item:focus .sv-ranking-item__icon--focus{visibility:visible;top:calc(.6*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item:focus .sv-ranking-item__index{background:var(--sjs-general-backcolor, var(--background, #fff));outline:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-ranking-item__content.sv-ranking-item__content{display:flex;align-items:center;line-height:1em;padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0px;border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item__icon-container{position:relative;left:0;bottom:0;flex-shrink:0;width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));align-self:flex-start;padding-left:var(--sjs-base-unit, var(--base-unit, 8px));padding-right:var(--sjs-base-unit, var(--base-unit, 8px));margin-left:calc(-2*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:content-box}.sv-ranking-item--disabled.sv-ranking-item--disabled,.sv-ranking-item--readonly.sv-ranking-item--readonly,.sv-ranking-item--preview.sv-ranking-item--preview{cursor:initial;user-select:initial;-webkit-user-select:initial}.sv-ranking-item--disabled.sv-ranking-item--disabled .sv-ranking-item__icon-container.sv-ranking-item__icon-container .sv-ranking-item__icon.sv-ranking-item__icon,.sv-ranking-item--readonly.sv-ranking-item--readonly .sv-ranking-item__icon-container.sv-ranking-item__icon-container .sv-ranking-item__icon.sv-ranking-item__icon,.sv-ranking-item--preview.sv-ranking-item--preview .sv-ranking-item__icon-container.sv-ranking-item__icon-container .sv-ranking-item__icon.sv-ranking-item__icon{visibility:hidden}.sv-ranking-item__icon.sv-ranking-item__icon{visibility:hidden;fill:var(--sjs-primary-backcolor, var(--primary, #19b394));position:absolute;top:var(--sjs-base-unit, var(--base-unit, 8px));width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item__index.sv-ranking-item__index{--sjs-internal-font-editorfont-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));display:flex;flex-shrink:0;align-items:center;justify-content:center;background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-size:var(--sjs-internal-font-editorfont-size);border-radius:100%;border:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid rgba(0,0,0,0);width:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)));box-sizing:border-box;font-weight:600;margin-left:calc(0*(var(--sjs-base-unit, var(--base-unit, 8px))));transition:outline var(--sjs-transition-duration, .15s),background var(--sjs-transition-duration, .15s);outline:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid rgba(0,0,0,0);align-self:self-start}.sv-ranking-item__index.sv-ranking-item__index svg{fill:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));width:var(--sjs-internal-font-editorfont-size);height:var(--sjs-internal-font-editorfont-size)}.sv-ranking-item__text{--sjs-internal-font-editorfont-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-size:var(--sjs-internal-font-editorfont-size);line-height:calc(1.5*(var(--sjs-internal-font-editorfont-size)));margin:0 calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));overflow-wrap:break-word;word-break:normal;align-self:self-start;padding-top:var(--sjs-base-unit, var(--base-unit, 8px));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-ranking-item__text .sv-string-viewer,.sv-ranking-item__text .sv-string-editor{overflow:initial;white-space:pre-line}.sd-ranking--disabled .sv-ranking-item__text{color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));opacity:.25}.sv-ranking-item--disabled .sv-ranking-item__text{color:var(--sjs-font-questiondescription-color, var(--sjs-general-forecolor-light, rgba(0, 0, 0, .45)));opacity:.25}.sv-ranking-item--readonly .sv-ranking-item__index{background-color:var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)))}.sv-ranking-item--preview .sv-ranking-item__index{background-color:#0000;border:1px solid var(--sjs-general-forecolor, var(--foreground, #161616));box-sizing:border-box}.sv-ranking-item__ghost.sv-ranking-item__ghost{display:none;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(31*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));z-index:1;position:absolute;left:0;top:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}[dir=rtl] .sv-ranking-item__ghost{left:initilal;right:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item--ghost{height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item--ghost .sv-ranking-item__text .sv-string-viewer,.sv-ranking-item--ghost .sv-ranking-item__text .sv-string-editor{white-space:unset}.sv-ranking-item--ghost .sv-ranking-item__ghost{display:block}.sv-ranking-item--ghost .sv-ranking-item__content{visibility:hidden}.sv-ranking-item--drag .sv-ranking-item__content{box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1));border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--drag .sv-ranking-item:hover .sv-ranking-item__icon{visibility:hidden}.sv-ranking-item--drag .sv-ranking-item__icon--hover{visibility:visible}.sv-ranking--mobile .sv-ranking-item__icon--hover{visibility:visible;fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-ranking--mobile.sv-ranking--drag .sv-ranking-item--ghost .sv-ranking-item__icon.sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking--mobile.sv-ranking-shortcut{max-width:80%}.sv-ranking--mobile .sv-ranking-item__index.sv-ranking-item__index,.sv-ranking--mobile .sd-element--with-frame .sv-ranking-item__icon{margin-left:0}.sv-ranking--design-mode .sv-ranking-item:hover .sv-ranking-item__icon{visibility:hidden}.sv-ranking--disabled{opacity:.8}.sv-ranking-shortcut[hidden]{display:none}.sv-ranking-shortcut .sv-ranking-item__icon{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-ranking-shortcut .sv-ranking-item__text{margin-right:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut .sv-ranking-item__icon--hover{visibility:visible}.sv-ranking-shortcut .sv-ranking-item__icon{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));top:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-ranking-shortcut .sv-ranking-item__content{padding-left:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut .sv-ranking-item__icon-container{margin-left:calc(0*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut{cursor:grabbing;position:absolute;z-index:10000;border-radius:calc(12.5*var(--sjs-base-unit, var(--base-unit, 8px)));min-width:100px;max-width:400px;box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1));background-color:var(--sjs-general-backcolor, var(--background, #fff));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-ranking-shortcut .sv-ranking-item{height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-viewer,.sv-ranking-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-editor{overflow:hidden;white-space:nowrap}.sv-ranking--select-to-rank{display:flex}.sv-ranking--select-to-rank-vertical{flex-direction:column-reverse}.sv-ranking--select-to-rank-vertical .sv-ranking__containers-divider{margin:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0;height:1px}.sv-ranking--select-to-rank-vertical .sv-ranking__container--empty{padding-top:var(--sjs-base-unit, var(--base-unit, 8px));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px));display:flex;justify-content:center;align-items:center}.sv-ranking-item--animate-item-removing{animation-name:moveIn,fadeIn;animation-direction:reverse;animation-fill-mode:forwards;animation-timing-function:linear;animation-duration:var(--sjs-ranking-move-out-duration, .15s),var(--sjs-ranking-fade-out-duration, .1s);animation-delay:var(--sjs-ranking-move-out-delay, 0ms),0s}.sv-ranking-item--animate-item-adding{animation-name:moveIn,fadeIn;opacity:0;animation-fill-mode:forwards;animation-timing-function:linear;animation-duration:var(--sjs-ranking-move-in-duration, .15s),var(--sjs-ranking-fade-in-duration, .1s);animation-delay:0s,var(--sjs-ranking-fade-in-delay, .15s)}.sv-ranking-item--animate-item-adding-empty{animation-name:fadeIn;opacity:0;animation-timing-function:linear;animation-duration:var(--sjs-ranking-fade-in-duration, .1s);animation-delay:0}.sv-ranking-item--animate-item-removing-empty{animation-name:fadeIn;animation-direction:reverse;animation-timing-function:linear;animation-duration:var(--sjs-ranking-fade-out-duration, .1s);animation-delay:0}@keyframes sv-animate-item-opacity-reverse-keyframes{0%{opacity:0}to{opacity:1}}@keyframes sv-animate-item-opacity-keyframes{0%{opacity:1}to{opacity:0}}.sv-ranking--select-to-rank-horizontal .sv-ranking__container{max-width:calc(50% - 1px)}.sv-ranking--select-to-rank-horizontal .sv-ranking__containers-divider{width:1px}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--to .sv-ranking-item{left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking-item{left:initial}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking__container-placeholder{padding-left:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--empty.sv-ranking__container--from .sv-ranking__container-placeholder{padding-right:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking__container-placeholder{color:var(--sjs-font-questiondescription-color, var(--sjs-general-dim-forecolor-light, rgba(0, 0, 0, .45)));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-style:normal;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));white-space:normal;display:flex;justify-content:center;align-items:center;height:100%;padding-top:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:border-box}.sv-ranking__container{flex:1}.sv-ranking__container--empty{box-sizing:border-box;text-align:center}.sv-ranking__containers-divider{background:var(--sjs-border-default, var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, .16))))}.sv-ranking__container--from .sv-ranking-item__icon--focus{display:none}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--to .sv-ranking-item{left:0!important;padding-left:16px}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--to .sv-ranking-item .sv-ranking-item__ghost{left:initial}.sv-ranking--select-to-rank-swap-areas{flex-direction:row-reverse}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--to .sv-ranking-item{padding-left:0;left:-24px!important}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--from .sv-ranking-item{padding-left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));left:0}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--from .sv-ranking-item__ghost.sv-ranking-item__ghost{left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking__container-placeholder{padding-right:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-left:0}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking-item__ghost.sv-ranking-item__ghost{right:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--from .sv-ranking__container-placeholder{padding-left:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-right:0}.sd-question--mobile .sv-ranking-item__icon-container,.sd-root-modern.sd-root-modern--mobile .sv-ranking-item__icon-container{margin-left:calc(-2*(var(--sjs-base-unit, var(--base-unit, 8px))));display:flex;justify-content:flex-end;padding:0;width:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list{padding:0;margin:0;overflow-y:auto;background:var(--sjs-general-backcolor, var(--background, #fff));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));list-style-type:none}.sv-list__empty-container{width:100%;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));box-sizing:border-box;padding:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__empty-text{line-height:calc(1.5*(var(--sjs-font-size, 16px)));font-size:var(--sjs-font-size, 16px);font-weight:400;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item{width:100%;align-items:center;box-sizing:border-box;color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-list__item-body{--sjs-list-item-padding-left-default: calc(2 * var(--sjs-base-unit, var(--base-unit, 8px)));--sjs-list-item-padding-left: calc(var(--sjs-list-item-level) * var(--sjs-list-item-padding-left-default));position:relative;width:100%;align-items:center;box-sizing:border-box;padding-block:var(--sjs-base-unit, var(--base-unit, 8px));padding-inline-end:calc(8*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-start:var(--sjs-list-item-padding-left, calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-weight:400;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));cursor:pointer;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;transition:background-color var(--sjs-transition-duration, .15s),color var(--sjs-transition-duration, .15s)}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected){outline:none}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected) .sv-list__item-body{border:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid var(--sjs-border-light, var(--border-light, #eaeaea));border-radius:var(--sjs-corner-radius, 4px);padding-block:calc(.75*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-end:calc(7.75*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-start:calc(1.75*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected) .sv-string-viewer{margin-inline-start:calc(-.25*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item:hover,.sv-list__item:focus{outline:none}.sv-list__item:focus .sv-list__item-body,.sv-list__item--hovered>.sv-list__item-body{background-color:var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)))}.sv-list__item--with-icon.sv-list__item--with-icon{padding:0}.sv-list__item--with-icon.sv-list__item--with-icon>.sv-list__item-body{padding-top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));gap:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));display:flex}.sv-list__item-icon{float:left;flex-shrink:0;width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item-icon svg{display:block}.sv-list__item-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list-item__marker-icon{position:absolute;right:var(--sjs-base-unit, var(--base-unit, 8px));width:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));flex-shrink:0;padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:content-box}.sv-list-item__marker-icon svg{display:block}.sv-list-item__marker-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}[dir=rtl] .sv-list__item-icon,[style*="direction:rtl"] .sv-list__item-icon,[style*="direction: rtl"] .sv-list__item-icon{float:right}.sv-list__item-separator{margin:var(--sjs-base-unit, var(--base-unit, 8px)) 0;height:1px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv-list--filtering .sv-list__item-separator{display:none}.sv-list__item.sv-list__item--selected>.sv-list__item-body,.sv-list__item.sv-list__item--selected:hover>.sv-list__item-body,.sv-list__item.sv-list__item--selected.sv-list__item--focused>.sv-list__item-body,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused>.sv-list__item-body,li:focus .sv-list__item.sv-list__item--selected>.sv-list__item-body{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-list__item.sv-list__item--selected .sv-list__item-icon use,.sv-list__item.sv-list__item--selected:hover .sv-list__item-icon use,.sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-icon use,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-icon use,li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use{fill:var(--sjs-general-backcolor, var(--background, #fff))}.sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use,.sv-list__item.sv-list__item--selected:hover .sv-list-item__marker-icon use,.sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list-item__marker-icon use,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list-item__marker-icon use,li:focus .sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use{fill:var(--sjs-primary-forecolor, var(--primary-foreground, #fff))}.sv-multi-select-list .sv-list__item.sv-list__item--selected .sv-list__item-body,.sv-multi-select-list .sv-list__item.sv-list__item--selected:hover .sv-list__item-body{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-weight:400}.sv-list__item--group-selected>.sv-list__item-body{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-weight:400}.sv-list__item--group-selected>.sv-list__item-body use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item.sv-list__item--disabled .sv-list__item-body{cursor:default;color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item span{white-space:nowrap}.sv-list__item-text--wrap span{white-space:normal;word-wrap:break-word}.sv-list__container{position:relative;height:100%;flex-direction:column;display:flex;min-height:0}.sv-list__filter{border-bottom:1px solid var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, .16)));background:var(--sjs-general-backcolor, var(--background, #fff));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-list__filter-icon{display:block;position:absolute;top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));inset-inline-start:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__filter-icon .sv-svg-icon{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__filter-icon .sv-svg-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;background:var(--sjs-general-backcolor, var(--background, #fff));box-sizing:border-box;width:100%;min-width:calc(30*(var(--sjs-base-unit, var(--base-unit, 8px))));outline:none;font-size:var(--sjs-font-size, 16px);color:var(--sjs-general-forecolor, var(--foreground, #161616));padding:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-start:calc(7*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)));border:none}.sv-list__input::placeholder{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__input:disabled,.sv-list__input:disabled::placeholder{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__loading-indicator{pointer-events:none}.sv-list__loading-indicator .sv-list__item-body{background-color:#0000}:root{--sjs-transition-duration: .15s}.sv-save-data_root{position:fixed;left:50%;bottom:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));background:var(--sjs-general-backcolor, var(--background, #fff));opacity:0;padding:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))));box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1));border-radius:calc(2*(var(--sjs-corner-radius, 4px)));color:var(--sjs-general-forecolor, var(--foreground, #161616));min-width:calc(30*(var(--sjs-base-unit, var(--base-unit, 8px))));text-align:center;z-index:1600;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));display:flex;flex-direction:row;justify-content:center;align-items:center;transform:translate(-50%) translateY(calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px)))));transition-timing-function:ease-in;transition-property:transform,opacity;transition-delay:.25s;transition:.5s}.sv-save-data_root.sv-save-data_root--shown{transition-timing-function:ease-out;transition-property:transform,opacity;transform:translate(-50%) translateY(0);transition-delay:.25s;opacity:.75}.sv-save-data_root span{display:flex;flex-grow:1}.sv-save-data_root .sv-action-bar{display:flex;flex-grow:0;flex-shrink:0}.sv-save-data_root--shown.sv-save-data_success,.sv-save-data_root--shown.sv-save-data_error{opacity:1}.sv-save-data_root.sv-save-data_root--with-buttons{padding:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-save-data_root.sv-save-data_error{background-color:var(--sjs-special-red, var(--red, #e60a3e));color:var(--sjs-general-backcolor, var(--background, #fff));font-weight:600;gap:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-save-data_root.sv-save-data_error .sv-save-data_button{font-weight:600;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));color:#fff;background-color:var(--sjs-special-red, var(--red, #e60a3e));border:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid #fff;border-radius:calc(1.5*(var(--sjs-corner-radius, 4px)));padding:var(--sjs-base-unit, var(--base-unit, 8px)) calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));display:flex;align-items:center}.sv-save-data_root.sv-save-data_error .sv-save-data_button:hover,.sv-save-data_root.sv-save-data_error .sv-save-data_button:focus{color:var(--sjs-special-red, var(--red, #e60a3e));background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-save-data_root.sv-save-data_success{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));color:#fff;font-weight:600}.sv-string-viewer.sv-string-viewer--multiline{white-space:pre-wrap}.sjs_sp_container{position:relative;max-width:100%}.sjs_sp_controls{position:absolute;left:0;bottom:0}.sjs_sp_controls>button{-webkit-user-select:none;user-select:none}.sjs_sp_container>div>canvas:focus{outline:none}.sjs_sp_placeholder{display:flex;align-items:center;justify-content:center;position:absolute;z-index:1;-webkit-user-select:none;user-select:none;pointer-events:none;width:100%;height:100%}.sjs_sp_canvas{position:relative;max-width:100%;display:block}.sjs_sp__background-image{position:absolute;top:0;left:0;object-fit:cover;max-width:100%;width:100%;height:100%}:root{--sjs-default-font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif}.sv-boolean__decorator{border-radius:2px}.sv_main .sv-boolean__decorator+.sv-boolean__label{float:none;vertical-align:top;margin-left:.5em}.sv-boolean__svg{border:none;border-radius:2px;background-color:#1ab394;fill:#fff;width:24px;height:24px}.sv-boolean--allowhover:hover .sv-boolean__checked-path{display:inline-block}.sv-boolean--allowhover:hover .sv-boolean__svg{background-color:#9f9f9f;fill:#fff}.sv-boolean--allowhover:hover .sv-boolean__unchecked-path,.sv-boolean--allowhover:hover .sv-boolean__indeterminate-path,.sv-boolean__checked-path,.sv-boolean__indeterminate-path{display:none}.sv-boolean--indeterminate .sv-boolean__svg{background-color:inherit;fill:#1ab394}.sv-boolean--indeterminate .sv-boolean__indeterminate-path{display:inline-block}.sv-boolean--indeterminate .sv-boolean__unchecked-path,.sv-boolean--checked .sv-boolean__unchecked-path{display:none}.sv-boolean--checked .sv-boolean__checked-path{display:inline-block}.sv-boolean--disabled.sv-boolean--indeterminate .sv-boolean__svg{background-color:inherit;fill:#dbdbdb}.sv-boolean--disabled .sv-boolean__svg{background-color:#dbdbdb}td.sv_matrix_cell .sv_qbln,td.td.sv_matrix_cell .sv_qbln{text-align:center}td.sv_matrix_cell .sv_qbln .sv-boolean,td.td.sv_matrix_cell .sv_qbln .sv-boolean{text-align:initial}sv-components-container,.sd-components-container{display:flex}.sv-components-row{display:flex;flex-direction:row;width:100%}.sv-components-column{display:flex;flex-direction:column}.sv-components-column--expandable{flex-grow:1}.sv-components-row>.sv-components-column--expandable{width:1px}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question{display:block;width:100%!important}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-question__header--location--left,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-question__header--location--left{float:none}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-selectbase__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-imagepicker__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-selectbase__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-imagepicker__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table thead,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table thead{display:none}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td.sv-table__cell--choice,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td.sv-table__cell--choice{text-align:initial}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tbody,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tr,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tbody,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tr,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdropdown .sv-table__responsive-title,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdynamic .sv-table__responsive-title,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdropdown .sv-table__responsive-title,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdynamic .sv-table__responsive-title{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td label.sv-matrix__label,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label{display:inline}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell{text-align:initial}@media (max-width: 600px){.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question{display:block;width:100%!important}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-question__header--location--left,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-question__header--location--left{float:none}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-selectbase__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-imagepicker__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-selectbase__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-imagepicker__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table thead,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table thead{display:none}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td.sv-table__cell--choice,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td.sv-table__cell--choice{text-align:initial}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tbody,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tr,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tbody,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tr,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdropdown .sv-table__responsive-title,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdynamic .sv-table__responsive-title,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdropdown .sv-table__responsive-title,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdynamic .sv-table__responsive-title{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td label.sv-matrix__label,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label{display:inline}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell{text-align:initial}}body{--sv-modern-mark: true}.sv-matrixdynamic__drag-icon{padding-top:16px}.sv-matrixdynamic__drag-icon:after{content:" ";display:block;height:6px;width:20px;border:1px solid var(--border-color, rgba(64, 64, 64, .5));box-sizing:border-box;border-radius:10px;cursor:move;margin-top:12px}.sv-matrix__drag-drop-ghost-position-top,.sv-matrix__drag-drop-ghost-position-bottom{position:relative}.sv-matrix__drag-drop-ghost-position-top:after,.sv-matrix__drag-drop-ghost-position-bottom:after{content:"";width:100%;height:4px;background-color:var(--main-color, #1ab394);position:absolute;left:0}.sv-matrix__drag-drop-ghost-position-top:after{top:0}.sv-matrix__drag-drop-ghost-position-bottom:after{bottom:0}.sv-skeleton-element{background-color:var(--background-dim, var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3)))}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.regular-17pt{font-family:Open Sans,sans-serif;font-size:17pt;font-weight:400}.bold-20pt{font-family:Open Sans,sans-serif;font-size:20pt;font-weight:700}.bold-caps-16pt,.toggle-btn,.toggle-btn-survey,.toggle-btn-matrix,.toggle-btn-table{font-family:Open Sans,sans-serif;font-size:16pt;font-weight:700;text-transform:uppercase}.bold-caps-17pt{font-family:Open Sans,sans-serif;font-size:17pt;font-weight:700;text-transform:uppercase}.bold-caps-20pt,.geant-header{font-family:Open Sans,sans-serif;font-size:20pt;font-weight:700;text-transform:uppercase}.bold-caps-30pt{font-family:Open Sans,sans-serif;font-size:30pt;font-weight:700;text-transform:uppercase}.dark-teal,.geant-header{color:#003f5f}.bold-grey-12pt{font-family:Open Sans,sans-serif;font-size:12pt;font-weight:700;color:#666}#sidebar{overflow-y:scroll;overflow-x:hidden;max-height:40vh;overscroll-behavior:contain}.sidebar-wrapper{display:flex;position:fixed;z-index:2;top:calc(40vh - 10%);pointer-events:none}.sidebar-wrapper .menu-items{padding:10px}.sidebar-wrapper>nav{visibility:visible;opacity:1;transition-property:margin-left,opacity;transition:.25s;margin-left:0;background-color:#fff;box-shadow:0 2px 10px #00000040;border:rgb(247,158,59) 2px solid;pointer-events:auto;width:28rem}.sidebar-wrapper>nav a{padding-top:.3rem;padding-left:1.5rem;text-decoration:none}.sidebar-wrapper>nav a:hover{color:#f79e3b;text-decoration:none}.sidebar-wrapper>nav.survey{border:rgb(0,63,95) 2px solid}.sidebar-wrapper>nav.survey a:hover{color:#53bbb4}nav.no-sidebar{margin-left:-80%;visibility:hidden;opacity:0}.toggle-btn,.toggle-btn-survey{background-color:#f79e3b;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-survey{background-color:#003f5f}.toggle-btn-wrapper{padding:.7rem .5rem .5rem}.toggle-btn-matrix,.toggle-btn-table{background-color:#fff;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-wrapper-matrix{padding:.7rem .5rem .5rem}.btn-nav-box{--bs-btn-color: rgb(0, 63, 95);--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid rgb(247,158,59)}.btn-login{--bs-btn-color: #fff;--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid rgb(247,158,59)}:root{--muted-alpha: .2;--color-of-the-year-0: #CE3D5B;--color-of-the-year-muted-0: rgba(206, 61, 91, var(--muted-alpha));--color-of-the-year-1: #1B90AC;--color-of-the-year-muted-1: rgba(27, 144, 172, var(--muted-alpha));--color-of-the-year-2: #FF8D5A;--color-of-the-year-muted-2: rgba(255, 141, 90, var(--muted-alpha));--color-of-the-year-3: #8C6896;--color-of-the-year-muted-3: rgba(140, 104, 150, var(--muted-alpha));--color-of-the-year-4: #1E82B6;--color-of-the-year-muted-4: rgba(30, 130, 182, var(--muted-alpha));--color-of-the-year-5: #13AC9C;--color-of-the-year-muted-5: rgba(19, 172, 156, var(--muted-alpha));--color-of-the-year-6: #5454A8;--color-of-the-year-muted-6: rgba(84, 84, 168, var(--muted-alpha));--color-of-the-year-7: #FF1790;--color-of-the-year-muted-7: rgba(255, 23, 144, var(--muted-alpha));--color-of-the-year-8: #0069b0;--color-of-the-year-muted-8: rgba(0, 105, 176, var(--muted-alpha))}.rounded-border{border-radius:25px;border:1px solid rgb(185,190,197)}.card{--bs-card-border-color: ""}.grow,.grey-container{display:flex;flex-direction:column;flex:1}.grey-container{max-width:100vw;background-color:#eaedf3}.wordwrap{max-width:75rem;word-wrap:break-word}.center{display:flex;align-items:center;justify-content:center;flex-direction:column}.center-text{display:flex;align-items:center;justify-content:center;padding-bottom:2%;flex-direction:column}.compendium-data-header{background-color:#fabe66;color:#fff;padding:10px}.compendium-data-banner{background-color:#fce7c9;color:#003f5f;padding:25px 5px 5px}.collapsible-box,.collapsible-box-table,.collapsible-box-matrix{margin:1rem;border:2px solid rgb(247,158,59);padding:10px;width:80rem;max-width:97%}.collapsible-box-matrix{border:2px solid lightblue}.collapsible-box-table{border:unset;border-bottom:2px solid lightblue}.collapsible-content{display:flex;flex-direction:column;opacity:1;padding:1rem}.collapsible-content.collapsed{opacity:0;max-height:0;visibility:hidden;overflow:hidden}.collapsible-column{display:flex;flex-direction:row;padding:1rem}.link-text,.link-text-underline{display:inline-block;text-decoration:none;color:#003753;width:fit-content}.link-text:hover,.link-text-underline:hover{color:#003753}.fake-divider{border:none;border-top:1px solid #939393;margin-top:.5rem}.section-title{color:#939393;margin-top:10px}.link-text-underline:hover{text-decoration:underline}.page-footer{min-height:100px;background-color:#3b536b;color:#fff}.footer-link{color:#fff;text-decoration:none}.footer-link:hover{color:#fff;text-decoration:underline}.filter-dropdown-item{padding-left:1rem;cursor:pointer}.filter-dropdown-item:hover{background-color:var(--bs-dropdown-link-hover-bg)}.nren-checkbox[type=checkbox]{border-radius:0;cursor:pointer}.nren-checkbox:checked{background-color:#3b536b;border-color:#3b536b}.nren-checkbox:focus:not(:focus-visible){box-shadow:none;border-color:#00000040}.nren-checkbox-label{cursor:pointer}.btn-compendium{--bs-btn-color: #fff;--bs-btn-bg: #003753;--bs-btn-border-color: #003753;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #3b536b;--bs-btn-hover-border-color: #3b536b;--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #f5f5f5;--bs-btn-active-bg: #3b536b;--bs-btn-active-border-color: #003753;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd;--bs-btn-border-radius: none}.btn-compendium-year,.btn-compendium-year-8,.btn-compendium-year-7,.btn-compendium-year-6,.btn-compendium-year-5,.btn-compendium-year-4,.btn-compendium-year-3,.btn-compendium-year-2,.btn-compendium-year-1,.btn-compendium-year-0{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none;--bs-btn-border-radius: none}.bg-color-of-the-year-0{background-color:var(--color-of-the-year-0)}.bg-muted-color-of-the-year-0{background-color:var(--color-of-the-year-muted-0)}.color-of-the-year-0{color:var(--color-of-the-year-0)}.color-of-the-year-muted-0{color:var(--color-of-the-year-muted-0)}.btn-compendium-year-0{--bs-btn-active-bg: var(--color-of-the-year-0)}.bg-color-of-the-year-1{background-color:var(--color-of-the-year-1)}.bg-muted-color-of-the-year-1{background-color:var(--color-of-the-year-muted-1)}.color-of-the-year-1{color:var(--color-of-the-year-1)}.color-of-the-year-muted-1{color:var(--color-of-the-year-muted-1)}.btn-compendium-year-1{--bs-btn-active-bg: var(--color-of-the-year-1)}.bg-color-of-the-year-2{background-color:var(--color-of-the-year-2)}.bg-muted-color-of-the-year-2{background-color:var(--color-of-the-year-muted-2)}.color-of-the-year-2{color:var(--color-of-the-year-2)}.color-of-the-year-muted-2{color:var(--color-of-the-year-muted-2)}.btn-compendium-year-2{--bs-btn-active-bg: var(--color-of-the-year-2)}.bg-color-of-the-year-3{background-color:var(--color-of-the-year-3)}.bg-muted-color-of-the-year-3{background-color:var(--color-of-the-year-muted-3)}.color-of-the-year-3{color:var(--color-of-the-year-3)}.color-of-the-year-muted-3{color:var(--color-of-the-year-muted-3)}.btn-compendium-year-3{--bs-btn-active-bg: var(--color-of-the-year-3)}.bg-color-of-the-year-4{background-color:var(--color-of-the-year-4)}.bg-muted-color-of-the-year-4{background-color:var(--color-of-the-year-muted-4)}.color-of-the-year-4{color:var(--color-of-the-year-4)}.color-of-the-year-muted-4{color:var(--color-of-the-year-muted-4)}.btn-compendium-year-4{--bs-btn-active-bg: var(--color-of-the-year-4)}.bg-color-of-the-year-5{background-color:var(--color-of-the-year-5)}.bg-muted-color-of-the-year-5{background-color:var(--color-of-the-year-muted-5)}.color-of-the-year-5{color:var(--color-of-the-year-5)}.color-of-the-year-muted-5{color:var(--color-of-the-year-muted-5)}.btn-compendium-year-5{--bs-btn-active-bg: var(--color-of-the-year-5)}.bg-color-of-the-year-6{background-color:var(--color-of-the-year-6)}.bg-muted-color-of-the-year-6{background-color:var(--color-of-the-year-muted-6)}.color-of-the-year-6{color:var(--color-of-the-year-6)}.color-of-the-year-muted-6{color:var(--color-of-the-year-muted-6)}.btn-compendium-year-6{--bs-btn-active-bg: var(--color-of-the-year-6)}.bg-color-of-the-year-7{background-color:var(--color-of-the-year-7)}.bg-muted-color-of-the-year-7{background-color:var(--color-of-the-year-muted-7)}.color-of-the-year-7{color:var(--color-of-the-year-7)}.color-of-the-year-muted-7{color:var(--color-of-the-year-muted-7)}.btn-compendium-year-7{--bs-btn-active-bg: var(--color-of-the-year-7)}.bg-color-of-the-year-8{background-color:var(--color-of-the-year-8)}.bg-muted-color-of-the-year-8{background-color:var(--color-of-the-year-muted-8)}.color-of-the-year-8{color:var(--color-of-the-year-8)}.color-of-the-year-muted-8{color:var(--color-of-the-year-muted-8)}.btn-compendium-year-8{--bs-btn-active-bg: var(--color-of-the-year-8)}.pill-shadow{box-shadow:0 0 0 .15rem #000c}.bg-color-of-the-year-blank{background-color:#0000}.charging-struct-table{table-layout:fixed}.charging-struct-table>* th,.charging-struct-table>* td{width:auto;word-wrap:break-word}.charging-struct-table thead th{position:sticky;top:-1px;background-color:#fff;z-index:1}.scrollable-table-year:before{content:"";position:absolute;top:0;width:2px;height:4.5rem;background-color:var(--before-color);left:1px}.colored-table>* th:not(:first-child)>span:before{content:"";position:absolute;top:0;width:2px;height:4.5rem;background-color:var(--before-color);left:-1px;height:2.5rem}.scrollable-horizontal{display:flex;flex-direction:row;overflow-x:auto}.scrollable-horizontal>*{position:relative}.colored-table{height:calc(100% - 3rem);margin-left:4px;border-collapse:collapse;z-index:1;width:auto}.colored-table table{width:65rem;table-layout:fixed}.colored-table thead th{color:#003f5f;background-color:#fff;padding:12px;font-weight:700;text-align:center;white-space:nowrap}.colored-table tbody td{background:none;padding:10px;border:unset;border-left:2px solid white;text-align:center}.colored-table tbody td:first-child{border-left:unset}.matrix-table{table-layout:fixed}.matrix-table th,.matrix-table td{width:8rem}.fixed-column{position:sticky;left:-1px;width:12rem!important;background-color:#fff!important}.matrix-table tbody tr:nth-of-type(2n) td{background-color:#d2ebf3}td,th{text-align:center;vertical-align:middle}.fit-max-content{min-width:max-content}.table-bg-highlighted tr:nth-child(2n){background-color:#66798b2d}.table-bg-highlighted tr:hover{background-color:#66798b85}.table-bg-highlighted li{list-style-type:square;list-style-position:inside}.compendium-table{border-collapse:separate;border-spacing:1.2em 0px}.table .blue-column,.table .nren-column{background-color:#e5f4f9}.table .orange-column,.table .year-column{background-color:#fdf2df}.nren-column{min-width:15%}.year-column{min-width:10%}.dotted-border{position:relative}.dotted-border:after{pointer-events:none;display:block;position:absolute;content:"";left:-20px;right:-10px;top:0;bottom:0;border-top:4px dotted #a7a7a7}.section-container{display:flex;margin-right:2.8em;float:right}.color-of-badge-0{background-color:#9d2872}.color-of-badge-1{background-color:#f1e04f}.color-of-badge-2{background-color:#db2a4c}.color-of-badge-3{background-color:#ed8d18}.color-of-badge-4{background-color:#89a679}.color-of-badge-blank{background-color:#0000}.bottom-tooltip,.bottom-tooltip-small:after,.bottom-tooltip-small{position:relative}.bottom-tooltip:after,.bottom-tooltip-small:after{display:none;position:absolute;padding:10px 15px;transform:translate(-50%,calc(100% + 10px));left:50%;bottom:0;width:20em;z-index:999;content:attr(data-description);white-space:pre-wrap;text-align:center;border-radius:10px;background-color:#d1f0ea}.bottom-tooltip-small:after{width:5em}.bottom-tooltip-small:hover:after,.bottom-tooltip:hover:after{display:block}.bottom-tooltip:before,.bottom-tooltip-small:before{display:none;position:absolute;transform:translate(-50%,calc(100% + 5px)) rotate(45deg);left:50%;bottom:0;z-index:99;width:15px;height:15px;content:" ";background-color:#d1f0ea}.bottom-tooltip:hover:before,.bottom-tooltip-small:hover:before{display:block}.matrix-border,.matrix-border-round{border:15px solid #00A0C6}.matrix-border-round{border-radius:.5rem}.service-table{table-layout:fixed;border-bottom:5px solid #ffb55a}.service-table>:not(caption)>*>*{border-bottom-width:5px}.service-table>* th,.service-table>* td{width:auto;word-wrap:break-word}.color-of-the-service-header-0{background:#d6e8f3;background:linear-gradient(180deg,#d6e8f3,#fff);padding:1.5rem;margin:10px}.color-of-the-service-0{color:transparent;stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-0{color:#0069b0;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-0{color:transparent;stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-1{background:#fcdbd5;background:linear-gradient(180deg,#fcdbd5,#fff);padding:1.5rem;margin:10px}.color-of-the-service-1{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-1{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-1{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-2{background:#d4f0d9;background:linear-gradient(180deg,#d4f0d9,#fff);padding:1.5rem;margin:10px}.color-of-the-service-2{color:transparent;stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-2{color:#00883d;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-2{color:transparent;stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-3{background:#fee8d0;background:linear-gradient(180deg,#fee8d0,#fff);padding:1.5rem;margin:10px}.color-of-the-service-3{color:transparent;stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-3{color:#f8831f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-3{color:transparent;stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-4{background:#d0e5f2;background:linear-gradient(180deg,#d0e5f2,#fff);padding:1.5rem;margin:10px}.color-of-the-service-4{color:transparent;stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-4{color:#0097be;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-4{color:transparent;stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-5{background:#d2f0e2;background:linear-gradient(180deg,#d2f0e2,#fff);padding:1.5rem;margin:10px}.color-of-the-service-5{color:transparent;stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-5{color:#1faa42;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-5{color:transparent;stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-6{background:#f3cfd3;background:linear-gradient(180deg,#f3cfd3,#fff);padding:1.5rem;margin:10px}.color-of-the-service-6{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-6{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-6{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-7{background:#c7ece9;background:linear-gradient(180deg,#c7ece9,#fff);padding:1.5rem;margin:10px}.color-of-the-service-7{color:transparent;stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-7{color:#009c8f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-7{color:transparent;stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-8{background:#fdcfd1;background:linear-gradient(180deg,#fdcfd1,#fff);padding:1.5rem;margin:10px}.color-of-the-service-8{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-8{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-8{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-9{background:#e9e4e3;background:linear-gradient(180deg,#e9e4e3,#fff);padding:1.5rem;margin:10px}.color-of-the-service-9{color:transparent;stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-9{color:#8f766e;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-9{color:transparent;stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-10{background:#fdc9e7;background:linear-gradient(180deg,#fdc9e7,#fff);padding:1.5rem;margin:10px}.color-of-the-service-10{color:transparent;stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-10{color:#ee0c70;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-10{color:transparent;stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-11{background:#e5e5e5;background:linear-gradient(180deg,#e5e5e5,#fff);padding:1.5rem;margin:10px}.color-of-the-service-11{color:transparent;stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-11{color:#85878a;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-11{color:transparent;stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-12{background:#cddcec;background:linear-gradient(180deg,#cddcec,#fff);padding:1.5rem;margin:10px}.color-of-the-service-12{color:transparent;stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-12{color:#262983;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-12{color:transparent;stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.bold-text{font-weight:700}.user-management-table{width:100%;table-layout:fixed;max-height:max(50vh,30rem)}@media (max-width: 1920px){.user-management-table{max-width:100vw}}.user-management-table>* th,.user-management-table>* td{word-wrap:break-word}.user-management-table thead th{position:sticky;top:-.1rem;background-color:#fff;z-index:1}.nav-link-entry{border-radius:2px;font-family:Open Sans,sans-serif;font-size:.9rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.nav-link{display:flex;-webkit-box-align:center;align-items:center;height:60px}.nav-link .nav-link-entry:hover{color:#003753;background-color:#b0cde1}.nav-link ul{line-height:1.3;text-transform:uppercase;list-style:none}.nav-link ul li{float:left}.nav-wrapper{display:flex;-webkit-box-align:center;align-items:center;height:60px}.header-nav{width:100%}.header-nav img{float:left;margin-right:15px}.header-nav ul{line-height:1.3;text-transform:uppercase;list-style:none}.header-nav ul li{float:left}.header-nav ul li a{border-radius:2px;float:left;font-family:Open Sans,sans-serif;font-size:.8rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.header-nav ul li a:hover{color:#003753;background-color:#b0cde1}.external-page-nav-bar{background-color:#003753;color:#b0cde1;height:60px}.app{display:flex;flex-direction:column;min-height:100vh}.preview-banner{background-color:pink;text-align:center;padding:2em}.downloadbutton{width:6rem;height:2.8rem;color:#fff;font-weight:700;border:none}.downloadbutton svg{margin-bottom:.25rem;margin-left:.1rem}.downloadimage{background-color:#00bfff;width:10rem}.downloadcsv{background-color:#071ddf}.downloadexcel{background-color:#33c481}.image-dropdown{width:10rem;display:inline-block}.image-options{background-color:#fff;position:absolute;width:10rem;display:flex;flex-direction:column;border:deepskyblue 1px solid;z-index:10}.imageoption{padding:.5rem;cursor:pointer;color:#003f5f;font-weight:700}.imageoption>span{margin-left:.25rem}.imageoption:after{content:"";display:block;border-bottom:grey 1px solid}.downloadcontainer{margin-bottom:2rem}.downloadcontainer>*{margin-right:.75rem}.no-list-style-type{list-style-type:none}.sd-element__title-expandable-svg{height:1.5rem;width:1.5rem;margin-right:.5rem}.sv-multipletext__cell{padding:.5rem}.hidden-checkbox-labels .sv-checkbox .sv-item__control-label{visibility:hidden}.survey-title{color:#2db394}.survey-description{color:#262261;font-weight:400}.survey-title:after{content:"";display:inline-block;width:.1rem;height:1em;background-color:#2db394;margin:0 .5rem;vertical-align:middle}.survey-title-nren{color:#262261}#sv-nav-complete{width:0px;height:0px;overflow:hidden;visibility:hidden}.sv-header-flex{display:flex;align-items:center;border-radius:2rem;color:#2db394;font-weight:700;padding-left:1rem!important;background-color:var(--answer-background-color, rgba(26, 179, 148, .2))}.sv-error-color-fix{background-color:var(--error-background-color, rgba(26, 179, 148, .2))}.sv-container-modern__title{display:none}.sv-title.sv-page__title{font-size:1.5rem;font-weight:700;color:#2db394;margin-bottom:.25rem}.sv-title.sv-panel__title{color:#262261}.sv-description{font-weight:700;color:#262261}.sv-text{border-bottom:.2rem dotted var(--text-border-color, #d4d4d4)}.verification{min-height:1.5rem;flex:0 0 auto;margin-left:auto;display:inline-block;border-radius:1rem;padding:0 1rem;margin-top:.25rem;margin-bottom:.25rem;margin-right:.4rem;box-shadow:0 0 2px 2px #2db394}.verification-required{font-size:.85rem;font-weight:700;text-transform:uppercase;background-color:#fff}.verification-ok{color:#fff;font-size:.85rem;font-weight:700;text-transform:uppercase;background-color:#2db394;pointer-events:none}.sv-action-bar-item.verification.verification-ok:hover{cursor:auto;background-color:#2db394}.survey-content,.survey-progress{padding-right:5rem;padding-left:5rem}.sv-question__num{white-space:nowrap}.survey-container{margin-top:2.5rem;margin-bottom:4rem;max-width:90rem}.survey-edit-buttons-block{display:flex;align-items:center;justify-content:center;padding:1em}.survey-edit-explainer{background-color:var(--error-background-color);color:#262261;padding:1em;font-weight:700;text-align:center}.survey-tooltip{position:relative}.survey-tooltip:after{display:none;position:absolute;padding:10px 15px;transform:translateY(calc(-100% - 10px));left:0;top:0;width:20em;z-index:999;content:attr(description);text-align:center;border-radius:10px;background-color:#d1f0ea}.survey-tooltip:hover:after{display:block}.survey-tooltip:before{display:none;position:absolute;transform:translate(-50%,calc(-100% - 5px)) rotate(45deg);left:50%;top:0;z-index:99;width:15px;height:15px;content:" ";background-color:#d1f0ea}.survey-tooltip:hover:before{display:block}.sortable{cursor:pointer}.sortable:hover{text-decoration:dotted underline}th.sortable[aria-sort=descending]:after{content:"▼";color:currentcolor;font-size:100%;margin-left:.25rem}th.sortable[aria-sort=ascending]:after{content:"▲";color:currentcolor;font-size:100%;margin-left:.25rem}
diff --git a/compendium_v2/static/survey.html b/compendium_v2/static/survey.html
new file mode 100644
index 0000000000000000000000000000000000000000..be92cdb1f83fbfb2de29e03cb5ed8e9f4418d59f
--- /dev/null
+++ b/compendium_v2/static/survey.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <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="stylesheet" crossorigin href="/static/main.css">
+  <link rel="stylesheet" crossorigin href="/static/survey.css">
+</head>
+<body>
+  <div id="root"></div>
+</body>
+</html>
\ No newline at end of file
diff --git a/compendium_v2/static/survey.js b/compendium_v2/static/survey.js
new file mode 100644
index 0000000000000000000000000000000000000000..745757505a94bcfcd7ebe12c553f6f36e7f46ebe
--- /dev/null
+++ b/compendium_v2/static/survey.js
@@ -0,0 +1,250 @@
+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,{})}));
diff --git a/compendium_v2/static/bundle.js.LICENSE.txt b/compendium_v2/static/third-party-licenses.txt
similarity index 99%
rename from compendium_v2/static/bundle.js.LICENSE.txt
rename to compendium_v2/static/third-party-licenses.txt
index 2cbc34fb1dbadb848b452e9f0c99ddb891abd949..9c35dfe5b11fc848a3eef99f20e17c50f2feef47 100644
--- a/compendium_v2/static/bundle.js.LICENSE.txt
+++ b/compendium_v2/static/third-party-licenses.txt
@@ -1,16 +1,16 @@
-Name: react
-Version: 19.0.0
+Name: @restart/hooks
+Version: 0.5.1
 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/
+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:
 ===
 
 MIT License
 
-Copyright (c) Meta Platforms, Inc. and affiliates.
+Copyright (c) 2018 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
@@ -32,19 +32,19 @@ SOFTWARE.
 
 ---
 
-Name: react-dom
-Version: 19.0.0
+Name: @restart/ui
+Version: 1.9.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: Utilities for creating robust overlay components
+Repository: git+https://github.com/react-restart/ui.git
+Author: Jason Quense <monastic.panic@gmail.com>
 License Copyright:
 ===
 
-MIT License
+The MIT License (MIT)
 
-Copyright (c) Meta Platforms, Inc. and affiliates.
+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
@@ -66,117 +66,55 @@ SOFTWARE.
 
 ---
 
-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/
-
----
-
-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/
-
----
-
-Name: @kurkle/color
-Version: 0.3.2
-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
-License Copyright:
-===
-
-The MIT License (MIT)
-
-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:
-
-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: chart.js
-Version: 4.4.7
+Name: react-bootstrap
+Version: 2.10.8
 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
+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:
 ===
 
 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.
+Copyright (c) 2014-present Stephen J. Collings, Matthew Honnibal, Pieter Vanderwerff
 
-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: chartjs-plugin-datalabels
-Version: 2.2.0
+Name: uncontrollable
+Version: 8.0.4
 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
+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) 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: scheduler
-Version: 0.25.0
-License: MIT
-Private: false
-Description: Cooperative scheduler for the browser environment.
-Repository: https://github.com/facebook/react.git
-Homepage: https://react.dev/
-License Copyright:
-===
-
-MIT License
-
-Copyright (c) Meta Platforms, Inc. and affiliates.
+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
@@ -198,59 +136,19 @@ SOFTWARE.
 
 ---
 
-Name: cookie
-Version: 1.0.2
+Name: dequal
+Version: 2.0.3
 License: MIT
 Private: false
-Description: HTTP server cookie parsing and serialization
+Description: A tiny (304B to 489B) utility for check for deep equality
 Repository: undefined
-Author: Roman Shtylman <shtylman@gmail.com>
-Contributors:
-  Douglas Christopher Wilson <doug@somethingdoug.com>
-License Copyright:
-===
-
-(The MIT License)
-
-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>
+Author: Luke Edwards <luke.edwards05@gmail.com> (https://lukeed.com)
 License Copyright:
 ===
 
-MIT License
+The MIT License (MIT)
 
-Copyright (c) React Training LLC 2015-2019
-Copyright (c) Remix Software Inc. 2020-2021
-Copyright (c) Shopify Inc. 2022-2023
+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
@@ -259,173 +157,532 @@ 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: classnames
-Version: 2.5.1
+Name: @popperjs/core
+Version: 2.11.8
 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: Tooltip and Popover Positioning Engine
+Repository: undefined
+Author: Federico Zivolo <federico.zivolo@gmail.com>
 License Copyright:
 ===
 
 The MIT License (MIT)
 
-Copyright (c) 2018 Jed Watson
+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:
+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: @babel/runtime
-Version: 7.26.0
-License: MIT
+Name: @react-aria/ssr
+Version: 3.9.7
+License: Apache-2.0
 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)
+Description: Spectrum UI components in React
+Repository: https://github.com/adobe/react-spectrum
 License Copyright:
 ===
 
-MIT License
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
 
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
+   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.
+
+      "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: @kurkle/color
+Version: 0.3.2
+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
+License Copyright:
+===
+
+The MIT License (MIT)
+
+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:
+
+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: chart.js
+Version: 4.4.7
+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
+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.
+
+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-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.
+
+---
+
+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: 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) 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
+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: 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
+Private: false
+Description: SVG React icons of popular icon packs using ES6 imports
+Repository: git+ssh://git@github.com:react-icons/react-icons.git
+Homepage: https://github.com/react-icons/react-icons#readme
+Author: Goran Gajic
+Contributors:
+  kamijin_fanta <kamijin@live.jp>
+License Copyright:
+===
+
+Copyright 2018 kamijin_fanta <kamijin@live.jp>
+
+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.
+
+---
+Icons are taken from the other projects
+so please check each project licences accordingly.
+
+Circum Icons - https://circumicons.com/
+License: MPL-2.0 license https://github.com/Klarr-Agency/Circum-Icons/blob/main/LICENSE
+
+Font Awesome 5 - https://fontawesome.com/
+License: CC BY 4.0 License https://creativecommons.org/licenses/by/4.0/
+
+Font Awesome 6 - https://fontawesome.com/
+License: CC BY 4.0 License https://creativecommons.org/licenses/by/4.0/
+
+Ionicons 4 - https://ionicons.com/
+License: MIT https://github.com/ionic-team/ionicons/blob/master/LICENSE
+
+Ionicons 5 - https://ionicons.com/
+License: MIT https://github.com/ionic-team/ionicons/blob/master/LICENSE
+
+Material Design icons - http://google.github.io/material-design-icons/
+License: Apache License Version 2.0 https://github.com/google/material-design-icons/blob/master/LICENSE
+
+Typicons - http://s-ings.com/typicons/
+License: CC BY-SA 3.0 https://creativecommons.org/licenses/by-sa/3.0/
+
+Github Octicons icons - https://octicons.github.com/
+License: MIT https://github.com/primer/octicons/blob/master/LICENSE
+
+Feather - https://feathericons.com/
+License: MIT https://github.com/feathericons/feather/blob/master/LICENSE
+
+Lucide - https://lucide.dev/
+License: ISC https://github.com/lucide-icons/lucide/blob/main/LICENSE
+
+Game Icons - https://game-icons.net/
+License: CC BY 3.0 https://creativecommons.org/licenses/by/3.0/
+
+Weather Icons - https://erikflowers.github.io/weather-icons/
+License: SIL OFL 1.1 http://scripts.sil.org/OFL
+
+Devicons - https://vorillaz.github.io/devicons/
+License: MIT https://opensource.org/licenses/MIT
+
+Ant Design Icons - https://github.com/ant-design/ant-design-icons
+License: MIT https://opensource.org/licenses/MIT
+
+Bootstrap Icons - https://github.com/twbs/icons
+License: MIT https://opensource.org/licenses/MIT
+
+Remix Icon - https://github.com/Remix-Design/RemixIcon
+License: Apache License Version 2.0 http://www.apache.org/licenses/
 
----
+Flat Color Icons - https://github.com/icons8/flat-color-icons
+License: MIT https://opensource.org/licenses/MIT
 
-Name: uncontrollable
-Version: 7.2.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>
-License Copyright:
-===
+Grommet-Icons - https://github.com/grommet/grommet-icons
+License: Apache License Version 2.0 http://www.apache.org/licenses/
 
-The MIT License (MIT)
+Heroicons - https://github.com/tailwindlabs/heroicons
+License: MIT https://opensource.org/licenses/MIT
 
-Copyright (c) 2015 Jason Quense
+Heroicons 2 - https://github.com/tailwindlabs/heroicons
+License: MIT https://opensource.org/licenses/MIT
 
-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:
+Simple Icons - https://simpleicons.org/
+License: CC0 1.0 Universal https://creativecommons.org/publicdomain/zero/1.0/
 
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
+Simple Line Icons - https://thesabbir.github.io/simple-line-icons/
+License: MIT https://opensource.org/licenses/MIT
 
-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.
+IcoMoon Free - https://github.com/Keyamoon/IcoMoon-Free
+License: CC BY 4.0 License https://github.com/Keyamoon/IcoMoon-Free/blob/master/License.txt
 
----
+BoxIcons - https://github.com/atisawd/boxicons
+License: MIT https://github.com/atisawd/boxicons/blob/master/LICENSE
 
-Name: react-bootstrap
-Version: 2.10.8
-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>
-License Copyright:
-===
+css.gg - https://github.com/astrit/css.gg
+License: MIT https://opensource.org/licenses/MIT
 
-The MIT License (MIT)
+VS Code Icons - https://github.com/microsoft/vscode-codicons
+License: CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
 
-Copyright (c) 2014-present Stephen J. Collings, Matthew Honnibal, Pieter Vanderwerff
+Tabler Icons - https://github.com/tabler/tabler-icons
+License: MIT https://opensource.org/licenses/MIT
 
-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:
+Themify Icons - https://github.com/lykmapipo/themify-icons
+License: MIT https://github.com/thecreation/standard-icons/blob/master/modules/themify-icons/LICENSE
 
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
+Radix Icons - https://icons.radix-ui.com
+License: MIT https://github.com/radix-ui/icons/blob/master/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.
+Phosphor Icons - https://github.com/phosphor-icons/core
+License: MIT https://github.com/phosphor-icons/core/blob/main/LICENSE
+
+Icons8 Line Awesome - https://icons8.com/line-awesome
+License: MIT https://github.com/icons8/line-awesome/blob/master/LICENSE.md
 
 ---
 
-Name: dom-helpers
-Version: 5.2.1
+Name: goober
+Version: 2.1.16
 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>
+Description: A less than 1KB css-in-js solution
+Repository: https://github.com/cristianbote/goober
+Author: Cristian <botecristian@yahoo.com>
 License Copyright:
 ===
 
-The MIT License (MIT)
+MIT License
 
-Copyright (c) 2015 Jason Quense
+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
@@ -447,19 +704,19 @@ SOFTWARE.
 
 ---
 
-Name: prop-types
-Version: 15.8.1
+Name: react-hot-toast
+Version: 2.5.1
 License: MIT
 Private: false
-Description: Runtime type checking for React props and similar objects.
+Description: Smoking hot React Notifications. Lightweight, customizable and beautiful by default.
 Repository: undefined
-Homepage: https://facebook.github.io/react/
+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
@@ -481,130 +738,103 @@ SOFTWARE.
 
 ---
 
-Name: react-transition-group
-Version: 4.4.5
-License: BSD-3-Clause
+Name: survey-core
+Version: 1.12.20
+License: MIT
 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.
+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/
 
-* 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.
+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/
 
 ---
 
-Name: @restart/ui
-Version: 1.9.3
+Name: lodash
+Version: 4.17.21
 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: 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:
 ===
 
-The MIT License (MIT)
+Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 
-Copyright (c) 2015 react-bootstrap
+Based on Underscore.js, copyright Jeremy Ashkenas,
+DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
 
-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:
+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
 
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
+The following license applies to all parts of this software except as
+documented below:
 
-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:
 
-Name: @restart/hooks
-Version: 0.4.16
-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>
-License Copyright:
-===
+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
+====
 
-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:
+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.
 
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
+CC0: http://creativecommons.org/publicdomain/zero/1.0/
 
-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.
+====
+
+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.
 
 ---
 
-Name: dequal
-Version: 2.0.3
+Name: react
+Version: 19.0.0
 License: MIT
 Private: false
-Description: A tiny (304B to 489B) utility for check for deep equality
-Repository: undefined
-Author: Luke Edwards <luke.edwards05@gmail.com> (https://lukeed.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) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
+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
@@ -613,66 +843,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.
-
----
-
-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.
+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-dom
+Version: 19.0.0
 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: React package for working with the DOM.
+Repository: https://github.com/facebook/react.git
+Homepage: https://react.dev/
 License Copyright:
 ===
 
 MIT License
 
-Copyright (c) 2013-present, Facebook, Inc.
+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
@@ -694,357 +890,328 @@ SOFTWARE.
 
 ---
 
-Name: @react-aria/ssr
-Version: 3.9.7
-License: Apache-2.0
+Name: scheduler
+Version: 0.25.0
+License: MIT
 Private: false
-Description: Spectrum UI components in React
-Repository: https://github.com/adobe/react-spectrum
+Description: Cooperative scheduler for the browser environment.
+Repository: https://github.com/facebook/react.git
+Homepage: https://react.dev/
 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.
+MIT License
 
-   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.
+Copyright (c) Meta Platforms, Inc. and affiliates.
 
-   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.
+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:
 
-   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.
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
 
-   END OF TERMS AND CONDITIONS
+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.
 
-   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.
+Name: cookie
+Version: 1.0.2
+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>
+License Copyright:
+===
 
-   Copyright 2019 Adobe
+(The MIT License)
 
-   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
+Copyright (c) 2012-2014 Roman Shtylman <shtylman@gmail.com>
+Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
 
-       http://www.apache.org/licenses/LICENSE-2.0
+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:
 
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
+The 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
+Name: react-router
+Version: 7.1.3
 License: MIT
 Private: false
-Description: SVG React icons of popular icon packs using ES6 imports
-Repository: git+ssh://git@github.com:react-icons/react-icons.git
-Homepage: https://github.com/react-icons/react-icons#readme
-Author: Goran Gajic
-Contributors:
-  kamijin_fanta <kamijin@live.jp>
+Description: Declarative routing for React
+Repository: https://github.com/remix-run/react-router
+Author: Remix Software <hello@remix.run>
 License Copyright:
 ===
 
-Copyright 2018 kamijin_fanta <kamijin@live.jp>
+MIT License
 
-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:
+Copyright (c) React Training LLC 2015-2019
+Copyright (c) Remix Software Inc. 2020-2021
+Copyright (c) Shopify Inc. 2022-2023
 
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of 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 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 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.
 
 ---
-Icons are taken from the other projects
-so please check each project licences accordingly.
 
-Circum Icons - https://circumicons.com/
-License: MPL-2.0 license https://github.com/Klarr-Agency/Circum-Icons/blob/main/LICENSE
+Name: classnames
+Version: 2.5.1
+License: MIT
+Private: false
+Description: A simple utility for conditionally joining classNames together
+Repository: git+https://github.com/JedWatson/classnames.git
+Author: Jed Watson
+License Copyright:
+===
 
-Font Awesome 5 - https://fontawesome.com/
-License: CC BY 4.0 License https://creativecommons.org/licenses/by/4.0/
+The MIT License (MIT)
 
-Font Awesome 6 - https://fontawesome.com/
-License: CC BY 4.0 License https://creativecommons.org/licenses/by/4.0/
+Copyright (c) 2018 Jed Watson
 
-Ionicons 4 - https://ionicons.com/
-License: MIT https://github.com/ionic-team/ionicons/blob/master/LICENSE
+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:
 
-Ionicons 5 - https://ionicons.com/
-License: MIT https://github.com/ionic-team/ionicons/blob/master/LICENSE
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
 
-Material Design icons - http://google.github.io/material-design-icons/
-License: Apache License Version 2.0 https://github.com/google/material-design-icons/blob/master/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.
 
-Typicons - http://s-ings.com/typicons/
-License: CC BY-SA 3.0 https://creativecommons.org/licenses/by-sa/3.0/
+---
 
-Github Octicons icons - https://octicons.github.com/
-License: MIT https://github.com/primer/octicons/blob/master/LICENSE
+Name: @babel/runtime
+Version: 7.26.0
+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:
+===
 
-Feather - https://feathericons.com/
-License: MIT https://github.com/feathericons/feather/blob/master/LICENSE
+MIT License
 
-Lucide - https://lucide.dev/
-License: ISC https://github.com/lucide-icons/lucide/blob/main/LICENSE
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
 
-Game Icons - https://game-icons.net/
-License: CC BY 3.0 https://creativecommons.org/licenses/by/3.0/
+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:
 
-Weather Icons - https://erikflowers.github.io/weather-icons/
-License: SIL OFL 1.1 http://scripts.sil.org/OFL
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
 
-Devicons - https://vorillaz.github.io/devicons/
-License: MIT https://opensource.org/licenses/MIT
+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.
 
-Ant Design Icons - https://github.com/ant-design/ant-design-icons
-License: MIT https://opensource.org/licenses/MIT
+---
 
-Bootstrap Icons - https://github.com/twbs/icons
-License: MIT https://opensource.org/licenses/MIT
+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:
+===
 
-Remix Icon - https://github.com/Remix-Design/RemixIcon
-License: Apache License Version 2.0 http://www.apache.org/licenses/
+The MIT License (MIT)
 
-Flat Color Icons - https://github.com/icons8/flat-color-icons
-License: MIT https://opensource.org/licenses/MIT
+Copyright (c) 2015 Jason Quense
 
-Grommet-Icons - https://github.com/grommet/grommet-icons
-License: Apache License Version 2.0 http://www.apache.org/licenses/
+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:
 
-Heroicons - https://github.com/tailwindlabs/heroicons
-License: MIT https://opensource.org/licenses/MIT
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
 
-Heroicons 2 - https://github.com/tailwindlabs/heroicons
-License: MIT https://opensource.org/licenses/MIT
+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.
 
-Simple Icons - https://simpleicons.org/
-License: CC0 1.0 Universal https://creativecommons.org/publicdomain/zero/1.0/
+---
 
-Simple Line Icons - https://thesabbir.github.io/simple-line-icons/
-License: MIT https://opensource.org/licenses/MIT
+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:
+===
+
+MIT License
+
+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
+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.
 
-IcoMoon Free - https://github.com/Keyamoon/IcoMoon-Free
-License: CC BY 4.0 License https://github.com/Keyamoon/IcoMoon-Free/blob/master/License.txt
+---
 
-BoxIcons - https://github.com/atisawd/boxicons
-License: MIT https://github.com/atisawd/boxicons/blob/master/LICENSE
+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:
+===
 
-css.gg - https://github.com/astrit/css.gg
-License: MIT https://opensource.org/licenses/MIT
+BSD 3-Clause License
 
-VS Code Icons - https://github.com/microsoft/vscode-codicons
-License: CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
+Copyright (c) 2018, React Community
+Forked from React (https://github.com/facebook/react) Copyright 2013-present, Facebook, Inc.
+All rights reserved.
 
-Tabler Icons - https://github.com/tabler/tabler-icons
-License: MIT https://opensource.org/licenses/MIT
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
 
-Themify Icons - https://github.com/lykmapipo/themify-icons
-License: MIT https://github.com/thecreation/standard-icons/blob/master/modules/themify-icons/LICENSE
+* Redistributions of source code must retain the above copyright notice, this
+  list of conditions and the following disclaimer.
 
-Radix Icons - https://icons.radix-ui.com
-License: MIT https://github.com/radix-ui/icons/blob/master/LICENSE
+* 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.
 
-Phosphor Icons - https://github.com/phosphor-icons/core
-License: MIT https://github.com/phosphor-icons/core/blob/main/LICENSE
+* 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.
 
-Icons8 Line Awesome - https://icons8.com/line-awesome
-License: MIT https://github.com/icons8/line-awesome/blob/master/LICENSE.md
+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: react-chartjs-2
-Version: 5.3.0
+Name: warning
+Version: 4.0.3
 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
+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:
 ===
 
-Copyright 2020 Jeremy Ayerst
+MIT License
 
-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:
+Copyright (c) 2013-present, Facebook, Inc.
 
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of 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 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 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.
 
 ---
 
@@ -1259,171 +1426,4 @@ License Copyright:
    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: html-to-image
-Version: 1.11.11
-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>
-License Copyright:
-===
-
-MIT License
-
-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
-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: goober
-Version: 2.1.16
-License: MIT
-Private: false
-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) 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
-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-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:
-===
-
-MIT License
-
-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
-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: 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:
-===
-
-Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
-
-Based on Underscore.js, copyright Jeremy Ashkenas,
-DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
-
-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
-
-The following license applies to all parts of this software except as
-documented 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:
-
-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.
-
-====
-
-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.
-
-CC0: http://creativecommons.org/publicdomain/zero/1.0/
-
-====
-
-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
+   limitations under the License.
\ No newline at end of file
diff --git a/setup.py b/setup.py
index 490b4ef9117bcf4078941b65f16c03734b1c0201..f601815584b2fa6684de16693ce80460d4790bcf 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
 
 setup(
     name='compendium-v2',
-    version="0.86",
+    version="0.87",
     author='GEANT',
     author_email='swd@geant.org',
     description='Flask and React project for displaying '