From 2ec817ce8faf54c6c1a5b9e1388a79b2b3e96222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Sun, 8 Oct 2023 09:34:33 +0000 Subject: [PATCH 01/32] docker: nginx loading page --- deploy/enterprise/Dockerfile | 12 +- deploy/enterprise/docker-compose.yml | 1 + .../enterprise/fs/opt/steedos/entrypoint.sh | 110 +++++++++++++++++- .../fs/opt/steedos/prepare-image.mjs | 28 +++++ deploy/enterprise/fs/opt/steedos/run-nginx.sh | 2 +- .../opt/steedos/templates/nginx-app.conf.sh | 5 +- .../templates/steedos_initializing.html | 87 ++++++++++++++ .../steedos/templates/steedos_starting.html | 87 ++++++++++++++ 8 files changed, 322 insertions(+), 10 deletions(-) create mode 100644 deploy/enterprise/fs/opt/steedos/prepare-image.mjs create mode 100644 deploy/enterprise/fs/opt/steedos/templates/steedos_initializing.html create mode 100644 deploy/enterprise/fs/opt/steedos/templates/steedos_starting.html diff --git a/deploy/enterprise/Dockerfile b/deploy/enterprise/Dockerfile index 0036c6abbd..9575eb78ac 100644 --- a/deploy/enterprise/Dockerfile +++ b/deploy/enterprise/Dockerfile @@ -101,12 +101,19 @@ RUN rm -rf \ COPY ./fs/etc /etc COPY ./fs/opt /opt +# Set workdir to /opt/steedos +WORKDIR /opt/steedos + +# ------------------------------------------------------------------------ +ENV TMP /tmp/steedos +ENV NGINX_WWW_PATH="$TMP/www" RUN cd - \ && chmod 0644 /etc/cron.d/* \ && chmod +x entrypoint.sh renew-certificate.sh healthcheck.sh templates/nginx-app.conf.sh /watchtower-hooks/*.sh \ # Disable setuid/setgid bits for the files inside container. - && find / \( -path /proc -prune \) -o \( \( -perm -2000 -o -perm -4000 \) -print -exec chmod -s '{}' + \) || true + && find / \( -path /proc -prune \) -o \( \( -perm -2000 -o -perm -4000 \) -print -exec chmod -s '{}' + \) || true \ + && node prepare-image.mjs ENV PATH /opt/steedos/utils/node_modules/.bin:/opt/java/bin:$PATH @@ -118,9 +125,6 @@ LABEL com.centurylinklabs.watchtower.lifecycle.pre-update=/watchtower-hooks/pre- ENV ROOT_URL=http://127.0.0.1:3000 \ NODE_ENV=production -# ------------------------------------------------------------------------ -ENV TMP /tmp/steedos - # Define volumes - Service Layer VOLUME [ "/steedos-stacks" ] diff --git a/deploy/enterprise/docker-compose.yml b/deploy/enterprise/docker-compose.yml index 4ef57a60a0..9ea3d0b354 100644 --- a/deploy/enterprise/docker-compose.yml +++ b/deploy/enterprise/docker-compose.yml @@ -12,6 +12,7 @@ services: - "80:80" - "443:443" - "3000:3000" + - "9001:9001" environment: - ROOT_URL=http://127.0.0.1:3000 - STEEDOS_LICENSE=trial diff --git a/deploy/enterprise/fs/opt/steedos/entrypoint.sh b/deploy/enterprise/fs/opt/steedos/entrypoint.sh index 1b5fa10ae5..7adaee32bc 100755 --- a/deploy/enterprise/fs/opt/steedos/entrypoint.sh +++ b/deploy/enterprise/fs/opt/steedos/entrypoint.sh @@ -7,7 +7,7 @@ stacks_path=/steedos-stacks export SUPERVISORD_CONF_TARGET="$TMP/supervisor-conf.d/" # export for use in supervisord.conf export MONGODB_TMP_KEY_PATH="$TMP/mongodb-key" # export for use in supervisor process mongodb.conf -mkdir -pv "$SUPERVISORD_CONF_TARGET" +mkdir -pv "$SUPERVISORD_CONF_TARGET" "$NGINX_WWW_PATH" init_env_file() { CONF_PATH="/steedos-stacks/configuration" @@ -150,6 +150,84 @@ use-mongodb-key() { } +# Keep Let's Encrypt directory persistent +mount_letsencrypt_directory() { + echo "Mounting Let's encrypt directory" + rm -rf /etc/letsencrypt + mkdir -p /steedos-stacks/{letsencrypt,ssl} + ln -s /steedos-stacks/letsencrypt /etc/letsencrypt +} + +is_empty_directory() { + [[ -d $1 && -z "$(ls -A "$1")" ]] +} + +check_setup_custom_ca_certificates() { + # old, deprecated, should be removed. + local stacks_ca_certs_path + stacks_ca_certs_path="$stacks_path/ca-certs" + + local container_ca_certs_path + container_ca_certs_path="/usr/local/share/ca-certificates" + + if [[ -d $stacks_ca_certs_path ]]; then + if [[ ! -L $container_ca_certs_path ]]; then + if is_empty_directory "$container_ca_certs_path"; then + rmdir -v "$container_ca_certs_path" + else + echo "The 'ca-certificates' directory inside the container is not empty. Please clear it and restart to use certs from 'stacks/ca-certs' directory." >&2 + return + fi + fi + + ln --verbose --force --symbolic --no-target-directory "$stacks_ca_certs_path" "$container_ca_certs_path" + + elif [[ ! -e $container_ca_certs_path ]]; then + rm -vf "$container_ca_certs_path" # If it exists as a broken symlink, this will be needed. + mkdir -v "$container_ca_certs_path" + + fi + + update-ca-certificates --fresh +} + +setup-custom-ca-certificates() ( + local stacks_ca_certs_path="$stacks_path/ca-certs" + local store="$TMP/cacerts" + local opts_file="$TMP/java-cacerts-opts" + + rm -f "$store" "$opts_file" + + if [[ -n "$(ls "$stacks_ca_certs_path"/*.pem 2>/dev/null)" ]]; then + echo "Looks like you have some '.pem' files in your 'ca-certs' folder. Please rename them to '.crt' to be picked up automatically.". + fi + + if ! [[ -d "$stacks_ca_certs_path" && "$(find "$stacks_ca_certs_path" -maxdepth 1 -type f -name '*.crt' | wc -l)" -gt 0 ]]; then + echo "No custom CA certificates found." + return + fi + + # Import the system CA certificates into the store. + keytool -importkeystore \ + -srckeystore /opt/java/lib/security/cacerts \ + -destkeystore "$store" \ + -srcstorepass changeit \ + -deststorepass changeit + + # Add the custom CA certificates to the store. + find "$stacks_ca_certs_path" -maxdepth 1 -type f -name '*.crt' \ + -exec keytool -import -noprompt -keystore "$store" -file '{}' -storepass changeit ';' + + { + echo "-Djavax.net.ssl.trustStore=$store" + echo "-Djavax.net.ssl.trustStorePassword=changeit" + } > "$opts_file" + + # Get certbot to use the combined trusted CA certs file. + export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt +) + + configure_supervisord() { local supervisord_conf_source="/opt/steedos/templates/supervisord" if [[ -n "$(ls -A "$SUPERVISORD_CONF_TARGET")" ]]; then @@ -176,6 +254,33 @@ configure_supervisord() { } +init_loading_pages(){ + local starting_page="/opt/steedos/templates/steedos_starting.html" + local initializing_page="/opt/steedos/templates/steedos_initializing.html" + local editor_load_page="$NGINX_WWW_PATH/loading.html" + cp "$initializing_page" "$NGINX_WWW_PATH/index.html" + # TODO: Also listen on 443, if HTTP certs are available. + cat < "$TMP/nginx-app.conf" + server { + listen 80 default_server; + location / { + try_files \$uri \$uri/ /index.html =404; + } + } +EOF + # Start nginx page to display the Steedos is Initializing page + nginx + # Update editor nginx page for starting page + cp "$starting_page" "$editor_load_page" +} + +check_setup_custom_ca_certificates +setup-custom-ca-certificates + +mount_letsencrypt_directory + +# Main Section +init_loading_pages init_env_file check_mongodb_uri @@ -202,5 +307,8 @@ mkdir -p /steedos-stacks/data/{backup,restore} # Create sub-directory to store services log in the container mounting folder mkdir -p /steedos-stacks/logs/{supervisor,steedos,cron,mongodb,redis,nginx,unpkg} +# Stop nginx gracefully +nginx -s quit + # Handle CMD command exec "$@" \ No newline at end of file diff --git a/deploy/enterprise/fs/opt/steedos/prepare-image.mjs b/deploy/enterprise/fs/opt/steedos/prepare-image.mjs new file mode 100644 index 0000000000..b583ec3803 --- /dev/null +++ b/deploy/enterprise/fs/opt/steedos/prepare-image.mjs @@ -0,0 +1,28 @@ +import * as fs from "fs/promises"; + +const TMP = process.env.TMP; +const NGINX_WWW_PATH = process.env.NGINX_WWW_PATH; +console.log(TMP, NGINX_WWW_PATH) + +async function applyNginxChanges() { + const contents = await fs.readFile("/etc/nginx/nginx.conf", "utf8") + + const modContents = contents + .replace("pid /run/nginx.pid;", `pid ${TMP}/nginx.pid;`) + .replace("# server_tokens off;", "server_tokens off; more_set_headers 'Server: ';") + .replace("gzip on;", "gzip on; gzip_types *;") + .replace("include /etc/nginx/conf.d/*.conf;", [ + "include /etc/nginx/conf.d/*.conf;", + `include ${TMP}/nginx-app.conf;`, + `root ${NGINX_WWW_PATH};`, + ].join("\n")); + + await Promise.all([ + fs.writeFile("/etc/nginx/nginx.conf.original", contents), + fs.writeFile("/etc/nginx/nginx.conf", modContents), + fs.rm("/etc/nginx/sites-enabled", { recursive: true }), + fs.rm("/etc/nginx/conf.d", { recursive: true }), + ]) +} + +await applyNginxChanges(); diff --git a/deploy/enterprise/fs/opt/steedos/run-nginx.sh b/deploy/enterprise/fs/opt/steedos/run-nginx.sh index ba0e6750db..52c65e0a2d 100755 --- a/deploy/enterprise/fs/opt/steedos/run-nginx.sh +++ b/deploy/enterprise/fs/opt/steedos/run-nginx.sh @@ -65,7 +65,7 @@ if [[ -n ${STEEDOS_CUSTOM_DOMAIN-} ]] && [[ -z ${DYNO-} ]]; then fi fi -bash /opt/steedos/templates/nginx-app.conf.sh "$use_https" "${STEEDOS_CUSTOM_DOMAIN-}" > /etc/nginx/sites-available/default +/opt/steedos/templates/nginx-app.conf.sh "$use_https" "${STEEDOS_CUSTOM_DOMAIN-}" apply-env-vars() { original="$1" diff --git a/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh b/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh index 405db3d8a1..045ff95007 100755 --- a/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh +++ b/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh @@ -22,7 +22,7 @@ additional_downstream_headers=' add_header X-Content-Type-Options "nosniff"; ' -cat < "$TMP/nginx-app.conf" map \$http_x_forwarded_proto \$origin_scheme { default \$http_x_forwarded_proto; '' \$scheme; @@ -41,9 +41,6 @@ map \$http_forwarded \$final_forwarded { # redirect log to stdout for supervisor to capture access_log /dev/stdout; -server_tokens off; -more_set_headers 'Server: '; - server { $( diff --git a/deploy/enterprise/fs/opt/steedos/templates/steedos_initializing.html b/deploy/enterprise/fs/opt/steedos/templates/steedos_initializing.html new file mode 100644 index 0000000000..dd502be083 --- /dev/null +++ b/deploy/enterprise/fs/opt/steedos/templates/steedos_initializing.html @@ -0,0 +1,87 @@ + + + + + + + Steedos + + +
+

+ Please wait +

+

Steedos is initializing. This might take a few minutes.

+
+
+ + + + diff --git a/deploy/enterprise/fs/opt/steedos/templates/steedos_starting.html b/deploy/enterprise/fs/opt/steedos/templates/steedos_starting.html new file mode 100644 index 0000000000..10b066b28a --- /dev/null +++ b/deploy/enterprise/fs/opt/steedos/templates/steedos_starting.html @@ -0,0 +1,87 @@ + + + + + + + Steedos + + +
+

+ Steedos is starting. +

+

Please wait until Steedos is ready. This process usually takes a minute.

+
+
+ + + + From 63cf663ac790c20716578101aa518bc93f62b2df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Sun, 8 Oct 2023 09:49:23 +0000 Subject: [PATCH 02/32] =?UTF-8?q?docker:=20=E6=94=AF=E6=8C=81=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=20PORT=20=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/enterprise/app/platform/steedos.config.js | 2 ++ deploy/enterprise/fs/opt/steedos/entrypoint.sh | 2 +- deploy/enterprise/fs/opt/steedos/run-with-env.sh | 2 -- deploy/enterprise/fs/opt/steedos/templates/docker.env.sh | 2 -- deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/deploy/enterprise/app/platform/steedos.config.js b/deploy/enterprise/app/platform/steedos.config.js index 4b276d9301..aa96c31bfe 100644 --- a/deploy/enterprise/app/platform/steedos.config.js +++ b/deploy/enterprise/app/platform/steedos.config.js @@ -1,3 +1,5 @@ +process.env.PORT = 3000; // reset port for meteor + module.exports = { // Namespace of nodes to segment your nodes on the same network. namespace: "steedos", diff --git a/deploy/enterprise/fs/opt/steedos/entrypoint.sh b/deploy/enterprise/fs/opt/steedos/entrypoint.sh index 7adaee32bc..442785ab77 100755 --- a/deploy/enterprise/fs/opt/steedos/entrypoint.sh +++ b/deploy/enterprise/fs/opt/steedos/entrypoint.sh @@ -262,7 +262,7 @@ init_loading_pages(){ # TODO: Also listen on 443, if HTTP certs are available. cat < "$TMP/nginx-app.conf" server { - listen 80 default_server; + listen ${PORT:-80} default_server; location / { try_files \$uri \$uri/ /index.html =404; } diff --git a/deploy/enterprise/fs/opt/steedos/run-with-env.sh b/deploy/enterprise/fs/opt/steedos/run-with-env.sh index b43aad1687..9e8ffa99fd 100755 --- a/deploy/enterprise/fs/opt/steedos/run-with-env.sh +++ b/deploy/enterprise/fs/opt/steedos/run-with-env.sh @@ -8,8 +8,6 @@ set -o allexport . "$PRE_DEFINED_ENV_PATH" set +o allexport -export PORT=3000 - if [[ -z "${STEEDOS_UNPKG_URL}" ]] && [[ ! -z "${STEEDOS_LICENSE}" ]]; then export STEEDOS_UNPKG_URL=/unpkg fi diff --git a/deploy/enterprise/fs/opt/steedos/templates/docker.env.sh b/deploy/enterprise/fs/opt/steedos/templates/docker.env.sh index 3aeba98ea7..99f3277b05 100755 --- a/deploy/enterprise/fs/opt/steedos/templates/docker.env.sh +++ b/deploy/enterprise/fs/opt/steedos/templates/docker.env.sh @@ -34,6 +34,4 @@ NPM_CACHE_ENABLED=true NPM_CACHE_FOLDER=/steedos-stacks/unpkg NPM_CACHE_PACKAGE_CONTENT=true -PORT=3000 - EOF \ No newline at end of file diff --git a/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh b/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh index 045ff95007..ca46c535b6 100755 --- a/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh +++ b/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh @@ -66,7 +66,7 @@ server { " else echo " - listen 80 default_server; + listen ${PORT:-80} default_server; server_name $custom_domain; " fi From c96c64250a801de47619bd100d8eb30c8e8e7778 Mon Sep 17 00:00:00 2001 From: baozhoutao Date: Sun, 8 Oct 2023 17:59:55 +0800 Subject: [PATCH 03/32] =?UTF-8?q?fix=20[Bug]:=20=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E4=B8=AD=E7=9A=84url=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E9=94=99=E8=AF=AF,=E5=AF=BC=E8=87=B4=E6=89=93=E5=BC=80?= =?UTF-8?q?=E5=90=8E=E4=B8=80=E7=89=87=E7=A9=BA=E7=99=BD=20#5530?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../steedos-creator/client/router.coffee | 4 +++ .../programs/server/packages/modules.js | 26 +++++++++---------- ...95cec1971530e01efde31e17b7abedc91f0ccc.js} | 4 +-- ...1530e01efde31e17b7abedc91f0ccc.stats.json} | 14 +++++----- .../programs/web.browser.legacy/program.json | 18 ++++++------- ...95cec1971530e01efde31e17b7abedc91f0ccc.js} | 4 +-- ...1530e01efde31e17b7abedc91f0ccc.stats.json} | 14 +++++----- .../bundle/programs/web.browser/program.json | 18 ++++++------- ...beb1dfd71e2de82e55a2456aa966c89fce16f8.js} | 4 +-- ...1e2de82e55a2456aa966c89fce16f8.stats.json} | 14 +++++----- .../bundle/programs/web.cordova/program.json | 18 ++++++------- server/bundle/star.json | 2 +- 12 files changed, 72 insertions(+), 68 deletions(-) rename server/bundle/programs/web.browser.legacy/{c73dd6e9600b200183532dd4ef34ec29e899a7d3.js => a295cec1971530e01efde31e17b7abedc91f0ccc.js} (96%) rename server/bundle/programs/web.browser.legacy/{c73dd6e9600b200183532dd4ef34ec29e899a7d3.stats.json => a295cec1971530e01efde31e17b7abedc91f0ccc.stats.json} (99%) rename server/bundle/programs/web.browser/{c73dd6e9600b200183532dd4ef34ec29e899a7d3.js => a295cec1971530e01efde31e17b7abedc91f0ccc.js} (96%) rename server/bundle/programs/web.browser/{c73dd6e9600b200183532dd4ef34ec29e899a7d3.stats.json => a295cec1971530e01efde31e17b7abedc91f0ccc.stats.json} (99%) rename server/bundle/programs/web.cordova/{6f6ddc148c0255cf4538202c1a5a63349457c01d.js => e7beb1dfd71e2de82e55a2456aa966c89fce16f8.js} (97%) rename server/bundle/programs/web.cordova/{6f6ddc148c0255cf4538202c1a5a63349457c01d.stats.json => e7beb1dfd71e2de82e55a2456aa966c89fce16f8.stats.json} (99%) diff --git a/creator/packages/steedos-creator/client/router.coffee b/creator/packages/steedos-creator/client/router.coffee index 68b430acea..8fd48ab000 100644 --- a/creator/packages/steedos-creator/client/router.coffee +++ b/creator/packages/steedos-creator/client/router.coffee @@ -6,6 +6,10 @@ checkUserSigned = (context, redirect) -> app_id = context.params.app_id if (app_id != "-") && app_id && Session.get("app_id") != app_id Session.set("app_id", app_id) + else if app_id == '-' && !Session.get("app_id") + firstApp = Steedos.getFirstApp() + Session.set("app_id", firstApp.id) + return # listTreeCompany = localStorage.getItem("listTreeCompany") # if listTreeCompany diff --git a/server/bundle/programs/server/packages/modules.js b/server/bundle/programs/server/packages/modules.js index 5668bf7565..8b744778ba 100644 --- a/server/bundle/programs/server/packages/modules.js +++ b/server/bundle/programs/server/packages/modules.js @@ -463,7 +463,7 @@ module.useNode(); // module.exports = { "name": "@steedos/objectql", - "version": "2.5.15-beta.9", + "version": "2.5.15-beta.10", "main": "lib/index.js" }; @@ -490,7 +490,7 @@ module.useNode(); // module.exports = { "name": "@steedos/i18n", - "version": "2.5.15-beta.9", + "version": "2.5.15-beta.10", "main": "lib/index.js" }; @@ -517,7 +517,7 @@ module.useNode(); // module.exports = { "name": "@steedos/core", - "version": "2.5.15-beta.9", + "version": "2.5.15-beta.10", "main": "lib/index.js" }; @@ -544,7 +544,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-meteor-package-loader", - "version": "2.5.15-beta.9", + "version": "2.5.15-beta.10", "main": "index.js" }; @@ -571,7 +571,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-api", - "version": "2.5.15-beta.9", + "version": "2.5.15-beta.10", "main": "index.js" }; @@ -598,7 +598,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-metadata-server", - "version": "2.5.15-beta.9", + "version": "2.5.15-beta.10", "main": "index.js" }; @@ -625,7 +625,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-package-registry", - "version": "2.5.15-beta.9", + "version": "2.5.15-beta.10", "main": "package.service.js" }; @@ -652,7 +652,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-objectql", - "version": "2.5.15-beta.9", + "version": "2.5.15-beta.10", "main": "package.service.js" }; @@ -679,7 +679,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-ui", - "version": "2.5.15-beta.9", + "version": "2.5.15-beta.10", "main": "package.service.js" }; @@ -706,7 +706,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-pages", - "version": "2.5.15-beta.9", + "version": "2.5.15-beta.10", "main": "package.service.js" }; @@ -733,7 +733,7 @@ module.useNode(); // module.exports = { "name": "@steedos/router", - "version": "2.5.15-beta.9", + "version": "2.5.15-beta.10", "main": "lib/index.js" }; @@ -760,7 +760,7 @@ module.useNode(); // module.exports = { "name": "@steedos/auth", - "version": "2.5.15-beta.9", + "version": "2.5.15-beta.10", "main": "lib/index.js" }; @@ -787,7 +787,7 @@ module.useNode(); // module.exports = { "name": "@steedos/workflow", - "version": "2.5.15-beta.9", + "version": "2.5.15-beta.10", "main": "index.js" }; diff --git a/server/bundle/programs/web.browser.legacy/c73dd6e9600b200183532dd4ef34ec29e899a7d3.js b/server/bundle/programs/web.browser.legacy/a295cec1971530e01efde31e17b7abedc91f0ccc.js similarity index 96% rename from server/bundle/programs/web.browser.legacy/c73dd6e9600b200183532dd4ef34ec29e899a7d3.js rename to server/bundle/programs/web.browser.legacy/a295cec1971530e01efde31e17b7abedc91f0ccc.js index 8b1d33878c..8ab4a5bfb2 100644 --- a/server/bundle/programs/web.browser.legacy/c73dd6e9600b200183532dd4ef34ec29e899a7d3.js +++ b/server/bundle/programs/web.browser.legacy/a295cec1971530e01efde31e17b7abedc91f0ccc.js @@ -68,7 +68,7 @@ object-assign * Copyright 2011-2019 Twitter, Inc. * Licensed under the MIT license */ -if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,r=this,i;return e(this).one("bsTransitionEnd",(function(){n=!0})),setTimeout((function(){n||e(r).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};function r(t){return this.each((function(){var r=e(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),"string"==typeof t&&i[t].call(r)}))}n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.close=function(t){var r=e(this),i=r.attr("data-target");i||(i=(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var o=e(document).find(i);function s(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=r.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",s).emulateTransitionEnd(n.TRANSITION_DURATION):s())};var i=e.fn.alert;e.fn.alert=r,e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.isLoading=!1};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.button"),o="object"==typeof n&&n;i||r.data("bs.button",i=new t(this,o)),"toggle"==n?i.toggle():n&&i.setState(n)}))}t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var n="disabled",r=this.$element,i=r.is("input")?"val":"html",o=r.data();t+="Text",null==o.resetText&&r.data("resetText",r[i]()),setTimeout(e.proxy((function(){r[i](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n).prop(n,!1))}),this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var r=e.fn.button;e.fn.button=n,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=r,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var r=e(t.target).closest(".btn");n.call(r,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(jQuery),function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.carousel"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n),s="string"==typeof n?n:o.slide;i||r.data("bs.carousel",i=new t(this,o)),"number"==typeof n?i.to(n):s?i[s]():o.interval&&i.pause().cycle()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),r;if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var i,o=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(o)},t.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(n,r){var i=this.$element.find(".item.active"),o=r||this.getItemForDirection(n,i),s=this.interval,a="next"==n?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var f=o[0],c=e.Event("slide.bs.carousel",{relatedTarget:f,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=e(this.$indicators.children()[this.getItemIndex(o)]);l&&l.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:f,direction:a});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(n),"object"==typeof o&&o.length&&o[0].offsetWidth,i.addClass(a),o.addClass(a),i.one("bsTransitionEnd",(function(){o.removeClass([n,a].join(" ")).addClass("active"),i.removeClass(["active",a].join(" ")),u.sliding=!1,setTimeout((function(){u.$element.trigger(h)}),0)})).emulateTransitionEnd(t.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}};var r=e.fn.carousel;e.fn.carousel=n,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=r,this};var i=function(t){var r=e(this),i=r.attr("href");i&&(i=i.replace(/.*(?=#[^\s]+$)/,""));var o=r.attr("data-target")||i,s=e(document).find(o);if(s.hasClass("carousel")){var a=e.extend({},s.data(),r.data()),u=r.attr("data-slide-to");u&&(a.interval=!1),n.call(s,a),u&&s.data("bs.carousel").to(u),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var t=e(this);n.call(t,t.data())}))}))}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.$trigger=e('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var n,r=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(r)}function r(n){return this.each((function(){var r=e(this),i=r.data("bs.collapse"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n);!i&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),i||r.data("bs.collapse",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e;return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(n=i.data("bs.collapse"))&&n.transitioning)){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(r.call(i,"hide"),n||i.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var u=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[s](this.$element[0][u])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=e.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return i.call(this);this.$element[r](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,r){var i=e(r);this.addAriaAndCollapsedClass(n(i),i)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var i=e.fn.collapse;e.fn.collapse=r,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var i=e(this);i.attr("data-target")||t.preventDefault();var o=n(i),s,a=o.data("bs.collapse")?"toggle":i.data();r.call(o,a)}))}(jQuery),function(e){"use strict";var t=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(t){e(t).on("click.bs.dropdown",this.toggle)};function i(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r="#"!==n?e(document).find(n):null;return r&&r.length?r:t.parent()}function o(r){r&&3===r.which||(e(t).remove(),e(n).each((function(){var t=e(this),n=i(t),o={relatedTarget:this};n.hasClass("open")&&(r&&"click"==r.type&&/input|textarea/i.test(r.target.tagName)&&e.contains(n[0],r.target)||(n.trigger(r=e.Event("hide.bs.dropdown",o)),r.isDefaultPrevented()||(t.attr("aria-expanded","false"),n.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))})))}function s(t){return this.each((function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof t&&i[t].call(n)}))}r.VERSION="3.4.1",r.prototype.toggle=function(t){var n=e(this);if(!n.is(".disabled, :disabled")){var r=i(n),s=r.hasClass("open");if(o(),!s){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",o);var a={relatedTarget:this};if(r.trigger(t=e.Event("show.bs.dropdown",a)),t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(e.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var r=e(this);if(t.preventDefault(),t.stopPropagation(),!r.is(".disabled, :disabled")){var o=i(r),s=o.hasClass("open");if(!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(n).trigger("focus"),r.trigger("click");var a=" li:not(.disabled):visible a",u=o.find(".dropdown-menu"+a);if(u.length){var f=u.index(t.target);38==t.which&&f>0&&f--,40==t.which&&fdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},f.prototype.init=function(t,n,r){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var s=i[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",u="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},f.prototype.getDefaults=function(){return f.DEFAULTS},f.prototype.getOptions=function(n){var r=this.$element.data();for(var i in r)r.hasOwnProperty(i)&&-1!==e.inArray(i,t)&&delete r[i];return(n=e.extend({},this.getDefaults(),r,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=u(n.template,n.whiteList,n.sanitizeFn)),n},f.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,(function(e,r){n[e]!=r&&(t[e]=r)})),t},f.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout((function(){"in"==n.hoverState&&n.show()}),n.options.delay.show)}},f.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},f.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout((function(){"out"==n.hoverState&&n.hide()}),n.options.delay.hide)}},f.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var r=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,u=a.test(s);u&&(s=s.replace(a,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?i.appendTo(e(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),l=i[0].offsetWidth,h=i[0].offsetHeight;if(u){var d=s,p=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+h>p.bottom?"top":"top"==s&&c.top-hp.width?"left":"left"==s&&c.left-ls.top+s.height&&(i.top=s.top+s.height-u)}else{var f=t.left-o,c=t.left+o+n;fs.right&&(i.left=s.left+s.width-c)}return i},f.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},f.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},f.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},f.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},f.prototype.enable=function(){this.enabled=!0},f.prototype.disable=function(){this.enabled=!1},f.prototype.toggleEnabled=function(){this.enabled=!this.enabled},f.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},f.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},f.prototype.sanitizeHtml=function(e){return u(e,this.options.whiteList,this.options.sanitizeFn)};var l=e.fn.tooltip;e.fn.tooltip=c,e.fn.tooltip.Constructor=f,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=l,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");function n(n){return this.each((function(){var r=e(this),i=r.data("bs.popover"),o="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.popover",i=new t(this,o)),"string"==typeof n&&i[n]())}))}t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();if(this.options.html){var r=typeof n;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===r&&(n=this.sanitizeHtml(n))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===r?"html":"append"](n)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(n);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var r=e.fn.popover;e.fn.popover=n,e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=r,this}}(jQuery),function(e){"use strict";function t(n,r){this.$body=e(document.body),this.$scrollElement=e(n).is(document.body)?e(window):e(n),this.options=e.extend({},t.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each((function(){var r=e(this),i=r.data("bs.scrollspy"),o="object"==typeof n&&n;i||r.data("bs.scrollspy",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),i=t.data("target")||t.attr("href"),o=/^#./.test(i)&&e(i);return o&&o.length&&o.is(":visible")&&[[o[n]().top+r,i]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.getScrollHeight(),n=this.options.offset+t-this.$scrollElement.height(),r=this.offsets,i=this.targets,o=this.activeTarget,s;if(this.scrollHeight!=t&&this.refresh(),e>=n)return o!=(s=i[i.length-1])&&this.activate(s);if(o&&e=r[s]&&(void 0===r[s+1]||e .active"),s=i&&e.support.transition&&(o.length&&o.hasClass("fade")||!!r.find("> .fade").length);function a(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&s?o.one("bsTransitionEnd",a).emulateTransitionEnd(t.TRANSITION_DURATION):a(),o.removeClass("in")};var r=e.fn.tab;e.fn.tab=n,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=r,this};var i=function(t){t.preventDefault(),n.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(e){"use strict";var t=function(n,r){this.options=e.extend({},t.DEFAULTS,r);var i=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.affix"),o="object"==typeof n&&n;i||r.data("bs.affix",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,n,r){var i=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return i=e-r&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),r=this.options.offset,i=r.top,o=r.bottom,s=Math.max(e(document).height(),e(document.body).height());"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var a=this.getState(s,n,i,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var u="affix"+(a?"-"+a:""),f=e.Event(u+".bs.affix");if(this.$element.trigger(f),f.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-n-o})}};var r=e.fn.affix;e.fn.affix=n,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=r,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var t=e(this),r=t.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),n.call(t,r)}))}))}(jQuery)}}}},fibers:{"package.json":function e(t,n,e){e.exports={name:"fibers",version:"5.0.3",main:"fibers"}},"fibers.js":function e(t,n,e,r,i){if(process.fiberLib)e.exports=process.fiberLib;else{var o=t("fs"),s=t("path"),a=t("detect-libc");Math.random();var u=s.join(i,"bin",process.platform+"-"+process.arch+"-"+process.versions.modules+("linux"===process.platform?"-"+a.family:""),"fibers");try{process.fiberLib=e.exports=t(u).Fiber}catch(c){throw console.error("## There is an issue with `node-fibers` ##\n`"+u+".node` is missing.\n\nTry running this to fix the issue: "+process.execPath+" "+i.replace(" ","\\ ")+"/build"),console.error(c.stack||c.message||c),new Error("Missing binary. See message above.")}f(e.exports)}function f(e){try{var t=process.binding("async_wrap"),n;if(t.asyncIdStackSize instanceof Function)n=t.asyncIdStackSize;else{if(void 0===t.constants.kStackLength)throw new Error("Couldn't figure out how to get async stack size");l=t.constants.kStackLength,n=function(){return t.async_hook_fields[l]}}var r=t.popAsyncContext||t.popAsyncIds,i=t.pushAsyncContext||t.pushAsyncIds,o,s;if(!r||!i)throw new Error("Push/pop do not exist");o=void 0===t.constants.kExecutionAsyncId?t.constants.kCurrentAsyncId:t.constants.kExecutionAsyncId,s=void 0===t.constants.kTriggerAsyncId?t.constants.kCurrentTriggerId:t.constants.kTriggerAsyncId;var a=t.async_id_fields||t.async_uid_fields;function u(){for(var e=n(),t=new Array(e);e>0;--e){var i=a[o];t[e-1]={asyncId:i,triggerId:a[s]},r(i)}return t}function f(e){for(var t=0;t0)i.changeLanguage(e,r);else if(0!=a[u]){a[u]=0;var f=new XMLHttpRequest;f.overrideMimeType("application/json"),f.open("GET",u,!1),f.send(null),200===f.status?a[u]=1:a[u]=-1,n.addResourceBundle(e,s,JSON.parse(f.response)||{}),i.changeLanguage(e,r)}};n.changeLanguage=p;var g=function(e,t,n){return i.format(e,t,n)};n.format=g;var b=function(){return i.languages};n.getLanguages=b;var m=function(e,t){return i.loadLanguages(e,t)};n.loadLanguages=m;var v=function(e,t){return i.loadNamespaces(e,t)};n.loadNamespaces=v;var y=function(e,t){return i.on(e,t)};n.on=y;var _=function(e,t){return i.off(e,t)};n.off=_,r.__exportStar(t("./i18n/i18n"),n),r.__exportStar(t("./i18n/i18n.app"),n),r.__exportStar(t("./translations"),n)},i18n:{"i18n.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fallbackKeys=n.getObjectI18nTemplate=n.translationI18nObjects=n.addObjectsI18n=n.translationI18nObject=void 0;var r=t("../index"),i=t("underscore"),o=t("clone"),s="_",a="base",u="core",f="translation",c=function(e,t){var n={lng:t,ns:f};if((0,r.exists)(e,n))return(0,r._t)(e,n)},l=function(e){return"".concat(e,"__object")},h=function(e,t){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t)},d=function(e,t){var n=h(e,t);return"".concat(n).concat("_","inlineHelpText")},p=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","group").concat("_").concat(n)},g=function(e,t,n){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t).concat("_","options").concat("_").concat(n)},b=function(e,t){return"".concat(e).concat("_","action").concat("_").concat(t)},m=function(e,t){return"".concat(e).concat("_","listview").concat("_").concat(t)},v=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},y=function(e,t,n){var r=l(t);return c(r,e)||n||""},_=function(e,t,n,r,i){var o=h(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=_(e,a,n,r,i))}return s||r||""},w=function(e,t,n,r,i){var o=d(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=w(e,a,n,r,i))}return s||r||""},k=function(e,t,n,r){var i=p(t,n);return c(i,e)||r||""},j=function(e,t,n,r,i,o){var s=g(t,n,r),a=c(s,e);if(!a){var u=v(o);u&&"base"!=t&&"core"!=t&&(a=j(e,u,n,r,i,o))}return a||i||""},x=function(e,t,n,r,i){var o=b(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=x(e,a,n,r,i))}return s||r||""},S=function(e,t,n,r,i){var o=m(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=S(e,a,n,r,i))}return s||r||""},D=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},E=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;return e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(D(e))}))):n.push(D(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},A=function(e,t,n){n.label=y(e,t,n.label),i.each(n.fields,(function(r,o){if(r.label=_(e,t,o,r.label,n.datasource),r.inlineHelpText&&(r.inlineHelpText=w(e,t,o,r.inlineHelpText,n.datasource)),r.group&&(r.group=k(e,t,r.group,r.group)),r.options){var s=[];i.each(r.options,(function(r){if(i.has(r,"value")){var a=j(e,t,o,r.value,r.label,n.datasource);s.push(i.extend({},r,{label:a}))}else s.push(r)})),r.options=s}})),i.each(n.actions,(function(r,i){r.label=x(e,t,i,r.label,n.datasource)})),i.each(n.list_views,(function(r,i){r.label=S(e,t,i,r.label,n.datasource)}))};n.translationI18nObject=A;var C=function(e){i.each(e,(function(e){(0,r.addResourceBundle)(e.lng,f,e.data,!0,!0)}))};n.addObjectsI18n=C;var M=function(e,t){i.each(t,(function(t,r){(0,n.translationI18nObject)(e,r,t)}))};n.translationI18nObjects=M;var O=function(e,t,n){var r=o(n);E(r);var s={};return s[l(t)]=y(e,t,r.label),i.each(r.fields,(function(n,o){s[h(t,o)]=_(e,t,o,n.label),n.inlineHelpText&&(s[d(t,o)]=w(e,t,o,n.inlineHelpText,r.datasource)),n.group&&(s[p(t,n.group)]=k(e,t,n.group,n.group)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(s[g(t,o,n.value)]=j(e,t,o,n.value,n.label))}))})),i.each(r.actions,(function(n,r){s[b(t,r)]=x(e,t,r,n.label)})),i.each(r.list_views,(function(n,r){s[m(t,r)]=S(e,t,r,n.label)})),s};n.getObjectI18nTemplate=O,n.fallbackKeys={getObjectLabelKey:l,getObjectFieldLabelKey:h,getObjectFieldInlineHelpTextLabelKey:d,getObjectFieldGroupKey:p,getObjectFieldOptionsLabelKey:g,getObjectActionLabelKey:b,getObjectListviewLabelKey:m}},"i18n.app.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.appFallbackKeys=n.getAppI18nTemplate=n.translationI18nApps=n.translationI18nMenus=void 0;var r=t("../index"),i=t("underscore"),o=t("clone"),s="translation",a="_",u=function(e,t){var n={lng:t,ns:s};if((0,r.exists)(e,n))return(0,r._t)(e,n)},f=function(e){return"app".concat("_").concat(e).concat("_","name")},c=function(e){return"app".concat("_").concat(e).concat("_","description")},l=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","tab_group").concat("_").concat(n)},h=function(e){return"menu".concat("_").concat(e)},d=function(e){return"tab".concat("_").concat(e)},p=function(e,t,n){var r=f(t);return u(r,e)||n||""},g=function(e,t,n){var r=c(t);return u(r,e)||n||""},b=function(e,t,n){var r=h(t);return u(r,e)||n||""},m=function(e,t,r){r.label=p(e,t,r.label||r.name),r.description=g(e,t,r.description),(0,n.translationI18nMenus)(e,r.admin_menus)},v=function(e,t){i.each(t,(function(t){var n=b(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationI18nMenus=v;var y=function(e,t){i.each(t,(function(t,n){m(e,n,t)}))};n.translationI18nApps=y;var _=function(e,t,n){var r=o(n),s={};return s[f(t)]=p(e,t,r.label||r.name),s[c(t)]=g(e,t,r.description),i.each(r.admin_menus,(function(t){s[h(t._id)]=b(e,t._id,t.label||t.name)})),s};n.getAppI18nTemplate=_,n.appFallbackKeys={getAppLabelKey:f,getAppDescriptionKey:c,getAppGroupKey:l,getMenuLabelKey:h,getTabKey:d}}},translations:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SteedosTranslationPrefixKeys=n.convertObject=void 0;var r=t("tslib"),i=t("underscore");r.__exportStar(t("./objectTranslation"),n),r.__exportStar(t("./translation"),n),r.__exportStar(t("./templates/objectTranslation"),n),r.__exportStar(t("./templates/translation"),n);var o=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},s=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(o(e))}))):n.push(o(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else if(e.options&&i.isArray(e.options))try{i.forEach(e.options,(function(e){i.isString(e)?n.push(o(e)):n.push(e)})),e.options=n}catch(r){console.error("Creator.convertFieldsOptions",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},a;n.convertObject=s,function(e){e.Object="CustomObject",e.Field="CustomField",e.Action="CustomAction",e.Listview="CustomListview",e.Permission="CustomPermission",e.ValidationRule="CustomValidationRule",e.Application="CustomApplication",e.Tab="CustomTabs",e.Permissionset="CustomPermissionset",e.Profile="CustomProfile",e.Report="CustomReport",e.Workflow="Workflow",e.Layout="Layout",e.Client="Client",e.Server="Server",e.Function="Function",e.Router="Router",e.Trigger="Trigger"}(a=n.SteedosTranslationPrefixKeys||(n.SteedosTranslationPrefixKeys={}))},"objectTranslation.js":function e(t,n,e,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addObjectsTranslation=n.getObjectTranslationTemplate=n.translationObjects=n.translationObject=n.translationObjectLabel=void 0;var i=t("underscore"),o=t("./"),s=t("../index"),a=t("./index"),u=t("../i18n/i18n"),f=t("lodash"),c=t("crypto"),l,h=(0,t("@steedos/cachers").getCacher)("lru.translations.objects");function d(e){var t;return c.createHash("md5").update(e).digest("hex")}var p=function(e,t){return"".concat(e,"_").concat(t.name,"_").concat(d(JSON.stringify(t)))},g=t("clone"),b=".",m="base",v="core",y="translation",_="object",w="field",k="listview",j="action",x=function(e,t){var n={lng:t,ns:y,keySeparator:!1};if((0,s.exists)(e,n))return(0,s._t)(e,n)},S=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},D=function(e){switch(e){case"object":return o.SteedosTranslationPrefixKeys.Object;case"field":return o.SteedosTranslationPrefixKeys.Field;case"listview":return o.SteedosTranslationPrefixKeys.Listview;case"action":return o.SteedosTranslationPrefixKeys.Action;default:return"CustomLabels"}},E=function(e){var t;return[D(),e].join(".")},A=function(e){var t;return[D("object"),e,"label"].join(".")},C=function(e){var t;return[D("object"),e,"description"].join(".")},M=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"label"].join(".")},O=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"help"].join(".")},T=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"description"].join(".")},B=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_"),r;return[D("field"),e,"group",n].join(".")},I=function(e,t,n){var r;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"options",n].join(".")},R=function(e,t){var n;return[D("action"),e,t].join(".")},F=function(e,t){var n;return[D("listview"),e,t].join(".")},P=function(e,t,n){var r,i=[A(t)],o=u.fallbackKeys.getObjectLabelKey(t);return o&&i.push(o),x(i,e)||n||""};n.translationObjectLabel=P;var N=function(e,t,n){var r=C(t);return x(r,e)||n||""},L=function(e,t,n,r,i,o){var s,a=[M(t,n)],f=u.fallbackKeys.getObjectFieldLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=L(e,l,n,r,i))}return c||r||""},z=function(e,t,n,r,i,o){var s,a=[O(t,n)],f=u.fallbackKeys.getObjectFieldInlineHelpTextLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=z(e,l,n,r,i))}return c||r||""},U=function(e,t,n,r,i,o){var s=T(t,n),a,u=x([s],e);if(1!=o&&!u){var f=S(i);f&&"base"!=t&&"core"!=t&&(u=U(e,f,n,r,i))}return u||r||""},q=function(e,t,n,r,i,o){var s,a=[B(t,n)],f=u.fallbackKeys.getObjectFieldGroupKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=q(e,l,n,r,i))}return c||r||""},$=function(e,t,n,r,i,o,s){var a,f=[I(t,n,r)],c=u.fallbackKeys.getObjectFieldOptionsLabelKey(t,n,r);c&&f.push(c);var l=x(f,e);if(1!=s&&!l){var h=S(o);h&&"base"!=t&&"core"!=t&&(l=$(e,h,n,r,i,o))}return l||i||""},H=function(e,t,n,r,i,o){var s,a=[R(t,n)],f=u.fallbackKeys.getObjectActionLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=H(e,l,n,r,i))}return c||r||""},W=function(e,t,n,r,i,o){var s,a=[F(t,n)],f=u.fallbackKeys.getObjectListviewLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=W(e,l,n,r,i))}return c||r||""},Y=function(e,t,r,o,s){void 0===s&&(s=!1);var u=p(e,r);"test_obj_layout1"===t&&console.log("translationObject",t,u);var c=h.get(u);if(c)return Object.assign(r,(0,f.cloneDeep)(c));o&&(0,a.convertObject)(r),r.label=(0,n.translationObjectLabel)(e,t,r.label),r.description=N(e,t,r.description),i.each(r.fields,(function(n,o){if(n.label=L(e,t,o,n.label,r.datasource,s),n.inlineHelpText&&(n.inlineHelpText=z(e,t,o,n.inlineHelpText,r.datasource,s)),n.group&&(n.group=q(e,t,n.group,n.group,r.datasource,s)),n.options){var a=[];i.each(n.options,(function(n){if(i.has(n,"value")){var u=$(e,t,o,n.value,n.label,r.datasource,s);a.push(i.extend({},n,{label:u}))}else a.push(n)})),n.options=a}})),i.each(r.actions,(function(n,i){n.label=H(e,t,i,n.label,r.datasource,s)})),i.each(r.list_views,(function(n,i){n.label=W(e,t,i,n.label,r.datasource,s)})),h.set(u,(0,f.cloneDeep)(r))};n.translationObject=Y;var V=function(e,t){i.each(t,(function(t,r){(0,n.translationObject)(e,r,t)}))};n.translationObjects=V;var K=function(e,t,r){var o=g(r);(0,a.convertObject)(o);var s={};return s[A(t)]=(0,n.translationObjectLabel)(e,t,o.label),s[C(t)]=N(e,t,o.description),i.each(o.fields,(function(n,r){s[M(t,r)]=L(e,t,r,n.label),n.inlineHelpText&&(s[O(t,r)]=z(e,t,r,n.inlineHelpText,o.datasource)),n.description&&(s[T(t,r)]=U(e,t,r,n.description,o.datasource)),n.group&&(s[B(t,n.group)]=q(e,t,n.group,n.group,o.datasource)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(s[I(t,r,n.value)]=$(e,t,r,n.value,n.label))}))})),i.each(o.actions,(function(n,r){s[R(t,r)]=H(e,t,r,n.label)})),i.each(o.list_views,(function(n,r){s[F(t,r)]=W(e,t,r,n.label)})),s};function G(e,t){var n=g(e);(0,a.convertObject)(n);var r={},o=n.name;return o||console.error("Error: Invalid objectTranslation:"+t),r[A(o)]=n.label,r[C(o)]=n.description,i.each(n.fields,(function(e,t){r[M(o,t)]=e.label,e.help&&(r[O(o,t)]=e.help),e.description&&(r[T(o,t)]=e.description),e.options&&i.each(e.options,(function(e){i.has(e,"value")&&(r[I(o,t,e.value)]=e.label)}))})),i.each(n.groups,(function(e,t){r[B(o,t)]=e})),i.each(n.actions,(function(e,t){r[R(o,t)]=e.label})),i.each(n.listviews,(function(e,t){r[F(o,t)]=e.label})),i.each(n.CustomLabels,(function(e,t){r[E(t)]=e})),r}n.getObjectTranslationTemplate=K;var X=function(e){i.each(e,(function(e){var t=G(e.data,e.__filename);(0,s.addResourceBundle)(e.lng,y,t,!0,!0)}))};n.addObjectsTranslation=X},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addTranslations=n.convertTranslation=n.convertTranslationData=n.getAppTranslationTemplate=n.translationApps=n.translationMenus=n.translationApp=n.translationTabLabel=n.translationTabGroup=void 0;var r=t("../index"),i=t("underscore"),o=t("./"),s=t("../i18n/i18n.app"),a=t("clone"),u="translation",f=".",c="app",l="menu",h="tab",d=function(e){switch(e){case"app":return o.SteedosTranslationPrefixKeys.Application;case"tab":return o.SteedosTranslationPrefixKeys.Tab;default:return"CustomLabels"}},p=function(e){var t;return[d(),e].join(".")},g=function(e,t){var n={lng:t,ns:u,keySeparator:!1};if((0,r.exists)(e,n))return(0,r._t)(e,n)},b=function(e){var t;return[d("app"),e,"name"].join(".")},m=function(e){var t;return[d("app"),e,"description"].join(".")},v=function(e,t){var n,r;return[d("app"),e,"groups",t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_")].join(".")},y=function(e){var t;return[d("menu"),"menu_".concat(e)].join(".")},_=function(e){var t;return[d("tab"),e].join(".")},w=function(e,t,n){var r,i=[b(t)],o=s.appFallbackKeys.getAppLabelKey(t);return o&&i.push(o),g(i,e)||n||""},k=function(e,t,n){var r,i=[m(t)],o=s.appFallbackKeys.getAppDescriptionKey(t);return o&&i.push(o),g(i,e)||n||""},j=function(e,t,n,r){var i,o=[v(t,n)],a=s.appFallbackKeys.getAppGroupKey(t,n);return a&&o.push(a),g(o,e)||r||""};n.translationTabGroup=j;var x=function(e,t,n){var r,i=[y(t)],o=s.appFallbackKeys.getMenuLabelKey(t);return o&&i.push(o),g(i,e)||n||""},S=function(e,t,n){var r,i=[_(t)],o=s.appFallbackKeys.getTabKey(t);return o&&i.push(o),g(i,e)||n||""};n.translationTabLabel=S;var D=function(e,t,r){r.label=w(e,t,r.label||r.name),r.description=k(e,t,r.description),i.each(r.tab_groups,(function(i,o){r.tab_groups[o].id=i.id||i.group_name,r.tab_groups[o].group_name=(0,n.translationTabGroup)(e,t,i.group_name,i.group_name)})),(0,n.translationMenus)(e,r.admin_menus)};n.translationApp=D;var E=function(e,t){i.each(t,(function(t){var n=x(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationMenus=E;var A=function(e,t){i.each(t,(function(t,r){(0,n.translationApp)(e,r,t)}))};n.translationApps=A;var C=function(e,t,n){var r=a(n),o={};return o[b(t)]=w(e,t,r.label||r.name),o[m(t)]=k(e,t,r.description),i.each(r.admin_menus,(function(t){o[y(t._id)]=x(e,t._id,t.label||t.name)})),o};n.getAppTranslationTemplate=C;var M=function(e,t,n){i.isArray(n)?i.each(n,(function(e){M(e,"",e)})):n&&i.each(i.keys(n),(function(r){var o=t?"".concat(t,".").concat(r):r,s=n[r];"object"==typeof s?i.isArray(s)?i.each(s,(function(e){M(e,o,s)})):M(e,o,s):e[o]=s}))};function O(e){for(var t in e)"object"==typeof e[t]&&M(e,t,e[t]);return e}n.convertTranslationData=O;var T=function(e){var t=a(e),n={};return i.each(t.CustomApplications,(function(e,t){n[b(t)]=e.name,n[m(t)]=e.description,i.each(e.groups,(function(e,r){n[v(t,r)]=e}))})),i.each(t.CustomTabs,(function(e,t){n[_(t)]=e})),i.each(t.CustomLabels,(function(e,t){var r;if("simpleschema"!=t&&i.isObject(e)){var o=O(((r={})[t]=e,r));i.each(o,(function(e,t){i.isObject(e)||(n[p(t)]=e)}))}else n[p(t)]=e})),n};n.convertTranslation=T;var B=function(e){i.each(e,(function(e){var t=(0,n.convertTranslation)(e.data);(0,r.addResourceBundle)(e.lng,u,t,!0,!0)}))};n.addTranslations=B},templates:{"objectTranslation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getObjectMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),o=t("clone");function s(e,t){var n={};return r.each(e,(function(e){n[e]="help"===e?t.inlineHelpText||"":t[e]||""})),n}function a(e){return s(["label","description"],e)}function u(e){switch(e.type){case"select":return s(["label","help","options","description"],e);default:return s(["label","help","description"],e)}}function f(e){return s(["label"],e)}function c(e){return s(["label"],e)}function l(e){var t={};return r.each(e,(function(e,n){t[n]=u(e)})),t}function h(e){var t={};return r.each(e,(function(e,n){t[n]=c(e)})),t}function d(e){var t={};return r.each(e,(function(e,n){t[n]=f(e)})),t}function p(e,t){var n={};return r.each(e,(function(e,r){if(e.group){var i=e.group.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");n[i]=t[r].group}})),n}var g=function(e,t,n,s){void 0===s&&(s=!1);var u=o(n);1!=s&&(0,i.translationObject)(e,t,u,!0,s);var f=Object.assign({},a(u));f=Object.assign({},f,{fields:l(u.fields)});var c=p(n.fields,u.fields);r.isEmpty(c)||(f=Object.assign({},f,{groups:c}));var g=d(u.list_views);r.isEmpty(g)||(f=Object.assign({},f,{listviews:g}));var b=h(u.actions);return r.isEmpty(b)||(f=Object.assign({},f,{actions:b})),Object.assign({name:t},f)};n.getObjectMetadataTranslationTemplate=g},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getAppMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),o=t("clone");function s(e,t){var n={};return r.each(e,(function(e){n[e]=t[e]||""})),n}function a(e){var t={groups:{}};return e?(r.each(e,(function(e){var n=e.group_name.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t.groups[n]=e.group_name})),t):{}}var u=function(e){return Object.assign({},s(["name","description"],e),a(e.tab_groups))},f=function(e){var t={};return r.each(e,(function(e,n){t[n]=n})),t},c=function(e){var t={};return r.each(e,(function(e){var n=e.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t[n]=e})),t},l=function(e,t,n){var r,s=o(n);(0,i.translationApp)(e,t,s);var a={},l;return s.tab_items?a=f(s.tab_items):s.tabs&&(a=c(s.tabs)),Object.assign({},{CustomApplications:(r={},r[t]=u(s),r)},{CustomTabs:a})};n.getAppMetadataTranslationTemplate=l}}}},node_modules:{i18next:{"package.json":function e(t,n,e){e.exports={name:"i18next",version:"19.9.2",module:"./dist/esm/i18next.js",main:"./dist/cjs/i18next.js"}},dist:{esm:{"i18next.js":function e(t,n,e){let r,i,o,s,a,u,f,c;e.link("@babel/runtime/helpers/esm/typeof",{default(e){r=e}},0),e.link("@babel/runtime/helpers/esm/objectSpread",{default(e){i=e}},1),e.link("@babel/runtime/helpers/esm/classCallCheck",{default(e){o=e}},2),e.link("@babel/runtime/helpers/esm/createClass",{default(e){s=e}},3),e.link("@babel/runtime/helpers/esm/possibleConstructorReturn",{default(e){a=e}},4),e.link("@babel/runtime/helpers/esm/getPrototypeOf",{default(e){u=e}},5),e.link("@babel/runtime/helpers/esm/assertThisInitialized",{default(e){f=e}},6),e.link("@babel/runtime/helpers/esm/inherits",{default(e){c=e}},7);var l={type:"logger",log:function e(t){this.output("log",t)},warn:function e(t){this.output("warn",t)},error:function e(t){this.output("error",t)},output:function e(t,n){console&&console[t]&&console[t].apply(console,n)}},h,d=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.init(t,n)}return s(e,[{key:"init",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||l,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function e(t){this.debug=t}},{key:"log",value:function e(){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function y(e,t,n){var r=v(e,t,Object),i,o;r.obj[r.k]=n}function _(e,t,n,r){var i=v(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}function w(e,t){var n=v(e,t),r=n.obj,i=n.k;if(r)return r[i]}function k(e,t,n){var r=w(e,n);return void 0!==r?r:w(t,n)}function j(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):j(e[r],t[r],n):e[r]=t[r]);return e}function x(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var S={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function D(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return S[e]})):e}var E="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,A=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return o(this,t),n=a(this,u(t).call(this)),E&&p.call(f(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return c(t,e),s(t,[{key:"addNamespaces",value:function e(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function e(t){var n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=[t,n];return r&&"string"!=typeof r&&(s=s.concat(r)),r&&"string"==typeof r&&(s=s.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(s=t.split(".")),w(this.data,s)}},{key:"addResource",value:function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},s=this.options.keySeparator;void 0===s&&(s=".");var a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(i=n,n=(a=t.split("."))[1]),this.addNamespaces(n),y(this.data,a,i),o.silent||this.emit("added",t,n,r,i)}},{key:"addResources",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in r)"string"!=typeof r[o]&&"[object Array]"!==Object.prototype.toString.apply(r[o])||this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}},{key:"addResourceBundle",value:function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},u=[t,n];t.indexOf(".")>-1&&(o=r,r=n,n=(u=t.split("."))[1]),this.addNamespaces(n);var f=w(this.data,u)||{};o?j(f,r,s):f=i({},f,r),y(this.data,u,f),a.silent||this.emit("added",t,n,r)}},{key:"removeResourceBundle",value:function e(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}},{key:"hasResourceBundle",value:function e(t,n){return void 0!==this.getResource(t,n)}},{key:"getResourceBundle",value:function e(t,n){return n||(n=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(t,n)):this.getResource(t,n)}},{key:"getDataByLanguage",value:function e(t){return this.data[t]}},{key:"toJSON",value:function e(){return this.data}}]),t}(p),C={processors:{},addPostProcessor:function e(t){this.processors[t.name]=t},handle:function e(t,n,r,i,o){var s=this;return t.forEach((function(e){s.processors[e]&&(n=s.processors[e].process(n,r,i,o))})),n}},M={},O=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,t),n=a(this,u(t).call(this)),E&&p.call(f(n)),m(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,f(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=d.create("translator"),n}return c(t,e),s(t,[{key:"changeLanguage",value:function e(t){t&&(this.language=t)}},{key:"exists",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(t,n);return r&&void 0!==r.res}},{key:"extractFromKey",value:function e(t,n){var r=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=n.ns||this.options.defaultNS;if(r&&t.indexOf(r)>-1){var s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:o};var a=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),t=a.join(i)}return"string"==typeof o&&(o=[o]),{key:t,namespaces:o}}},{key:"translate",value:function e(n,o,s){var a=this;if("object"!==r(o)&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),null==n)return"";Array.isArray(n)||(n=[String(n)]);var u=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,f=this.extractFromKey(n[n.length-1],o),c=f.key,l=f.namespaces,h=l[l.length-1],d=o.lng||this.language,p=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var g=o.nsSeparator||this.options.nsSeparator;return h+g+c}return c}var b=this.resolve(n,o),m=b&&b.res,v=b&&b.usedKey||c,y=b&&b.exactUsedKey||c,_=Object.prototype.toString.apply(m),w=["[object Number]","[object Function]","[object RegExp]"],k=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(j&&m&&x&&w.indexOf(_)<0&&("string"!=typeof k||"[object Array]"!==_)){if(!o.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,o):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(u){var S="[object Array]"===_,D=S?[]:{},E=S?y:v;for(var A in m)if(Object.prototype.hasOwnProperty.call(m,A)){var C="".concat(E).concat(u).concat(A);D[A]=this.translate(C,i({},o,{joinArrays:!1,ns:l})),D[A]===C&&(D[A]=m[A])}m=D}}else if(j&&"string"==typeof k&&"[object Array]"===_)(m=m.join(k))&&(m=this.extendTranslation(m,n,o,s));else{var M=!1,O=!1,T=void 0!==o.count&&"string"!=typeof o.count,B=t.hasDefaultValue(o),I=T?this.pluralResolver.getSuffix(d,o.count):"",R=o["defaultValue".concat(I)]||o.defaultValue;!this.isValidLookup(m)&&B&&(M=!0,m=R),this.isValidLookup(m)||(O=!0,m=c);var F=B&&R!==m&&this.options.updateMissing;if(O||M||F){if(this.logger.log(F?"updateKey":"missingKey",d,h,c,F?R:m),u){var P=this.resolve(c,i({},o,{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var z=0;z1&&void 0!==arguments[1]?arguments[1]:{},i,o,s,a,u;return"string"==typeof t&&(t=[t]),t.forEach((function(e){if(!n.isValidLookup(i)){var t=n.extractFromKey(e,r),f=t.key;o=f;var c=t.namespaces;n.options.fallbackNS&&(c=c.concat(n.options.fallbackNS));var l=void 0!==r.count&&"string"!=typeof r.count,h=void 0!==r.context&&"string"==typeof r.context&&""!==r.context,d=r.lngs?r.lngs:n.languageUtils.toResolveHierarchy(r.lng||n.language,r.fallbackLng);c.forEach((function(e){n.isValidLookup(i)||(u=e,!M["".concat(d[0],"-").concat(e)]&&n.utils&&n.utils.hasLoadedNamespace&&!n.utils.hasLoadedNamespace(u)&&(M["".concat(d[0],"-").concat(e)]=!0,n.logger.warn('key "'.concat(o,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(t){if(!n.isValidLookup(i)){a=t;var o=f,u=[o],c,d;if(n.i18nFormat&&n.i18nFormat.addLookupKeys)n.i18nFormat.addLookupKeys(u,f,t,e,r);else l&&(c=n.pluralResolver.getSuffix(t,r.count)),l&&h&&u.push(o+c),h&&u.push(o+="".concat(n.options.contextSeparator).concat(r.context)),l&&u.push(o+=c);for(;d=u.pop();)n.isValidLookup(i)||(s=d,i=n.getResource(t,e,d,r))}})))}))}})),{res:i,usedKey:o,exactUsedKey:s,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function e(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}}],[{key:"hasDefaultValue",value:function e(t){var n="defaultValue";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&void 0!==t[r])return!0;return!1}}]),t}(p);function T(e){return e.charAt(0).toUpperCase()+e.slice(1)}var B=function(){function e(t){o(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=d.create("languageUtils")}return s(e,[{key:"getScriptPartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase()?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function e(t){if("string"==typeof t&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=T(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function e(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function e(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function e(t){var n=this,r;return t?(t.forEach((function(e){if(!r){var t=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(t)||(r=t)}})),!r&&this.options.supportedLngs&&t.forEach((function(e){if(!r){var t=n.getLanguagePartFromCode(e);if(n.isSupportedCode(t))return r=t;r=n.options.supportedLngs.find((function(e){if(0===e.indexOf(t))return e}))}})),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function e(t,n){if(!t)return[];if("function"==typeof t&&(t=t(n)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function e(t,n){var r=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],s=function e(t){t&&(r.isSupportedCode(t)?o.push(t):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(t))):"string"==typeof t&&s(this.formatLanguageCode(t)),i.forEach((function(e){o.indexOf(e)<0&&s(r.formatLanguageCode(e))})),o}}]),e}(),I=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],R={1:function e(t){return Number(t>1)},2:function e(t){return Number(1!=t)},3:function e(t){return 0},4:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function e(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function e(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function e(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function e(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function e(t){return Number(t>=2)},10:function e(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function e(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function e(t){return Number(t%10!=1||t%100==11)},13:function e(t){return Number(0!==t)},14:function e(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function e(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function e(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function e(t){return Number(0==t?0:1==t?1:2)},19:function e(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function e(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function e(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function e(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function F(){var e={};return I.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:R[t.fc]}}))})),e}var P=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.languageUtils=t,this.options=n,this.logger=d.create("pluralResolver"),this.rules=F()}return s(e,[{key:"addRule",value:function e(t,n){this.rules[t]=n}},{key:"getRule",value:function e(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function e(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function e(t,n){return this.getSuffixes(t).map((function(e){return n+e}))}},{key:"getSuffixes",value:function e(t){var n=this,r=this.getRule(t);return r?r.numbers.map((function(e){return n.getSuffix(t,e)})):[]}},{key:"getSuffix",value:function e(t,n){var r=this,i=this.getRule(t);if(i){var o=i.noAbs?i.plurals(n):i.plurals(Math.abs(n)),s=i.numbers[o];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===s?s="plural":1===s&&(s=""));var a=function e(){return r.options.prepend&&s.toString()?r.options.prepend+s.toString():s.toString()};return"v1"===this.options.compatibilityJSON?1===s?"":"number"==typeof s?"_plural_".concat(s.toString()):a():"v2"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),N=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.logger=d.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return s(e,[{key:"init",value:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=void 0!==n.escape?n.escape:D,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?x(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?x(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?x(n.nestingPrefix):n.nestingPrefixEscaped||x("$t("),this.nestingSuffix=n.nestingSuffix?x(n.nestingSuffix):n.nestingSuffixEscaped||x(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function e(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function e(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function e(t,n,r,i){var o=this,s,a,u,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function e(t){if(t.indexOf(o.formatSeparator)<0){var s=k(n,f,t);return o.alwaysFormat?o.format(s,void 0,r):s}var a=t.split(o.formatSeparator),u=a.shift().trim(),c=a.join(o.formatSeparator).trim();return o.format(k(n,f,u),c,r,i)};this.resetRegExp();var h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p;return[{regex:this.regexpUnescape,safeValue:function e(t){return c(t)}},{regex:this.regexp,safeValue:function e(t){return o.escapeValue?c(o.escape(t)):c(t)}}].forEach((function(e){for(u=0;s=e.regex.exec(t);){if(void 0===(a=l(s[1].trim())))if("function"==typeof h){var n=h(t,s,i);a="string"==typeof n?n:""}else{if(d){a=s[0];continue}o.logger.warn("missed to pass in variable ".concat(s[1]," for interpolating ").concat(t)),a=""}else"string"==typeof a||o.useRawValueToEscape||(a=b(a));if(t=t.replace(s[0],e.safeValue(a)),e.regex.lastIndex=0,++u>=o.maxReplaces)break}})),t}},{key:"nest",value:function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s,a,u=i({},o);function f(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,u)).replace(/'/g,'"');try{u=JSON.parse(o),t&&(u=i({},t,u))}catch(s){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),s),"".concat(e).concat(n).concat(o)}return delete u.defaultValue,e}for(u.applyPostProcessor=!1,delete u.defaultValue;s=this.nestingRegexp.exec(t);){var c=[],l=!1;if(s[0].includes(this.formatSeparator)&&!/{.*}/.test(s[1])){var h=s[1].split(this.formatSeparator).map((function(e){return e.trim()}));s[1]=h.shift(),c=h,l=!0}if((a=n(f.call(this,s[1].trim(),u),u))&&s[0]===t&&"string"!=typeof a)return a;"string"!=typeof a&&(a=b(a)),a||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(t)),a=""),l&&(a=c.reduce((function(e,t){return r.format(e,t,o.lng,o)}),a.trim())),t=t.replace(s[0],a),this.regexp.lastIndex=0}return t}}]),e}();function L(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}var z=function(e){function t(e,n,r){var i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o(this,t),i=a(this,u(t).call(this)),E&&p.call(f(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=s,i.logger=d.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,s.backend,s),i}return c(t,e),s(t,[{key:"queueLoad",value:function e(t,n,r,i){var o=this,s=[],a=[],u=[],f=[];return t.forEach((function(e){var t=!0;n.forEach((function(n){var i="".concat(e,"|").concat(n);!r.reload&&o.store.hasResourceBundle(e,n)?o.state[i]=2:o.state[i]<0||(1===o.state[i]?a.indexOf(i)<0&&a.push(i):(o.state[i]=1,t=!1,a.indexOf(i)<0&&a.push(i),s.indexOf(i)<0&&s.push(i),f.indexOf(n)<0&&f.push(n)))})),t||u.push(e)})),(s.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:i}),{toLoad:s,pending:a,toLoadLanguages:u,toLoadNamespaces:f}}},{key:"loaded",value:function e(t,n,r){var i=t.split("|"),o=i[0],s=i[1];n&&this.emit("failedLoading",o,s,n),r&&this.store.addResourceBundle(o,s,r),this.state[t]=n?-1:2;var e={};this.queue.forEach((function(r){_(r.loaded,[o],s),L(r.pending,t),n&&r.errors.push(n),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(t){e[t]||(e[t]=[]),r.loaded[t].length&&r.loaded[t].forEach((function(n){e[t].indexOf(n)<0&&e[t].push(n)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",e),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[r](t,n,(function(e,u){e&&u&&o<5?setTimeout((function(){i.read.call(i,t,n,r,o+1,2*s,a)}),s):a(e,u)})):a(null,{})}},{key:"prepareLoading",value:function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof n&&(n=[n]);var s=this.queueLoad(t,n,i,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function e(t,n,r){this.prepareLoading(t,n,{},r)}},{key:"reload",value:function e(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}},{key:"loadOne",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t.split("|"),o=i[0],s=i[1];this.read(o,s,"read",void 0,void 0,(function(e,i){e&&n.logger.warn("".concat(r,"loading namespace ").concat(s," for language ").concat(o," failed"),e),!e&&i&&n.logger.log("".concat(r,"loaded namespace ").concat(s," for language ").concat(o),i),n.loaded(t,e,i)}))}},{key:"saveMissing",value:function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(t,n,r,o,null,i({},a,{isUpdate:s})),t&&t[0]&&this.store.addResource(t[0],n,r,o))}}]),t}(p);function U(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function e(t){var n={};if("object"===r(t[1])&&(n=t[1]),"string"==typeof t[1]&&(n.defaultValue=t[1]),"string"==typeof t[2]&&(n.tDescription=t[2]),"object"===r(t[2])||"object"===r(t[3])){var i=t[3]||t[2];Object.keys(i).forEach((function(e){n[e]=i[e]}))}return n},interpolation:{escapeValue:!0,format:function e(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function q(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $(){}var H,W=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(o(this,t),e=a(this,u(t).call(this)),E&&p.call(f(e)),e.options=q(n),e.services={},e.logger=d,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),a(e,f(e));setTimeout((function(){e.init(n,r)}),0)}return e}return c(t,e),s(t,[{key:"init",value:function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function o(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof n&&(r=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},U(),this.options,q(n)),this.format=this.options.interpolation.format,r||(r=$),!this.options.isClone){this.modules.logger?d.init(o(this.modules.logger),this.options):d.init(null,this.options);var s=new B(this.options);this.store=new A(this.options.resources,this.options);var a=this.services;a.logger=d,a.resourceStore=this.store,a.languageUtils=s,a.pluralResolver=new P(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new N(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new z(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var f=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];f.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}}));var l=g(),h=function e(){var n=function e(n,i){t.isInitialized&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),l.resolve(i),r(n,i)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return n(null,t.t.bind(t));t.changeLanguage(t.options.lng,n)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),l}},{key:"loadResources",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,i=r,o="string"==typeof t?t:this.language;if("function"==typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return i();var s=[],a=function e(t){var r;t&&n.services.languageUtils.toResolveHierarchy(t).forEach((function(e){s.indexOf(e)<0&&s.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(s,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function e(t,n,r){var i=g();return t||(t=this.languages),n||(n=this.options.ns),r||(r=$),this.services.backendConnector.reload(t,n,(function(e){i.resolve(),r(e)})),i}},{key:"use",value:function e(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&C.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function e(t,n){var r=this;this.isLanguageChangingTo=t;var i=g();this.emit("languageChanging",t);var o=function e(t,o){o?(r.language=o,r.languages=r.services.languageUtils.toResolveHierarchy(o),r.translator.changeLanguage(o),r.isLanguageChangingTo=void 0,r.emit("languageChanged",o),r.logger.log("languageChanged",o)):r.isLanguageChangingTo=void 0,i.resolve((function(){return r.t.apply(r,arguments)})),n&&n(t,(function(){return r.t.apply(r,arguments)}))},s=function e(t){var n="string"==typeof t?t:r.services.languageUtils.getBestMatchFromCodes(t);n&&(r.language||(r.language=n,r.languages=r.services.languageUtils.toResolveHierarchy(n)),r.translator.language||r.translator.changeLanguage(n),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(n)),r.loadResources(n,(function(e){o(e,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(s):s(t):s(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function e(t,n){var o=this,s=function e(t,n){var s;if("object"!==r(n)){for(var a=arguments.length,u=new Array(a>2?a-2:0),f=2;f1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],o=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function e(t,r){var i=n.services.backendConnector.state["".concat(t,"|").concat(r)];return-1===i||2===i};if(r.precheck){var u=r.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(i,t)||(!this.services.backendConnector.backend||!(!a(i,t)||o&&!a(s,t)))}},{key:"loadNamespaces",value:function e(t,n){var r=this,i=g();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),n&&n(e)})),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function e(t,n){var r=g();"string"==typeof t&&(t=[t]);var i=this.options.preload||[],o=t.filter((function(e){return i.indexOf(e)<0}));return o.length?(this.options.preload=i.concat(o),this.loadResources((function(e){r.resolve(),n&&n(e)})),r):(n&&n(),Promise.resolve())}},{key:"dir",value:function e(t){return t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),t?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr":"rtl";var n}},{key:"createInstance",value:function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function e(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,s=i({},this.options,r,{isClone:!0}),a=new t(s),u=["store","services","language"];return u.forEach((function(e){a[e]=n[e]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new O(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rr,root:()=>i,ArrayProto:()=>o,ObjProto:()=>s,SymbolProto:()=>a,push:()=>u,slice:()=>f,toString:()=>c,hasOwnProperty:()=>l,supportsArrayBuffer:()=>h,supportsDataView:()=>d,nativeIsArray:()=>p,nativeKeys:()=>g,nativeCreate:()=>b,nativeIsView:()=>m,_isNaN:()=>v,_isFinite:()=>y,hasEnumBug:()=>_,nonEnumerableProps:()=>w,MAX_ARRAY_INDEX:()=>k});var r="1.13.4",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},o=Array.prototype,s=Object.prototype,a="undefined"!=typeof Symbol?Symbol.prototype:null,u=o.push,f=o.slice,c=s.toString,l=s.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,d="undefined"!=typeof DataView,p=Array.isArray,g=Object.keys,b=Object.create,m=h&&ArrayBuffer.isView,v=isNaN,y=isFinite,_=!{toString:null}.propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=Math.pow(2,53)-1},"restArguments.js":function e(t,n,e){function r(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;ir})},"isObject.js":function e(t,n,e){function r(e){var t=typeof e;return"function"===t||"object"===t&&!!e}e.export({default:()=>r})},"isNull.js":function e(t,n,e){function r(e){return null===e}e.export({default:()=>r})},"isUndefined.js":function e(t,n,e){function r(e){return void 0===e}e.export({default:()=>r})},"isBoolean.js":function e(t,n,e){let r;function i(e){return!0===e||!1===e||"[object Boolean]"===r.call(e)}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isElement.js":function e(t,n,e){function r(e){return!(!e||1!==e.nodeType)}e.export({default:()=>r})},"isString.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("String"))},"_tagTester.js":function e(t,n,e){let r;function i(e){var t="[object "+e+"]";return function(e){return r.call(e)===t}}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isNumber.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Number"))},"isDate.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Date"))},"isRegExp.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("RegExp"))},"isError.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Error"))},"isSymbol.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Symbol"))},"isArrayBuffer.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("ArrayBuffer"))},"isDataView.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isArrayBuffer.js",{default(e){o=e}},2),e.link("./_stringTagBug.js",{hasStringTagBug(e){s=e}},3);var a=r("DataView");function u(e){return null!=e&&i(e.getInt8)&&o(e.buffer)}e.exportDefault(s?u:a)},"isFunction.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_setup.js",{root(e){i=e}},1);var o=r("Function"),s=i.document&&i.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof s&&(o=function(e){return"function"==typeof e||!1}),e.exportDefault(o)},"_stringTagBug.js":function e(t,n,e){let r,i;e.export({hasStringTagBug:()=>o,isIE11:()=>s}),e.link("./_setup.js",{supportsDataView(e){r=e}},0),e.link("./_hasObjectTag.js",{default(e){i=e}},1);var o=r&&i(new DataView(new ArrayBuffer(8))),s="undefined"!=typeof Map&&i(new Map)},"_hasObjectTag.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Object"))},"isArray.js":function e(t,n,e){let r,i;e.link("./_setup.js",{nativeIsArray(e){r=e}},0),e.link("./_tagTester.js",{default(e){i=e}},1),e.exportDefault(r||i("Array"))},"isArguments.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1);var o=r("Arguments");!function(){o(arguments)||(o=function(e){return i(e,"callee")})}(),e.exportDefault(o)},"_has.js":function e(t,n,e){let r;function i(e,t){return null!=e&&r.call(e,t)}e.export({default:()=>i}),e.link("./_setup.js",{hasOwnProperty(e){r=e}},0)},"isFinite.js":function e(t,n,e){let r,i;function o(e){return!i(e)&&r(e)&&!isNaN(parseFloat(e))}e.export({default:()=>o}),e.link("./_setup.js",{_isFinite(e){r=e}},0),e.link("./isSymbol.js",{default(e){i=e}},1)},"isNaN.js":function e(t,n,e){let r,i;function o(e){return i(e)&&r(e)}e.export({default:()=>o}),e.link("./_setup.js",{_isNaN(e){r=e}},0),e.link("./isNumber.js",{default(e){i=e}},1)},"isTypedArray.js":function e(t,n,e){let r,i,o,s,a,u;e.link("./_setup.js",{supportsArrayBuffer(e){r=e},nativeIsView(e){i=e},toString(e){o=e}},0),e.link("./isDataView.js",{default(e){s=e}},1),e.link("./constant.js",{default(e){a=e}},2),e.link("./_isBufferLike.js",{default(e){u=e}},3);var f=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function c(e){return i?i(e)&&!s(e):u(e)&&f.test(o.call(e))}e.exportDefault(r?c:a(!1))},"constant.js":function e(t,n,e){function r(e){return function(){return e}}e.export({default:()=>r})},"_isBufferLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getByteLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createSizePropertyCheck.js":function e(t,n,e){let r;function i(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=r}}e.export({default:()=>i}),e.link("./_setup.js",{MAX_ARRAY_INDEX(e){r=e}},0)},"_getByteLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("byteLength"))},"_shallowProperty.js":function e(t,n,e){function r(e){return function(t){return null==t?void 0:t[e]}}e.export({default:()=>r})},"isEmpty.js":function e(t,n,e){let r,i,o,s,a;function u(e){if(null==e)return!0;var t=r(e);return"number"==typeof t&&(i(e)||o(e)||s(e))?0===t:0===r(a(e))}e.export({default:()=>u}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./isString.js",{default(e){o=e}},2),e.link("./isArguments.js",{default(e){s=e}},3),e.link("./keys.js",{default(e){a=e}},4)},"_getLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("length"))},"keys.js":function e(t,n,e){let r,i,o,s,a;function u(e){if(!r(e))return[];if(i)return i(e);var t=[];for(var n in e)s(e,n)&&t.push(n);return o&&a(e,t),t}e.export({default:()=>u}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeKeys(e){i=e},hasEnumBug(e){o=e}},1),e.link("./_has.js",{default(e){s=e}},2),e.link("./_collectNonEnumProps.js",{default(e){a=e}},3)},"_collectNonEnumProps.js":function e(t,n,e){let r,i,o,s;function a(e){for(var t={},n=e.length,r=0;ru}),e.link("./_setup.js",{nonEnumerableProps(e){r=e},ObjProto(e){i=e}},0),e.link("./isFunction.js",{default(e){o=e}},1),e.link("./_has.js",{default(e){s=e}},2)},"isMatch.js":function e(t,n,e){let r;function i(e,t){var n=r(t),i=n.length;if(null==e)return!i;for(var o=Object(e),s=0;si}),e.link("./keys.js",{default(e){r=e}},0)},"isEqual.js":function e(t,n,e){let r,i,o,s,a,u,f,c,l,h,d;e.export({default:()=>m}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_setup.js",{toString(e){i=e},SymbolProto(e){o=e}},1),e.link("./_getByteLength.js",{default(e){s=e}},2),e.link("./isTypedArray.js",{default(e){a=e}},3),e.link("./isFunction.js",{default(e){u=e}},4),e.link("./_stringTagBug.js",{hasStringTagBug(e){f=e}},5),e.link("./isDataView.js",{default(e){c=e}},6),e.link("./keys.js",{default(e){l=e}},7),e.link("./_has.js",{default(e){h=e}},8),e.link("./_toBufferView.js",{default(e){d=e}},9);var p="[object DataView]";function g(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&b(e,t,n,r)}function b(e,t,n,m){e instanceof r&&(e=e._wrapped),t instanceof r&&(t=t._wrapped);var v=i.call(e);if(v!==i.call(t))return!1;if(f&&"[object Object]"==v&&c(e)){if(!c(t))return!1;v=p}switch(v){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return o.valueOf.call(e)===o.valueOf.call(t);case"[object ArrayBuffer]":case p:return b(d(e),d(t),n,m)}var y="[object Array]"===v;if(!y&&a(e)){var _;if(s(e)!==s(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;y=!0}if(!y){if("object"!=typeof e||"object"!=typeof t)return!1;var w=e.constructor,k=t.constructor;if(w!==k&&!(u(w)&&w instanceof w&&u(k)&&k instanceof k)&&"constructor"in e&&"constructor"in t)return!1}m=m||[];for(var j=(n=n||[]).length;j--;)if(n[j]===e)return m[j]===t;if(n.push(e),m.push(t),y){if((j=e.length)!==t.length)return!1;for(;j--;)if(!g(e[j],t[j],n,m))return!1}else{var x=l(e),S;if(j=x.length,l(t).length!==j)return!1;for(;j--;)if(S=x[j],!h(t,S)||!g(e[S],t[S],n,m))return!1}return n.pop(),m.pop(),!0}function m(e,t){return g(e,t)}},"underscore.js":function e(t,n,e){let r;function i(e){return e instanceof i?e:this instanceof i?void(this._wrapped=e):new i(e)}e.export({default:()=>i}),e.link("./_setup.js",{VERSION(e){r=e}},0),i.VERSION=r,i.prototype.value=function(){return this._wrapped},i.prototype.valueOf=i.prototype.toJSON=i.prototype.value,i.prototype.toString=function(){return String(this._wrapped)}},"_toBufferView.js":function e(t,n,e){let r;function i(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,r(e))}e.export({default:()=>i}),e.link("./_getByteLength.js",{default(e){r=e}},0)},"isMap.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},mapMethods(e){s=e}},2),e.exportDefault(i?o(s):r("Map"))},"_methodFingerprint.js":function e(t,n,e){let r,i,o;function s(e){var t=r(e);return function(n){if(null==n)return!1;var s=o(n);if(r(s))return!1;for(var u=0;us,mapMethods:()=>l,weakMapMethods:()=>h,setMethods:()=>d}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./allKeys.js",{default(e){o=e}},2);var a="forEach",u="has",f=["clear","delete"],c=["get","has","set"],l=f.concat(a,c),h=f.concat(c),d=["add"].concat(f,a,"has")},"allKeys.js":function e(t,n,e){let r,i,o;function s(e){if(!r(e))return[];var t=[];for(var n in e)t.push(n);return i&&o(e,t),t}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{hasEnumBug(e){i=e}},1),e.link("./_collectNonEnumProps.js",{default(e){o=e}},2)},"isWeakMap.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},weakMapMethods(e){s=e}},2),e.exportDefault(i?o(s):r("WeakMap"))},"isSet.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},setMethods(e){s=e}},2),e.exportDefault(i?o(s):r("Set"))},"isWeakSet.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("WeakSet"))},"values.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"pairs.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"invert.js":function e(t,n,e){let r;function i(e){for(var t={},n=r(e),i=0,o=n.length;ii}),e.link("./keys.js",{default(e){r=e}},0)},"functions.js":function e(t,n,e){let r;function i(e){var t=[];for(var n in e)r(e[n])&&t.push(n);return t.sort()}e.export({default:()=>i}),e.link("./isFunction.js",{default(e){r=e}},0)},"extend.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createAssigner.js":function e(t,n,e){function r(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;ir})},"extendOwn.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"defaults.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i,!0))},"create.js":function e(t,n,e){let r,i;function o(e,t){var n=r(e);return t&&i(n,t),n}e.export({default:()=>o}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./extendOwn.js",{default(e){i=e}},1)},"_baseCreate.js":function e(t,n,e){let r,i;function o(){return function(){}}function s(e){if(!r(e))return{};if(i)return i(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeCreate(e){i=e}},1)},"clone.js":function e(t,n,e){let r,i,o;function s(e){return r(e)?i(e)?e.slice():o({},e):e}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./extend.js",{default(e){o=e}},2)},"tap.js":function e(t,n,e){function r(e,t){return t(e),e}e.export({default:()=>r})},"get.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s=i(e,r(t));return o(s)?n:s}e.export({default:()=>s}),e.link("./_toPath.js",{default(e){r=e}},0),e.link("./_deepGet.js",{default(e){i=e}},1),e.link("./isUndefined.js",{default(e){o=e}},2)},"_toPath.js":function e(t,n,e){let r;function i(e){return r.toPath(e)}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./toPath.js")},"toPath.js":function e(t,n,e){let r,i;function o(e){return i(e)?e:[e]}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),r.toPath=o},"_deepGet.js":function e(t,n,e){function r(e,t){for(var n=t.length,r=0;rr})},"has.js":function e(t,n,e){let r,i;function o(e,t){for(var n=(t=i(t)).length,o=0;oo}),e.link("./_has.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"mapObject.js":function e(t,n,e){let r,i;function o(e,t,n){t=r(t,n);for(var o=i(e),s=o.length,a={},u=0;uo}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"_cb.js":function e(t,n,e){let r,i,o;function s(e,t,n){return r.iteratee!==o?r.iteratee(e,t):i(e,t,n)}e.export({default:()=>s}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),e.link("./iteratee.js",{default(e){o=e}},2)},"_baseIteratee.js":function e(t,n,e){let r,i,o,s,a,u,f;function c(e,t,n){return null==e?r:i(e)?f(e,t,n):o(e)&&!s(e)?a(e):u(e)}e.export({default:()=>c}),e.link("./identity.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isObject.js",{default(e){o=e}},2),e.link("./isArray.js",{default(e){s=e}},3),e.link("./matcher.js",{default(e){a=e}},4),e.link("./property.js",{default(e){u=e}},5),e.link("./_optimizeCb.js",{default(e){f=e}},6)},"identity.js":function e(t,n,e){function r(e){return e}e.export({default:()=>r})},"matcher.js":function e(t,n,e){let r,i;function o(e){return e=r({},e),function(t){return i(t,e)}}e.export({default:()=>o}),e.link("./extendOwn.js",{default(e){r=e}},0),e.link("./isMatch.js",{default(e){i=e}},1)},"property.js":function e(t,n,e){let r,i;function o(e){return e=i(e),function(t){return r(t,e)}}e.export({default:()=>o}),e.link("./_deepGet.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"_optimizeCb.js":function e(t,n,e){function r(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}e.export({default:()=>r})},"iteratee.js":function e(t,n,e){let r,i;function o(e,t){return i(e,t,1/0)}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),r.iteratee=o},"noop.js":function e(t,n,e){function r(){}e.export({default:()=>r})},"propertyOf.js":function e(t,n,e){let r,i;function o(e){return null==e?r:function(t){return i(e,t)}}e.export({default:()=>o}),e.link("./noop.js",{default(e){r=e}},0),e.link("./get.js",{default(e){i=e}},1)},"times.js":function e(t,n,e){let r;function i(e,t,n){var i=Array(Math.max(0,e));t=r(t,n,1);for(var o=0;oi}),e.link("./_optimizeCb.js",{default(e){r=e}},0)},"random.js":function e(t,n,e){function r(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}e.export({default:()=>r})},"now.js":function e(t,n,e){e.exportDefault(Date.now||function(){return(new Date).getTime()})},"escape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createEscaper.js":function e(t,n,e){let r;function i(e){var t=function(t){return e[t]},n="(?:"+r(e).join("|")+")",i=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(o,t):e}}e.export({default:()=>i}),e.link("./keys.js",{default(e){r=e}},0)},"_escapeMap.js":function e(t,n,e){e.exportDefault({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"})},"unescape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_unescapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_unescapeMap.js":function e(t,n,e){let r,i;e.link("./invert.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"templateSettings.js":function e(t,n,e){let r;e.link("./underscore.js",{default(e){r=e}},0),e.exportDefault(r.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g})},"template.js":function e(t,n,e){let r,i;e.export({default:()=>c}),e.link("./defaults.js",{default(e){r=e}},0),e.link("./underscore.js",{default(e){i=e}},1),e.link("./templateSettings.js");var o=/(.)^/,s={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},a=/\\|'|\r|\n|\u2028|\u2029/g;function u(e){return"\\"+s[e]}var f=/^\s*(\w|\$)+\s*$/;function c(e,t,n){!t&&n&&(t=n),t=r({},t,i.templateSettings);var s=RegExp([(t.escape||o).source,(t.interpolate||o).source,(t.evaluate||o).source].join("|")+"|$","g"),c=0,l="__p+='";e.replace(s,(function(t,n,r,i,o){return l+=e.slice(c,o).replace(a,u),c=o+t.length,n?l+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?l+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(l+="';\n"+i+"\n__p+='"),t})),l+="';\n";var h=t.variable,d;if(h){if(!f.test(h))throw new Error("variable is not a bare identifier: "+h)}else l="with(obj||{}){\n"+l+"}\n",h="obj";l="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+l+"return __p;\n";try{d=new Function(h,"_",l)}catch(g){throw g.source=l,g}var p=function(e){return d.call(this,e,i)};return p.source="function("+h+"){\n"+l+"}",p}},"result.js":function e(t,n,e){let r,i;function o(e,t,n){var o=(t=i(t)).length;if(!o)return r(n)?n.call(e):n;for(var s=0;so}),e.link("./isFunction.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"uniqueId.js":function e(t,n,e){e.export({default:()=>i});var r=0;function i(e){var t=++r+"";return e?e+t:t}},"chain.js":function e(t,n,e){let r;function i(e){var t=r(e);return t._chain=!0,t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"partial.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_executeBound.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){o=e}},2);var s=r((function(e,t){var n=s.placeholder,r=function(){for(var o=0,s=t.length,a=Array(s),u=0;uo}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./isObject.js",{default(e){i=e}},1)},"bind.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_executeBound.js",{default(e){o=e}},2),e.exportDefault(r((function(e,t,n){if(!i(e))throw new TypeError("Bind must be called on a function");var s=r((function(r){return o(e,s,t,this,n.concat(r))}));return s})))},"bindAll.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./bind.js",{default(e){o=e}},2),e.exportDefault(r((function(e,t){var n=(t=i(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=o(e[r],e)}return e})))},"_flatten.js":function e(t,n,e){let r,i,o,s;function a(e,t,n,u){if(u=u||[],t||0===t){if(t<=0)return u.concat(e)}else t=1/0;for(var f=u.length,c=0,l=r(e);c1)a(h,t-1,n,u),f=u.length;else for(var d=0,p=h.length;da}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./isArray.js",{default(e){o=e}},2),e.link("./isArguments.js",{default(e){s=e}},3)},"_isArrayLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"memoize.js":function e(t,n,e){let r;function i(e,t){var n=function(i){var o=n.cache,s=""+(t?t.apply(this,arguments):i);return r(o,s)||(o[s]=e.apply(this,arguments)),o[s]};return n.cache={},n}e.export({default:()=>i}),e.link("./_has.js",{default(e){r=e}},0)},"delay.js":function e(t,n,e){let r;e.link("./restArguments.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})))},"defer.js":function e(t,n,e){let r,i,o;e.link("./partial.js",{default(e){r=e}},0),e.link("./delay.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){o=e}},2),e.exportDefault(r(i,o,1))},"throttle.js":function e(t,n,e){let r;function i(e,t,n){var i,o,s,a,u=0;n||(n={});var f=function(){u=!1===n.leading?0:r(),i=null,a=e.apply(o,s),i||(o=s=null)},c=function(){var c=r();u||!1!==n.leading||(u=c);var l=t-(c-u);return o=this,s=arguments,l<=0||l>t?(i&&(clearTimeout(i),i=null),u=c,a=e.apply(o,s),i||(o=s=null)):i||!1===n.trailing||(i=setTimeout(f,l)),a};return c.cancel=function(){clearTimeout(i),u=0,i=o=s=null},c}e.export({default:()=>i}),e.link("./now.js",{default(e){r=e}},0)},"debounce.js":function e(t,n,e){let r,i;function o(e,t,n){var o,s,a,u,f,c=function(){var r=i()-s;t>r?o=setTimeout(c,t-r):(o=null,n||(u=e.apply(f,a)),o||(a=f=null))},l=r((function(r){return f=this,a=r,s=i(),o||(o=setTimeout(c,t),n&&(u=e.apply(f,a))),u}));return l.cancel=function(){clearTimeout(o),o=a=f=null},l}e.export({default:()=>o}),e.link("./restArguments.js",{default(e){r=e}},0),e.link("./now.js",{default(e){i=e}},1)},"wrap.js":function e(t,n,e){let r;function i(e,t){return r(t,e)}e.export({default:()=>i}),e.link("./partial.js",{default(e){r=e}},0)},"negate.js":function e(t,n,e){function r(e){return function(){return!e.apply(this,arguments)}}e.export({default:()=>r})},"compose.js":function e(t,n,e){function r(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}e.export({default:()=>r})},"after.js":function e(t,n,e){function r(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}e.export({default:()=>r})},"before.js":function e(t,n,e){function r(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}e.export({default:()=>r})},"once.js":function e(t,n,e){let r,i;e.link("./partial.js",{default(e){r=e}},0),e.link("./before.js",{default(e){i=e}},1),e.exportDefault(r(i,2))},"findKey.js":function e(t,n,e){let r,i;function o(e,t,n){t=r(t,n);for(var o=i(e),s,a=0,u=o.length;ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"findIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createPredicateIndexFinder.js":function e(t,n,e){let r,i;function o(e){return function(t,n,o){n=r(n,o);for(var s=i(t),a=e>0?0:s-1;a>=0&&ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"findLastIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"sortedIndex.js":function e(t,n,e){let r,i;function o(e,t,n,o){for(var s=(n=r(n,o,1))(t),a=0,u=i(e);ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"indexOf.js":function e(t,n,e){let r,i,o;e.link("./sortedIndex.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./_createIndexFinder.js",{default(e){o=e}},2),e.exportDefault(o(1,i,r))},"_createIndexFinder.js":function e(t,n,e){let r,i,o;function s(e,t,n){return function(s,a,u){var f=0,c=r(s);if("number"==typeof u)e>0?f=u>=0?u:Math.max(u+c,f):c=u>=0?Math.min(u+1,c):u+c+1;else if(n&&u&&c)return s[u=n(s,a)]===a?u:-1;if(a!=a)return(u=t(i.call(s,f,c),o))>=0?u+f:-1;for(u=e>0?f:c-1;u>=0&&us}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isNaN.js",{default(e){o=e}},2)},"lastIndexOf.js":function e(t,n,e){let r,i;e.link("./findLastIndex.js",{default(e){r=e}},0),e.link("./_createIndexFinder.js",{default(e){i=e}},1),e.exportDefault(i(-1,r))},"find.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s,a=(r(e)?i:o)(e,t,n);if(void 0!==a&&-1!==a)return e[a]}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./findKey.js",{default(e){o=e}},2)},"findWhere.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./find.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"each.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s,a;if(t=r(t,n),i(e))for(s=0,a=e.length;ss}),e.link("./_optimizeCb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"map.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=Array(a),f=0;fs}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"reduce.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createReduce.js":function e(t,n,e){let r,i,o;function s(e){var t=function(t,n,o,s){var a=!r(t)&&i(t),u=(a||t).length,f=e>0?0:u-1;for(s||(o=t[a?a[f]:f],f+=e);f>=0&&f=3;return t(e,o(n,i,4),r,s)}}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){o=e}},2)},"reduceRight.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"filter.js":function e(t,n,e){let r,i;function o(e,t,n){var o=[];return t=r(t,n),i(e,(function(e,n,r){t(e,n,r)&&o.push(e)})),o}e.export({default:()=>o}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"reject.js":function e(t,n,e){let r,i,o;function s(e,t,n){return r(e,i(o(t)),n)}e.export({default:()=>s}),e.link("./filter.js",{default(e){r=e}},0),e.link("./negate.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2)},"every.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"some.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"contains.js":function e(t,n,e){let r,i,o;function s(e,t,n,s){return r(e)||(e=i(e)),("number"!=typeof n||s)&&(n=0),o(e,t,n)>=0}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./indexOf.js",{default(e){o=e}},2)},"invoke.js":function e(t,n,e){let r,i,o,s,a;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./map.js",{default(e){o=e}},2),e.link("./_deepGet.js",{default(e){s=e}},3),e.link("./_toPath.js",{default(e){a=e}},4),e.exportDefault(r((function(e,t,n){var r,u;return i(t)?u=t:(t=a(t),r=t.slice(0,-1),t=t[t.length-1]),o(e,(function(e){var i=u;if(!i){if(r&&r.length&&(e=s(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))})))},"pluck.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./map.js",{default(e){r=e}},0),e.link("./property.js",{default(e){i=e}},1)},"where.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./filter.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"max.js":function e(t,n,e){let r,i,o,s;function a(e,t,n){var a=-1/0,u=-1/0,f,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,h=(e=r(e)?e:i(e)).length;la&&(a=f);else t=o(t,n),s(e,(function(e,n,r){((c=t(e,n,r))>u||c===-1/0&&a===-1/0)&&(a=e,u=c)}));return a}e.export({default:()=>a}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2),e.link("./each.js",{default(e){s=e}},3)},"min.js":function e(t,n,e){let r,i,o,s;function a(e,t,n){var a=1/0,u=1/0,f,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,h=(e=r(e)?e:i(e)).length;la}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2),e.link("./each.js",{default(e){s=e}},3)},"shuffle.js":function e(t,n,e){let r;function i(e){return r(e,1/0)}e.export({default:()=>i}),e.link("./sample.js",{default(e){r=e}},0)},"sample.js":function e(t,n,e){let r,i,o,s,a;function u(e,t,n){if(null==t||n)return r(e)||(e=i(e)),e[s(e.length-1)];var u=a(e),f=o(u);t=Math.max(Math.min(t,f),0);for(var c=f-1,l=0;lu}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){o=e}},2),e.link("./random.js",{default(e){s=e}},3),e.link("./toArray.js",{default(e){a=e}},4)},"toArray.js":function e(t,n,e){let r,i,o,s,a,u,f;e.export({default:()=>l}),e.link("./isArray.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isString.js",{default(e){o=e}},2),e.link("./_isArrayLike.js",{default(e){s=e}},3),e.link("./map.js",{default(e){a=e}},4),e.link("./identity.js",{default(e){u=e}},5),e.link("./values.js",{default(e){f=e}},6);var c=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function l(e){return e?r(e)?i.call(e):o(e)?e.match(c):s(e)?a(e,u):f(e):[]}},"sortBy.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s=0;return t=r(t,n),i(o(e,(function(e,n,r){return{value:e,index:s++,criteria:t(e,n,r)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(ns}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./pluck.js",{default(e){i=e}},1),e.link("./map.js",{default(e){o=e}},2)},"groupBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n].push(t):e[n]=[t]})))},"_group.js":function e(t,n,e){let r,i;function o(e,t){return function(n,o,s){var a=t?[[],[]]:{};return o=r(o,s),i(n,(function(t,r){var i=o(t,r,n);e(a,t,i)})),a}}e.export({default:()=>o}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"indexBy.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n]=t})))},"countBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n]++:e[n]=1})))},"partition.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n?0:1].push(t)}),!0))},"size.js":function e(t,n,e){let r,i;function o(e){return null==e?0:r(e)?e.length:i(e).length}e.export({default:()=>o}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"pick.js":function e(t,n,e){let r,i,o,s,a,u;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){o=e}},2),e.link("./allKeys.js",{default(e){s=e}},3),e.link("./_keyInObj.js",{default(e){a=e}},4),e.link("./_flatten.js",{default(e){u=e}},5),e.exportDefault(r((function(e,t){var n={},r=t[0];if(null==e)return n;i(r)?(t.length>1&&(r=o(r,t[1])),t=s(e)):(r=a,t=u(t,!1,!1),e=Object(e));for(var f=0,c=t.length;fr})},"omit.js":function e(t,n,e){let r,i,o,s,a,u,f;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./negate.js",{default(e){o=e}},2),e.link("./map.js",{default(e){s=e}},3),e.link("./_flatten.js",{default(e){a=e}},4),e.link("./contains.js",{default(e){u=e}},5),e.link("./pick.js",{default(e){f=e}},6),e.exportDefault(r((function(e,t){var n=t[0],r;return i(n)?(n=o(n),t.length>1&&(r=t[1])):(t=s(a(t,!1,!1),String),n=function(e,n){return!u(t,n)}),f(e,n,r)})))},"first.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:r(e,e.length-t)}e.export({default:()=>i}),e.link("./initial.js",{default(e){r=e}},0)},"initial.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"last.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:r(e,Math.max(0,e.length-t))}e.export({default:()=>i}),e.link("./rest.js",{default(e){r=e}},0)},"rest.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,null==t||n?1:t)}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"compact.js":function e(t,n,e){let r;function i(e){return r(e,Boolean)}e.export({default:()=>i}),e.link("./filter.js",{default(e){r=e}},0)},"flatten.js":function e(t,n,e){let r;function i(e,t){return r(e,t,!1)}e.export({default:()=>i}),e.link("./_flatten.js",{default(e){r=e}},0)},"without.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./difference.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t){return i(e,t)})))},"difference.js":function e(t,n,e){let r,i,o,s;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./filter.js",{default(e){o=e}},2),e.link("./contains.js",{default(e){s=e}},3),e.exportDefault(r((function(e,t){return t=i(t,!0,!0),o(e,(function(e){return!s(t,e)}))})))},"uniq.js":function e(t,n,e){let r,i,o,s;function a(e,t,n,a){r(t)||(a=n,n=t,t=!1),null!=n&&(n=i(n,a));for(var u=[],f=[],c=0,l=o(e);ca}),e.link("./isBoolean.js",{default(e){r=e}},0),e.link("./_cb.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){o=e}},2),e.link("./contains.js",{default(e){s=e}},3)},"union.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./uniq.js",{default(e){i=e}},1),e.link("./_flatten.js",{default(e){o=e}},2),e.exportDefault(r((function(e){return i(o(e,!0,!0))})))},"intersection.js":function e(t,n,e){let r,i;function o(e){for(var t=[],n=arguments.length,o=0,s=r(e);oo}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./contains.js",{default(e){i=e}},1)},"unzip.js":function e(t,n,e){let r,i,o;function s(e){for(var t=e&&r(e,i).length||0,n=Array(t),s=0;ss}),e.link("./max.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.link("./pluck.js",{default(e){o=e}},2)},"zip.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./unzip.js",{default(e){i=e}},1),e.exportDefault(r(i))},"object.js":function e(t,n,e){let r;function i(e,t){for(var n={},i=0,o=r(e);ii}),e.link("./_getLength.js",{default(e){r=e}},0)},"range.js":function e(t,n,e){function r(e,t,n){null==t&&(t=e||0,e=0),n||(n=tr})},"chunk.js":function e(t,n,e){let r;function i(e,t){if(null==t||t<1)return[];for(var n=[],i=0,o=e.length;ii}),e.link("./_setup.js",{slice(e){r=e}},0)},"mixin.js":function e(t,n,e){let r,i,o,s,a;function u(e){return i(o(e),(function(t){var n=r[t]=e[t];r.prototype[t]=function(){var e=[this._wrapped];return s.apply(e,arguments),a(this,n.apply(r,e))}})),r}e.export({default:()=>u}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./functions.js",{default(e){o=e}},2),e.link("./_setup.js",{push(e){s=e}},3),e.link("./_chainResult.js",{default(e){a=e}},4)},"_chainResult.js":function e(t,n,e){let r;function i(e,t){return e._chain?r(t).chain():t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"underscore-array-methods.js":function e(t,n,e){let r,i,o,s;e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./_setup.js",{ArrayProto(e){o=e}},2),e.link("./_chainResult.js",{default(e){s=e}},3),i(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=o[e];r.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),s(this,n)}})),i(["concat","join","slice"],(function(e){var t=o[e];r.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),s(this,e)}})),e.exportDefault(r)}}}}},cachers:{"package.json":function e(t,n,e){e.exports={name:"@steedos/cachers",version:"2.5.15-beta.9",main:"lib/index.js"}},lib:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getCacherNames=n.clearCacher=n.getCacher=void 0;var r={},i=t("./memory"),o=t("./memory-lru"),s=function(e,t){return r[e]||(e.startsWith("lru.")?r[e]=new o.MemoryLRUCacher(t):r[e]=new i.MemoryCacher),r[e]};n.getCacher=s;var a=function(e){r[e]&&r[e].clear()};n.clearCacher=a;var u=function(){return Object.keys(r)};n.getCacherNames=u},"memory.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryCacher=void 0;var r=t("lodash"),i=function(){function e(){this.cache={}}return e.prototype.get=function(e){return this.cache[e]},e.prototype.delete=function(e){delete this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.clear=function(){this.cache={}},e.prototype.keys=function(){return(0,r.keys)(this.cache)},e.prototype.values=function(){return(0,r.values)(this.cache)},e}();n.MemoryCacher=i},"memory-lru.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryLRUCacher=void 0;var r=t("lodash"),i=t("lru-cache"),o={max:5e3,ttl:null,keygen:null,maxParamsLength:null},s=function(){function e(e){this.opts=(0,r.defaultsDeep)(e,o),this.cache=new i({max:this.opts.max,maxAge:this.opts.ttl?1e3*this.opts.ttl:null,updateAgeOnGet:!!this.opts.ttl})}return e.prototype.get=function(e){return this.cache.get(e)},e.prototype.set=function(e,t,n){return this.cache.set(e,t,n)},e.prototype.delete=function(e){return this.cache.delete(e)},e.prototype.clear=function(){return this.cache.clear()},e.prototype.keys=function(){return this.cache.keys()},e.prototype.values=function(){return this.cache.values()},e}();n.MemoryLRUCacher=s}},node_modules:{"lru-cache":{"package.json":function e(t,n,e){e.exports={name:"lru-cache",version:"7.14.1",main:"index.js"}},"index.js":function e(t,n,e){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,i="function"==typeof AbortController,o=i?AbortController:class e{constructor(){this.signal=new u}abort(){this.signal.dispatchEvent("abort")}},s="function"==typeof AbortSignal,a="function"==typeof o.AbortSignal,u=s?AbortSignal:a?o.AbortController:class e{constructor(){this.aborted=!1,this._listeners=[]}dispatchEvent(e){if("abort"===e){this.aborted=!0;const t={type:e,target:this};this.onabort(t),this._listeners.forEach(e=>e(t),this)}}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},f=new Set,c=(e,t)=>{const n=`LRU_CACHE_OPTION_${e}`;p(n)&&g(n,`${e} option`,`options.${t}`,_)},l=(e,t)=>{const n=`LRU_CACHE_METHOD_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} method`,`cache.${t}()`,i)}},h=(e,t)=>{const n=`LRU_CACHE_PROPERTY_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} property`,`cache.${t}`,i)}},d=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},p=e=>!f.has(e),g=(e,t,n,r)=>{f.add(e);const i=`The ${t} is deprecated. Please use ${n} instead.`;d(i,"DeprecationWarning",e,r)},b=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),m=e=>b(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?v:null:null;class v extends Array{constructor(e){super(e),this.fill(0)}}class y{constructor(e){if(0===e)return[];const t=m(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class _{constructor(e={}){const{max:t=0,ttl:n,ttlResolution:r=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:s,allowStale:a,dispose:u,disposeAfter:l,noDisposeOnSet:h,noUpdateTTL:g,maxSize:v=0,maxEntrySize:w=0,sizeCalculation:k,fetchMethod:j,fetchContext:x,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:D}=e,{length:E,maxAge:A,stale:C}=e instanceof _?{}:e;if(0!==t&&!b(t))throw new TypeError("max option must be a nonnegative integer");const M=t?m(t):Array;if(!M)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=v,this.maxEntrySize=w||this.maxSize,this.sizeCalculation=k||E,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=j||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=x,!this.fetchMethod&&void 0!==x)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new M(t),this.prev=new M(t),this.head=0,this.tail=0,this.free=new y(t),this.initialFill=1,this.size=0,"function"==typeof u&&(this.dispose=u),"function"==typeof l?(this.disposeAfter=l,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!S,0!==this.maxEntrySize){if(0!==this.maxSize&&!b(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!b(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!a||!!C,this.noDeleteOnStaleGet=!!D,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!s,this.ttlResolution=b(r)||0===r?r:1,this.ttlAutopurge=!!i,this.ttl=n||A||0,this.ttl){if(!b(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";if(p(e)){f.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";d(t,"UnboundedCacheWarning",e,_)}}C&&c("stale","allowStale"),A&&c("maxAge","ttl"),E&&c("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new v(this.max),this.starts=new v(this.max),this.setItemTTL=(e,t,n=r.now())=>{if(this.starts[e]=0!==t?n:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const n=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);n.unref&&n.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0};let e=0;const t=()=>{const t=r.now();if(this.ttlResolution>0){e=t;const n=setTimeout(()=>e=0,this.ttlResolution);n.unref&&n.unref()}return t};this.getRemainingTTL=n=>{const r=this.keyMap.get(n);return void 0===r?0:0===this.ttls[r]||0===this.starts[r]?1/0:this.starts[r]+this.ttls[r]-(e||t())},this.isStale=n=>0!==this.ttls[n]&&0!==this.starts[n]&&(e||t())-this.starts[n]>this.ttls[n]}updateItemAge(e){}setItemTTL(e,t,n){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new v(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,n,r)=>{if(this.isBackgroundFetch(t))return 0;if(!b(n)){if(!r)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!b(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.addItemSize=(e,t)=>{if(this.sizes[e]=t,this.maxSize){const t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e]}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,n,r){if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const n of this.indexes())if(e(this.valList[n],this.keyList[n],this))return this.get(this.keyList[n],t)}forEach(e,t=this){for(const n of this.indexes())e.call(t,this.valList[n],this.keyList[n],this)}rforEach(e,t=this){for(const n of this.rindexes())e.call(t,this.valList[n],this.keyList[n],this)}get prune(){return l("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes({allowStale:!0})){const n=this.keyList[t],i=this.valList[t],o=this.isBackgroundFetch(i)?i.__staleWhileFetching:i,s={value:o};if(this.ttls){s.ttl=this.ttls[t];const e=r.now()-this.starts[t];s.start=Math.floor(Date.now()-e)}this.sizes&&(s.size=this.sizes[t]),e.unshift([n,s])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}dispose(e,t,n){}set(e,t,{ttl:n=this.ttl,start:r,noDisposeOnSet:i=this.noDisposeOnSet,size:o=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(o=this.requireSize(e,t,o,s),this.maxEntrySize&&o>this.maxEntrySize)return this.delete(e),this;let u=0===this.size?void 0:this.keyMap.get(e);if(void 0===u)u=this.newIndex(),this.keyList[u]=e,this.valList[u]=t,this.keyMap.set(e,u),this.next[this.tail]=u,this.prev[u]=this.tail,this.tail=u,this.size++,this.addItemSize(u,o),a=!1;else{const n=this.valList[u];t!==n&&(this.isBackgroundFetch(n)?n.__abortController.abort():i||(this.dispose(n,e,"set"),this.disposeAfter&&this.disposed.push([n,e,"set"])),this.removeItemSize(u),this.valList[u]=t,this.addItemSize(u,o)),this.moveToTail(u)}if(0===n||0!==this.ttl||this.ttls||this.initializeTTLTracking(),a||this.setItemTTL(u,n,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,n=this.keyList[t],r=this.valList[t];return this.isBackgroundFetch(r)?r.__abortController.abort():(this.dispose(r,n,"evict"),this.disposeAfter&&this.disposed.push([r,n,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(n),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const n=this.keyMap.get(e);return void 0!==n&&!this.isStale(n)&&(t&&this.updateItemAge(n),!0)}peek(e,{allowStale:t=this.allowStale}={}){const n=this.keyMap.get(e);if(void 0!==n&&(t||!this.isStale(n))){const e=this.valList[n];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,n,r){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const s=new o,a={signal:s.signal,options:n,context:r},u=t=>(s.signal.aborted||this.set(e,t,a.options),t),f=r=>{if(this.valList[t]===l){const r=!n.noDeleteOnFetchRejection||void 0===l.__staleWhileFetching;r?this.delete(e):this.valList[t]=l.__staleWhileFetching}if(l.__returned===l)throw r},c=t=>t(this.fetchMethod(e,i,a)),l=new Promise(c).then(u,f);return l.__abortController=s,l.__staleWhileFetching=i,l.__returned=null,void 0===t?(this.set(e,l,a.options),t=this.keyMap.get(e)):this.valList[t]=l,l}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,fetchContext:c=this.fetchContext,forceRefresh:l=!1}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r});const h={allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:i,noDisposeOnSet:o,size:s,sizeCalculation:a,noUpdateTTL:u,noDeleteOnFetchRejection:f};let d=this.keyMap.get(e);if(void 0===d){const t=this.backgroundFetch(e,d,h,c);return t.__returned=t}{const r=this.valList[d];if(this.isBackgroundFetch(r))return t&&void 0!==r.__staleWhileFetching?r.__staleWhileFetching:r.__returned=r;if(!l&&!this.isStale(d))return this.moveToTail(d),n&&this.updateItemAge(d),r;const i=this.backgroundFetch(e,d,h,c);return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i.__returned=i}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet}={}){const i=this.keyMap.get(e);if(void 0!==i){const o=this.valList[i],s=this.isBackgroundFetch(o);if(this.isStale(i))return s?t?o.__staleWhileFetching:void 0:(r||this.delete(e),t?o:void 0);if(s)return;return this.moveToTail(i),n&&this.updateItemAge(i),o}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return l("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const n=this.keyMap.get(e);if(void 0!==n)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(n);const t=this.valList[n];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const n=this.keyList[e];this.dispose(t,n,"delete"),this.disposeAfter&&this.disposed.push([t,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return l("reset","clear"),this.clear}get length(){return h("length","size"),this.size}static get AbortController(){return o}static get AbortSignal(){return u}}e.exports=_}}}}},tslib:{"package.json":function e(t,n,e){e.exports={name:"tslib",version:"2.3.1",module:"tslib.es6.js",main:"tslib.js"}},"tslib.es6.js":function e(t,n,e){e.export({__extends:()=>i,__assign:()=>o,__rest:()=>s,__decorate:()=>a,__param:()=>u,__metadata:()=>f,__awaiter:()=>c,__generator:()=>l,__createBinding:()=>h,__exportStar:()=>d,__values:()=>p,__read:()=>g,__spread:()=>b,__spreadArrays:()=>m,__spreadArray:()=>v,__await:()=>y,__asyncGenerator:()=>_,__asyncDelegator:()=>w,__asyncValues:()=>k,__makeTemplateObject:()=>j,__importStar:()=>S,__importDefault:()=>D,__classPrivateFieldGet:()=>E,__classPrivateFieldSet:()=>A}); +if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,r=this,i;return e(this).one("bsTransitionEnd",(function(){n=!0})),setTimeout((function(){n||e(r).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};function r(t){return this.each((function(){var r=e(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),"string"==typeof t&&i[t].call(r)}))}n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.close=function(t){var r=e(this),i=r.attr("data-target");i||(i=(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var o=e(document).find(i);function s(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=r.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",s).emulateTransitionEnd(n.TRANSITION_DURATION):s())};var i=e.fn.alert;e.fn.alert=r,e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.isLoading=!1};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.button"),o="object"==typeof n&&n;i||r.data("bs.button",i=new t(this,o)),"toggle"==n?i.toggle():n&&i.setState(n)}))}t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var n="disabled",r=this.$element,i=r.is("input")?"val":"html",o=r.data();t+="Text",null==o.resetText&&r.data("resetText",r[i]()),setTimeout(e.proxy((function(){r[i](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n).prop(n,!1))}),this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var r=e.fn.button;e.fn.button=n,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=r,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var r=e(t.target).closest(".btn");n.call(r,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(jQuery),function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.carousel"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n),s="string"==typeof n?n:o.slide;i||r.data("bs.carousel",i=new t(this,o)),"number"==typeof n?i.to(n):s?i[s]():o.interval&&i.pause().cycle()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),r;if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var i,o=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(o)},t.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(n,r){var i=this.$element.find(".item.active"),o=r||this.getItemForDirection(n,i),s=this.interval,a="next"==n?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var f=o[0],c=e.Event("slide.bs.carousel",{relatedTarget:f,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=e(this.$indicators.children()[this.getItemIndex(o)]);l&&l.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:f,direction:a});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(n),"object"==typeof o&&o.length&&o[0].offsetWidth,i.addClass(a),o.addClass(a),i.one("bsTransitionEnd",(function(){o.removeClass([n,a].join(" ")).addClass("active"),i.removeClass(["active",a].join(" ")),u.sliding=!1,setTimeout((function(){u.$element.trigger(h)}),0)})).emulateTransitionEnd(t.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}};var r=e.fn.carousel;e.fn.carousel=n,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=r,this};var i=function(t){var r=e(this),i=r.attr("href");i&&(i=i.replace(/.*(?=#[^\s]+$)/,""));var o=r.attr("data-target")||i,s=e(document).find(o);if(s.hasClass("carousel")){var a=e.extend({},s.data(),r.data()),u=r.attr("data-slide-to");u&&(a.interval=!1),n.call(s,a),u&&s.data("bs.carousel").to(u),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var t=e(this);n.call(t,t.data())}))}))}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.$trigger=e('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var n,r=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(r)}function r(n){return this.each((function(){var r=e(this),i=r.data("bs.collapse"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n);!i&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),i||r.data("bs.collapse",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e;return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(n=i.data("bs.collapse"))&&n.transitioning)){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(r.call(i,"hide"),n||i.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var u=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[s](this.$element[0][u])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=e.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return i.call(this);this.$element[r](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,r){var i=e(r);this.addAriaAndCollapsedClass(n(i),i)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var i=e.fn.collapse;e.fn.collapse=r,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var i=e(this);i.attr("data-target")||t.preventDefault();var o=n(i),s,a=o.data("bs.collapse")?"toggle":i.data();r.call(o,a)}))}(jQuery),function(e){"use strict";var t=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(t){e(t).on("click.bs.dropdown",this.toggle)};function i(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r="#"!==n?e(document).find(n):null;return r&&r.length?r:t.parent()}function o(r){r&&3===r.which||(e(t).remove(),e(n).each((function(){var t=e(this),n=i(t),o={relatedTarget:this};n.hasClass("open")&&(r&&"click"==r.type&&/input|textarea/i.test(r.target.tagName)&&e.contains(n[0],r.target)||(n.trigger(r=e.Event("hide.bs.dropdown",o)),r.isDefaultPrevented()||(t.attr("aria-expanded","false"),n.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))})))}function s(t){return this.each((function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof t&&i[t].call(n)}))}r.VERSION="3.4.1",r.prototype.toggle=function(t){var n=e(this);if(!n.is(".disabled, :disabled")){var r=i(n),s=r.hasClass("open");if(o(),!s){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",o);var a={relatedTarget:this};if(r.trigger(t=e.Event("show.bs.dropdown",a)),t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(e.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var r=e(this);if(t.preventDefault(),t.stopPropagation(),!r.is(".disabled, :disabled")){var o=i(r),s=o.hasClass("open");if(!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(n).trigger("focus"),r.trigger("click");var a=" li:not(.disabled):visible a",u=o.find(".dropdown-menu"+a);if(u.length){var f=u.index(t.target);38==t.which&&f>0&&f--,40==t.which&&fdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},f.prototype.init=function(t,n,r){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var s=i[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",u="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},f.prototype.getDefaults=function(){return f.DEFAULTS},f.prototype.getOptions=function(n){var r=this.$element.data();for(var i in r)r.hasOwnProperty(i)&&-1!==e.inArray(i,t)&&delete r[i];return(n=e.extend({},this.getDefaults(),r,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=u(n.template,n.whiteList,n.sanitizeFn)),n},f.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,(function(e,r){n[e]!=r&&(t[e]=r)})),t},f.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout((function(){"in"==n.hoverState&&n.show()}),n.options.delay.show)}},f.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},f.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout((function(){"out"==n.hoverState&&n.hide()}),n.options.delay.hide)}},f.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var r=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,u=a.test(s);u&&(s=s.replace(a,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?i.appendTo(e(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),l=i[0].offsetWidth,h=i[0].offsetHeight;if(u){var d=s,p=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+h>p.bottom?"top":"top"==s&&c.top-hp.width?"left":"left"==s&&c.left-ls.top+s.height&&(i.top=s.top+s.height-u)}else{var f=t.left-o,c=t.left+o+n;fs.right&&(i.left=s.left+s.width-c)}return i},f.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},f.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},f.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},f.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},f.prototype.enable=function(){this.enabled=!0},f.prototype.disable=function(){this.enabled=!1},f.prototype.toggleEnabled=function(){this.enabled=!this.enabled},f.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},f.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},f.prototype.sanitizeHtml=function(e){return u(e,this.options.whiteList,this.options.sanitizeFn)};var l=e.fn.tooltip;e.fn.tooltip=c,e.fn.tooltip.Constructor=f,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=l,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");function n(n){return this.each((function(){var r=e(this),i=r.data("bs.popover"),o="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.popover",i=new t(this,o)),"string"==typeof n&&i[n]())}))}t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();if(this.options.html){var r=typeof n;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===r&&(n=this.sanitizeHtml(n))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===r?"html":"append"](n)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(n);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var r=e.fn.popover;e.fn.popover=n,e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=r,this}}(jQuery),function(e){"use strict";function t(n,r){this.$body=e(document.body),this.$scrollElement=e(n).is(document.body)?e(window):e(n),this.options=e.extend({},t.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each((function(){var r=e(this),i=r.data("bs.scrollspy"),o="object"==typeof n&&n;i||r.data("bs.scrollspy",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),i=t.data("target")||t.attr("href"),o=/^#./.test(i)&&e(i);return o&&o.length&&o.is(":visible")&&[[o[n]().top+r,i]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.getScrollHeight(),n=this.options.offset+t-this.$scrollElement.height(),r=this.offsets,i=this.targets,o=this.activeTarget,s;if(this.scrollHeight!=t&&this.refresh(),e>=n)return o!=(s=i[i.length-1])&&this.activate(s);if(o&&e=r[s]&&(void 0===r[s+1]||e .active"),s=i&&e.support.transition&&(o.length&&o.hasClass("fade")||!!r.find("> .fade").length);function a(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&s?o.one("bsTransitionEnd",a).emulateTransitionEnd(t.TRANSITION_DURATION):a(),o.removeClass("in")};var r=e.fn.tab;e.fn.tab=n,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=r,this};var i=function(t){t.preventDefault(),n.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(e){"use strict";var t=function(n,r){this.options=e.extend({},t.DEFAULTS,r);var i=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.affix"),o="object"==typeof n&&n;i||r.data("bs.affix",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,n,r){var i=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return i=e-r&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),r=this.options.offset,i=r.top,o=r.bottom,s=Math.max(e(document).height(),e(document.body).height());"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var a=this.getState(s,n,i,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var u="affix"+(a?"-"+a:""),f=e.Event(u+".bs.affix");if(this.$element.trigger(f),f.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-n-o})}};var r=e.fn.affix;e.fn.affix=n,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=r,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var t=e(this),r=t.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),n.call(t,r)}))}))}(jQuery)}}}},fibers:{"package.json":function e(t,n,e){e.exports={name:"fibers",version:"5.0.3",main:"fibers"}},"fibers.js":function e(t,n,e,r,i){if(process.fiberLib)e.exports=process.fiberLib;else{var o=t("fs"),s=t("path"),a=t("detect-libc");Math.random();var u=s.join(i,"bin",process.platform+"-"+process.arch+"-"+process.versions.modules+("linux"===process.platform?"-"+a.family:""),"fibers");try{process.fiberLib=e.exports=t(u).Fiber}catch(c){throw console.error("## There is an issue with `node-fibers` ##\n`"+u+".node` is missing.\n\nTry running this to fix the issue: "+process.execPath+" "+i.replace(" ","\\ ")+"/build"),console.error(c.stack||c.message||c),new Error("Missing binary. See message above.")}f(e.exports)}function f(e){try{var t=process.binding("async_wrap"),n;if(t.asyncIdStackSize instanceof Function)n=t.asyncIdStackSize;else{if(void 0===t.constants.kStackLength)throw new Error("Couldn't figure out how to get async stack size");l=t.constants.kStackLength,n=function(){return t.async_hook_fields[l]}}var r=t.popAsyncContext||t.popAsyncIds,i=t.pushAsyncContext||t.pushAsyncIds,o,s;if(!r||!i)throw new Error("Push/pop do not exist");o=void 0===t.constants.kExecutionAsyncId?t.constants.kCurrentAsyncId:t.constants.kExecutionAsyncId,s=void 0===t.constants.kTriggerAsyncId?t.constants.kCurrentTriggerId:t.constants.kTriggerAsyncId;var a=t.async_id_fields||t.async_uid_fields;function u(){for(var e=n(),t=new Array(e);e>0;--e){var i=a[o];t[e-1]={asyncId:i,triggerId:a[s]},r(i)}return t}function f(e){for(var t=0;t0)i.changeLanguage(e,r);else if(0!=a[u]){a[u]=0;var f=new XMLHttpRequest;f.overrideMimeType("application/json"),f.open("GET",u,!1),f.send(null),200===f.status?a[u]=1:a[u]=-1,n.addResourceBundle(e,s,JSON.parse(f.response)||{}),i.changeLanguage(e,r)}};n.changeLanguage=p;var g=function(e,t,n){return i.format(e,t,n)};n.format=g;var b=function(){return i.languages};n.getLanguages=b;var m=function(e,t){return i.loadLanguages(e,t)};n.loadLanguages=m;var v=function(e,t){return i.loadNamespaces(e,t)};n.loadNamespaces=v;var y=function(e,t){return i.on(e,t)};n.on=y;var _=function(e,t){return i.off(e,t)};n.off=_,r.__exportStar(t("./i18n/i18n"),n),r.__exportStar(t("./i18n/i18n.app"),n),r.__exportStar(t("./translations"),n)},i18n:{"i18n.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fallbackKeys=n.getObjectI18nTemplate=n.translationI18nObjects=n.addObjectsI18n=n.translationI18nObject=void 0;var r=t("../index"),i=t("underscore"),o=t("clone"),s="_",a="base",u="core",f="translation",c=function(e,t){var n={lng:t,ns:f};if((0,r.exists)(e,n))return(0,r._t)(e,n)},l=function(e){return"".concat(e,"__object")},h=function(e,t){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t)},d=function(e,t){var n=h(e,t);return"".concat(n).concat("_","inlineHelpText")},p=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","group").concat("_").concat(n)},g=function(e,t,n){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t).concat("_","options").concat("_").concat(n)},b=function(e,t){return"".concat(e).concat("_","action").concat("_").concat(t)},m=function(e,t){return"".concat(e).concat("_","listview").concat("_").concat(t)},v=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},y=function(e,t,n){var r=l(t);return c(r,e)||n||""},_=function(e,t,n,r,i){var o=h(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=_(e,a,n,r,i))}return s||r||""},w=function(e,t,n,r,i){var o=d(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=w(e,a,n,r,i))}return s||r||""},k=function(e,t,n,r){var i=p(t,n);return c(i,e)||r||""},j=function(e,t,n,r,i,o){var s=g(t,n,r),a=c(s,e);if(!a){var u=v(o);u&&"base"!=t&&"core"!=t&&(a=j(e,u,n,r,i,o))}return a||i||""},x=function(e,t,n,r,i){var o=b(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=x(e,a,n,r,i))}return s||r||""},S=function(e,t,n,r,i){var o=m(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=S(e,a,n,r,i))}return s||r||""},D=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},E=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;return e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(D(e))}))):n.push(D(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},A=function(e,t,n){n.label=y(e,t,n.label),i.each(n.fields,(function(r,o){if(r.label=_(e,t,o,r.label,n.datasource),r.inlineHelpText&&(r.inlineHelpText=w(e,t,o,r.inlineHelpText,n.datasource)),r.group&&(r.group=k(e,t,r.group,r.group)),r.options){var s=[];i.each(r.options,(function(r){if(i.has(r,"value")){var a=j(e,t,o,r.value,r.label,n.datasource);s.push(i.extend({},r,{label:a}))}else s.push(r)})),r.options=s}})),i.each(n.actions,(function(r,i){r.label=x(e,t,i,r.label,n.datasource)})),i.each(n.list_views,(function(r,i){r.label=S(e,t,i,r.label,n.datasource)}))};n.translationI18nObject=A;var C=function(e){i.each(e,(function(e){(0,r.addResourceBundle)(e.lng,f,e.data,!0,!0)}))};n.addObjectsI18n=C;var M=function(e,t){i.each(t,(function(t,r){(0,n.translationI18nObject)(e,r,t)}))};n.translationI18nObjects=M;var O=function(e,t,n){var r=o(n);E(r);var s={};return s[l(t)]=y(e,t,r.label),i.each(r.fields,(function(n,o){s[h(t,o)]=_(e,t,o,n.label),n.inlineHelpText&&(s[d(t,o)]=w(e,t,o,n.inlineHelpText,r.datasource)),n.group&&(s[p(t,n.group)]=k(e,t,n.group,n.group)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(s[g(t,o,n.value)]=j(e,t,o,n.value,n.label))}))})),i.each(r.actions,(function(n,r){s[b(t,r)]=x(e,t,r,n.label)})),i.each(r.list_views,(function(n,r){s[m(t,r)]=S(e,t,r,n.label)})),s};n.getObjectI18nTemplate=O,n.fallbackKeys={getObjectLabelKey:l,getObjectFieldLabelKey:h,getObjectFieldInlineHelpTextLabelKey:d,getObjectFieldGroupKey:p,getObjectFieldOptionsLabelKey:g,getObjectActionLabelKey:b,getObjectListviewLabelKey:m}},"i18n.app.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.appFallbackKeys=n.getAppI18nTemplate=n.translationI18nApps=n.translationI18nMenus=void 0;var r=t("../index"),i=t("underscore"),o=t("clone"),s="translation",a="_",u=function(e,t){var n={lng:t,ns:s};if((0,r.exists)(e,n))return(0,r._t)(e,n)},f=function(e){return"app".concat("_").concat(e).concat("_","name")},c=function(e){return"app".concat("_").concat(e).concat("_","description")},l=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","tab_group").concat("_").concat(n)},h=function(e){return"menu".concat("_").concat(e)},d=function(e){return"tab".concat("_").concat(e)},p=function(e,t,n){var r=f(t);return u(r,e)||n||""},g=function(e,t,n){var r=c(t);return u(r,e)||n||""},b=function(e,t,n){var r=h(t);return u(r,e)||n||""},m=function(e,t,r){r.label=p(e,t,r.label||r.name),r.description=g(e,t,r.description),(0,n.translationI18nMenus)(e,r.admin_menus)},v=function(e,t){i.each(t,(function(t){var n=b(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationI18nMenus=v;var y=function(e,t){i.each(t,(function(t,n){m(e,n,t)}))};n.translationI18nApps=y;var _=function(e,t,n){var r=o(n),s={};return s[f(t)]=p(e,t,r.label||r.name),s[c(t)]=g(e,t,r.description),i.each(r.admin_menus,(function(t){s[h(t._id)]=b(e,t._id,t.label||t.name)})),s};n.getAppI18nTemplate=_,n.appFallbackKeys={getAppLabelKey:f,getAppDescriptionKey:c,getAppGroupKey:l,getMenuLabelKey:h,getTabKey:d}}},translations:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SteedosTranslationPrefixKeys=n.convertObject=void 0;var r=t("tslib"),i=t("underscore");r.__exportStar(t("./objectTranslation"),n),r.__exportStar(t("./translation"),n),r.__exportStar(t("./templates/objectTranslation"),n),r.__exportStar(t("./templates/translation"),n);var o=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},s=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(o(e))}))):n.push(o(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else if(e.options&&i.isArray(e.options))try{i.forEach(e.options,(function(e){i.isString(e)?n.push(o(e)):n.push(e)})),e.options=n}catch(r){console.error("Creator.convertFieldsOptions",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},a;n.convertObject=s,function(e){e.Object="CustomObject",e.Field="CustomField",e.Action="CustomAction",e.Listview="CustomListview",e.Permission="CustomPermission",e.ValidationRule="CustomValidationRule",e.Application="CustomApplication",e.Tab="CustomTabs",e.Permissionset="CustomPermissionset",e.Profile="CustomProfile",e.Report="CustomReport",e.Workflow="Workflow",e.Layout="Layout",e.Client="Client",e.Server="Server",e.Function="Function",e.Router="Router",e.Trigger="Trigger"}(a=n.SteedosTranslationPrefixKeys||(n.SteedosTranslationPrefixKeys={}))},"objectTranslation.js":function e(t,n,e,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addObjectsTranslation=n.getObjectTranslationTemplate=n.translationObjects=n.translationObject=n.translationObjectLabel=void 0;var i=t("underscore"),o=t("./"),s=t("../index"),a=t("./index"),u=t("../i18n/i18n"),f=t("lodash"),c=t("crypto"),l,h=(0,t("@steedos/cachers").getCacher)("lru.translations.objects");function d(e){var t;return c.createHash("md5").update(e).digest("hex")}var p=function(e,t){return"".concat(e,"_").concat(t.name,"_").concat(d(JSON.stringify(t)))},g=t("clone"),b=".",m="base",v="core",y="translation",_="object",w="field",k="listview",j="action",x=function(e,t){var n={lng:t,ns:y,keySeparator:!1};if((0,s.exists)(e,n))return(0,s._t)(e,n)},S=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},D=function(e){switch(e){case"object":return o.SteedosTranslationPrefixKeys.Object;case"field":return o.SteedosTranslationPrefixKeys.Field;case"listview":return o.SteedosTranslationPrefixKeys.Listview;case"action":return o.SteedosTranslationPrefixKeys.Action;default:return"CustomLabels"}},E=function(e){var t;return[D(),e].join(".")},A=function(e){var t;return[D("object"),e,"label"].join(".")},C=function(e){var t;return[D("object"),e,"description"].join(".")},M=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"label"].join(".")},O=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"help"].join(".")},T=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"description"].join(".")},B=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_"),r;return[D("field"),e,"group",n].join(".")},I=function(e,t,n){var r;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"options",n].join(".")},R=function(e,t){var n;return[D("action"),e,t].join(".")},F=function(e,t){var n;return[D("listview"),e,t].join(".")},P=function(e,t,n){var r,i=[A(t)],o=u.fallbackKeys.getObjectLabelKey(t);return o&&i.push(o),x(i,e)||n||""};n.translationObjectLabel=P;var N=function(e,t,n){var r=C(t);return x(r,e)||n||""},L=function(e,t,n,r,i,o){var s,a=[M(t,n)],f=u.fallbackKeys.getObjectFieldLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=L(e,l,n,r,i))}return c||r||""},z=function(e,t,n,r,i,o){var s,a=[O(t,n)],f=u.fallbackKeys.getObjectFieldInlineHelpTextLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=z(e,l,n,r,i))}return c||r||""},U=function(e,t,n,r,i,o){var s=T(t,n),a,u=x([s],e);if(1!=o&&!u){var f=S(i);f&&"base"!=t&&"core"!=t&&(u=U(e,f,n,r,i))}return u||r||""},q=function(e,t,n,r,i,o){var s,a=[B(t,n)],f=u.fallbackKeys.getObjectFieldGroupKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=q(e,l,n,r,i))}return c||r||""},$=function(e,t,n,r,i,o,s){var a,f=[I(t,n,r)],c=u.fallbackKeys.getObjectFieldOptionsLabelKey(t,n,r);c&&f.push(c);var l=x(f,e);if(1!=s&&!l){var h=S(o);h&&"base"!=t&&"core"!=t&&(l=$(e,h,n,r,i,o))}return l||i||""},H=function(e,t,n,r,i,o){var s,a=[R(t,n)],f=u.fallbackKeys.getObjectActionLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=H(e,l,n,r,i))}return c||r||""},W=function(e,t,n,r,i,o){var s,a=[F(t,n)],f=u.fallbackKeys.getObjectListviewLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=W(e,l,n,r,i))}return c||r||""},Y=function(e,t,r,o,s){void 0===s&&(s=!1);var u=p(e,r);"test_obj_layout1"===t&&console.log("translationObject",t,u);var c=h.get(u);if(c)return Object.assign(r,(0,f.cloneDeep)(c));o&&(0,a.convertObject)(r),r.label=(0,n.translationObjectLabel)(e,t,r.label),r.description=N(e,t,r.description),i.each(r.fields,(function(n,o){if(n.label=L(e,t,o,n.label,r.datasource,s),n.inlineHelpText&&(n.inlineHelpText=z(e,t,o,n.inlineHelpText,r.datasource,s)),n.group&&(n.group=q(e,t,n.group,n.group,r.datasource,s)),n.options){var a=[];i.each(n.options,(function(n){if(i.has(n,"value")){var u=$(e,t,o,n.value,n.label,r.datasource,s);a.push(i.extend({},n,{label:u}))}else a.push(n)})),n.options=a}})),i.each(r.actions,(function(n,i){n.label=H(e,t,i,n.label,r.datasource,s)})),i.each(r.list_views,(function(n,i){n.label=W(e,t,i,n.label,r.datasource,s)})),h.set(u,(0,f.cloneDeep)(r))};n.translationObject=Y;var V=function(e,t){i.each(t,(function(t,r){(0,n.translationObject)(e,r,t)}))};n.translationObjects=V;var K=function(e,t,r){var o=g(r);(0,a.convertObject)(o);var s={};return s[A(t)]=(0,n.translationObjectLabel)(e,t,o.label),s[C(t)]=N(e,t,o.description),i.each(o.fields,(function(n,r){s[M(t,r)]=L(e,t,r,n.label),n.inlineHelpText&&(s[O(t,r)]=z(e,t,r,n.inlineHelpText,o.datasource)),n.description&&(s[T(t,r)]=U(e,t,r,n.description,o.datasource)),n.group&&(s[B(t,n.group)]=q(e,t,n.group,n.group,o.datasource)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(s[I(t,r,n.value)]=$(e,t,r,n.value,n.label))}))})),i.each(o.actions,(function(n,r){s[R(t,r)]=H(e,t,r,n.label)})),i.each(o.list_views,(function(n,r){s[F(t,r)]=W(e,t,r,n.label)})),s};function G(e,t){var n=g(e);(0,a.convertObject)(n);var r={},o=n.name;return o||console.error("Error: Invalid objectTranslation:"+t),r[A(o)]=n.label,r[C(o)]=n.description,i.each(n.fields,(function(e,t){r[M(o,t)]=e.label,e.help&&(r[O(o,t)]=e.help),e.description&&(r[T(o,t)]=e.description),e.options&&i.each(e.options,(function(e){i.has(e,"value")&&(r[I(o,t,e.value)]=e.label)}))})),i.each(n.groups,(function(e,t){r[B(o,t)]=e})),i.each(n.actions,(function(e,t){r[R(o,t)]=e.label})),i.each(n.listviews,(function(e,t){r[F(o,t)]=e.label})),i.each(n.CustomLabels,(function(e,t){r[E(t)]=e})),r}n.getObjectTranslationTemplate=K;var X=function(e){i.each(e,(function(e){var t=G(e.data,e.__filename);(0,s.addResourceBundle)(e.lng,y,t,!0,!0)}))};n.addObjectsTranslation=X},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addTranslations=n.convertTranslation=n.convertTranslationData=n.getAppTranslationTemplate=n.translationApps=n.translationMenus=n.translationApp=n.translationTabLabel=n.translationTabGroup=void 0;var r=t("../index"),i=t("underscore"),o=t("./"),s=t("../i18n/i18n.app"),a=t("clone"),u="translation",f=".",c="app",l="menu",h="tab",d=function(e){switch(e){case"app":return o.SteedosTranslationPrefixKeys.Application;case"tab":return o.SteedosTranslationPrefixKeys.Tab;default:return"CustomLabels"}},p=function(e){var t;return[d(),e].join(".")},g=function(e,t){var n={lng:t,ns:u,keySeparator:!1};if((0,r.exists)(e,n))return(0,r._t)(e,n)},b=function(e){var t;return[d("app"),e,"name"].join(".")},m=function(e){var t;return[d("app"),e,"description"].join(".")},v=function(e,t){var n,r;return[d("app"),e,"groups",t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_")].join(".")},y=function(e){var t;return[d("menu"),"menu_".concat(e)].join(".")},_=function(e){var t;return[d("tab"),e].join(".")},w=function(e,t,n){var r,i=[b(t)],o=s.appFallbackKeys.getAppLabelKey(t);return o&&i.push(o),g(i,e)||n||""},k=function(e,t,n){var r,i=[m(t)],o=s.appFallbackKeys.getAppDescriptionKey(t);return o&&i.push(o),g(i,e)||n||""},j=function(e,t,n,r){var i,o=[v(t,n)],a=s.appFallbackKeys.getAppGroupKey(t,n);return a&&o.push(a),g(o,e)||r||""};n.translationTabGroup=j;var x=function(e,t,n){var r,i=[y(t)],o=s.appFallbackKeys.getMenuLabelKey(t);return o&&i.push(o),g(i,e)||n||""},S=function(e,t,n){var r,i=[_(t)],o=s.appFallbackKeys.getTabKey(t);return o&&i.push(o),g(i,e)||n||""};n.translationTabLabel=S;var D=function(e,t,r){r.label=w(e,t,r.label||r.name),r.description=k(e,t,r.description),i.each(r.tab_groups,(function(i,o){r.tab_groups[o].id=i.id||i.group_name,r.tab_groups[o].group_name=(0,n.translationTabGroup)(e,t,i.group_name,i.group_name)})),(0,n.translationMenus)(e,r.admin_menus)};n.translationApp=D;var E=function(e,t){i.each(t,(function(t){var n=x(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationMenus=E;var A=function(e,t){i.each(t,(function(t,r){(0,n.translationApp)(e,r,t)}))};n.translationApps=A;var C=function(e,t,n){var r=a(n),o={};return o[b(t)]=w(e,t,r.label||r.name),o[m(t)]=k(e,t,r.description),i.each(r.admin_menus,(function(t){o[y(t._id)]=x(e,t._id,t.label||t.name)})),o};n.getAppTranslationTemplate=C;var M=function(e,t,n){i.isArray(n)?i.each(n,(function(e){M(e,"",e)})):n&&i.each(i.keys(n),(function(r){var o=t?"".concat(t,".").concat(r):r,s=n[r];"object"==typeof s?i.isArray(s)?i.each(s,(function(e){M(e,o,s)})):M(e,o,s):e[o]=s}))};function O(e){for(var t in e)"object"==typeof e[t]&&M(e,t,e[t]);return e}n.convertTranslationData=O;var T=function(e){var t=a(e),n={};return i.each(t.CustomApplications,(function(e,t){n[b(t)]=e.name,n[m(t)]=e.description,i.each(e.groups,(function(e,r){n[v(t,r)]=e}))})),i.each(t.CustomTabs,(function(e,t){n[_(t)]=e})),i.each(t.CustomLabels,(function(e,t){var r;if("simpleschema"!=t&&i.isObject(e)){var o=O(((r={})[t]=e,r));i.each(o,(function(e,t){i.isObject(e)||(n[p(t)]=e)}))}else n[p(t)]=e})),n};n.convertTranslation=T;var B=function(e){i.each(e,(function(e){var t=(0,n.convertTranslation)(e.data);(0,r.addResourceBundle)(e.lng,u,t,!0,!0)}))};n.addTranslations=B},templates:{"objectTranslation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getObjectMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),o=t("clone");function s(e,t){var n={};return r.each(e,(function(e){n[e]="help"===e?t.inlineHelpText||"":t[e]||""})),n}function a(e){return s(["label","description"],e)}function u(e){switch(e.type){case"select":return s(["label","help","options","description"],e);default:return s(["label","help","description"],e)}}function f(e){return s(["label"],e)}function c(e){return s(["label"],e)}function l(e){var t={};return r.each(e,(function(e,n){t[n]=u(e)})),t}function h(e){var t={};return r.each(e,(function(e,n){t[n]=c(e)})),t}function d(e){var t={};return r.each(e,(function(e,n){t[n]=f(e)})),t}function p(e,t){var n={};return r.each(e,(function(e,r){if(e.group){var i=e.group.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");n[i]=t[r].group}})),n}var g=function(e,t,n,s){void 0===s&&(s=!1);var u=o(n);1!=s&&(0,i.translationObject)(e,t,u,!0,s);var f=Object.assign({},a(u));f=Object.assign({},f,{fields:l(u.fields)});var c=p(n.fields,u.fields);r.isEmpty(c)||(f=Object.assign({},f,{groups:c}));var g=d(u.list_views);r.isEmpty(g)||(f=Object.assign({},f,{listviews:g}));var b=h(u.actions);return r.isEmpty(b)||(f=Object.assign({},f,{actions:b})),Object.assign({name:t},f)};n.getObjectMetadataTranslationTemplate=g},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getAppMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),o=t("clone");function s(e,t){var n={};return r.each(e,(function(e){n[e]=t[e]||""})),n}function a(e){var t={groups:{}};return e?(r.each(e,(function(e){var n=e.group_name.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t.groups[n]=e.group_name})),t):{}}var u=function(e){return Object.assign({},s(["name","description"],e),a(e.tab_groups))},f=function(e){var t={};return r.each(e,(function(e,n){t[n]=n})),t},c=function(e){var t={};return r.each(e,(function(e){var n=e.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t[n]=e})),t},l=function(e,t,n){var r,s=o(n);(0,i.translationApp)(e,t,s);var a={},l;return s.tab_items?a=f(s.tab_items):s.tabs&&(a=c(s.tabs)),Object.assign({},{CustomApplications:(r={},r[t]=u(s),r)},{CustomTabs:a})};n.getAppMetadataTranslationTemplate=l}}}},node_modules:{i18next:{"package.json":function e(t,n,e){e.exports={name:"i18next",version:"19.9.2",module:"./dist/esm/i18next.js",main:"./dist/cjs/i18next.js"}},dist:{esm:{"i18next.js":function e(t,n,e){let r,i,o,s,a,u,f,c;e.link("@babel/runtime/helpers/esm/typeof",{default(e){r=e}},0),e.link("@babel/runtime/helpers/esm/objectSpread",{default(e){i=e}},1),e.link("@babel/runtime/helpers/esm/classCallCheck",{default(e){o=e}},2),e.link("@babel/runtime/helpers/esm/createClass",{default(e){s=e}},3),e.link("@babel/runtime/helpers/esm/possibleConstructorReturn",{default(e){a=e}},4),e.link("@babel/runtime/helpers/esm/getPrototypeOf",{default(e){u=e}},5),e.link("@babel/runtime/helpers/esm/assertThisInitialized",{default(e){f=e}},6),e.link("@babel/runtime/helpers/esm/inherits",{default(e){c=e}},7);var l={type:"logger",log:function e(t){this.output("log",t)},warn:function e(t){this.output("warn",t)},error:function e(t){this.output("error",t)},output:function e(t,n){console&&console[t]&&console[t].apply(console,n)}},h,d=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.init(t,n)}return s(e,[{key:"init",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||l,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function e(t){this.debug=t}},{key:"log",value:function e(){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function y(e,t,n){var r=v(e,t,Object),i,o;r.obj[r.k]=n}function _(e,t,n,r){var i=v(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}function w(e,t){var n=v(e,t),r=n.obj,i=n.k;if(r)return r[i]}function k(e,t,n){var r=w(e,n);return void 0!==r?r:w(t,n)}function j(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):j(e[r],t[r],n):e[r]=t[r]);return e}function x(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var S={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function D(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return S[e]})):e}var E="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,A=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return o(this,t),n=a(this,u(t).call(this)),E&&p.call(f(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return c(t,e),s(t,[{key:"addNamespaces",value:function e(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function e(t){var n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=[t,n];return r&&"string"!=typeof r&&(s=s.concat(r)),r&&"string"==typeof r&&(s=s.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(s=t.split(".")),w(this.data,s)}},{key:"addResource",value:function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},s=this.options.keySeparator;void 0===s&&(s=".");var a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(i=n,n=(a=t.split("."))[1]),this.addNamespaces(n),y(this.data,a,i),o.silent||this.emit("added",t,n,r,i)}},{key:"addResources",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in r)"string"!=typeof r[o]&&"[object Array]"!==Object.prototype.toString.apply(r[o])||this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}},{key:"addResourceBundle",value:function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},u=[t,n];t.indexOf(".")>-1&&(o=r,r=n,n=(u=t.split("."))[1]),this.addNamespaces(n);var f=w(this.data,u)||{};o?j(f,r,s):f=i({},f,r),y(this.data,u,f),a.silent||this.emit("added",t,n,r)}},{key:"removeResourceBundle",value:function e(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}},{key:"hasResourceBundle",value:function e(t,n){return void 0!==this.getResource(t,n)}},{key:"getResourceBundle",value:function e(t,n){return n||(n=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(t,n)):this.getResource(t,n)}},{key:"getDataByLanguage",value:function e(t){return this.data[t]}},{key:"toJSON",value:function e(){return this.data}}]),t}(p),C={processors:{},addPostProcessor:function e(t){this.processors[t.name]=t},handle:function e(t,n,r,i,o){var s=this;return t.forEach((function(e){s.processors[e]&&(n=s.processors[e].process(n,r,i,o))})),n}},M={},O=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,t),n=a(this,u(t).call(this)),E&&p.call(f(n)),m(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,f(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=d.create("translator"),n}return c(t,e),s(t,[{key:"changeLanguage",value:function e(t){t&&(this.language=t)}},{key:"exists",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(t,n);return r&&void 0!==r.res}},{key:"extractFromKey",value:function e(t,n){var r=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=n.ns||this.options.defaultNS;if(r&&t.indexOf(r)>-1){var s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:o};var a=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),t=a.join(i)}return"string"==typeof o&&(o=[o]),{key:t,namespaces:o}}},{key:"translate",value:function e(n,o,s){var a=this;if("object"!==r(o)&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),null==n)return"";Array.isArray(n)||(n=[String(n)]);var u=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,f=this.extractFromKey(n[n.length-1],o),c=f.key,l=f.namespaces,h=l[l.length-1],d=o.lng||this.language,p=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var g=o.nsSeparator||this.options.nsSeparator;return h+g+c}return c}var b=this.resolve(n,o),m=b&&b.res,v=b&&b.usedKey||c,y=b&&b.exactUsedKey||c,_=Object.prototype.toString.apply(m),w=["[object Number]","[object Function]","[object RegExp]"],k=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(j&&m&&x&&w.indexOf(_)<0&&("string"!=typeof k||"[object Array]"!==_)){if(!o.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,o):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(u){var S="[object Array]"===_,D=S?[]:{},E=S?y:v;for(var A in m)if(Object.prototype.hasOwnProperty.call(m,A)){var C="".concat(E).concat(u).concat(A);D[A]=this.translate(C,i({},o,{joinArrays:!1,ns:l})),D[A]===C&&(D[A]=m[A])}m=D}}else if(j&&"string"==typeof k&&"[object Array]"===_)(m=m.join(k))&&(m=this.extendTranslation(m,n,o,s));else{var M=!1,O=!1,T=void 0!==o.count&&"string"!=typeof o.count,B=t.hasDefaultValue(o),I=T?this.pluralResolver.getSuffix(d,o.count):"",R=o["defaultValue".concat(I)]||o.defaultValue;!this.isValidLookup(m)&&B&&(M=!0,m=R),this.isValidLookup(m)||(O=!0,m=c);var F=B&&R!==m&&this.options.updateMissing;if(O||M||F){if(this.logger.log(F?"updateKey":"missingKey",d,h,c,F?R:m),u){var P=this.resolve(c,i({},o,{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var z=0;z1&&void 0!==arguments[1]?arguments[1]:{},i,o,s,a,u;return"string"==typeof t&&(t=[t]),t.forEach((function(e){if(!n.isValidLookup(i)){var t=n.extractFromKey(e,r),f=t.key;o=f;var c=t.namespaces;n.options.fallbackNS&&(c=c.concat(n.options.fallbackNS));var l=void 0!==r.count&&"string"!=typeof r.count,h=void 0!==r.context&&"string"==typeof r.context&&""!==r.context,d=r.lngs?r.lngs:n.languageUtils.toResolveHierarchy(r.lng||n.language,r.fallbackLng);c.forEach((function(e){n.isValidLookup(i)||(u=e,!M["".concat(d[0],"-").concat(e)]&&n.utils&&n.utils.hasLoadedNamespace&&!n.utils.hasLoadedNamespace(u)&&(M["".concat(d[0],"-").concat(e)]=!0,n.logger.warn('key "'.concat(o,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(t){if(!n.isValidLookup(i)){a=t;var o=f,u=[o],c,d;if(n.i18nFormat&&n.i18nFormat.addLookupKeys)n.i18nFormat.addLookupKeys(u,f,t,e,r);else l&&(c=n.pluralResolver.getSuffix(t,r.count)),l&&h&&u.push(o+c),h&&u.push(o+="".concat(n.options.contextSeparator).concat(r.context)),l&&u.push(o+=c);for(;d=u.pop();)n.isValidLookup(i)||(s=d,i=n.getResource(t,e,d,r))}})))}))}})),{res:i,usedKey:o,exactUsedKey:s,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function e(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}}],[{key:"hasDefaultValue",value:function e(t){var n="defaultValue";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&void 0!==t[r])return!0;return!1}}]),t}(p);function T(e){return e.charAt(0).toUpperCase()+e.slice(1)}var B=function(){function e(t){o(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=d.create("languageUtils")}return s(e,[{key:"getScriptPartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase()?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function e(t){if("string"==typeof t&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=T(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function e(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function e(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function e(t){var n=this,r;return t?(t.forEach((function(e){if(!r){var t=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(t)||(r=t)}})),!r&&this.options.supportedLngs&&t.forEach((function(e){if(!r){var t=n.getLanguagePartFromCode(e);if(n.isSupportedCode(t))return r=t;r=n.options.supportedLngs.find((function(e){if(0===e.indexOf(t))return e}))}})),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function e(t,n){if(!t)return[];if("function"==typeof t&&(t=t(n)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function e(t,n){var r=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],s=function e(t){t&&(r.isSupportedCode(t)?o.push(t):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(t))):"string"==typeof t&&s(this.formatLanguageCode(t)),i.forEach((function(e){o.indexOf(e)<0&&s(r.formatLanguageCode(e))})),o}}]),e}(),I=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],R={1:function e(t){return Number(t>1)},2:function e(t){return Number(1!=t)},3:function e(t){return 0},4:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function e(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function e(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function e(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function e(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function e(t){return Number(t>=2)},10:function e(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function e(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function e(t){return Number(t%10!=1||t%100==11)},13:function e(t){return Number(0!==t)},14:function e(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function e(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function e(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function e(t){return Number(0==t?0:1==t?1:2)},19:function e(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function e(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function e(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function e(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function F(){var e={};return I.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:R[t.fc]}}))})),e}var P=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.languageUtils=t,this.options=n,this.logger=d.create("pluralResolver"),this.rules=F()}return s(e,[{key:"addRule",value:function e(t,n){this.rules[t]=n}},{key:"getRule",value:function e(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function e(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function e(t,n){return this.getSuffixes(t).map((function(e){return n+e}))}},{key:"getSuffixes",value:function e(t){var n=this,r=this.getRule(t);return r?r.numbers.map((function(e){return n.getSuffix(t,e)})):[]}},{key:"getSuffix",value:function e(t,n){var r=this,i=this.getRule(t);if(i){var o=i.noAbs?i.plurals(n):i.plurals(Math.abs(n)),s=i.numbers[o];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===s?s="plural":1===s&&(s=""));var a=function e(){return r.options.prepend&&s.toString()?r.options.prepend+s.toString():s.toString()};return"v1"===this.options.compatibilityJSON?1===s?"":"number"==typeof s?"_plural_".concat(s.toString()):a():"v2"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),N=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.logger=d.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return s(e,[{key:"init",value:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=void 0!==n.escape?n.escape:D,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?x(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?x(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?x(n.nestingPrefix):n.nestingPrefixEscaped||x("$t("),this.nestingSuffix=n.nestingSuffix?x(n.nestingSuffix):n.nestingSuffixEscaped||x(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function e(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function e(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function e(t,n,r,i){var o=this,s,a,u,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function e(t){if(t.indexOf(o.formatSeparator)<0){var s=k(n,f,t);return o.alwaysFormat?o.format(s,void 0,r):s}var a=t.split(o.formatSeparator),u=a.shift().trim(),c=a.join(o.formatSeparator).trim();return o.format(k(n,f,u),c,r,i)};this.resetRegExp();var h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p;return[{regex:this.regexpUnescape,safeValue:function e(t){return c(t)}},{regex:this.regexp,safeValue:function e(t){return o.escapeValue?c(o.escape(t)):c(t)}}].forEach((function(e){for(u=0;s=e.regex.exec(t);){if(void 0===(a=l(s[1].trim())))if("function"==typeof h){var n=h(t,s,i);a="string"==typeof n?n:""}else{if(d){a=s[0];continue}o.logger.warn("missed to pass in variable ".concat(s[1]," for interpolating ").concat(t)),a=""}else"string"==typeof a||o.useRawValueToEscape||(a=b(a));if(t=t.replace(s[0],e.safeValue(a)),e.regex.lastIndex=0,++u>=o.maxReplaces)break}})),t}},{key:"nest",value:function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s,a,u=i({},o);function f(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,u)).replace(/'/g,'"');try{u=JSON.parse(o),t&&(u=i({},t,u))}catch(s){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),s),"".concat(e).concat(n).concat(o)}return delete u.defaultValue,e}for(u.applyPostProcessor=!1,delete u.defaultValue;s=this.nestingRegexp.exec(t);){var c=[],l=!1;if(s[0].includes(this.formatSeparator)&&!/{.*}/.test(s[1])){var h=s[1].split(this.formatSeparator).map((function(e){return e.trim()}));s[1]=h.shift(),c=h,l=!0}if((a=n(f.call(this,s[1].trim(),u),u))&&s[0]===t&&"string"!=typeof a)return a;"string"!=typeof a&&(a=b(a)),a||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(t)),a=""),l&&(a=c.reduce((function(e,t){return r.format(e,t,o.lng,o)}),a.trim())),t=t.replace(s[0],a),this.regexp.lastIndex=0}return t}}]),e}();function L(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}var z=function(e){function t(e,n,r){var i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o(this,t),i=a(this,u(t).call(this)),E&&p.call(f(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=s,i.logger=d.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,s.backend,s),i}return c(t,e),s(t,[{key:"queueLoad",value:function e(t,n,r,i){var o=this,s=[],a=[],u=[],f=[];return t.forEach((function(e){var t=!0;n.forEach((function(n){var i="".concat(e,"|").concat(n);!r.reload&&o.store.hasResourceBundle(e,n)?o.state[i]=2:o.state[i]<0||(1===o.state[i]?a.indexOf(i)<0&&a.push(i):(o.state[i]=1,t=!1,a.indexOf(i)<0&&a.push(i),s.indexOf(i)<0&&s.push(i),f.indexOf(n)<0&&f.push(n)))})),t||u.push(e)})),(s.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:i}),{toLoad:s,pending:a,toLoadLanguages:u,toLoadNamespaces:f}}},{key:"loaded",value:function e(t,n,r){var i=t.split("|"),o=i[0],s=i[1];n&&this.emit("failedLoading",o,s,n),r&&this.store.addResourceBundle(o,s,r),this.state[t]=n?-1:2;var e={};this.queue.forEach((function(r){_(r.loaded,[o],s),L(r.pending,t),n&&r.errors.push(n),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(t){e[t]||(e[t]=[]),r.loaded[t].length&&r.loaded[t].forEach((function(n){e[t].indexOf(n)<0&&e[t].push(n)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",e),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[r](t,n,(function(e,u){e&&u&&o<5?setTimeout((function(){i.read.call(i,t,n,r,o+1,2*s,a)}),s):a(e,u)})):a(null,{})}},{key:"prepareLoading",value:function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof n&&(n=[n]);var s=this.queueLoad(t,n,i,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function e(t,n,r){this.prepareLoading(t,n,{},r)}},{key:"reload",value:function e(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}},{key:"loadOne",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t.split("|"),o=i[0],s=i[1];this.read(o,s,"read",void 0,void 0,(function(e,i){e&&n.logger.warn("".concat(r,"loading namespace ").concat(s," for language ").concat(o," failed"),e),!e&&i&&n.logger.log("".concat(r,"loaded namespace ").concat(s," for language ").concat(o),i),n.loaded(t,e,i)}))}},{key:"saveMissing",value:function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(t,n,r,o,null,i({},a,{isUpdate:s})),t&&t[0]&&this.store.addResource(t[0],n,r,o))}}]),t}(p);function U(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function e(t){var n={};if("object"===r(t[1])&&(n=t[1]),"string"==typeof t[1]&&(n.defaultValue=t[1]),"string"==typeof t[2]&&(n.tDescription=t[2]),"object"===r(t[2])||"object"===r(t[3])){var i=t[3]||t[2];Object.keys(i).forEach((function(e){n[e]=i[e]}))}return n},interpolation:{escapeValue:!0,format:function e(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function q(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $(){}var H,W=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(o(this,t),e=a(this,u(t).call(this)),E&&p.call(f(e)),e.options=q(n),e.services={},e.logger=d,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),a(e,f(e));setTimeout((function(){e.init(n,r)}),0)}return e}return c(t,e),s(t,[{key:"init",value:function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function o(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof n&&(r=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},U(),this.options,q(n)),this.format=this.options.interpolation.format,r||(r=$),!this.options.isClone){this.modules.logger?d.init(o(this.modules.logger),this.options):d.init(null,this.options);var s=new B(this.options);this.store=new A(this.options.resources,this.options);var a=this.services;a.logger=d,a.resourceStore=this.store,a.languageUtils=s,a.pluralResolver=new P(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new N(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new z(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var f=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];f.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}}));var l=g(),h=function e(){var n=function e(n,i){t.isInitialized&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),l.resolve(i),r(n,i)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return n(null,t.t.bind(t));t.changeLanguage(t.options.lng,n)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),l}},{key:"loadResources",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,i=r,o="string"==typeof t?t:this.language;if("function"==typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return i();var s=[],a=function e(t){var r;t&&n.services.languageUtils.toResolveHierarchy(t).forEach((function(e){s.indexOf(e)<0&&s.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(s,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function e(t,n,r){var i=g();return t||(t=this.languages),n||(n=this.options.ns),r||(r=$),this.services.backendConnector.reload(t,n,(function(e){i.resolve(),r(e)})),i}},{key:"use",value:function e(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&C.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function e(t,n){var r=this;this.isLanguageChangingTo=t;var i=g();this.emit("languageChanging",t);var o=function e(t,o){o?(r.language=o,r.languages=r.services.languageUtils.toResolveHierarchy(o),r.translator.changeLanguage(o),r.isLanguageChangingTo=void 0,r.emit("languageChanged",o),r.logger.log("languageChanged",o)):r.isLanguageChangingTo=void 0,i.resolve((function(){return r.t.apply(r,arguments)})),n&&n(t,(function(){return r.t.apply(r,arguments)}))},s=function e(t){var n="string"==typeof t?t:r.services.languageUtils.getBestMatchFromCodes(t);n&&(r.language||(r.language=n,r.languages=r.services.languageUtils.toResolveHierarchy(n)),r.translator.language||r.translator.changeLanguage(n),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(n)),r.loadResources(n,(function(e){o(e,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(s):s(t):s(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function e(t,n){var o=this,s=function e(t,n){var s;if("object"!==r(n)){for(var a=arguments.length,u=new Array(a>2?a-2:0),f=2;f1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],o=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function e(t,r){var i=n.services.backendConnector.state["".concat(t,"|").concat(r)];return-1===i||2===i};if(r.precheck){var u=r.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(i,t)||(!this.services.backendConnector.backend||!(!a(i,t)||o&&!a(s,t)))}},{key:"loadNamespaces",value:function e(t,n){var r=this,i=g();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),n&&n(e)})),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function e(t,n){var r=g();"string"==typeof t&&(t=[t]);var i=this.options.preload||[],o=t.filter((function(e){return i.indexOf(e)<0}));return o.length?(this.options.preload=i.concat(o),this.loadResources((function(e){r.resolve(),n&&n(e)})),r):(n&&n(),Promise.resolve())}},{key:"dir",value:function e(t){return t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),t?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr":"rtl";var n}},{key:"createInstance",value:function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function e(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,s=i({},this.options,r,{isClone:!0}),a=new t(s),u=["store","services","language"];return u.forEach((function(e){a[e]=n[e]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new O(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rr,root:()=>i,ArrayProto:()=>o,ObjProto:()=>s,SymbolProto:()=>a,push:()=>u,slice:()=>f,toString:()=>c,hasOwnProperty:()=>l,supportsArrayBuffer:()=>h,supportsDataView:()=>d,nativeIsArray:()=>p,nativeKeys:()=>g,nativeCreate:()=>b,nativeIsView:()=>m,_isNaN:()=>v,_isFinite:()=>y,hasEnumBug:()=>_,nonEnumerableProps:()=>w,MAX_ARRAY_INDEX:()=>k});var r="1.13.4",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},o=Array.prototype,s=Object.prototype,a="undefined"!=typeof Symbol?Symbol.prototype:null,u=o.push,f=o.slice,c=s.toString,l=s.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,d="undefined"!=typeof DataView,p=Array.isArray,g=Object.keys,b=Object.create,m=h&&ArrayBuffer.isView,v=isNaN,y=isFinite,_=!{toString:null}.propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=Math.pow(2,53)-1},"restArguments.js":function e(t,n,e){function r(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;ir})},"isObject.js":function e(t,n,e){function r(e){var t=typeof e;return"function"===t||"object"===t&&!!e}e.export({default:()=>r})},"isNull.js":function e(t,n,e){function r(e){return null===e}e.export({default:()=>r})},"isUndefined.js":function e(t,n,e){function r(e){return void 0===e}e.export({default:()=>r})},"isBoolean.js":function e(t,n,e){let r;function i(e){return!0===e||!1===e||"[object Boolean]"===r.call(e)}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isElement.js":function e(t,n,e){function r(e){return!(!e||1!==e.nodeType)}e.export({default:()=>r})},"isString.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("String"))},"_tagTester.js":function e(t,n,e){let r;function i(e){var t="[object "+e+"]";return function(e){return r.call(e)===t}}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isNumber.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Number"))},"isDate.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Date"))},"isRegExp.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("RegExp"))},"isError.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Error"))},"isSymbol.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Symbol"))},"isArrayBuffer.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("ArrayBuffer"))},"isDataView.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isArrayBuffer.js",{default(e){o=e}},2),e.link("./_stringTagBug.js",{hasStringTagBug(e){s=e}},3);var a=r("DataView");function u(e){return null!=e&&i(e.getInt8)&&o(e.buffer)}e.exportDefault(s?u:a)},"isFunction.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_setup.js",{root(e){i=e}},1);var o=r("Function"),s=i.document&&i.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof s&&(o=function(e){return"function"==typeof e||!1}),e.exportDefault(o)},"_stringTagBug.js":function e(t,n,e){let r,i;e.export({hasStringTagBug:()=>o,isIE11:()=>s}),e.link("./_setup.js",{supportsDataView(e){r=e}},0),e.link("./_hasObjectTag.js",{default(e){i=e}},1);var o=r&&i(new DataView(new ArrayBuffer(8))),s="undefined"!=typeof Map&&i(new Map)},"_hasObjectTag.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Object"))},"isArray.js":function e(t,n,e){let r,i;e.link("./_setup.js",{nativeIsArray(e){r=e}},0),e.link("./_tagTester.js",{default(e){i=e}},1),e.exportDefault(r||i("Array"))},"isArguments.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1);var o=r("Arguments");!function(){o(arguments)||(o=function(e){return i(e,"callee")})}(),e.exportDefault(o)},"_has.js":function e(t,n,e){let r;function i(e,t){return null!=e&&r.call(e,t)}e.export({default:()=>i}),e.link("./_setup.js",{hasOwnProperty(e){r=e}},0)},"isFinite.js":function e(t,n,e){let r,i;function o(e){return!i(e)&&r(e)&&!isNaN(parseFloat(e))}e.export({default:()=>o}),e.link("./_setup.js",{_isFinite(e){r=e}},0),e.link("./isSymbol.js",{default(e){i=e}},1)},"isNaN.js":function e(t,n,e){let r,i;function o(e){return i(e)&&r(e)}e.export({default:()=>o}),e.link("./_setup.js",{_isNaN(e){r=e}},0),e.link("./isNumber.js",{default(e){i=e}},1)},"isTypedArray.js":function e(t,n,e){let r,i,o,s,a,u;e.link("./_setup.js",{supportsArrayBuffer(e){r=e},nativeIsView(e){i=e},toString(e){o=e}},0),e.link("./isDataView.js",{default(e){s=e}},1),e.link("./constant.js",{default(e){a=e}},2),e.link("./_isBufferLike.js",{default(e){u=e}},3);var f=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function c(e){return i?i(e)&&!s(e):u(e)&&f.test(o.call(e))}e.exportDefault(r?c:a(!1))},"constant.js":function e(t,n,e){function r(e){return function(){return e}}e.export({default:()=>r})},"_isBufferLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getByteLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createSizePropertyCheck.js":function e(t,n,e){let r;function i(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=r}}e.export({default:()=>i}),e.link("./_setup.js",{MAX_ARRAY_INDEX(e){r=e}},0)},"_getByteLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("byteLength"))},"_shallowProperty.js":function e(t,n,e){function r(e){return function(t){return null==t?void 0:t[e]}}e.export({default:()=>r})},"isEmpty.js":function e(t,n,e){let r,i,o,s,a;function u(e){if(null==e)return!0;var t=r(e);return"number"==typeof t&&(i(e)||o(e)||s(e))?0===t:0===r(a(e))}e.export({default:()=>u}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./isString.js",{default(e){o=e}},2),e.link("./isArguments.js",{default(e){s=e}},3),e.link("./keys.js",{default(e){a=e}},4)},"_getLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("length"))},"keys.js":function e(t,n,e){let r,i,o,s,a;function u(e){if(!r(e))return[];if(i)return i(e);var t=[];for(var n in e)s(e,n)&&t.push(n);return o&&a(e,t),t}e.export({default:()=>u}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeKeys(e){i=e},hasEnumBug(e){o=e}},1),e.link("./_has.js",{default(e){s=e}},2),e.link("./_collectNonEnumProps.js",{default(e){a=e}},3)},"_collectNonEnumProps.js":function e(t,n,e){let r,i,o,s;function a(e){for(var t={},n=e.length,r=0;ru}),e.link("./_setup.js",{nonEnumerableProps(e){r=e},ObjProto(e){i=e}},0),e.link("./isFunction.js",{default(e){o=e}},1),e.link("./_has.js",{default(e){s=e}},2)},"isMatch.js":function e(t,n,e){let r;function i(e,t){var n=r(t),i=n.length;if(null==e)return!i;for(var o=Object(e),s=0;si}),e.link("./keys.js",{default(e){r=e}},0)},"isEqual.js":function e(t,n,e){let r,i,o,s,a,u,f,c,l,h,d;e.export({default:()=>m}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_setup.js",{toString(e){i=e},SymbolProto(e){o=e}},1),e.link("./_getByteLength.js",{default(e){s=e}},2),e.link("./isTypedArray.js",{default(e){a=e}},3),e.link("./isFunction.js",{default(e){u=e}},4),e.link("./_stringTagBug.js",{hasStringTagBug(e){f=e}},5),e.link("./isDataView.js",{default(e){c=e}},6),e.link("./keys.js",{default(e){l=e}},7),e.link("./_has.js",{default(e){h=e}},8),e.link("./_toBufferView.js",{default(e){d=e}},9);var p="[object DataView]";function g(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&b(e,t,n,r)}function b(e,t,n,m){e instanceof r&&(e=e._wrapped),t instanceof r&&(t=t._wrapped);var v=i.call(e);if(v!==i.call(t))return!1;if(f&&"[object Object]"==v&&c(e)){if(!c(t))return!1;v=p}switch(v){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return o.valueOf.call(e)===o.valueOf.call(t);case"[object ArrayBuffer]":case p:return b(d(e),d(t),n,m)}var y="[object Array]"===v;if(!y&&a(e)){var _;if(s(e)!==s(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;y=!0}if(!y){if("object"!=typeof e||"object"!=typeof t)return!1;var w=e.constructor,k=t.constructor;if(w!==k&&!(u(w)&&w instanceof w&&u(k)&&k instanceof k)&&"constructor"in e&&"constructor"in t)return!1}m=m||[];for(var j=(n=n||[]).length;j--;)if(n[j]===e)return m[j]===t;if(n.push(e),m.push(t),y){if((j=e.length)!==t.length)return!1;for(;j--;)if(!g(e[j],t[j],n,m))return!1}else{var x=l(e),S;if(j=x.length,l(t).length!==j)return!1;for(;j--;)if(S=x[j],!h(t,S)||!g(e[S],t[S],n,m))return!1}return n.pop(),m.pop(),!0}function m(e,t){return g(e,t)}},"underscore.js":function e(t,n,e){let r;function i(e){return e instanceof i?e:this instanceof i?void(this._wrapped=e):new i(e)}e.export({default:()=>i}),e.link("./_setup.js",{VERSION(e){r=e}},0),i.VERSION=r,i.prototype.value=function(){return this._wrapped},i.prototype.valueOf=i.prototype.toJSON=i.prototype.value,i.prototype.toString=function(){return String(this._wrapped)}},"_toBufferView.js":function e(t,n,e){let r;function i(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,r(e))}e.export({default:()=>i}),e.link("./_getByteLength.js",{default(e){r=e}},0)},"isMap.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},mapMethods(e){s=e}},2),e.exportDefault(i?o(s):r("Map"))},"_methodFingerprint.js":function e(t,n,e){let r,i,o;function s(e){var t=r(e);return function(n){if(null==n)return!1;var s=o(n);if(r(s))return!1;for(var u=0;us,mapMethods:()=>l,weakMapMethods:()=>h,setMethods:()=>d}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./allKeys.js",{default(e){o=e}},2);var a="forEach",u="has",f=["clear","delete"],c=["get","has","set"],l=f.concat(a,c),h=f.concat(c),d=["add"].concat(f,a,"has")},"allKeys.js":function e(t,n,e){let r,i,o;function s(e){if(!r(e))return[];var t=[];for(var n in e)t.push(n);return i&&o(e,t),t}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{hasEnumBug(e){i=e}},1),e.link("./_collectNonEnumProps.js",{default(e){o=e}},2)},"isWeakMap.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},weakMapMethods(e){s=e}},2),e.exportDefault(i?o(s):r("WeakMap"))},"isSet.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},setMethods(e){s=e}},2),e.exportDefault(i?o(s):r("Set"))},"isWeakSet.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("WeakSet"))},"values.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"pairs.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"invert.js":function e(t,n,e){let r;function i(e){for(var t={},n=r(e),i=0,o=n.length;ii}),e.link("./keys.js",{default(e){r=e}},0)},"functions.js":function e(t,n,e){let r;function i(e){var t=[];for(var n in e)r(e[n])&&t.push(n);return t.sort()}e.export({default:()=>i}),e.link("./isFunction.js",{default(e){r=e}},0)},"extend.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createAssigner.js":function e(t,n,e){function r(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;ir})},"extendOwn.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"defaults.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i,!0))},"create.js":function e(t,n,e){let r,i;function o(e,t){var n=r(e);return t&&i(n,t),n}e.export({default:()=>o}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./extendOwn.js",{default(e){i=e}},1)},"_baseCreate.js":function e(t,n,e){let r,i;function o(){return function(){}}function s(e){if(!r(e))return{};if(i)return i(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeCreate(e){i=e}},1)},"clone.js":function e(t,n,e){let r,i,o;function s(e){return r(e)?i(e)?e.slice():o({},e):e}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./extend.js",{default(e){o=e}},2)},"tap.js":function e(t,n,e){function r(e,t){return t(e),e}e.export({default:()=>r})},"get.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s=i(e,r(t));return o(s)?n:s}e.export({default:()=>s}),e.link("./_toPath.js",{default(e){r=e}},0),e.link("./_deepGet.js",{default(e){i=e}},1),e.link("./isUndefined.js",{default(e){o=e}},2)},"_toPath.js":function e(t,n,e){let r;function i(e){return r.toPath(e)}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./toPath.js")},"toPath.js":function e(t,n,e){let r,i;function o(e){return i(e)?e:[e]}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),r.toPath=o},"_deepGet.js":function e(t,n,e){function r(e,t){for(var n=t.length,r=0;rr})},"has.js":function e(t,n,e){let r,i;function o(e,t){for(var n=(t=i(t)).length,o=0;oo}),e.link("./_has.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"mapObject.js":function e(t,n,e){let r,i;function o(e,t,n){t=r(t,n);for(var o=i(e),s=o.length,a={},u=0;uo}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"_cb.js":function e(t,n,e){let r,i,o;function s(e,t,n){return r.iteratee!==o?r.iteratee(e,t):i(e,t,n)}e.export({default:()=>s}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),e.link("./iteratee.js",{default(e){o=e}},2)},"_baseIteratee.js":function e(t,n,e){let r,i,o,s,a,u,f;function c(e,t,n){return null==e?r:i(e)?f(e,t,n):o(e)&&!s(e)?a(e):u(e)}e.export({default:()=>c}),e.link("./identity.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isObject.js",{default(e){o=e}},2),e.link("./isArray.js",{default(e){s=e}},3),e.link("./matcher.js",{default(e){a=e}},4),e.link("./property.js",{default(e){u=e}},5),e.link("./_optimizeCb.js",{default(e){f=e}},6)},"identity.js":function e(t,n,e){function r(e){return e}e.export({default:()=>r})},"matcher.js":function e(t,n,e){let r,i;function o(e){return e=r({},e),function(t){return i(t,e)}}e.export({default:()=>o}),e.link("./extendOwn.js",{default(e){r=e}},0),e.link("./isMatch.js",{default(e){i=e}},1)},"property.js":function e(t,n,e){let r,i;function o(e){return e=i(e),function(t){return r(t,e)}}e.export({default:()=>o}),e.link("./_deepGet.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"_optimizeCb.js":function e(t,n,e){function r(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}e.export({default:()=>r})},"iteratee.js":function e(t,n,e){let r,i;function o(e,t){return i(e,t,1/0)}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),r.iteratee=o},"noop.js":function e(t,n,e){function r(){}e.export({default:()=>r})},"propertyOf.js":function e(t,n,e){let r,i;function o(e){return null==e?r:function(t){return i(e,t)}}e.export({default:()=>o}),e.link("./noop.js",{default(e){r=e}},0),e.link("./get.js",{default(e){i=e}},1)},"times.js":function e(t,n,e){let r;function i(e,t,n){var i=Array(Math.max(0,e));t=r(t,n,1);for(var o=0;oi}),e.link("./_optimizeCb.js",{default(e){r=e}},0)},"random.js":function e(t,n,e){function r(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}e.export({default:()=>r})},"now.js":function e(t,n,e){e.exportDefault(Date.now||function(){return(new Date).getTime()})},"escape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createEscaper.js":function e(t,n,e){let r;function i(e){var t=function(t){return e[t]},n="(?:"+r(e).join("|")+")",i=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(o,t):e}}e.export({default:()=>i}),e.link("./keys.js",{default(e){r=e}},0)},"_escapeMap.js":function e(t,n,e){e.exportDefault({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"})},"unescape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_unescapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_unescapeMap.js":function e(t,n,e){let r,i;e.link("./invert.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"templateSettings.js":function e(t,n,e){let r;e.link("./underscore.js",{default(e){r=e}},0),e.exportDefault(r.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g})},"template.js":function e(t,n,e){let r,i;e.export({default:()=>c}),e.link("./defaults.js",{default(e){r=e}},0),e.link("./underscore.js",{default(e){i=e}},1),e.link("./templateSettings.js");var o=/(.)^/,s={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},a=/\\|'|\r|\n|\u2028|\u2029/g;function u(e){return"\\"+s[e]}var f=/^\s*(\w|\$)+\s*$/;function c(e,t,n){!t&&n&&(t=n),t=r({},t,i.templateSettings);var s=RegExp([(t.escape||o).source,(t.interpolate||o).source,(t.evaluate||o).source].join("|")+"|$","g"),c=0,l="__p+='";e.replace(s,(function(t,n,r,i,o){return l+=e.slice(c,o).replace(a,u),c=o+t.length,n?l+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?l+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(l+="';\n"+i+"\n__p+='"),t})),l+="';\n";var h=t.variable,d;if(h){if(!f.test(h))throw new Error("variable is not a bare identifier: "+h)}else l="with(obj||{}){\n"+l+"}\n",h="obj";l="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+l+"return __p;\n";try{d=new Function(h,"_",l)}catch(g){throw g.source=l,g}var p=function(e){return d.call(this,e,i)};return p.source="function("+h+"){\n"+l+"}",p}},"result.js":function e(t,n,e){let r,i;function o(e,t,n){var o=(t=i(t)).length;if(!o)return r(n)?n.call(e):n;for(var s=0;so}),e.link("./isFunction.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"uniqueId.js":function e(t,n,e){e.export({default:()=>i});var r=0;function i(e){var t=++r+"";return e?e+t:t}},"chain.js":function e(t,n,e){let r;function i(e){var t=r(e);return t._chain=!0,t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"partial.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_executeBound.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){o=e}},2);var s=r((function(e,t){var n=s.placeholder,r=function(){for(var o=0,s=t.length,a=Array(s),u=0;uo}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./isObject.js",{default(e){i=e}},1)},"bind.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_executeBound.js",{default(e){o=e}},2),e.exportDefault(r((function(e,t,n){if(!i(e))throw new TypeError("Bind must be called on a function");var s=r((function(r){return o(e,s,t,this,n.concat(r))}));return s})))},"bindAll.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./bind.js",{default(e){o=e}},2),e.exportDefault(r((function(e,t){var n=(t=i(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=o(e[r],e)}return e})))},"_flatten.js":function e(t,n,e){let r,i,o,s;function a(e,t,n,u){if(u=u||[],t||0===t){if(t<=0)return u.concat(e)}else t=1/0;for(var f=u.length,c=0,l=r(e);c1)a(h,t-1,n,u),f=u.length;else for(var d=0,p=h.length;da}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./isArray.js",{default(e){o=e}},2),e.link("./isArguments.js",{default(e){s=e}},3)},"_isArrayLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"memoize.js":function e(t,n,e){let r;function i(e,t){var n=function(i){var o=n.cache,s=""+(t?t.apply(this,arguments):i);return r(o,s)||(o[s]=e.apply(this,arguments)),o[s]};return n.cache={},n}e.export({default:()=>i}),e.link("./_has.js",{default(e){r=e}},0)},"delay.js":function e(t,n,e){let r;e.link("./restArguments.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})))},"defer.js":function e(t,n,e){let r,i,o;e.link("./partial.js",{default(e){r=e}},0),e.link("./delay.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){o=e}},2),e.exportDefault(r(i,o,1))},"throttle.js":function e(t,n,e){let r;function i(e,t,n){var i,o,s,a,u=0;n||(n={});var f=function(){u=!1===n.leading?0:r(),i=null,a=e.apply(o,s),i||(o=s=null)},c=function(){var c=r();u||!1!==n.leading||(u=c);var l=t-(c-u);return o=this,s=arguments,l<=0||l>t?(i&&(clearTimeout(i),i=null),u=c,a=e.apply(o,s),i||(o=s=null)):i||!1===n.trailing||(i=setTimeout(f,l)),a};return c.cancel=function(){clearTimeout(i),u=0,i=o=s=null},c}e.export({default:()=>i}),e.link("./now.js",{default(e){r=e}},0)},"debounce.js":function e(t,n,e){let r,i;function o(e,t,n){var o,s,a,u,f,c=function(){var r=i()-s;t>r?o=setTimeout(c,t-r):(o=null,n||(u=e.apply(f,a)),o||(a=f=null))},l=r((function(r){return f=this,a=r,s=i(),o||(o=setTimeout(c,t),n&&(u=e.apply(f,a))),u}));return l.cancel=function(){clearTimeout(o),o=a=f=null},l}e.export({default:()=>o}),e.link("./restArguments.js",{default(e){r=e}},0),e.link("./now.js",{default(e){i=e}},1)},"wrap.js":function e(t,n,e){let r;function i(e,t){return r(t,e)}e.export({default:()=>i}),e.link("./partial.js",{default(e){r=e}},0)},"negate.js":function e(t,n,e){function r(e){return function(){return!e.apply(this,arguments)}}e.export({default:()=>r})},"compose.js":function e(t,n,e){function r(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}e.export({default:()=>r})},"after.js":function e(t,n,e){function r(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}e.export({default:()=>r})},"before.js":function e(t,n,e){function r(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}e.export({default:()=>r})},"once.js":function e(t,n,e){let r,i;e.link("./partial.js",{default(e){r=e}},0),e.link("./before.js",{default(e){i=e}},1),e.exportDefault(r(i,2))},"findKey.js":function e(t,n,e){let r,i;function o(e,t,n){t=r(t,n);for(var o=i(e),s,a=0,u=o.length;ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"findIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createPredicateIndexFinder.js":function e(t,n,e){let r,i;function o(e){return function(t,n,o){n=r(n,o);for(var s=i(t),a=e>0?0:s-1;a>=0&&ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"findLastIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"sortedIndex.js":function e(t,n,e){let r,i;function o(e,t,n,o){for(var s=(n=r(n,o,1))(t),a=0,u=i(e);ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"indexOf.js":function e(t,n,e){let r,i,o;e.link("./sortedIndex.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./_createIndexFinder.js",{default(e){o=e}},2),e.exportDefault(o(1,i,r))},"_createIndexFinder.js":function e(t,n,e){let r,i,o;function s(e,t,n){return function(s,a,u){var f=0,c=r(s);if("number"==typeof u)e>0?f=u>=0?u:Math.max(u+c,f):c=u>=0?Math.min(u+1,c):u+c+1;else if(n&&u&&c)return s[u=n(s,a)]===a?u:-1;if(a!=a)return(u=t(i.call(s,f,c),o))>=0?u+f:-1;for(u=e>0?f:c-1;u>=0&&us}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isNaN.js",{default(e){o=e}},2)},"lastIndexOf.js":function e(t,n,e){let r,i;e.link("./findLastIndex.js",{default(e){r=e}},0),e.link("./_createIndexFinder.js",{default(e){i=e}},1),e.exportDefault(i(-1,r))},"find.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s,a=(r(e)?i:o)(e,t,n);if(void 0!==a&&-1!==a)return e[a]}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./findKey.js",{default(e){o=e}},2)},"findWhere.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./find.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"each.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s,a;if(t=r(t,n),i(e))for(s=0,a=e.length;ss}),e.link("./_optimizeCb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"map.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=Array(a),f=0;fs}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"reduce.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createReduce.js":function e(t,n,e){let r,i,o;function s(e){var t=function(t,n,o,s){var a=!r(t)&&i(t),u=(a||t).length,f=e>0?0:u-1;for(s||(o=t[a?a[f]:f],f+=e);f>=0&&f=3;return t(e,o(n,i,4),r,s)}}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){o=e}},2)},"reduceRight.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"filter.js":function e(t,n,e){let r,i;function o(e,t,n){var o=[];return t=r(t,n),i(e,(function(e,n,r){t(e,n,r)&&o.push(e)})),o}e.export({default:()=>o}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"reject.js":function e(t,n,e){let r,i,o;function s(e,t,n){return r(e,i(o(t)),n)}e.export({default:()=>s}),e.link("./filter.js",{default(e){r=e}},0),e.link("./negate.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2)},"every.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"some.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"contains.js":function e(t,n,e){let r,i,o;function s(e,t,n,s){return r(e)||(e=i(e)),("number"!=typeof n||s)&&(n=0),o(e,t,n)>=0}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./indexOf.js",{default(e){o=e}},2)},"invoke.js":function e(t,n,e){let r,i,o,s,a;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./map.js",{default(e){o=e}},2),e.link("./_deepGet.js",{default(e){s=e}},3),e.link("./_toPath.js",{default(e){a=e}},4),e.exportDefault(r((function(e,t,n){var r,u;return i(t)?u=t:(t=a(t),r=t.slice(0,-1),t=t[t.length-1]),o(e,(function(e){var i=u;if(!i){if(r&&r.length&&(e=s(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))})))},"pluck.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./map.js",{default(e){r=e}},0),e.link("./property.js",{default(e){i=e}},1)},"where.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./filter.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"max.js":function e(t,n,e){let r,i,o,s;function a(e,t,n){var a=-1/0,u=-1/0,f,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,h=(e=r(e)?e:i(e)).length;la&&(a=f);else t=o(t,n),s(e,(function(e,n,r){((c=t(e,n,r))>u||c===-1/0&&a===-1/0)&&(a=e,u=c)}));return a}e.export({default:()=>a}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2),e.link("./each.js",{default(e){s=e}},3)},"min.js":function e(t,n,e){let r,i,o,s;function a(e,t,n){var a=1/0,u=1/0,f,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,h=(e=r(e)?e:i(e)).length;la}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2),e.link("./each.js",{default(e){s=e}},3)},"shuffle.js":function e(t,n,e){let r;function i(e){return r(e,1/0)}e.export({default:()=>i}),e.link("./sample.js",{default(e){r=e}},0)},"sample.js":function e(t,n,e){let r,i,o,s,a;function u(e,t,n){if(null==t||n)return r(e)||(e=i(e)),e[s(e.length-1)];var u=a(e),f=o(u);t=Math.max(Math.min(t,f),0);for(var c=f-1,l=0;lu}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){o=e}},2),e.link("./random.js",{default(e){s=e}},3),e.link("./toArray.js",{default(e){a=e}},4)},"toArray.js":function e(t,n,e){let r,i,o,s,a,u,f;e.export({default:()=>l}),e.link("./isArray.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isString.js",{default(e){o=e}},2),e.link("./_isArrayLike.js",{default(e){s=e}},3),e.link("./map.js",{default(e){a=e}},4),e.link("./identity.js",{default(e){u=e}},5),e.link("./values.js",{default(e){f=e}},6);var c=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function l(e){return e?r(e)?i.call(e):o(e)?e.match(c):s(e)?a(e,u):f(e):[]}},"sortBy.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s=0;return t=r(t,n),i(o(e,(function(e,n,r){return{value:e,index:s++,criteria:t(e,n,r)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(ns}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./pluck.js",{default(e){i=e}},1),e.link("./map.js",{default(e){o=e}},2)},"groupBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n].push(t):e[n]=[t]})))},"_group.js":function e(t,n,e){let r,i;function o(e,t){return function(n,o,s){var a=t?[[],[]]:{};return o=r(o,s),i(n,(function(t,r){var i=o(t,r,n);e(a,t,i)})),a}}e.export({default:()=>o}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"indexBy.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n]=t})))},"countBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n]++:e[n]=1})))},"partition.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n?0:1].push(t)}),!0))},"size.js":function e(t,n,e){let r,i;function o(e){return null==e?0:r(e)?e.length:i(e).length}e.export({default:()=>o}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"pick.js":function e(t,n,e){let r,i,o,s,a,u;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){o=e}},2),e.link("./allKeys.js",{default(e){s=e}},3),e.link("./_keyInObj.js",{default(e){a=e}},4),e.link("./_flatten.js",{default(e){u=e}},5),e.exportDefault(r((function(e,t){var n={},r=t[0];if(null==e)return n;i(r)?(t.length>1&&(r=o(r,t[1])),t=s(e)):(r=a,t=u(t,!1,!1),e=Object(e));for(var f=0,c=t.length;fr})},"omit.js":function e(t,n,e){let r,i,o,s,a,u,f;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./negate.js",{default(e){o=e}},2),e.link("./map.js",{default(e){s=e}},3),e.link("./_flatten.js",{default(e){a=e}},4),e.link("./contains.js",{default(e){u=e}},5),e.link("./pick.js",{default(e){f=e}},6),e.exportDefault(r((function(e,t){var n=t[0],r;return i(n)?(n=o(n),t.length>1&&(r=t[1])):(t=s(a(t,!1,!1),String),n=function(e,n){return!u(t,n)}),f(e,n,r)})))},"first.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:r(e,e.length-t)}e.export({default:()=>i}),e.link("./initial.js",{default(e){r=e}},0)},"initial.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"last.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:r(e,Math.max(0,e.length-t))}e.export({default:()=>i}),e.link("./rest.js",{default(e){r=e}},0)},"rest.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,null==t||n?1:t)}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"compact.js":function e(t,n,e){let r;function i(e){return r(e,Boolean)}e.export({default:()=>i}),e.link("./filter.js",{default(e){r=e}},0)},"flatten.js":function e(t,n,e){let r;function i(e,t){return r(e,t,!1)}e.export({default:()=>i}),e.link("./_flatten.js",{default(e){r=e}},0)},"without.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./difference.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t){return i(e,t)})))},"difference.js":function e(t,n,e){let r,i,o,s;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./filter.js",{default(e){o=e}},2),e.link("./contains.js",{default(e){s=e}},3),e.exportDefault(r((function(e,t){return t=i(t,!0,!0),o(e,(function(e){return!s(t,e)}))})))},"uniq.js":function e(t,n,e){let r,i,o,s;function a(e,t,n,a){r(t)||(a=n,n=t,t=!1),null!=n&&(n=i(n,a));for(var u=[],f=[],c=0,l=o(e);ca}),e.link("./isBoolean.js",{default(e){r=e}},0),e.link("./_cb.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){o=e}},2),e.link("./contains.js",{default(e){s=e}},3)},"union.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./uniq.js",{default(e){i=e}},1),e.link("./_flatten.js",{default(e){o=e}},2),e.exportDefault(r((function(e){return i(o(e,!0,!0))})))},"intersection.js":function e(t,n,e){let r,i;function o(e){for(var t=[],n=arguments.length,o=0,s=r(e);oo}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./contains.js",{default(e){i=e}},1)},"unzip.js":function e(t,n,e){let r,i,o;function s(e){for(var t=e&&r(e,i).length||0,n=Array(t),s=0;ss}),e.link("./max.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.link("./pluck.js",{default(e){o=e}},2)},"zip.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./unzip.js",{default(e){i=e}},1),e.exportDefault(r(i))},"object.js":function e(t,n,e){let r;function i(e,t){for(var n={},i=0,o=r(e);ii}),e.link("./_getLength.js",{default(e){r=e}},0)},"range.js":function e(t,n,e){function r(e,t,n){null==t&&(t=e||0,e=0),n||(n=tr})},"chunk.js":function e(t,n,e){let r;function i(e,t){if(null==t||t<1)return[];for(var n=[],i=0,o=e.length;ii}),e.link("./_setup.js",{slice(e){r=e}},0)},"mixin.js":function e(t,n,e){let r,i,o,s,a;function u(e){return i(o(e),(function(t){var n=r[t]=e[t];r.prototype[t]=function(){var e=[this._wrapped];return s.apply(e,arguments),a(this,n.apply(r,e))}})),r}e.export({default:()=>u}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./functions.js",{default(e){o=e}},2),e.link("./_setup.js",{push(e){s=e}},3),e.link("./_chainResult.js",{default(e){a=e}},4)},"_chainResult.js":function e(t,n,e){let r;function i(e,t){return e._chain?r(t).chain():t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"underscore-array-methods.js":function e(t,n,e){let r,i,o,s;e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./_setup.js",{ArrayProto(e){o=e}},2),e.link("./_chainResult.js",{default(e){s=e}},3),i(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=o[e];r.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),s(this,n)}})),i(["concat","join","slice"],(function(e){var t=o[e];r.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),s(this,e)}})),e.exportDefault(r)}}}}},cachers:{"package.json":function e(t,n,e){e.exports={name:"@steedos/cachers",version:"2.5.15-beta.10",main:"lib/index.js"}},lib:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getCacherNames=n.clearCacher=n.getCacher=void 0;var r={},i=t("./memory"),o=t("./memory-lru"),s=function(e,t){return r[e]||(e.startsWith("lru.")?r[e]=new o.MemoryLRUCacher(t):r[e]=new i.MemoryCacher),r[e]};n.getCacher=s;var a=function(e){r[e]&&r[e].clear()};n.clearCacher=a;var u=function(){return Object.keys(r)};n.getCacherNames=u},"memory.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryCacher=void 0;var r=t("lodash"),i=function(){function e(){this.cache={}}return e.prototype.get=function(e){return this.cache[e]},e.prototype.delete=function(e){delete this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.clear=function(){this.cache={}},e.prototype.keys=function(){return(0,r.keys)(this.cache)},e.prototype.values=function(){return(0,r.values)(this.cache)},e}();n.MemoryCacher=i},"memory-lru.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryLRUCacher=void 0;var r=t("lodash"),i=t("lru-cache"),o={max:5e3,ttl:null,keygen:null,maxParamsLength:null},s=function(){function e(e){this.opts=(0,r.defaultsDeep)(e,o),this.cache=new i({max:this.opts.max,maxAge:this.opts.ttl?1e3*this.opts.ttl:null,updateAgeOnGet:!!this.opts.ttl})}return e.prototype.get=function(e){return this.cache.get(e)},e.prototype.set=function(e,t,n){return this.cache.set(e,t,n)},e.prototype.delete=function(e){return this.cache.delete(e)},e.prototype.clear=function(){return this.cache.clear()},e.prototype.keys=function(){return this.cache.keys()},e.prototype.values=function(){return this.cache.values()},e}();n.MemoryLRUCacher=s}},node_modules:{"lru-cache":{"package.json":function e(t,n,e){e.exports={name:"lru-cache",version:"7.14.1",main:"index.js"}},"index.js":function e(t,n,e){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,i="function"==typeof AbortController,o=i?AbortController:class e{constructor(){this.signal=new u}abort(){this.signal.dispatchEvent("abort")}},s="function"==typeof AbortSignal,a="function"==typeof o.AbortSignal,u=s?AbortSignal:a?o.AbortController:class e{constructor(){this.aborted=!1,this._listeners=[]}dispatchEvent(e){if("abort"===e){this.aborted=!0;const t={type:e,target:this};this.onabort(t),this._listeners.forEach(e=>e(t),this)}}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},f=new Set,c=(e,t)=>{const n=`LRU_CACHE_OPTION_${e}`;p(n)&&g(n,`${e} option`,`options.${t}`,_)},l=(e,t)=>{const n=`LRU_CACHE_METHOD_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} method`,`cache.${t}()`,i)}},h=(e,t)=>{const n=`LRU_CACHE_PROPERTY_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} property`,`cache.${t}`,i)}},d=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},p=e=>!f.has(e),g=(e,t,n,r)=>{f.add(e);const i=`The ${t} is deprecated. Please use ${n} instead.`;d(i,"DeprecationWarning",e,r)},b=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),m=e=>b(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?v:null:null;class v extends Array{constructor(e){super(e),this.fill(0)}}class y{constructor(e){if(0===e)return[];const t=m(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class _{constructor(e={}){const{max:t=0,ttl:n,ttlResolution:r=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:s,allowStale:a,dispose:u,disposeAfter:l,noDisposeOnSet:h,noUpdateTTL:g,maxSize:v=0,maxEntrySize:w=0,sizeCalculation:k,fetchMethod:j,fetchContext:x,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:D}=e,{length:E,maxAge:A,stale:C}=e instanceof _?{}:e;if(0!==t&&!b(t))throw new TypeError("max option must be a nonnegative integer");const M=t?m(t):Array;if(!M)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=v,this.maxEntrySize=w||this.maxSize,this.sizeCalculation=k||E,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=j||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=x,!this.fetchMethod&&void 0!==x)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new M(t),this.prev=new M(t),this.head=0,this.tail=0,this.free=new y(t),this.initialFill=1,this.size=0,"function"==typeof u&&(this.dispose=u),"function"==typeof l?(this.disposeAfter=l,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!S,0!==this.maxEntrySize){if(0!==this.maxSize&&!b(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!b(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!a||!!C,this.noDeleteOnStaleGet=!!D,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!s,this.ttlResolution=b(r)||0===r?r:1,this.ttlAutopurge=!!i,this.ttl=n||A||0,this.ttl){if(!b(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";if(p(e)){f.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";d(t,"UnboundedCacheWarning",e,_)}}C&&c("stale","allowStale"),A&&c("maxAge","ttl"),E&&c("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new v(this.max),this.starts=new v(this.max),this.setItemTTL=(e,t,n=r.now())=>{if(this.starts[e]=0!==t?n:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const n=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);n.unref&&n.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0};let e=0;const t=()=>{const t=r.now();if(this.ttlResolution>0){e=t;const n=setTimeout(()=>e=0,this.ttlResolution);n.unref&&n.unref()}return t};this.getRemainingTTL=n=>{const r=this.keyMap.get(n);return void 0===r?0:0===this.ttls[r]||0===this.starts[r]?1/0:this.starts[r]+this.ttls[r]-(e||t())},this.isStale=n=>0!==this.ttls[n]&&0!==this.starts[n]&&(e||t())-this.starts[n]>this.ttls[n]}updateItemAge(e){}setItemTTL(e,t,n){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new v(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,n,r)=>{if(this.isBackgroundFetch(t))return 0;if(!b(n)){if(!r)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!b(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.addItemSize=(e,t)=>{if(this.sizes[e]=t,this.maxSize){const t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e]}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,n,r){if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const n of this.indexes())if(e(this.valList[n],this.keyList[n],this))return this.get(this.keyList[n],t)}forEach(e,t=this){for(const n of this.indexes())e.call(t,this.valList[n],this.keyList[n],this)}rforEach(e,t=this){for(const n of this.rindexes())e.call(t,this.valList[n],this.keyList[n],this)}get prune(){return l("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes({allowStale:!0})){const n=this.keyList[t],i=this.valList[t],o=this.isBackgroundFetch(i)?i.__staleWhileFetching:i,s={value:o};if(this.ttls){s.ttl=this.ttls[t];const e=r.now()-this.starts[t];s.start=Math.floor(Date.now()-e)}this.sizes&&(s.size=this.sizes[t]),e.unshift([n,s])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}dispose(e,t,n){}set(e,t,{ttl:n=this.ttl,start:r,noDisposeOnSet:i=this.noDisposeOnSet,size:o=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(o=this.requireSize(e,t,o,s),this.maxEntrySize&&o>this.maxEntrySize)return this.delete(e),this;let u=0===this.size?void 0:this.keyMap.get(e);if(void 0===u)u=this.newIndex(),this.keyList[u]=e,this.valList[u]=t,this.keyMap.set(e,u),this.next[this.tail]=u,this.prev[u]=this.tail,this.tail=u,this.size++,this.addItemSize(u,o),a=!1;else{const n=this.valList[u];t!==n&&(this.isBackgroundFetch(n)?n.__abortController.abort():i||(this.dispose(n,e,"set"),this.disposeAfter&&this.disposed.push([n,e,"set"])),this.removeItemSize(u),this.valList[u]=t,this.addItemSize(u,o)),this.moveToTail(u)}if(0===n||0!==this.ttl||this.ttls||this.initializeTTLTracking(),a||this.setItemTTL(u,n,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,n=this.keyList[t],r=this.valList[t];return this.isBackgroundFetch(r)?r.__abortController.abort():(this.dispose(r,n,"evict"),this.disposeAfter&&this.disposed.push([r,n,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(n),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const n=this.keyMap.get(e);return void 0!==n&&!this.isStale(n)&&(t&&this.updateItemAge(n),!0)}peek(e,{allowStale:t=this.allowStale}={}){const n=this.keyMap.get(e);if(void 0!==n&&(t||!this.isStale(n))){const e=this.valList[n];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,n,r){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const s=new o,a={signal:s.signal,options:n,context:r},u=t=>(s.signal.aborted||this.set(e,t,a.options),t),f=r=>{if(this.valList[t]===l){const r=!n.noDeleteOnFetchRejection||void 0===l.__staleWhileFetching;r?this.delete(e):this.valList[t]=l.__staleWhileFetching}if(l.__returned===l)throw r},c=t=>t(this.fetchMethod(e,i,a)),l=new Promise(c).then(u,f);return l.__abortController=s,l.__staleWhileFetching=i,l.__returned=null,void 0===t?(this.set(e,l,a.options),t=this.keyMap.get(e)):this.valList[t]=l,l}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,fetchContext:c=this.fetchContext,forceRefresh:l=!1}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r});const h={allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:i,noDisposeOnSet:o,size:s,sizeCalculation:a,noUpdateTTL:u,noDeleteOnFetchRejection:f};let d=this.keyMap.get(e);if(void 0===d){const t=this.backgroundFetch(e,d,h,c);return t.__returned=t}{const r=this.valList[d];if(this.isBackgroundFetch(r))return t&&void 0!==r.__staleWhileFetching?r.__staleWhileFetching:r.__returned=r;if(!l&&!this.isStale(d))return this.moveToTail(d),n&&this.updateItemAge(d),r;const i=this.backgroundFetch(e,d,h,c);return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i.__returned=i}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet}={}){const i=this.keyMap.get(e);if(void 0!==i){const o=this.valList[i],s=this.isBackgroundFetch(o);if(this.isStale(i))return s?t?o.__staleWhileFetching:void 0:(r||this.delete(e),t?o:void 0);if(s)return;return this.moveToTail(i),n&&this.updateItemAge(i),o}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return l("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const n=this.keyMap.get(e);if(void 0!==n)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(n);const t=this.valList[n];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const n=this.keyList[e];this.dispose(t,n,"delete"),this.disposeAfter&&this.disposed.push([t,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return l("reset","clear"),this.clear}get length(){return h("length","size"),this.size}static get AbortController(){return o}static get AbortSignal(){return u}}e.exports=_}}}}},tslib:{"package.json":function e(t,n,e){e.exports={name:"tslib",version:"2.3.1",module:"tslib.es6.js",main:"tslib.js"}},"tslib.es6.js":function e(t,n,e){e.export({__extends:()=>i,__assign:()=>o,__rest:()=>s,__decorate:()=>a,__param:()=>u,__metadata:()=>f,__awaiter:()=>c,__generator:()=>l,__createBinding:()=>h,__exportStar:()=>d,__values:()=>p,__read:()=>g,__spread:()=>b,__spreadArrays:()=>m,__spreadArray:()=>v,__await:()=>y,__asyncGenerator:()=>_,__asyncDelegator:()=>w,__asyncValues:()=>k,__makeTemplateObject:()=>j,__importStar:()=>S,__importDefault:()=>D,__classPrivateFieldGet:()=>E,__classPrivateFieldSet:()=>A}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -706,7 +706,7 @@ var r,a;r=this,a=function(t){var e=function(){"use strict";return{isMsie:functio */ var r,a;r=this,a=function(t){var e=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:t.isArray,isFunction:t.isFunction,isObject:t.isPlainObject,isUndefined:function(t){return void 0===t},isElement:function(t){return!(!t||1!==t.nodeType)},isJQuery:function(e){return e instanceof t},toStr:function t(n){return e.isUndefined(n)||null===n?"":n+""},bind:t.proxy,each:function(e,n){function i(t,e){return n(e,t)}t.each(e,i)},map:t.map,filter:t.grep,every:function(e,n){var i=!0;return e?(t.each(e,(function(t,r){if(!(i=n.call(null,r,t,e)))return!1})),!!i):i},some:function(e,n){var i=!1;return e?(t.each(e,(function(t,r){if(i=n.call(null,r,t,e))return!1})),!!i):i},mixin:t.extend,identity:function(t){return t},clone:function(e){return t.extend(!0,{},e)},getIdGenerator:function(){var t=0;return function(){return t++}},templatify:function e(n){return t.isFunction(n)?n:i;function i(){return String(n)}},defer:function(t){setTimeout(t,0)},debounce:function(t,e,n){var i,r;return function(){var a=this,o=arguments,s,u;return s=function(){i=null,n||(r=t.apply(a,o))},u=n&&!i,clearTimeout(i),i=setTimeout(s,e),u&&(r=t.apply(a,o)),r}},throttle:function(t,e){var n,i,r,a,o,s;return o=0,s=function(){o=new Date,r=null,a=t.apply(n,i)},function(){var u=new Date,l=e-(u-o);return n=this,i=arguments,l<=0?(clearTimeout(r),r=null,o=u,a=t.apply(n,i)):r||(r=setTimeout(s,l)),a}},stringify:function(t){return e.isString(t)?t:JSON.stringify(t)},noop:function(){}}}(),n=function(){"use strict";var t={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return n;function n(n){var o,s;return s=e.mixin({},t,n),{css:(o={css:a(),classes:s,html:i(s),selectors:r(s)}).css,html:o.html,classes:o.classes,selectors:o.selectors,mixin:function(t){e.mixin(t,o)}}}function i(t){return{wrapper:'',menu:'
'}}function r(t){var n={};return e.each(t,(function(t,e){n[e]="."+t})),n}function a(){var t={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return e.isMsie()&&e.mixin(t.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),t}}(),i=function(){"use strict";var n,i;function r(e){e&&e.el||t.error("EventBus initialized without el"),this.$el=t(e.el)}return n="typeahead:",i={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},e.mixin(r.prototype,{_trigger:function(e,i){var r;return r=t.Event(n+e),(i=i||[]).unshift(r),this.$el.trigger.apply(this.$el,i),r},before:function(t){var e,n;return e=[].slice.call(arguments,1),(n=this._trigger("before"+t,e)).isDefaultPrevented()},trigger:function(t){var e;this._trigger(t,[].slice.call(arguments,1)),(e=i[t])&&this._trigger(e,[].slice.call(arguments,1))}}),r}(),r=function(){"use strict";var t=/\s+/,e=u();return{onSync:r,onAsync:i,off:a,trigger:o};function n(e,n,i,r){var a;if(!i)return this;for(n=n.split(t),i=r?l(i,r):i,this._callbacks=this._callbacks||{};a=n.shift();)this._callbacks[a]=this._callbacks[a]||{sync:[],async:[]},this._callbacks[a][e].push(i);return this}function i(t,e,i){return n.call(this,"async",t,e,i)}function r(t,e,i){return n.call(this,"sync",t,e,i)}function a(e){var n;if(!this._callbacks)return this;for(e=e.split(t);n=e.shift();)delete this._callbacks[n];return this}function o(n){var i,r,a,o,u;if(!this._callbacks)return this;for(n=n.split(t),a=[].slice.call(arguments,1);(i=n.shift())&&(r=this._callbacks[i]);)o=s(r.sync,this,[i].concat(a)),u=s(r.async,this,[i].concat(a)),o()&&e(u);return this}function s(t,e,n){return i;function i(){for(var i,r=0,a=t.length;!i&&r9?this.$input.on("input.tt",o):this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",(function(i){n[i.which||i.keyCode]||e.defer(e.bind(t._onInput,t,i))})),this},focus:function t(){this.$input.focus()},blur:function t(){this.$input.blur()},getLangDir:function t(){return this.dir},getQuery:function t(){return this.query||""},setQuery:function t(e,n){this.setInputValue(e),this._setQuery(e,n)},hasQueryChangedSinceLastFocus:function t(){return this.query!==this.queryWhenFocused},getInputValue:function t(){return this.$input.val()},setInputValue:function t(e){this.$input.val(e),this.clearHintIfInvalid(),this._checkLanguageDirection()},resetInputValue:function t(){this.setInputValue(this.query)},getHint:function t(){return this.$hint.val()},setHint:function t(e){this.$hint.val(e)},clearHint:function t(){this.setHint("")},clearHintIfInvalid:function t(){var e,n,i,r;i=(e=this.getInputValue())!==(n=this.getHint())&&0===n.indexOf(e),!(r=""!==e&&i&&!this.hasOverflow())&&this.clearHint()},hasFocus:function t(){return this.$input.is(":focus")},hasOverflow:function t(){var e=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=e},isCursorAtEnd:function(){var t,n,i;return t=this.$input.val().length,n=this.$input[0].selectionStart,e.isNumber(n)?n===t:!document.selection||((i=document.selection.createRange()).moveStart("character",-t),t===i.text.length)},destroy:function e(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$overflowHelper.remove(),this.$hint=this.$input=this.$overflowHelper=t("
")}}),i;function a(e){return t('').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:e.css("font-family"),fontSize:e.css("font-size"),fontStyle:e.css("font-style"),fontVariant:e.css("font-variant"),fontWeight:e.css("font-weight"),wordSpacing:e.css("word-spacing"),letterSpacing:e.css("letter-spacing"),textIndent:e.css("text-indent"),textRendering:e.css("text-rendering"),textTransform:e.css("text-transform")}).insertAfter(e)}function o(t,e){return i.normalizeQuery(t)===i.normalizeQuery(e)}function s(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}}(),s=function(){"use strict";var n,i;function o(n,r){(n=n||{}).templates=n.templates||{},n.templates.notFound=n.templates.notFound||n.templates.empty,n.source||t.error("missing source"),n.node||t.error("missing node"),n.name&&(n.name,0)&&t.error("invalid dataset name: "+n.name),r.mixin(this),this.highlight=!!n.highlight,this.name=n.name||i(),this.limit=n.limit||5,this.displayFn=s(n.display||n.displayKey),this.templates=u(n.templates,this.displayFn),this.source=n.source.__ttAdapter?n.source.__ttAdapter():n.source,this.async=e.isUndefined(n.async)?this.source.length>2:!!n.async,this._resetLastSuggestion(),this.$el=t(n.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}return n={val:"tt-selectable-display",obj:"tt-selectable-object"},i=e.getIdGenerator(),o.extractData=function e(i){var r=t(i);return r.data(n.obj)?{val:r.data(n.val)||"",obj:r.data(n.obj)||null}:null},e.mixin(o.prototype,r,{_overwrite:function t(e,n){(n=n||[]).length?this._renderSuggestions(e,n):this.async&&this.templates.pending?this._renderPending(e):!this.async&&this.templates.notFound?this._renderNotFound(e):this._empty(),this.trigger("rendered",this.name,n,!1)},_append:function t(e,n){(n=n||[]).length&&this.$lastSuggestion.length?this._appendSuggestions(e,n):n.length?this._renderSuggestions(e,n):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(e),this.trigger("rendered",this.name,n,!0)},_renderSuggestions:function t(e,n){var i;i=this._getSuggestionsFragment(e,n),this.$lastSuggestion=i.children().last(),this.$el.html(i).prepend(this._getHeader(e,n)).append(this._getFooter(e,n))},_appendSuggestions:function t(e,n){var i,r;r=(i=this._getSuggestionsFragment(e,n)).children().last(),this.$lastSuggestion.after(i),this.$lastSuggestion=r},_renderPending:function t(e){var n=this.templates.pending;this._resetLastSuggestion(),n&&this.$el.html(n({query:e,dataset:this.name}))},_renderNotFound:function t(e){var n=this.templates.notFound;this._resetLastSuggestion(),n&&this.$el.html(n({query:e,dataset:this.name}))},_empty:function t(){this.$el.empty(),this._resetLastSuggestion()},_getSuggestionsFragment:function i(r,o){var s=this,u;return u=document.createDocumentFragment(),e.each(o,(function e(i){var a,o;o=s._injectQuery(r,i),a=t(s.templates.suggestion(o)).data(n.obj,i).data(n.val,s.displayFn(i)).addClass(s.classes.suggestion+" "+s.classes.selectable),u.appendChild(a[0])})),this.highlight&&a({className:this.classes.highlight,node:u,pattern:r}),t(u)},_getFooter:function t(e,n){return this.templates.footer?this.templates.footer({query:e,suggestions:n,dataset:this.name}):null},_getHeader:function t(e,n){return this.templates.header?this.templates.header({query:e,suggestions:n,dataset:this.name}):null},_resetLastSuggestion:function e(){this.$lastSuggestion=t()},_injectQuery:function t(n,i){return e.isObject(i)?e.mixin({_query:n},i):i},update:function e(n){var i=this,r=!1,a=!1,o=0;function s(t){a||(a=!0,t=(t||[]).slice(0,i.limit),o=t.length,i._overwrite(n,t),o")}}),o;function s(t){return t=t||e.stringify,e.isFunction(t)?t:n;function n(e){return e[t]}}function u(n,i){return{notFound:n.notFound&&e.templatify(n.notFound),pending:n.pending&&e.templatify(n.pending),header:n.header&&e.templatify(n.header),footer:n.footer&&e.templatify(n.footer),suggestion:n.suggestion||r};function r(e){return t("
").text(i(e))}}function l(t){return!0}}(),u=function(){"use strict";function n(n,i){var r=this;function a(e){var n=r.$node.find(e.node).first();return e.node=n.length?n:t("
").appendTo(r.$node),new s(e,i)}(n=n||{}).node||t.error("node is required"),i.mixin(this),this.$node=t(n.node),this.query=null,this.datasets=e.map(n.datasets,a)}return e.mixin(n.prototype,r,{_onSelectableClick:function e(n){this.trigger("selectableClicked",t(n.currentTarget))},_onRendered:function t(e,n,i,r){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetRendered",n,i,r)},_onCleared:function t(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetCleared")},_propagate:function t(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function t(){return e.every(this.datasets,n);function n(t){return t.isEmpty()}},_getSelectables:function t(){return this.$node.find(this.selectors.selectable)},_removeCursor:function t(){var e=this.getActiveSelectable();e&&e.removeClass(this.classes.cursor)},_ensureVisible:function t(e){var n,i,r,a;i=(n=e.position().top)+e.outerHeight(!0),r=this.$node.scrollTop(),a=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10),n<0?this.$node.scrollTop(r+n):a"),e.each(this.datasets,i)}}),n}(),l=function(){"use strict";var t=u.prototype;function n(){u.apply(this,[].slice.call(arguments,0))}return e.mixin(n.prototype,u.prototype,{open:function e(){return!this._allDatasetsEmpty()&&this._show(),t.open.apply(this,[].slice.call(arguments,0))},close:function e(){return this._hide(),t.close.apply(this,[].slice.call(arguments,0))},_onRendered:function e(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),t._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function e(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),t._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function e(n){return this.$node.css("ltr"===n?this.css.ltr:this.css.rtl),t.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function t(){this.$node.hide()},_show:function t(){this.$node.css("display","block")}}),n}(),c=function(){"use strict";function n(n,r){var a,o,s,u,l,c,d,f,h,p,m;(n=n||{}).input||t.error("missing input"),n.menu||t.error("missing menu"),n.eventBus||t.error("missing event bus"),r.mixin(this),this.eventBus=n.eventBus,this.minLength=e.isNumber(n.minLength)?n.minLength:1,this.input=n.input,this.menu=n.menu,this.enabled=!0,this.active=!1,this.input.hasFocus()&&this.activate(),this.dir=this.input.getLangDir(),this._hacks(),this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this),a=i(this,"activate","open","_onFocused"),o=i(this,"deactivate","_onBlurred"),s=i(this,"isActive","isOpen","_onEnterKeyed"),u=i(this,"isActive","isOpen","_onTabKeyed"),l=i(this,"isActive","_onEscKeyed"),c=i(this,"isActive","open","_onUpKeyed"),d=i(this,"isActive","open","_onDownKeyed"),f=i(this,"isActive","isOpen","_onLeftKeyed"),h=i(this,"isActive","isOpen","_onRightKeyed"),p=i(this,"_openIfActive","_onQueryChanged"),m=i(this,"_openIfActive","_onWhitespaceChanged"),this.input.bind().onSync("focused",a,this).onSync("blurred",o,this).onSync("enterKeyed",s,this).onSync("tabKeyed",u,this).onSync("escKeyed",l,this).onSync("upKeyed",c,this).onSync("downKeyed",d,this).onSync("leftKeyed",f,this).onSync("rightKeyed",h,this).onSync("queryChanged",p,this).onSync("whitespaceChanged",m,this).onSync("langDirChanged",this._onLangDirChanged,this)}return e.mixin(n.prototype,{_hacks:function n(){var i,r;i=this.input.$input||t("
"),r=this.menu.$node||t("
"),i.on("blur.tt",(function(t){var n,a,o;n=document.activeElement,a=r.is(n),o=r.has(n).length>0,e.isMsie()&&(a||o)&&(t.preventDefault(),t.stopImmediatePropagation(),e.defer((function(){i.focus()})))})),r.on("mousedown.tt",(function(t){t.preventDefault()}))},_onSelectableClicked:function t(e,n){this.select(n)},_onDatasetCleared:function t(){this._updateHint()},_onDatasetRendered:function t(e,n,i,r){this._updateHint(),this.eventBus.trigger("render",i,r,n)},_onAsyncRequested:function t(e,n,i){this.eventBus.trigger("asyncrequest",i,n)},_onAsyncCanceled:function t(e,n,i){this.eventBus.trigger("asynccancel",i,n)},_onAsyncReceived:function t(e,n,i){this.eventBus.trigger("asyncreceive",i,n)},_onFocused:function t(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function t(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function t(e,n){var i;(i=this.menu.getActiveSelectable())&&this.select(i)&&n.preventDefault()},_onTabKeyed:function t(e,n){var i;(i=this.menu.getActiveSelectable())?this.select(i)&&n.preventDefault():(i=this.menu.getTopSelectable())&&this.autocomplete(i)&&n.preventDefault()},_onEscKeyed:function t(){this.close()},_onUpKeyed:function t(){this.moveCursor(-1)},_onDownKeyed:function t(){this.moveCursor(1)},_onLeftKeyed:function t(){"rtl"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onRightKeyed:function t(){"ltr"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onQueryChanged:function t(e,n){this._minLengthMet(n)?this.menu.update(n):this.menu.empty()},_onWhitespaceChanged:function t(){this._updateHint()},_onLangDirChanged:function t(e,n){this.dir!==n&&(this.dir=n,this.menu.setLanguageDirection(n))},_openIfActive:function t(){this.isActive()&&this.open()},_minLengthMet:function t(n){return(n=e.isString(n)?n:this.input.getQuery()||"").length>=this.minLength},_updateHint:function t(){var n,i,r,a,s,u,l;n=this.menu.getTopSelectable(),i=this.menu.getSelectableData(n),r=this.input.getInputValue(),!i||e.isBlankString(r)||this.input.hasOverflow()?this.input.clearHint():(a=o.normalizeQuery(r),s=e.escapeRegExChars(a),(l=(u=new RegExp("^(?:"+s+")(.+$)","i")).exec(i.val))&&this.input.setHint(r+l[1]))},isEnabled:function t(){return this.enabled},enable:function t(){this.enabled=!0},disable:function t(){this.enabled=!1},isActive:function t(){return this.active},activate:function t(){return!!this.isActive()||!(!this.isEnabled()||this.eventBus.before("active"))&&(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function t(){return!this.isActive()||!this.eventBus.before("idle")&&(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0)},isOpen:function t(){return this.menu.isOpen()},open:function t(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function t(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function t(n){this.input.setQuery(e.toStr(n))},getVal:function t(){return this.input.getQuery()},select:function t(e){var n=this.menu.getSelectableData(e);return!(!n||this.eventBus.before("select",n.obj)||(this.input.setQuery(n.val,!0),this.eventBus.trigger("select",n.obj),this.close(),0))},autocomplete:function t(e){var n,i,r;return n=this.input.getQuery(),!(!(r=(i=this.menu.getSelectableData(e))&&n!==i.val)||this.eventBus.before("autocomplete",i.obj)||(this.input.setQuery(i.val),this.eventBus.trigger("autocomplete",i.obj),0))},moveCursor:function t(e){var n,i,r,a,o;return n=this.input.getQuery(),i=this.menu.selectableRelativeToCursor(e),a=(r=this.menu.getSelectableData(i))?r.obj:null,!(o=this._minLengthMet()&&this.menu.update(n))&&!this.eventBus.before("cursorchange",a)&&(this.menu.setCursor(i),r?this.input.setInputValue(r.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",a),!0)},destroy:function t(){this.input.destroy(),this.menu.destroy()}}),n;function i(t){var n=[].slice.call(arguments,1);return function(){var i=[].slice.call(arguments);e.each(n,(function(e){return t[e].apply(t,i)}))}}}();!function(){"use strict";var r,a,s;function d(e,n){e.each((function(){var e=t(this),i;(i=e.data(a.typeahead))&&n(i,e)}))}function f(t,e){return t.clone().addClass(e.classes.hint).removeData().css(e.css.hint).css(p(t)).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}function h(t,e){t.data(a.attrs,{dir:t.attr("dir"),autocomplete:t.attr("autocomplete"),spellcheck:t.attr("spellcheck"),style:t.attr("style")}),t.addClass(e.classes.input).attr({autocomplete:"off",spellcheck:!1});try{!t.attr("dir")&&t.attr("dir","auto")}catch(n){}return t}function p(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}function m(t){var n,i;n=t.data(a.www),i=t.parent().filter(n.selectors.wrapper),e.each(t.data(a.attrs),(function(n,i){e.isUndefined(n)?t.removeAttr(i):t.attr(i,n)})),t.removeData(a.typeahead).removeData(a.www).removeData(a.attr).removeClass(n.classes.input),i.length&&(t.detach().insertAfter(i),i.remove())}function g(n){var i,r;return(r=(i=e.isJQuery(n)||e.isElement(n))?t(n).first():[]).length?r:null}r=t.fn.typeahead,a={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"},s={initialize:function r(s,d){var p;return d=e.isArray(d)?d:[].slice.call(arguments,1),p=n((s=s||{}).classNames),this.each(m);function m(){var n,r,m,v,_,y,b,k,w,x,T;e.each(d,(function(t){t.highlight=!!s.highlight})),n=t(this),r=t(p.html.wrapper),m=g(s.hint),v=g(s.menu),_=!1!==s.hint&&!m,y=!1!==s.menu&&!v,_&&(m=f(n,p)),y&&(v=t(p.html.menu).css(p.css.menu)),m&&m.val(""),n=h(n,p),(_||y)&&(r.css(p.css.wrapper),n.css(_?p.css.input:p.css.inputWithNoHint),n.wrap(r).parent().prepend(_?m:null).append(y?v:null)),T=y?l:u,b=new i({el:n}),k=new o({hint:m,input:n},p),w=new T({node:v,datasets:d},p),x=new c({input:k,menu:w,eventBus:b,minLength:s.minLength},p),n.data(a.www,p),n.data(a.typeahead,x)}},isEnabled:function t(){var e;return d(this.first(),(function(t){e=t.isEnabled()})),e},enable:function t(){return d(this,(function(t){t.enable()})),this},disable:function t(){return d(this,(function(t){t.disable()})),this},isActive:function t(){var e;return d(this.first(),(function(t){e=t.isActive()})),e},activate:function t(){return d(this,(function(t){t.activate()})),this},deactivate:function t(){return d(this,(function(t){t.deactivate()})),this},isOpen:function t(){var e;return d(this.first(),(function(t){e=t.isOpen()})),e},open:function t(){return d(this,(function(t){t.open()})),this},close:function t(){return d(this,(function(t){t.close()})),this},select:function e(n){var i=!1,r=t(n);return d(this.first(),(function(t){i=t.select(r)})),i},autocomplete:function e(n){var i=!1,r=t(n);return d(this.first(),(function(t){i=t.autocomplete(r)})),i},moveCursor:function t(e){var n=!1;return d(this.first(),(function(t){n=t.moveCursor(e)})),n},val:function t(e){var n;return arguments.length?(d(this,(function(t){t.setVal(e)})),this):(d(this.first(),(function(t){n=t.getVal()})),n)},destroy:function t(){return d(this,(function(t,e){m(e),t.destroy()})),this}},t.fn.typeahead=function(t){return s[t]?s[t].apply(this,[].slice.call(arguments,1)):s.initialize.apply(this,arguments)},t.fn.typeahead.noConflict=function e(){return t.fn.typeahead=r,this}}()},"function"==typeof define&&define.amd?define("typeahead.js",["jquery"],(function(t){return a(t)})):"object"==typeof n?t.exports=a(e("jquery")):a(jQuery)}).call(this,t)}},"template.af-typeahead.js":function t(){q.__checkName("afTypeAhead"),q.afTypeAhead=new q("Template.afTypeAhead",(function(){var t=this;return R.DIV({class:"typeahead-basics"},"\n ",R.INPUT(R.Attrs({type:"text",value:function(){return M.mustache(M.dot(t.lookup("."),"value"))},placeholder:""},(function(){return M.attrMustache(M.dot(t.lookup("."),"atts"))}))),"\n ")}))},"af-typeahead.coffee":function t(){var e=P="object"==typeof P?P:{};b.addInputType("typeahead",{template:"afTypeAhead",valueIn:function(t,e){return t},valueOut:function(){return this.val()},valueConverters:{stringArray:b.valueConverters.stringToStringArray,number:b.valueConverters.stringToNumber,numerArray:b.valueConverters.stringToNumberArray,boolean:b.valueConverters.stringToBoolean,booleanArray:b.valueConverters.stringToBooleanArray,date:b.valueConverters.stringToDate,dateArray:b.valueConverters.stringToDateArray},contextAdjust:function(t){return void 0===t.atts.maxlength&&"number"==typeof t.max&&(t.atts.maxlength=t.max),t.atts.class="typeahead form-control",t}}),q.afTypeAhead.helpers,q.afTypeAhead.events,q.afTypeAhead.onRendered((function(){var t,e,n,i;return n=this.data.selectOptions,t=this.data.atts.id,e=this.data.name,i=function(t){return function(e,n){var i,r;return i=[],e?(r=new RegExp(e,"i"),$.each(t,(function(t,e){r.test(e)&&i.push(e)})),n(i)):n(t)}},$("#"+t).typeahead({hint:!1,highlight:!0,minLength:0},{name:e,limit:10,source:i(n.getProperty("label"))})}))}},"coreform-number":{"template.steedos-number.js":function t(){q.__checkName("afSteedosNumber"),q.afSteedosNumber=new q("Template.afSteedosNumber",(function(){var t=this;return R.INPUT(R.Attrs({type:"number",value:function(){return M.mustache(M.dot(t.lookup("."),"value"))}},(function(){return M.attrMustache(M.dot(t.lookup("."),"atts"))})))}))},"steedos-number.coffee":function t(){var e=P="object"==typeof P?P:{},n;b.addInputType("steedosNumber",{template:"afSteedosNumber",valueIn:function(t,e){return t?Number(t).toFixed(e.scale):(0).toFixed(e.scale)},valueOut:function(){return b.valueConverters.stringToNumber(this.val())},valueConverters:{string:b.valueConverters.numberToString,stringArray:b.valueConverters.numberToStringArray,numberArray:b.valueConverters.numberToNumberArray,boolean:b.valueConverters.numberToBoolean,booleanArray:b.valueConverters.numberToBooleanArray},contextAdjust:function(t){var e,n;return e=t.atts.scale||0,void 0===t.atts.max&&"number"==typeof t.max&&(t.atts.max=t.max),void 0===t.atts.min&&"number"==typeof t.min&&(t.atts.min=t.min),void 0===t.atts.step&&a.isNumber(e)&&e>0&&(n="0.",a.range(e).forEach((function(t,n){var i;return n===e-1?i+"1":i+"0"})),t.atts.step="0."),t.atts.class="form-control",t.precision=t.atts.precision,t.scale=t.atts.scale,t}}),n=function(t,e,n,i){var r,a;return a=b.getFormId(),r=new Number(t),t.indexOf(".")>-1?t.length-1>n?Number(t.substring(0,n-i-1)).toFixed(i):r.toFixed(i):t.length>n?Number(t.substring(0,n-i)).toFixed(i):r.toFixed(i)},q.afSteedosNumber.events({"blur input[type=number]":function(t,e){return t.currentTarget.value=n(t.currentTarget.value,this.atts.name,this.atts.precision,this.atts.scale)}})}},"coreform-date-mobile":{"template.date.js":function t(){q.__checkName("steedosInputDateMobile"),q.steedosInputDateMobile=new q("Template.steedosInputDateMobile",(function(){var t=this;return R.INPUT(R.Attrs({type:function(){return M.mustache(t.lookup("inputtype"))},value:function(){return M.mustache(M.dot(t.lookup("."),"value"))}},(function(){return M.attrMustache(t.lookup("atts"))})))}))},"date.js":function t(){b.addInputType("steedos-date-mobile",{template:"steedosInputDateMobile",valueIn:function(t,e){let n="datetime";return e.dateMobileOptions&&(n=e.dateMobileOptions.type),"string"==typeof t&&(t=new Date(t)),t="date"===n?k.utc(t).format("YYYY-MM-DD"):k(t).format("YYYY-MM-DDTHH:mm:ss")},valueOut:function(){let t=this.val(),e=this.attr("type");if(!t)return t;if("date"===e)return t;{let e;return(t=k.tz(b.Utility.dateToNormalizedLocalDateAndTimeString(t),"utc").toDate()).setHours(t.getHours()+t.getTimezoneOffset()/60),t}}}),q.steedosInputDateMobile.helpers({atts:function(){var t=a.clone(this.atts);return delete(t=b.Utility.addClass(t,"form-control")).dateMobileOptions,t},inputtype:function(){let t="datetime";switch(this.atts.dateMobileOptions&&(t=this.atts.dateMobileOptions.type),t){case"datetime":return"datetime-local";case"date":return"date";default:return"datetime-local"}}})}},"coreform-html":{"template.html.js":function t(){q.__checkName("steedosInputHtml"),q.steedosInputHtml=new q("Template.steedosInputHtml",(function(){var t=this;return j.If((function(){return M.call(t.lookup("isReadOnly"))}),(function(){return["\n ",R.DIV(R.Attrs((function(){return M.attrMustache(t.lookup("attsPlusFormControlClass"))})),"\n ",j.View("lookup:..value",(function(){return M.makeRaw(M.mustache(M.dot(t.lookup("."),"value")))})),"\n "),"\n ",R.INPUT(R.Attrs({type:"text",value:function(){return M.mustache(M.dot(t.lookup("."),"value"))},style:"display: none"},(function(){return M.attrMustache(M.dot(t.lookup("."),"atts"))}),(function(){return M.attrMustache(t.lookup("attsPlusFormControlClass"))}))),"\n "]}),(function(){return["\n ",R.INPUT(R.Attrs({type:"text",value:function(){return M.mustache(M.dot(t.lookup("."),"value"))}},(function(){return M.attrMustache(M.dot(t.lookup("."),"atts"))}),(function(){return M.attrMustache(t.lookup("attsPlusFormControlClass"))}))),"\n "]}))}))},"html.js":function t(){b.addInputType("steedosHtml",{template:"steedosInputHtml",valueConverters:{stringArray:b.valueConverters.stringToStringArray},contextAdjust:function(t){return void 0===t.atts.maxlength&&"number"==typeof t.max&&(t.atts.maxlength=t.max),t}}),q.steedosInputHtml.helpers({isReadOnly:function(){var t=this.atts;return!(!t.hasOwnProperty("disabled")&&!t.hasOwnProperty("readonly"))}})}}},components:{"slds-quickForm":{"template.slds-quickForm.js":function t(){q.__checkName("quickForm_slds"),q.quickForm_slds=new q("Template.quickForm_slds",(function(){var t=this;return R.DIV({class:function(){return["quickForm_slds ",j.If((function(){return M.call(t.lookup("horizontal"))}),(function(){return"horizontal"}))]}},"\n\t",j._TemplateWith((function(){return M.call(t.lookup("qfAutoFormContext"))}),(function(){return M.include(t.lookupTemplate("autoForm"),(function(){return["\n\t\t",j.If((function(){return M.call(M.dot(t.lookup("schemaFields"),"grouplessFields"))}),(function(){return["\n\t\t\t",j.Each((function(){return M.call(M.dot(t.lookup("schemaFields"),"grouplessFields"))}),(function(){return["\n\t\t\t\t",R.DIV({class:function(){return["slds-grid view-page-section-row ",j.If((function(){return M.dataMustache(t.lookup("has_wide_field"),t.lookup("."))}),(function(){return"wide-fields"}))]}},"\n\t\t\t\t\t",j.Each((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t",R.DIV({class:"slds-has-flexi-truncate slds-p-horizontal_x-small full view-page-block-item"},"\n\t\t\t\t\t\t\t",R.DIV({class:function(){return["slds-form-element slds-form-element_edit slds-grow slds-hint-parent slds-p-vertical_xx-small override--slds-form-element uiInput ",j.If((function(){return M.dataMustache(t.lookup("hasInlineHelpText"),t.lookup("."))}),(function(){return"has-inline-text"}))]}},"\n\t\t\t\t\t\t\t\t",j.If((function(){return M.dataMustache(t.lookup("is_range"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",M.include(t.lookupTemplate("range_field")),"\n\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t",j.Unless((function(){return M.dataMustache(t.lookup("is_renge_end"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.dataMustache(t.lookup("hasInlineHelpText"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t",R.DIV({class:"info-popover",id:function(){return["info_popover_",M.mustache(t.lookup("."))]},style:"display: none"},j.View("lookup:hasInlineHelpText",(function(){return M.mustache(t.lookup("hasInlineHelpText"),t.lookup("."))}))),"\n\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("horizontal"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),template:M.call("bootstrap3-horizontal"),"label-class":M.call("col-sm-3 col-xs-12"),"input-col-class":M.call("col-sm-9 col-xs-12")}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup(".")))}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"]})),"\n\t\t\t\t"),"\n\t\t\t"]})),"\n\t\t"]})),"\n\n\t\t",j.If((function(){return M.call(M.dot(t.lookup("schemaFields"),"groupFields"))}),(function(){return["\n\t\t\t",j.Each((function(){return M.call(M.dot(t.lookup("schemaFields"),"groupFields"))}),(function(){return["\n\t\t\t\t",j.If((function(){return M.call(M.dot(t.lookup("."),"fields"))}),(function(){return["\n\t\t\t\t\t",R.DIV({class:function(){return["slds-section group-section ",j.If((function(){return M.call(t.lookup("autoExpandGroup"))}),(function(){return"slds-is-open"}))]}},"\n\t\t\t\t\t\t",R.H3({class:"slds-section__title group-section-control"},"\n\t\t\t\t\t\t\t",j._TemplateWith((function(){return{className:M.call("slds-section__title-action"),iconClassName:M.call("slds-section__title-action-icon slds-button__icon_left"),iconCategory:M.call("utility"),iconName:M.call("switch"),variant:M.call("icon"),label:M.call(M.dot(t.lookup("."),"name"))}}),(function(){return M.include(t.lookupTemplate("steedos_button"))})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t\t",R.DIV({"aria-hidden":"false",class:"slds-section__content",id:"expando-unique-id"},"\n\t\t\t\t\t\t\t",j.Each((function(){return M.call(M.dot(t.lookup("."),"fields"))}),(function(){return["\n\t\t\t\t\t\t\t\t",R.DIV({class:function(){return["slds-grid view-page-section-row ",j.If((function(){return M.dataMustache(t.lookup("has_wide_field"),t.lookup("."))}),(function(){return"wide-fields"}))]}},"\n\t\t\t\t\t\t\t\t\t",j.Each((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",R.DIV({class:"slds-has-flexi-truncate slds-p-horizontal_x-small full view-page-block-item"},"\n\t\t\t\t\t\t\t\t\t\t",R.DIV({class:function(){return["slds-form-element slds-form-element_edit slds-grow slds-hint-parent slds-p-vertical_xx-small override--slds-form-element uiInput ",j.If((function(){return M.dataMustache(t.lookup("hasInlineHelpText"),t.lookup("."))}),(function(){return"has-inline-text"}))]}},"\n\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.dataMustache(t.lookup("is_range"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t",M.include(t.lookupTemplate("range_field")),"\n\t\t\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t",j.Unless((function(){return M.dataMustache(t.lookup("is_renge_end"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.dataMustache(t.lookup("hasInlineHelpText"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t",R.DIV({class:"info-popover",id:function(){return["info_popover_",M.mustache(t.lookup("."))]},style:"display: none"},j.View("lookup:hasInlineHelpText",(function(){return M.mustache(t.lookup("hasInlineHelpText"),t.lookup("."))}))),"\n\t\t\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("horizontal"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),template:M.call("bootstrap3-horizontal"),"label-class":M.call("col-sm-3 col-xs-12"),"input-col-class":M.call("col-sm-9 col-xs-12")}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup(".")))}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"]})),"\n\t\t\t"]})),"\n\t\t"]})),"\n\n\t\t",j.If((function(){return M.call(M.dot(t.lookup("schemaFields"),"hiddenFields"))}),(function(){return["\n\t\t\t",R.DIV({class:"slds-grid view-page-section-row hidden-fields"},"\n\t\t\t\t",R.DIV({class:"slds-has-flexi-truncate slds-p-horizontal_x-small full view-page-block-item"},"\n\t\t\t\t\t",j.Each((function(){return M.call(M.dot(t.lookup("schemaFields"),"hiddenFields"))}),(function(){return["\n\t\t\t\t\t\t",R.DIV({class:"slds-form-element slds-form-element_edit slds-grow slds-hint-parent slds-p-vertical_xx-small override--slds-form-element uiInput"},"\n\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("horizontal"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),template:M.call("bootstrap3-horizontal"),"label-class":M.call("col-sm-3 col-xs-12"),"input-col-class":M.call("col-sm-9 col-xs-12")}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup(".")))}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"]})),"\n\t\t\t\t"),"\n\t\t\t"),"\n\t\t"]})),"\n\n\t\t",j.If((function(){return M.call(M.dot(t.lookup("schemaFields"),"disabledFields"))}),(function(){return["\n\t\t\t",R.DIV({class:"slds-grid view-page-section-row disabled-fields"},"\n\t\t\t\t",R.DIV({class:"slds-has-flexi-truncate slds-p-horizontal_x-small full view-page-block-item"},"\n\t\t\t\t\t",j.Each((function(){return M.call(M.dot(t.lookup("schemaFields"),"disabledFields"))}),(function(){return["\n\t\t\t\t\t\t",R.DIV({class:"slds-form-element slds-form-element_edit slds-grow slds-hint-parent slds-p-vertical_xx-small override--slds-form-element uiInput"},"\n\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("horizontal"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),disabled:M.call(!1),readonly:M.call(!0),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),template:M.call("bootstrap3-horizontal"),"label-class":M.call("col-sm-3 col-xs-12"),"input-col-class":M.call("col-sm-9 col-xs-12")}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),disabled:M.call(!1),readonly:M.call(!0),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup(".")))}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"]})),"\n\t\t\t\t"),"\n\t\t\t"),"\n\t\t"]})),"\n\t"]}))})),"\n\t")})),q.__checkName("range_field"),q.range_field=new q("Template.range_field",(function(){var t=this;return R.DIV({class:function(){return["range-field field-code-",M.mustache(t.lookup("startName"))]}},"\n\t\t",R.DIV({class:"form-group"},"\n\t\t\t",R.LABEL({class:"col-sm-3 control-label",for:"dao2yaGvD4SFjifBi"},"\n\t\t\t\t",j.View("lookup:afFieldLabelText",(function(){return M.mustache(t.lookup("afFieldLabelText"),M.kw({name:t.lookup("startName"),class:"col-sm-3 col-xs-12"}))})),"\n\t\t\t"),"\n\t\t\t",R.DIV({class:"col-sm-9 col-xs-12"},"\n\t\t\t\t",R.DIV({class:"row show-grid"},"\n\t\t\t\t\t",R.DIV({class:"col-sm-6 col-xs-6 start"},j._TemplateWith((function(){return{name:M.call(t.lookup("startName")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),label:M.call(!1)}}),(function(){return M.include(t.lookupTemplate("afQuickField"))}))),"\n\t\t\t\t\t",R.DIV({class:"col-sm-6 col-xs-6 end"},j._TemplateWith((function(){return{name:M.call(t.lookup("endName")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),label:M.call(!1)}}),(function(){return M.include(t.lookupTemplate("afQuickField"))}))),"\n\t\t\t\t"),"\n\t\t\t"),"\n\t\t"),"\n\t")}))},"slds-quickForm.coffee":function t(){var e=P="object"==typeof P?P:{};q.quickForm_slds.helpers({isDisabled:function(t){var e,n,i,r;return null!=(e=q.instance())&&null!=(n=e.data)&&null!=(i=n.qfAutoFormContext.schema._schema[t])&&null!=(r=i.autoform)?r.disabled:void 0},hasInlineHelpText:function(t){var e,n,i,r;return null!=(e=q.instance())&&null!=(n=e.data)&&null!=(i=n.qfAutoFormContext.schema._schema[t])&&null!=(r=i.autoform)?r.inlineHelpText:void 0},is_range:function(t){var e,n,i,r;return null!=(e=q.instance())&&null!=(n=e.data)&&null!=(i=n.qfAutoFormContext.schema._schema[t])&&null!=(r=i.autoform)?r.is_range:void 0},is_renge_end:function(t){return null!=t?t.endsWith("_endLine"):void 0},getClass:function(t){var e,n,i,r;if("steedosGrid"!==(null!=(e=q.instance())&&null!=(n=e.data)&&null!=(i=n.qfAutoFormContext.schema._schema[t])&&null!=(r=i.autoform)?r.type:void 0))return"form-control"},schemaFields:function(){var t,e,n,i,o,s,u,l,c,d,f,h,p;return d=[],p=this.qfAutoFormContext.schema,h=p._schema,s=p._firstLevelSchemaKeys,(f=this.qfAutoFormContext.fields||s)||(f=[]),a.each(h,(function(t,e){var n;if(a.indexOf(s,e)>-1&&!(null!=(n=t.autoform)?n.omit:void 0))return d.push(e)})),1===d.length?o={grouplessFields:[d]}:(l=Creator.getHiddenFields(h),t=Creator.getDisabledFields(h),n=[],i=[],c=r.get("cmEditSingleField"),u=[],u=Creator.getFieldsWithNoGroup(h),u=Creator.getFieldsInFirstLevel(s,u),f&&(u=a.intersection(f,u)),u=Creator.getFieldsWithoutOmit(h,u),u=Creator.getFieldsForReorder(h,u,c),e=Creator.getSortedFieldGroupNames(h),a.each(e,(function(t){return i=Creator.getFieldsForGroup(h,t),i=Creator.getFieldsInFirstLevel(s,i),f&&(i=a.intersection(f,i)),i=Creator.getFieldsWithoutOmit(h,i),i=Creator.getFieldsForReorder(h,i,c),n.push({name:t,fields:i})})),o={grouplessFields:u,groupFields:n,hiddenFields:l,disabledFields:t})},horizontal:function(){return q.instance().data.atts.horizontal},is_range_fields:function(t){var e,n,i,r;if((null!=t?t.length:void 0)>0&&t[0])return null!=(e=q.instance())&&null!=(n=e.data)&&null!=(i=n.qfAutoFormContext.schema._schema[t[0]])&&null!=(r=i.autoform)?r.is_range:void 0},has_wide_field:function(t){var e,n,i,r;if((null!=t?t.length:void 0)>0&&t[0])return null!=(e=q.instance())&&null!=(n=e.data)&&null!=(i=n.qfAutoFormContext.schema._schema[t[0]])&&null!=(r=i.autoform)?r.is_wide:void 0},autoExpandGroup:function(){return q.instance().data.atts.autoExpandGroup||!1}}),q.quickForm_slds.events({"click .group-section-control":function(t,e){return t.preventDefault(),t.stopPropagation(),$(t.currentTarget).closest(".group-section").toggleClass("slds-is-open")}}),q.quickForm_slds.onRendered((function(){var t;return t=this,this.$(".has-inline-text").each((function(){var t,e;return t='\n\t\n',$(".control-label",$(this)).append(t)})),this.$(".info-popover").each((function(){var t;return t=$("~ .form-group .help-info",$(this)).attr("id"),$(this).dxPopover({target:"#"+t,showEvent:"mouseenter",hideEvent:"mouseleave",position:"top",width:300,animation:{show:{type:"pop",from:{scale:0},to:{scale:1}},hide:{type:"fade",from:1,to:0}}})}))})),q.range_field.helpers({startName:function(){return this.toString()},endName:function(){return this.toString()+"_endLine"},getClass:function(t){return"form-control"}})}}}}}}}}},{extensions:[".js",".json",".coffee",".html",".less"]});W("/node_modules/meteor/steedos:autoform/client/core.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/boolean-checkbox/template.boolean-checkbox.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/boolean-checkbox/boolean-checkbox.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/boolean-toggle/template.boolean-toggle.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/boolean-toggle/boolean-toggle.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org-localdata/template.select-orgs.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org-localdata/select-orgs.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/lib/template.cf_organization.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/lib/cf_organization.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/lib/template.cf_organization_modal.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/lib/cf_organization_modal.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/template.select-orgs.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/select-orgs.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user-localdata/template.select-users.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user-localdata/select-users.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_data_manager.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_tabular_space_user.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/template.cf_contact_modal.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_contact_modal.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/template.cf_organization_list.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_organization_list.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/template.cf_space_user_list.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_space_user_list.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/template.cf_organization_modal.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_organization_modal.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/template.select-users.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/select-users.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-tree/template.select-tree.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-tree/select-tree.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-email/template.email.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-email/email.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-url/template.url.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-url/url.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-widearea/template.widearea.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-widearea/widearea.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/components/slds-quickForm/template.slds-quickForm.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/components/slds-quickForm/slds-quickForm.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-typeahead/typeahead.js/bloodhound.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-typeahead/typeahead.js/typeahead.bundle.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-typeahead/typeahead.js/typeahead.jquery.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-typeahead/template.af-typeahead.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-typeahead/af-typeahead.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-number/template.steedos-number.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-number/steedos-number.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-date-mobile/template.date.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-date-mobile/date.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-html/template.html.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-html/html.js"),Package._define("steedos:autoform",{CFDataManager:L})}(); -!function(){var Meteor=Package.meteor.Meteor,global=Package.meteor.global,meteorEnv=Package.meteor.meteorEnv,ReactiveVar=Package["reactive-var"].ReactiveVar,ReactiveDict=Package["reactive-dict"].ReactiveDict,Random=Package.random.Random,DDP=Package["ddp-client"].DDP,check=Package.check.check,Match=Package.check.Match,_=Package.underscore._,Tracker=Package.tracker.Tracker,Deps=Package.tracker.Deps,Session=Package.session.Session,Blaze=Package.ui.Blaze,UI=Package.ui.UI,Handlebars=Package.ui.Handlebars,Template=Package["templating-runtime"].Template,SimpleSchema=Package["aldeed:simple-schema"].SimpleSchema,MongoObject=Package["aldeed:simple-schema"].MongoObject,Tabular=Package["aldeed:tabular"].Tabular,AutoForm=Package["aldeed:autoform"].AutoForm,CollectionHooks=Package["matb33:collection-hooks"].CollectionHooks,BlazeLayout=Package["kadira:blaze-layout"].BlazeLayout,FlowRouter=Package["kadira:flow-router"].FlowRouter,SubsManager=Package["meteorhacks:subs-manager"].SubsManager,moment=Package["momentjs:moment"].moment,UniSelectize=Package["steedos:autoform-lookup"].UniSelectize,Accounts=Package["accounts-base"].Accounts,Selector=Package["steedos:base"].Selector,Steedos=Package["steedos:base"].Steedos,AjaxCollection=Package["steedos:base"].AjaxCollection,SteedosDataManager=Package["steedos:base"].SteedosDataManager,SteedosOffice=Package["steedos:base"].SteedosOffice,Modal=Package["steedos:base"].Modal,CFDataManager=Package["steedos:autoform"].CFDataManager,Push=Package["raix:push"].Push,Logger=Package["steedos:logger"].Logger,_i18n=Package["universe:i18n"]._i18n,i18n=Package["universe:i18n"].i18n,Promise=Package.promise.Promise,meteorInstall=Package.modules.meteorInstall,HTML=Package.htmljs.HTML,Collection2=Package["aldeed:collection2-core"].Collection2,FS=Package["steedos:cfs-base-package"].FS,Spacebars=Package.spacebars.Spacebars,Mongo=Package.mongo.Mongo,__coffeescriptShare,regions,require=meteorInstall({node_modules:{meteor:{"steedos:creator":{"core.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Creator.getSchema=function(e){var t;return null!=(t=Creator.getObject(e))?t.schema:void 0},Creator.getObjectHomeComponent=function(e){return!1},Creator.getObjectUrl=function(e,t,r){var o,a;return r||(r=Session.get("app_id")),e||(e=Session.get("object_name")),a=null!=(o=Creator.getListView(e,null))?o._id:void 0,t?Creator.getRelativeUrl("/app/"+r+"/"+e+"/view/"+t):Creator.getObjectHomeComponent(e)?Creator.getRelativeUrl("/app/"+r+"/"+e):a?Creator.getRelativeUrl("/app/"+r+"/"+e+"/grid/"+a):Creator.getRelativeUrl("/app/"+r+"/"+e)},Creator.getObjectAbsoluteUrl=function(e,t,r){var o,a;return r||(r=Session.get("app_id")),e||(e=Session.get("object_name")),a=null!=(o=Creator.getListView(e,null))?o._id:void 0,t?Steedos.absoluteUrl("/app/"+r+"/"+e+"/view/"+t,!0):Steedos.absoluteUrl("/app/"+r+"/"+e+"/grid/"+a,!0)},Creator.getObjectRouterUrl=function(e,t,r){var o,a;return r||(r=Session.get("app_id")),e||(e=Session.get("object_name")),a=null!=(o=Creator.getListView(e,null))?o._id:void 0,t?"/app/"+r+"/"+e+"/view/"+t:"/app/"+r+"/"+e+"/grid/"+a},Creator.getListViewUrl=function(e,t,r){var o;return o=Creator.getListViewRelativeUrl(e,t,r),Creator.getRelativeUrl(o)},Creator.getListViewRelativeUrl=function(e,t,r){return"/app/"+t+"/"+e+"/grid/"+r},Creator.getSwitchListUrl=function(e,t,r){return r?Creator.getRelativeUrl("/app/"+t+"/"+e+"/"+r+"/list"):Creator.getRelativeUrl("/app/"+t+"/"+e+"/list/switch")},Creator.getRelatedObjectUrl=function(e,t,r,o,a){return a?Creator.getRelativeUrl("/app/"+t+"/"+e+"/"+r+"/"+o+"/grid?related_field_name="+a):Creator.getRelativeUrl("/app/"+t+"/"+e+"/"+r+"/"+o+"/grid")},Creator.getObjectLookupFieldOptions=function(e,t,r,o){var a,n,i,s,c,l;return n=[],e?(i=null!=(a=Creator.getObject(e))?a.fields:void 0,s=null!=a?a.icon:void 0,_.forEach(i,(function(e,t){if(!r||!e.hidden)return"select"===e.type?n.push({label:""+(e.label||t),value:""+t,icon:s}):n.push({label:e.label||t,value:t,icon:s})})),t&&_.forEach(i,(function(e,t){var o;if(!r||!e.hidden)return("lookup"===e.type||"master_detail"===e.type)&&e.reference_to&&_.isString(e.reference_to)&&(o=Creator.getObject(e.reference_to))?_.forEach(o.fields,(function(r,a){return n.push({label:(e.label||t)+"=>"+(r.label||a),value:t+"."+a,icon:null!=o?o.icon:void 0})})):void 0})),o&&(c=Creator.getRelatedObjects(e),_.each(c,(l=this,function(e){var t,r;return r=Creator.getObjectLookupFieldOptions(e.object_name,!1,!1,!1),t=Creator.getObject(e.object_name),_.each(r,(function(r){if(e.foreign_key!==r.value)return n.push({label:(t.label||t.name)+"=>"+r.label,value:t.name+"."+r.value,icon:null!=t?t.icon:void 0})}))}))),n):n},Creator.getObjectFilterFieldOptions=function(e){var t,r,o,a,n;return r=[],e?(o=null!=(t=Creator.getObject(e))?t.fields:void 0,n=Creator.getFields(e),a=null!=t?t.icon:void 0,_.forEach(o,(function(e,t){if(!_.include(["grid","object","[Object]","[object]","Object","avatar","image","markdown","html"],e.type)&&!e.hidden&&!/\w+\./.test(t)&&_.indexOf(n,t)>-1)return r.push({label:e.label||t,value:t,icon:a})})),r):r},Creator.getObjectFieldOptions=function(e){var t,r,o,a,n;return r=[],e?(o=null!=(t=Creator.getObject(e))?t.fields:void 0,n=Creator.getFields(e),a=null!=t?t.icon:void 0,_.forEach(o,(function(e,t){if(!_.include(["grid","object","[Object]","[object]","Object","markdown","html"],e.type)&&!/\w+\./.test(t)&&_.indexOf(n,t)>-1)return r.push({label:e.label||t,value:t,icon:a})})),r):r},Creator.getFiltersWithFilterFields=function(e,t,r){return e||(e=[]),r||(r=[]),(null!=r?r.length:void 0)&&r.forEach((function(r){if(_.isString(r)&&(r={field:r,required:!1}),t[r.field]&&!_.findWhere(e,{field:r.field}))return e.push({field:r.field,is_default:!0,is_required:r.required})})),e.forEach((function(e){var t;return t=r.find((function(t){return t===e.field||t.field===e.field})),_.isString(t)&&(t={field:t,required:!1}),t?(e.is_default=!0,e.is_required=t.required):(delete e.is_default,delete e.is_required)})),e},Creator.getObjectRecord=function(e,t,r,o){var a,n,i,s,c,l;if(e||(e=Session.get("object_name")),t||(t=Session.get("record_id")),Meteor.isClient){if(e!==Session.get("object_name")||t!==Session.get("record_id"))return Creator.odata.get(e,t,r,o);if(null!=(s=Template.instance())?s.record:void 0)return null!=(c=Template.instance())&&null!=(l=c.record)?l.get():void 0}if("meteor"!==(n=Creator.getObject(e)).database_name&&n.database_name){if(e&&t)return Creator.odata.get(e,t,r,o)}else if(a=Creator.getCollection(e))return i=a.findOne(t)},Creator.getObjectRecordName=function(e,t){var r,o;if(e||(e=Creator.getObjectRecord()),e&&(r="organizations"===t?"name":null!=(o=Creator.getObject(t))?o.NAME_FIELD_KEY:void 0,e&&r))return e.label||e[r]},Creator.getApp=function(e){var t,r;return(t=Session.get("_app_menus")||Session.get("app_menus"))?r=t.find((function(t){return t.id===e})):{}},Creator.getAppDashboard=function(e){var t,r;if(t=Creator.getApp(e))return r=null,_.each(Creator.Dashboards,(function(e,o){var a;if((null!=(a=e.apps)?a.indexOf(t._id):void 0)>-1)return r=e})),r},Creator.getAppDashboardComponent=function(e){var t;t=Creator.getApp(e)},Creator.getAppObjectNames=function(e){var t,r,o,a;if(t=Creator.getApp(e))return r=(o=Steedos.isMobile())?t.mobile_objects:t.objects,a=[],t&&_.each(r,(function(e){var t;if(null!=(t=Creator.getObject(e))?t.permissions.get().allowRead:void 0)return a.push(e)})),a},Creator.getUrlWithToken=function(e,t){var r,o,a;return(a={})["X-Space-Id"]=Steedos.spaceId(),a["X-User-Id"]=Steedos.userId(),a["X-Company-Ids"]=Steedos.getUserCompanyIds(),a["X-Auth-Token"]=Accounts._storedLoginToken(),Steedos.isExpression(e)&&(e=Steedos.parseSingleExpression(e,t,"#",Creator.USER_CONTEXT)),""+e+(o=(r=/(\#.+\?)|(\?[^#]*$)/g.test(e))?"&":"?")+$.param(a)},Creator.getAppMenu=function(e,t){var r;return(r=Creator.getAppMenus(e))&&r.find((function(e){return e.id===t}))},Creator.getAppMenuUrlForInternet=function(e){return Creator.getUrlWithToken(e.path,e)},Creator.getAppMenuUrl=function(e){var t;return t=e.path,"url"===e.type?e.target?Creator.getAppMenuUrlForInternet(e):"/app/-/tab_iframe/"+e.id:e.path},Creator.getAppMenus=function(e){var t,r;return(t=Session.get("_app_menus")||Session.get("app_menus"))?(r=t.find((function(t){return t.id===e})))?r.children:void 0:[]},Creator.loadAppsMenus=function(){var e,t,r;return e={},(t=Steedos.isMobile())&&(e.mobile=t),r={type:"get",data:e,success:function(e){return Session.set("app_menus",e)}},null!=Steedos?Steedos.authRequest("/service/api/apps/menus",r):void 0},Creator.creatorAppsSelector=function(e,t){var r,o,a;return r=void 0,a=void 0,_.each(e,(function(e,t){e._id||(e._id=t),e.is_creator||(e.visible=!1)})),a=_.sortBy(_.values(e),"sort"),o={},r={},_.each(a,(function(e){return"admin"===e._id?r=e:o[e._id]=e})),o.admin=r,t.length&&_.each(o,(function(e,r){t.indexOf(r)>-1?e.visible=e.is_creator:e.visible=!1})),o},Creator.visibleAppsSelector=function(e,t){var r;return null==t&&(t=!0),r=[],_.each(e,(function(e,o){(!1!==e.visible&&"admin"!==e._id||t&&"admin"===e._id)&&r.push(e)})),r},Creator.getVisibleApps=function(e){var t,r;return t=Creator._subApp.get(),r=Object.assign({},Creator.Apps,{apps:t}),Creator.visibleAppsSelector(r,e)},Creator.getVisibleAppsObjects=function(){var e,t,r;return e=Creator.getVisibleApps(),r=_.flatten(_.pluck(e,"objects")),t=(t=_.filter(Creator.Objects,(function(e){return!(r.indexOf(e.name)<0)}))).sort(Creator.sortingMethod.bind({key:"label"})),t=_.pluck(t,"name"),_.uniq(t)},Creator.getAppsObjects=function(){var e,t;return e=[],t=[],_.forEach(Creator.Apps,(function(r){return t=_.filter(r.objects,(function(e){return!e.hidden})),e=e.concat(t)})),_.uniq(e)},Creator.validateFilters=function(e,t){var r,o,a,n,i,s,c;if(a=_.map(e,(function(e){return!_.isEmpty(e)&&e})),a=_.compact(a),o="",n=a.length,t){if(t=t.replace(/\n/g,"").replace(/\s+/g," "),/[._\-!+]+/gi.test(t)&&(o="含有特殊字符。"),!o)if(s=t.match(/\d+/gi))for(s.forEach((function(e){if(e<1||e>n)return o="您的筛选条件引用了未定义的筛选器:"+e+"。"})),i=1;i<=n;)s.includes(""+i)||(o="有些筛选条件进行了定义,但未在高级筛选条件中被引用。"),i++;else o="有些筛选条件进行了定义,但未在高级筛选条件中被引用。";if(o||(c=t.match(/[a-zA-Z]+/gi))&&c.forEach((function(e){if(!/^(and|or)$/gi.test(e))return o="检查您的高级筛选条件中的拼写。"})),!o){try{Creator.eval(t.replace(/and/gi,"&&").replace(/or/gi,"||"))}catch(l){r=l,o="您的筛选器中含有特殊字符"}(/(AND)[^()]+(OR)/gi.test(t)||/(OR)[^()]+(AND)/gi.test(t))&&(o="您的筛选器必须在连续性的 AND 和 OR 表达式前后使用括号。")}}return!o||(console.log("error",o),Meteor.isClient&&toastr.error(o),!1)},Creator.formatFiltersToMongo=function(e,t){var r;if(null!=e?e.length:void 0)return e[0]instanceof Array||(e=_.map(e,(function(e){return[e.field,e.operation,e.value]}))),r=[],_.each(e,(function(e){var o,a,n,i,s;return o=e[0],a=e[1],s=Meteor.isClient?Creator.evaluateFormula(e[2]):Creator.evaluateFormula(e[2],null,t),(i={})[o]={},"="===a?i[o].$eq=s:"<>"===a?i[o].$ne=s:">"===a?i[o].$gt=s:">="===a?i[o].$gte=s:"<"===a?i[o].$lt=s:"<="===a?i[o].$lte=s:"startswith"===a?(n=new RegExp("^"+s,"i"),i[o].$regex=n):"contains"===a?(n=new RegExp(s,"i"),i[o].$regex=n):"notcontains"===a&&(n=new RegExp("^((?!"+s+").)*$","i"),i[o].$regex=n),r.push(i)})),r},Creator.isBetweenFilterOperation=function(e){var t;return"between"===e||!!(null!=(t=Creator.getBetweenTimeBuiltinValues(!0))?t[e]:void 0)},Creator.formatFiltersToDev=function(e,t,r){var o,a;if(e.length)return(null!=r?r.is_logic_or:void 0)&&(o=[],e.forEach((function(e){return o.push(e),o.push("or")})),o.pop(),e=o),a=SteedosFilters.formatFiltersToDev(e,Creator.USER_CONTEXT)},Creator.formatLogicFiltersToDev=function(e,t,r){var o;return o="["+(o=(o=t.replace(/\(\s+/gi,"(").replace(/\s+\)/gi,")").replace(/\(/g,"[").replace(/\)/g,"]").replace(/\s+/g,",").replace(/(and|or)/gi,"'$1'")).replace(/(\d)+/gi,(function(t){var o,a,n,i,s;return o=e[t-1],a=o.field,n=o.operation,s=Meteor.isClient?Creator.evaluateFormula(o.value):Creator.evaluateFormula(o.value,null,r),i=[],!0===_.isArray(s)?("="===n?_.each(s,(function(e){return i.push([a,n,e],"or")})):"<>"===n?_.each(s,(function(e){return i.push([a,n,e],"and")})):_.each(s,(function(e){return i.push([a,n,e],"or")})),"and"!==i[i.length-1]&&"or"!==i[i.length-1]||i.pop()):i=[a,n,s],JSON.stringify(i)})))+"]",Creator.eval(o)},Creator.getRelatedObjects=function(e,t,r){var o,a,n,i,s;return Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),n=[],(o=Creator.getObject(e))?(i=Creator.getObjectRelateds(o._collection_name),0===(null!=(n=_.pluck(i,"object_name"))?n.length:void 0)?n:(s=(a=Creator.getPermissions(e,t,r)).unrelated_objects,n=_.difference(n,s),_.filter(i,(function(e){var o,i,s,c;return c=e.object_name,i=n.indexOf(c)>-1,o=null!=(s=Creator.getPermissions(c,t,r))?s.allowRead:void 0,"cms_files"===c&&(o=o&&a.allowReadFiles),i&&o})))):n},Creator.getRelatedObjectNames=function(e,t,r){var o;return o=Creator.getRelatedObjects(e,t,r),_.pluck(o,"object_name")},Creator.getRelatedObjectListActions=function(e,t,r){var o;return o=Creator.getActions(e,t,r),o=_.filter(o,(function(e){return"standard_follow"!==e.name&&("standard_query"!==e.name&&("list"===e.on&&("function"==typeof e.visible?e.visible():e.visible)))}))},Creator.getActions=function(e,t,r){var o,a,n,i,s,c;if(Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),n=Creator.getObject(e))return i=Creator.getPermissions(e,t,r),a=i.disabled_actions,o=_.sortBy(_.values(n.actions),"sort"),_.has(n,"allow_customActions")&&(o=_.filter(o,(function(e){return _.include(n.allow_customActions,e.name)||_.include(_.keys(Creator.getObject("base").actions)||{},e.name)}))),_.has(n,"exclude_actions")&&(o=_.filter(o,(function(e){return!_.include(n.exclude_actions,e.name)}))),_.each(o,(function(e){if(Steedos.isMobile()&&["record","record_only"].indexOf(e.on)>-1&&"standard_edit"!==e.name)return"record_only"===e.on?e.on="record_only_more":e.on="record_more"})),Steedos.isMobile()&&["cms_files","cfs.files.filerecord"].indexOf(e)>-1&&(null!=(s=o.find((function(e){return"standard_edit"===e.name})))&&(s.on="record_more"),null!=(c=o.find((function(e){return"download"===e.name})))&&(c.on="record")),o=_.filter(o,(function(e){return _.indexOf(a,e.name)<0}))},Creator.getListViews=function(e,t,r){var o,a,n,i,s,c;if(Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),e&&(s=Creator.getObject(e)))return o=(null!=(c=Creator.getPermissions(e,t,r))?c.disabled_list_views:void 0)||[],i=[],a=Steedos.isMobile(),_.each(s.list_views,(function(e,t){return e.name=t})),n=_.sortBy(_.values(s.list_views),"sort_no"),_.each(n,(function(e){var t;if(!a||"calendar"!==e.type)return"default"===e.name||(t=_.indexOf(o,e.name)>-1||e._id&&_.indexOf(o,e._id)>-1)&&e.owner!==r?void 0:i.push(e)})),i},Creator.getFields=function(e,t,r){var o,a,n;return Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),o=Creator.getObjectFieldsName(e),n=null!=(a=Creator.getPermissions(e,t,r))?a.unreadable_fields:void 0,_.difference(o,n)},Creator.isloading=function(){return!Creator.bootstrapLoaded.get()},Creator.convertSpecialCharacter=function(e){return e.replace(/([\^\$\(\)\*\+\?\.\\\|\[\]\{\}])/g,"\\$1")},Creator.getDisabledFields=function(e){var t;return t=_.map(e,(function(e,t){return e.autoform&&e.autoform.disabled&&!e.autoform.omit&&t})),t=_.compact(t)},Creator.getHiddenFields=function(e){var t;return t=_.map(e,(function(e,t){return e.autoform&&"hidden"===e.autoform.type&&!e.autoform.omit&&t})),t=_.compact(t)},Creator.getFieldsWithNoGroup=function(e){var t;return t=_.map(e,(function(e,t){return(!e.autoform||!e.autoform.group||"-"===e.autoform.group)&&(!e.autoform||"hidden"!==e.autoform.type)&&t})),t=_.compact(t)},Creator.getSortedFieldGroupNames=function(e){var t;return t=_.map(e,(function(e){return e.autoform&&"-"!==e.autoform.group&&e.autoform.group})),t=_.compact(t),t=_.unique(t)},Creator.getFieldsForGroup=function(e,t){var r;return r=_.map(e,(function(e,r){return e.autoform&&e.autoform.group===t&&"hidden"!==e.autoform.type&&r})),r=_.compact(r)},Creator.getSystemBaseFields=function(){return["created","created_by","modified","modified_by"]},Creator.getFieldsWithoutSystemBase=function(e){return _.difference(e,Creator.getSystemBaseFields())},Creator.getFieldsWithoutOmit=function(e,t){return t=_.map(t,(function(t){var r,o;return(null==(o=(r=_.pick(e,t))[t].autoform)||!o.omit)&&t})),t=_.compact(t)},Creator.getFieldsInFirstLevel=function(e,t){return t=_.map(t,(function(t){return _.indexOf(e,t)>-1&&t})),t=_.compact(t)},Creator.getFieldsForReorder=function(e,t,r){var o,a,n,i,s,c,l,u;for(n=[],i=0,o=_.filter(t,(function(e){return!e.endsWith("_endLine")}));i-1&&(o=e[t].data_type),o):"text"},Meteor.isServer&&(Creator.getAllRelatedObjects=function(e){var t;return t=[],_.each(Creator.Objects,(function(r,o){return _.each(r.fields,(function(r,a){if("master_detail"===r.type&&r.reference_to&&r.reference_to===e)return t.push(o)}))})),Creator.getObject(e).enable_files&&t.push("cms_files"),t}),Meteor.isServer&&(Steedos.formatIndex=function(e){var t,r,o,a,n,i;return o={background:!0},(r=(null!=(a=Meteor.settings)&&null!=(n=a.datasources)&&null!=(i=n.default)?i.documentDB:void 0)||!1)&&e.length>0&&(t=e.join("."),o.name=t,t.length>52&&(o.name=t.substring(0,52))),o})},lib:{"apps.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Creator.appsByName={}},"object_recent.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};this.ObjectRecent={},ObjectRecent.insert=function(e,t,r){return Meteor.call("object_recent_viewed",e,t,Session.get("spaceId"),(function(){if(r&&_.isFunction(r))return r()}))}},"filters_transform.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r;this.FiltersTransform={},r=function(e){return["date","datetime","time","currency","number"].includes(e)?"between":["text","textarea","html"].includes(e)?"contains":"="},FiltersTransform.queryToFilters=function(e){var t,o,a,n;if(e)return n=e.query,a=e.object_name,o=Creator.getObject(a).fields,t=[],_.each(n,(function(e,a){var n,i;if(o[a]){if(i=Creator.getFieldDataType(o,a),["date","datetime","time","currency","number"].includes(i))return t.push({field:a,operation:r(i),start_value:e,value:[e,null]});if(!["text","textarea","html"].includes(i))return["boolean"].includes(i)?t.push({field:a,operation:"=",value:e}):t.push({field:a,operation:r(i),value:e});if(_.isString(e))return t.push({field:a,operation:r(i),value:e});if(_.isArray(e))return t.push({field:a,operation:"=",value:e})}else if(a=a.replace(/(_endLine)$/,""),i=Creator.getFieldDataType(o,a),o[a]&&["date","datetime","time","currency","number"].includes(i))return(n=_.find(t,(function(e){return e.field===a})))?(n.end_value=e,n.value[1]=e):t.push({field:a,operation:r(i),end_value:e,value:[null,e]})})),t}},"form_manager.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;this.FormManager={},SimpleSchema.messages({formValidate:"[value]"}),FormManager.getRelatedInitialValues=(o=this,function(e,t,r){var o,a,n,i,s;if(!_.isString(t))throw new Meteor.Error("main_record_id must be String");return o={},i="",Creator.getRelatedList(e,t).forEach((function(e){if(r===e.object_name)return i=e.related_field_name})),a="company_id",(s=Creator.getObject(r))&&i&&s.fields[i]&&s.fields[i].reference_to_field&&(a=a+","+s.fields[i].reference_to_field),(n=Creator.odata.get(e,t,a))&&i&&n[s.fields[i].reference_to_field]&&(t=n[s.fields[i].reference_to_field]),o={},i&&("objects"===e?o[i]=Creator.getObjectRecord().name:(s=Creator.getObject(r),_.isString(s.fields[i].reference_to)?s.fields[i].multiple?o[i]=[t]:o[i]=t:o[i]={o:e,ids:[t]})),!_.has(o,"company_id")&&(null!=n?n.company_id:void 0)&&(o.company_id=n.company_id),o=Object.assign({},o,FormManager.getInitialValues(r,o))}),FormManager.getInitialValues=function(e,t){var r,o,a;return o=null!=(r=Creator.getObject(e))&&null!=(a=r.form)?a.initialValues:void 0,_.isFunction(o)?o.apply({doc:t||{}}):{}},FormManager.validate=function(e,t){var r,o,a,n,i,s;if(a=null!=(o=Creator.getObject(e))&&null!=(n=o.form)?n.validate:void 0,_.isFunction(a))try{if(s=a.apply({},[null!=(i=AutoForm.getFormValues(t))?i.insertDoc:void 0]),_.isBoolean(s)&&!1===s)return!1;if(!_.isEmpty(s)&&_.isObject(s))return _.each(s,(function(e,r){return AutoForm.addStickyValidationError(t,r,"formValidate",e),toastr.error(e)})),!1}catch(c){return r=c,console.error(r),toastr.error(r.message),!1}return!0},FormManager.onSubmit=function(e,t){var r,o,a,n,i;return o=null!=(r=Creator.getObject(e))&&null!=(n=r.form)?n.onSubmit:void 0,!(_.isFunction(o)&&(a=o.apply({},[null!=(i=AutoForm.getFormValues(t))?i.insertDoc:void 0]),!_.isEmpty(a)&&_.isObject(a)))||(_.each(a,(function(e,r){return AutoForm.addStickyValidationError(t,r,"formValidate",e),toastr.error(e)})),!1)},r=function(e,t,r){var o,a,n;return o={userId:Meteor.userId(),spaceId:Session.get("spaceId"),object_name:e},_.has(r,"previousDoc")&&(o.previousDoc=r.previousDoc),t.endsWith("Delete")?(o.id=r._id,o.doc=Creator.odata.get(e,r._id),t.startsWith("error")&&(o.error=r.error)):t.startsWith("after")?(o.id=null!=(a=r.dbDoc)?a._id:void 0,o.doc=r.dbDoc):t.startsWith("before")?(t.endsWith("Insert")||(o.id=r._id),t.endsWith("Update")?o.doc=null!=(n=r.doc)?n.$set:void 0:o.doc=r.doc):t.startsWith("error")&&(o.id=r._id,o.doc=r.doc,o.error=r.error),o},FormManager.getPreviousDoc=function(e,t,r){var o,a,n,i,s;if(("update"===r||"delete"===r)&&(o="after",a="after"+r.charAt(0).toLocaleUpperCase()+_.rest(r.split("")).join(""),i=null!=(n=Creator.getObject(e))&&null!=(s=n.form)?s[a]:void 0,_.isFunction(i)))return Creator.odata.get(e,t)},FormManager.runHook=function(e,t,o,a){var n,i,s,c,l,u,d,p;if(l=""+o+t.charAt(0).toLocaleUpperCase()+_.rest(t.split("")).join(""),"view"===t||"edit"===t)return FormManager.runViewEditHook(e,l,a.schema,a.record,a.doc);if(s=a.formId,d=null!=(u=Creator.getObject(e))&&null!=(p=u.form)?p[l]:void 0,_.isFunction(d))try{if(n=r(e,l,a),c=d.apply(n),_.isBoolean(c)&&!1===c)return!1;if(s&&"before"===o&&!_.isEmpty(c)&&_.isObject(c))return _.each(c,(function(e,t){return AutoForm.addStickyValidationError(s,t,"formValidate",e),toastr.error(e)})),!1}catch(f){return i=f,console.error(i),toastr.error(i.message),!1}return!0},FormManager.runViewEditHook=function(e,t,r,o,a){var n,i,s,c,l,u,d;if(l=null!=(u=Creator.getObject(e))&&null!=(d=u.form)?d[t]:void 0,_.isFunction(l)&&(s=r.get(),c={id:(i=a||o.get())._id,userId:Meteor.userId(),spaceId:Session.get("spaceId"),object_name:e,doc:i,schema:s},!1!==(n=l.apply(c))))return r.set(s),o.set(i)}},"grid_export.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;this.ObjectGrid={},this.GridExport={},r={equals:"=",notEqual:"!=",contains:"contains",notContains:"notcontains",startsWith:"startswith",endsWith:"=",lessThan:"<",lessThanOrEqual:"<=",greaterThan:">",greaterThanOrEqual:">=",empty:"empty"},o=function(e){var t;return t=[],_.forEach(e,(function(e,o){var a;return"between"===e.type?"number"===e.filterType?t.push([o,"between",[e.numberFrom,e.numberTo]]):e.filter?t.push([o,e.type,e.filter]):t.push([o,"between",[e.dateFrom,e.dateTo]]):_.isEmpty(e.filter)?e.operator?(a=[],e.condition1&&a.push([o,r[e.condition1.type],e.condition1.filter]),a.push(e.operator.toLocaleLowerCase()),e.condition2&&a.push([o,r[e.condition2.type],e.condition2.filter]),t.push(a)):void 0:(a=[o,r[e.type],e.filter],t.push(a))})),t},ObjectGrid.getFilters=function(e,t,r,a,n){var i,s,c,l,u,d;return s=Steedos.Page.Listview.getDefaultName(e,t),l=window.gridRefs&&window.gridRefs[s]&&window.gridRefs[s].current?window.gridRefs[s].current:window.gridRef.current,u=[],i=Creator.getListViewFilters(e,t,r,a,n),d=o(l.api.getFilterModel()),c=_.compact([].concat(i).concat(d))},GridExport.excel=function(e,t,r,a,n,i,s){var c,l,u,d,p,f,m,g,h,v,b,w,S;return u=Steedos.Page.Listview.getDefaultName(e,t),f=window.gridRefs&&window.gridRefs[u]&&window.gridRefs[u].current?window.gridRefs[u].current:window.gridRef.current,v=[],_.each(f.props.columnDefs,(function(e){if(e&&e.field)return v.push(e.field)})),b=[],_.forEach(f.api.getSortModel(),(function(e){return b.push([e.colId,e.sort])})),l=Creator.getListViewFilters(e,t,r,a,n,s),S=o(f.api.getFilterModel()),p=_.compact([].concat(l).concat(S)),c=SteedosFilters.formatFiltersToODataQuery(p),d=r?i+"-"+Creator.getObject(a).label:Creator.getObject(e).label+"-"+(null!=(h=Creator.getListView(e,t))?h.label:void 0),g=[],_.map(b,(function(e){var t;return t="desc"===e[1]?e[0]+" desc":e[0],g.push(t)})),m=g.join(","),d=encodeURIComponent(d),w=r?"/api/record/export/"+a+"?$select="+v.toString()+"&filename="+d:"/api/record/export/"+e+"?$select="+v.toString()+"&filename="+d,b.length>0&&(w=w+"&$orderby="+m),c&&(w=w+"&$filter="+c),Meteor.isCordova?Steedos.cordovaDownload(encodeURI(Steedos.absoluteUrl(w)),d+".xlsx"):window.open(w)}}},client:{"listview.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n,i;n=function(e,t,r){var o,a,n;return o=null!=t?t.columns:void 0,r&&((null!=t?t.mobile_columns:void 0)?o=t.mobile_columns:(null!=(n=Creator.getObjectFirstListView(e))?n.mobile_columns:void 0)?o=n.mobile_columns:o&&(o=Creator.pickObjectMobileColumns(e,o))),o||(a=Creator.getObjectFirstListViewColumns(e,r))&&(o=a),o},o=function(e,t,r){var o,a,i,s,c,l;return s=(c=Creator.getObject(e)).NAME_FIELD_KEY,"organizations"===c.name&&(s="name"),o=[s],(i=Creator.getCollection("object_listviews").findOne(t))?o=n(e,i,r):c.list_views&&(l=c.list_views[t],o=n(e,l,r)),o=o.map((function(e){var t,r;return t=_.isObject(e)?e.field:e,(null!=(r=c.fields[t])?r.type:void 0)?t:void 0})),Creator.isCommonSpace(Session.get("spaceId"))&&o.indexOf("space")<0&&o.push("space"),"cms_files"===e&&o.push("parent"),o=_.compact(o),a=Creator.getObjectFieldsName(e),_.intersection(o,a)},i=function(e,t,r,o){var a;return r?(a=Creator.getObject(e).fields,o&&(t=t.filter((function(e){var t,o;return"master_detail"!==(null!=(o=a[e])?o.type:void 0)||(!!a[e].multiple||(a[e].reference_to?(t=a[e].reference_to,_.isFunction(t)&&(t=t())):t=a[e].optionsFunction({}).getProperty("value"),!!_.isArray(t)||t!==r))}))),t):t},r=function(e,t){var r,o;return o=Creator.getObject(e).fields,r=[],_.each(t,(function(e){var t;if(null!=(t=o[e])?t.depend_on:void 0)return r=_.union(o[e].depend_on)})),r},a=function(e,t,r){var o,a;return a=_.intersection(["owner","company_id","company_ids","locked"],_.keys(e.fields)),!r&&e.enable_tree&&(a.push("parent"),a.push("children")),(o=Creator.getObjectDefaultExtraColumns(e.name))&&(a=_.union(a,o)),a},Creator.unionSelectColumnsWithExtraAndDepandOn=function(e,t,o,n){var i,s;return i=t.name,s=a(t,o,n),e=_.union(e,s),e=_.union(e,r(i,e))},Creator.getListViewFilters=function(e,t,r,o,a,n){var i,s,c,l,u,d,p,f,m,g;if(!e)return null;if(c=Creator.getObject(e),r)l=Creator.getODataRelatedFilter(e,o,a,t,n);else{if(d=Session.get("filter_logic"),p=Session.get("filter_scope"),u=Session.get("filter_items"),s=c.fields,u&&u.length>0&&window.lodash.isArray(u[0]))return l=u,(g=Creator.getStandardQuery(e,Session.get("standard_query")))&&g.length&&(l=l?[l,"and",g]:g),(m=Session.get("grid_sidebar_filters"))&&m.length&&(l=l?[l,"and",m]:m),l||(l=null),l;i=[],_.forEach(u,(function(t){var r,o,a,n,c,l,u,d,p,f,m;if(void 0!==t.value)if(r=s[null!=t?t.field:void 0],o=Creator.getFieldDataType(s,null!=t?t.field:void 0),["text","textarea","html","code"].includes(o)){if(_.isString(t.value)&&(m=t.value.trim().split(" "),l=[],m.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),l.push([t.field,t.operation,e])})),l.length>0))return c=!1,["<>","notcontains"].includes(t.operation)&&(c=!1),i.push(Creator.formatFiltersToDev(l,e,{is_logic_or:c}))}else{if(!["lookup","master_detail"].includes(o))return i.push(t);if(a=null!=r?r.reference_to:void 0,_.isFunction(a)&&(a=a()),!_.isArray(a))return i.push(t);if((null!=(u=t.value)?u.ids:void 0)&&i.push({field:t.field+".ids",operation:t.operation,value:null!=(d=t.value)?d.ids:void 0}),null!=(p=t.value)?p.o:void 0)return n=Creator.getObject(null!=(f=t.value)?f.o:void 0),i.push({field:t.field+".o",operation:t.operation,value:n._collection_name})}})),i.length>0&&(f={filter_logic:d,filter_scope:p,filters:i}),l=Creator.getODataFilter(t,e,f),(g=Creator.getStandardQuery(e,Session.get("standard_query")))&&g.length&&(l=l?[l,"and",g]:g),r||(m=Session.get("grid_sidebar_filters"))&&m.length&&(l=l?[l,"and",m]:m)}return l||(l=null),l},Creator.getODataEndpointUrl=function(e,t,r,o){var a,n;return r?(a=Creator.formatObjectName(o),n=Creator.getListViewIsRecent(e,t)?"/api/v4/"+a+"/recent":"/api/v4/"+a):(a=Creator.formatObjectName(e),n=Creator.getListViewIsRecent(e,t)?"/api/v4/"+a+"/recent":"/api/v4/"+a),Steedos.absoluteUrl(n)},Creator.getListviewColumns=function(e,t,r,a,n,s){var c,l;return c=e.name,l=Tracker.nonreactive((function(){return o(c,a,s)})),n&&n.customRelatedListObject&&(n.columns&&(l=n.columns),s&&n.mobile_columns&&(l=n.mobile_columns),l&&(l=l.map((function(e){return _.isObject(e)?e.field:_.isString(e)?e:void 0})),l=_.uniq(_.compact(l)))),l=i(c,l,t,r)}},views:{"_helpers.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Creator.helpers={object_name:function(){return Session.get("object_name")},object:function(){return Creator.getObject(Session.get("object_name"))},object_listviews:function(){return Creator.getObject("object_listviews")},objectLabel:function(e){return Creator.getObject(e).label},getOperationLabel:function(e){switch(e){case"=":return t("creator_filter_operation_equal");case"<>":return t("creator_filter_operation_unequal");case"<":return t("creator_filter_operation_less_than");case">":return t("creator_filter_operation_greater_than");case"<=":return t("creator_filter_operation_less_or_equal");case">=":return t("creator_filter_operation_greater_or_equal");case"contains":return t("creator_filter_operation_contains");case"notcontains":return t("creator_filter_operation_does_not_contain");case"startswith":return t("creator_filter_operation_starts_with");case"between":return t("creator_filter_operation_between")}},isMobile:function(){return Steedos.isMobile()}}},"template.page_template.js":function e(){Template.__checkName("page_template"),Template.page_template=new Template("Template.page_template",(function(){var e=this;return HTML.Raw('
')}))},"page_template.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_template.onRendered((function(){var e,t;return t=this,e=Session.get("app_id"),this.containerList=[],this.autorun((function(){var r;if(r=Steedos.Page.App.render(t,Session.get("pageApiName"),e))return t.containerList.push(r)}))})),Template.page_template.onDestroyed((function(){return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_object.js":function e(){Template.__checkName("page_object"),Template.page_object=new Template("Template.page_object",(function(){var e=this;return HTML.Raw('
')}))},"page_object.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_object.onRendered((function(){var e;return e=this,Steedos.Page.Object.Template.onRendered.apply(this)})),Template.page_object.onDestroyed((function(){var e;return e=this,Steedos.Page.Object.Template.onDestroyed.apply(this)}))},"template.page_record_view.js":function e(){Template.__checkName("page_record_view"),Template.page_record_view=new Template("Template.page_record_view",(function(){var e=this;return HTML.Raw('
')}))},"page_record_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_record_view.onRendered((function(){var e,t,r;return r=this,e=Session.get("object_name"),t=Session.get("record_id"),this.containerList=[],this.pageName=null,this.autorun((function(){var o,a,n,i,s,c,l,u,d,p;if(d=!0,(l=r.data.regions()).objectName!==(null!=(i=this.lastRegions)?i.objectName:void 0)&&(d=!1),this.lastRegions=l,d&&r.pageName)try{if(SteedosUI.refs[r.pageName])return(p={objectName:e}).recordId=Tracker.nonreactive((function(){return Session.get("record_id")})),n=(null!=(s=SteedosUI.refs[r.pageName])&&null!=(c=s.__$schema)?c.data:void 0)||{},SteedosUI.refs[r.pageName].updateProps({data:window._.defaultsDeep(p,n)})}catch(f){a=f,console.error(r.pageName+": "+a)}if(!d&&r.pageName&&SteedosUI.refs[r.pageName])try{SteedosUI.refs[r.pageName].unmount()}catch(f){a=f,console.error(r.pageName+": "+a)}if(r.data.regions&&(l=Tracker.nonreactive(r.data.regions),this.lastRegions=l,l&&l.page&&l.page.schema&&(u=l.page.schema,_.isString(u)&&(u=JSON.parse(u)),r.pageName=u.name)),e=Tracker.nonreactive((function(){return Session.get("object_name")})),t=Tracker.nonreactive((function(){return Session.get("record_id")})),o=Steedos.Page.Record.render(r,e,t))return r.containerList.push(o)}))})),Template.page_record_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_list_view.js":function e(){Template.__checkName("page_list_view"),Template.page_list_view=new Template("Template.page_list_view",(function(){var e=this;return HTML.Raw('
')}))},"page_list_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_list_view.onRendered((function(){var e,t;return t=this,e=Session.get("object_name"),this.containerList=[],this.pageName=null,this.autorun((function(){var r,o,a,n;if(t.pageName)try{SteedosUI.refs[t.pageName].unmount()}catch(i){o=i,console.error(t.pageName+": "+o)}if(t.data.regions&&(a=t.data.regions())&&a.page&&a.page.schema&&(n=a.page.schema,_.isString(n)&&(n=JSON.parse(n)),t.pageName=n.name),r=Steedos.Page.Listview.render(t,e))return t.containerList.push(r)}))})),Template.page_list_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_related_list_view.js":function e(){Template.__checkName("page_related_list_view"),Template.page_related_list_view=new Template("Template.page_related_list_view",(function(){var e=this;return HTML.Raw('')}))},"page_related_list_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_related_list_view.onRendered((function(){var e,t,r;return r=this,e=Session.get("object_name"),t=Session.get("record_id"),this.containerList=[],this.pageName=null,this.autorun((function(){var o,a,n,i;if(r.pageName)try{SteedosUI.refs[r.pageName].unmount()}catch(s){a=s,console.error(r.pageName+": "+a)}if(r.data.regions&&(n=r.data.regions())&&n.page&&n.page.schema&&(i=n.page.schema,_.isString(i)&&(i=JSON.parse(i)),r.pageName=i.name),o=Steedos.Page.RelatedListview.render(r,e,t))return r.containerList.push(o)}))})),Template.page_related_list_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.app_home.js":function e(){Template.__checkName("creator_app_home"),Template.creator_app_home=new Template("Template.creator_app_home",(function(){var e=this;return""}))},"app_home.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r;r=function(e){var t,r,o,a,n;return(null!=(t=Creator.getApp(e))?t.isExternalUrl:void 0)?/^http(s?):\/\//.test(t.path)?t.blank?window.open(t.path):window.location.href=t.path:FlowRouter.go(t.path):(a=Creator.getAppMenus(e),(r=_.first(a))?"url"===(o=Object.assign({},r,{target:!1})).type&&o.is_use_iframe?FlowRouter.go(o.path):(n=Creator.getAppMenuUrl(o),FlowRouter.go(n)):FlowRouter.go("/app/"+e))},Template.creator_app_home.onRendered((function(){return this.autorun((function(){var e,t,o;if(o=Creator.bootstrapLoaded.get(),_.has(FlowRouter.current().params,"app_id")){if(e=Session.get("app_id"),o&&e)return r(e)}else if(t=Steedos.getFirstApp(),o&&t)return r(t.code||t.id)}))}))},"template.app_iframe.js":function e(){Template.__checkName("creator_app_iframe"),Template.creator_app_iframe=new Template("Template.creator_app_iframe",(function(){var e=this;return Blaze.If((function(){return Spacebars.call(e.lookup("subsReady"))}),(function(){return["\n\t\t",HTML.IFRAME({id:"app_iframe",src:function(){return Spacebars.mustache(e.lookup("url"))},style:"width: 100%; height: 100%;"}),"\n\t"]}))}))},"app_iframe.coffee":function module(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var share=__coffeescriptShare;Template.creator_app_iframe.helpers({subsReady:function(){return Steedos.subsBootstrap.ready()},url:function(){var e,t;return t=Session.get("app_id"),(e=Creator.getApp(t))&&!e.on_click&&e.url?Creator.getUrlWithToken(e.url,e):""}}),Template.creator_app_iframe.events,Template.creator_app_iframe.onCreated((function(){})),Template.creator_app_iframe.onRendered((function(){var app,app_id,e,evalFunString,iframe;if(Steedos.forbidNodeContextmenu(window,"#app_iframe"),app_id=Session.get("app_id"),app=Creator.getApp(app_id),iframe=$("#app_iframe"),app&&app.on_click){evalFunString="(function(){"+app.on_click+"})()";try{return eval(evalFunString)}catch(error){return e=error,console.error("catch some error when eval the on_click script for app link:"),console.error(e.message+"\r\n"+e.stack)}}})),Template.creator_app_iframe.onDestroyed((function(){}))},"template.page_iframe.js":function e(){Template.__checkName("page_iframe"),Template.page_iframe=new Template("Template.page_iframe",(function(){var e=this;return HTML.IFRAME({name:"pageIframe",src:function(){return Spacebars.mustache(e.lookup("url"))},style:function(){return Spacebars.mustache(e.lookup("style"))},class:function(){return Spacebars.mustache(e.lookup("className"))}})}))},"page_iframe.js":function e(){var t=function(e){const{data:t}=e;"nav.click"===t.type&&FlowRouter.current().params.tab_id==t.data.id&&$("[name='pageIframe']").attr("src",$("[name='pageIframe']").attr("src"))};Template.page_iframe.helpers({url:()=>{if(Template.instance().data.regions)return(regions=Template.instance().data.regions()).queryParams.url},className:()=>{if(Template.instance().data.regions)return(regions=Template.instance().data.regions()).queryParams.className||""},style:()=>Template.instance().data.regions&&(regions=Template.instance().data.regions()).queryParams.style||"width: 100%; height: 100%;"}),Template.page_iframe.onCreated((function(){window.addEventListener("message",t)})),Template.page_iframe.onDestroyed((function(){window.removeEventListener("message",t)})),Template.page_iframe.onRendered((function(){window.Steedos.setDocumentTitle({pageName:null,tabName:null})}))},"template.initiate_approval.js":function e(){Template.__checkName("initiate_approval"),Template.initiate_approval=new Template("Template.initiate_approval",(function(){var e=this;return HTML.DIV({class:"modal fade creator-modal",id:"initiate_approval"},"\n\t\t",HTML.DIV({class:"modal-dialog slds-modal slds-fade-in-open"},"\n\t\t\t",HTML.DIV({class:"slds-modal__container"},"\n\t\t\t\t",HTML.HEADER({class:"slds-modal__header"},"\n\t\t\t\t\t",HTML.DIV({"data-dismiss":"modal"},"\n\t\t\t\t\t\t",Blaze._TemplateWith((function(){return{className:Spacebars.call("slds-modal__close slds-button__icon"),iconSize:Spacebars.call("large"),inverse:Spacebars.call(!0),iconCategory:Spacebars.call("utility"),iconName:Spacebars.call("close"),title:Spacebars.call(Spacebars.dataMustache(e.lookup("_"),"close")),variant:Spacebars.call("icon")}}),(function(){return Spacebars.include(e.lookupTemplate("steedos_button"))})),"\n\t\t\t\t\t"),"\n\t\t\t\t\t",HTML.Raw('

\n\t\t\t\t\t\t选择流程发起审批\n\t\t\t\t\t

'),"\n\t\t\t\t"),"\n\n\t\t\t\t",HTML.DIV({class:"slds-modal__content slds-p-around_medium",style:"font-size: 17px;"},"\n\t\t\t\t\t",Blaze.Each((function(){return Spacebars.call(e.lookup("flows"))}),(function(){return["\n\t\t\t\t\t",HTML.DIV({class:"weui_cells_weui_cells_access"},"\n\t\t\t\t\t\t",HTML.A({class:"weui_cell","data-flow":function(){return Spacebars.mustache(e.lookup("flow_id"))}},"\n\t\t\t\t\t\t\t",HTML.I({class:"ion ion-ios-compose-outline"}),HTML.CharRef({html:" ",str:" "}),HTML.CharRef({html:" ",str:" "}),Blaze.View("lookup:flow_name",(function(){return Spacebars.mustache(e.lookup("flow_name"))})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t\t"]})),"\n\n\t\t\t\t"),"\n\n\t\t\t"),"\n\t\t"),"\n\t")}))},"initiate_approval.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.initiate_approval.helpers({flows:function(){return _.where(Creator.object_workflows,{object_name:this.object_name,can_add:!0})}}),Template.initiate_approval.events({"click .weui_cell":function(e,t){var r,o,a,n,i,s,c;o=e.currentTarget.dataset.flow,a=t.data.object_name,n=t.data.record_id,i=[{o:a,ids:[n]}],(s={}).methodOverride="POST",s["X-User-Id"]=Meteor.userId(),s["X-Auth-Token"]=Accounts._storedLoginToken(),c=Steedos.absoluteUrl()+"api/object/workflow/drafts?"+$.param(s),r={Instances:[{flow:o,applicant:Meteor.userId(),space:Session.get("spaceId"),record_ids:i}]},r=JSON.stringify(r),$(document.body).addClass("loading"),$.ajax({url:c,type:"POST",async:!0,data:r,dataType:"json",processData:!1,contentType:"application/json",success:function(e,r){var o;$(document.body).removeClass("loading"),e.errors?e.errors.forEach((function(e){toastr.error(e.errorMessage)})):(o=e.inserts[0],Steedos.openWindow(Steedos.absoluteUrl("/app/"+FlowRouter.current().params.app_id+"/instances/view/"+o._id+"?display="+FlowRouter.current().queryParams.display+"&side_object=instances&side_listview_id=draft")),Modal.hide(t),SteedosUI.reloadRecord(a,n),FlowRouter.reload())},error:function(e,t,r){$(document.body).removeClass("loading"),toastr.error(t)}})}})},"template.amis_action.js":function e(){Template.__checkName("amis_action"),Template.amis_action=new Template("Template.amis_action",(function(){var e=this;return HTML.LI({class:function(){return["steedos-amis-button steedos-button-",Spacebars.mustache(e.lookup("objectName")),"-",Spacebars.mustache(e.lookup("name"))," ",Spacebars.mustache(e.lookup("buttonClassName"))]}})}))},"amis_action.js":function e(){const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;(e=e||"")&&"#"===e[0]?e=t.pathname+t.search+e:e&&"?"===e[0]&&(e=t.pathname+e);const r=e.indexOf("?"),o=e.indexOf("#");let a=~r?e.substring(0,r):~o?e.substring(0,o):e,n=~r?e.substring(r,~o?o:void 0):"",i=~o?e.substring(o):t.hash;if(a){if("/"!=a[0]&&!/^https?\:\/\//.test(a)){let e;const r=t.pathname.split("/");let o;for(r.pop();o=/^\.\.?\//.exec(a);)"../"===o[0]&&r.pop(),a=a.substring(o[0].length);a=r.concat(a).join("/")}}else a=t.pathname;return a+n+i},r=()=>({theme:"antd",getModalContainer:e=>{let t=document.querySelector("#amisModalContainer");return t||((t=document.createElement("div")).className="amis-scope",t.style.height="0px",t.id="amisModalContainer",document.body.appendChild(t)),t},notify:(e,t)=>{var r,o;(null===(r=t.props)||void 0===r?void 0:r.schema.tpl)?SteedosUI.message[e](null===(o=t.props)||void 0===o?void 0:o.schema.tpl):"string"==typeof t?SteedosUI.message[e](t):console.warn("notify",e,t)},confirm:e=>new Promise((t,r)=>SteedosUI.Modal.confirm({title:e,onOk:()=>{t(!0)},okText:"确认",cancelText:"取消"})),jumpTo:(e,r)=>{if("goBack"===e)return window.history.back();e=t(e),r&&"url"===r.actionType?!1===r.blank?FlowRouter.go(e):window.open(e):r&&e&&r.target?window.open(e,r.target):/^https?:\/\//.test(e)?window.location.replace(e):FlowRouter.go(e)}});Template.amis_action.helpers({objectName:()=>{var e=Template.instance().data;return e.button.object||e.button.object_name},name:()=>{var e;return Template.instance().data.button.name},buttonClassName:()=>{var e;return Template.instance().data.buttonClassName}}),Template.amis_action.onRendered(()=>{var e=Template.instance().data,t=e.button,o=e.buttonClassName,a=e.inMore,n=e.data,i=e.env,s=".steedos-button-"+(t.object||e.button.object_name)+"-"+t.name;const c=()=>{var e=Creator.USER_CONTEXT?Creator.USER_CONTEXT.user.language:null;return e?e="cn"===(e="zh"===(e="en"===(e=e.replace("_","-"))?"en-US":e)?"zh-CN":e)?"zh-CN":e:"zh-CN"};Promise.all([waitForThing(window,"amis")]).then(()=>{var e=amisRequire("amis/embed"),o=t.amis_schema?_.isString(t.amis_schema)?JSON.parse(t.amis_schema):t.amis_schema:{type:"service",bodyClassName:"p-0",body:[{type:"button",label:t.label}],regions:["body"]};const a=__meteor_runtime_config__.ROOT_URL,l=lodash.defaultsDeep({},{data:n},{data:{app_id:n.appId,object_name:n.objectName,record_id:n.recordId,formFactor:Steedos.isMobile()?"SMALL":"LARGE",context:{rootUrl:Meteor.isCordova?a.endsWith("/")?a.substr(0,a.length-1):a:"",tenantId:Creator.USER_CONTEXT.spaceId,userId:Creator.USER_CONTEXT.userId,authToken:Creator.USER_CONTEXT.user.authToken,user:Creator.USER_CONTEXT.user},global:{userId:Creator.USER_CONTEXT.userId,spaceId:Creator.USER_CONTEXT.spaceId,user:Creator.USER_CONTEXT.user,now:new Date},scopeId:o.name||o.id,$scopeId:o.name||o.id}});return o=lodash.defaultsDeep(l,o),e.embed(s,o,{locale:c()},Object.assign(r(),i))})})}},layout:{"template.layout.js":function e(){Template.__checkName("creatorLayout"),Template.creatorLayout=new Template("Template.creatorLayout",(function(){var e=this;return Blaze.If((function(){return Spacebars.call(e.lookup("isloading"))}),(function(){return"\n\t"}),(function(){return["\n\t\t",HTML.DIV({class:"steedos skin-blue-light creator h-full flex flex-col relative overflow-hidden"},"\n\t\t\t\n\n\t\t\t",HTML.HEADER({id:"header",class:"steedos-global-header-root flex-none"}),"\n\n\t\t\t\t\n\t\t\t",HTML.DIV({id:"main",class:function(){return["creator-content-wrapper ",Blaze.If((function(){return Spacebars.call(e.lookup("split"))}),(function(){return"split"}))]}},"\n\n\n\n\t\t\t\t",HTML.Comment(' {{#if split}}\n\t\t\t\t\t
\n\t\t\t\t\t\t{{> Template.dynamic template="creatorSidebar"}}\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{{> Template.dynamic template=main}}\n\t\t\t\t\t
\n\t\t\t\t{{else}} '),"\n\t\t\t\t\t",Blaze._TemplateWith((function(){return{template:Spacebars.call(e.lookup("main"))}}),(function(){return Spacebars.include((function(){return Spacebars.call(Template.__dynamic)}))})),"\n\t\t\t\t",HTML.Comment(" {{/if}} "),"\n\t\t\t"),"\n\t\t\t",HTML.FOOTER({id:"footer",class:"steedos-global-footer-root flex-none"}),"\n\t\t"),"\n",HTML.Comment(' \n\t\t
\n\t\t\t{{> status}}\n\t\t
'),"\n\t\t"]}))}))},"layout.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;Template.creatorLayout.helpers(Creator.helpers),Template.creatorLayout.helpers({isloading:function(){return Creator.isloading()},collection:function(){return Session.get("action_collection")},fields:function(){return Session.get("action_fields")},collectionName:function(){return Session.get("action_collection_name")},doc:function(){return Session.get("action_record_id")},saveAndInsert:function(){var e,t,r,o;return!!(e=Session.get("action_save_and_insert"))&&(r=(t=Session.get("action_collection")).replace(/Creator.Collections./,""),null!=(o=Creator.getPermissions(r))?o.allowCreate:void 0)},split:function(){var e,t,r;return!(!(e=Creator.getApp())||"admin"!==e._id)&&(r=/\/app\/\w+\/search\//,t=Session.get("router-path"),!r.test(t))},object_name:function(){return Session.get("object_name")},recordId:function(){return Session.get("recordId")},title:function(){return"编辑"},triggerLabel:function(){return"编辑"},onAddFinish:function(){return function(e){var t,r,o,a,n;return a=e[0],n="/app/"+(t=Session.get("app_id"))+"/"+(r=Session.get("object_name"))+"/view/"+(o=a._id),FlowRouter.go(n),!0}},onEditFinish:function(){return function(){return setTimeout((function(){return FlowRouter.reload()}),1),!0}}}),Template.creatorLayout.onRendered((function(){var e;return e=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),this.autorun((function(){return Steedos.Page.Header.render(Session.get("app_id"),e)})),this.autorun((function(){return Steedos.Page.Footer.render(Session.get("app_id"),e)})),this.autorun((function(){var e,t;if(t=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),window.SteedosUI&&(e=SteedosUI.refs.globalHeader))return Meteor.setTimeout((function(){var t;try{return e.updateProps({location:FlowRouter.current()},(function(){return console.log("amisScope.updateProps callback.......")}))}catch(r){t=r}}),100)})),this.autorun((function(){var e,t;if(t=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),window.SteedosUI&&(e=SteedosUI.refs.globalFooter))return Meteor.setTimeout((function(){var t;try{return e.updateProps({location:FlowRouter.current()},(function(){return console.log("amisScope.updateProps callback.......")}))}catch(r){t=r}}),100)}))})),r=function(){var e;return"calendar"===(null!=(e=Creator.getListView(Session.get("object_name",Session.get("list_view_id"))))?e.type:void 0)},AutoForm.hooks({creatorAddForm:{onSuccess:function(e,t){var o,a,n,i;if($("#afModal").modal("hide"),"/app/:app_id/:object_name/calendar/"!==FlowRouter._current.route.path&&!r())return"post"===t.type?(i="/app/"+(o=Session.get("app_id"))+"/"+(a=t.object_name)+"/view/"+(n=t._id),FlowRouter.go(i)):void 0}}},!1),AutoForm.hooks({creatorEditForm:{onSuccess:function(e,t){var o,a,n,i,s,c;if($("#afModal").modal("hide"),!r())return"post"===t.type&&(c="/app/"+(o=Session.get("app_id"))+"/"+(a=t.object_name)+"/view/"+(s=t._id),FlowRouter.go(c)),this.docId&&t.object_name?(i=Creator.getObjectUrl(t.object_name,this.docId),n=Creator.getObjectRecordName(this.updateDoc.$set,t.object_name),Creator.updateTempNavLabel(t.object_name,i,n)):void 0}}},!1),AutoForm.hooks({creatorCellEditForm:{onSuccess:function(e,t){var r,o;if($("#afModal").modal("hide"),this.docId&&t.object_name)return o=Creator.getObjectUrl(t.object_name,this.docId),r=Creator.getObjectRecordName(this.updateDoc.$set,t.object_name),Creator.updateTempNavLabel(t.object_name,o,r)}}},!1),o=function(e,t){return FlowRouter.current().route.path.endsWith("/:record_id")?FlowRouter.reload():window.refreshGrid()},AutoForm.hooks({creatorAddRelatedForm:{onSuccess:o}},!1)},"template.loading.js":function e(){Template.__checkName("creatorLoading"),Template.creatorLoading=new Template("Template.creatorLoading",(function(){var e=this;return HTML.Raw('
\n
\n Loading\n
\n
\n
\n
')}))},"template.empty_layout.js":function e(){Template.__checkName("empty_layout"),Template.empty_layout=new Template("Template.empty_layout",(function(){var e=this;return Blaze._TemplateWith((function(){return{template:Spacebars.call(e.lookup("main"))}}),(function(){return Spacebars.include((function(){return Spacebars.call(Template.__dynamic)}))}))}))}},mobile:{"template.admin.js":function e(){Template.__checkName("adminMenu"),Template.adminMenu=new Template("Template.adminMenu",(function(){var e=this;return HTML.DIV({class:"admin-menu mobile-template-container",id:"admin_menu"},"\n\n ",HTML.DIV({class:"admin-menu-content mobile-template-content"},"\n\t\t\t",HTML.DIV({class:"weui-panel weui-panel_access user-info"},"\n\t\t\t\t",HTML.A({class:"weui-media-box weui-media-box_appmsg"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box__hd",style:function(){return["background: url(",Spacebars.mustache(e.lookup("avatarURL")),")"]}},"\n\t\t\t\t\t\t",HTML.Raw('\x3c!-- --\x3e'),"\n\t\t\t\t\t"),"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box__bd"},"\n\t\t\t\t\t\t",HTML.H4({class:"weui-media-box__title"},Blaze.View("lookup:name",(function(){return Spacebars.mustache(e.lookup("name"))}))),"\n\t\t\t\t\t\t",HTML.P({class:"weui-media-box__desc"},"\n\t\t\t\t\t\t\t",Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Company")})),":",Blaze.View("lookup:spaceName",(function(){return Spacebars.mustache(e.lookup("spaceName"))})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n\n\t\t\t",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access btn-switch-space"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Switch Company")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",HTML.SPAN({class:"space-name"},Blaze.View("lookup:spaceName",(function(){return Spacebars.mustache(e.lookup("spaceName"))}))),"\n\t\t\t\t\t\t\t\t",HTML.Raw(''),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\n\n\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access btn-change-password"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Change Password")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",HTML.Raw(''),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t"),"\n\t\t\t"),"\n\n ",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access log-out steedos-logout"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Logout")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n "),"\n ")}))},"admin.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.adminMenu.helpers({avatarURL:function(e,t,r,o){var a,n;return n=Meteor.userId(),(e=null!=(a=Creator.getCollection("users").findOne({_id:n}))?a.avatar:void 0)?Steedos.absoluteUrl("avatar/"+Meteor.userId()+"?avatar="+e):Creator.getRelativeUrl("/images/default-avatar.png")},name:function(){var e;return null!=(e=Creator.getCollection("users").findOne())?e.name:void 0},logoutUrL:function(){return Creator.getRelativeUrl("/accounts/a/#/logout")},spaceName:function(){var e;return Session.get("spaceId")&&(e=db.spaces.findOne(Session.get("spaceId")))?e.name:t("none_space_selected_title")}}),Template.adminMenu.events({"click .steedos-logout":function(){return Steedos.logout()},"click .admin-menu-back":function(e,t){var r;return r=urlQuery[urlQuery.length-2],urlQuery.pop(),t.$("#admin_menu").animateCss("fadeOutRight",(function(){return Blaze.remove(t.view),r?FlowRouter.go(r):FlowRouter.go("/app")}))},"click .btn-switch-space":function(e,t){return FlowRouter.go("/user_settings/switchspace")},"click .btn-change-password":function(e,t){return Modal.show("reset_password_modal")},"click .btn-change-avatar":function(e,t){return t.$("#mobile-avator-upload").click()},"change #mobile-avator-upload":function(e,r){var o;if(o=e.target.files[0])return $("body").addClass("loading"),db.avatars.insert(o,(function(e,r){return e?(console.error(e),toastr.error(t(e.reason)),$(document.body).removeClass("loading")):setTimeout((function(){return Meteor.call("updateUserAvatar",r._id,(function(e,r){return(null!=r?r.error:void 0)?($(document.body).removeClass("loading"),toastr.error(t(r.message))):$(document.body).removeClass("loading")}))}),3e3)}))}})},"template.switch_space.js":function e(){Template.__checkName("switchSpace"),Template.switchSpace=new Template("Template.switchSpace",(function(){var e=this;return HTML.DIV({class:"switch-space mobile-template-container",id:"switch_space"},"\n\t\t\n\t\t",HTML.DIV({class:"switch-space-content mobile-template-content"},"\n\t\t\t",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",Blaze.Each((function(){return Spacebars.call(e.lookup("spaces"))}),(function(){return["\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access switchSpace"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:name",(function(){return Spacebars.mustache(e.lookup("name"))}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",Blaze.If((function(){return Spacebars.dataMustache(e.lookup("current_space"),e.lookup("_id"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",HTML.SPAN({class:"weui-icon-success-no-circle"}),"\n\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n\t\t"),"\n\t")}))},"switch_space.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.switchSpace.helpers({spaces:function(){return db.spaces.find()},current_space:function(e){return e===Session.get("spaceId")}}),Template.switchSpace.events({"click .switchSpace":function(e,t){return Steedos.setSpaceId(this._id),FlowRouter.go("/app")},"click .switch-space-back":function(e,t){var r;return r=urlQuery[urlQuery.length-2],urlQuery.pop(),t.$("#switch_space").animateCss("fadeOutRight",(function(){return Blaze.remove(t.view),r?FlowRouter.go(r):FlowRouter.go("/app")}))}})}},"core.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},o;Creator.Pages={},o=["owner","company_id","company_ids","locked"],Steedos.addPage=function(e,t){if(e)return Creator.Pages[e]=t},Creator.getLayout=function(e){return e||(e=Session.get("app_id")),"steedos"===e?"steedosLayout":"creatorLayout"},Creator.createObject=function(e,t){var r,o;return o=Creator.getObject(e),r="Creator.Collections."+e,Session.set("action_collection",r),Session.set("action_save_and_insert",!0),Session.set("action_collection_name",o.label),Session.set("action_object_name",e),Session.set("action_fields",void 0),Session.set("cmDoc",t),Meteor.defer((function(){return $(".creator-add").click()}))},Meteor.isClient&&(Creator.TabularSelectedIds={},Meteor.autorun((function(){var e,t;if(e=Session.get("list_view_id"),t=Session.get("object_name"))return Creator.TabularSelectedIds[t]=[]})),Creator.remainCheckboxState=function(e){var t,r,o,a,n,i,s;if((t=e.find(".select-all")).length&&(a=(o=null!=(n=t[0])?n.dataset:void 0).objectName,i=Creator.TabularSelectedIds[a]))return(r=e.find(".select-one")).each((function(e,t){var r;return r=i.indexOf(t.dataset.id)>-1,$(t).prop("checked",r)})),(s=i.length)>0&&r.length!==s?t.prop("indeterminate",!0):(t.prop("indeterminate",!1),0===s?t.prop("checked",!1):s===r.length?t.prop("checked",!0):void 0)},Creator.isListViewFilterEditable=function(e){return!e.shared||e.shared&&e.owner===Steedos.userId()},Creator.getODataFilter=function(e,t,r){var o,a,n,i,s,c,l,u,d,p,f,m,g;if(g=Meteor.userId(),m=Session.get("spaceId"),a=Creator.Collections.object_listviews.findOne(e))(l=Creator.isListViewFilterEditable(a))||((o={}).filter_scope=a.filter_scope,o.filters=a.filters);else if(o={},m&&g){if(!(u=Creator.getListView(t,e)))return["_id","=",-1];o.filter_scope=u.filter_scope,o.filters=u.filters}if(Creator.isCloudAdminSpace(m)&&_.include(["users","space_users","spaces"],t)&&delete o.filters,o&&(r?(o.filter_scope&&(r.filter_scope=o.filter_scope),_.isFunction(r.filters)||(null!=(d=r.filters)?d.length:void 0)?(_.isFunction(o.filters)||(null!=(p=o.filters)?p.length:void 0))&&(r.filters=[[r.filters,"and",o.filters]]):r.filters=o.filters):r=o),r||(r={}),n=r.filter_logic,i=r.filter_scope,s=r.filters,f=[],_.isFunction(s)&&(s=s()),a?n?(c=Creator.formatLogicFiltersToDev(s,n),f.length?f.push("and",c):f.push(c)):s&&s.length>0&&(f.length>0&&f.push("and"),(s=Creator.formatFiltersToDev(s,t))&&s.length>0&&(s=[s]),_.each(s,(function(e){return f.push(e)}))):m&&g&&("users"!==t||Creator.isCloudAdminSpace(m)||f.push(["_id","=",g]),s&&(s=Creator.formatFiltersToDev(s,t))&&s.length>0&&(s=[s],f.length>0&&f.push("and"),_.each(s,(function(e){if("spaces"!==t||e.length>0&&"_id"!==e[0])return f.push(e)})))),"mine"===i&&(f.length>0&&f.push("and"),f.push(["owner","=",g])),0!==f.length)return f},Creator.getODataRelatedFilter=function(e,t,r,o,a){var n,i,s,c,l,u,d,p,f,m,g,h,v,b,w,S,C;if(r&&(S=Steedos.spaceId(),C=Meteor.userId(),v=a?[a]:Creator.getRelatedList(e,r),h="",u="",w=[],n=function(e){return w.length>0&&w.push("and"),w.push(e)},_.each(v,(function(e){if(e.object_name===t)return e.filtersFunction?u=e.filtersFunction:h=e.related_field_name})),h||u)){if(h=h.replace(/\./g,"/"),o&&(i=Creator.getListView(t,o))){if(s=i.filter_logic,c=i.filter_scope,l=i.filters,u)return l=u(Creator.odata.get(e,r));s?(d=Creator.formatLogicFiltersToDev(l,s),n(d)):l&&l.length>0&&(l=_.map(l,(function(e){return _.isObject(e)&&!_.isArray(e)?Meteor.isClient&&_.isString(null!=e?e._value:void 0)?[e.field,e.operation,Creator.eval("("+e._value+")")()]:[e.field,e.operation,e.value]:e})),(l=Creator.formatFiltersToDev(l,t))&&l.length>0&&(l=[l]),_.each(l,(function(e){return n(e)})))}if("cfs.files.filerecord"===t&&n(["metadata/space","=",S]),m=Creator.getObject(t),p=t===e&&(null!=m?m.enable_tree:void 0),"cms_files"===t?(n(["parent/o","=",e]),n(["parent/ids","=",r])):"objects"===e?n([h,"=",r]):p||((b=null!=m?m.fields:void 0)&&(g=b[h]),g&&g.reference_to_field&&(f=Creator.odata.get(e,r,g.reference_to_field),"permission_fields"===t&&"object_fields"===e&&n(["object_name","=",f.object]),f&&f[g.reference_to_field]&&(r=f[g.reference_to_field])),!g||"master_detail"!==g.type&&"lookup"!==g.type?g&&"grid"===g.type?(n([h+".o","=",e]),n([h+".ids","=",r])):n([h,"=",r]):_.isFunction(g.reference_to)?_.isArray(g.reference_to())?n([h+".ids","=",r]):n([h,"=",r]):_.isArray(g.reference_to)?n([h+".ids","=",r]):n([h,"=",r])),"mine"===c&&n(["owner","=",C]),0!==w.length)return w}},Creator.getJsReportUrlQuery=function(){var e,t,r;return r="?space_id="+Steedos.getSpaceId(),(t=Tracker.nonreactive((function(){return Session.get("filter_items")})))&&(r+="&user_filters="+(e=encodeURI(JSON.stringify(t)))),r},Creator.getJsReportViewUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/web/viewer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.getJsReportExcelUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/api/report_db/"+e+"/excel"),t+=Creator.getJsReportUrlQuery()},Creator.getJsReportPdfUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/api/report_db/"+e+"/pdf"),t+=Creator.getJsReportUrlQuery()},Creator.getStimulsoftReportViewUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/stimulsoft/web/viewer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.getStimulsoftReportDesignerUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/stimulsoft/web/designer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.objectOdataSelectFields=function(e){var t,r;return t=e.fields,r=(r=_.keys(t)).filter((function(e){return e.indexOf(".")<0})),e&&["default","meteor"].indexOf(e.database_name||"default")>-1&&(r=_.union(r.concat(o))),r.join(",")},Creator.objectOdataExpandFields=function(e,t){var r,o;return r=[],o=e.fields,t||(t=_.keys(o)),_.each(t,(function(e){var t,a,n;if(("master_detail"===(null!=(a=o[e])?a.type:void 0)||"lookup"===(null!=(n=o[e])?n.type:void 0))&&(o[e].reference_to?(t=o[e].reference_to,_.isFunction(t)&&(t=t())):_.isFunction(o[e].optionsFunction)&&(t=o[e].optionsFunction({}).getProperty("value")),_.isArray(t)||(t=[t]),t=_.map(t,(function(e){var t,r;return t=(null!=(r=Creator.getObject(e))?r.NAME_FIELD_KEY:void 0)||"name"})),t=_.compact(t),(t=(t=_.uniq(t)).join(","))&&e.indexOf("$")<0))return e.indexOf(".")<0?r.push(e):r.push(e.replace(".","/"))})),r.join(",")},Creator.relatedObjectFileUploadHandler=function(e,r){var o,a,n,i,s,c,l,u,d,p;for(u=null!=(o=e.currentTarget.dataset)?o.parent:void 0,s=e.currentTarget.files,c=0,d=Session.get("record_id"),l=Session.get("object_name"),p=Session.get("spaceId");c0&&(t=!0),!t})),t},Creator.pushCurrentPathToUrlQuery=function(){var e;if((e=FlowRouter.current().path)!==urlQuery[urlQuery.length-1])return urlQuery.push(e)},Creator.getStandardQuery=function(e,t){var r,o,a,n,i,s;if(o=Creator.getObject(e).fields,t&&t.query&&_.size(t.query)&&t.object_name===e)return a=t.object_name,i=t.query,s=[],t.is_mini?_.each(i,(function(e,t){var r,n,i,c;if(o[t])if(r=Creator.getFieldDataType(o,t),["currency","number"].includes(r)){if(!_.isString(e))return s.push([t,"=",e]);if(c=e.trim().split(" "),n=[],c.forEach((function(e){var r,o;try{if(o=Number(e),_.isNumber(o)&&!_.isNaN(o))return n.push([t,"=",o])}catch(a){return r=a,console.error(r)}})),n.length>0)return s.push(Creator.formatFiltersToDev(n,a,{is_logic_or:!1}))}else if(["text","textarea","html","select","autonumber","url","email"].includes(r))if(_.isString(e)){if(c=e.trim().split(" "),i=[],c.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),"select"===r&&o[t].multiple?i.push([t,"=",e]):i.push([t,"contains",e])})),i.length>0)return s.push(Creator.formatFiltersToDev(i,a,{is_logic_or:!1}))}else if(_.isArray(e))return s.push([t,"=",e])})):_.each(i,(function(e,t){var r,n,i,c,l,u;if(o[t]){if(n=Creator.getFieldDataType(o,t),["date","datetime","time","currency","number"].includes(n))return s.push([t,">=",e]);if(["text","textarea","html"].includes(n)){if(_.isString(e)){if(u=e.trim().split(" "),l=[],u.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),l.push([t,"contains",e])})),l.length>0)return s.push(Creator.formatFiltersToDev(l,a,{is_logic_or:!1}))}else if(_.isArray(e))return s.push([t,"=",e])}else{if(["boolean"].includes(n))return s.push([t,"=",JSON.parse(e)]);if(!["lookup","master_detail"].includes(n))return s.push([t,"=",e]);if(i=null!=(r=o[t])?r.reference_to:void 0,_.isFunction(i)&&(i=i()),!_.isArray(i))return s.push([t,"=",e]);if((null!=e?e.ids:void 0)&&s.push({field:t+".ids",operation:"=",value:null!=e?e.ids:void 0}),null!=e?e.o:void 0)return c=Creator.getObject(null!=e?e.o:void 0),s.push({field:t+".o",operation:"=",value:c._collection_name})}}else if(t=t.replace(/(_endLine)$/,""),n=Creator.getFieldDataType(o,t),o[t]&&["date","datetime","time","currency","number"].includes(n))return s.push([t,"<=",e])})),n={is_logic_or:r=!!t.is_mini},Creator.formatFiltersToDev(s,a,n);delete Session.keys.standard_query},Creator.getSafeObjectUrl=function(e,t,r){var o;return _.isString(e)?(o="users"===e?Creator.getObject("space_users"):Creator.getObject(e)).permissions.get().allowRead?Creator.getObjectUrl(e,t,r):void 0:""},Creator.formatFileSize=function(e){var t,r;return r="KB",(t=e/1024)>1024&&(t/=1024,r="MB"),t>1024&&(t/=1024,r="GB"),t.toFixed(2)+r},Creator.getTableCellData=function(e){var r,o,a,n,i,s,c,l,u,d,p,f,m,g,h,v,b,w,S,C,y,j,T,R;if(d=[],R=e.val,g=e.object_name,y=(j=Creator.getObject(g)).NAME_FIELD_KEY,"organizations"===g&&(y="name"),o=e.field){if(a=o.type,"formula"===o.type)a=o.data_type;else if("select"===o.type&&o.data_type&&"text"!==o.data_type)a=o.data_type;else if("summary"===o.type)if("count"===o.summary_type)a="number";else{if(!(C=Creator.getObject(o.summary_object)))throw new Meteor.Error(500,"The summary_object '"+o.summary_object+"' is not found for the field '"+o.name+"'");if(!(S=C.fields[o.summary_field]))throw new Meteor.Error(500,"The summary_field '"+o.summary_field+"' is not found for the field '"+o.name+"'");"formula"!==(a=S.type)&&"summary"!==a||(a=S.data_type),_.isNumber(o.scale)||(r=function(e){var t,o;return _.isNumber(e.scale)?e.scale:"summary"===e.type&&(o=Creator.getObject(e.summary_object))?(t=o.fields[e.summary_field])?r(t):null:void 0},o.scale=r(S))}return v=null!=(h=e.field)?h.reference_to:void 0,_.isFunction(v)&&(v=v()),"grid"===a?d.push({isTable:!0}):"location"===a?d.push({value:(null!=R?R.address:void 0)||"",id:e._id}):"lookup"!==a&&"master_detail"!==a||_.isEmpty(R)?"image"===a?"string"==typeof R?d.push({value:R,id:e._id,isImage:!0,baseUrl:Creator.getRelativeUrl("/api/files/images")}):d.push({value:R,id:e._id,isImages:!0,baseUrl:Creator.getRelativeUrl("/api/files/images")}):"avatar"===a?"string"==typeof R?d.push({value:R,id:e._id,isImage:!0,baseUrl:Creator.getRelativeUrl("/api/files/avatars")}):d.push({value:R,id:e._id,isImages:!0,baseUrl:Creator.getRelativeUrl("/api/files/avatars")}):"code"===a?(R=R?"...":"",d.push({value:R,id:e._id})):"password"===a?(R=R?"******":"",d.push({value:R,id:e._id})):"url"===a?((null!=(f=R)?f.startsWith("http"):void 0)||(f=Steedos.absoluteUrl(encodeURI(f))),d.push({value:R,href:f,id:e._id,isUrl:!0})):"email"===a?d.push({value:R,href:f,id:e._id,isEmail:!0}):"boolean"===a||"toggle"===a?(R=e.val?t("YES"):t("NO"),d.push({value:R,checked:e.val,id:e._id,isBoolean:!0})):"select"===a?(s=o.allOptions||o.options,u=e.doc||{},c=e.record_val,_.isFunction(o.options)&&(s=o.options(c||u)),_.isFunction(o.optionsFunction)&&(s=o.optionsFunction(c||u)),w=e.val,_.isArray(w)||(w=[w]),m=[],_.each(s,(function(e){if(_.indexOf(w,e.value)>-1)return m.push({label:e.label,value:e.value})})),R=(R=m.map((function(e){return e.label}))).join(","),d.push({value:R,items:m,id:e._id,isSelects:!0})):(R&&["datetime","date","time"].indexOf(a)>=0?"odata"===e.agreement?"datetime"===a?"string"==typeof e.val&&/\d+Z$/.test(e.val)?R=moment(e.val).format("YYYY-MM-DD H:mm"):(T=moment().utcOffset()/60,R=moment(e.val).add(T,"hours").format("YYYY-MM-DD H:mm")):"date"===a&&(R="string"==typeof e.val&&/\d+Z$/.test(e.val)?moment.utc(e.val).format("YYYY-MM-DD"):moment(e.val).format("YYYY-MM-DD")):"datetime"===a?R=moment(e.val).format("YYYY-MM-DD H:mm"):"date"===a?R=moment.utc(e.val).format("YYYY-MM-DD"):"time"===a&&(R=moment.utc(e.val).format("HH:mm")):null===e.val?R="":"lookup"===a?_.isFunction(o.optionsFunction)&&(u=e.doc||{},(l=R)&&(_.isArray(l)||(l=[l]),(b=_.filter(o.optionsFunction(u),(function(e){return l.indexOf(e.value)>-1})))&&(R=b.getProperty("label")))):"filesize"===a?R=Creator.formatFileSize(R):["number","currency","percent"].indexOf(a)>-1&&_.isNumber(R)?(p=0,p=_.isNumber(o.scale)?o.scale:"currency"===a?2:0,"percent"===a&&(R*=100),R=Steedos.numberToString(R,p),"percent"===a&&(R+="%")):"markdown"===a?_.isEmpty(R)||(R=Spacebars.SafeString(marked(R))):"html"===a?_.isEmpty(R)||(R=Spacebars.SafeString(R)):"textarea"===a&&R&&(R=(R=R.replace(/\n/g,"\n
")).replace(/ /g," ")),"record_details"!==e.parent_view&&e.field_name===y&&(f=Creator.getObjectUrl(e.object_name,e._id)),d.push({value:R,href:f,id:e._id,type:a})):_.isFunction(o.optionsFunction)&&"company"!==v?(u=e.doc||{},c=e.record_val,(l=R)&&(l=_.isArray(l)?l.map((function(e){return _.isObject(e)?e._id:e})):_.isObject(l)?[l._id]:[l],i=o.optionsFunction(c||u),(b=_.filter(i,(function(e){return l.indexOf(null!=e?e.value:void 0)>-1})))&&(R&&_.isArray(R)&&_.isArray(b)&&(b=Creator.getOrderlySetByIds(b,R,"value")),R=b.getProperty("label"))),v?"objects"===v?_.each(b,(function(t){var r,o,a;return a=t.label,(null!=(r=Creator.getObject(t.value))?r._id:void 0)?(o=Creator.getSafeObjectUrl(v,r._id),d.push({reference_to:v,rid:a,value:a,id:e._id,href:o})):d.push({value:R,id:e._id})})):(n=e.val,_.isArray(n)||(n=n?[n]:[]),_.each(n,(function(t){var r,o,a;return _.isString(t)?(b=_.filter(i,(function(e){return t===(null!=e?e.value:void 0)})),d.push({value:b.getProperty("label"),id:e._id})):(v=t["reference_to._o"]||v,o=t._id,a=t._NAME_FIELD_VALUE,r=Creator.getSafeObjectUrl(v,o),d.push({reference_to:v,rid:o,value:a,href:r,id:e._id}))}))):d.push({value:R,id:e._id})):(_.isArray(R)||(R=R?[R]:[]),_.each(R,(function(t){var r,o,a;if(t)return v=t["reference_to._o"]||v,o=t._id,a=t._NAME_FIELD_VALUE,_.isString(t)&&(o=t,a=t),r=Creator.getSafeObjectUrl(v,o),d.push({reference_to:v,rid:o,value:a,href:r,id:e._id})}))),d}},Creator.openSafeObjectUrl=function(e,t){var r;return Steedos.isMobile()||(r=Creator.getSafeObjectUrl(e,t,"-"))&&window.open(r,"_blank","width=800, height=600, left=50, top= 50, toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes"),"undefined"!=typeof event&&null!==event&&event.stopPropagation(),"undefined"!=typeof event&&null!==event&&event.preventDefault(),!1},Creator.getAppLabel=function(e){return e||(e=Creator.getApp()),e?e.label?t(e.label):t(e.name):""},Creator.measureWidth=_.memoize((function(e,t,r){var o,a,n,i;return(o=arguments.callee.canvas)||(o=document.createElement("canvas"),(n=document.createDocumentFragment()).appendChild(o),arguments.callee.canvas=o),(a=o.getContext("2d")).font=t,i=a.measureText(e).width,r&&i>r?r:i})),Creator.showPreviewButton=function(e){var t,r,o,a,n;return!!((null!=(n=null!=(t=Meteor.settings)&&null!=(r=t.public)?r.webservices:void 0)&&null!=(o=n.officeOnline)?o.url:void 0)&&Steedos.isOfficeFile(e)||(null!=n&&null!=(a=n.pdfOnline)?a.url:void 0)&&Steedos.isPdfFile(e))},Creator.officeOnlinePreview=function(e,t){var r,o,a,n,i,s,c,l,u,d,p,f,m,_,g,h;return a=null!=(s=Meteor.settings)&&null!=(c=s.public)&&null!=(l=c.webservices)&&null!=(u=l.officeOnline)?u.url:void 0,i=null!=(d=Meteor.settings)&&null!=(p=d.public)&&null!=(f=p.webservices)&&null!=(m=f.pdfOnline)?m.url:void 0,a&&""!==a||i&&""!==i?(h=Meteor.userId(),_=Steedos.spaceId(),r={authToken:o=Accounts._storedLoginToken()},e=e+"?token="+(g=window.btoa(JSON.stringify(r))),Steedos.isPdfFile(t)?(n=e,i&&""!==i&&(n=i+encodeURIComponent(e)),Steedos.openWindow(n)):(n=a+encodeURIComponent(e),Steedos.openWindow(n))):(toastr.error(TAPi18n.__("creator_office_online_web_url_required")),!1)},Creator.isImageAttachment=function(e){var t,r;return!(e.split(".").length<2)&&(t=e.split(".").pop().toLowerCase(),-1!==(r=["png","jpg","jpeg","bmp","gif","webp","psd","svg","tiff"]).indexOf(t))},Creator.isHtmlAttachment=function(e){var t,r;return!(e.split(".").length<2)&&(t=e.split(".").pop().toLowerCase(),-1!==(r=["html","htm"]).indexOf(t))}),Meteor.startup((function(){return $(document).on("click",(function(e){return $(e.target).closest(".slds-table td").length<1?$(".slds-table").addClass("slds-no-cell-focus"):$(".slds-table").removeClass("slds-no-cell-focus")})),$(window).resize((function(){if($(".list-table-container table.dataTable").length)return $(".list-table-container table.dataTable thead th").each((function(){var e;return e=$(this).outerWidth(),$(".slds-th__action",this).css("width",e+"px")}))})),$(document).keydown((function(e){if("13"===e.keyCode||"Enter"===e.key){if($(".modal").length>1)return;if("TEXTAREA"!==e.target.tagName||$(e.target).closest("div").hasClass("bootstrap-tagsinput")){if("update"===Session.get("cmOperation"))return e.preventDefault(),e.stopPropagation(),$(".creator-auotform-modals .btn-update").click();if("insert"===Session.get("cmOperation"))return e.preventDefault(),e.stopPropagation(),$(".creator-auotform-modals .btn-insert").click()}}}))}))},"colors.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n,i;n="border-radius: 10px;padding: 1px 6px;display: inline-block;",i=function(e){return 3===(e=e.slice(1)).length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:Number.parseInt(e.slice(0,2),16),g:Number.parseInt(e.slice(2,4),16),b:Number.parseInt(e.slice(4,6),16)}},a=function(e,t,r){var o,a,n,s;return.299*(n=(s=i(e)).r)+.587*(a=s.g)+.114*(o=s.b)>186?r:t},o=function(e,t,r){var o,a,n,s,c,l,u;return(o=.2126*(n=(u=[(c=(l=i(e)).r)/255,(s=l.g)/255,(a=l.b)/255]).map((function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})))[0]+.7152*n[1]+.0722*n[2])>.179?r:t},r=function(e){var t,r;return r=[],t=e.fields,_.each(t,(function(t,a){var i;if(i=t.options,_.isFunction(i)&&(i=i({})),"select"===t.type&&(null!=i?i.length:void 0))return _.each(i,(function(t){var i,s;if(t.color)return i=t.color,/^#/.test(i)||(i="#"+i),s=o(i,"#fff","#333"),r.push(".creator-cell-color-"+e.name+"-"+a+"-"+t.value+"{"+n+"background:"+i+";color:"+s+";}")}))})),r},Creator.appendObjectFieldsColorStyles=function(){var e,t;return $("#object_fields_color_styles").remove(),t=[],_.each(Creator.Objects,(function(e){return t=_.union(t,r(e))})),t.push(".creator-cell-multiple-color{\n\tmargin-right:1px;\n}\n@media (max-width:767px) {\n\t.creator-cell-multiple-color{\n\t\tmargin-right:4px;\n\t}\n}"),e=$('"),$("head").append(e)}},"temp_navs.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},o,a,n,i,s,c,l,u,d,p;s=!1,a=function(){var e;if(e=sessionStorage.getItem("temp_navs"))return e.split(",").map((function(e){var t;return{name:(t=e.split(":"))[0],url:t[1],label:t[2],is_temp:!0}}))},n=function(e,t,r){return sessionStorage.getItem("temp_navs_id")},d=function(e){return sessionStorage.setItem("temp_navs_id",e)},p=function(e){var t,r;return e||(e=[]),t=(r=e.map((function(e){var t;return t=e.name,e.url&&(t+=":"+e.url),e.label&&(t+=":"+e.label),t}))).join(","),sessionStorage.setItem("temp_navs",t)},c=[],o=function(e,t){var r;return r=t||Creator.getObjectUrl(e),c.push(r)},u=function(e,t){var r,o;if(o=t||Creator.getObjectUrl(e),(r=c.indexOf(o))>-1)return c.splice(r,1)},i=function(e,t){var r,o,a,n,i,s;for(r=t||Creator.getObjectUrl(e),o=2,s=6,i=!1;!i&&o<8&&!((a=urlQuery.length-o)<0);)n=urlQuery[a],__meteor_runtime_config__.ROOT_URL_PATH_PREFIX+n!==r?(i=n&&c.indexOf(__meteor_runtime_config__.ROOT_URL_PATH_PREFIX+n)<0,o++):o++;return i?n:null},l=function(e,t,r,a){var n,s,c,l,u,d,p,f,m;return n=Session.get("object_name"),s=Session.get("record_id"),t?(l=(c=Creator.getObjectUrl(n,s))===t)||(l=FlowRouter.current().path===t):l=n===e,l?(d=i(e,t),o(e,t),d?(FlowRouter.go(d),urlQuery.pop(),urlQuery.pop()):((f=r[a])||(f=r[a-1]),f?(m=f.url?f.url:Creator.getObjectUrl(f.name),FlowRouter.redirect(m)):(u=(p=Creator.getAppMenus())[p.length-1],FlowRouter.redirect(u.path)))):o(e,t)},Creator.getTempNavs=function(){var e;return(e=Session.get("temp_navs"))||(e=a())&&Session.set("temp_navs",e),e},Creator.getTempNavsId=function(){var e;return(e=Session.get("temp_navs_id"))||(e=n())&&Session.set("temp_navs_id",e),e},Creator.createTempNav=function(e,t,r){var o,a;if(t||!(["users","cms_files","cfs.files.filerecord"].indexOf(e)>-1))return(a=Creator.getTempNavs())||(a=[]),(o=a.find((function(r){return t?r.name===e&&r.url===t:r.name===e})))?void 0:(a.push({name:e,url:t,label:r,is_temp:!0}),Session.set("temp_navs",a),p(a),u(e,t))},Creator.updateTempNavLabel=function(e,t,r){var o,a;if(t&&r)return(a=Creator.getTempNavs())||(a=[]),(o=a.find((function(r){return r.name===e&&r.url===t})))?(o.label=r,Session.set("temp_navs",a),p(a)):void 0},Creator.removeTempNavItem=function(e,t){var r,o,a;if((a=Session.get("temp_navs"))&&(o=null,r=a.filter((function(r,a){var n;return(n=t?r.name===e&&r.url===t:r.name===e)&&(o=a),!n})),_.isNumber(o)))return s=!0,l(e,t,r,o),Meteor.defer((function(){return Session.set("temp_navs",r),p(r),s=!1})),!0},Creator.resetTempNavsIfNeeded=function(){var e,t,r;if((t=(r=Creator.getTempNavsId())!==(e=Meteor.userId()+":"+Steedos.spaceId()+":"+Session.get("app_id")))&&(Session.set("temp_navs",null),p(null),c.length=0),t||!Session.get("temp_navs_id"))return Session.set("temp_navs_id",e),d(e)},Meteor.startup((function(){if(!Steedos.isMobile())return Tracker.autorun((function(){var e,t;if(Creator.bootstrapLoaded.get()&&(t=Session.get("spaceId"),e=Session.get("app_id"),t&&e))return Creator.resetTempNavsIfNeeded()})),Tracker.autorun((function(e){var r,o,a,n,i,c,l,u,d,p,f,m,g,h,v;if(u=Session.get("object_name"),h=Session.get("tab_name"),p=Session.get("record_id"),i=Creator.getAppMenus(),u&&i&&i.length&&(f=Session.get("record_name"),n=_.pluck(i,"id"),o=Session.get("temp_navs_force_create"),(null!=n?n.indexOf(u||h):void 0)<0||o)){if(o&&s)return void Session.set("temp_navs_force_create",!1);if(!(l=Creator.getObject(u)))return;if(p){if(!(d=Creator.getObjectRecord()))return;if(v=Creator.getObjectUrl(u,p),o&&(r=urlQuery[urlQuery.length-3])&&(g=new RegExp(r+"$")).test(v))return void Session.set("temp_navs_force_create",!1);a=f||("cfs.files.filerecord"===u?t("cfs_files_filerecord__object")+"-"+(null!=d&&null!=(m=d.original)?m.name:void 0):d[c=l.NAME_FIELD_KEY||"name"]),Creator.createTempNav(u,v,a)}else Creator.createTempNav(u);if(o)return Session.set("temp_navs_force_create",!1)}}))}))},"router.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n;this.urlQuery=new Array,o=function(e,t){var r;Meteor.userId()&&(Creator.pushCurrentPathToUrlQuery(),"-"!==(r=e.params.app_id)&&r&&Session.get("app_id")!==r&&Session.set("app_id",r))},n=function(e,t){var r,o,a,n;if(o=Tracker.nonreactive((function(){return Session.get("object_name")})),a=Tracker.nonreactive((function(){return Session.get("record_id")})),r=e.params.object_name,n=e.params.record_id,Session.set("object_name",r),Session.set("tab_name",null),Session.set("pageApiName",null),Session.set("record_id",n),Session.set("record_name",null),n&&(o&&o!==r||a&&n!==a))return Session.set("temp_navs_force_create",!0)},r=function(e,t){var r;if("admin"===(r=e.params.app_id)&&Steedos.isMobile())return t("/user_settings"),urlQuery.pop()},FlowRouter.route("/app",{triggersEnter:[o],action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"creator_app_home"})}}),FlowRouter.route("/app/menu",{triggersEnter:[o],action:function(e,t){var r;return r="app_object_menu",Session.set("hidden_header",!0),BlazeLayout.render(Creator.getLayout(),{main:r})},triggersExit:[function(e,t){if(Steedos.isMobile())return Session.set("hidden_header",void 0)}]}),FlowRouter.route("/app/:app_id",{triggersEnter:[o],action:function(e,t){var r,o,a;return"-"!==(o=FlowRouter.getParam("app_id"))&&(Session.set("object_name",null),Session.set("record_id",null),Session.set("app_id",o)),Session.set("admin_template_name",null),a=(r=Creator.getApp(o))&&r.is_use_iframe?"creator_app_iframe":"creator_app_home",BlazeLayout.render(Creator.getLayout(),{main:a})}}),FlowRouter.route("/app/:app_id/page/:page_id",{triggersEnter:[o],action:function(e,t){var r,o;return console.log("params",e),r=FlowRouter.getParam("app_id"),o=null!=e?e.page_id:void 0,Session.set("pageApiName",o),Session.set("object_name",null),BlazeLayout.render(Creator.getLayout(),{main:"page_template",regions:{appId:r,pageId:o}})},triggersExit:[function(e,t){return Session.set("pageApiName",null)}]}),FlowRouter.route("/page/:page_id/",{action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"page"})}}),FlowRouter.route("/app/:app_id/tab_iframe/:tab_id",{triggersEnter:[o],action:function(e,t){var r;return r=FlowRouter.getParam("tab_id"),Session.set("tab_name",r),Session.set("object_name",null),BlazeLayout.render(Creator.getLayout(),{main:"page_iframe",regions:{params:e,queryParams:t}})},triggersExit:[function(e,t){return Session.set("tab_name",null)}]}),(a=FlowRouter.group({prefix:"/app/:app_id/:object_name",name:"objectRoutes",triggersEnter:[o,n]})).route("/",{triggersEnter:[function(e,t){var r,o,a,n,i;return n=e.params.object_name,o=(null!=(a=window.getFirstListView(n))?a.name:void 0)||(null!=a?a._id:void 0),t(i="/app/"+(r=e.params.app_id)+"/"+n+"/grid/"+o)}],action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"object_home"})}}),a.route("/:record_id/:related_object_name/grid",{action:function(e,t){var r,o,a,n,i,s,c,l;return o={app_id:r=Session.get("app_id"),object_name:n=FlowRouter.getParam("object_name"),record_id:s=FlowRouter.getParam("record_id"),related_object_name:l=FlowRouter.getParam("related_object_name")},Session.set("related_object_name",l),a="related_object_list",(i=Steedos.Page.getPage("related_list",r,l))&&(a="page_related_list_view",c={page:i,appId:Session.get("app_id"),objectName:n,recordId:s,relatedObjectName:l,__timestamp:(new Date).getTime()}),Meteor.setTimeout((function(){return BlazeLayout.render(Creator.getLayout(),{main:a,regions:c})}),10)}}),a.route("/view/:record_id",{action:function(e,t){var r,o,a,n,i,s,c;return t["X-Space-Id"]&&Steedos.setSpaceId(t["X-Space-Id"]),o={app_id:r=FlowRouter.getParam("app_id"),object_name:n=FlowRouter.getParam("object_name"),record_id:s=FlowRouter.getParam("record_id")},ObjectRecent.insert(n,s),Session.set("detail_info_visible",!0),a="creator_view",(i=Steedos.Page.getPage("record",Session.get("app_id"),n,s))&&(a="page_object",c=window._.defaultsDeep({display:Steedos.Page.getDisplay(n)},FlowRouter.current().queryParams,{page:i,appId:Session.get("app_id"),recordId:s,objectName:n,pageType:"record",__timestamp:(new Date).getTime()})),Meteor.setTimeout((function(){return BlazeLayout.render(Creator.getLayout(),{main:a,regions:c})}),10)},triggersExit:[function(e,t){var r,o,a,n;if(Session.get("instance_change")&&("instances"===(null!=(r=e.params)?r.object_name:void 0)&&"draft"===(null!=(o=e.queryParams)?o.side_listview_id:void 0)||"instance_tasks"===(null!=(a=e.params)?a.object_name:void 0)&&"inbox"===(null!=(n=e.queryParams)?n.side_listview_id:void 0)))return InstanceManager.saveIns(!1)}]}),a.route("/grid/:list_view_id",{action:function(e,t){var r,o,a,n,i;return Session.set("record_id",null),Session.get("object_name")===FlowRouter.getParam("object_name")&&Session.get("list_view_id")===FlowRouter.getParam("list_view_id")||(Session.set("filter_target",null),Session.set("filter_items",null)),Session.get("object_name")!==FlowRouter.getParam("object_name")&&Session.set("list_view_id",null),"true"===(null!=t?t.hidden_header:void 0)&&Session.set("hidden_header",!0),"-"!==(r=FlowRouter.getParam("app_id"))&&Session.set("app_id",r),a=FlowRouter.getParam("object_name"),Session.set("object_name",a),Session.set("list_view_id",FlowRouter.getParam("list_view_id")),Session.set("list_view_visible",!1),Tracker.afterFlush((function(){return Session.set("list_view_visible",!0)})),(n=Steedos.Page.getPage("list",Session.get("app_id"),a))&&(o="page_object",i=window._.defaultsDeep({display:Steedos.Page.getDisplay(a)},FlowRouter.current().queryParams,{page:n,appId:Session.get("app_id"),objectName:a,listViewId:Session.get("list_view_id"),pageType:"list",__timestamp:(new Date).getTime()})),BlazeLayout.render(Creator.getLayout(),{main:o,regions:i})}}),FlowRouter.notFound={action:function(e,t){var r;try{throw new Error("404 not found:"+window.location.href)}catch(o){r=o,console.log(r,window.location.href)}return BlazeLayout.render("empty_layout",{main:"notFound"})}}},"tenant.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};$.getJSON("/accounts/settings",(function(e){if(null!=e?e.tenant:void 0)return Session.set("tenant_settings",e.tenant)}))},"animate.js":function e(){$.fn.extend({animateCss:function(e,t){var r=function(e){var t={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(var r in t)if(void 0!==e.style[r])return t[r]}(document.createElement("div"));return this.addClass("animated "+e).one(r,(function(){$(this).removeClass("animated "+e),"function"==typeof t&&t()})),this}})},"colResizable-1.6.js":function e(){!function(e){var t=e(document),r=e("head"),o=null,a={},n=0,i="id",s="px",c="JColResizer",l="JCLRFlex",u=parseInt,d=Math,p=navigator.userAgent.indexOf("Trident/4.0")>0,f;try{f=sessionStorage}catch(T){}r.append("");var m=function(t,o){var s=e(t);if(s.opt=o,s.mode=o.resizeMode,s.dc=s.opt.disabledColumns,s.opt.disable)return _(s);var l=s.id=s.attr(i)||c+n++;s.p=s.opt.postbackSafe,!s.is("table")||a[l]&&!s.opt.partialRefresh&&s.prev(".JCLRgrips").length>0||("col-resize"!==s.opt.hoverCursor&&r.append(""),s.addClass(c).attr(i,l).before('
'),s.g=[],s.c=[],s.w=s.width(),s.gc=s.prev(),s.f=s.opt.fixed,o.marginLeft&&s.gc.css("marginLeft",o.marginLeft),o.marginRight&&s.gc.css("marginRight",o.marginRight),s.cs=u(p?t.cellSpacing||t.currentStyle.borderSpacing:s.css("border-spacing"))||2,s.b=u(p?t.border||t.currentStyle.borderLeftWidth:s.css("border-left-width"))||1,a[l]=s,g(s))},_=function(e){var t=e.attr(i),e;(e=a[t])&&e.is("table")&&(e.removeClass(c+" "+l).gc.remove(),delete a[t])},g=function(t){var r=t.find(">thead>tr:first>th,>thead>tr:first>td");r.length||(r=t.find(">tbody>tr:first>th,>tr:first>th,>tbody>tr:first>td, >tr:first>td")),r=r.filter(":visible"),t.cg=t.find("col"),t.ln=r.length,t.p&&f&&f[t.id]&&h(t,r),r.each((function(r){var o=e(this),a=-1!=t.dc.indexOf(r),n=e(t.gc.append('
')[0].lastChild);n.append(a?"":t.opt.gripInnerHtml).append('
'),r==t.ln-1&&(n.addClass("JCLRLastGrip"),t.f&&n.html("")),n.bind("touchstart mousedown",y),a?n.addClass("JCLRdisabledGrip"):n.removeClass("JCLRdisabledGrip").bind("touchstart mousedown",y),n.t=t,n.i=r,n.c=o,o.w=o.width(),t.g.push(n),t.c.push(o),o.width(o.w).removeAttr("width"),n.data(c,{i:r,t:t.attr(i),last:r==t.ln-1})})),t.cg.removeAttr("width"),t.find("td, th").not(r).not("table th, table td").each((function(){e(this).removeAttr("width")})),t.f||t.removeAttr("width").addClass(l),v(t)},h=function(e,t){var r,o=0,a=0,n=[],i;if(t){if(e.cg.removeAttr("width"),e.opt.flush)return void(f[e.id]="");for(i=(r=f[e.id].split(";"))[e.ln+1],!e.f&&i&&(e.width(i*=1),e.opt.overflow&&(e.css("min-width",i+s),e.w=i));a*{cursor:"+s.opt.dragCursor+"!important}"),l.addClass(s.opt.draggingClass),o=l,s.c[i.i].l)for(var d=0,p;d"+(r.label||a),value:t+"."+a,icon:null!=o?o.icon:void 0})})):void 0})),o&&(c=Creator.getRelatedObjects(e),_.each(c,(l=this,function(e){var t,r;return r=Creator.getObjectLookupFieldOptions(e.object_name,!1,!1,!1),t=Creator.getObject(e.object_name),_.each(r,(function(r){if(e.foreign_key!==r.value)return n.push({label:(t.label||t.name)+"=>"+r.label,value:t.name+"."+r.value,icon:null!=t?t.icon:void 0})}))}))),n):n},Creator.getObjectFilterFieldOptions=function(e){var t,r,o,a,n;return r=[],e?(o=null!=(t=Creator.getObject(e))?t.fields:void 0,n=Creator.getFields(e),a=null!=t?t.icon:void 0,_.forEach(o,(function(e,t){if(!_.include(["grid","object","[Object]","[object]","Object","avatar","image","markdown","html"],e.type)&&!e.hidden&&!/\w+\./.test(t)&&_.indexOf(n,t)>-1)return r.push({label:e.label||t,value:t,icon:a})})),r):r},Creator.getObjectFieldOptions=function(e){var t,r,o,a,n;return r=[],e?(o=null!=(t=Creator.getObject(e))?t.fields:void 0,n=Creator.getFields(e),a=null!=t?t.icon:void 0,_.forEach(o,(function(e,t){if(!_.include(["grid","object","[Object]","[object]","Object","markdown","html"],e.type)&&!/\w+\./.test(t)&&_.indexOf(n,t)>-1)return r.push({label:e.label||t,value:t,icon:a})})),r):r},Creator.getFiltersWithFilterFields=function(e,t,r){return e||(e=[]),r||(r=[]),(null!=r?r.length:void 0)&&r.forEach((function(r){if(_.isString(r)&&(r={field:r,required:!1}),t[r.field]&&!_.findWhere(e,{field:r.field}))return e.push({field:r.field,is_default:!0,is_required:r.required})})),e.forEach((function(e){var t;return t=r.find((function(t){return t===e.field||t.field===e.field})),_.isString(t)&&(t={field:t,required:!1}),t?(e.is_default=!0,e.is_required=t.required):(delete e.is_default,delete e.is_required)})),e},Creator.getObjectRecord=function(e,t,r,o){var a,n,i,s,c,l;if(e||(e=Session.get("object_name")),t||(t=Session.get("record_id")),Meteor.isClient){if(e!==Session.get("object_name")||t!==Session.get("record_id"))return Creator.odata.get(e,t,r,o);if(null!=(s=Template.instance())?s.record:void 0)return null!=(c=Template.instance())&&null!=(l=c.record)?l.get():void 0}if("meteor"!==(n=Creator.getObject(e)).database_name&&n.database_name){if(e&&t)return Creator.odata.get(e,t,r,o)}else if(a=Creator.getCollection(e))return i=a.findOne(t)},Creator.getObjectRecordName=function(e,t){var r,o;if(e||(e=Creator.getObjectRecord()),e&&(r="organizations"===t?"name":null!=(o=Creator.getObject(t))?o.NAME_FIELD_KEY:void 0,e&&r))return e.label||e[r]},Creator.getApp=function(e){var t,r;return(t=Session.get("_app_menus")||Session.get("app_menus"))?r=t.find((function(t){return t.id===e})):{}},Creator.getAppDashboard=function(e){var t,r;if(t=Creator.getApp(e))return r=null,_.each(Creator.Dashboards,(function(e,o){var a;if((null!=(a=e.apps)?a.indexOf(t._id):void 0)>-1)return r=e})),r},Creator.getAppDashboardComponent=function(e){var t;t=Creator.getApp(e)},Creator.getAppObjectNames=function(e){var t,r,o,a;if(t=Creator.getApp(e))return r=(o=Steedos.isMobile())?t.mobile_objects:t.objects,a=[],t&&_.each(r,(function(e){var t;if(null!=(t=Creator.getObject(e))?t.permissions.get().allowRead:void 0)return a.push(e)})),a},Creator.getUrlWithToken=function(e,t){var r,o,a;return(a={})["X-Space-Id"]=Steedos.spaceId(),a["X-User-Id"]=Steedos.userId(),a["X-Company-Ids"]=Steedos.getUserCompanyIds(),a["X-Auth-Token"]=Accounts._storedLoginToken(),Steedos.isExpression(e)&&(e=Steedos.parseSingleExpression(e,t,"#",Creator.USER_CONTEXT)),""+e+(o=(r=/(\#.+\?)|(\?[^#]*$)/g.test(e))?"&":"?")+$.param(a)},Creator.getAppMenu=function(e,t){var r;return(r=Creator.getAppMenus(e))&&r.find((function(e){return e.id===t}))},Creator.getAppMenuUrlForInternet=function(e){return Creator.getUrlWithToken(e.path,e)},Creator.getAppMenuUrl=function(e){var t;return t=e.path,"url"===e.type?e.target?Creator.getAppMenuUrlForInternet(e):"/app/-/tab_iframe/"+e.id:e.path},Creator.getAppMenus=function(e){var t,r;return(t=Session.get("_app_menus")||Session.get("app_menus"))?(r=t.find((function(t){return t.id===e})))?r.children:void 0:[]},Creator.loadAppsMenus=function(){var e,t,r;return e={},(t=Steedos.isMobile())&&(e.mobile=t),r={type:"get",data:e,success:function(e){return Session.set("app_menus",e)}},null!=Steedos?Steedos.authRequest("/service/api/apps/menus",r):void 0},Creator.creatorAppsSelector=function(e,t){var r,o,a;return r=void 0,a=void 0,_.each(e,(function(e,t){e._id||(e._id=t),e.is_creator||(e.visible=!1)})),a=_.sortBy(_.values(e),"sort"),o={},r={},_.each(a,(function(e){return"admin"===e._id?r=e:o[e._id]=e})),o.admin=r,t.length&&_.each(o,(function(e,r){t.indexOf(r)>-1?e.visible=e.is_creator:e.visible=!1})),o},Creator.visibleAppsSelector=function(e,t){var r;return null==t&&(t=!0),r=[],_.each(e,(function(e,o){(!1!==e.visible&&"admin"!==e._id||t&&"admin"===e._id)&&r.push(e)})),r},Creator.getVisibleApps=function(e){var t,r;return t=Creator._subApp.get(),r=Object.assign({},Creator.Apps,{apps:t}),Creator.visibleAppsSelector(r,e)},Creator.getVisibleAppsObjects=function(){var e,t,r;return e=Creator.getVisibleApps(),r=_.flatten(_.pluck(e,"objects")),t=(t=_.filter(Creator.Objects,(function(e){return!(r.indexOf(e.name)<0)}))).sort(Creator.sortingMethod.bind({key:"label"})),t=_.pluck(t,"name"),_.uniq(t)},Creator.getAppsObjects=function(){var e,t;return e=[],t=[],_.forEach(Creator.Apps,(function(r){return t=_.filter(r.objects,(function(e){return!e.hidden})),e=e.concat(t)})),_.uniq(e)},Creator.validateFilters=function(e,t){var r,o,a,n,i,s,c;if(a=_.map(e,(function(e){return!_.isEmpty(e)&&e})),a=_.compact(a),o="",n=a.length,t){if(t=t.replace(/\n/g,"").replace(/\s+/g," "),/[._\-!+]+/gi.test(t)&&(o="含有特殊字符。"),!o)if(s=t.match(/\d+/gi))for(s.forEach((function(e){if(e<1||e>n)return o="您的筛选条件引用了未定义的筛选器:"+e+"。"})),i=1;i<=n;)s.includes(""+i)||(o="有些筛选条件进行了定义,但未在高级筛选条件中被引用。"),i++;else o="有些筛选条件进行了定义,但未在高级筛选条件中被引用。";if(o||(c=t.match(/[a-zA-Z]+/gi))&&c.forEach((function(e){if(!/^(and|or)$/gi.test(e))return o="检查您的高级筛选条件中的拼写。"})),!o){try{Creator.eval(t.replace(/and/gi,"&&").replace(/or/gi,"||"))}catch(l){r=l,o="您的筛选器中含有特殊字符"}(/(AND)[^()]+(OR)/gi.test(t)||/(OR)[^()]+(AND)/gi.test(t))&&(o="您的筛选器必须在连续性的 AND 和 OR 表达式前后使用括号。")}}return!o||(console.log("error",o),Meteor.isClient&&toastr.error(o),!1)},Creator.formatFiltersToMongo=function(e,t){var r;if(null!=e?e.length:void 0)return e[0]instanceof Array||(e=_.map(e,(function(e){return[e.field,e.operation,e.value]}))),r=[],_.each(e,(function(e){var o,a,n,i,s;return o=e[0],a=e[1],s=Meteor.isClient?Creator.evaluateFormula(e[2]):Creator.evaluateFormula(e[2],null,t),(i={})[o]={},"="===a?i[o].$eq=s:"<>"===a?i[o].$ne=s:">"===a?i[o].$gt=s:">="===a?i[o].$gte=s:"<"===a?i[o].$lt=s:"<="===a?i[o].$lte=s:"startswith"===a?(n=new RegExp("^"+s,"i"),i[o].$regex=n):"contains"===a?(n=new RegExp(s,"i"),i[o].$regex=n):"notcontains"===a&&(n=new RegExp("^((?!"+s+").)*$","i"),i[o].$regex=n),r.push(i)})),r},Creator.isBetweenFilterOperation=function(e){var t;return"between"===e||!!(null!=(t=Creator.getBetweenTimeBuiltinValues(!0))?t[e]:void 0)},Creator.formatFiltersToDev=function(e,t,r){var o,a;if(e.length)return(null!=r?r.is_logic_or:void 0)&&(o=[],e.forEach((function(e){return o.push(e),o.push("or")})),o.pop(),e=o),a=SteedosFilters.formatFiltersToDev(e,Creator.USER_CONTEXT)},Creator.formatLogicFiltersToDev=function(e,t,r){var o;return o="["+(o=(o=t.replace(/\(\s+/gi,"(").replace(/\s+\)/gi,")").replace(/\(/g,"[").replace(/\)/g,"]").replace(/\s+/g,",").replace(/(and|or)/gi,"'$1'")).replace(/(\d)+/gi,(function(t){var o,a,n,i,s;return o=e[t-1],a=o.field,n=o.operation,s=Meteor.isClient?Creator.evaluateFormula(o.value):Creator.evaluateFormula(o.value,null,r),i=[],!0===_.isArray(s)?("="===n?_.each(s,(function(e){return i.push([a,n,e],"or")})):"<>"===n?_.each(s,(function(e){return i.push([a,n,e],"and")})):_.each(s,(function(e){return i.push([a,n,e],"or")})),"and"!==i[i.length-1]&&"or"!==i[i.length-1]||i.pop()):i=[a,n,s],JSON.stringify(i)})))+"]",Creator.eval(o)},Creator.getRelatedObjects=function(e,t,r){var o,a,n,i,s;return Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),n=[],(o=Creator.getObject(e))?(i=Creator.getObjectRelateds(o._collection_name),0===(null!=(n=_.pluck(i,"object_name"))?n.length:void 0)?n:(s=(a=Creator.getPermissions(e,t,r)).unrelated_objects,n=_.difference(n,s),_.filter(i,(function(e){var o,i,s,c;return c=e.object_name,i=n.indexOf(c)>-1,o=null!=(s=Creator.getPermissions(c,t,r))?s.allowRead:void 0,"cms_files"===c&&(o=o&&a.allowReadFiles),i&&o})))):n},Creator.getRelatedObjectNames=function(e,t,r){var o;return o=Creator.getRelatedObjects(e,t,r),_.pluck(o,"object_name")},Creator.getRelatedObjectListActions=function(e,t,r){var o;return o=Creator.getActions(e,t,r),o=_.filter(o,(function(e){return"standard_follow"!==e.name&&("standard_query"!==e.name&&("list"===e.on&&("function"==typeof e.visible?e.visible():e.visible)))}))},Creator.getActions=function(e,t,r){var o,a,n,i,s,c;if(Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),n=Creator.getObject(e))return i=Creator.getPermissions(e,t,r),a=i.disabled_actions,o=_.sortBy(_.values(n.actions),"sort"),_.has(n,"allow_customActions")&&(o=_.filter(o,(function(e){return _.include(n.allow_customActions,e.name)||_.include(_.keys(Creator.getObject("base").actions)||{},e.name)}))),_.has(n,"exclude_actions")&&(o=_.filter(o,(function(e){return!_.include(n.exclude_actions,e.name)}))),_.each(o,(function(e){if(Steedos.isMobile()&&["record","record_only"].indexOf(e.on)>-1&&"standard_edit"!==e.name)return"record_only"===e.on?e.on="record_only_more":e.on="record_more"})),Steedos.isMobile()&&["cms_files","cfs.files.filerecord"].indexOf(e)>-1&&(null!=(s=o.find((function(e){return"standard_edit"===e.name})))&&(s.on="record_more"),null!=(c=o.find((function(e){return"download"===e.name})))&&(c.on="record")),o=_.filter(o,(function(e){return _.indexOf(a,e.name)<0}))},Creator.getListViews=function(e,t,r){var o,a,n,i,s,c;if(Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),e&&(s=Creator.getObject(e)))return o=(null!=(c=Creator.getPermissions(e,t,r))?c.disabled_list_views:void 0)||[],i=[],a=Steedos.isMobile(),_.each(s.list_views,(function(e,t){return e.name=t})),n=_.sortBy(_.values(s.list_views),"sort_no"),_.each(n,(function(e){var t;if(!a||"calendar"!==e.type)return"default"===e.name||(t=_.indexOf(o,e.name)>-1||e._id&&_.indexOf(o,e._id)>-1)&&e.owner!==r?void 0:i.push(e)})),i},Creator.getFields=function(e,t,r){var o,a,n;return Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),o=Creator.getObjectFieldsName(e),n=null!=(a=Creator.getPermissions(e,t,r))?a.unreadable_fields:void 0,_.difference(o,n)},Creator.isloading=function(){return!Creator.bootstrapLoaded.get()},Creator.convertSpecialCharacter=function(e){return e.replace(/([\^\$\(\)\*\+\?\.\\\|\[\]\{\}])/g,"\\$1")},Creator.getDisabledFields=function(e){var t;return t=_.map(e,(function(e,t){return e.autoform&&e.autoform.disabled&&!e.autoform.omit&&t})),t=_.compact(t)},Creator.getHiddenFields=function(e){var t;return t=_.map(e,(function(e,t){return e.autoform&&"hidden"===e.autoform.type&&!e.autoform.omit&&t})),t=_.compact(t)},Creator.getFieldsWithNoGroup=function(e){var t;return t=_.map(e,(function(e,t){return(!e.autoform||!e.autoform.group||"-"===e.autoform.group)&&(!e.autoform||"hidden"!==e.autoform.type)&&t})),t=_.compact(t)},Creator.getSortedFieldGroupNames=function(e){var t;return t=_.map(e,(function(e){return e.autoform&&"-"!==e.autoform.group&&e.autoform.group})),t=_.compact(t),t=_.unique(t)},Creator.getFieldsForGroup=function(e,t){var r;return r=_.map(e,(function(e,r){return e.autoform&&e.autoform.group===t&&"hidden"!==e.autoform.type&&r})),r=_.compact(r)},Creator.getSystemBaseFields=function(){return["created","created_by","modified","modified_by"]},Creator.getFieldsWithoutSystemBase=function(e){return _.difference(e,Creator.getSystemBaseFields())},Creator.getFieldsWithoutOmit=function(e,t){return t=_.map(t,(function(t){var r,o;return(null==(o=(r=_.pick(e,t))[t].autoform)||!o.omit)&&t})),t=_.compact(t)},Creator.getFieldsInFirstLevel=function(e,t){return t=_.map(t,(function(t){return _.indexOf(e,t)>-1&&t})),t=_.compact(t)},Creator.getFieldsForReorder=function(e,t,r){var o,a,n,i,s,c,l,u;for(n=[],i=0,o=_.filter(t,(function(e){return!e.endsWith("_endLine")}));i-1&&(o=e[t].data_type),o):"text"},Meteor.isServer&&(Creator.getAllRelatedObjects=function(e){var t;return t=[],_.each(Creator.Objects,(function(r,o){return _.each(r.fields,(function(r,a){if("master_detail"===r.type&&r.reference_to&&r.reference_to===e)return t.push(o)}))})),Creator.getObject(e).enable_files&&t.push("cms_files"),t}),Meteor.isServer&&(Steedos.formatIndex=function(e){var t,r,o,a,n,i;return o={background:!0},(r=(null!=(a=Meteor.settings)&&null!=(n=a.datasources)&&null!=(i=n.default)?i.documentDB:void 0)||!1)&&e.length>0&&(t=e.join("."),o.name=t,t.length>52&&(o.name=t.substring(0,52))),o})},lib:{"apps.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Creator.appsByName={}},"object_recent.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};this.ObjectRecent={},ObjectRecent.insert=function(e,t,r){return Meteor.call("object_recent_viewed",e,t,Session.get("spaceId"),(function(){if(r&&_.isFunction(r))return r()}))}},"filters_transform.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r;this.FiltersTransform={},r=function(e){return["date","datetime","time","currency","number"].includes(e)?"between":["text","textarea","html"].includes(e)?"contains":"="},FiltersTransform.queryToFilters=function(e){var t,o,a,n;if(e)return n=e.query,a=e.object_name,o=Creator.getObject(a).fields,t=[],_.each(n,(function(e,a){var n,i;if(o[a]){if(i=Creator.getFieldDataType(o,a),["date","datetime","time","currency","number"].includes(i))return t.push({field:a,operation:r(i),start_value:e,value:[e,null]});if(!["text","textarea","html"].includes(i))return["boolean"].includes(i)?t.push({field:a,operation:"=",value:e}):t.push({field:a,operation:r(i),value:e});if(_.isString(e))return t.push({field:a,operation:r(i),value:e});if(_.isArray(e))return t.push({field:a,operation:"=",value:e})}else if(a=a.replace(/(_endLine)$/,""),i=Creator.getFieldDataType(o,a),o[a]&&["date","datetime","time","currency","number"].includes(i))return(n=_.find(t,(function(e){return e.field===a})))?(n.end_value=e,n.value[1]=e):t.push({field:a,operation:r(i),end_value:e,value:[null,e]})})),t}},"form_manager.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;this.FormManager={},SimpleSchema.messages({formValidate:"[value]"}),FormManager.getRelatedInitialValues=(o=this,function(e,t,r){var o,a,n,i,s;if(!_.isString(t))throw new Meteor.Error("main_record_id must be String");return o={},i="",Creator.getRelatedList(e,t).forEach((function(e){if(r===e.object_name)return i=e.related_field_name})),a="company_id",(s=Creator.getObject(r))&&i&&s.fields[i]&&s.fields[i].reference_to_field&&(a=a+","+s.fields[i].reference_to_field),(n=Creator.odata.get(e,t,a))&&i&&n[s.fields[i].reference_to_field]&&(t=n[s.fields[i].reference_to_field]),o={},i&&("objects"===e?o[i]=Creator.getObjectRecord().name:(s=Creator.getObject(r),_.isString(s.fields[i].reference_to)?s.fields[i].multiple?o[i]=[t]:o[i]=t:o[i]={o:e,ids:[t]})),!_.has(o,"company_id")&&(null!=n?n.company_id:void 0)&&(o.company_id=n.company_id),o=Object.assign({},o,FormManager.getInitialValues(r,o))}),FormManager.getInitialValues=function(e,t){var r,o,a;return o=null!=(r=Creator.getObject(e))&&null!=(a=r.form)?a.initialValues:void 0,_.isFunction(o)?o.apply({doc:t||{}}):{}},FormManager.validate=function(e,t){var r,o,a,n,i,s;if(a=null!=(o=Creator.getObject(e))&&null!=(n=o.form)?n.validate:void 0,_.isFunction(a))try{if(s=a.apply({},[null!=(i=AutoForm.getFormValues(t))?i.insertDoc:void 0]),_.isBoolean(s)&&!1===s)return!1;if(!_.isEmpty(s)&&_.isObject(s))return _.each(s,(function(e,r){return AutoForm.addStickyValidationError(t,r,"formValidate",e),toastr.error(e)})),!1}catch(c){return r=c,console.error(r),toastr.error(r.message),!1}return!0},FormManager.onSubmit=function(e,t){var r,o,a,n,i;return o=null!=(r=Creator.getObject(e))&&null!=(n=r.form)?n.onSubmit:void 0,!(_.isFunction(o)&&(a=o.apply({},[null!=(i=AutoForm.getFormValues(t))?i.insertDoc:void 0]),!_.isEmpty(a)&&_.isObject(a)))||(_.each(a,(function(e,r){return AutoForm.addStickyValidationError(t,r,"formValidate",e),toastr.error(e)})),!1)},r=function(e,t,r){var o,a,n;return o={userId:Meteor.userId(),spaceId:Session.get("spaceId"),object_name:e},_.has(r,"previousDoc")&&(o.previousDoc=r.previousDoc),t.endsWith("Delete")?(o.id=r._id,o.doc=Creator.odata.get(e,r._id),t.startsWith("error")&&(o.error=r.error)):t.startsWith("after")?(o.id=null!=(a=r.dbDoc)?a._id:void 0,o.doc=r.dbDoc):t.startsWith("before")?(t.endsWith("Insert")||(o.id=r._id),t.endsWith("Update")?o.doc=null!=(n=r.doc)?n.$set:void 0:o.doc=r.doc):t.startsWith("error")&&(o.id=r._id,o.doc=r.doc,o.error=r.error),o},FormManager.getPreviousDoc=function(e,t,r){var o,a,n,i,s;if(("update"===r||"delete"===r)&&(o="after",a="after"+r.charAt(0).toLocaleUpperCase()+_.rest(r.split("")).join(""),i=null!=(n=Creator.getObject(e))&&null!=(s=n.form)?s[a]:void 0,_.isFunction(i)))return Creator.odata.get(e,t)},FormManager.runHook=function(e,t,o,a){var n,i,s,c,l,u,d,p;if(l=""+o+t.charAt(0).toLocaleUpperCase()+_.rest(t.split("")).join(""),"view"===t||"edit"===t)return FormManager.runViewEditHook(e,l,a.schema,a.record,a.doc);if(s=a.formId,d=null!=(u=Creator.getObject(e))&&null!=(p=u.form)?p[l]:void 0,_.isFunction(d))try{if(n=r(e,l,a),c=d.apply(n),_.isBoolean(c)&&!1===c)return!1;if(s&&"before"===o&&!_.isEmpty(c)&&_.isObject(c))return _.each(c,(function(e,t){return AutoForm.addStickyValidationError(s,t,"formValidate",e),toastr.error(e)})),!1}catch(f){return i=f,console.error(i),toastr.error(i.message),!1}return!0},FormManager.runViewEditHook=function(e,t,r,o,a){var n,i,s,c,l,u,d;if(l=null!=(u=Creator.getObject(e))&&null!=(d=u.form)?d[t]:void 0,_.isFunction(l)&&(s=r.get(),c={id:(i=a||o.get())._id,userId:Meteor.userId(),spaceId:Session.get("spaceId"),object_name:e,doc:i,schema:s},!1!==(n=l.apply(c))))return r.set(s),o.set(i)}},"grid_export.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;this.ObjectGrid={},this.GridExport={},r={equals:"=",notEqual:"!=",contains:"contains",notContains:"notcontains",startsWith:"startswith",endsWith:"=",lessThan:"<",lessThanOrEqual:"<=",greaterThan:">",greaterThanOrEqual:">=",empty:"empty"},o=function(e){var t;return t=[],_.forEach(e,(function(e,o){var a;return"between"===e.type?"number"===e.filterType?t.push([o,"between",[e.numberFrom,e.numberTo]]):e.filter?t.push([o,e.type,e.filter]):t.push([o,"between",[e.dateFrom,e.dateTo]]):_.isEmpty(e.filter)?e.operator?(a=[],e.condition1&&a.push([o,r[e.condition1.type],e.condition1.filter]),a.push(e.operator.toLocaleLowerCase()),e.condition2&&a.push([o,r[e.condition2.type],e.condition2.filter]),t.push(a)):void 0:(a=[o,r[e.type],e.filter],t.push(a))})),t},ObjectGrid.getFilters=function(e,t,r,a,n){var i,s,c,l,u,d;return s=Steedos.Page.Listview.getDefaultName(e,t),l=window.gridRefs&&window.gridRefs[s]&&window.gridRefs[s].current?window.gridRefs[s].current:window.gridRef.current,u=[],i=Creator.getListViewFilters(e,t,r,a,n),d=o(l.api.getFilterModel()),c=_.compact([].concat(i).concat(d))},GridExport.excel=function(e,t,r,a,n,i,s){var c,l,u,d,p,f,m,g,h,v,b,w,S;return u=Steedos.Page.Listview.getDefaultName(e,t),f=window.gridRefs&&window.gridRefs[u]&&window.gridRefs[u].current?window.gridRefs[u].current:window.gridRef.current,v=[],_.each(f.props.columnDefs,(function(e){if(e&&e.field)return v.push(e.field)})),b=[],_.forEach(f.api.getSortModel(),(function(e){return b.push([e.colId,e.sort])})),l=Creator.getListViewFilters(e,t,r,a,n,s),S=o(f.api.getFilterModel()),p=_.compact([].concat(l).concat(S)),c=SteedosFilters.formatFiltersToODataQuery(p),d=r?i+"-"+Creator.getObject(a).label:Creator.getObject(e).label+"-"+(null!=(h=Creator.getListView(e,t))?h.label:void 0),g=[],_.map(b,(function(e){var t;return t="desc"===e[1]?e[0]+" desc":e[0],g.push(t)})),m=g.join(","),d=encodeURIComponent(d),w=r?"/api/record/export/"+a+"?$select="+v.toString()+"&filename="+d:"/api/record/export/"+e+"?$select="+v.toString()+"&filename="+d,b.length>0&&(w=w+"&$orderby="+m),c&&(w=w+"&$filter="+c),Meteor.isCordova?Steedos.cordovaDownload(encodeURI(Steedos.absoluteUrl(w)),d+".xlsx"):window.open(w)}}},client:{"listview.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n,i;n=function(e,t,r){var o,a,n;return o=null!=t?t.columns:void 0,r&&((null!=t?t.mobile_columns:void 0)?o=t.mobile_columns:(null!=(n=Creator.getObjectFirstListView(e))?n.mobile_columns:void 0)?o=n.mobile_columns:o&&(o=Creator.pickObjectMobileColumns(e,o))),o||(a=Creator.getObjectFirstListViewColumns(e,r))&&(o=a),o},o=function(e,t,r){var o,a,i,s,c,l;return s=(c=Creator.getObject(e)).NAME_FIELD_KEY,"organizations"===c.name&&(s="name"),o=[s],(i=Creator.getCollection("object_listviews").findOne(t))?o=n(e,i,r):c.list_views&&(l=c.list_views[t],o=n(e,l,r)),o=o.map((function(e){var t,r;return t=_.isObject(e)?e.field:e,(null!=(r=c.fields[t])?r.type:void 0)?t:void 0})),Creator.isCommonSpace(Session.get("spaceId"))&&o.indexOf("space")<0&&o.push("space"),"cms_files"===e&&o.push("parent"),o=_.compact(o),a=Creator.getObjectFieldsName(e),_.intersection(o,a)},i=function(e,t,r,o){var a;return r?(a=Creator.getObject(e).fields,o&&(t=t.filter((function(e){var t,o;return"master_detail"!==(null!=(o=a[e])?o.type:void 0)||(!!a[e].multiple||(a[e].reference_to?(t=a[e].reference_to,_.isFunction(t)&&(t=t())):t=a[e].optionsFunction({}).getProperty("value"),!!_.isArray(t)||t!==r))}))),t):t},r=function(e,t){var r,o;return o=Creator.getObject(e).fields,r=[],_.each(t,(function(e){var t;if(null!=(t=o[e])?t.depend_on:void 0)return r=_.union(o[e].depend_on)})),r},a=function(e,t,r){var o,a;return a=_.intersection(["owner","company_id","company_ids","locked"],_.keys(e.fields)),!r&&e.enable_tree&&(a.push("parent"),a.push("children")),(o=Creator.getObjectDefaultExtraColumns(e.name))&&(a=_.union(a,o)),a},Creator.unionSelectColumnsWithExtraAndDepandOn=function(e,t,o,n){var i,s;return i=t.name,s=a(t,o,n),e=_.union(e,s),e=_.union(e,r(i,e))},Creator.getListViewFilters=function(e,t,r,o,a,n){var i,s,c,l,u,d,p,f,m,g;if(!e)return null;if(c=Creator.getObject(e),r)l=Creator.getODataRelatedFilter(e,o,a,t,n);else{if(d=Session.get("filter_logic"),p=Session.get("filter_scope"),u=Session.get("filter_items"),s=c.fields,u&&u.length>0&&window.lodash.isArray(u[0]))return l=u,(g=Creator.getStandardQuery(e,Session.get("standard_query")))&&g.length&&(l=l?[l,"and",g]:g),(m=Session.get("grid_sidebar_filters"))&&m.length&&(l=l?[l,"and",m]:m),l||(l=null),l;i=[],_.forEach(u,(function(t){var r,o,a,n,c,l,u,d,p,f,m;if(void 0!==t.value)if(r=s[null!=t?t.field:void 0],o=Creator.getFieldDataType(s,null!=t?t.field:void 0),["text","textarea","html","code"].includes(o)){if(_.isString(t.value)&&(m=t.value.trim().split(" "),l=[],m.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),l.push([t.field,t.operation,e])})),l.length>0))return c=!1,["<>","notcontains"].includes(t.operation)&&(c=!1),i.push(Creator.formatFiltersToDev(l,e,{is_logic_or:c}))}else{if(!["lookup","master_detail"].includes(o))return i.push(t);if(a=null!=r?r.reference_to:void 0,_.isFunction(a)&&(a=a()),!_.isArray(a))return i.push(t);if((null!=(u=t.value)?u.ids:void 0)&&i.push({field:t.field+".ids",operation:t.operation,value:null!=(d=t.value)?d.ids:void 0}),null!=(p=t.value)?p.o:void 0)return n=Creator.getObject(null!=(f=t.value)?f.o:void 0),i.push({field:t.field+".o",operation:t.operation,value:n._collection_name})}})),i.length>0&&(f={filter_logic:d,filter_scope:p,filters:i}),l=Creator.getODataFilter(t,e,f),(g=Creator.getStandardQuery(e,Session.get("standard_query")))&&g.length&&(l=l?[l,"and",g]:g),r||(m=Session.get("grid_sidebar_filters"))&&m.length&&(l=l?[l,"and",m]:m)}return l||(l=null),l},Creator.getODataEndpointUrl=function(e,t,r,o){var a,n;return r?(a=Creator.formatObjectName(o),n=Creator.getListViewIsRecent(e,t)?"/api/v4/"+a+"/recent":"/api/v4/"+a):(a=Creator.formatObjectName(e),n=Creator.getListViewIsRecent(e,t)?"/api/v4/"+a+"/recent":"/api/v4/"+a),Steedos.absoluteUrl(n)},Creator.getListviewColumns=function(e,t,r,a,n,s){var c,l;return c=e.name,l=Tracker.nonreactive((function(){return o(c,a,s)})),n&&n.customRelatedListObject&&(n.columns&&(l=n.columns),s&&n.mobile_columns&&(l=n.mobile_columns),l&&(l=l.map((function(e){return _.isObject(e)?e.field:_.isString(e)?e:void 0})),l=_.uniq(_.compact(l)))),l=i(c,l,t,r)}},views:{"_helpers.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Creator.helpers={object_name:function(){return Session.get("object_name")},object:function(){return Creator.getObject(Session.get("object_name"))},object_listviews:function(){return Creator.getObject("object_listviews")},objectLabel:function(e){return Creator.getObject(e).label},getOperationLabel:function(e){switch(e){case"=":return t("creator_filter_operation_equal");case"<>":return t("creator_filter_operation_unequal");case"<":return t("creator_filter_operation_less_than");case">":return t("creator_filter_operation_greater_than");case"<=":return t("creator_filter_operation_less_or_equal");case">=":return t("creator_filter_operation_greater_or_equal");case"contains":return t("creator_filter_operation_contains");case"notcontains":return t("creator_filter_operation_does_not_contain");case"startswith":return t("creator_filter_operation_starts_with");case"between":return t("creator_filter_operation_between")}},isMobile:function(){return Steedos.isMobile()}}},"template.page_template.js":function e(){Template.__checkName("page_template"),Template.page_template=new Template("Template.page_template",(function(){var e=this;return HTML.Raw('
')}))},"page_template.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_template.onRendered((function(){var e,t;return t=this,e=Session.get("app_id"),this.containerList=[],this.autorun((function(){var r;if(r=Steedos.Page.App.render(t,Session.get("pageApiName"),e))return t.containerList.push(r)}))})),Template.page_template.onDestroyed((function(){return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_object.js":function e(){Template.__checkName("page_object"),Template.page_object=new Template("Template.page_object",(function(){var e=this;return HTML.Raw('
')}))},"page_object.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_object.onRendered((function(){var e;return e=this,Steedos.Page.Object.Template.onRendered.apply(this)})),Template.page_object.onDestroyed((function(){var e;return e=this,Steedos.Page.Object.Template.onDestroyed.apply(this)}))},"template.page_record_view.js":function e(){Template.__checkName("page_record_view"),Template.page_record_view=new Template("Template.page_record_view",(function(){var e=this;return HTML.Raw('
')}))},"page_record_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_record_view.onRendered((function(){var e,t,r;return r=this,e=Session.get("object_name"),t=Session.get("record_id"),this.containerList=[],this.pageName=null,this.autorun((function(){var o,a,n,i,s,c,l,u,d,p;if(d=!0,(l=r.data.regions()).objectName!==(null!=(i=this.lastRegions)?i.objectName:void 0)&&(d=!1),this.lastRegions=l,d&&r.pageName)try{if(SteedosUI.refs[r.pageName])return(p={objectName:e}).recordId=Tracker.nonreactive((function(){return Session.get("record_id")})),n=(null!=(s=SteedosUI.refs[r.pageName])&&null!=(c=s.__$schema)?c.data:void 0)||{},SteedosUI.refs[r.pageName].updateProps({data:window._.defaultsDeep(p,n)})}catch(f){a=f,console.error(r.pageName+": "+a)}if(!d&&r.pageName&&SteedosUI.refs[r.pageName])try{SteedosUI.refs[r.pageName].unmount()}catch(f){a=f,console.error(r.pageName+": "+a)}if(r.data.regions&&(l=Tracker.nonreactive(r.data.regions),this.lastRegions=l,l&&l.page&&l.page.schema&&(u=l.page.schema,_.isString(u)&&(u=JSON.parse(u)),r.pageName=u.name)),e=Tracker.nonreactive((function(){return Session.get("object_name")})),t=Tracker.nonreactive((function(){return Session.get("record_id")})),o=Steedos.Page.Record.render(r,e,t))return r.containerList.push(o)}))})),Template.page_record_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_list_view.js":function e(){Template.__checkName("page_list_view"),Template.page_list_view=new Template("Template.page_list_view",(function(){var e=this;return HTML.Raw('
')}))},"page_list_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_list_view.onRendered((function(){var e,t;return t=this,e=Session.get("object_name"),this.containerList=[],this.pageName=null,this.autorun((function(){var r,o,a,n;if(t.pageName)try{SteedosUI.refs[t.pageName].unmount()}catch(i){o=i,console.error(t.pageName+": "+o)}if(t.data.regions&&(a=t.data.regions())&&a.page&&a.page.schema&&(n=a.page.schema,_.isString(n)&&(n=JSON.parse(n)),t.pageName=n.name),r=Steedos.Page.Listview.render(t,e))return t.containerList.push(r)}))})),Template.page_list_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_related_list_view.js":function e(){Template.__checkName("page_related_list_view"),Template.page_related_list_view=new Template("Template.page_related_list_view",(function(){var e=this;return HTML.Raw('')}))},"page_related_list_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_related_list_view.onRendered((function(){var e,t,r;return r=this,e=Session.get("object_name"),t=Session.get("record_id"),this.containerList=[],this.pageName=null,this.autorun((function(){var o,a,n,i;if(r.pageName)try{SteedosUI.refs[r.pageName].unmount()}catch(s){a=s,console.error(r.pageName+": "+a)}if(r.data.regions&&(n=r.data.regions())&&n.page&&n.page.schema&&(i=n.page.schema,_.isString(i)&&(i=JSON.parse(i)),r.pageName=i.name),o=Steedos.Page.RelatedListview.render(r,e,t))return r.containerList.push(o)}))})),Template.page_related_list_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.app_home.js":function e(){Template.__checkName("creator_app_home"),Template.creator_app_home=new Template("Template.creator_app_home",(function(){var e=this;return""}))},"app_home.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r;r=function(e){var t,r,o,a,n;return(null!=(t=Creator.getApp(e))?t.isExternalUrl:void 0)?/^http(s?):\/\//.test(t.path)?t.blank?window.open(t.path):window.location.href=t.path:FlowRouter.go(t.path):(a=Creator.getAppMenus(e),(r=_.first(a))?"url"===(o=Object.assign({},r,{target:!1})).type&&o.is_use_iframe?FlowRouter.go(o.path):(n=Creator.getAppMenuUrl(o),FlowRouter.go(n)):FlowRouter.go("/app/"+e))},Template.creator_app_home.onRendered((function(){return this.autorun((function(){var e,t,o;if(o=Creator.bootstrapLoaded.get(),_.has(FlowRouter.current().params,"app_id")){if(e=Session.get("app_id"),o&&e)return r(e)}else if(t=Steedos.getFirstApp(),o&&t)return r(t.code||t.id)}))}))},"template.app_iframe.js":function e(){Template.__checkName("creator_app_iframe"),Template.creator_app_iframe=new Template("Template.creator_app_iframe",(function(){var e=this;return Blaze.If((function(){return Spacebars.call(e.lookup("subsReady"))}),(function(){return["\n\t\t",HTML.IFRAME({id:"app_iframe",src:function(){return Spacebars.mustache(e.lookup("url"))},style:"width: 100%; height: 100%;"}),"\n\t"]}))}))},"app_iframe.coffee":function module(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var share=__coffeescriptShare;Template.creator_app_iframe.helpers({subsReady:function(){return Steedos.subsBootstrap.ready()},url:function(){var e,t;return t=Session.get("app_id"),(e=Creator.getApp(t))&&!e.on_click&&e.url?Creator.getUrlWithToken(e.url,e):""}}),Template.creator_app_iframe.events,Template.creator_app_iframe.onCreated((function(){})),Template.creator_app_iframe.onRendered((function(){var app,app_id,e,evalFunString,iframe;if(Steedos.forbidNodeContextmenu(window,"#app_iframe"),app_id=Session.get("app_id"),app=Creator.getApp(app_id),iframe=$("#app_iframe"),app&&app.on_click){evalFunString="(function(){"+app.on_click+"})()";try{return eval(evalFunString)}catch(error){return e=error,console.error("catch some error when eval the on_click script for app link:"),console.error(e.message+"\r\n"+e.stack)}}})),Template.creator_app_iframe.onDestroyed((function(){}))},"template.page_iframe.js":function e(){Template.__checkName("page_iframe"),Template.page_iframe=new Template("Template.page_iframe",(function(){var e=this;return HTML.IFRAME({name:"pageIframe",src:function(){return Spacebars.mustache(e.lookup("url"))},style:function(){return Spacebars.mustache(e.lookup("style"))},class:function(){return Spacebars.mustache(e.lookup("className"))}})}))},"page_iframe.js":function e(){var t=function(e){const{data:t}=e;"nav.click"===t.type&&FlowRouter.current().params.tab_id==t.data.id&&$("[name='pageIframe']").attr("src",$("[name='pageIframe']").attr("src"))};Template.page_iframe.helpers({url:()=>{if(Template.instance().data.regions)return(regions=Template.instance().data.regions()).queryParams.url},className:()=>{if(Template.instance().data.regions)return(regions=Template.instance().data.regions()).queryParams.className||""},style:()=>Template.instance().data.regions&&(regions=Template.instance().data.regions()).queryParams.style||"width: 100%; height: 100%;"}),Template.page_iframe.onCreated((function(){window.addEventListener("message",t)})),Template.page_iframe.onDestroyed((function(){window.removeEventListener("message",t)})),Template.page_iframe.onRendered((function(){window.Steedos.setDocumentTitle({pageName:null,tabName:null})}))},"template.initiate_approval.js":function e(){Template.__checkName("initiate_approval"),Template.initiate_approval=new Template("Template.initiate_approval",(function(){var e=this;return HTML.DIV({class:"modal fade creator-modal",id:"initiate_approval"},"\n\t\t",HTML.DIV({class:"modal-dialog slds-modal slds-fade-in-open"},"\n\t\t\t",HTML.DIV({class:"slds-modal__container"},"\n\t\t\t\t",HTML.HEADER({class:"slds-modal__header"},"\n\t\t\t\t\t",HTML.DIV({"data-dismiss":"modal"},"\n\t\t\t\t\t\t",Blaze._TemplateWith((function(){return{className:Spacebars.call("slds-modal__close slds-button__icon"),iconSize:Spacebars.call("large"),inverse:Spacebars.call(!0),iconCategory:Spacebars.call("utility"),iconName:Spacebars.call("close"),title:Spacebars.call(Spacebars.dataMustache(e.lookup("_"),"close")),variant:Spacebars.call("icon")}}),(function(){return Spacebars.include(e.lookupTemplate("steedos_button"))})),"\n\t\t\t\t\t"),"\n\t\t\t\t\t",HTML.Raw('

\n\t\t\t\t\t\t选择流程发起审批\n\t\t\t\t\t

'),"\n\t\t\t\t"),"\n\n\t\t\t\t",HTML.DIV({class:"slds-modal__content slds-p-around_medium",style:"font-size: 17px;"},"\n\t\t\t\t\t",Blaze.Each((function(){return Spacebars.call(e.lookup("flows"))}),(function(){return["\n\t\t\t\t\t",HTML.DIV({class:"weui_cells_weui_cells_access"},"\n\t\t\t\t\t\t",HTML.A({class:"weui_cell","data-flow":function(){return Spacebars.mustache(e.lookup("flow_id"))}},"\n\t\t\t\t\t\t\t",HTML.I({class:"ion ion-ios-compose-outline"}),HTML.CharRef({html:" ",str:" "}),HTML.CharRef({html:" ",str:" "}),Blaze.View("lookup:flow_name",(function(){return Spacebars.mustache(e.lookup("flow_name"))})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t\t"]})),"\n\n\t\t\t\t"),"\n\n\t\t\t"),"\n\t\t"),"\n\t")}))},"initiate_approval.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.initiate_approval.helpers({flows:function(){return _.where(Creator.object_workflows,{object_name:this.object_name,can_add:!0})}}),Template.initiate_approval.events({"click .weui_cell":function(e,t){var r,o,a,n,i,s,c;o=e.currentTarget.dataset.flow,a=t.data.object_name,n=t.data.record_id,i=[{o:a,ids:[n]}],(s={}).methodOverride="POST",s["X-User-Id"]=Meteor.userId(),s["X-Auth-Token"]=Accounts._storedLoginToken(),c=Steedos.absoluteUrl()+"api/object/workflow/drafts?"+$.param(s),r={Instances:[{flow:o,applicant:Meteor.userId(),space:Session.get("spaceId"),record_ids:i}]},r=JSON.stringify(r),$(document.body).addClass("loading"),$.ajax({url:c,type:"POST",async:!0,data:r,dataType:"json",processData:!1,contentType:"application/json",success:function(e,r){var o;$(document.body).removeClass("loading"),e.errors?e.errors.forEach((function(e){toastr.error(e.errorMessage)})):(o=e.inserts[0],Steedos.openWindow(Steedos.absoluteUrl("/app/"+FlowRouter.current().params.app_id+"/instances/view/"+o._id+"?display="+FlowRouter.current().queryParams.display+"&side_object=instances&side_listview_id=draft")),Modal.hide(t),SteedosUI.reloadRecord(a,n),FlowRouter.reload())},error:function(e,t,r){$(document.body).removeClass("loading"),toastr.error(t)}})}})},"template.amis_action.js":function e(){Template.__checkName("amis_action"),Template.amis_action=new Template("Template.amis_action",(function(){var e=this;return HTML.LI({class:function(){return["steedos-amis-button steedos-button-",Spacebars.mustache(e.lookup("objectName")),"-",Spacebars.mustache(e.lookup("name"))," ",Spacebars.mustache(e.lookup("buttonClassName"))]}})}))},"amis_action.js":function e(){const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;(e=e||"")&&"#"===e[0]?e=t.pathname+t.search+e:e&&"?"===e[0]&&(e=t.pathname+e);const r=e.indexOf("?"),o=e.indexOf("#");let a=~r?e.substring(0,r):~o?e.substring(0,o):e,n=~r?e.substring(r,~o?o:void 0):"",i=~o?e.substring(o):t.hash;if(a){if("/"!=a[0]&&!/^https?\:\/\//.test(a)){let e;const r=t.pathname.split("/");let o;for(r.pop();o=/^\.\.?\//.exec(a);)"../"===o[0]&&r.pop(),a=a.substring(o[0].length);a=r.concat(a).join("/")}}else a=t.pathname;return a+n+i},r=()=>({theme:"antd",getModalContainer:e=>{let t=document.querySelector("#amisModalContainer");return t||((t=document.createElement("div")).className="amis-scope",t.style.height="0px",t.id="amisModalContainer",document.body.appendChild(t)),t},notify:(e,t)=>{var r,o;(null===(r=t.props)||void 0===r?void 0:r.schema.tpl)?SteedosUI.message[e](null===(o=t.props)||void 0===o?void 0:o.schema.tpl):"string"==typeof t?SteedosUI.message[e](t):console.warn("notify",e,t)},confirm:e=>new Promise((t,r)=>SteedosUI.Modal.confirm({title:e,onOk:()=>{t(!0)},okText:"确认",cancelText:"取消"})),jumpTo:(e,r)=>{if("goBack"===e)return window.history.back();e=t(e),r&&"url"===r.actionType?!1===r.blank?FlowRouter.go(e):window.open(e):r&&e&&r.target?window.open(e,r.target):/^https?:\/\//.test(e)?window.location.replace(e):FlowRouter.go(e)}});Template.amis_action.helpers({objectName:()=>{var e=Template.instance().data;return e.button.object||e.button.object_name},name:()=>{var e;return Template.instance().data.button.name},buttonClassName:()=>{var e;return Template.instance().data.buttonClassName}}),Template.amis_action.onRendered(()=>{var e=Template.instance().data,t=e.button,o=e.buttonClassName,a=e.inMore,n=e.data,i=e.env,s=".steedos-button-"+(t.object||e.button.object_name)+"-"+t.name;const c=()=>{var e=Creator.USER_CONTEXT?Creator.USER_CONTEXT.user.language:null;return e?e="cn"===(e="zh"===(e="en"===(e=e.replace("_","-"))?"en-US":e)?"zh-CN":e)?"zh-CN":e:"zh-CN"};Promise.all([waitForThing(window,"amis")]).then(()=>{var e=amisRequire("amis/embed"),o=t.amis_schema?_.isString(t.amis_schema)?JSON.parse(t.amis_schema):t.amis_schema:{type:"service",bodyClassName:"p-0",body:[{type:"button",label:t.label}],regions:["body"]};const a=__meteor_runtime_config__.ROOT_URL,l=lodash.defaultsDeep({},{data:n},{data:{app_id:n.appId,object_name:n.objectName,record_id:n.recordId,formFactor:Steedos.isMobile()?"SMALL":"LARGE",context:{rootUrl:Meteor.isCordova?a.endsWith("/")?a.substr(0,a.length-1):a:"",tenantId:Creator.USER_CONTEXT.spaceId,userId:Creator.USER_CONTEXT.userId,authToken:Creator.USER_CONTEXT.user.authToken,user:Creator.USER_CONTEXT.user},global:{userId:Creator.USER_CONTEXT.userId,spaceId:Creator.USER_CONTEXT.spaceId,user:Creator.USER_CONTEXT.user,now:new Date},scopeId:o.name||o.id,$scopeId:o.name||o.id}});return o=lodash.defaultsDeep(l,o),e.embed(s,o,{locale:c()},Object.assign(r(),i))})})}},layout:{"template.layout.js":function e(){Template.__checkName("creatorLayout"),Template.creatorLayout=new Template("Template.creatorLayout",(function(){var e=this;return Blaze.If((function(){return Spacebars.call(e.lookup("isloading"))}),(function(){return"\n\t"}),(function(){return["\n\t\t",HTML.DIV({class:"steedos skin-blue-light creator h-full flex flex-col relative overflow-hidden"},"\n\t\t\t\n\n\t\t\t",HTML.HEADER({id:"header",class:"steedos-global-header-root flex-none"}),"\n\n\t\t\t\t\n\t\t\t",HTML.DIV({id:"main",class:function(){return["creator-content-wrapper ",Blaze.If((function(){return Spacebars.call(e.lookup("split"))}),(function(){return"split"}))]}},"\n\n\n\n\t\t\t\t",HTML.Comment(' {{#if split}}\n\t\t\t\t\t
\n\t\t\t\t\t\t{{> Template.dynamic template="creatorSidebar"}}\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{{> Template.dynamic template=main}}\n\t\t\t\t\t
\n\t\t\t\t{{else}} '),"\n\t\t\t\t\t",Blaze._TemplateWith((function(){return{template:Spacebars.call(e.lookup("main"))}}),(function(){return Spacebars.include((function(){return Spacebars.call(Template.__dynamic)}))})),"\n\t\t\t\t",HTML.Comment(" {{/if}} "),"\n\t\t\t"),"\n\t\t\t",HTML.FOOTER({id:"footer",class:"steedos-global-footer-root flex-none"}),"\n\t\t"),"\n",HTML.Comment(' \n\t\t
\n\t\t\t{{> status}}\n\t\t
'),"\n\t\t"]}))}))},"layout.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;Template.creatorLayout.helpers(Creator.helpers),Template.creatorLayout.helpers({isloading:function(){return Creator.isloading()},collection:function(){return Session.get("action_collection")},fields:function(){return Session.get("action_fields")},collectionName:function(){return Session.get("action_collection_name")},doc:function(){return Session.get("action_record_id")},saveAndInsert:function(){var e,t,r,o;return!!(e=Session.get("action_save_and_insert"))&&(r=(t=Session.get("action_collection")).replace(/Creator.Collections./,""),null!=(o=Creator.getPermissions(r))?o.allowCreate:void 0)},split:function(){var e,t,r;return!(!(e=Creator.getApp())||"admin"!==e._id)&&(r=/\/app\/\w+\/search\//,t=Session.get("router-path"),!r.test(t))},object_name:function(){return Session.get("object_name")},recordId:function(){return Session.get("recordId")},title:function(){return"编辑"},triggerLabel:function(){return"编辑"},onAddFinish:function(){return function(e){var t,r,o,a,n;return a=e[0],n="/app/"+(t=Session.get("app_id"))+"/"+(r=Session.get("object_name"))+"/view/"+(o=a._id),FlowRouter.go(n),!0}},onEditFinish:function(){return function(){return setTimeout((function(){return FlowRouter.reload()}),1),!0}}}),Template.creatorLayout.onRendered((function(){var e;return e=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),this.autorun((function(){return Steedos.Page.Header.render(Session.get("app_id"),e)})),this.autorun((function(){return Steedos.Page.Footer.render(Session.get("app_id"),e)})),this.autorun((function(){var e,t;if(t=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),window.SteedosUI&&(e=SteedosUI.refs.globalHeader))return Meteor.setTimeout((function(){var t;try{return e.updateProps({location:FlowRouter.current()},(function(){return console.log("amisScope.updateProps callback.......")}))}catch(r){t=r}}),100)})),this.autorun((function(){var e,t;if(t=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),window.SteedosUI&&(e=SteedosUI.refs.globalFooter))return Meteor.setTimeout((function(){var t;try{return e.updateProps({location:FlowRouter.current()},(function(){return console.log("amisScope.updateProps callback.......")}))}catch(r){t=r}}),100)}))})),r=function(){var e;return"calendar"===(null!=(e=Creator.getListView(Session.get("object_name",Session.get("list_view_id"))))?e.type:void 0)},AutoForm.hooks({creatorAddForm:{onSuccess:function(e,t){var o,a,n,i;if($("#afModal").modal("hide"),"/app/:app_id/:object_name/calendar/"!==FlowRouter._current.route.path&&!r())return"post"===t.type?(i="/app/"+(o=Session.get("app_id"))+"/"+(a=t.object_name)+"/view/"+(n=t._id),FlowRouter.go(i)):void 0}}},!1),AutoForm.hooks({creatorEditForm:{onSuccess:function(e,t){var o,a,n,i,s,c;if($("#afModal").modal("hide"),!r())return"post"===t.type&&(c="/app/"+(o=Session.get("app_id"))+"/"+(a=t.object_name)+"/view/"+(s=t._id),FlowRouter.go(c)),this.docId&&t.object_name?(i=Creator.getObjectUrl(t.object_name,this.docId),n=Creator.getObjectRecordName(this.updateDoc.$set,t.object_name),Creator.updateTempNavLabel(t.object_name,i,n)):void 0}}},!1),AutoForm.hooks({creatorCellEditForm:{onSuccess:function(e,t){var r,o;if($("#afModal").modal("hide"),this.docId&&t.object_name)return o=Creator.getObjectUrl(t.object_name,this.docId),r=Creator.getObjectRecordName(this.updateDoc.$set,t.object_name),Creator.updateTempNavLabel(t.object_name,o,r)}}},!1),o=function(e,t){return FlowRouter.current().route.path.endsWith("/:record_id")?FlowRouter.reload():window.refreshGrid()},AutoForm.hooks({creatorAddRelatedForm:{onSuccess:o}},!1)},"template.loading.js":function e(){Template.__checkName("creatorLoading"),Template.creatorLoading=new Template("Template.creatorLoading",(function(){var e=this;return HTML.Raw('
\n
\n Loading\n
\n
\n
\n
')}))},"template.empty_layout.js":function e(){Template.__checkName("empty_layout"),Template.empty_layout=new Template("Template.empty_layout",(function(){var e=this;return Blaze._TemplateWith((function(){return{template:Spacebars.call(e.lookup("main"))}}),(function(){return Spacebars.include((function(){return Spacebars.call(Template.__dynamic)}))}))}))}},mobile:{"template.admin.js":function e(){Template.__checkName("adminMenu"),Template.adminMenu=new Template("Template.adminMenu",(function(){var e=this;return HTML.DIV({class:"admin-menu mobile-template-container",id:"admin_menu"},"\n\n ",HTML.DIV({class:"admin-menu-content mobile-template-content"},"\n\t\t\t",HTML.DIV({class:"weui-panel weui-panel_access user-info"},"\n\t\t\t\t",HTML.A({class:"weui-media-box weui-media-box_appmsg"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box__hd",style:function(){return["background: url(",Spacebars.mustache(e.lookup("avatarURL")),")"]}},"\n\t\t\t\t\t\t",HTML.Raw('\x3c!-- --\x3e'),"\n\t\t\t\t\t"),"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box__bd"},"\n\t\t\t\t\t\t",HTML.H4({class:"weui-media-box__title"},Blaze.View("lookup:name",(function(){return Spacebars.mustache(e.lookup("name"))}))),"\n\t\t\t\t\t\t",HTML.P({class:"weui-media-box__desc"},"\n\t\t\t\t\t\t\t",Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Company")})),":",Blaze.View("lookup:spaceName",(function(){return Spacebars.mustache(e.lookup("spaceName"))})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n\n\t\t\t",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access btn-switch-space"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Switch Company")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",HTML.SPAN({class:"space-name"},Blaze.View("lookup:spaceName",(function(){return Spacebars.mustache(e.lookup("spaceName"))}))),"\n\t\t\t\t\t\t\t\t",HTML.Raw(''),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\n\n\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access btn-change-password"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Change Password")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",HTML.Raw(''),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t"),"\n\t\t\t"),"\n\n ",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access log-out steedos-logout"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Logout")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n "),"\n ")}))},"admin.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.adminMenu.helpers({avatarURL:function(e,t,r,o){var a,n;return n=Meteor.userId(),(e=null!=(a=Creator.getCollection("users").findOne({_id:n}))?a.avatar:void 0)?Steedos.absoluteUrl("avatar/"+Meteor.userId()+"?avatar="+e):Creator.getRelativeUrl("/images/default-avatar.png")},name:function(){var e;return null!=(e=Creator.getCollection("users").findOne())?e.name:void 0},logoutUrL:function(){return Creator.getRelativeUrl("/accounts/a/#/logout")},spaceName:function(){var e;return Session.get("spaceId")&&(e=db.spaces.findOne(Session.get("spaceId")))?e.name:t("none_space_selected_title")}}),Template.adminMenu.events({"click .steedos-logout":function(){return Steedos.logout()},"click .admin-menu-back":function(e,t){var r;return r=urlQuery[urlQuery.length-2],urlQuery.pop(),t.$("#admin_menu").animateCss("fadeOutRight",(function(){return Blaze.remove(t.view),r?FlowRouter.go(r):FlowRouter.go("/app")}))},"click .btn-switch-space":function(e,t){return FlowRouter.go("/user_settings/switchspace")},"click .btn-change-password":function(e,t){return Modal.show("reset_password_modal")},"click .btn-change-avatar":function(e,t){return t.$("#mobile-avator-upload").click()},"change #mobile-avator-upload":function(e,r){var o;if(o=e.target.files[0])return $("body").addClass("loading"),db.avatars.insert(o,(function(e,r){return e?(console.error(e),toastr.error(t(e.reason)),$(document.body).removeClass("loading")):setTimeout((function(){return Meteor.call("updateUserAvatar",r._id,(function(e,r){return(null!=r?r.error:void 0)?($(document.body).removeClass("loading"),toastr.error(t(r.message))):$(document.body).removeClass("loading")}))}),3e3)}))}})},"template.switch_space.js":function e(){Template.__checkName("switchSpace"),Template.switchSpace=new Template("Template.switchSpace",(function(){var e=this;return HTML.DIV({class:"switch-space mobile-template-container",id:"switch_space"},"\n\t\t\n\t\t",HTML.DIV({class:"switch-space-content mobile-template-content"},"\n\t\t\t",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",Blaze.Each((function(){return Spacebars.call(e.lookup("spaces"))}),(function(){return["\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access switchSpace"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:name",(function(){return Spacebars.mustache(e.lookup("name"))}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",Blaze.If((function(){return Spacebars.dataMustache(e.lookup("current_space"),e.lookup("_id"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",HTML.SPAN({class:"weui-icon-success-no-circle"}),"\n\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n\t\t"),"\n\t")}))},"switch_space.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.switchSpace.helpers({spaces:function(){return db.spaces.find()},current_space:function(e){return e===Session.get("spaceId")}}),Template.switchSpace.events({"click .switchSpace":function(e,t){return Steedos.setSpaceId(this._id),FlowRouter.go("/app")},"click .switch-space-back":function(e,t){var r;return r=urlQuery[urlQuery.length-2],urlQuery.pop(),t.$("#switch_space").animateCss("fadeOutRight",(function(){return Blaze.remove(t.view),r?FlowRouter.go(r):FlowRouter.go("/app")}))}})}},"core.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},o;Creator.Pages={},o=["owner","company_id","company_ids","locked"],Steedos.addPage=function(e,t){if(e)return Creator.Pages[e]=t},Creator.getLayout=function(e){return e||(e=Session.get("app_id")),"steedos"===e?"steedosLayout":"creatorLayout"},Creator.createObject=function(e,t){var r,o;return o=Creator.getObject(e),r="Creator.Collections."+e,Session.set("action_collection",r),Session.set("action_save_and_insert",!0),Session.set("action_collection_name",o.label),Session.set("action_object_name",e),Session.set("action_fields",void 0),Session.set("cmDoc",t),Meteor.defer((function(){return $(".creator-add").click()}))},Meteor.isClient&&(Creator.TabularSelectedIds={},Meteor.autorun((function(){var e,t;if(e=Session.get("list_view_id"),t=Session.get("object_name"))return Creator.TabularSelectedIds[t]=[]})),Creator.remainCheckboxState=function(e){var t,r,o,a,n,i,s;if((t=e.find(".select-all")).length&&(a=(o=null!=(n=t[0])?n.dataset:void 0).objectName,i=Creator.TabularSelectedIds[a]))return(r=e.find(".select-one")).each((function(e,t){var r;return r=i.indexOf(t.dataset.id)>-1,$(t).prop("checked",r)})),(s=i.length)>0&&r.length!==s?t.prop("indeterminate",!0):(t.prop("indeterminate",!1),0===s?t.prop("checked",!1):s===r.length?t.prop("checked",!0):void 0)},Creator.isListViewFilterEditable=function(e){return!e.shared||e.shared&&e.owner===Steedos.userId()},Creator.getODataFilter=function(e,t,r){var o,a,n,i,s,c,l,u,d,p,f,m,g;if(g=Meteor.userId(),m=Session.get("spaceId"),a=Creator.Collections.object_listviews.findOne(e))(l=Creator.isListViewFilterEditable(a))||((o={}).filter_scope=a.filter_scope,o.filters=a.filters);else if(o={},m&&g){if(!(u=Creator.getListView(t,e)))return["_id","=",-1];o.filter_scope=u.filter_scope,o.filters=u.filters}if(Creator.isCloudAdminSpace(m)&&_.include(["users","space_users","spaces"],t)&&delete o.filters,o&&(r?(o.filter_scope&&(r.filter_scope=o.filter_scope),_.isFunction(r.filters)||(null!=(d=r.filters)?d.length:void 0)?(_.isFunction(o.filters)||(null!=(p=o.filters)?p.length:void 0))&&(r.filters=[[r.filters,"and",o.filters]]):r.filters=o.filters):r=o),r||(r={}),n=r.filter_logic,i=r.filter_scope,s=r.filters,f=[],_.isFunction(s)&&(s=s()),a?n?(c=Creator.formatLogicFiltersToDev(s,n),f.length?f.push("and",c):f.push(c)):s&&s.length>0&&(f.length>0&&f.push("and"),(s=Creator.formatFiltersToDev(s,t))&&s.length>0&&(s=[s]),_.each(s,(function(e){return f.push(e)}))):m&&g&&("users"!==t||Creator.isCloudAdminSpace(m)||f.push(["_id","=",g]),s&&(s=Creator.formatFiltersToDev(s,t))&&s.length>0&&(s=[s],f.length>0&&f.push("and"),_.each(s,(function(e){if("spaces"!==t||e.length>0&&"_id"!==e[0])return f.push(e)})))),"mine"===i&&(f.length>0&&f.push("and"),f.push(["owner","=",g])),0!==f.length)return f},Creator.getODataRelatedFilter=function(e,t,r,o,a){var n,i,s,c,l,u,d,p,f,m,g,h,v,b,w,S,C;if(r&&(S=Steedos.spaceId(),C=Meteor.userId(),v=a?[a]:Creator.getRelatedList(e,r),h="",u="",w=[],n=function(e){return w.length>0&&w.push("and"),w.push(e)},_.each(v,(function(e){if(e.object_name===t)return e.filtersFunction?u=e.filtersFunction:h=e.related_field_name})),h||u)){if(h=h.replace(/\./g,"/"),o&&(i=Creator.getListView(t,o))){if(s=i.filter_logic,c=i.filter_scope,l=i.filters,u)return l=u(Creator.odata.get(e,r));s?(d=Creator.formatLogicFiltersToDev(l,s),n(d)):l&&l.length>0&&(l=_.map(l,(function(e){return _.isObject(e)&&!_.isArray(e)?Meteor.isClient&&_.isString(null!=e?e._value:void 0)?[e.field,e.operation,Creator.eval("("+e._value+")")()]:[e.field,e.operation,e.value]:e})),(l=Creator.formatFiltersToDev(l,t))&&l.length>0&&(l=[l]),_.each(l,(function(e){return n(e)})))}if("cfs.files.filerecord"===t&&n(["metadata/space","=",S]),m=Creator.getObject(t),p=t===e&&(null!=m?m.enable_tree:void 0),"cms_files"===t?(n(["parent/o","=",e]),n(["parent/ids","=",r])):"objects"===e?n([h,"=",r]):p||((b=null!=m?m.fields:void 0)&&(g=b[h]),g&&g.reference_to_field&&(f=Creator.odata.get(e,r,g.reference_to_field),"permission_fields"===t&&"object_fields"===e&&n(["object_name","=",f.object]),f&&f[g.reference_to_field]&&(r=f[g.reference_to_field])),!g||"master_detail"!==g.type&&"lookup"!==g.type?g&&"grid"===g.type?(n([h+".o","=",e]),n([h+".ids","=",r])):n([h,"=",r]):_.isFunction(g.reference_to)?_.isArray(g.reference_to())?n([h+".ids","=",r]):n([h,"=",r]):_.isArray(g.reference_to)?n([h+".ids","=",r]):n([h,"=",r])),"mine"===c&&n(["owner","=",C]),0!==w.length)return w}},Creator.getJsReportUrlQuery=function(){var e,t,r;return r="?space_id="+Steedos.getSpaceId(),(t=Tracker.nonreactive((function(){return Session.get("filter_items")})))&&(r+="&user_filters="+(e=encodeURI(JSON.stringify(t)))),r},Creator.getJsReportViewUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/web/viewer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.getJsReportExcelUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/api/report_db/"+e+"/excel"),t+=Creator.getJsReportUrlQuery()},Creator.getJsReportPdfUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/api/report_db/"+e+"/pdf"),t+=Creator.getJsReportUrlQuery()},Creator.getStimulsoftReportViewUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/stimulsoft/web/viewer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.getStimulsoftReportDesignerUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/stimulsoft/web/designer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.objectOdataSelectFields=function(e){var t,r;return t=e.fields,r=(r=_.keys(t)).filter((function(e){return e.indexOf(".")<0})),e&&["default","meteor"].indexOf(e.database_name||"default")>-1&&(r=_.union(r.concat(o))),r.join(",")},Creator.objectOdataExpandFields=function(e,t){var r,o;return r=[],o=e.fields,t||(t=_.keys(o)),_.each(t,(function(e){var t,a,n;if(("master_detail"===(null!=(a=o[e])?a.type:void 0)||"lookup"===(null!=(n=o[e])?n.type:void 0))&&(o[e].reference_to?(t=o[e].reference_to,_.isFunction(t)&&(t=t())):_.isFunction(o[e].optionsFunction)&&(t=o[e].optionsFunction({}).getProperty("value")),_.isArray(t)||(t=[t]),t=_.map(t,(function(e){var t,r;return t=(null!=(r=Creator.getObject(e))?r.NAME_FIELD_KEY:void 0)||"name"})),t=_.compact(t),(t=(t=_.uniq(t)).join(","))&&e.indexOf("$")<0))return e.indexOf(".")<0?r.push(e):r.push(e.replace(".","/"))})),r.join(",")},Creator.relatedObjectFileUploadHandler=function(e,r){var o,a,n,i,s,c,l,u,d,p;for(u=null!=(o=e.currentTarget.dataset)?o.parent:void 0,s=e.currentTarget.files,c=0,d=Session.get("record_id"),l=Session.get("object_name"),p=Session.get("spaceId");c0&&(t=!0),!t})),t},Creator.pushCurrentPathToUrlQuery=function(){var e;if((e=FlowRouter.current().path)!==urlQuery[urlQuery.length-1])return urlQuery.push(e)},Creator.getStandardQuery=function(e,t){var r,o,a,n,i,s;if(o=Creator.getObject(e).fields,t&&t.query&&_.size(t.query)&&t.object_name===e)return a=t.object_name,i=t.query,s=[],t.is_mini?_.each(i,(function(e,t){var r,n,i,c;if(o[t])if(r=Creator.getFieldDataType(o,t),["currency","number"].includes(r)){if(!_.isString(e))return s.push([t,"=",e]);if(c=e.trim().split(" "),n=[],c.forEach((function(e){var r,o;try{if(o=Number(e),_.isNumber(o)&&!_.isNaN(o))return n.push([t,"=",o])}catch(a){return r=a,console.error(r)}})),n.length>0)return s.push(Creator.formatFiltersToDev(n,a,{is_logic_or:!1}))}else if(["text","textarea","html","select","autonumber","url","email"].includes(r))if(_.isString(e)){if(c=e.trim().split(" "),i=[],c.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),"select"===r&&o[t].multiple?i.push([t,"=",e]):i.push([t,"contains",e])})),i.length>0)return s.push(Creator.formatFiltersToDev(i,a,{is_logic_or:!1}))}else if(_.isArray(e))return s.push([t,"=",e])})):_.each(i,(function(e,t){var r,n,i,c,l,u;if(o[t]){if(n=Creator.getFieldDataType(o,t),["date","datetime","time","currency","number"].includes(n))return s.push([t,">=",e]);if(["text","textarea","html"].includes(n)){if(_.isString(e)){if(u=e.trim().split(" "),l=[],u.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),l.push([t,"contains",e])})),l.length>0)return s.push(Creator.formatFiltersToDev(l,a,{is_logic_or:!1}))}else if(_.isArray(e))return s.push([t,"=",e])}else{if(["boolean"].includes(n))return s.push([t,"=",JSON.parse(e)]);if(!["lookup","master_detail"].includes(n))return s.push([t,"=",e]);if(i=null!=(r=o[t])?r.reference_to:void 0,_.isFunction(i)&&(i=i()),!_.isArray(i))return s.push([t,"=",e]);if((null!=e?e.ids:void 0)&&s.push({field:t+".ids",operation:"=",value:null!=e?e.ids:void 0}),null!=e?e.o:void 0)return c=Creator.getObject(null!=e?e.o:void 0),s.push({field:t+".o",operation:"=",value:c._collection_name})}}else if(t=t.replace(/(_endLine)$/,""),n=Creator.getFieldDataType(o,t),o[t]&&["date","datetime","time","currency","number"].includes(n))return s.push([t,"<=",e])})),n={is_logic_or:r=!!t.is_mini},Creator.formatFiltersToDev(s,a,n);delete Session.keys.standard_query},Creator.getSafeObjectUrl=function(e,t,r){var o;return _.isString(e)?(o="users"===e?Creator.getObject("space_users"):Creator.getObject(e)).permissions.get().allowRead?Creator.getObjectUrl(e,t,r):void 0:""},Creator.formatFileSize=function(e){var t,r;return r="KB",(t=e/1024)>1024&&(t/=1024,r="MB"),t>1024&&(t/=1024,r="GB"),t.toFixed(2)+r},Creator.getTableCellData=function(e){var r,o,a,n,i,s,c,l,u,d,p,f,m,g,h,v,b,w,S,C,y,j,T,R;if(d=[],R=e.val,g=e.object_name,y=(j=Creator.getObject(g)).NAME_FIELD_KEY,"organizations"===g&&(y="name"),o=e.field){if(a=o.type,"formula"===o.type)a=o.data_type;else if("select"===o.type&&o.data_type&&"text"!==o.data_type)a=o.data_type;else if("summary"===o.type)if("count"===o.summary_type)a="number";else{if(!(C=Creator.getObject(o.summary_object)))throw new Meteor.Error(500,"The summary_object '"+o.summary_object+"' is not found for the field '"+o.name+"'");if(!(S=C.fields[o.summary_field]))throw new Meteor.Error(500,"The summary_field '"+o.summary_field+"' is not found for the field '"+o.name+"'");"formula"!==(a=S.type)&&"summary"!==a||(a=S.data_type),_.isNumber(o.scale)||(r=function(e){var t,o;return _.isNumber(e.scale)?e.scale:"summary"===e.type&&(o=Creator.getObject(e.summary_object))?(t=o.fields[e.summary_field])?r(t):null:void 0},o.scale=r(S))}return v=null!=(h=e.field)?h.reference_to:void 0,_.isFunction(v)&&(v=v()),"grid"===a?d.push({isTable:!0}):"location"===a?d.push({value:(null!=R?R.address:void 0)||"",id:e._id}):"lookup"!==a&&"master_detail"!==a||_.isEmpty(R)?"image"===a?"string"==typeof R?d.push({value:R,id:e._id,isImage:!0,baseUrl:Creator.getRelativeUrl("/api/files/images")}):d.push({value:R,id:e._id,isImages:!0,baseUrl:Creator.getRelativeUrl("/api/files/images")}):"avatar"===a?"string"==typeof R?d.push({value:R,id:e._id,isImage:!0,baseUrl:Creator.getRelativeUrl("/api/files/avatars")}):d.push({value:R,id:e._id,isImages:!0,baseUrl:Creator.getRelativeUrl("/api/files/avatars")}):"code"===a?(R=R?"...":"",d.push({value:R,id:e._id})):"password"===a?(R=R?"******":"",d.push({value:R,id:e._id})):"url"===a?((null!=(f=R)?f.startsWith("http"):void 0)||(f=Steedos.absoluteUrl(encodeURI(f))),d.push({value:R,href:f,id:e._id,isUrl:!0})):"email"===a?d.push({value:R,href:f,id:e._id,isEmail:!0}):"boolean"===a||"toggle"===a?(R=e.val?t("YES"):t("NO"),d.push({value:R,checked:e.val,id:e._id,isBoolean:!0})):"select"===a?(s=o.allOptions||o.options,u=e.doc||{},c=e.record_val,_.isFunction(o.options)&&(s=o.options(c||u)),_.isFunction(o.optionsFunction)&&(s=o.optionsFunction(c||u)),w=e.val,_.isArray(w)||(w=[w]),m=[],_.each(s,(function(e){if(_.indexOf(w,e.value)>-1)return m.push({label:e.label,value:e.value})})),R=(R=m.map((function(e){return e.label}))).join(","),d.push({value:R,items:m,id:e._id,isSelects:!0})):(R&&["datetime","date","time"].indexOf(a)>=0?"odata"===e.agreement?"datetime"===a?"string"==typeof e.val&&/\d+Z$/.test(e.val)?R=moment(e.val).format("YYYY-MM-DD H:mm"):(T=moment().utcOffset()/60,R=moment(e.val).add(T,"hours").format("YYYY-MM-DD H:mm")):"date"===a&&(R="string"==typeof e.val&&/\d+Z$/.test(e.val)?moment.utc(e.val).format("YYYY-MM-DD"):moment(e.val).format("YYYY-MM-DD")):"datetime"===a?R=moment(e.val).format("YYYY-MM-DD H:mm"):"date"===a?R=moment.utc(e.val).format("YYYY-MM-DD"):"time"===a&&(R=moment.utc(e.val).format("HH:mm")):null===e.val?R="":"lookup"===a?_.isFunction(o.optionsFunction)&&(u=e.doc||{},(l=R)&&(_.isArray(l)||(l=[l]),(b=_.filter(o.optionsFunction(u),(function(e){return l.indexOf(e.value)>-1})))&&(R=b.getProperty("label")))):"filesize"===a?R=Creator.formatFileSize(R):["number","currency","percent"].indexOf(a)>-1&&_.isNumber(R)?(p=0,p=_.isNumber(o.scale)?o.scale:"currency"===a?2:0,"percent"===a&&(R*=100),R=Steedos.numberToString(R,p),"percent"===a&&(R+="%")):"markdown"===a?_.isEmpty(R)||(R=Spacebars.SafeString(marked(R))):"html"===a?_.isEmpty(R)||(R=Spacebars.SafeString(R)):"textarea"===a&&R&&(R=(R=R.replace(/\n/g,"\n
")).replace(/ /g," ")),"record_details"!==e.parent_view&&e.field_name===y&&(f=Creator.getObjectUrl(e.object_name,e._id)),d.push({value:R,href:f,id:e._id,type:a})):_.isFunction(o.optionsFunction)&&"company"!==v?(u=e.doc||{},c=e.record_val,(l=R)&&(l=_.isArray(l)?l.map((function(e){return _.isObject(e)?e._id:e})):_.isObject(l)?[l._id]:[l],i=o.optionsFunction(c||u),(b=_.filter(i,(function(e){return l.indexOf(null!=e?e.value:void 0)>-1})))&&(R&&_.isArray(R)&&_.isArray(b)&&(b=Creator.getOrderlySetByIds(b,R,"value")),R=b.getProperty("label"))),v?"objects"===v?_.each(b,(function(t){var r,o,a;return a=t.label,(null!=(r=Creator.getObject(t.value))?r._id:void 0)?(o=Creator.getSafeObjectUrl(v,r._id),d.push({reference_to:v,rid:a,value:a,id:e._id,href:o})):d.push({value:R,id:e._id})})):(n=e.val,_.isArray(n)||(n=n?[n]:[]),_.each(n,(function(t){var r,o,a;return _.isString(t)?(b=_.filter(i,(function(e){return t===(null!=e?e.value:void 0)})),d.push({value:b.getProperty("label"),id:e._id})):(v=t["reference_to._o"]||v,o=t._id,a=t._NAME_FIELD_VALUE,r=Creator.getSafeObjectUrl(v,o),d.push({reference_to:v,rid:o,value:a,href:r,id:e._id}))}))):d.push({value:R,id:e._id})):(_.isArray(R)||(R=R?[R]:[]),_.each(R,(function(t){var r,o,a;if(t)return v=t["reference_to._o"]||v,o=t._id,a=t._NAME_FIELD_VALUE,_.isString(t)&&(o=t,a=t),r=Creator.getSafeObjectUrl(v,o),d.push({reference_to:v,rid:o,value:a,href:r,id:e._id})}))),d}},Creator.openSafeObjectUrl=function(e,t){var r;return Steedos.isMobile()||(r=Creator.getSafeObjectUrl(e,t,"-"))&&window.open(r,"_blank","width=800, height=600, left=50, top= 50, toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes"),"undefined"!=typeof event&&null!==event&&event.stopPropagation(),"undefined"!=typeof event&&null!==event&&event.preventDefault(),!1},Creator.getAppLabel=function(e){return e||(e=Creator.getApp()),e?e.label?t(e.label):t(e.name):""},Creator.measureWidth=_.memoize((function(e,t,r){var o,a,n,i;return(o=arguments.callee.canvas)||(o=document.createElement("canvas"),(n=document.createDocumentFragment()).appendChild(o),arguments.callee.canvas=o),(a=o.getContext("2d")).font=t,i=a.measureText(e).width,r&&i>r?r:i})),Creator.showPreviewButton=function(e){var t,r,o,a,n;return!!((null!=(n=null!=(t=Meteor.settings)&&null!=(r=t.public)?r.webservices:void 0)&&null!=(o=n.officeOnline)?o.url:void 0)&&Steedos.isOfficeFile(e)||(null!=n&&null!=(a=n.pdfOnline)?a.url:void 0)&&Steedos.isPdfFile(e))},Creator.officeOnlinePreview=function(e,t){var r,o,a,n,i,s,c,l,u,d,p,f,m,_,g,h;return a=null!=(s=Meteor.settings)&&null!=(c=s.public)&&null!=(l=c.webservices)&&null!=(u=l.officeOnline)?u.url:void 0,i=null!=(d=Meteor.settings)&&null!=(p=d.public)&&null!=(f=p.webservices)&&null!=(m=f.pdfOnline)?m.url:void 0,a&&""!==a||i&&""!==i?(h=Meteor.userId(),_=Steedos.spaceId(),r={authToken:o=Accounts._storedLoginToken()},e=e+"?token="+(g=window.btoa(JSON.stringify(r))),Steedos.isPdfFile(t)?(n=e,i&&""!==i&&(n=i+encodeURIComponent(e)),Steedos.openWindow(n)):(n=a+encodeURIComponent(e),Steedos.openWindow(n))):(toastr.error(TAPi18n.__("creator_office_online_web_url_required")),!1)},Creator.isImageAttachment=function(e){var t,r;return!(e.split(".").length<2)&&(t=e.split(".").pop().toLowerCase(),-1!==(r=["png","jpg","jpeg","bmp","gif","webp","psd","svg","tiff"]).indexOf(t))},Creator.isHtmlAttachment=function(e){var t,r;return!(e.split(".").length<2)&&(t=e.split(".").pop().toLowerCase(),-1!==(r=["html","htm"]).indexOf(t))}),Meteor.startup((function(){return $(document).on("click",(function(e){return $(e.target).closest(".slds-table td").length<1?$(".slds-table").addClass("slds-no-cell-focus"):$(".slds-table").removeClass("slds-no-cell-focus")})),$(window).resize((function(){if($(".list-table-container table.dataTable").length)return $(".list-table-container table.dataTable thead th").each((function(){var e;return e=$(this).outerWidth(),$(".slds-th__action",this).css("width",e+"px")}))})),$(document).keydown((function(e){if("13"===e.keyCode||"Enter"===e.key){if($(".modal").length>1)return;if("TEXTAREA"!==e.target.tagName||$(e.target).closest("div").hasClass("bootstrap-tagsinput")){if("update"===Session.get("cmOperation"))return e.preventDefault(),e.stopPropagation(),$(".creator-auotform-modals .btn-update").click();if("insert"===Session.get("cmOperation"))return e.preventDefault(),e.stopPropagation(),$(".creator-auotform-modals .btn-insert").click()}}}))}))},"colors.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n,i;n="border-radius: 10px;padding: 1px 6px;display: inline-block;",i=function(e){return 3===(e=e.slice(1)).length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:Number.parseInt(e.slice(0,2),16),g:Number.parseInt(e.slice(2,4),16),b:Number.parseInt(e.slice(4,6),16)}},a=function(e,t,r){var o,a,n,s;return.299*(n=(s=i(e)).r)+.587*(a=s.g)+.114*(o=s.b)>186?r:t},o=function(e,t,r){var o,a,n,s,c,l,u;return(o=.2126*(n=(u=[(c=(l=i(e)).r)/255,(s=l.g)/255,(a=l.b)/255]).map((function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})))[0]+.7152*n[1]+.0722*n[2])>.179?r:t},r=function(e){var t,r;return r=[],t=e.fields,_.each(t,(function(t,a){var i;if(i=t.options,_.isFunction(i)&&(i=i({})),"select"===t.type&&(null!=i?i.length:void 0))return _.each(i,(function(t){var i,s;if(t.color)return i=t.color,/^#/.test(i)||(i="#"+i),s=o(i,"#fff","#333"),r.push(".creator-cell-color-"+e.name+"-"+a+"-"+t.value+"{"+n+"background:"+i+";color:"+s+";}")}))})),r},Creator.appendObjectFieldsColorStyles=function(){var e,t;return $("#object_fields_color_styles").remove(),t=[],_.each(Creator.Objects,(function(e){return t=_.union(t,r(e))})),t.push(".creator-cell-multiple-color{\n\tmargin-right:1px;\n}\n@media (max-width:767px) {\n\t.creator-cell-multiple-color{\n\t\tmargin-right:4px;\n\t}\n}"),e=$('"),$("head").append(e)}},"temp_navs.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},o,a,n,i,s,c,l,u,d,p;s=!1,a=function(){var e;if(e=sessionStorage.getItem("temp_navs"))return e.split(",").map((function(e){var t;return{name:(t=e.split(":"))[0],url:t[1],label:t[2],is_temp:!0}}))},n=function(e,t,r){return sessionStorage.getItem("temp_navs_id")},d=function(e){return sessionStorage.setItem("temp_navs_id",e)},p=function(e){var t,r;return e||(e=[]),t=(r=e.map((function(e){var t;return t=e.name,e.url&&(t+=":"+e.url),e.label&&(t+=":"+e.label),t}))).join(","),sessionStorage.setItem("temp_navs",t)},c=[],o=function(e,t){var r;return r=t||Creator.getObjectUrl(e),c.push(r)},u=function(e,t){var r,o;if(o=t||Creator.getObjectUrl(e),(r=c.indexOf(o))>-1)return c.splice(r,1)},i=function(e,t){var r,o,a,n,i,s;for(r=t||Creator.getObjectUrl(e),o=2,s=6,i=!1;!i&&o<8&&!((a=urlQuery.length-o)<0);)n=urlQuery[a],__meteor_runtime_config__.ROOT_URL_PATH_PREFIX+n!==r?(i=n&&c.indexOf(__meteor_runtime_config__.ROOT_URL_PATH_PREFIX+n)<0,o++):o++;return i?n:null},l=function(e,t,r,a){var n,s,c,l,u,d,p,f,m;return n=Session.get("object_name"),s=Session.get("record_id"),t?(l=(c=Creator.getObjectUrl(n,s))===t)||(l=FlowRouter.current().path===t):l=n===e,l?(d=i(e,t),o(e,t),d?(FlowRouter.go(d),urlQuery.pop(),urlQuery.pop()):((f=r[a])||(f=r[a-1]),f?(m=f.url?f.url:Creator.getObjectUrl(f.name),FlowRouter.redirect(m)):(u=(p=Creator.getAppMenus())[p.length-1],FlowRouter.redirect(u.path)))):o(e,t)},Creator.getTempNavs=function(){var e;return(e=Session.get("temp_navs"))||(e=a())&&Session.set("temp_navs",e),e},Creator.getTempNavsId=function(){var e;return(e=Session.get("temp_navs_id"))||(e=n())&&Session.set("temp_navs_id",e),e},Creator.createTempNav=function(e,t,r){var o,a;if(t||!(["users","cms_files","cfs.files.filerecord"].indexOf(e)>-1))return(a=Creator.getTempNavs())||(a=[]),(o=a.find((function(r){return t?r.name===e&&r.url===t:r.name===e})))?void 0:(a.push({name:e,url:t,label:r,is_temp:!0}),Session.set("temp_navs",a),p(a),u(e,t))},Creator.updateTempNavLabel=function(e,t,r){var o,a;if(t&&r)return(a=Creator.getTempNavs())||(a=[]),(o=a.find((function(r){return r.name===e&&r.url===t})))?(o.label=r,Session.set("temp_navs",a),p(a)):void 0},Creator.removeTempNavItem=function(e,t){var r,o,a;if((a=Session.get("temp_navs"))&&(o=null,r=a.filter((function(r,a){var n;return(n=t?r.name===e&&r.url===t:r.name===e)&&(o=a),!n})),_.isNumber(o)))return s=!0,l(e,t,r,o),Meteor.defer((function(){return Session.set("temp_navs",r),p(r),s=!1})),!0},Creator.resetTempNavsIfNeeded=function(){var e,t,r;if((t=(r=Creator.getTempNavsId())!==(e=Meteor.userId()+":"+Steedos.spaceId()+":"+Session.get("app_id")))&&(Session.set("temp_navs",null),p(null),c.length=0),t||!Session.get("temp_navs_id"))return Session.set("temp_navs_id",e),d(e)},Meteor.startup((function(){if(!Steedos.isMobile())return Tracker.autorun((function(){var e,t;if(Creator.bootstrapLoaded.get()&&(t=Session.get("spaceId"),e=Session.get("app_id"),t&&e))return Creator.resetTempNavsIfNeeded()})),Tracker.autorun((function(e){var r,o,a,n,i,c,l,u,d,p,f,m,g,h,v;if(u=Session.get("object_name"),h=Session.get("tab_name"),p=Session.get("record_id"),i=Creator.getAppMenus(),u&&i&&i.length&&(f=Session.get("record_name"),n=_.pluck(i,"id"),o=Session.get("temp_navs_force_create"),(null!=n?n.indexOf(u||h):void 0)<0||o)){if(o&&s)return void Session.set("temp_navs_force_create",!1);if(!(l=Creator.getObject(u)))return;if(p){if(!(d=Creator.getObjectRecord()))return;if(v=Creator.getObjectUrl(u,p),o&&(r=urlQuery[urlQuery.length-3])&&(g=new RegExp(r+"$")).test(v))return void Session.set("temp_navs_force_create",!1);a=f||("cfs.files.filerecord"===u?t("cfs_files_filerecord__object")+"-"+(null!=d&&null!=(m=d.original)?m.name:void 0):d[c=l.NAME_FIELD_KEY||"name"]),Creator.createTempNav(u,v,a)}else Creator.createTempNav(u);if(o)return Session.set("temp_navs_force_create",!1)}}))}))},"router.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n;this.urlQuery=new Array,o=function(e,t){var r,o;Meteor.userId()&&(Creator.pushCurrentPathToUrlQuery(),"-"!==(r=e.params.app_id)&&r&&Session.get("app_id")!==r?Session.set("app_id",r):"-"!==r||Session.get("app_id")||(o=Steedos.getFirstApp(),Session.set("app_id",o.id)))},n=function(e,t){var r,o,a,n;if(o=Tracker.nonreactive((function(){return Session.get("object_name")})),a=Tracker.nonreactive((function(){return Session.get("record_id")})),r=e.params.object_name,n=e.params.record_id,Session.set("object_name",r),Session.set("tab_name",null),Session.set("pageApiName",null),Session.set("record_id",n),Session.set("record_name",null),n&&(o&&o!==r||a&&n!==a))return Session.set("temp_navs_force_create",!0)},r=function(e,t){var r;if("admin"===(r=e.params.app_id)&&Steedos.isMobile())return t("/user_settings"),urlQuery.pop()},FlowRouter.route("/app",{triggersEnter:[o],action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"creator_app_home"})}}),FlowRouter.route("/app/menu",{triggersEnter:[o],action:function(e,t){var r;return r="app_object_menu",Session.set("hidden_header",!0),BlazeLayout.render(Creator.getLayout(),{main:r})},triggersExit:[function(e,t){if(Steedos.isMobile())return Session.set("hidden_header",void 0)}]}),FlowRouter.route("/app/:app_id",{triggersEnter:[o],action:function(e,t){var r,o,a;return"-"!==(o=FlowRouter.getParam("app_id"))&&(Session.set("object_name",null),Session.set("record_id",null),Session.set("app_id",o)),Session.set("admin_template_name",null),a=(r=Creator.getApp(o))&&r.is_use_iframe?"creator_app_iframe":"creator_app_home",BlazeLayout.render(Creator.getLayout(),{main:a})}}),FlowRouter.route("/app/:app_id/page/:page_id",{triggersEnter:[o],action:function(e,t){var r,o;return console.log("params",e),r=FlowRouter.getParam("app_id"),o=null!=e?e.page_id:void 0,Session.set("pageApiName",o),Session.set("object_name",null),BlazeLayout.render(Creator.getLayout(),{main:"page_template",regions:{appId:r,pageId:o}})},triggersExit:[function(e,t){return Session.set("pageApiName",null)}]}),FlowRouter.route("/page/:page_id/",{action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"page"})}}),FlowRouter.route("/app/:app_id/tab_iframe/:tab_id",{triggersEnter:[o],action:function(e,t){var r;return r=FlowRouter.getParam("tab_id"),Session.set("tab_name",r),Session.set("object_name",null),BlazeLayout.render(Creator.getLayout(),{main:"page_iframe",regions:{params:e,queryParams:t}})},triggersExit:[function(e,t){return Session.set("tab_name",null)}]}),(a=FlowRouter.group({prefix:"/app/:app_id/:object_name",name:"objectRoutes",triggersEnter:[o,n]})).route("/",{triggersEnter:[function(e,t){var r,o,a,n,i;return n=e.params.object_name,o=(null!=(a=window.getFirstListView(n))?a.name:void 0)||(null!=a?a._id:void 0),t(i="/app/"+(r=e.params.app_id)+"/"+n+"/grid/"+o)}],action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"object_home"})}}),a.route("/:record_id/:related_object_name/grid",{action:function(e,t){var r,o,a,n,i,s,c,l;return o={app_id:r=Session.get("app_id"),object_name:n=FlowRouter.getParam("object_name"),record_id:s=FlowRouter.getParam("record_id"),related_object_name:l=FlowRouter.getParam("related_object_name")},Session.set("related_object_name",l),a="related_object_list",(i=Steedos.Page.getPage("related_list",r,l))&&(a="page_related_list_view",c={page:i,appId:Session.get("app_id"),objectName:n,recordId:s,relatedObjectName:l,__timestamp:(new Date).getTime()}),Meteor.setTimeout((function(){return BlazeLayout.render(Creator.getLayout(),{main:a,regions:c})}),10)}}),a.route("/view/:record_id",{action:function(e,t){var r,o,a,n,i,s,c;return t["X-Space-Id"]&&Steedos.setSpaceId(t["X-Space-Id"]),o={app_id:r=FlowRouter.getParam("app_id"),object_name:n=FlowRouter.getParam("object_name"),record_id:s=FlowRouter.getParam("record_id")},ObjectRecent.insert(n,s),Session.set("detail_info_visible",!0),a="creator_view",(i=Steedos.Page.getPage("record",Session.get("app_id"),n,s))&&(a="page_object",c=window._.defaultsDeep({display:Steedos.Page.getDisplay(n)},FlowRouter.current().queryParams,{page:i,appId:Session.get("app_id"),recordId:s,objectName:n,pageType:"record",__timestamp:(new Date).getTime()})),Meteor.setTimeout((function(){return BlazeLayout.render(Creator.getLayout(),{main:a,regions:c})}),10)},triggersExit:[function(e,t){var r,o,a,n;if(Session.get("instance_change")&&("instances"===(null!=(r=e.params)?r.object_name:void 0)&&"draft"===(null!=(o=e.queryParams)?o.side_listview_id:void 0)||"instance_tasks"===(null!=(a=e.params)?a.object_name:void 0)&&"inbox"===(null!=(n=e.queryParams)?n.side_listview_id:void 0)))return InstanceManager.saveIns(!1)}]}),a.route("/grid/:list_view_id",{action:function(e,t){var r,o,a,n,i;return Session.set("record_id",null),Session.get("object_name")===FlowRouter.getParam("object_name")&&Session.get("list_view_id")===FlowRouter.getParam("list_view_id")||(Session.set("filter_target",null),Session.set("filter_items",null)),Session.get("object_name")!==FlowRouter.getParam("object_name")&&Session.set("list_view_id",null),"true"===(null!=t?t.hidden_header:void 0)&&Session.set("hidden_header",!0),"-"!==(r=FlowRouter.getParam("app_id"))&&Session.set("app_id",r),a=FlowRouter.getParam("object_name"),Session.set("object_name",a),Session.set("list_view_id",FlowRouter.getParam("list_view_id")),Session.set("list_view_visible",!1),Tracker.afterFlush((function(){return Session.set("list_view_visible",!0)})),(n=Steedos.Page.getPage("list",Session.get("app_id"),a))&&(o="page_object",i=window._.defaultsDeep({display:Steedos.Page.getDisplay(a)},FlowRouter.current().queryParams,{page:n,appId:Session.get("app_id"),objectName:a,listViewId:Session.get("list_view_id"),pageType:"list",__timestamp:(new Date).getTime()})),BlazeLayout.render(Creator.getLayout(),{main:o,regions:i})}}),FlowRouter.notFound={action:function(e,t){var r;try{throw new Error("404 not found:"+window.location.href)}catch(o){r=o,console.log(r,window.location.href)}return BlazeLayout.render("empty_layout",{main:"notFound"})}}},"tenant.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};$.getJSON("/accounts/settings",(function(e){if(null!=e?e.tenant:void 0)return Session.set("tenant_settings",e.tenant)}))},"animate.js":function e(){$.fn.extend({animateCss:function(e,t){var r=function(e){var t={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(var r in t)if(void 0!==e.style[r])return t[r]}(document.createElement("div"));return this.addClass("animated "+e).one(r,(function(){$(this).removeClass("animated "+e),"function"==typeof t&&t()})),this}})},"colResizable-1.6.js":function e(){!function(e){var t=e(document),r=e("head"),o=null,a={},n=0,i="id",s="px",c="JColResizer",l="JCLRFlex",u=parseInt,d=Math,p=navigator.userAgent.indexOf("Trident/4.0")>0,f;try{f=sessionStorage}catch(T){}r.append("");var m=function(t,o){var s=e(t);if(s.opt=o,s.mode=o.resizeMode,s.dc=s.opt.disabledColumns,s.opt.disable)return _(s);var l=s.id=s.attr(i)||c+n++;s.p=s.opt.postbackSafe,!s.is("table")||a[l]&&!s.opt.partialRefresh&&s.prev(".JCLRgrips").length>0||("col-resize"!==s.opt.hoverCursor&&r.append(""),s.addClass(c).attr(i,l).before('
'),s.g=[],s.c=[],s.w=s.width(),s.gc=s.prev(),s.f=s.opt.fixed,o.marginLeft&&s.gc.css("marginLeft",o.marginLeft),o.marginRight&&s.gc.css("marginRight",o.marginRight),s.cs=u(p?t.cellSpacing||t.currentStyle.borderSpacing:s.css("border-spacing"))||2,s.b=u(p?t.border||t.currentStyle.borderLeftWidth:s.css("border-left-width"))||1,a[l]=s,g(s))},_=function(e){var t=e.attr(i),e;(e=a[t])&&e.is("table")&&(e.removeClass(c+" "+l).gc.remove(),delete a[t])},g=function(t){var r=t.find(">thead>tr:first>th,>thead>tr:first>td");r.length||(r=t.find(">tbody>tr:first>th,>tr:first>th,>tbody>tr:first>td, >tr:first>td")),r=r.filter(":visible"),t.cg=t.find("col"),t.ln=r.length,t.p&&f&&f[t.id]&&h(t,r),r.each((function(r){var o=e(this),a=-1!=t.dc.indexOf(r),n=e(t.gc.append('
')[0].lastChild);n.append(a?"":t.opt.gripInnerHtml).append('
'),r==t.ln-1&&(n.addClass("JCLRLastGrip"),t.f&&n.html("")),n.bind("touchstart mousedown",y),a?n.addClass("JCLRdisabledGrip"):n.removeClass("JCLRdisabledGrip").bind("touchstart mousedown",y),n.t=t,n.i=r,n.c=o,o.w=o.width(),t.g.push(n),t.c.push(o),o.width(o.w).removeAttr("width"),n.data(c,{i:r,t:t.attr(i),last:r==t.ln-1})})),t.cg.removeAttr("width"),t.find("td, th").not(r).not("table th, table td").each((function(){e(this).removeAttr("width")})),t.f||t.removeAttr("width").addClass(l),v(t)},h=function(e,t){var r,o=0,a=0,n=[],i;if(t){if(e.cg.removeAttr("width"),e.opt.flush)return void(f[e.id]="");for(i=(r=f[e.id].split(";"))[e.ln+1],!e.f&&i&&(e.width(i*=1),e.opt.overflow&&(e.css("min-width",i+s),e.w=i));a*{cursor:"+s.opt.dragCursor+"!important}"),l.addClass(s.opt.draggingClass),o=l,s.c[i.i].l)for(var d=0,p;d3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,r=this,i;return e(this).one("bsTransitionEnd",(function(){n=!0})),setTimeout((function(){n||e(r).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};function r(t){return this.each((function(){var r=e(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),"string"==typeof t&&i[t].call(r)}))}n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.close=function(t){var r=e(this),i=r.attr("data-target");i||(i=(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var o=e(document).find(i);function s(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=r.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",s).emulateTransitionEnd(n.TRANSITION_DURATION):s())};var i=e.fn.alert;e.fn.alert=r,e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.isLoading=!1};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.button"),o="object"==typeof n&&n;i||r.data("bs.button",i=new t(this,o)),"toggle"==n?i.toggle():n&&i.setState(n)}))}t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var n="disabled",r=this.$element,i=r.is("input")?"val":"html",o=r.data();t+="Text",null==o.resetText&&r.data("resetText",r[i]()),setTimeout(e.proxy((function(){r[i](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n).prop(n,!1))}),this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var r=e.fn.button;e.fn.button=n,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=r,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var r=e(t.target).closest(".btn");n.call(r,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(jQuery),function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.carousel"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n),s="string"==typeof n?n:o.slide;i||r.data("bs.carousel",i=new t(this,o)),"number"==typeof n?i.to(n):s?i[s]():o.interval&&i.pause().cycle()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),r;if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var i,o=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(o)},t.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(n,r){var i=this.$element.find(".item.active"),o=r||this.getItemForDirection(n,i),s=this.interval,a="next"==n?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var f=o[0],c=e.Event("slide.bs.carousel",{relatedTarget:f,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=e(this.$indicators.children()[this.getItemIndex(o)]);l&&l.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:f,direction:a});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(n),"object"==typeof o&&o.length&&o[0].offsetWidth,i.addClass(a),o.addClass(a),i.one("bsTransitionEnd",(function(){o.removeClass([n,a].join(" ")).addClass("active"),i.removeClass(["active",a].join(" ")),u.sliding=!1,setTimeout((function(){u.$element.trigger(h)}),0)})).emulateTransitionEnd(t.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}};var r=e.fn.carousel;e.fn.carousel=n,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=r,this};var i=function(t){var r=e(this),i=r.attr("href");i&&(i=i.replace(/.*(?=#[^\s]+$)/,""));var o=r.attr("data-target")||i,s=e(document).find(o);if(s.hasClass("carousel")){var a=e.extend({},s.data(),r.data()),u=r.attr("data-slide-to");u&&(a.interval=!1),n.call(s,a),u&&s.data("bs.carousel").to(u),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var t=e(this);n.call(t,t.data())}))}))}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.$trigger=e('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var n,r=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(r)}function r(n){return this.each((function(){var r=e(this),i=r.data("bs.collapse"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n);!i&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),i||r.data("bs.collapse",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e;return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(n=i.data("bs.collapse"))&&n.transitioning)){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(r.call(i,"hide"),n||i.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var u=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[s](this.$element[0][u])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=e.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return i.call(this);this.$element[r](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,r){var i=e(r);this.addAriaAndCollapsedClass(n(i),i)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var i=e.fn.collapse;e.fn.collapse=r,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var i=e(this);i.attr("data-target")||t.preventDefault();var o=n(i),s,a=o.data("bs.collapse")?"toggle":i.data();r.call(o,a)}))}(jQuery),function(e){"use strict";var t=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(t){e(t).on("click.bs.dropdown",this.toggle)};function i(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r="#"!==n?e(document).find(n):null;return r&&r.length?r:t.parent()}function o(r){r&&3===r.which||(e(t).remove(),e(n).each((function(){var t=e(this),n=i(t),o={relatedTarget:this};n.hasClass("open")&&(r&&"click"==r.type&&/input|textarea/i.test(r.target.tagName)&&e.contains(n[0],r.target)||(n.trigger(r=e.Event("hide.bs.dropdown",o)),r.isDefaultPrevented()||(t.attr("aria-expanded","false"),n.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))})))}function s(t){return this.each((function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof t&&i[t].call(n)}))}r.VERSION="3.4.1",r.prototype.toggle=function(t){var n=e(this);if(!n.is(".disabled, :disabled")){var r=i(n),s=r.hasClass("open");if(o(),!s){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",o);var a={relatedTarget:this};if(r.trigger(t=e.Event("show.bs.dropdown",a)),t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(e.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var r=e(this);if(t.preventDefault(),t.stopPropagation(),!r.is(".disabled, :disabled")){var o=i(r),s=o.hasClass("open");if(!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(n).trigger("focus"),r.trigger("click");var a=" li:not(.disabled):visible a",u=o.find(".dropdown-menu"+a);if(u.length){var f=u.index(t.target);38==t.which&&f>0&&f--,40==t.which&&fdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},f.prototype.init=function(t,n,r){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var s=i[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",u="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},f.prototype.getDefaults=function(){return f.DEFAULTS},f.prototype.getOptions=function(n){var r=this.$element.data();for(var i in r)r.hasOwnProperty(i)&&-1!==e.inArray(i,t)&&delete r[i];return(n=e.extend({},this.getDefaults(),r,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=u(n.template,n.whiteList,n.sanitizeFn)),n},f.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,(function(e,r){n[e]!=r&&(t[e]=r)})),t},f.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout((function(){"in"==n.hoverState&&n.show()}),n.options.delay.show)}},f.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},f.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout((function(){"out"==n.hoverState&&n.hide()}),n.options.delay.hide)}},f.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var r=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,u=a.test(s);u&&(s=s.replace(a,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?i.appendTo(e(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),l=i[0].offsetWidth,h=i[0].offsetHeight;if(u){var d=s,p=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+h>p.bottom?"top":"top"==s&&c.top-hp.width?"left":"left"==s&&c.left-ls.top+s.height&&(i.top=s.top+s.height-u)}else{var f=t.left-o,c=t.left+o+n;fs.right&&(i.left=s.left+s.width-c)}return i},f.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},f.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},f.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},f.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},f.prototype.enable=function(){this.enabled=!0},f.prototype.disable=function(){this.enabled=!1},f.prototype.toggleEnabled=function(){this.enabled=!this.enabled},f.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},f.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},f.prototype.sanitizeHtml=function(e){return u(e,this.options.whiteList,this.options.sanitizeFn)};var l=e.fn.tooltip;e.fn.tooltip=c,e.fn.tooltip.Constructor=f,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=l,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");function n(n){return this.each((function(){var r=e(this),i=r.data("bs.popover"),o="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.popover",i=new t(this,o)),"string"==typeof n&&i[n]())}))}t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();if(this.options.html){var r=typeof n;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===r&&(n=this.sanitizeHtml(n))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===r?"html":"append"](n)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(n);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var r=e.fn.popover;e.fn.popover=n,e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=r,this}}(jQuery),function(e){"use strict";function t(n,r){this.$body=e(document.body),this.$scrollElement=e(n).is(document.body)?e(window):e(n),this.options=e.extend({},t.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each((function(){var r=e(this),i=r.data("bs.scrollspy"),o="object"==typeof n&&n;i||r.data("bs.scrollspy",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),i=t.data("target")||t.attr("href"),o=/^#./.test(i)&&e(i);return o&&o.length&&o.is(":visible")&&[[o[n]().top+r,i]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.getScrollHeight(),n=this.options.offset+t-this.$scrollElement.height(),r=this.offsets,i=this.targets,o=this.activeTarget,s;if(this.scrollHeight!=t&&this.refresh(),e>=n)return o!=(s=i[i.length-1])&&this.activate(s);if(o&&e=r[s]&&(void 0===r[s+1]||e .active"),s=i&&e.support.transition&&(o.length&&o.hasClass("fade")||!!r.find("> .fade").length);function a(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&s?o.one("bsTransitionEnd",a).emulateTransitionEnd(t.TRANSITION_DURATION):a(),o.removeClass("in")};var r=e.fn.tab;e.fn.tab=n,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=r,this};var i=function(t){t.preventDefault(),n.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(e){"use strict";var t=function(n,r){this.options=e.extend({},t.DEFAULTS,r);var i=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.affix"),o="object"==typeof n&&n;i||r.data("bs.affix",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,n,r){var i=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return i=e-r&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),r=this.options.offset,i=r.top,o=r.bottom,s=Math.max(e(document).height(),e(document.body).height());"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var a=this.getState(s,n,i,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var u="affix"+(a?"-"+a:""),f=e.Event(u+".bs.affix");if(this.$element.trigger(f),f.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-n-o})}};var r=e.fn.affix;e.fn.affix=n,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=r,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var t=e(this),r=t.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),n.call(t,r)}))}))}(jQuery)}}}},fibers:{"package.json":function e(t,n,e){e.exports={name:"fibers",version:"5.0.3",main:"fibers"}},"fibers.js":function e(t,n,e,r,i){if(process.fiberLib)e.exports=process.fiberLib;else{var o=t("fs"),s=t("path"),a=t("detect-libc");Math.random();var u=s.join(i,"bin",process.platform+"-"+process.arch+"-"+process.versions.modules+("linux"===process.platform?"-"+a.family:""),"fibers");try{process.fiberLib=e.exports=t(u).Fiber}catch(c){throw console.error("## There is an issue with `node-fibers` ##\n`"+u+".node` is missing.\n\nTry running this to fix the issue: "+process.execPath+" "+i.replace(" ","\\ ")+"/build"),console.error(c.stack||c.message||c),new Error("Missing binary. See message above.")}f(e.exports)}function f(e){try{var t=process.binding("async_wrap"),n;if(t.asyncIdStackSize instanceof Function)n=t.asyncIdStackSize;else{if(void 0===t.constants.kStackLength)throw new Error("Couldn't figure out how to get async stack size");l=t.constants.kStackLength,n=function(){return t.async_hook_fields[l]}}var r=t.popAsyncContext||t.popAsyncIds,i=t.pushAsyncContext||t.pushAsyncIds,o,s;if(!r||!i)throw new Error("Push/pop do not exist");o=void 0===t.constants.kExecutionAsyncId?t.constants.kCurrentAsyncId:t.constants.kExecutionAsyncId,s=void 0===t.constants.kTriggerAsyncId?t.constants.kCurrentTriggerId:t.constants.kTriggerAsyncId;var a=t.async_id_fields||t.async_uid_fields;function u(){for(var e=n(),t=new Array(e);e>0;--e){var i=a[o];t[e-1]={asyncId:i,triggerId:a[s]},r(i)}return t}function f(e){for(var t=0;t0)i.changeLanguage(e,r);else if(0!=a[u]){a[u]=0;var f=new XMLHttpRequest;f.overrideMimeType("application/json"),f.open("GET",u,!1),f.send(null),200===f.status?a[u]=1:a[u]=-1,n.addResourceBundle(e,s,JSON.parse(f.response)||{}),i.changeLanguage(e,r)}};n.changeLanguage=p;var g=function(e,t,n){return i.format(e,t,n)};n.format=g;var b=function(){return i.languages};n.getLanguages=b;var m=function(e,t){return i.loadLanguages(e,t)};n.loadLanguages=m;var v=function(e,t){return i.loadNamespaces(e,t)};n.loadNamespaces=v;var y=function(e,t){return i.on(e,t)};n.on=y;var _=function(e,t){return i.off(e,t)};n.off=_,r.__exportStar(t("./i18n/i18n"),n),r.__exportStar(t("./i18n/i18n.app"),n),r.__exportStar(t("./translations"),n)},i18n:{"i18n.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fallbackKeys=n.getObjectI18nTemplate=n.translationI18nObjects=n.addObjectsI18n=n.translationI18nObject=void 0;var r=t("../index"),i=t("underscore"),o=t("clone"),s="_",a="base",u="core",f="translation",c=function(e,t){var n={lng:t,ns:f};if((0,r.exists)(e,n))return(0,r._t)(e,n)},l=function(e){return"".concat(e,"__object")},h=function(e,t){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t)},d=function(e,t){var n=h(e,t);return"".concat(n).concat("_","inlineHelpText")},p=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","group").concat("_").concat(n)},g=function(e,t,n){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t).concat("_","options").concat("_").concat(n)},b=function(e,t){return"".concat(e).concat("_","action").concat("_").concat(t)},m=function(e,t){return"".concat(e).concat("_","listview").concat("_").concat(t)},v=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},y=function(e,t,n){var r=l(t);return c(r,e)||n||""},_=function(e,t,n,r,i){var o=h(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=_(e,a,n,r,i))}return s||r||""},w=function(e,t,n,r,i){var o=d(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=w(e,a,n,r,i))}return s||r||""},k=function(e,t,n,r){var i=p(t,n);return c(i,e)||r||""},j=function(e,t,n,r,i,o){var s=g(t,n,r),a=c(s,e);if(!a){var u=v(o);u&&"base"!=t&&"core"!=t&&(a=j(e,u,n,r,i,o))}return a||i||""},x=function(e,t,n,r,i){var o=b(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=x(e,a,n,r,i))}return s||r||""},S=function(e,t,n,r,i){var o=m(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=S(e,a,n,r,i))}return s||r||""},D=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},E=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;return e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(D(e))}))):n.push(D(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},A=function(e,t,n){n.label=y(e,t,n.label),i.each(n.fields,(function(r,o){if(r.label=_(e,t,o,r.label,n.datasource),r.inlineHelpText&&(r.inlineHelpText=w(e,t,o,r.inlineHelpText,n.datasource)),r.group&&(r.group=k(e,t,r.group,r.group)),r.options){var s=[];i.each(r.options,(function(r){if(i.has(r,"value")){var a=j(e,t,o,r.value,r.label,n.datasource);s.push(i.extend({},r,{label:a}))}else s.push(r)})),r.options=s}})),i.each(n.actions,(function(r,i){r.label=x(e,t,i,r.label,n.datasource)})),i.each(n.list_views,(function(r,i){r.label=S(e,t,i,r.label,n.datasource)}))};n.translationI18nObject=A;var C=function(e){i.each(e,(function(e){(0,r.addResourceBundle)(e.lng,f,e.data,!0,!0)}))};n.addObjectsI18n=C;var M=function(e,t){i.each(t,(function(t,r){(0,n.translationI18nObject)(e,r,t)}))};n.translationI18nObjects=M;var O=function(e,t,n){var r=o(n);E(r);var s={};return s[l(t)]=y(e,t,r.label),i.each(r.fields,(function(n,o){s[h(t,o)]=_(e,t,o,n.label),n.inlineHelpText&&(s[d(t,o)]=w(e,t,o,n.inlineHelpText,r.datasource)),n.group&&(s[p(t,n.group)]=k(e,t,n.group,n.group)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(s[g(t,o,n.value)]=j(e,t,o,n.value,n.label))}))})),i.each(r.actions,(function(n,r){s[b(t,r)]=x(e,t,r,n.label)})),i.each(r.list_views,(function(n,r){s[m(t,r)]=S(e,t,r,n.label)})),s};n.getObjectI18nTemplate=O,n.fallbackKeys={getObjectLabelKey:l,getObjectFieldLabelKey:h,getObjectFieldInlineHelpTextLabelKey:d,getObjectFieldGroupKey:p,getObjectFieldOptionsLabelKey:g,getObjectActionLabelKey:b,getObjectListviewLabelKey:m}},"i18n.app.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.appFallbackKeys=n.getAppI18nTemplate=n.translationI18nApps=n.translationI18nMenus=void 0;var r=t("../index"),i=t("underscore"),o=t("clone"),s="translation",a="_",u=function(e,t){var n={lng:t,ns:s};if((0,r.exists)(e,n))return(0,r._t)(e,n)},f=function(e){return"app".concat("_").concat(e).concat("_","name")},c=function(e){return"app".concat("_").concat(e).concat("_","description")},l=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","tab_group").concat("_").concat(n)},h=function(e){return"menu".concat("_").concat(e)},d=function(e){return"tab".concat("_").concat(e)},p=function(e,t,n){var r=f(t);return u(r,e)||n||""},g=function(e,t,n){var r=c(t);return u(r,e)||n||""},b=function(e,t,n){var r=h(t);return u(r,e)||n||""},m=function(e,t,r){r.label=p(e,t,r.label||r.name),r.description=g(e,t,r.description),(0,n.translationI18nMenus)(e,r.admin_menus)},v=function(e,t){i.each(t,(function(t){var n=b(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationI18nMenus=v;var y=function(e,t){i.each(t,(function(t,n){m(e,n,t)}))};n.translationI18nApps=y;var _=function(e,t,n){var r=o(n),s={};return s[f(t)]=p(e,t,r.label||r.name),s[c(t)]=g(e,t,r.description),i.each(r.admin_menus,(function(t){s[h(t._id)]=b(e,t._id,t.label||t.name)})),s};n.getAppI18nTemplate=_,n.appFallbackKeys={getAppLabelKey:f,getAppDescriptionKey:c,getAppGroupKey:l,getMenuLabelKey:h,getTabKey:d}}},translations:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SteedosTranslationPrefixKeys=n.convertObject=void 0;var r=t("tslib"),i=t("underscore");r.__exportStar(t("./objectTranslation"),n),r.__exportStar(t("./translation"),n),r.__exportStar(t("./templates/objectTranslation"),n),r.__exportStar(t("./templates/translation"),n);var o=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},s=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(o(e))}))):n.push(o(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else if(e.options&&i.isArray(e.options))try{i.forEach(e.options,(function(e){i.isString(e)?n.push(o(e)):n.push(e)})),e.options=n}catch(r){console.error("Creator.convertFieldsOptions",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},a;n.convertObject=s,function(e){e.Object="CustomObject",e.Field="CustomField",e.Action="CustomAction",e.Listview="CustomListview",e.Permission="CustomPermission",e.ValidationRule="CustomValidationRule",e.Application="CustomApplication",e.Tab="CustomTabs",e.Permissionset="CustomPermissionset",e.Profile="CustomProfile",e.Report="CustomReport",e.Workflow="Workflow",e.Layout="Layout",e.Client="Client",e.Server="Server",e.Function="Function",e.Router="Router",e.Trigger="Trigger"}(a=n.SteedosTranslationPrefixKeys||(n.SteedosTranslationPrefixKeys={}))},"objectTranslation.js":function e(t,n,e,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addObjectsTranslation=n.getObjectTranslationTemplate=n.translationObjects=n.translationObject=n.translationObjectLabel=void 0;var i=t("underscore"),o=t("./"),s=t("../index"),a=t("./index"),u=t("../i18n/i18n"),f=t("lodash"),c=t("crypto"),l,h=(0,t("@steedos/cachers").getCacher)("lru.translations.objects");function d(e){var t;return c.createHash("md5").update(e).digest("hex")}var p=function(e,t){return"".concat(e,"_").concat(t.name,"_").concat(d(JSON.stringify(t)))},g=t("clone"),b=".",m="base",v="core",y="translation",_="object",w="field",k="listview",j="action",x=function(e,t){var n={lng:t,ns:y,keySeparator:!1};if((0,s.exists)(e,n))return(0,s._t)(e,n)},S=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},D=function(e){switch(e){case"object":return o.SteedosTranslationPrefixKeys.Object;case"field":return o.SteedosTranslationPrefixKeys.Field;case"listview":return o.SteedosTranslationPrefixKeys.Listview;case"action":return o.SteedosTranslationPrefixKeys.Action;default:return"CustomLabels"}},E=function(e){var t;return[D(),e].join(".")},A=function(e){var t;return[D("object"),e,"label"].join(".")},C=function(e){var t;return[D("object"),e,"description"].join(".")},M=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"label"].join(".")},O=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"help"].join(".")},T=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"description"].join(".")},B=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_"),r;return[D("field"),e,"group",n].join(".")},I=function(e,t,n){var r;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"options",n].join(".")},R=function(e,t){var n;return[D("action"),e,t].join(".")},F=function(e,t){var n;return[D("listview"),e,t].join(".")},P=function(e,t,n){var r,i=[A(t)],o=u.fallbackKeys.getObjectLabelKey(t);return o&&i.push(o),x(i,e)||n||""};n.translationObjectLabel=P;var N=function(e,t,n){var r=C(t);return x(r,e)||n||""},L=function(e,t,n,r,i,o){var s,a=[M(t,n)],f=u.fallbackKeys.getObjectFieldLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=L(e,l,n,r,i))}return c||r||""},z=function(e,t,n,r,i,o){var s,a=[O(t,n)],f=u.fallbackKeys.getObjectFieldInlineHelpTextLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=z(e,l,n,r,i))}return c||r||""},U=function(e,t,n,r,i,o){var s=T(t,n),a,u=x([s],e);if(1!=o&&!u){var f=S(i);f&&"base"!=t&&"core"!=t&&(u=U(e,f,n,r,i))}return u||r||""},q=function(e,t,n,r,i,o){var s,a=[B(t,n)],f=u.fallbackKeys.getObjectFieldGroupKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=q(e,l,n,r,i))}return c||r||""},$=function(e,t,n,r,i,o,s){var a,f=[I(t,n,r)],c=u.fallbackKeys.getObjectFieldOptionsLabelKey(t,n,r);c&&f.push(c);var l=x(f,e);if(1!=s&&!l){var h=S(o);h&&"base"!=t&&"core"!=t&&(l=$(e,h,n,r,i,o))}return l||i||""},H=function(e,t,n,r,i,o){var s,a=[R(t,n)],f=u.fallbackKeys.getObjectActionLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=H(e,l,n,r,i))}return c||r||""},W=function(e,t,n,r,i,o){var s,a=[F(t,n)],f=u.fallbackKeys.getObjectListviewLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=W(e,l,n,r,i))}return c||r||""},Y=function(e,t,r,o,s){void 0===s&&(s=!1);var u=p(e,r);"test_obj_layout1"===t&&console.log("translationObject",t,u);var c=h.get(u);if(c)return Object.assign(r,(0,f.cloneDeep)(c));o&&(0,a.convertObject)(r),r.label=(0,n.translationObjectLabel)(e,t,r.label),r.description=N(e,t,r.description),i.each(r.fields,(function(n,o){if(n.label=L(e,t,o,n.label,r.datasource,s),n.inlineHelpText&&(n.inlineHelpText=z(e,t,o,n.inlineHelpText,r.datasource,s)),n.group&&(n.group=q(e,t,n.group,n.group,r.datasource,s)),n.options){var a=[];i.each(n.options,(function(n){if(i.has(n,"value")){var u=$(e,t,o,n.value,n.label,r.datasource,s);a.push(i.extend({},n,{label:u}))}else a.push(n)})),n.options=a}})),i.each(r.actions,(function(n,i){n.label=H(e,t,i,n.label,r.datasource,s)})),i.each(r.list_views,(function(n,i){n.label=W(e,t,i,n.label,r.datasource,s)})),h.set(u,(0,f.cloneDeep)(r))};n.translationObject=Y;var V=function(e,t){i.each(t,(function(t,r){(0,n.translationObject)(e,r,t)}))};n.translationObjects=V;var K=function(e,t,r){var o=g(r);(0,a.convertObject)(o);var s={};return s[A(t)]=(0,n.translationObjectLabel)(e,t,o.label),s[C(t)]=N(e,t,o.description),i.each(o.fields,(function(n,r){s[M(t,r)]=L(e,t,r,n.label),n.inlineHelpText&&(s[O(t,r)]=z(e,t,r,n.inlineHelpText,o.datasource)),n.description&&(s[T(t,r)]=U(e,t,r,n.description,o.datasource)),n.group&&(s[B(t,n.group)]=q(e,t,n.group,n.group,o.datasource)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(s[I(t,r,n.value)]=$(e,t,r,n.value,n.label))}))})),i.each(o.actions,(function(n,r){s[R(t,r)]=H(e,t,r,n.label)})),i.each(o.list_views,(function(n,r){s[F(t,r)]=W(e,t,r,n.label)})),s};function G(e,t){var n=g(e);(0,a.convertObject)(n);var r={},o=n.name;return o||console.error("Error: Invalid objectTranslation:"+t),r[A(o)]=n.label,r[C(o)]=n.description,i.each(n.fields,(function(e,t){r[M(o,t)]=e.label,e.help&&(r[O(o,t)]=e.help),e.description&&(r[T(o,t)]=e.description),e.options&&i.each(e.options,(function(e){i.has(e,"value")&&(r[I(o,t,e.value)]=e.label)}))})),i.each(n.groups,(function(e,t){r[B(o,t)]=e})),i.each(n.actions,(function(e,t){r[R(o,t)]=e.label})),i.each(n.listviews,(function(e,t){r[F(o,t)]=e.label})),i.each(n.CustomLabels,(function(e,t){r[E(t)]=e})),r}n.getObjectTranslationTemplate=K;var X=function(e){i.each(e,(function(e){var t=G(e.data,e.__filename);(0,s.addResourceBundle)(e.lng,y,t,!0,!0)}))};n.addObjectsTranslation=X},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addTranslations=n.convertTranslation=n.convertTranslationData=n.getAppTranslationTemplate=n.translationApps=n.translationMenus=n.translationApp=n.translationTabLabel=n.translationTabGroup=void 0;var r=t("../index"),i=t("underscore"),o=t("./"),s=t("../i18n/i18n.app"),a=t("clone"),u="translation",f=".",c="app",l="menu",h="tab",d=function(e){switch(e){case"app":return o.SteedosTranslationPrefixKeys.Application;case"tab":return o.SteedosTranslationPrefixKeys.Tab;default:return"CustomLabels"}},p=function(e){var t;return[d(),e].join(".")},g=function(e,t){var n={lng:t,ns:u,keySeparator:!1};if((0,r.exists)(e,n))return(0,r._t)(e,n)},b=function(e){var t;return[d("app"),e,"name"].join(".")},m=function(e){var t;return[d("app"),e,"description"].join(".")},v=function(e,t){var n,r;return[d("app"),e,"groups",t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_")].join(".")},y=function(e){var t;return[d("menu"),"menu_".concat(e)].join(".")},_=function(e){var t;return[d("tab"),e].join(".")},w=function(e,t,n){var r,i=[b(t)],o=s.appFallbackKeys.getAppLabelKey(t);return o&&i.push(o),g(i,e)||n||""},k=function(e,t,n){var r,i=[m(t)],o=s.appFallbackKeys.getAppDescriptionKey(t);return o&&i.push(o),g(i,e)||n||""},j=function(e,t,n,r){var i,o=[v(t,n)],a=s.appFallbackKeys.getAppGroupKey(t,n);return a&&o.push(a),g(o,e)||r||""};n.translationTabGroup=j;var x=function(e,t,n){var r,i=[y(t)],o=s.appFallbackKeys.getMenuLabelKey(t);return o&&i.push(o),g(i,e)||n||""},S=function(e,t,n){var r,i=[_(t)],o=s.appFallbackKeys.getTabKey(t);return o&&i.push(o),g(i,e)||n||""};n.translationTabLabel=S;var D=function(e,t,r){r.label=w(e,t,r.label||r.name),r.description=k(e,t,r.description),i.each(r.tab_groups,(function(i,o){r.tab_groups[o].id=i.id||i.group_name,r.tab_groups[o].group_name=(0,n.translationTabGroup)(e,t,i.group_name,i.group_name)})),(0,n.translationMenus)(e,r.admin_menus)};n.translationApp=D;var E=function(e,t){i.each(t,(function(t){var n=x(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationMenus=E;var A=function(e,t){i.each(t,(function(t,r){(0,n.translationApp)(e,r,t)}))};n.translationApps=A;var C=function(e,t,n){var r=a(n),o={};return o[b(t)]=w(e,t,r.label||r.name),o[m(t)]=k(e,t,r.description),i.each(r.admin_menus,(function(t){o[y(t._id)]=x(e,t._id,t.label||t.name)})),o};n.getAppTranslationTemplate=C;var M=function(e,t,n){i.isArray(n)?i.each(n,(function(e){M(e,"",e)})):n&&i.each(i.keys(n),(function(r){var o=t?"".concat(t,".").concat(r):r,s=n[r];"object"==typeof s?i.isArray(s)?i.each(s,(function(e){M(e,o,s)})):M(e,o,s):e[o]=s}))};function O(e){for(var t in e)"object"==typeof e[t]&&M(e,t,e[t]);return e}n.convertTranslationData=O;var T=function(e){var t=a(e),n={};return i.each(t.CustomApplications,(function(e,t){n[b(t)]=e.name,n[m(t)]=e.description,i.each(e.groups,(function(e,r){n[v(t,r)]=e}))})),i.each(t.CustomTabs,(function(e,t){n[_(t)]=e})),i.each(t.CustomLabels,(function(e,t){var r;if("simpleschema"!=t&&i.isObject(e)){var o=O(((r={})[t]=e,r));i.each(o,(function(e,t){i.isObject(e)||(n[p(t)]=e)}))}else n[p(t)]=e})),n};n.convertTranslation=T;var B=function(e){i.each(e,(function(e){var t=(0,n.convertTranslation)(e.data);(0,r.addResourceBundle)(e.lng,u,t,!0,!0)}))};n.addTranslations=B},templates:{"objectTranslation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getObjectMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),o=t("clone");function s(e,t){var n={};return r.each(e,(function(e){n[e]="help"===e?t.inlineHelpText||"":t[e]||""})),n}function a(e){return s(["label","description"],e)}function u(e){switch(e.type){case"select":return s(["label","help","options","description"],e);default:return s(["label","help","description"],e)}}function f(e){return s(["label"],e)}function c(e){return s(["label"],e)}function l(e){var t={};return r.each(e,(function(e,n){t[n]=u(e)})),t}function h(e){var t={};return r.each(e,(function(e,n){t[n]=c(e)})),t}function d(e){var t={};return r.each(e,(function(e,n){t[n]=f(e)})),t}function p(e,t){var n={};return r.each(e,(function(e,r){if(e.group){var i=e.group.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");n[i]=t[r].group}})),n}var g=function(e,t,n,s){void 0===s&&(s=!1);var u=o(n);1!=s&&(0,i.translationObject)(e,t,u,!0,s);var f=Object.assign({},a(u));f=Object.assign({},f,{fields:l(u.fields)});var c=p(n.fields,u.fields);r.isEmpty(c)||(f=Object.assign({},f,{groups:c}));var g=d(u.list_views);r.isEmpty(g)||(f=Object.assign({},f,{listviews:g}));var b=h(u.actions);return r.isEmpty(b)||(f=Object.assign({},f,{actions:b})),Object.assign({name:t},f)};n.getObjectMetadataTranslationTemplate=g},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getAppMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),o=t("clone");function s(e,t){var n={};return r.each(e,(function(e){n[e]=t[e]||""})),n}function a(e){var t={groups:{}};return e?(r.each(e,(function(e){var n=e.group_name.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t.groups[n]=e.group_name})),t):{}}var u=function(e){return Object.assign({},s(["name","description"],e),a(e.tab_groups))},f=function(e){var t={};return r.each(e,(function(e,n){t[n]=n})),t},c=function(e){var t={};return r.each(e,(function(e){var n=e.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t[n]=e})),t},l=function(e,t,n){var r,s=o(n);(0,i.translationApp)(e,t,s);var a={},l;return s.tab_items?a=f(s.tab_items):s.tabs&&(a=c(s.tabs)),Object.assign({},{CustomApplications:(r={},r[t]=u(s),r)},{CustomTabs:a})};n.getAppMetadataTranslationTemplate=l}}}},node_modules:{i18next:{"package.json":function e(t,n,e){e.exports={name:"i18next",version:"19.9.2",module:"./dist/esm/i18next.js",main:"./dist/cjs/i18next.js"}},dist:{esm:{"i18next.js":function e(t,n,e){let r,i,o,s,a,u,f,c;e.link("@babel/runtime/helpers/esm/typeof",{default(e){r=e}},0),e.link("@babel/runtime/helpers/esm/objectSpread",{default(e){i=e}},1),e.link("@babel/runtime/helpers/esm/classCallCheck",{default(e){o=e}},2),e.link("@babel/runtime/helpers/esm/createClass",{default(e){s=e}},3),e.link("@babel/runtime/helpers/esm/possibleConstructorReturn",{default(e){a=e}},4),e.link("@babel/runtime/helpers/esm/getPrototypeOf",{default(e){u=e}},5),e.link("@babel/runtime/helpers/esm/assertThisInitialized",{default(e){f=e}},6),e.link("@babel/runtime/helpers/esm/inherits",{default(e){c=e}},7);var l={type:"logger",log:function e(t){this.output("log",t)},warn:function e(t){this.output("warn",t)},error:function e(t){this.output("error",t)},output:function e(t,n){console&&console[t]&&console[t].apply(console,n)}},h,d=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.init(t,n)}return s(e,[{key:"init",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||l,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function e(t){this.debug=t}},{key:"log",value:function e(){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function y(e,t,n){var r=v(e,t,Object),i,o;r.obj[r.k]=n}function _(e,t,n,r){var i=v(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}function w(e,t){var n=v(e,t),r=n.obj,i=n.k;if(r)return r[i]}function k(e,t,n){var r=w(e,n);return void 0!==r?r:w(t,n)}function j(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):j(e[r],t[r],n):e[r]=t[r]);return e}function x(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var S={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function D(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return S[e]})):e}var E="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,A=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return o(this,t),n=a(this,u(t).call(this)),E&&p.call(f(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return c(t,e),s(t,[{key:"addNamespaces",value:function e(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function e(t){var n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=[t,n];return r&&"string"!=typeof r&&(s=s.concat(r)),r&&"string"==typeof r&&(s=s.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(s=t.split(".")),w(this.data,s)}},{key:"addResource",value:function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},s=this.options.keySeparator;void 0===s&&(s=".");var a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(i=n,n=(a=t.split("."))[1]),this.addNamespaces(n),y(this.data,a,i),o.silent||this.emit("added",t,n,r,i)}},{key:"addResources",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in r)"string"!=typeof r[o]&&"[object Array]"!==Object.prototype.toString.apply(r[o])||this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}},{key:"addResourceBundle",value:function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},u=[t,n];t.indexOf(".")>-1&&(o=r,r=n,n=(u=t.split("."))[1]),this.addNamespaces(n);var f=w(this.data,u)||{};o?j(f,r,s):f=i({},f,r),y(this.data,u,f),a.silent||this.emit("added",t,n,r)}},{key:"removeResourceBundle",value:function e(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}},{key:"hasResourceBundle",value:function e(t,n){return void 0!==this.getResource(t,n)}},{key:"getResourceBundle",value:function e(t,n){return n||(n=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(t,n)):this.getResource(t,n)}},{key:"getDataByLanguage",value:function e(t){return this.data[t]}},{key:"toJSON",value:function e(){return this.data}}]),t}(p),C={processors:{},addPostProcessor:function e(t){this.processors[t.name]=t},handle:function e(t,n,r,i,o){var s=this;return t.forEach((function(e){s.processors[e]&&(n=s.processors[e].process(n,r,i,o))})),n}},M={},O=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,t),n=a(this,u(t).call(this)),E&&p.call(f(n)),m(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,f(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=d.create("translator"),n}return c(t,e),s(t,[{key:"changeLanguage",value:function e(t){t&&(this.language=t)}},{key:"exists",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(t,n);return r&&void 0!==r.res}},{key:"extractFromKey",value:function e(t,n){var r=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=n.ns||this.options.defaultNS;if(r&&t.indexOf(r)>-1){var s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:o};var a=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),t=a.join(i)}return"string"==typeof o&&(o=[o]),{key:t,namespaces:o}}},{key:"translate",value:function e(n,o,s){var a=this;if("object"!==r(o)&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),null==n)return"";Array.isArray(n)||(n=[String(n)]);var u=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,f=this.extractFromKey(n[n.length-1],o),c=f.key,l=f.namespaces,h=l[l.length-1],d=o.lng||this.language,p=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var g=o.nsSeparator||this.options.nsSeparator;return h+g+c}return c}var b=this.resolve(n,o),m=b&&b.res,v=b&&b.usedKey||c,y=b&&b.exactUsedKey||c,_=Object.prototype.toString.apply(m),w=["[object Number]","[object Function]","[object RegExp]"],k=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(j&&m&&x&&w.indexOf(_)<0&&("string"!=typeof k||"[object Array]"!==_)){if(!o.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,o):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(u){var S="[object Array]"===_,D=S?[]:{},E=S?y:v;for(var A in m)if(Object.prototype.hasOwnProperty.call(m,A)){var C="".concat(E).concat(u).concat(A);D[A]=this.translate(C,i({},o,{joinArrays:!1,ns:l})),D[A]===C&&(D[A]=m[A])}m=D}}else if(j&&"string"==typeof k&&"[object Array]"===_)(m=m.join(k))&&(m=this.extendTranslation(m,n,o,s));else{var M=!1,O=!1,T=void 0!==o.count&&"string"!=typeof o.count,B=t.hasDefaultValue(o),I=T?this.pluralResolver.getSuffix(d,o.count):"",R=o["defaultValue".concat(I)]||o.defaultValue;!this.isValidLookup(m)&&B&&(M=!0,m=R),this.isValidLookup(m)||(O=!0,m=c);var F=B&&R!==m&&this.options.updateMissing;if(O||M||F){if(this.logger.log(F?"updateKey":"missingKey",d,h,c,F?R:m),u){var P=this.resolve(c,i({},o,{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var z=0;z1&&void 0!==arguments[1]?arguments[1]:{},i,o,s,a,u;return"string"==typeof t&&(t=[t]),t.forEach((function(e){if(!n.isValidLookup(i)){var t=n.extractFromKey(e,r),f=t.key;o=f;var c=t.namespaces;n.options.fallbackNS&&(c=c.concat(n.options.fallbackNS));var l=void 0!==r.count&&"string"!=typeof r.count,h=void 0!==r.context&&"string"==typeof r.context&&""!==r.context,d=r.lngs?r.lngs:n.languageUtils.toResolveHierarchy(r.lng||n.language,r.fallbackLng);c.forEach((function(e){n.isValidLookup(i)||(u=e,!M["".concat(d[0],"-").concat(e)]&&n.utils&&n.utils.hasLoadedNamespace&&!n.utils.hasLoadedNamespace(u)&&(M["".concat(d[0],"-").concat(e)]=!0,n.logger.warn('key "'.concat(o,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(t){if(!n.isValidLookup(i)){a=t;var o=f,u=[o],c,d;if(n.i18nFormat&&n.i18nFormat.addLookupKeys)n.i18nFormat.addLookupKeys(u,f,t,e,r);else l&&(c=n.pluralResolver.getSuffix(t,r.count)),l&&h&&u.push(o+c),h&&u.push(o+="".concat(n.options.contextSeparator).concat(r.context)),l&&u.push(o+=c);for(;d=u.pop();)n.isValidLookup(i)||(s=d,i=n.getResource(t,e,d,r))}})))}))}})),{res:i,usedKey:o,exactUsedKey:s,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function e(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}}],[{key:"hasDefaultValue",value:function e(t){var n="defaultValue";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&void 0!==t[r])return!0;return!1}}]),t}(p);function T(e){return e.charAt(0).toUpperCase()+e.slice(1)}var B=function(){function e(t){o(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=d.create("languageUtils")}return s(e,[{key:"getScriptPartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase()?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function e(t){if("string"==typeof t&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=T(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function e(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function e(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function e(t){var n=this,r;return t?(t.forEach((function(e){if(!r){var t=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(t)||(r=t)}})),!r&&this.options.supportedLngs&&t.forEach((function(e){if(!r){var t=n.getLanguagePartFromCode(e);if(n.isSupportedCode(t))return r=t;r=n.options.supportedLngs.find((function(e){if(0===e.indexOf(t))return e}))}})),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function e(t,n){if(!t)return[];if("function"==typeof t&&(t=t(n)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function e(t,n){var r=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],s=function e(t){t&&(r.isSupportedCode(t)?o.push(t):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(t))):"string"==typeof t&&s(this.formatLanguageCode(t)),i.forEach((function(e){o.indexOf(e)<0&&s(r.formatLanguageCode(e))})),o}}]),e}(),I=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],R={1:function e(t){return Number(t>1)},2:function e(t){return Number(1!=t)},3:function e(t){return 0},4:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function e(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function e(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function e(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function e(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function e(t){return Number(t>=2)},10:function e(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function e(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function e(t){return Number(t%10!=1||t%100==11)},13:function e(t){return Number(0!==t)},14:function e(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function e(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function e(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function e(t){return Number(0==t?0:1==t?1:2)},19:function e(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function e(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function e(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function e(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function F(){var e={};return I.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:R[t.fc]}}))})),e}var P=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.languageUtils=t,this.options=n,this.logger=d.create("pluralResolver"),this.rules=F()}return s(e,[{key:"addRule",value:function e(t,n){this.rules[t]=n}},{key:"getRule",value:function e(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function e(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function e(t,n){return this.getSuffixes(t).map((function(e){return n+e}))}},{key:"getSuffixes",value:function e(t){var n=this,r=this.getRule(t);return r?r.numbers.map((function(e){return n.getSuffix(t,e)})):[]}},{key:"getSuffix",value:function e(t,n){var r=this,i=this.getRule(t);if(i){var o=i.noAbs?i.plurals(n):i.plurals(Math.abs(n)),s=i.numbers[o];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===s?s="plural":1===s&&(s=""));var a=function e(){return r.options.prepend&&s.toString()?r.options.prepend+s.toString():s.toString()};return"v1"===this.options.compatibilityJSON?1===s?"":"number"==typeof s?"_plural_".concat(s.toString()):a():"v2"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),N=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.logger=d.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return s(e,[{key:"init",value:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=void 0!==n.escape?n.escape:D,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?x(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?x(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?x(n.nestingPrefix):n.nestingPrefixEscaped||x("$t("),this.nestingSuffix=n.nestingSuffix?x(n.nestingSuffix):n.nestingSuffixEscaped||x(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function e(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function e(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function e(t,n,r,i){var o=this,s,a,u,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function e(t){if(t.indexOf(o.formatSeparator)<0){var s=k(n,f,t);return o.alwaysFormat?o.format(s,void 0,r):s}var a=t.split(o.formatSeparator),u=a.shift().trim(),c=a.join(o.formatSeparator).trim();return o.format(k(n,f,u),c,r,i)};this.resetRegExp();var h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p;return[{regex:this.regexpUnescape,safeValue:function e(t){return c(t)}},{regex:this.regexp,safeValue:function e(t){return o.escapeValue?c(o.escape(t)):c(t)}}].forEach((function(e){for(u=0;s=e.regex.exec(t);){if(void 0===(a=l(s[1].trim())))if("function"==typeof h){var n=h(t,s,i);a="string"==typeof n?n:""}else{if(d){a=s[0];continue}o.logger.warn("missed to pass in variable ".concat(s[1]," for interpolating ").concat(t)),a=""}else"string"==typeof a||o.useRawValueToEscape||(a=b(a));if(t=t.replace(s[0],e.safeValue(a)),e.regex.lastIndex=0,++u>=o.maxReplaces)break}})),t}},{key:"nest",value:function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s,a,u=i({},o);function f(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,u)).replace(/'/g,'"');try{u=JSON.parse(o),t&&(u=i({},t,u))}catch(s){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),s),"".concat(e).concat(n).concat(o)}return delete u.defaultValue,e}for(u.applyPostProcessor=!1,delete u.defaultValue;s=this.nestingRegexp.exec(t);){var c=[],l=!1;if(s[0].includes(this.formatSeparator)&&!/{.*}/.test(s[1])){var h=s[1].split(this.formatSeparator).map((function(e){return e.trim()}));s[1]=h.shift(),c=h,l=!0}if((a=n(f.call(this,s[1].trim(),u),u))&&s[0]===t&&"string"!=typeof a)return a;"string"!=typeof a&&(a=b(a)),a||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(t)),a=""),l&&(a=c.reduce((function(e,t){return r.format(e,t,o.lng,o)}),a.trim())),t=t.replace(s[0],a),this.regexp.lastIndex=0}return t}}]),e}();function L(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}var z=function(e){function t(e,n,r){var i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o(this,t),i=a(this,u(t).call(this)),E&&p.call(f(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=s,i.logger=d.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,s.backend,s),i}return c(t,e),s(t,[{key:"queueLoad",value:function e(t,n,r,i){var o=this,s=[],a=[],u=[],f=[];return t.forEach((function(e){var t=!0;n.forEach((function(n){var i="".concat(e,"|").concat(n);!r.reload&&o.store.hasResourceBundle(e,n)?o.state[i]=2:o.state[i]<0||(1===o.state[i]?a.indexOf(i)<0&&a.push(i):(o.state[i]=1,t=!1,a.indexOf(i)<0&&a.push(i),s.indexOf(i)<0&&s.push(i),f.indexOf(n)<0&&f.push(n)))})),t||u.push(e)})),(s.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:i}),{toLoad:s,pending:a,toLoadLanguages:u,toLoadNamespaces:f}}},{key:"loaded",value:function e(t,n,r){var i=t.split("|"),o=i[0],s=i[1];n&&this.emit("failedLoading",o,s,n),r&&this.store.addResourceBundle(o,s,r),this.state[t]=n?-1:2;var e={};this.queue.forEach((function(r){_(r.loaded,[o],s),L(r.pending,t),n&&r.errors.push(n),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(t){e[t]||(e[t]=[]),r.loaded[t].length&&r.loaded[t].forEach((function(n){e[t].indexOf(n)<0&&e[t].push(n)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",e),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[r](t,n,(function(e,u){e&&u&&o<5?setTimeout((function(){i.read.call(i,t,n,r,o+1,2*s,a)}),s):a(e,u)})):a(null,{})}},{key:"prepareLoading",value:function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof n&&(n=[n]);var s=this.queueLoad(t,n,i,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function e(t,n,r){this.prepareLoading(t,n,{},r)}},{key:"reload",value:function e(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}},{key:"loadOne",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t.split("|"),o=i[0],s=i[1];this.read(o,s,"read",void 0,void 0,(function(e,i){e&&n.logger.warn("".concat(r,"loading namespace ").concat(s," for language ").concat(o," failed"),e),!e&&i&&n.logger.log("".concat(r,"loaded namespace ").concat(s," for language ").concat(o),i),n.loaded(t,e,i)}))}},{key:"saveMissing",value:function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(t,n,r,o,null,i({},a,{isUpdate:s})),t&&t[0]&&this.store.addResource(t[0],n,r,o))}}]),t}(p);function U(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function e(t){var n={};if("object"===r(t[1])&&(n=t[1]),"string"==typeof t[1]&&(n.defaultValue=t[1]),"string"==typeof t[2]&&(n.tDescription=t[2]),"object"===r(t[2])||"object"===r(t[3])){var i=t[3]||t[2];Object.keys(i).forEach((function(e){n[e]=i[e]}))}return n},interpolation:{escapeValue:!0,format:function e(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function q(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $(){}var H,W=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(o(this,t),e=a(this,u(t).call(this)),E&&p.call(f(e)),e.options=q(n),e.services={},e.logger=d,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),a(e,f(e));setTimeout((function(){e.init(n,r)}),0)}return e}return c(t,e),s(t,[{key:"init",value:function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function o(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof n&&(r=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},U(),this.options,q(n)),this.format=this.options.interpolation.format,r||(r=$),!this.options.isClone){this.modules.logger?d.init(o(this.modules.logger),this.options):d.init(null,this.options);var s=new B(this.options);this.store=new A(this.options.resources,this.options);var a=this.services;a.logger=d,a.resourceStore=this.store,a.languageUtils=s,a.pluralResolver=new P(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new N(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new z(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var f=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];f.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}}));var l=g(),h=function e(){var n=function e(n,i){t.isInitialized&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),l.resolve(i),r(n,i)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return n(null,t.t.bind(t));t.changeLanguage(t.options.lng,n)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),l}},{key:"loadResources",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,i=r,o="string"==typeof t?t:this.language;if("function"==typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return i();var s=[],a=function e(t){var r;t&&n.services.languageUtils.toResolveHierarchy(t).forEach((function(e){s.indexOf(e)<0&&s.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(s,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function e(t,n,r){var i=g();return t||(t=this.languages),n||(n=this.options.ns),r||(r=$),this.services.backendConnector.reload(t,n,(function(e){i.resolve(),r(e)})),i}},{key:"use",value:function e(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&C.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function e(t,n){var r=this;this.isLanguageChangingTo=t;var i=g();this.emit("languageChanging",t);var o=function e(t,o){o?(r.language=o,r.languages=r.services.languageUtils.toResolveHierarchy(o),r.translator.changeLanguage(o),r.isLanguageChangingTo=void 0,r.emit("languageChanged",o),r.logger.log("languageChanged",o)):r.isLanguageChangingTo=void 0,i.resolve((function(){return r.t.apply(r,arguments)})),n&&n(t,(function(){return r.t.apply(r,arguments)}))},s=function e(t){var n="string"==typeof t?t:r.services.languageUtils.getBestMatchFromCodes(t);n&&(r.language||(r.language=n,r.languages=r.services.languageUtils.toResolveHierarchy(n)),r.translator.language||r.translator.changeLanguage(n),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(n)),r.loadResources(n,(function(e){o(e,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(s):s(t):s(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function e(t,n){var o=this,s=function e(t,n){var s;if("object"!==r(n)){for(var a=arguments.length,u=new Array(a>2?a-2:0),f=2;f1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],o=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function e(t,r){var i=n.services.backendConnector.state["".concat(t,"|").concat(r)];return-1===i||2===i};if(r.precheck){var u=r.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(i,t)||(!this.services.backendConnector.backend||!(!a(i,t)||o&&!a(s,t)))}},{key:"loadNamespaces",value:function e(t,n){var r=this,i=g();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),n&&n(e)})),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function e(t,n){var r=g();"string"==typeof t&&(t=[t]);var i=this.options.preload||[],o=t.filter((function(e){return i.indexOf(e)<0}));return o.length?(this.options.preload=i.concat(o),this.loadResources((function(e){r.resolve(),n&&n(e)})),r):(n&&n(),Promise.resolve())}},{key:"dir",value:function e(t){return t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),t?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr":"rtl";var n}},{key:"createInstance",value:function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function e(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,s=i({},this.options,r,{isClone:!0}),a=new t(s),u=["store","services","language"];return u.forEach((function(e){a[e]=n[e]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new O(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rr,root:()=>i,ArrayProto:()=>o,ObjProto:()=>s,SymbolProto:()=>a,push:()=>u,slice:()=>f,toString:()=>c,hasOwnProperty:()=>l,supportsArrayBuffer:()=>h,supportsDataView:()=>d,nativeIsArray:()=>p,nativeKeys:()=>g,nativeCreate:()=>b,nativeIsView:()=>m,_isNaN:()=>v,_isFinite:()=>y,hasEnumBug:()=>_,nonEnumerableProps:()=>w,MAX_ARRAY_INDEX:()=>k});var r="1.13.4",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},o=Array.prototype,s=Object.prototype,a="undefined"!=typeof Symbol?Symbol.prototype:null,u=o.push,f=o.slice,c=s.toString,l=s.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,d="undefined"!=typeof DataView,p=Array.isArray,g=Object.keys,b=Object.create,m=h&&ArrayBuffer.isView,v=isNaN,y=isFinite,_=!{toString:null}.propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=Math.pow(2,53)-1},"restArguments.js":function e(t,n,e){function r(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;ir})},"isObject.js":function e(t,n,e){function r(e){var t=typeof e;return"function"===t||"object"===t&&!!e}e.export({default:()=>r})},"isNull.js":function e(t,n,e){function r(e){return null===e}e.export({default:()=>r})},"isUndefined.js":function e(t,n,e){function r(e){return void 0===e}e.export({default:()=>r})},"isBoolean.js":function e(t,n,e){let r;function i(e){return!0===e||!1===e||"[object Boolean]"===r.call(e)}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isElement.js":function e(t,n,e){function r(e){return!(!e||1!==e.nodeType)}e.export({default:()=>r})},"isString.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("String"))},"_tagTester.js":function e(t,n,e){let r;function i(e){var t="[object "+e+"]";return function(e){return r.call(e)===t}}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isNumber.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Number"))},"isDate.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Date"))},"isRegExp.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("RegExp"))},"isError.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Error"))},"isSymbol.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Symbol"))},"isArrayBuffer.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("ArrayBuffer"))},"isDataView.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isArrayBuffer.js",{default(e){o=e}},2),e.link("./_stringTagBug.js",{hasStringTagBug(e){s=e}},3);var a=r("DataView");function u(e){return null!=e&&i(e.getInt8)&&o(e.buffer)}e.exportDefault(s?u:a)},"isFunction.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_setup.js",{root(e){i=e}},1);var o=r("Function"),s=i.document&&i.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof s&&(o=function(e){return"function"==typeof e||!1}),e.exportDefault(o)},"_stringTagBug.js":function e(t,n,e){let r,i;e.export({hasStringTagBug:()=>o,isIE11:()=>s}),e.link("./_setup.js",{supportsDataView(e){r=e}},0),e.link("./_hasObjectTag.js",{default(e){i=e}},1);var o=r&&i(new DataView(new ArrayBuffer(8))),s="undefined"!=typeof Map&&i(new Map)},"_hasObjectTag.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Object"))},"isArray.js":function e(t,n,e){let r,i;e.link("./_setup.js",{nativeIsArray(e){r=e}},0),e.link("./_tagTester.js",{default(e){i=e}},1),e.exportDefault(r||i("Array"))},"isArguments.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1);var o=r("Arguments");!function(){o(arguments)||(o=function(e){return i(e,"callee")})}(),e.exportDefault(o)},"_has.js":function e(t,n,e){let r;function i(e,t){return null!=e&&r.call(e,t)}e.export({default:()=>i}),e.link("./_setup.js",{hasOwnProperty(e){r=e}},0)},"isFinite.js":function e(t,n,e){let r,i;function o(e){return!i(e)&&r(e)&&!isNaN(parseFloat(e))}e.export({default:()=>o}),e.link("./_setup.js",{_isFinite(e){r=e}},0),e.link("./isSymbol.js",{default(e){i=e}},1)},"isNaN.js":function e(t,n,e){let r,i;function o(e){return i(e)&&r(e)}e.export({default:()=>o}),e.link("./_setup.js",{_isNaN(e){r=e}},0),e.link("./isNumber.js",{default(e){i=e}},1)},"isTypedArray.js":function e(t,n,e){let r,i,o,s,a,u;e.link("./_setup.js",{supportsArrayBuffer(e){r=e},nativeIsView(e){i=e},toString(e){o=e}},0),e.link("./isDataView.js",{default(e){s=e}},1),e.link("./constant.js",{default(e){a=e}},2),e.link("./_isBufferLike.js",{default(e){u=e}},3);var f=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function c(e){return i?i(e)&&!s(e):u(e)&&f.test(o.call(e))}e.exportDefault(r?c:a(!1))},"constant.js":function e(t,n,e){function r(e){return function(){return e}}e.export({default:()=>r})},"_isBufferLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getByteLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createSizePropertyCheck.js":function e(t,n,e){let r;function i(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=r}}e.export({default:()=>i}),e.link("./_setup.js",{MAX_ARRAY_INDEX(e){r=e}},0)},"_getByteLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("byteLength"))},"_shallowProperty.js":function e(t,n,e){function r(e){return function(t){return null==t?void 0:t[e]}}e.export({default:()=>r})},"isEmpty.js":function e(t,n,e){let r,i,o,s,a;function u(e){if(null==e)return!0;var t=r(e);return"number"==typeof t&&(i(e)||o(e)||s(e))?0===t:0===r(a(e))}e.export({default:()=>u}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./isString.js",{default(e){o=e}},2),e.link("./isArguments.js",{default(e){s=e}},3),e.link("./keys.js",{default(e){a=e}},4)},"_getLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("length"))},"keys.js":function e(t,n,e){let r,i,o,s,a;function u(e){if(!r(e))return[];if(i)return i(e);var t=[];for(var n in e)s(e,n)&&t.push(n);return o&&a(e,t),t}e.export({default:()=>u}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeKeys(e){i=e},hasEnumBug(e){o=e}},1),e.link("./_has.js",{default(e){s=e}},2),e.link("./_collectNonEnumProps.js",{default(e){a=e}},3)},"_collectNonEnumProps.js":function e(t,n,e){let r,i,o,s;function a(e){for(var t={},n=e.length,r=0;ru}),e.link("./_setup.js",{nonEnumerableProps(e){r=e},ObjProto(e){i=e}},0),e.link("./isFunction.js",{default(e){o=e}},1),e.link("./_has.js",{default(e){s=e}},2)},"isMatch.js":function e(t,n,e){let r;function i(e,t){var n=r(t),i=n.length;if(null==e)return!i;for(var o=Object(e),s=0;si}),e.link("./keys.js",{default(e){r=e}},0)},"isEqual.js":function e(t,n,e){let r,i,o,s,a,u,f,c,l,h,d;e.export({default:()=>m}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_setup.js",{toString(e){i=e},SymbolProto(e){o=e}},1),e.link("./_getByteLength.js",{default(e){s=e}},2),e.link("./isTypedArray.js",{default(e){a=e}},3),e.link("./isFunction.js",{default(e){u=e}},4),e.link("./_stringTagBug.js",{hasStringTagBug(e){f=e}},5),e.link("./isDataView.js",{default(e){c=e}},6),e.link("./keys.js",{default(e){l=e}},7),e.link("./_has.js",{default(e){h=e}},8),e.link("./_toBufferView.js",{default(e){d=e}},9);var p="[object DataView]";function g(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&b(e,t,n,r)}function b(e,t,n,m){e instanceof r&&(e=e._wrapped),t instanceof r&&(t=t._wrapped);var v=i.call(e);if(v!==i.call(t))return!1;if(f&&"[object Object]"==v&&c(e)){if(!c(t))return!1;v=p}switch(v){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return o.valueOf.call(e)===o.valueOf.call(t);case"[object ArrayBuffer]":case p:return b(d(e),d(t),n,m)}var y="[object Array]"===v;if(!y&&a(e)){var _;if(s(e)!==s(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;y=!0}if(!y){if("object"!=typeof e||"object"!=typeof t)return!1;var w=e.constructor,k=t.constructor;if(w!==k&&!(u(w)&&w instanceof w&&u(k)&&k instanceof k)&&"constructor"in e&&"constructor"in t)return!1}m=m||[];for(var j=(n=n||[]).length;j--;)if(n[j]===e)return m[j]===t;if(n.push(e),m.push(t),y){if((j=e.length)!==t.length)return!1;for(;j--;)if(!g(e[j],t[j],n,m))return!1}else{var x=l(e),S;if(j=x.length,l(t).length!==j)return!1;for(;j--;)if(S=x[j],!h(t,S)||!g(e[S],t[S],n,m))return!1}return n.pop(),m.pop(),!0}function m(e,t){return g(e,t)}},"underscore.js":function e(t,n,e){let r;function i(e){return e instanceof i?e:this instanceof i?void(this._wrapped=e):new i(e)}e.export({default:()=>i}),e.link("./_setup.js",{VERSION(e){r=e}},0),i.VERSION=r,i.prototype.value=function(){return this._wrapped},i.prototype.valueOf=i.prototype.toJSON=i.prototype.value,i.prototype.toString=function(){return String(this._wrapped)}},"_toBufferView.js":function e(t,n,e){let r;function i(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,r(e))}e.export({default:()=>i}),e.link("./_getByteLength.js",{default(e){r=e}},0)},"isMap.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},mapMethods(e){s=e}},2),e.exportDefault(i?o(s):r("Map"))},"_methodFingerprint.js":function e(t,n,e){let r,i,o;function s(e){var t=r(e);return function(n){if(null==n)return!1;var s=o(n);if(r(s))return!1;for(var u=0;us,mapMethods:()=>l,weakMapMethods:()=>h,setMethods:()=>d}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./allKeys.js",{default(e){o=e}},2);var a="forEach",u="has",f=["clear","delete"],c=["get","has","set"],l=f.concat(a,c),h=f.concat(c),d=["add"].concat(f,a,"has")},"allKeys.js":function e(t,n,e){let r,i,o;function s(e){if(!r(e))return[];var t=[];for(var n in e)t.push(n);return i&&o(e,t),t}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{hasEnumBug(e){i=e}},1),e.link("./_collectNonEnumProps.js",{default(e){o=e}},2)},"isWeakMap.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},weakMapMethods(e){s=e}},2),e.exportDefault(i?o(s):r("WeakMap"))},"isSet.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},setMethods(e){s=e}},2),e.exportDefault(i?o(s):r("Set"))},"isWeakSet.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("WeakSet"))},"values.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"pairs.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"invert.js":function e(t,n,e){let r;function i(e){for(var t={},n=r(e),i=0,o=n.length;ii}),e.link("./keys.js",{default(e){r=e}},0)},"functions.js":function e(t,n,e){let r;function i(e){var t=[];for(var n in e)r(e[n])&&t.push(n);return t.sort()}e.export({default:()=>i}),e.link("./isFunction.js",{default(e){r=e}},0)},"extend.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createAssigner.js":function e(t,n,e){function r(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;ir})},"extendOwn.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"defaults.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i,!0))},"create.js":function e(t,n,e){let r,i;function o(e,t){var n=r(e);return t&&i(n,t),n}e.export({default:()=>o}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./extendOwn.js",{default(e){i=e}},1)},"_baseCreate.js":function e(t,n,e){let r,i;function o(){return function(){}}function s(e){if(!r(e))return{};if(i)return i(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeCreate(e){i=e}},1)},"clone.js":function e(t,n,e){let r,i,o;function s(e){return r(e)?i(e)?e.slice():o({},e):e}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./extend.js",{default(e){o=e}},2)},"tap.js":function e(t,n,e){function r(e,t){return t(e),e}e.export({default:()=>r})},"get.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s=i(e,r(t));return o(s)?n:s}e.export({default:()=>s}),e.link("./_toPath.js",{default(e){r=e}},0),e.link("./_deepGet.js",{default(e){i=e}},1),e.link("./isUndefined.js",{default(e){o=e}},2)},"_toPath.js":function e(t,n,e){let r;function i(e){return r.toPath(e)}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./toPath.js")},"toPath.js":function e(t,n,e){let r,i;function o(e){return i(e)?e:[e]}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),r.toPath=o},"_deepGet.js":function e(t,n,e){function r(e,t){for(var n=t.length,r=0;rr})},"has.js":function e(t,n,e){let r,i;function o(e,t){for(var n=(t=i(t)).length,o=0;oo}),e.link("./_has.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"mapObject.js":function e(t,n,e){let r,i;function o(e,t,n){t=r(t,n);for(var o=i(e),s=o.length,a={},u=0;uo}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"_cb.js":function e(t,n,e){let r,i,o;function s(e,t,n){return r.iteratee!==o?r.iteratee(e,t):i(e,t,n)}e.export({default:()=>s}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),e.link("./iteratee.js",{default(e){o=e}},2)},"_baseIteratee.js":function e(t,n,e){let r,i,o,s,a,u,f;function c(e,t,n){return null==e?r:i(e)?f(e,t,n):o(e)&&!s(e)?a(e):u(e)}e.export({default:()=>c}),e.link("./identity.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isObject.js",{default(e){o=e}},2),e.link("./isArray.js",{default(e){s=e}},3),e.link("./matcher.js",{default(e){a=e}},4),e.link("./property.js",{default(e){u=e}},5),e.link("./_optimizeCb.js",{default(e){f=e}},6)},"identity.js":function e(t,n,e){function r(e){return e}e.export({default:()=>r})},"matcher.js":function e(t,n,e){let r,i;function o(e){return e=r({},e),function(t){return i(t,e)}}e.export({default:()=>o}),e.link("./extendOwn.js",{default(e){r=e}},0),e.link("./isMatch.js",{default(e){i=e}},1)},"property.js":function e(t,n,e){let r,i;function o(e){return e=i(e),function(t){return r(t,e)}}e.export({default:()=>o}),e.link("./_deepGet.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"_optimizeCb.js":function e(t,n,e){function r(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}e.export({default:()=>r})},"iteratee.js":function e(t,n,e){let r,i;function o(e,t){return i(e,t,1/0)}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),r.iteratee=o},"noop.js":function e(t,n,e){function r(){}e.export({default:()=>r})},"propertyOf.js":function e(t,n,e){let r,i;function o(e){return null==e?r:function(t){return i(e,t)}}e.export({default:()=>o}),e.link("./noop.js",{default(e){r=e}},0),e.link("./get.js",{default(e){i=e}},1)},"times.js":function e(t,n,e){let r;function i(e,t,n){var i=Array(Math.max(0,e));t=r(t,n,1);for(var o=0;oi}),e.link("./_optimizeCb.js",{default(e){r=e}},0)},"random.js":function e(t,n,e){function r(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}e.export({default:()=>r})},"now.js":function e(t,n,e){e.exportDefault(Date.now||function(){return(new Date).getTime()})},"escape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createEscaper.js":function e(t,n,e){let r;function i(e){var t=function(t){return e[t]},n="(?:"+r(e).join("|")+")",i=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(o,t):e}}e.export({default:()=>i}),e.link("./keys.js",{default(e){r=e}},0)},"_escapeMap.js":function e(t,n,e){e.exportDefault({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"})},"unescape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_unescapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_unescapeMap.js":function e(t,n,e){let r,i;e.link("./invert.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"templateSettings.js":function e(t,n,e){let r;e.link("./underscore.js",{default(e){r=e}},0),e.exportDefault(r.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g})},"template.js":function e(t,n,e){let r,i;e.export({default:()=>c}),e.link("./defaults.js",{default(e){r=e}},0),e.link("./underscore.js",{default(e){i=e}},1),e.link("./templateSettings.js");var o=/(.)^/,s={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},a=/\\|'|\r|\n|\u2028|\u2029/g;function u(e){return"\\"+s[e]}var f=/^\s*(\w|\$)+\s*$/;function c(e,t,n){!t&&n&&(t=n),t=r({},t,i.templateSettings);var s=RegExp([(t.escape||o).source,(t.interpolate||o).source,(t.evaluate||o).source].join("|")+"|$","g"),c=0,l="__p+='";e.replace(s,(function(t,n,r,i,o){return l+=e.slice(c,o).replace(a,u),c=o+t.length,n?l+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?l+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(l+="';\n"+i+"\n__p+='"),t})),l+="';\n";var h=t.variable,d;if(h){if(!f.test(h))throw new Error("variable is not a bare identifier: "+h)}else l="with(obj||{}){\n"+l+"}\n",h="obj";l="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+l+"return __p;\n";try{d=new Function(h,"_",l)}catch(g){throw g.source=l,g}var p=function(e){return d.call(this,e,i)};return p.source="function("+h+"){\n"+l+"}",p}},"result.js":function e(t,n,e){let r,i;function o(e,t,n){var o=(t=i(t)).length;if(!o)return r(n)?n.call(e):n;for(var s=0;so}),e.link("./isFunction.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"uniqueId.js":function e(t,n,e){e.export({default:()=>i});var r=0;function i(e){var t=++r+"";return e?e+t:t}},"chain.js":function e(t,n,e){let r;function i(e){var t=r(e);return t._chain=!0,t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"partial.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_executeBound.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){o=e}},2);var s=r((function(e,t){var n=s.placeholder,r=function(){for(var o=0,s=t.length,a=Array(s),u=0;uo}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./isObject.js",{default(e){i=e}},1)},"bind.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_executeBound.js",{default(e){o=e}},2),e.exportDefault(r((function(e,t,n){if(!i(e))throw new TypeError("Bind must be called on a function");var s=r((function(r){return o(e,s,t,this,n.concat(r))}));return s})))},"bindAll.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./bind.js",{default(e){o=e}},2),e.exportDefault(r((function(e,t){var n=(t=i(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=o(e[r],e)}return e})))},"_flatten.js":function e(t,n,e){let r,i,o,s;function a(e,t,n,u){if(u=u||[],t||0===t){if(t<=0)return u.concat(e)}else t=1/0;for(var f=u.length,c=0,l=r(e);c1)a(h,t-1,n,u),f=u.length;else for(var d=0,p=h.length;da}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./isArray.js",{default(e){o=e}},2),e.link("./isArguments.js",{default(e){s=e}},3)},"_isArrayLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"memoize.js":function e(t,n,e){let r;function i(e,t){var n=function(i){var o=n.cache,s=""+(t?t.apply(this,arguments):i);return r(o,s)||(o[s]=e.apply(this,arguments)),o[s]};return n.cache={},n}e.export({default:()=>i}),e.link("./_has.js",{default(e){r=e}},0)},"delay.js":function e(t,n,e){let r;e.link("./restArguments.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})))},"defer.js":function e(t,n,e){let r,i,o;e.link("./partial.js",{default(e){r=e}},0),e.link("./delay.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){o=e}},2),e.exportDefault(r(i,o,1))},"throttle.js":function e(t,n,e){let r;function i(e,t,n){var i,o,s,a,u=0;n||(n={});var f=function(){u=!1===n.leading?0:r(),i=null,a=e.apply(o,s),i||(o=s=null)},c=function(){var c=r();u||!1!==n.leading||(u=c);var l=t-(c-u);return o=this,s=arguments,l<=0||l>t?(i&&(clearTimeout(i),i=null),u=c,a=e.apply(o,s),i||(o=s=null)):i||!1===n.trailing||(i=setTimeout(f,l)),a};return c.cancel=function(){clearTimeout(i),u=0,i=o=s=null},c}e.export({default:()=>i}),e.link("./now.js",{default(e){r=e}},0)},"debounce.js":function e(t,n,e){let r,i;function o(e,t,n){var o,s,a,u,f,c=function(){var r=i()-s;t>r?o=setTimeout(c,t-r):(o=null,n||(u=e.apply(f,a)),o||(a=f=null))},l=r((function(r){return f=this,a=r,s=i(),o||(o=setTimeout(c,t),n&&(u=e.apply(f,a))),u}));return l.cancel=function(){clearTimeout(o),o=a=f=null},l}e.export({default:()=>o}),e.link("./restArguments.js",{default(e){r=e}},0),e.link("./now.js",{default(e){i=e}},1)},"wrap.js":function e(t,n,e){let r;function i(e,t){return r(t,e)}e.export({default:()=>i}),e.link("./partial.js",{default(e){r=e}},0)},"negate.js":function e(t,n,e){function r(e){return function(){return!e.apply(this,arguments)}}e.export({default:()=>r})},"compose.js":function e(t,n,e){function r(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}e.export({default:()=>r})},"after.js":function e(t,n,e){function r(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}e.export({default:()=>r})},"before.js":function e(t,n,e){function r(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}e.export({default:()=>r})},"once.js":function e(t,n,e){let r,i;e.link("./partial.js",{default(e){r=e}},0),e.link("./before.js",{default(e){i=e}},1),e.exportDefault(r(i,2))},"findKey.js":function e(t,n,e){let r,i;function o(e,t,n){t=r(t,n);for(var o=i(e),s,a=0,u=o.length;ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"findIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createPredicateIndexFinder.js":function e(t,n,e){let r,i;function o(e){return function(t,n,o){n=r(n,o);for(var s=i(t),a=e>0?0:s-1;a>=0&&ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"findLastIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"sortedIndex.js":function e(t,n,e){let r,i;function o(e,t,n,o){for(var s=(n=r(n,o,1))(t),a=0,u=i(e);ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"indexOf.js":function e(t,n,e){let r,i,o;e.link("./sortedIndex.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./_createIndexFinder.js",{default(e){o=e}},2),e.exportDefault(o(1,i,r))},"_createIndexFinder.js":function e(t,n,e){let r,i,o;function s(e,t,n){return function(s,a,u){var f=0,c=r(s);if("number"==typeof u)e>0?f=u>=0?u:Math.max(u+c,f):c=u>=0?Math.min(u+1,c):u+c+1;else if(n&&u&&c)return s[u=n(s,a)]===a?u:-1;if(a!=a)return(u=t(i.call(s,f,c),o))>=0?u+f:-1;for(u=e>0?f:c-1;u>=0&&us}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isNaN.js",{default(e){o=e}},2)},"lastIndexOf.js":function e(t,n,e){let r,i;e.link("./findLastIndex.js",{default(e){r=e}},0),e.link("./_createIndexFinder.js",{default(e){i=e}},1),e.exportDefault(i(-1,r))},"find.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s,a=(r(e)?i:o)(e,t,n);if(void 0!==a&&-1!==a)return e[a]}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./findKey.js",{default(e){o=e}},2)},"findWhere.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./find.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"each.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s,a;if(t=r(t,n),i(e))for(s=0,a=e.length;ss}),e.link("./_optimizeCb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"map.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=Array(a),f=0;fs}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"reduce.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createReduce.js":function e(t,n,e){let r,i,o;function s(e){var t=function(t,n,o,s){var a=!r(t)&&i(t),u=(a||t).length,f=e>0?0:u-1;for(s||(o=t[a?a[f]:f],f+=e);f>=0&&f=3;return t(e,o(n,i,4),r,s)}}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){o=e}},2)},"reduceRight.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"filter.js":function e(t,n,e){let r,i;function o(e,t,n){var o=[];return t=r(t,n),i(e,(function(e,n,r){t(e,n,r)&&o.push(e)})),o}e.export({default:()=>o}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"reject.js":function e(t,n,e){let r,i,o;function s(e,t,n){return r(e,i(o(t)),n)}e.export({default:()=>s}),e.link("./filter.js",{default(e){r=e}},0),e.link("./negate.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2)},"every.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"some.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"contains.js":function e(t,n,e){let r,i,o;function s(e,t,n,s){return r(e)||(e=i(e)),("number"!=typeof n||s)&&(n=0),o(e,t,n)>=0}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./indexOf.js",{default(e){o=e}},2)},"invoke.js":function e(t,n,e){let r,i,o,s,a;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./map.js",{default(e){o=e}},2),e.link("./_deepGet.js",{default(e){s=e}},3),e.link("./_toPath.js",{default(e){a=e}},4),e.exportDefault(r((function(e,t,n){var r,u;return i(t)?u=t:(t=a(t),r=t.slice(0,-1),t=t[t.length-1]),o(e,(function(e){var i=u;if(!i){if(r&&r.length&&(e=s(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))})))},"pluck.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./map.js",{default(e){r=e}},0),e.link("./property.js",{default(e){i=e}},1)},"where.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./filter.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"max.js":function e(t,n,e){let r,i,o,s;function a(e,t,n){var a=-1/0,u=-1/0,f,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,h=(e=r(e)?e:i(e)).length;la&&(a=f);else t=o(t,n),s(e,(function(e,n,r){((c=t(e,n,r))>u||c===-1/0&&a===-1/0)&&(a=e,u=c)}));return a}e.export({default:()=>a}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2),e.link("./each.js",{default(e){s=e}},3)},"min.js":function e(t,n,e){let r,i,o,s;function a(e,t,n){var a=1/0,u=1/0,f,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,h=(e=r(e)?e:i(e)).length;la}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2),e.link("./each.js",{default(e){s=e}},3)},"shuffle.js":function e(t,n,e){let r;function i(e){return r(e,1/0)}e.export({default:()=>i}),e.link("./sample.js",{default(e){r=e}},0)},"sample.js":function e(t,n,e){let r,i,o,s,a;function u(e,t,n){if(null==t||n)return r(e)||(e=i(e)),e[s(e.length-1)];var u=a(e),f=o(u);t=Math.max(Math.min(t,f),0);for(var c=f-1,l=0;lu}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){o=e}},2),e.link("./random.js",{default(e){s=e}},3),e.link("./toArray.js",{default(e){a=e}},4)},"toArray.js":function e(t,n,e){let r,i,o,s,a,u,f;e.export({default:()=>l}),e.link("./isArray.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isString.js",{default(e){o=e}},2),e.link("./_isArrayLike.js",{default(e){s=e}},3),e.link("./map.js",{default(e){a=e}},4),e.link("./identity.js",{default(e){u=e}},5),e.link("./values.js",{default(e){f=e}},6);var c=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function l(e){return e?r(e)?i.call(e):o(e)?e.match(c):s(e)?a(e,u):f(e):[]}},"sortBy.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s=0;return t=r(t,n),i(o(e,(function(e,n,r){return{value:e,index:s++,criteria:t(e,n,r)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(ns}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./pluck.js",{default(e){i=e}},1),e.link("./map.js",{default(e){o=e}},2)},"groupBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n].push(t):e[n]=[t]})))},"_group.js":function e(t,n,e){let r,i;function o(e,t){return function(n,o,s){var a=t?[[],[]]:{};return o=r(o,s),i(n,(function(t,r){var i=o(t,r,n);e(a,t,i)})),a}}e.export({default:()=>o}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"indexBy.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n]=t})))},"countBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n]++:e[n]=1})))},"partition.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n?0:1].push(t)}),!0))},"size.js":function e(t,n,e){let r,i;function o(e){return null==e?0:r(e)?e.length:i(e).length}e.export({default:()=>o}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"pick.js":function e(t,n,e){let r,i,o,s,a,u;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){o=e}},2),e.link("./allKeys.js",{default(e){s=e}},3),e.link("./_keyInObj.js",{default(e){a=e}},4),e.link("./_flatten.js",{default(e){u=e}},5),e.exportDefault(r((function(e,t){var n={},r=t[0];if(null==e)return n;i(r)?(t.length>1&&(r=o(r,t[1])),t=s(e)):(r=a,t=u(t,!1,!1),e=Object(e));for(var f=0,c=t.length;fr})},"omit.js":function e(t,n,e){let r,i,o,s,a,u,f;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./negate.js",{default(e){o=e}},2),e.link("./map.js",{default(e){s=e}},3),e.link("./_flatten.js",{default(e){a=e}},4),e.link("./contains.js",{default(e){u=e}},5),e.link("./pick.js",{default(e){f=e}},6),e.exportDefault(r((function(e,t){var n=t[0],r;return i(n)?(n=o(n),t.length>1&&(r=t[1])):(t=s(a(t,!1,!1),String),n=function(e,n){return!u(t,n)}),f(e,n,r)})))},"first.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:r(e,e.length-t)}e.export({default:()=>i}),e.link("./initial.js",{default(e){r=e}},0)},"initial.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"last.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:r(e,Math.max(0,e.length-t))}e.export({default:()=>i}),e.link("./rest.js",{default(e){r=e}},0)},"rest.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,null==t||n?1:t)}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"compact.js":function e(t,n,e){let r;function i(e){return r(e,Boolean)}e.export({default:()=>i}),e.link("./filter.js",{default(e){r=e}},0)},"flatten.js":function e(t,n,e){let r;function i(e,t){return r(e,t,!1)}e.export({default:()=>i}),e.link("./_flatten.js",{default(e){r=e}},0)},"without.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./difference.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t){return i(e,t)})))},"difference.js":function e(t,n,e){let r,i,o,s;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./filter.js",{default(e){o=e}},2),e.link("./contains.js",{default(e){s=e}},3),e.exportDefault(r((function(e,t){return t=i(t,!0,!0),o(e,(function(e){return!s(t,e)}))})))},"uniq.js":function e(t,n,e){let r,i,o,s;function a(e,t,n,a){r(t)||(a=n,n=t,t=!1),null!=n&&(n=i(n,a));for(var u=[],f=[],c=0,l=o(e);ca}),e.link("./isBoolean.js",{default(e){r=e}},0),e.link("./_cb.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){o=e}},2),e.link("./contains.js",{default(e){s=e}},3)},"union.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./uniq.js",{default(e){i=e}},1),e.link("./_flatten.js",{default(e){o=e}},2),e.exportDefault(r((function(e){return i(o(e,!0,!0))})))},"intersection.js":function e(t,n,e){let r,i;function o(e){for(var t=[],n=arguments.length,o=0,s=r(e);oo}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./contains.js",{default(e){i=e}},1)},"unzip.js":function e(t,n,e){let r,i,o;function s(e){for(var t=e&&r(e,i).length||0,n=Array(t),s=0;ss}),e.link("./max.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.link("./pluck.js",{default(e){o=e}},2)},"zip.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./unzip.js",{default(e){i=e}},1),e.exportDefault(r(i))},"object.js":function e(t,n,e){let r;function i(e,t){for(var n={},i=0,o=r(e);ii}),e.link("./_getLength.js",{default(e){r=e}},0)},"range.js":function e(t,n,e){function r(e,t,n){null==t&&(t=e||0,e=0),n||(n=tr})},"chunk.js":function e(t,n,e){let r;function i(e,t){if(null==t||t<1)return[];for(var n=[],i=0,o=e.length;ii}),e.link("./_setup.js",{slice(e){r=e}},0)},"mixin.js":function e(t,n,e){let r,i,o,s,a;function u(e){return i(o(e),(function(t){var n=r[t]=e[t];r.prototype[t]=function(){var e=[this._wrapped];return s.apply(e,arguments),a(this,n.apply(r,e))}})),r}e.export({default:()=>u}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./functions.js",{default(e){o=e}},2),e.link("./_setup.js",{push(e){s=e}},3),e.link("./_chainResult.js",{default(e){a=e}},4)},"_chainResult.js":function e(t,n,e){let r;function i(e,t){return e._chain?r(t).chain():t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"underscore-array-methods.js":function e(t,n,e){let r,i,o,s;e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./_setup.js",{ArrayProto(e){o=e}},2),e.link("./_chainResult.js",{default(e){s=e}},3),i(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=o[e];r.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),s(this,n)}})),i(["concat","join","slice"],(function(e){var t=o[e];r.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),s(this,e)}})),e.exportDefault(r)}}}}},cachers:{"package.json":function e(t,n,e){e.exports={name:"@steedos/cachers",version:"2.5.15-beta.9",main:"lib/index.js"}},lib:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getCacherNames=n.clearCacher=n.getCacher=void 0;var r={},i=t("./memory"),o=t("./memory-lru"),s=function(e,t){return r[e]||(e.startsWith("lru.")?r[e]=new o.MemoryLRUCacher(t):r[e]=new i.MemoryCacher),r[e]};n.getCacher=s;var a=function(e){r[e]&&r[e].clear()};n.clearCacher=a;var u=function(){return Object.keys(r)};n.getCacherNames=u},"memory.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryCacher=void 0;var r=t("lodash"),i=function(){function e(){this.cache={}}return e.prototype.get=function(e){return this.cache[e]},e.prototype.delete=function(e){delete this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.clear=function(){this.cache={}},e.prototype.keys=function(){return(0,r.keys)(this.cache)},e.prototype.values=function(){return(0,r.values)(this.cache)},e}();n.MemoryCacher=i},"memory-lru.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryLRUCacher=void 0;var r=t("lodash"),i=t("lru-cache"),o={max:5e3,ttl:null,keygen:null,maxParamsLength:null},s=function(){function e(e){this.opts=(0,r.defaultsDeep)(e,o),this.cache=new i({max:this.opts.max,maxAge:this.opts.ttl?1e3*this.opts.ttl:null,updateAgeOnGet:!!this.opts.ttl})}return e.prototype.get=function(e){return this.cache.get(e)},e.prototype.set=function(e,t,n){return this.cache.set(e,t,n)},e.prototype.delete=function(e){return this.cache.delete(e)},e.prototype.clear=function(){return this.cache.clear()},e.prototype.keys=function(){return this.cache.keys()},e.prototype.values=function(){return this.cache.values()},e}();n.MemoryLRUCacher=s}},node_modules:{"lru-cache":{"package.json":function e(t,n,e){e.exports={name:"lru-cache",version:"7.14.1",main:"index.js"}},"index.js":function e(t,n,e){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,i="function"==typeof AbortController,o=i?AbortController:class e{constructor(){this.signal=new u}abort(){this.signal.dispatchEvent("abort")}},s="function"==typeof AbortSignal,a="function"==typeof o.AbortSignal,u=s?AbortSignal:a?o.AbortController:class e{constructor(){this.aborted=!1,this._listeners=[]}dispatchEvent(e){if("abort"===e){this.aborted=!0;const t={type:e,target:this};this.onabort(t),this._listeners.forEach(e=>e(t),this)}}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},f=new Set,c=(e,t)=>{const n=`LRU_CACHE_OPTION_${e}`;p(n)&&g(n,`${e} option`,`options.${t}`,_)},l=(e,t)=>{const n=`LRU_CACHE_METHOD_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} method`,`cache.${t}()`,i)}},h=(e,t)=>{const n=`LRU_CACHE_PROPERTY_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} property`,`cache.${t}`,i)}},d=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},p=e=>!f.has(e),g=(e,t,n,r)=>{f.add(e);const i=`The ${t} is deprecated. Please use ${n} instead.`;d(i,"DeprecationWarning",e,r)},b=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),m=e=>b(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?v:null:null;class v extends Array{constructor(e){super(e),this.fill(0)}}class y{constructor(e){if(0===e)return[];const t=m(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class _{constructor(e={}){const{max:t=0,ttl:n,ttlResolution:r=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:s,allowStale:a,dispose:u,disposeAfter:l,noDisposeOnSet:h,noUpdateTTL:g,maxSize:v=0,maxEntrySize:w=0,sizeCalculation:k,fetchMethod:j,fetchContext:x,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:D}=e,{length:E,maxAge:A,stale:C}=e instanceof _?{}:e;if(0!==t&&!b(t))throw new TypeError("max option must be a nonnegative integer");const M=t?m(t):Array;if(!M)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=v,this.maxEntrySize=w||this.maxSize,this.sizeCalculation=k||E,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=j||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=x,!this.fetchMethod&&void 0!==x)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new M(t),this.prev=new M(t),this.head=0,this.tail=0,this.free=new y(t),this.initialFill=1,this.size=0,"function"==typeof u&&(this.dispose=u),"function"==typeof l?(this.disposeAfter=l,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!S,0!==this.maxEntrySize){if(0!==this.maxSize&&!b(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!b(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!a||!!C,this.noDeleteOnStaleGet=!!D,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!s,this.ttlResolution=b(r)||0===r?r:1,this.ttlAutopurge=!!i,this.ttl=n||A||0,this.ttl){if(!b(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";if(p(e)){f.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";d(t,"UnboundedCacheWarning",e,_)}}C&&c("stale","allowStale"),A&&c("maxAge","ttl"),E&&c("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new v(this.max),this.starts=new v(this.max),this.setItemTTL=(e,t,n=r.now())=>{if(this.starts[e]=0!==t?n:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const n=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);n.unref&&n.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0};let e=0;const t=()=>{const t=r.now();if(this.ttlResolution>0){e=t;const n=setTimeout(()=>e=0,this.ttlResolution);n.unref&&n.unref()}return t};this.getRemainingTTL=n=>{const r=this.keyMap.get(n);return void 0===r?0:0===this.ttls[r]||0===this.starts[r]?1/0:this.starts[r]+this.ttls[r]-(e||t())},this.isStale=n=>0!==this.ttls[n]&&0!==this.starts[n]&&(e||t())-this.starts[n]>this.ttls[n]}updateItemAge(e){}setItemTTL(e,t,n){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new v(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,n,r)=>{if(this.isBackgroundFetch(t))return 0;if(!b(n)){if(!r)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!b(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.addItemSize=(e,t)=>{if(this.sizes[e]=t,this.maxSize){const t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e]}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,n,r){if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const n of this.indexes())if(e(this.valList[n],this.keyList[n],this))return this.get(this.keyList[n],t)}forEach(e,t=this){for(const n of this.indexes())e.call(t,this.valList[n],this.keyList[n],this)}rforEach(e,t=this){for(const n of this.rindexes())e.call(t,this.valList[n],this.keyList[n],this)}get prune(){return l("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes({allowStale:!0})){const n=this.keyList[t],i=this.valList[t],o=this.isBackgroundFetch(i)?i.__staleWhileFetching:i,s={value:o};if(this.ttls){s.ttl=this.ttls[t];const e=r.now()-this.starts[t];s.start=Math.floor(Date.now()-e)}this.sizes&&(s.size=this.sizes[t]),e.unshift([n,s])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}dispose(e,t,n){}set(e,t,{ttl:n=this.ttl,start:r,noDisposeOnSet:i=this.noDisposeOnSet,size:o=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(o=this.requireSize(e,t,o,s),this.maxEntrySize&&o>this.maxEntrySize)return this.delete(e),this;let u=0===this.size?void 0:this.keyMap.get(e);if(void 0===u)u=this.newIndex(),this.keyList[u]=e,this.valList[u]=t,this.keyMap.set(e,u),this.next[this.tail]=u,this.prev[u]=this.tail,this.tail=u,this.size++,this.addItemSize(u,o),a=!1;else{const n=this.valList[u];t!==n&&(this.isBackgroundFetch(n)?n.__abortController.abort():i||(this.dispose(n,e,"set"),this.disposeAfter&&this.disposed.push([n,e,"set"])),this.removeItemSize(u),this.valList[u]=t,this.addItemSize(u,o)),this.moveToTail(u)}if(0===n||0!==this.ttl||this.ttls||this.initializeTTLTracking(),a||this.setItemTTL(u,n,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,n=this.keyList[t],r=this.valList[t];return this.isBackgroundFetch(r)?r.__abortController.abort():(this.dispose(r,n,"evict"),this.disposeAfter&&this.disposed.push([r,n,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(n),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const n=this.keyMap.get(e);return void 0!==n&&!this.isStale(n)&&(t&&this.updateItemAge(n),!0)}peek(e,{allowStale:t=this.allowStale}={}){const n=this.keyMap.get(e);if(void 0!==n&&(t||!this.isStale(n))){const e=this.valList[n];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,n,r){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const s=new o,a={signal:s.signal,options:n,context:r},u=t=>(s.signal.aborted||this.set(e,t,a.options),t),f=r=>{if(this.valList[t]===l){const r=!n.noDeleteOnFetchRejection||void 0===l.__staleWhileFetching;r?this.delete(e):this.valList[t]=l.__staleWhileFetching}if(l.__returned===l)throw r},c=t=>t(this.fetchMethod(e,i,a)),l=new Promise(c).then(u,f);return l.__abortController=s,l.__staleWhileFetching=i,l.__returned=null,void 0===t?(this.set(e,l,a.options),t=this.keyMap.get(e)):this.valList[t]=l,l}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,fetchContext:c=this.fetchContext,forceRefresh:l=!1}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r});const h={allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:i,noDisposeOnSet:o,size:s,sizeCalculation:a,noUpdateTTL:u,noDeleteOnFetchRejection:f};let d=this.keyMap.get(e);if(void 0===d){const t=this.backgroundFetch(e,d,h,c);return t.__returned=t}{const r=this.valList[d];if(this.isBackgroundFetch(r))return t&&void 0!==r.__staleWhileFetching?r.__staleWhileFetching:r.__returned=r;if(!l&&!this.isStale(d))return this.moveToTail(d),n&&this.updateItemAge(d),r;const i=this.backgroundFetch(e,d,h,c);return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i.__returned=i}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet}={}){const i=this.keyMap.get(e);if(void 0!==i){const o=this.valList[i],s=this.isBackgroundFetch(o);if(this.isStale(i))return s?t?o.__staleWhileFetching:void 0:(r||this.delete(e),t?o:void 0);if(s)return;return this.moveToTail(i),n&&this.updateItemAge(i),o}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return l("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const n=this.keyMap.get(e);if(void 0!==n)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(n);const t=this.valList[n];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const n=this.keyList[e];this.dispose(t,n,"delete"),this.disposeAfter&&this.disposed.push([t,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return l("reset","clear"),this.clear}get length(){return h("length","size"),this.size}static get AbortController(){return o}static get AbortSignal(){return u}}e.exports=_}}}}},tslib:{"package.json":function e(t,n,e){e.exports={name:"tslib",version:"2.3.1",module:"tslib.es6.js",main:"tslib.js"}},"tslib.es6.js":function e(t,n,e){e.export({__extends:()=>i,__assign:()=>o,__rest:()=>s,__decorate:()=>a,__param:()=>u,__metadata:()=>f,__awaiter:()=>c,__generator:()=>l,__createBinding:()=>h,__exportStar:()=>d,__values:()=>p,__read:()=>g,__spread:()=>b,__spreadArrays:()=>m,__spreadArray:()=>v,__await:()=>y,__asyncGenerator:()=>_,__asyncDelegator:()=>w,__asyncValues:()=>k,__makeTemplateObject:()=>j,__importStar:()=>S,__importDefault:()=>D,__classPrivateFieldGet:()=>E,__classPrivateFieldSet:()=>A}); +if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,r=this,i;return e(this).one("bsTransitionEnd",(function(){n=!0})),setTimeout((function(){n||e(r).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};function r(t){return this.each((function(){var r=e(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),"string"==typeof t&&i[t].call(r)}))}n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.close=function(t){var r=e(this),i=r.attr("data-target");i||(i=(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var o=e(document).find(i);function s(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=r.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",s).emulateTransitionEnd(n.TRANSITION_DURATION):s())};var i=e.fn.alert;e.fn.alert=r,e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.isLoading=!1};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.button"),o="object"==typeof n&&n;i||r.data("bs.button",i=new t(this,o)),"toggle"==n?i.toggle():n&&i.setState(n)}))}t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var n="disabled",r=this.$element,i=r.is("input")?"val":"html",o=r.data();t+="Text",null==o.resetText&&r.data("resetText",r[i]()),setTimeout(e.proxy((function(){r[i](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n).prop(n,!1))}),this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var r=e.fn.button;e.fn.button=n,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=r,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var r=e(t.target).closest(".btn");n.call(r,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(jQuery),function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.carousel"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n),s="string"==typeof n?n:o.slide;i||r.data("bs.carousel",i=new t(this,o)),"number"==typeof n?i.to(n):s?i[s]():o.interval&&i.pause().cycle()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),r;if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var i,o=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(o)},t.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(n,r){var i=this.$element.find(".item.active"),o=r||this.getItemForDirection(n,i),s=this.interval,a="next"==n?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var f=o[0],c=e.Event("slide.bs.carousel",{relatedTarget:f,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=e(this.$indicators.children()[this.getItemIndex(o)]);l&&l.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:f,direction:a});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(n),"object"==typeof o&&o.length&&o[0].offsetWidth,i.addClass(a),o.addClass(a),i.one("bsTransitionEnd",(function(){o.removeClass([n,a].join(" ")).addClass("active"),i.removeClass(["active",a].join(" ")),u.sliding=!1,setTimeout((function(){u.$element.trigger(h)}),0)})).emulateTransitionEnd(t.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}};var r=e.fn.carousel;e.fn.carousel=n,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=r,this};var i=function(t){var r=e(this),i=r.attr("href");i&&(i=i.replace(/.*(?=#[^\s]+$)/,""));var o=r.attr("data-target")||i,s=e(document).find(o);if(s.hasClass("carousel")){var a=e.extend({},s.data(),r.data()),u=r.attr("data-slide-to");u&&(a.interval=!1),n.call(s,a),u&&s.data("bs.carousel").to(u),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var t=e(this);n.call(t,t.data())}))}))}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.$trigger=e('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var n,r=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(r)}function r(n){return this.each((function(){var r=e(this),i=r.data("bs.collapse"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n);!i&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),i||r.data("bs.collapse",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e;return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(n=i.data("bs.collapse"))&&n.transitioning)){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(r.call(i,"hide"),n||i.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var u=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[s](this.$element[0][u])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=e.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return i.call(this);this.$element[r](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,r){var i=e(r);this.addAriaAndCollapsedClass(n(i),i)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var i=e.fn.collapse;e.fn.collapse=r,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var i=e(this);i.attr("data-target")||t.preventDefault();var o=n(i),s,a=o.data("bs.collapse")?"toggle":i.data();r.call(o,a)}))}(jQuery),function(e){"use strict";var t=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(t){e(t).on("click.bs.dropdown",this.toggle)};function i(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r="#"!==n?e(document).find(n):null;return r&&r.length?r:t.parent()}function o(r){r&&3===r.which||(e(t).remove(),e(n).each((function(){var t=e(this),n=i(t),o={relatedTarget:this};n.hasClass("open")&&(r&&"click"==r.type&&/input|textarea/i.test(r.target.tagName)&&e.contains(n[0],r.target)||(n.trigger(r=e.Event("hide.bs.dropdown",o)),r.isDefaultPrevented()||(t.attr("aria-expanded","false"),n.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))})))}function s(t){return this.each((function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof t&&i[t].call(n)}))}r.VERSION="3.4.1",r.prototype.toggle=function(t){var n=e(this);if(!n.is(".disabled, :disabled")){var r=i(n),s=r.hasClass("open");if(o(),!s){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",o);var a={relatedTarget:this};if(r.trigger(t=e.Event("show.bs.dropdown",a)),t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(e.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var r=e(this);if(t.preventDefault(),t.stopPropagation(),!r.is(".disabled, :disabled")){var o=i(r),s=o.hasClass("open");if(!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(n).trigger("focus"),r.trigger("click");var a=" li:not(.disabled):visible a",u=o.find(".dropdown-menu"+a);if(u.length){var f=u.index(t.target);38==t.which&&f>0&&f--,40==t.which&&fdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},f.prototype.init=function(t,n,r){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var s=i[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",u="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},f.prototype.getDefaults=function(){return f.DEFAULTS},f.prototype.getOptions=function(n){var r=this.$element.data();for(var i in r)r.hasOwnProperty(i)&&-1!==e.inArray(i,t)&&delete r[i];return(n=e.extend({},this.getDefaults(),r,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=u(n.template,n.whiteList,n.sanitizeFn)),n},f.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,(function(e,r){n[e]!=r&&(t[e]=r)})),t},f.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout((function(){"in"==n.hoverState&&n.show()}),n.options.delay.show)}},f.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},f.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout((function(){"out"==n.hoverState&&n.hide()}),n.options.delay.hide)}},f.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var r=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,u=a.test(s);u&&(s=s.replace(a,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?i.appendTo(e(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),l=i[0].offsetWidth,h=i[0].offsetHeight;if(u){var d=s,p=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+h>p.bottom?"top":"top"==s&&c.top-hp.width?"left":"left"==s&&c.left-ls.top+s.height&&(i.top=s.top+s.height-u)}else{var f=t.left-o,c=t.left+o+n;fs.right&&(i.left=s.left+s.width-c)}return i},f.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},f.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},f.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},f.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},f.prototype.enable=function(){this.enabled=!0},f.prototype.disable=function(){this.enabled=!1},f.prototype.toggleEnabled=function(){this.enabled=!this.enabled},f.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},f.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},f.prototype.sanitizeHtml=function(e){return u(e,this.options.whiteList,this.options.sanitizeFn)};var l=e.fn.tooltip;e.fn.tooltip=c,e.fn.tooltip.Constructor=f,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=l,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");function n(n){return this.each((function(){var r=e(this),i=r.data("bs.popover"),o="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.popover",i=new t(this,o)),"string"==typeof n&&i[n]())}))}t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();if(this.options.html){var r=typeof n;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===r&&(n=this.sanitizeHtml(n))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===r?"html":"append"](n)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(n);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var r=e.fn.popover;e.fn.popover=n,e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=r,this}}(jQuery),function(e){"use strict";function t(n,r){this.$body=e(document.body),this.$scrollElement=e(n).is(document.body)?e(window):e(n),this.options=e.extend({},t.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each((function(){var r=e(this),i=r.data("bs.scrollspy"),o="object"==typeof n&&n;i||r.data("bs.scrollspy",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),i=t.data("target")||t.attr("href"),o=/^#./.test(i)&&e(i);return o&&o.length&&o.is(":visible")&&[[o[n]().top+r,i]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.getScrollHeight(),n=this.options.offset+t-this.$scrollElement.height(),r=this.offsets,i=this.targets,o=this.activeTarget,s;if(this.scrollHeight!=t&&this.refresh(),e>=n)return o!=(s=i[i.length-1])&&this.activate(s);if(o&&e=r[s]&&(void 0===r[s+1]||e .active"),s=i&&e.support.transition&&(o.length&&o.hasClass("fade")||!!r.find("> .fade").length);function a(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&s?o.one("bsTransitionEnd",a).emulateTransitionEnd(t.TRANSITION_DURATION):a(),o.removeClass("in")};var r=e.fn.tab;e.fn.tab=n,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=r,this};var i=function(t){t.preventDefault(),n.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(e){"use strict";var t=function(n,r){this.options=e.extend({},t.DEFAULTS,r);var i=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.affix"),o="object"==typeof n&&n;i||r.data("bs.affix",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,n,r){var i=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return i=e-r&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),r=this.options.offset,i=r.top,o=r.bottom,s=Math.max(e(document).height(),e(document.body).height());"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var a=this.getState(s,n,i,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var u="affix"+(a?"-"+a:""),f=e.Event(u+".bs.affix");if(this.$element.trigger(f),f.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-n-o})}};var r=e.fn.affix;e.fn.affix=n,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=r,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var t=e(this),r=t.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),n.call(t,r)}))}))}(jQuery)}}}},fibers:{"package.json":function e(t,n,e){e.exports={name:"fibers",version:"5.0.3",main:"fibers"}},"fibers.js":function e(t,n,e,r,i){if(process.fiberLib)e.exports=process.fiberLib;else{var o=t("fs"),s=t("path"),a=t("detect-libc");Math.random();var u=s.join(i,"bin",process.platform+"-"+process.arch+"-"+process.versions.modules+("linux"===process.platform?"-"+a.family:""),"fibers");try{process.fiberLib=e.exports=t(u).Fiber}catch(c){throw console.error("## There is an issue with `node-fibers` ##\n`"+u+".node` is missing.\n\nTry running this to fix the issue: "+process.execPath+" "+i.replace(" ","\\ ")+"/build"),console.error(c.stack||c.message||c),new Error("Missing binary. See message above.")}f(e.exports)}function f(e){try{var t=process.binding("async_wrap"),n;if(t.asyncIdStackSize instanceof Function)n=t.asyncIdStackSize;else{if(void 0===t.constants.kStackLength)throw new Error("Couldn't figure out how to get async stack size");l=t.constants.kStackLength,n=function(){return t.async_hook_fields[l]}}var r=t.popAsyncContext||t.popAsyncIds,i=t.pushAsyncContext||t.pushAsyncIds,o,s;if(!r||!i)throw new Error("Push/pop do not exist");o=void 0===t.constants.kExecutionAsyncId?t.constants.kCurrentAsyncId:t.constants.kExecutionAsyncId,s=void 0===t.constants.kTriggerAsyncId?t.constants.kCurrentTriggerId:t.constants.kTriggerAsyncId;var a=t.async_id_fields||t.async_uid_fields;function u(){for(var e=n(),t=new Array(e);e>0;--e){var i=a[o];t[e-1]={asyncId:i,triggerId:a[s]},r(i)}return t}function f(e){for(var t=0;t0)i.changeLanguage(e,r);else if(0!=a[u]){a[u]=0;var f=new XMLHttpRequest;f.overrideMimeType("application/json"),f.open("GET",u,!1),f.send(null),200===f.status?a[u]=1:a[u]=-1,n.addResourceBundle(e,s,JSON.parse(f.response)||{}),i.changeLanguage(e,r)}};n.changeLanguage=p;var g=function(e,t,n){return i.format(e,t,n)};n.format=g;var b=function(){return i.languages};n.getLanguages=b;var m=function(e,t){return i.loadLanguages(e,t)};n.loadLanguages=m;var v=function(e,t){return i.loadNamespaces(e,t)};n.loadNamespaces=v;var y=function(e,t){return i.on(e,t)};n.on=y;var _=function(e,t){return i.off(e,t)};n.off=_,r.__exportStar(t("./i18n/i18n"),n),r.__exportStar(t("./i18n/i18n.app"),n),r.__exportStar(t("./translations"),n)},i18n:{"i18n.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fallbackKeys=n.getObjectI18nTemplate=n.translationI18nObjects=n.addObjectsI18n=n.translationI18nObject=void 0;var r=t("../index"),i=t("underscore"),o=t("clone"),s="_",a="base",u="core",f="translation",c=function(e,t){var n={lng:t,ns:f};if((0,r.exists)(e,n))return(0,r._t)(e,n)},l=function(e){return"".concat(e,"__object")},h=function(e,t){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t)},d=function(e,t){var n=h(e,t);return"".concat(n).concat("_","inlineHelpText")},p=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","group").concat("_").concat(n)},g=function(e,t,n){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t).concat("_","options").concat("_").concat(n)},b=function(e,t){return"".concat(e).concat("_","action").concat("_").concat(t)},m=function(e,t){return"".concat(e).concat("_","listview").concat("_").concat(t)},v=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},y=function(e,t,n){var r=l(t);return c(r,e)||n||""},_=function(e,t,n,r,i){var o=h(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=_(e,a,n,r,i))}return s||r||""},w=function(e,t,n,r,i){var o=d(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=w(e,a,n,r,i))}return s||r||""},k=function(e,t,n,r){var i=p(t,n);return c(i,e)||r||""},j=function(e,t,n,r,i,o){var s=g(t,n,r),a=c(s,e);if(!a){var u=v(o);u&&"base"!=t&&"core"!=t&&(a=j(e,u,n,r,i,o))}return a||i||""},x=function(e,t,n,r,i){var o=b(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=x(e,a,n,r,i))}return s||r||""},S=function(e,t,n,r,i){var o=m(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=S(e,a,n,r,i))}return s||r||""},D=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},E=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;return e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(D(e))}))):n.push(D(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},A=function(e,t,n){n.label=y(e,t,n.label),i.each(n.fields,(function(r,o){if(r.label=_(e,t,o,r.label,n.datasource),r.inlineHelpText&&(r.inlineHelpText=w(e,t,o,r.inlineHelpText,n.datasource)),r.group&&(r.group=k(e,t,r.group,r.group)),r.options){var s=[];i.each(r.options,(function(r){if(i.has(r,"value")){var a=j(e,t,o,r.value,r.label,n.datasource);s.push(i.extend({},r,{label:a}))}else s.push(r)})),r.options=s}})),i.each(n.actions,(function(r,i){r.label=x(e,t,i,r.label,n.datasource)})),i.each(n.list_views,(function(r,i){r.label=S(e,t,i,r.label,n.datasource)}))};n.translationI18nObject=A;var C=function(e){i.each(e,(function(e){(0,r.addResourceBundle)(e.lng,f,e.data,!0,!0)}))};n.addObjectsI18n=C;var M=function(e,t){i.each(t,(function(t,r){(0,n.translationI18nObject)(e,r,t)}))};n.translationI18nObjects=M;var O=function(e,t,n){var r=o(n);E(r);var s={};return s[l(t)]=y(e,t,r.label),i.each(r.fields,(function(n,o){s[h(t,o)]=_(e,t,o,n.label),n.inlineHelpText&&(s[d(t,o)]=w(e,t,o,n.inlineHelpText,r.datasource)),n.group&&(s[p(t,n.group)]=k(e,t,n.group,n.group)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(s[g(t,o,n.value)]=j(e,t,o,n.value,n.label))}))})),i.each(r.actions,(function(n,r){s[b(t,r)]=x(e,t,r,n.label)})),i.each(r.list_views,(function(n,r){s[m(t,r)]=S(e,t,r,n.label)})),s};n.getObjectI18nTemplate=O,n.fallbackKeys={getObjectLabelKey:l,getObjectFieldLabelKey:h,getObjectFieldInlineHelpTextLabelKey:d,getObjectFieldGroupKey:p,getObjectFieldOptionsLabelKey:g,getObjectActionLabelKey:b,getObjectListviewLabelKey:m}},"i18n.app.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.appFallbackKeys=n.getAppI18nTemplate=n.translationI18nApps=n.translationI18nMenus=void 0;var r=t("../index"),i=t("underscore"),o=t("clone"),s="translation",a="_",u=function(e,t){var n={lng:t,ns:s};if((0,r.exists)(e,n))return(0,r._t)(e,n)},f=function(e){return"app".concat("_").concat(e).concat("_","name")},c=function(e){return"app".concat("_").concat(e).concat("_","description")},l=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","tab_group").concat("_").concat(n)},h=function(e){return"menu".concat("_").concat(e)},d=function(e){return"tab".concat("_").concat(e)},p=function(e,t,n){var r=f(t);return u(r,e)||n||""},g=function(e,t,n){var r=c(t);return u(r,e)||n||""},b=function(e,t,n){var r=h(t);return u(r,e)||n||""},m=function(e,t,r){r.label=p(e,t,r.label||r.name),r.description=g(e,t,r.description),(0,n.translationI18nMenus)(e,r.admin_menus)},v=function(e,t){i.each(t,(function(t){var n=b(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationI18nMenus=v;var y=function(e,t){i.each(t,(function(t,n){m(e,n,t)}))};n.translationI18nApps=y;var _=function(e,t,n){var r=o(n),s={};return s[f(t)]=p(e,t,r.label||r.name),s[c(t)]=g(e,t,r.description),i.each(r.admin_menus,(function(t){s[h(t._id)]=b(e,t._id,t.label||t.name)})),s};n.getAppI18nTemplate=_,n.appFallbackKeys={getAppLabelKey:f,getAppDescriptionKey:c,getAppGroupKey:l,getMenuLabelKey:h,getTabKey:d}}},translations:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SteedosTranslationPrefixKeys=n.convertObject=void 0;var r=t("tslib"),i=t("underscore");r.__exportStar(t("./objectTranslation"),n),r.__exportStar(t("./translation"),n),r.__exportStar(t("./templates/objectTranslation"),n),r.__exportStar(t("./templates/translation"),n);var o=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},s=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(o(e))}))):n.push(o(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else if(e.options&&i.isArray(e.options))try{i.forEach(e.options,(function(e){i.isString(e)?n.push(o(e)):n.push(e)})),e.options=n}catch(r){console.error("Creator.convertFieldsOptions",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},a;n.convertObject=s,function(e){e.Object="CustomObject",e.Field="CustomField",e.Action="CustomAction",e.Listview="CustomListview",e.Permission="CustomPermission",e.ValidationRule="CustomValidationRule",e.Application="CustomApplication",e.Tab="CustomTabs",e.Permissionset="CustomPermissionset",e.Profile="CustomProfile",e.Report="CustomReport",e.Workflow="Workflow",e.Layout="Layout",e.Client="Client",e.Server="Server",e.Function="Function",e.Router="Router",e.Trigger="Trigger"}(a=n.SteedosTranslationPrefixKeys||(n.SteedosTranslationPrefixKeys={}))},"objectTranslation.js":function e(t,n,e,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addObjectsTranslation=n.getObjectTranslationTemplate=n.translationObjects=n.translationObject=n.translationObjectLabel=void 0;var i=t("underscore"),o=t("./"),s=t("../index"),a=t("./index"),u=t("../i18n/i18n"),f=t("lodash"),c=t("crypto"),l,h=(0,t("@steedos/cachers").getCacher)("lru.translations.objects");function d(e){var t;return c.createHash("md5").update(e).digest("hex")}var p=function(e,t){return"".concat(e,"_").concat(t.name,"_").concat(d(JSON.stringify(t)))},g=t("clone"),b=".",m="base",v="core",y="translation",_="object",w="field",k="listview",j="action",x=function(e,t){var n={lng:t,ns:y,keySeparator:!1};if((0,s.exists)(e,n))return(0,s._t)(e,n)},S=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},D=function(e){switch(e){case"object":return o.SteedosTranslationPrefixKeys.Object;case"field":return o.SteedosTranslationPrefixKeys.Field;case"listview":return o.SteedosTranslationPrefixKeys.Listview;case"action":return o.SteedosTranslationPrefixKeys.Action;default:return"CustomLabels"}},E=function(e){var t;return[D(),e].join(".")},A=function(e){var t;return[D("object"),e,"label"].join(".")},C=function(e){var t;return[D("object"),e,"description"].join(".")},M=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"label"].join(".")},O=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"help"].join(".")},T=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"description"].join(".")},B=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_"),r;return[D("field"),e,"group",n].join(".")},I=function(e,t,n){var r;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"options",n].join(".")},R=function(e,t){var n;return[D("action"),e,t].join(".")},F=function(e,t){var n;return[D("listview"),e,t].join(".")},P=function(e,t,n){var r,i=[A(t)],o=u.fallbackKeys.getObjectLabelKey(t);return o&&i.push(o),x(i,e)||n||""};n.translationObjectLabel=P;var N=function(e,t,n){var r=C(t);return x(r,e)||n||""},L=function(e,t,n,r,i,o){var s,a=[M(t,n)],f=u.fallbackKeys.getObjectFieldLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=L(e,l,n,r,i))}return c||r||""},z=function(e,t,n,r,i,o){var s,a=[O(t,n)],f=u.fallbackKeys.getObjectFieldInlineHelpTextLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=z(e,l,n,r,i))}return c||r||""},U=function(e,t,n,r,i,o){var s=T(t,n),a,u=x([s],e);if(1!=o&&!u){var f=S(i);f&&"base"!=t&&"core"!=t&&(u=U(e,f,n,r,i))}return u||r||""},q=function(e,t,n,r,i,o){var s,a=[B(t,n)],f=u.fallbackKeys.getObjectFieldGroupKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=q(e,l,n,r,i))}return c||r||""},$=function(e,t,n,r,i,o,s){var a,f=[I(t,n,r)],c=u.fallbackKeys.getObjectFieldOptionsLabelKey(t,n,r);c&&f.push(c);var l=x(f,e);if(1!=s&&!l){var h=S(o);h&&"base"!=t&&"core"!=t&&(l=$(e,h,n,r,i,o))}return l||i||""},H=function(e,t,n,r,i,o){var s,a=[R(t,n)],f=u.fallbackKeys.getObjectActionLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=H(e,l,n,r,i))}return c||r||""},W=function(e,t,n,r,i,o){var s,a=[F(t,n)],f=u.fallbackKeys.getObjectListviewLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=W(e,l,n,r,i))}return c||r||""},Y=function(e,t,r,o,s){void 0===s&&(s=!1);var u=p(e,r);"test_obj_layout1"===t&&console.log("translationObject",t,u);var c=h.get(u);if(c)return Object.assign(r,(0,f.cloneDeep)(c));o&&(0,a.convertObject)(r),r.label=(0,n.translationObjectLabel)(e,t,r.label),r.description=N(e,t,r.description),i.each(r.fields,(function(n,o){if(n.label=L(e,t,o,n.label,r.datasource,s),n.inlineHelpText&&(n.inlineHelpText=z(e,t,o,n.inlineHelpText,r.datasource,s)),n.group&&(n.group=q(e,t,n.group,n.group,r.datasource,s)),n.options){var a=[];i.each(n.options,(function(n){if(i.has(n,"value")){var u=$(e,t,o,n.value,n.label,r.datasource,s);a.push(i.extend({},n,{label:u}))}else a.push(n)})),n.options=a}})),i.each(r.actions,(function(n,i){n.label=H(e,t,i,n.label,r.datasource,s)})),i.each(r.list_views,(function(n,i){n.label=W(e,t,i,n.label,r.datasource,s)})),h.set(u,(0,f.cloneDeep)(r))};n.translationObject=Y;var V=function(e,t){i.each(t,(function(t,r){(0,n.translationObject)(e,r,t)}))};n.translationObjects=V;var K=function(e,t,r){var o=g(r);(0,a.convertObject)(o);var s={};return s[A(t)]=(0,n.translationObjectLabel)(e,t,o.label),s[C(t)]=N(e,t,o.description),i.each(o.fields,(function(n,r){s[M(t,r)]=L(e,t,r,n.label),n.inlineHelpText&&(s[O(t,r)]=z(e,t,r,n.inlineHelpText,o.datasource)),n.description&&(s[T(t,r)]=U(e,t,r,n.description,o.datasource)),n.group&&(s[B(t,n.group)]=q(e,t,n.group,n.group,o.datasource)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(s[I(t,r,n.value)]=$(e,t,r,n.value,n.label))}))})),i.each(o.actions,(function(n,r){s[R(t,r)]=H(e,t,r,n.label)})),i.each(o.list_views,(function(n,r){s[F(t,r)]=W(e,t,r,n.label)})),s};function G(e,t){var n=g(e);(0,a.convertObject)(n);var r={},o=n.name;return o||console.error("Error: Invalid objectTranslation:"+t),r[A(o)]=n.label,r[C(o)]=n.description,i.each(n.fields,(function(e,t){r[M(o,t)]=e.label,e.help&&(r[O(o,t)]=e.help),e.description&&(r[T(o,t)]=e.description),e.options&&i.each(e.options,(function(e){i.has(e,"value")&&(r[I(o,t,e.value)]=e.label)}))})),i.each(n.groups,(function(e,t){r[B(o,t)]=e})),i.each(n.actions,(function(e,t){r[R(o,t)]=e.label})),i.each(n.listviews,(function(e,t){r[F(o,t)]=e.label})),i.each(n.CustomLabels,(function(e,t){r[E(t)]=e})),r}n.getObjectTranslationTemplate=K;var X=function(e){i.each(e,(function(e){var t=G(e.data,e.__filename);(0,s.addResourceBundle)(e.lng,y,t,!0,!0)}))};n.addObjectsTranslation=X},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addTranslations=n.convertTranslation=n.convertTranslationData=n.getAppTranslationTemplate=n.translationApps=n.translationMenus=n.translationApp=n.translationTabLabel=n.translationTabGroup=void 0;var r=t("../index"),i=t("underscore"),o=t("./"),s=t("../i18n/i18n.app"),a=t("clone"),u="translation",f=".",c="app",l="menu",h="tab",d=function(e){switch(e){case"app":return o.SteedosTranslationPrefixKeys.Application;case"tab":return o.SteedosTranslationPrefixKeys.Tab;default:return"CustomLabels"}},p=function(e){var t;return[d(),e].join(".")},g=function(e,t){var n={lng:t,ns:u,keySeparator:!1};if((0,r.exists)(e,n))return(0,r._t)(e,n)},b=function(e){var t;return[d("app"),e,"name"].join(".")},m=function(e){var t;return[d("app"),e,"description"].join(".")},v=function(e,t){var n,r;return[d("app"),e,"groups",t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_")].join(".")},y=function(e){var t;return[d("menu"),"menu_".concat(e)].join(".")},_=function(e){var t;return[d("tab"),e].join(".")},w=function(e,t,n){var r,i=[b(t)],o=s.appFallbackKeys.getAppLabelKey(t);return o&&i.push(o),g(i,e)||n||""},k=function(e,t,n){var r,i=[m(t)],o=s.appFallbackKeys.getAppDescriptionKey(t);return o&&i.push(o),g(i,e)||n||""},j=function(e,t,n,r){var i,o=[v(t,n)],a=s.appFallbackKeys.getAppGroupKey(t,n);return a&&o.push(a),g(o,e)||r||""};n.translationTabGroup=j;var x=function(e,t,n){var r,i=[y(t)],o=s.appFallbackKeys.getMenuLabelKey(t);return o&&i.push(o),g(i,e)||n||""},S=function(e,t,n){var r,i=[_(t)],o=s.appFallbackKeys.getTabKey(t);return o&&i.push(o),g(i,e)||n||""};n.translationTabLabel=S;var D=function(e,t,r){r.label=w(e,t,r.label||r.name),r.description=k(e,t,r.description),i.each(r.tab_groups,(function(i,o){r.tab_groups[o].id=i.id||i.group_name,r.tab_groups[o].group_name=(0,n.translationTabGroup)(e,t,i.group_name,i.group_name)})),(0,n.translationMenus)(e,r.admin_menus)};n.translationApp=D;var E=function(e,t){i.each(t,(function(t){var n=x(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationMenus=E;var A=function(e,t){i.each(t,(function(t,r){(0,n.translationApp)(e,r,t)}))};n.translationApps=A;var C=function(e,t,n){var r=a(n),o={};return o[b(t)]=w(e,t,r.label||r.name),o[m(t)]=k(e,t,r.description),i.each(r.admin_menus,(function(t){o[y(t._id)]=x(e,t._id,t.label||t.name)})),o};n.getAppTranslationTemplate=C;var M=function(e,t,n){i.isArray(n)?i.each(n,(function(e){M(e,"",e)})):n&&i.each(i.keys(n),(function(r){var o=t?"".concat(t,".").concat(r):r,s=n[r];"object"==typeof s?i.isArray(s)?i.each(s,(function(e){M(e,o,s)})):M(e,o,s):e[o]=s}))};function O(e){for(var t in e)"object"==typeof e[t]&&M(e,t,e[t]);return e}n.convertTranslationData=O;var T=function(e){var t=a(e),n={};return i.each(t.CustomApplications,(function(e,t){n[b(t)]=e.name,n[m(t)]=e.description,i.each(e.groups,(function(e,r){n[v(t,r)]=e}))})),i.each(t.CustomTabs,(function(e,t){n[_(t)]=e})),i.each(t.CustomLabels,(function(e,t){var r;if("simpleschema"!=t&&i.isObject(e)){var o=O(((r={})[t]=e,r));i.each(o,(function(e,t){i.isObject(e)||(n[p(t)]=e)}))}else n[p(t)]=e})),n};n.convertTranslation=T;var B=function(e){i.each(e,(function(e){var t=(0,n.convertTranslation)(e.data);(0,r.addResourceBundle)(e.lng,u,t,!0,!0)}))};n.addTranslations=B},templates:{"objectTranslation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getObjectMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),o=t("clone");function s(e,t){var n={};return r.each(e,(function(e){n[e]="help"===e?t.inlineHelpText||"":t[e]||""})),n}function a(e){return s(["label","description"],e)}function u(e){switch(e.type){case"select":return s(["label","help","options","description"],e);default:return s(["label","help","description"],e)}}function f(e){return s(["label"],e)}function c(e){return s(["label"],e)}function l(e){var t={};return r.each(e,(function(e,n){t[n]=u(e)})),t}function h(e){var t={};return r.each(e,(function(e,n){t[n]=c(e)})),t}function d(e){var t={};return r.each(e,(function(e,n){t[n]=f(e)})),t}function p(e,t){var n={};return r.each(e,(function(e,r){if(e.group){var i=e.group.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");n[i]=t[r].group}})),n}var g=function(e,t,n,s){void 0===s&&(s=!1);var u=o(n);1!=s&&(0,i.translationObject)(e,t,u,!0,s);var f=Object.assign({},a(u));f=Object.assign({},f,{fields:l(u.fields)});var c=p(n.fields,u.fields);r.isEmpty(c)||(f=Object.assign({},f,{groups:c}));var g=d(u.list_views);r.isEmpty(g)||(f=Object.assign({},f,{listviews:g}));var b=h(u.actions);return r.isEmpty(b)||(f=Object.assign({},f,{actions:b})),Object.assign({name:t},f)};n.getObjectMetadataTranslationTemplate=g},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getAppMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),o=t("clone");function s(e,t){var n={};return r.each(e,(function(e){n[e]=t[e]||""})),n}function a(e){var t={groups:{}};return e?(r.each(e,(function(e){var n=e.group_name.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t.groups[n]=e.group_name})),t):{}}var u=function(e){return Object.assign({},s(["name","description"],e),a(e.tab_groups))},f=function(e){var t={};return r.each(e,(function(e,n){t[n]=n})),t},c=function(e){var t={};return r.each(e,(function(e){var n=e.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t[n]=e})),t},l=function(e,t,n){var r,s=o(n);(0,i.translationApp)(e,t,s);var a={},l;return s.tab_items?a=f(s.tab_items):s.tabs&&(a=c(s.tabs)),Object.assign({},{CustomApplications:(r={},r[t]=u(s),r)},{CustomTabs:a})};n.getAppMetadataTranslationTemplate=l}}}},node_modules:{i18next:{"package.json":function e(t,n,e){e.exports={name:"i18next",version:"19.9.2",module:"./dist/esm/i18next.js",main:"./dist/cjs/i18next.js"}},dist:{esm:{"i18next.js":function e(t,n,e){let r,i,o,s,a,u,f,c;e.link("@babel/runtime/helpers/esm/typeof",{default(e){r=e}},0),e.link("@babel/runtime/helpers/esm/objectSpread",{default(e){i=e}},1),e.link("@babel/runtime/helpers/esm/classCallCheck",{default(e){o=e}},2),e.link("@babel/runtime/helpers/esm/createClass",{default(e){s=e}},3),e.link("@babel/runtime/helpers/esm/possibleConstructorReturn",{default(e){a=e}},4),e.link("@babel/runtime/helpers/esm/getPrototypeOf",{default(e){u=e}},5),e.link("@babel/runtime/helpers/esm/assertThisInitialized",{default(e){f=e}},6),e.link("@babel/runtime/helpers/esm/inherits",{default(e){c=e}},7);var l={type:"logger",log:function e(t){this.output("log",t)},warn:function e(t){this.output("warn",t)},error:function e(t){this.output("error",t)},output:function e(t,n){console&&console[t]&&console[t].apply(console,n)}},h,d=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.init(t,n)}return s(e,[{key:"init",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||l,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function e(t){this.debug=t}},{key:"log",value:function e(){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function y(e,t,n){var r=v(e,t,Object),i,o;r.obj[r.k]=n}function _(e,t,n,r){var i=v(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}function w(e,t){var n=v(e,t),r=n.obj,i=n.k;if(r)return r[i]}function k(e,t,n){var r=w(e,n);return void 0!==r?r:w(t,n)}function j(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):j(e[r],t[r],n):e[r]=t[r]);return e}function x(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var S={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function D(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return S[e]})):e}var E="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,A=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return o(this,t),n=a(this,u(t).call(this)),E&&p.call(f(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return c(t,e),s(t,[{key:"addNamespaces",value:function e(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function e(t){var n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=[t,n];return r&&"string"!=typeof r&&(s=s.concat(r)),r&&"string"==typeof r&&(s=s.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(s=t.split(".")),w(this.data,s)}},{key:"addResource",value:function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},s=this.options.keySeparator;void 0===s&&(s=".");var a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(i=n,n=(a=t.split("."))[1]),this.addNamespaces(n),y(this.data,a,i),o.silent||this.emit("added",t,n,r,i)}},{key:"addResources",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in r)"string"!=typeof r[o]&&"[object Array]"!==Object.prototype.toString.apply(r[o])||this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}},{key:"addResourceBundle",value:function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},u=[t,n];t.indexOf(".")>-1&&(o=r,r=n,n=(u=t.split("."))[1]),this.addNamespaces(n);var f=w(this.data,u)||{};o?j(f,r,s):f=i({},f,r),y(this.data,u,f),a.silent||this.emit("added",t,n,r)}},{key:"removeResourceBundle",value:function e(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}},{key:"hasResourceBundle",value:function e(t,n){return void 0!==this.getResource(t,n)}},{key:"getResourceBundle",value:function e(t,n){return n||(n=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(t,n)):this.getResource(t,n)}},{key:"getDataByLanguage",value:function e(t){return this.data[t]}},{key:"toJSON",value:function e(){return this.data}}]),t}(p),C={processors:{},addPostProcessor:function e(t){this.processors[t.name]=t},handle:function e(t,n,r,i,o){var s=this;return t.forEach((function(e){s.processors[e]&&(n=s.processors[e].process(n,r,i,o))})),n}},M={},O=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,t),n=a(this,u(t).call(this)),E&&p.call(f(n)),m(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,f(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=d.create("translator"),n}return c(t,e),s(t,[{key:"changeLanguage",value:function e(t){t&&(this.language=t)}},{key:"exists",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(t,n);return r&&void 0!==r.res}},{key:"extractFromKey",value:function e(t,n){var r=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=n.ns||this.options.defaultNS;if(r&&t.indexOf(r)>-1){var s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:o};var a=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),t=a.join(i)}return"string"==typeof o&&(o=[o]),{key:t,namespaces:o}}},{key:"translate",value:function e(n,o,s){var a=this;if("object"!==r(o)&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),null==n)return"";Array.isArray(n)||(n=[String(n)]);var u=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,f=this.extractFromKey(n[n.length-1],o),c=f.key,l=f.namespaces,h=l[l.length-1],d=o.lng||this.language,p=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var g=o.nsSeparator||this.options.nsSeparator;return h+g+c}return c}var b=this.resolve(n,o),m=b&&b.res,v=b&&b.usedKey||c,y=b&&b.exactUsedKey||c,_=Object.prototype.toString.apply(m),w=["[object Number]","[object Function]","[object RegExp]"],k=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(j&&m&&x&&w.indexOf(_)<0&&("string"!=typeof k||"[object Array]"!==_)){if(!o.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,o):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(u){var S="[object Array]"===_,D=S?[]:{},E=S?y:v;for(var A in m)if(Object.prototype.hasOwnProperty.call(m,A)){var C="".concat(E).concat(u).concat(A);D[A]=this.translate(C,i({},o,{joinArrays:!1,ns:l})),D[A]===C&&(D[A]=m[A])}m=D}}else if(j&&"string"==typeof k&&"[object Array]"===_)(m=m.join(k))&&(m=this.extendTranslation(m,n,o,s));else{var M=!1,O=!1,T=void 0!==o.count&&"string"!=typeof o.count,B=t.hasDefaultValue(o),I=T?this.pluralResolver.getSuffix(d,o.count):"",R=o["defaultValue".concat(I)]||o.defaultValue;!this.isValidLookup(m)&&B&&(M=!0,m=R),this.isValidLookup(m)||(O=!0,m=c);var F=B&&R!==m&&this.options.updateMissing;if(O||M||F){if(this.logger.log(F?"updateKey":"missingKey",d,h,c,F?R:m),u){var P=this.resolve(c,i({},o,{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var z=0;z1&&void 0!==arguments[1]?arguments[1]:{},i,o,s,a,u;return"string"==typeof t&&(t=[t]),t.forEach((function(e){if(!n.isValidLookup(i)){var t=n.extractFromKey(e,r),f=t.key;o=f;var c=t.namespaces;n.options.fallbackNS&&(c=c.concat(n.options.fallbackNS));var l=void 0!==r.count&&"string"!=typeof r.count,h=void 0!==r.context&&"string"==typeof r.context&&""!==r.context,d=r.lngs?r.lngs:n.languageUtils.toResolveHierarchy(r.lng||n.language,r.fallbackLng);c.forEach((function(e){n.isValidLookup(i)||(u=e,!M["".concat(d[0],"-").concat(e)]&&n.utils&&n.utils.hasLoadedNamespace&&!n.utils.hasLoadedNamespace(u)&&(M["".concat(d[0],"-").concat(e)]=!0,n.logger.warn('key "'.concat(o,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(t){if(!n.isValidLookup(i)){a=t;var o=f,u=[o],c,d;if(n.i18nFormat&&n.i18nFormat.addLookupKeys)n.i18nFormat.addLookupKeys(u,f,t,e,r);else l&&(c=n.pluralResolver.getSuffix(t,r.count)),l&&h&&u.push(o+c),h&&u.push(o+="".concat(n.options.contextSeparator).concat(r.context)),l&&u.push(o+=c);for(;d=u.pop();)n.isValidLookup(i)||(s=d,i=n.getResource(t,e,d,r))}})))}))}})),{res:i,usedKey:o,exactUsedKey:s,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function e(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}}],[{key:"hasDefaultValue",value:function e(t){var n="defaultValue";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&void 0!==t[r])return!0;return!1}}]),t}(p);function T(e){return e.charAt(0).toUpperCase()+e.slice(1)}var B=function(){function e(t){o(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=d.create("languageUtils")}return s(e,[{key:"getScriptPartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase()?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function e(t){if("string"==typeof t&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=T(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function e(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function e(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function e(t){var n=this,r;return t?(t.forEach((function(e){if(!r){var t=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(t)||(r=t)}})),!r&&this.options.supportedLngs&&t.forEach((function(e){if(!r){var t=n.getLanguagePartFromCode(e);if(n.isSupportedCode(t))return r=t;r=n.options.supportedLngs.find((function(e){if(0===e.indexOf(t))return e}))}})),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function e(t,n){if(!t)return[];if("function"==typeof t&&(t=t(n)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function e(t,n){var r=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],s=function e(t){t&&(r.isSupportedCode(t)?o.push(t):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(t))):"string"==typeof t&&s(this.formatLanguageCode(t)),i.forEach((function(e){o.indexOf(e)<0&&s(r.formatLanguageCode(e))})),o}}]),e}(),I=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],R={1:function e(t){return Number(t>1)},2:function e(t){return Number(1!=t)},3:function e(t){return 0},4:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function e(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function e(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function e(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function e(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function e(t){return Number(t>=2)},10:function e(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function e(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function e(t){return Number(t%10!=1||t%100==11)},13:function e(t){return Number(0!==t)},14:function e(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function e(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function e(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function e(t){return Number(0==t?0:1==t?1:2)},19:function e(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function e(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function e(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function e(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function F(){var e={};return I.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:R[t.fc]}}))})),e}var P=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.languageUtils=t,this.options=n,this.logger=d.create("pluralResolver"),this.rules=F()}return s(e,[{key:"addRule",value:function e(t,n){this.rules[t]=n}},{key:"getRule",value:function e(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function e(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function e(t,n){return this.getSuffixes(t).map((function(e){return n+e}))}},{key:"getSuffixes",value:function e(t){var n=this,r=this.getRule(t);return r?r.numbers.map((function(e){return n.getSuffix(t,e)})):[]}},{key:"getSuffix",value:function e(t,n){var r=this,i=this.getRule(t);if(i){var o=i.noAbs?i.plurals(n):i.plurals(Math.abs(n)),s=i.numbers[o];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===s?s="plural":1===s&&(s=""));var a=function e(){return r.options.prepend&&s.toString()?r.options.prepend+s.toString():s.toString()};return"v1"===this.options.compatibilityJSON?1===s?"":"number"==typeof s?"_plural_".concat(s.toString()):a():"v2"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),N=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.logger=d.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return s(e,[{key:"init",value:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=void 0!==n.escape?n.escape:D,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?x(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?x(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?x(n.nestingPrefix):n.nestingPrefixEscaped||x("$t("),this.nestingSuffix=n.nestingSuffix?x(n.nestingSuffix):n.nestingSuffixEscaped||x(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function e(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function e(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function e(t,n,r,i){var o=this,s,a,u,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function e(t){if(t.indexOf(o.formatSeparator)<0){var s=k(n,f,t);return o.alwaysFormat?o.format(s,void 0,r):s}var a=t.split(o.formatSeparator),u=a.shift().trim(),c=a.join(o.formatSeparator).trim();return o.format(k(n,f,u),c,r,i)};this.resetRegExp();var h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p;return[{regex:this.regexpUnescape,safeValue:function e(t){return c(t)}},{regex:this.regexp,safeValue:function e(t){return o.escapeValue?c(o.escape(t)):c(t)}}].forEach((function(e){for(u=0;s=e.regex.exec(t);){if(void 0===(a=l(s[1].trim())))if("function"==typeof h){var n=h(t,s,i);a="string"==typeof n?n:""}else{if(d){a=s[0];continue}o.logger.warn("missed to pass in variable ".concat(s[1]," for interpolating ").concat(t)),a=""}else"string"==typeof a||o.useRawValueToEscape||(a=b(a));if(t=t.replace(s[0],e.safeValue(a)),e.regex.lastIndex=0,++u>=o.maxReplaces)break}})),t}},{key:"nest",value:function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s,a,u=i({},o);function f(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,u)).replace(/'/g,'"');try{u=JSON.parse(o),t&&(u=i({},t,u))}catch(s){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),s),"".concat(e).concat(n).concat(o)}return delete u.defaultValue,e}for(u.applyPostProcessor=!1,delete u.defaultValue;s=this.nestingRegexp.exec(t);){var c=[],l=!1;if(s[0].includes(this.formatSeparator)&&!/{.*}/.test(s[1])){var h=s[1].split(this.formatSeparator).map((function(e){return e.trim()}));s[1]=h.shift(),c=h,l=!0}if((a=n(f.call(this,s[1].trim(),u),u))&&s[0]===t&&"string"!=typeof a)return a;"string"!=typeof a&&(a=b(a)),a||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(t)),a=""),l&&(a=c.reduce((function(e,t){return r.format(e,t,o.lng,o)}),a.trim())),t=t.replace(s[0],a),this.regexp.lastIndex=0}return t}}]),e}();function L(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}var z=function(e){function t(e,n,r){var i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o(this,t),i=a(this,u(t).call(this)),E&&p.call(f(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=s,i.logger=d.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,s.backend,s),i}return c(t,e),s(t,[{key:"queueLoad",value:function e(t,n,r,i){var o=this,s=[],a=[],u=[],f=[];return t.forEach((function(e){var t=!0;n.forEach((function(n){var i="".concat(e,"|").concat(n);!r.reload&&o.store.hasResourceBundle(e,n)?o.state[i]=2:o.state[i]<0||(1===o.state[i]?a.indexOf(i)<0&&a.push(i):(o.state[i]=1,t=!1,a.indexOf(i)<0&&a.push(i),s.indexOf(i)<0&&s.push(i),f.indexOf(n)<0&&f.push(n)))})),t||u.push(e)})),(s.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:i}),{toLoad:s,pending:a,toLoadLanguages:u,toLoadNamespaces:f}}},{key:"loaded",value:function e(t,n,r){var i=t.split("|"),o=i[0],s=i[1];n&&this.emit("failedLoading",o,s,n),r&&this.store.addResourceBundle(o,s,r),this.state[t]=n?-1:2;var e={};this.queue.forEach((function(r){_(r.loaded,[o],s),L(r.pending,t),n&&r.errors.push(n),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(t){e[t]||(e[t]=[]),r.loaded[t].length&&r.loaded[t].forEach((function(n){e[t].indexOf(n)<0&&e[t].push(n)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",e),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[r](t,n,(function(e,u){e&&u&&o<5?setTimeout((function(){i.read.call(i,t,n,r,o+1,2*s,a)}),s):a(e,u)})):a(null,{})}},{key:"prepareLoading",value:function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof n&&(n=[n]);var s=this.queueLoad(t,n,i,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function e(t,n,r){this.prepareLoading(t,n,{},r)}},{key:"reload",value:function e(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}},{key:"loadOne",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t.split("|"),o=i[0],s=i[1];this.read(o,s,"read",void 0,void 0,(function(e,i){e&&n.logger.warn("".concat(r,"loading namespace ").concat(s," for language ").concat(o," failed"),e),!e&&i&&n.logger.log("".concat(r,"loaded namespace ").concat(s," for language ").concat(o),i),n.loaded(t,e,i)}))}},{key:"saveMissing",value:function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(t,n,r,o,null,i({},a,{isUpdate:s})),t&&t[0]&&this.store.addResource(t[0],n,r,o))}}]),t}(p);function U(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function e(t){var n={};if("object"===r(t[1])&&(n=t[1]),"string"==typeof t[1]&&(n.defaultValue=t[1]),"string"==typeof t[2]&&(n.tDescription=t[2]),"object"===r(t[2])||"object"===r(t[3])){var i=t[3]||t[2];Object.keys(i).forEach((function(e){n[e]=i[e]}))}return n},interpolation:{escapeValue:!0,format:function e(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function q(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $(){}var H,W=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(o(this,t),e=a(this,u(t).call(this)),E&&p.call(f(e)),e.options=q(n),e.services={},e.logger=d,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),a(e,f(e));setTimeout((function(){e.init(n,r)}),0)}return e}return c(t,e),s(t,[{key:"init",value:function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function o(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof n&&(r=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},U(),this.options,q(n)),this.format=this.options.interpolation.format,r||(r=$),!this.options.isClone){this.modules.logger?d.init(o(this.modules.logger),this.options):d.init(null,this.options);var s=new B(this.options);this.store=new A(this.options.resources,this.options);var a=this.services;a.logger=d,a.resourceStore=this.store,a.languageUtils=s,a.pluralResolver=new P(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new N(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new z(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var f=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];f.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}}));var l=g(),h=function e(){var n=function e(n,i){t.isInitialized&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),l.resolve(i),r(n,i)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return n(null,t.t.bind(t));t.changeLanguage(t.options.lng,n)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),l}},{key:"loadResources",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,i=r,o="string"==typeof t?t:this.language;if("function"==typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return i();var s=[],a=function e(t){var r;t&&n.services.languageUtils.toResolveHierarchy(t).forEach((function(e){s.indexOf(e)<0&&s.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(s,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function e(t,n,r){var i=g();return t||(t=this.languages),n||(n=this.options.ns),r||(r=$),this.services.backendConnector.reload(t,n,(function(e){i.resolve(),r(e)})),i}},{key:"use",value:function e(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&C.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function e(t,n){var r=this;this.isLanguageChangingTo=t;var i=g();this.emit("languageChanging",t);var o=function e(t,o){o?(r.language=o,r.languages=r.services.languageUtils.toResolveHierarchy(o),r.translator.changeLanguage(o),r.isLanguageChangingTo=void 0,r.emit("languageChanged",o),r.logger.log("languageChanged",o)):r.isLanguageChangingTo=void 0,i.resolve((function(){return r.t.apply(r,arguments)})),n&&n(t,(function(){return r.t.apply(r,arguments)}))},s=function e(t){var n="string"==typeof t?t:r.services.languageUtils.getBestMatchFromCodes(t);n&&(r.language||(r.language=n,r.languages=r.services.languageUtils.toResolveHierarchy(n)),r.translator.language||r.translator.changeLanguage(n),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(n)),r.loadResources(n,(function(e){o(e,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(s):s(t):s(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function e(t,n){var o=this,s=function e(t,n){var s;if("object"!==r(n)){for(var a=arguments.length,u=new Array(a>2?a-2:0),f=2;f1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],o=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function e(t,r){var i=n.services.backendConnector.state["".concat(t,"|").concat(r)];return-1===i||2===i};if(r.precheck){var u=r.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(i,t)||(!this.services.backendConnector.backend||!(!a(i,t)||o&&!a(s,t)))}},{key:"loadNamespaces",value:function e(t,n){var r=this,i=g();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),n&&n(e)})),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function e(t,n){var r=g();"string"==typeof t&&(t=[t]);var i=this.options.preload||[],o=t.filter((function(e){return i.indexOf(e)<0}));return o.length?(this.options.preload=i.concat(o),this.loadResources((function(e){r.resolve(),n&&n(e)})),r):(n&&n(),Promise.resolve())}},{key:"dir",value:function e(t){return t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),t?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr":"rtl";var n}},{key:"createInstance",value:function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function e(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,s=i({},this.options,r,{isClone:!0}),a=new t(s),u=["store","services","language"];return u.forEach((function(e){a[e]=n[e]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new O(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rr,root:()=>i,ArrayProto:()=>o,ObjProto:()=>s,SymbolProto:()=>a,push:()=>u,slice:()=>f,toString:()=>c,hasOwnProperty:()=>l,supportsArrayBuffer:()=>h,supportsDataView:()=>d,nativeIsArray:()=>p,nativeKeys:()=>g,nativeCreate:()=>b,nativeIsView:()=>m,_isNaN:()=>v,_isFinite:()=>y,hasEnumBug:()=>_,nonEnumerableProps:()=>w,MAX_ARRAY_INDEX:()=>k});var r="1.13.4",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},o=Array.prototype,s=Object.prototype,a="undefined"!=typeof Symbol?Symbol.prototype:null,u=o.push,f=o.slice,c=s.toString,l=s.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,d="undefined"!=typeof DataView,p=Array.isArray,g=Object.keys,b=Object.create,m=h&&ArrayBuffer.isView,v=isNaN,y=isFinite,_=!{toString:null}.propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=Math.pow(2,53)-1},"restArguments.js":function e(t,n,e){function r(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;ir})},"isObject.js":function e(t,n,e){function r(e){var t=typeof e;return"function"===t||"object"===t&&!!e}e.export({default:()=>r})},"isNull.js":function e(t,n,e){function r(e){return null===e}e.export({default:()=>r})},"isUndefined.js":function e(t,n,e){function r(e){return void 0===e}e.export({default:()=>r})},"isBoolean.js":function e(t,n,e){let r;function i(e){return!0===e||!1===e||"[object Boolean]"===r.call(e)}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isElement.js":function e(t,n,e){function r(e){return!(!e||1!==e.nodeType)}e.export({default:()=>r})},"isString.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("String"))},"_tagTester.js":function e(t,n,e){let r;function i(e){var t="[object "+e+"]";return function(e){return r.call(e)===t}}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isNumber.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Number"))},"isDate.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Date"))},"isRegExp.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("RegExp"))},"isError.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Error"))},"isSymbol.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Symbol"))},"isArrayBuffer.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("ArrayBuffer"))},"isDataView.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isArrayBuffer.js",{default(e){o=e}},2),e.link("./_stringTagBug.js",{hasStringTagBug(e){s=e}},3);var a=r("DataView");function u(e){return null!=e&&i(e.getInt8)&&o(e.buffer)}e.exportDefault(s?u:a)},"isFunction.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_setup.js",{root(e){i=e}},1);var o=r("Function"),s=i.document&&i.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof s&&(o=function(e){return"function"==typeof e||!1}),e.exportDefault(o)},"_stringTagBug.js":function e(t,n,e){let r,i;e.export({hasStringTagBug:()=>o,isIE11:()=>s}),e.link("./_setup.js",{supportsDataView(e){r=e}},0),e.link("./_hasObjectTag.js",{default(e){i=e}},1);var o=r&&i(new DataView(new ArrayBuffer(8))),s="undefined"!=typeof Map&&i(new Map)},"_hasObjectTag.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Object"))},"isArray.js":function e(t,n,e){let r,i;e.link("./_setup.js",{nativeIsArray(e){r=e}},0),e.link("./_tagTester.js",{default(e){i=e}},1),e.exportDefault(r||i("Array"))},"isArguments.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1);var o=r("Arguments");!function(){o(arguments)||(o=function(e){return i(e,"callee")})}(),e.exportDefault(o)},"_has.js":function e(t,n,e){let r;function i(e,t){return null!=e&&r.call(e,t)}e.export({default:()=>i}),e.link("./_setup.js",{hasOwnProperty(e){r=e}},0)},"isFinite.js":function e(t,n,e){let r,i;function o(e){return!i(e)&&r(e)&&!isNaN(parseFloat(e))}e.export({default:()=>o}),e.link("./_setup.js",{_isFinite(e){r=e}},0),e.link("./isSymbol.js",{default(e){i=e}},1)},"isNaN.js":function e(t,n,e){let r,i;function o(e){return i(e)&&r(e)}e.export({default:()=>o}),e.link("./_setup.js",{_isNaN(e){r=e}},0),e.link("./isNumber.js",{default(e){i=e}},1)},"isTypedArray.js":function e(t,n,e){let r,i,o,s,a,u;e.link("./_setup.js",{supportsArrayBuffer(e){r=e},nativeIsView(e){i=e},toString(e){o=e}},0),e.link("./isDataView.js",{default(e){s=e}},1),e.link("./constant.js",{default(e){a=e}},2),e.link("./_isBufferLike.js",{default(e){u=e}},3);var f=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function c(e){return i?i(e)&&!s(e):u(e)&&f.test(o.call(e))}e.exportDefault(r?c:a(!1))},"constant.js":function e(t,n,e){function r(e){return function(){return e}}e.export({default:()=>r})},"_isBufferLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getByteLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createSizePropertyCheck.js":function e(t,n,e){let r;function i(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=r}}e.export({default:()=>i}),e.link("./_setup.js",{MAX_ARRAY_INDEX(e){r=e}},0)},"_getByteLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("byteLength"))},"_shallowProperty.js":function e(t,n,e){function r(e){return function(t){return null==t?void 0:t[e]}}e.export({default:()=>r})},"isEmpty.js":function e(t,n,e){let r,i,o,s,a;function u(e){if(null==e)return!0;var t=r(e);return"number"==typeof t&&(i(e)||o(e)||s(e))?0===t:0===r(a(e))}e.export({default:()=>u}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./isString.js",{default(e){o=e}},2),e.link("./isArguments.js",{default(e){s=e}},3),e.link("./keys.js",{default(e){a=e}},4)},"_getLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("length"))},"keys.js":function e(t,n,e){let r,i,o,s,a;function u(e){if(!r(e))return[];if(i)return i(e);var t=[];for(var n in e)s(e,n)&&t.push(n);return o&&a(e,t),t}e.export({default:()=>u}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeKeys(e){i=e},hasEnumBug(e){o=e}},1),e.link("./_has.js",{default(e){s=e}},2),e.link("./_collectNonEnumProps.js",{default(e){a=e}},3)},"_collectNonEnumProps.js":function e(t,n,e){let r,i,o,s;function a(e){for(var t={},n=e.length,r=0;ru}),e.link("./_setup.js",{nonEnumerableProps(e){r=e},ObjProto(e){i=e}},0),e.link("./isFunction.js",{default(e){o=e}},1),e.link("./_has.js",{default(e){s=e}},2)},"isMatch.js":function e(t,n,e){let r;function i(e,t){var n=r(t),i=n.length;if(null==e)return!i;for(var o=Object(e),s=0;si}),e.link("./keys.js",{default(e){r=e}},0)},"isEqual.js":function e(t,n,e){let r,i,o,s,a,u,f,c,l,h,d;e.export({default:()=>m}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_setup.js",{toString(e){i=e},SymbolProto(e){o=e}},1),e.link("./_getByteLength.js",{default(e){s=e}},2),e.link("./isTypedArray.js",{default(e){a=e}},3),e.link("./isFunction.js",{default(e){u=e}},4),e.link("./_stringTagBug.js",{hasStringTagBug(e){f=e}},5),e.link("./isDataView.js",{default(e){c=e}},6),e.link("./keys.js",{default(e){l=e}},7),e.link("./_has.js",{default(e){h=e}},8),e.link("./_toBufferView.js",{default(e){d=e}},9);var p="[object DataView]";function g(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&b(e,t,n,r)}function b(e,t,n,m){e instanceof r&&(e=e._wrapped),t instanceof r&&(t=t._wrapped);var v=i.call(e);if(v!==i.call(t))return!1;if(f&&"[object Object]"==v&&c(e)){if(!c(t))return!1;v=p}switch(v){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return o.valueOf.call(e)===o.valueOf.call(t);case"[object ArrayBuffer]":case p:return b(d(e),d(t),n,m)}var y="[object Array]"===v;if(!y&&a(e)){var _;if(s(e)!==s(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;y=!0}if(!y){if("object"!=typeof e||"object"!=typeof t)return!1;var w=e.constructor,k=t.constructor;if(w!==k&&!(u(w)&&w instanceof w&&u(k)&&k instanceof k)&&"constructor"in e&&"constructor"in t)return!1}m=m||[];for(var j=(n=n||[]).length;j--;)if(n[j]===e)return m[j]===t;if(n.push(e),m.push(t),y){if((j=e.length)!==t.length)return!1;for(;j--;)if(!g(e[j],t[j],n,m))return!1}else{var x=l(e),S;if(j=x.length,l(t).length!==j)return!1;for(;j--;)if(S=x[j],!h(t,S)||!g(e[S],t[S],n,m))return!1}return n.pop(),m.pop(),!0}function m(e,t){return g(e,t)}},"underscore.js":function e(t,n,e){let r;function i(e){return e instanceof i?e:this instanceof i?void(this._wrapped=e):new i(e)}e.export({default:()=>i}),e.link("./_setup.js",{VERSION(e){r=e}},0),i.VERSION=r,i.prototype.value=function(){return this._wrapped},i.prototype.valueOf=i.prototype.toJSON=i.prototype.value,i.prototype.toString=function(){return String(this._wrapped)}},"_toBufferView.js":function e(t,n,e){let r;function i(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,r(e))}e.export({default:()=>i}),e.link("./_getByteLength.js",{default(e){r=e}},0)},"isMap.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},mapMethods(e){s=e}},2),e.exportDefault(i?o(s):r("Map"))},"_methodFingerprint.js":function e(t,n,e){let r,i,o;function s(e){var t=r(e);return function(n){if(null==n)return!1;var s=o(n);if(r(s))return!1;for(var u=0;us,mapMethods:()=>l,weakMapMethods:()=>h,setMethods:()=>d}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./allKeys.js",{default(e){o=e}},2);var a="forEach",u="has",f=["clear","delete"],c=["get","has","set"],l=f.concat(a,c),h=f.concat(c),d=["add"].concat(f,a,"has")},"allKeys.js":function e(t,n,e){let r,i,o;function s(e){if(!r(e))return[];var t=[];for(var n in e)t.push(n);return i&&o(e,t),t}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{hasEnumBug(e){i=e}},1),e.link("./_collectNonEnumProps.js",{default(e){o=e}},2)},"isWeakMap.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},weakMapMethods(e){s=e}},2),e.exportDefault(i?o(s):r("WeakMap"))},"isSet.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},setMethods(e){s=e}},2),e.exportDefault(i?o(s):r("Set"))},"isWeakSet.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("WeakSet"))},"values.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"pairs.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"invert.js":function e(t,n,e){let r;function i(e){for(var t={},n=r(e),i=0,o=n.length;ii}),e.link("./keys.js",{default(e){r=e}},0)},"functions.js":function e(t,n,e){let r;function i(e){var t=[];for(var n in e)r(e[n])&&t.push(n);return t.sort()}e.export({default:()=>i}),e.link("./isFunction.js",{default(e){r=e}},0)},"extend.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createAssigner.js":function e(t,n,e){function r(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;ir})},"extendOwn.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"defaults.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i,!0))},"create.js":function e(t,n,e){let r,i;function o(e,t){var n=r(e);return t&&i(n,t),n}e.export({default:()=>o}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./extendOwn.js",{default(e){i=e}},1)},"_baseCreate.js":function e(t,n,e){let r,i;function o(){return function(){}}function s(e){if(!r(e))return{};if(i)return i(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeCreate(e){i=e}},1)},"clone.js":function e(t,n,e){let r,i,o;function s(e){return r(e)?i(e)?e.slice():o({},e):e}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./extend.js",{default(e){o=e}},2)},"tap.js":function e(t,n,e){function r(e,t){return t(e),e}e.export({default:()=>r})},"get.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s=i(e,r(t));return o(s)?n:s}e.export({default:()=>s}),e.link("./_toPath.js",{default(e){r=e}},0),e.link("./_deepGet.js",{default(e){i=e}},1),e.link("./isUndefined.js",{default(e){o=e}},2)},"_toPath.js":function e(t,n,e){let r;function i(e){return r.toPath(e)}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./toPath.js")},"toPath.js":function e(t,n,e){let r,i;function o(e){return i(e)?e:[e]}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),r.toPath=o},"_deepGet.js":function e(t,n,e){function r(e,t){for(var n=t.length,r=0;rr})},"has.js":function e(t,n,e){let r,i;function o(e,t){for(var n=(t=i(t)).length,o=0;oo}),e.link("./_has.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"mapObject.js":function e(t,n,e){let r,i;function o(e,t,n){t=r(t,n);for(var o=i(e),s=o.length,a={},u=0;uo}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"_cb.js":function e(t,n,e){let r,i,o;function s(e,t,n){return r.iteratee!==o?r.iteratee(e,t):i(e,t,n)}e.export({default:()=>s}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),e.link("./iteratee.js",{default(e){o=e}},2)},"_baseIteratee.js":function e(t,n,e){let r,i,o,s,a,u,f;function c(e,t,n){return null==e?r:i(e)?f(e,t,n):o(e)&&!s(e)?a(e):u(e)}e.export({default:()=>c}),e.link("./identity.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isObject.js",{default(e){o=e}},2),e.link("./isArray.js",{default(e){s=e}},3),e.link("./matcher.js",{default(e){a=e}},4),e.link("./property.js",{default(e){u=e}},5),e.link("./_optimizeCb.js",{default(e){f=e}},6)},"identity.js":function e(t,n,e){function r(e){return e}e.export({default:()=>r})},"matcher.js":function e(t,n,e){let r,i;function o(e){return e=r({},e),function(t){return i(t,e)}}e.export({default:()=>o}),e.link("./extendOwn.js",{default(e){r=e}},0),e.link("./isMatch.js",{default(e){i=e}},1)},"property.js":function e(t,n,e){let r,i;function o(e){return e=i(e),function(t){return r(t,e)}}e.export({default:()=>o}),e.link("./_deepGet.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"_optimizeCb.js":function e(t,n,e){function r(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}e.export({default:()=>r})},"iteratee.js":function e(t,n,e){let r,i;function o(e,t){return i(e,t,1/0)}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),r.iteratee=o},"noop.js":function e(t,n,e){function r(){}e.export({default:()=>r})},"propertyOf.js":function e(t,n,e){let r,i;function o(e){return null==e?r:function(t){return i(e,t)}}e.export({default:()=>o}),e.link("./noop.js",{default(e){r=e}},0),e.link("./get.js",{default(e){i=e}},1)},"times.js":function e(t,n,e){let r;function i(e,t,n){var i=Array(Math.max(0,e));t=r(t,n,1);for(var o=0;oi}),e.link("./_optimizeCb.js",{default(e){r=e}},0)},"random.js":function e(t,n,e){function r(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}e.export({default:()=>r})},"now.js":function e(t,n,e){e.exportDefault(Date.now||function(){return(new Date).getTime()})},"escape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createEscaper.js":function e(t,n,e){let r;function i(e){var t=function(t){return e[t]},n="(?:"+r(e).join("|")+")",i=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(o,t):e}}e.export({default:()=>i}),e.link("./keys.js",{default(e){r=e}},0)},"_escapeMap.js":function e(t,n,e){e.exportDefault({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"})},"unescape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_unescapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_unescapeMap.js":function e(t,n,e){let r,i;e.link("./invert.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"templateSettings.js":function e(t,n,e){let r;e.link("./underscore.js",{default(e){r=e}},0),e.exportDefault(r.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g})},"template.js":function e(t,n,e){let r,i;e.export({default:()=>c}),e.link("./defaults.js",{default(e){r=e}},0),e.link("./underscore.js",{default(e){i=e}},1),e.link("./templateSettings.js");var o=/(.)^/,s={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},a=/\\|'|\r|\n|\u2028|\u2029/g;function u(e){return"\\"+s[e]}var f=/^\s*(\w|\$)+\s*$/;function c(e,t,n){!t&&n&&(t=n),t=r({},t,i.templateSettings);var s=RegExp([(t.escape||o).source,(t.interpolate||o).source,(t.evaluate||o).source].join("|")+"|$","g"),c=0,l="__p+='";e.replace(s,(function(t,n,r,i,o){return l+=e.slice(c,o).replace(a,u),c=o+t.length,n?l+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?l+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(l+="';\n"+i+"\n__p+='"),t})),l+="';\n";var h=t.variable,d;if(h){if(!f.test(h))throw new Error("variable is not a bare identifier: "+h)}else l="with(obj||{}){\n"+l+"}\n",h="obj";l="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+l+"return __p;\n";try{d=new Function(h,"_",l)}catch(g){throw g.source=l,g}var p=function(e){return d.call(this,e,i)};return p.source="function("+h+"){\n"+l+"}",p}},"result.js":function e(t,n,e){let r,i;function o(e,t,n){var o=(t=i(t)).length;if(!o)return r(n)?n.call(e):n;for(var s=0;so}),e.link("./isFunction.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"uniqueId.js":function e(t,n,e){e.export({default:()=>i});var r=0;function i(e){var t=++r+"";return e?e+t:t}},"chain.js":function e(t,n,e){let r;function i(e){var t=r(e);return t._chain=!0,t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"partial.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_executeBound.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){o=e}},2);var s=r((function(e,t){var n=s.placeholder,r=function(){for(var o=0,s=t.length,a=Array(s),u=0;uo}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./isObject.js",{default(e){i=e}},1)},"bind.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_executeBound.js",{default(e){o=e}},2),e.exportDefault(r((function(e,t,n){if(!i(e))throw new TypeError("Bind must be called on a function");var s=r((function(r){return o(e,s,t,this,n.concat(r))}));return s})))},"bindAll.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./bind.js",{default(e){o=e}},2),e.exportDefault(r((function(e,t){var n=(t=i(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=o(e[r],e)}return e})))},"_flatten.js":function e(t,n,e){let r,i,o,s;function a(e,t,n,u){if(u=u||[],t||0===t){if(t<=0)return u.concat(e)}else t=1/0;for(var f=u.length,c=0,l=r(e);c1)a(h,t-1,n,u),f=u.length;else for(var d=0,p=h.length;da}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./isArray.js",{default(e){o=e}},2),e.link("./isArguments.js",{default(e){s=e}},3)},"_isArrayLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"memoize.js":function e(t,n,e){let r;function i(e,t){var n=function(i){var o=n.cache,s=""+(t?t.apply(this,arguments):i);return r(o,s)||(o[s]=e.apply(this,arguments)),o[s]};return n.cache={},n}e.export({default:()=>i}),e.link("./_has.js",{default(e){r=e}},0)},"delay.js":function e(t,n,e){let r;e.link("./restArguments.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})))},"defer.js":function e(t,n,e){let r,i,o;e.link("./partial.js",{default(e){r=e}},0),e.link("./delay.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){o=e}},2),e.exportDefault(r(i,o,1))},"throttle.js":function e(t,n,e){let r;function i(e,t,n){var i,o,s,a,u=0;n||(n={});var f=function(){u=!1===n.leading?0:r(),i=null,a=e.apply(o,s),i||(o=s=null)},c=function(){var c=r();u||!1!==n.leading||(u=c);var l=t-(c-u);return o=this,s=arguments,l<=0||l>t?(i&&(clearTimeout(i),i=null),u=c,a=e.apply(o,s),i||(o=s=null)):i||!1===n.trailing||(i=setTimeout(f,l)),a};return c.cancel=function(){clearTimeout(i),u=0,i=o=s=null},c}e.export({default:()=>i}),e.link("./now.js",{default(e){r=e}},0)},"debounce.js":function e(t,n,e){let r,i;function o(e,t,n){var o,s,a,u,f,c=function(){var r=i()-s;t>r?o=setTimeout(c,t-r):(o=null,n||(u=e.apply(f,a)),o||(a=f=null))},l=r((function(r){return f=this,a=r,s=i(),o||(o=setTimeout(c,t),n&&(u=e.apply(f,a))),u}));return l.cancel=function(){clearTimeout(o),o=a=f=null},l}e.export({default:()=>o}),e.link("./restArguments.js",{default(e){r=e}},0),e.link("./now.js",{default(e){i=e}},1)},"wrap.js":function e(t,n,e){let r;function i(e,t){return r(t,e)}e.export({default:()=>i}),e.link("./partial.js",{default(e){r=e}},0)},"negate.js":function e(t,n,e){function r(e){return function(){return!e.apply(this,arguments)}}e.export({default:()=>r})},"compose.js":function e(t,n,e){function r(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}e.export({default:()=>r})},"after.js":function e(t,n,e){function r(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}e.export({default:()=>r})},"before.js":function e(t,n,e){function r(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}e.export({default:()=>r})},"once.js":function e(t,n,e){let r,i;e.link("./partial.js",{default(e){r=e}},0),e.link("./before.js",{default(e){i=e}},1),e.exportDefault(r(i,2))},"findKey.js":function e(t,n,e){let r,i;function o(e,t,n){t=r(t,n);for(var o=i(e),s,a=0,u=o.length;ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"findIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createPredicateIndexFinder.js":function e(t,n,e){let r,i;function o(e){return function(t,n,o){n=r(n,o);for(var s=i(t),a=e>0?0:s-1;a>=0&&ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"findLastIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"sortedIndex.js":function e(t,n,e){let r,i;function o(e,t,n,o){for(var s=(n=r(n,o,1))(t),a=0,u=i(e);ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"indexOf.js":function e(t,n,e){let r,i,o;e.link("./sortedIndex.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./_createIndexFinder.js",{default(e){o=e}},2),e.exportDefault(o(1,i,r))},"_createIndexFinder.js":function e(t,n,e){let r,i,o;function s(e,t,n){return function(s,a,u){var f=0,c=r(s);if("number"==typeof u)e>0?f=u>=0?u:Math.max(u+c,f):c=u>=0?Math.min(u+1,c):u+c+1;else if(n&&u&&c)return s[u=n(s,a)]===a?u:-1;if(a!=a)return(u=t(i.call(s,f,c),o))>=0?u+f:-1;for(u=e>0?f:c-1;u>=0&&us}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isNaN.js",{default(e){o=e}},2)},"lastIndexOf.js":function e(t,n,e){let r,i;e.link("./findLastIndex.js",{default(e){r=e}},0),e.link("./_createIndexFinder.js",{default(e){i=e}},1),e.exportDefault(i(-1,r))},"find.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s,a=(r(e)?i:o)(e,t,n);if(void 0!==a&&-1!==a)return e[a]}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./findKey.js",{default(e){o=e}},2)},"findWhere.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./find.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"each.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s,a;if(t=r(t,n),i(e))for(s=0,a=e.length;ss}),e.link("./_optimizeCb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"map.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=Array(a),f=0;fs}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"reduce.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createReduce.js":function e(t,n,e){let r,i,o;function s(e){var t=function(t,n,o,s){var a=!r(t)&&i(t),u=(a||t).length,f=e>0?0:u-1;for(s||(o=t[a?a[f]:f],f+=e);f>=0&&f=3;return t(e,o(n,i,4),r,s)}}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){o=e}},2)},"reduceRight.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"filter.js":function e(t,n,e){let r,i;function o(e,t,n){var o=[];return t=r(t,n),i(e,(function(e,n,r){t(e,n,r)&&o.push(e)})),o}e.export({default:()=>o}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"reject.js":function e(t,n,e){let r,i,o;function s(e,t,n){return r(e,i(o(t)),n)}e.export({default:()=>s}),e.link("./filter.js",{default(e){r=e}},0),e.link("./negate.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2)},"every.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"some.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"contains.js":function e(t,n,e){let r,i,o;function s(e,t,n,s){return r(e)||(e=i(e)),("number"!=typeof n||s)&&(n=0),o(e,t,n)>=0}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./indexOf.js",{default(e){o=e}},2)},"invoke.js":function e(t,n,e){let r,i,o,s,a;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./map.js",{default(e){o=e}},2),e.link("./_deepGet.js",{default(e){s=e}},3),e.link("./_toPath.js",{default(e){a=e}},4),e.exportDefault(r((function(e,t,n){var r,u;return i(t)?u=t:(t=a(t),r=t.slice(0,-1),t=t[t.length-1]),o(e,(function(e){var i=u;if(!i){if(r&&r.length&&(e=s(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))})))},"pluck.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./map.js",{default(e){r=e}},0),e.link("./property.js",{default(e){i=e}},1)},"where.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./filter.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"max.js":function e(t,n,e){let r,i,o,s;function a(e,t,n){var a=-1/0,u=-1/0,f,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,h=(e=r(e)?e:i(e)).length;la&&(a=f);else t=o(t,n),s(e,(function(e,n,r){((c=t(e,n,r))>u||c===-1/0&&a===-1/0)&&(a=e,u=c)}));return a}e.export({default:()=>a}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2),e.link("./each.js",{default(e){s=e}},3)},"min.js":function e(t,n,e){let r,i,o,s;function a(e,t,n){var a=1/0,u=1/0,f,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,h=(e=r(e)?e:i(e)).length;la}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2),e.link("./each.js",{default(e){s=e}},3)},"shuffle.js":function e(t,n,e){let r;function i(e){return r(e,1/0)}e.export({default:()=>i}),e.link("./sample.js",{default(e){r=e}},0)},"sample.js":function e(t,n,e){let r,i,o,s,a;function u(e,t,n){if(null==t||n)return r(e)||(e=i(e)),e[s(e.length-1)];var u=a(e),f=o(u);t=Math.max(Math.min(t,f),0);for(var c=f-1,l=0;lu}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){o=e}},2),e.link("./random.js",{default(e){s=e}},3),e.link("./toArray.js",{default(e){a=e}},4)},"toArray.js":function e(t,n,e){let r,i,o,s,a,u,f;e.export({default:()=>l}),e.link("./isArray.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isString.js",{default(e){o=e}},2),e.link("./_isArrayLike.js",{default(e){s=e}},3),e.link("./map.js",{default(e){a=e}},4),e.link("./identity.js",{default(e){u=e}},5),e.link("./values.js",{default(e){f=e}},6);var c=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function l(e){return e?r(e)?i.call(e):o(e)?e.match(c):s(e)?a(e,u):f(e):[]}},"sortBy.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s=0;return t=r(t,n),i(o(e,(function(e,n,r){return{value:e,index:s++,criteria:t(e,n,r)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(ns}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./pluck.js",{default(e){i=e}},1),e.link("./map.js",{default(e){o=e}},2)},"groupBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n].push(t):e[n]=[t]})))},"_group.js":function e(t,n,e){let r,i;function o(e,t){return function(n,o,s){var a=t?[[],[]]:{};return o=r(o,s),i(n,(function(t,r){var i=o(t,r,n);e(a,t,i)})),a}}e.export({default:()=>o}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"indexBy.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n]=t})))},"countBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n]++:e[n]=1})))},"partition.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n?0:1].push(t)}),!0))},"size.js":function e(t,n,e){let r,i;function o(e){return null==e?0:r(e)?e.length:i(e).length}e.export({default:()=>o}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"pick.js":function e(t,n,e){let r,i,o,s,a,u;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){o=e}},2),e.link("./allKeys.js",{default(e){s=e}},3),e.link("./_keyInObj.js",{default(e){a=e}},4),e.link("./_flatten.js",{default(e){u=e}},5),e.exportDefault(r((function(e,t){var n={},r=t[0];if(null==e)return n;i(r)?(t.length>1&&(r=o(r,t[1])),t=s(e)):(r=a,t=u(t,!1,!1),e=Object(e));for(var f=0,c=t.length;fr})},"omit.js":function e(t,n,e){let r,i,o,s,a,u,f;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./negate.js",{default(e){o=e}},2),e.link("./map.js",{default(e){s=e}},3),e.link("./_flatten.js",{default(e){a=e}},4),e.link("./contains.js",{default(e){u=e}},5),e.link("./pick.js",{default(e){f=e}},6),e.exportDefault(r((function(e,t){var n=t[0],r;return i(n)?(n=o(n),t.length>1&&(r=t[1])):(t=s(a(t,!1,!1),String),n=function(e,n){return!u(t,n)}),f(e,n,r)})))},"first.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:r(e,e.length-t)}e.export({default:()=>i}),e.link("./initial.js",{default(e){r=e}},0)},"initial.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"last.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:r(e,Math.max(0,e.length-t))}e.export({default:()=>i}),e.link("./rest.js",{default(e){r=e}},0)},"rest.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,null==t||n?1:t)}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"compact.js":function e(t,n,e){let r;function i(e){return r(e,Boolean)}e.export({default:()=>i}),e.link("./filter.js",{default(e){r=e}},0)},"flatten.js":function e(t,n,e){let r;function i(e,t){return r(e,t,!1)}e.export({default:()=>i}),e.link("./_flatten.js",{default(e){r=e}},0)},"without.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./difference.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t){return i(e,t)})))},"difference.js":function e(t,n,e){let r,i,o,s;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./filter.js",{default(e){o=e}},2),e.link("./contains.js",{default(e){s=e}},3),e.exportDefault(r((function(e,t){return t=i(t,!0,!0),o(e,(function(e){return!s(t,e)}))})))},"uniq.js":function e(t,n,e){let r,i,o,s;function a(e,t,n,a){r(t)||(a=n,n=t,t=!1),null!=n&&(n=i(n,a));for(var u=[],f=[],c=0,l=o(e);ca}),e.link("./isBoolean.js",{default(e){r=e}},0),e.link("./_cb.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){o=e}},2),e.link("./contains.js",{default(e){s=e}},3)},"union.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./uniq.js",{default(e){i=e}},1),e.link("./_flatten.js",{default(e){o=e}},2),e.exportDefault(r((function(e){return i(o(e,!0,!0))})))},"intersection.js":function e(t,n,e){let r,i;function o(e){for(var t=[],n=arguments.length,o=0,s=r(e);oo}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./contains.js",{default(e){i=e}},1)},"unzip.js":function e(t,n,e){let r,i,o;function s(e){for(var t=e&&r(e,i).length||0,n=Array(t),s=0;ss}),e.link("./max.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.link("./pluck.js",{default(e){o=e}},2)},"zip.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./unzip.js",{default(e){i=e}},1),e.exportDefault(r(i))},"object.js":function e(t,n,e){let r;function i(e,t){for(var n={},i=0,o=r(e);ii}),e.link("./_getLength.js",{default(e){r=e}},0)},"range.js":function e(t,n,e){function r(e,t,n){null==t&&(t=e||0,e=0),n||(n=tr})},"chunk.js":function e(t,n,e){let r;function i(e,t){if(null==t||t<1)return[];for(var n=[],i=0,o=e.length;ii}),e.link("./_setup.js",{slice(e){r=e}},0)},"mixin.js":function e(t,n,e){let r,i,o,s,a;function u(e){return i(o(e),(function(t){var n=r[t]=e[t];r.prototype[t]=function(){var e=[this._wrapped];return s.apply(e,arguments),a(this,n.apply(r,e))}})),r}e.export({default:()=>u}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./functions.js",{default(e){o=e}},2),e.link("./_setup.js",{push(e){s=e}},3),e.link("./_chainResult.js",{default(e){a=e}},4)},"_chainResult.js":function e(t,n,e){let r;function i(e,t){return e._chain?r(t).chain():t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"underscore-array-methods.js":function e(t,n,e){let r,i,o,s;e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./_setup.js",{ArrayProto(e){o=e}},2),e.link("./_chainResult.js",{default(e){s=e}},3),i(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=o[e];r.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),s(this,n)}})),i(["concat","join","slice"],(function(e){var t=o[e];r.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),s(this,e)}})),e.exportDefault(r)}}}}},cachers:{"package.json":function e(t,n,e){e.exports={name:"@steedos/cachers",version:"2.5.15-beta.10",main:"lib/index.js"}},lib:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getCacherNames=n.clearCacher=n.getCacher=void 0;var r={},i=t("./memory"),o=t("./memory-lru"),s=function(e,t){return r[e]||(e.startsWith("lru.")?r[e]=new o.MemoryLRUCacher(t):r[e]=new i.MemoryCacher),r[e]};n.getCacher=s;var a=function(e){r[e]&&r[e].clear()};n.clearCacher=a;var u=function(){return Object.keys(r)};n.getCacherNames=u},"memory.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryCacher=void 0;var r=t("lodash"),i=function(){function e(){this.cache={}}return e.prototype.get=function(e){return this.cache[e]},e.prototype.delete=function(e){delete this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.clear=function(){this.cache={}},e.prototype.keys=function(){return(0,r.keys)(this.cache)},e.prototype.values=function(){return(0,r.values)(this.cache)},e}();n.MemoryCacher=i},"memory-lru.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryLRUCacher=void 0;var r=t("lodash"),i=t("lru-cache"),o={max:5e3,ttl:null,keygen:null,maxParamsLength:null},s=function(){function e(e){this.opts=(0,r.defaultsDeep)(e,o),this.cache=new i({max:this.opts.max,maxAge:this.opts.ttl?1e3*this.opts.ttl:null,updateAgeOnGet:!!this.opts.ttl})}return e.prototype.get=function(e){return this.cache.get(e)},e.prototype.set=function(e,t,n){return this.cache.set(e,t,n)},e.prototype.delete=function(e){return this.cache.delete(e)},e.prototype.clear=function(){return this.cache.clear()},e.prototype.keys=function(){return this.cache.keys()},e.prototype.values=function(){return this.cache.values()},e}();n.MemoryLRUCacher=s}},node_modules:{"lru-cache":{"package.json":function e(t,n,e){e.exports={name:"lru-cache",version:"7.14.1",main:"index.js"}},"index.js":function e(t,n,e){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,i="function"==typeof AbortController,o=i?AbortController:class e{constructor(){this.signal=new u}abort(){this.signal.dispatchEvent("abort")}},s="function"==typeof AbortSignal,a="function"==typeof o.AbortSignal,u=s?AbortSignal:a?o.AbortController:class e{constructor(){this.aborted=!1,this._listeners=[]}dispatchEvent(e){if("abort"===e){this.aborted=!0;const t={type:e,target:this};this.onabort(t),this._listeners.forEach(e=>e(t),this)}}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},f=new Set,c=(e,t)=>{const n=`LRU_CACHE_OPTION_${e}`;p(n)&&g(n,`${e} option`,`options.${t}`,_)},l=(e,t)=>{const n=`LRU_CACHE_METHOD_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} method`,`cache.${t}()`,i)}},h=(e,t)=>{const n=`LRU_CACHE_PROPERTY_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} property`,`cache.${t}`,i)}},d=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},p=e=>!f.has(e),g=(e,t,n,r)=>{f.add(e);const i=`The ${t} is deprecated. Please use ${n} instead.`;d(i,"DeprecationWarning",e,r)},b=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),m=e=>b(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?v:null:null;class v extends Array{constructor(e){super(e),this.fill(0)}}class y{constructor(e){if(0===e)return[];const t=m(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class _{constructor(e={}){const{max:t=0,ttl:n,ttlResolution:r=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:s,allowStale:a,dispose:u,disposeAfter:l,noDisposeOnSet:h,noUpdateTTL:g,maxSize:v=0,maxEntrySize:w=0,sizeCalculation:k,fetchMethod:j,fetchContext:x,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:D}=e,{length:E,maxAge:A,stale:C}=e instanceof _?{}:e;if(0!==t&&!b(t))throw new TypeError("max option must be a nonnegative integer");const M=t?m(t):Array;if(!M)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=v,this.maxEntrySize=w||this.maxSize,this.sizeCalculation=k||E,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=j||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=x,!this.fetchMethod&&void 0!==x)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new M(t),this.prev=new M(t),this.head=0,this.tail=0,this.free=new y(t),this.initialFill=1,this.size=0,"function"==typeof u&&(this.dispose=u),"function"==typeof l?(this.disposeAfter=l,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!S,0!==this.maxEntrySize){if(0!==this.maxSize&&!b(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!b(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!a||!!C,this.noDeleteOnStaleGet=!!D,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!s,this.ttlResolution=b(r)||0===r?r:1,this.ttlAutopurge=!!i,this.ttl=n||A||0,this.ttl){if(!b(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";if(p(e)){f.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";d(t,"UnboundedCacheWarning",e,_)}}C&&c("stale","allowStale"),A&&c("maxAge","ttl"),E&&c("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new v(this.max),this.starts=new v(this.max),this.setItemTTL=(e,t,n=r.now())=>{if(this.starts[e]=0!==t?n:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const n=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);n.unref&&n.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0};let e=0;const t=()=>{const t=r.now();if(this.ttlResolution>0){e=t;const n=setTimeout(()=>e=0,this.ttlResolution);n.unref&&n.unref()}return t};this.getRemainingTTL=n=>{const r=this.keyMap.get(n);return void 0===r?0:0===this.ttls[r]||0===this.starts[r]?1/0:this.starts[r]+this.ttls[r]-(e||t())},this.isStale=n=>0!==this.ttls[n]&&0!==this.starts[n]&&(e||t())-this.starts[n]>this.ttls[n]}updateItemAge(e){}setItemTTL(e,t,n){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new v(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,n,r)=>{if(this.isBackgroundFetch(t))return 0;if(!b(n)){if(!r)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!b(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.addItemSize=(e,t)=>{if(this.sizes[e]=t,this.maxSize){const t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e]}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,n,r){if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const n of this.indexes())if(e(this.valList[n],this.keyList[n],this))return this.get(this.keyList[n],t)}forEach(e,t=this){for(const n of this.indexes())e.call(t,this.valList[n],this.keyList[n],this)}rforEach(e,t=this){for(const n of this.rindexes())e.call(t,this.valList[n],this.keyList[n],this)}get prune(){return l("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes({allowStale:!0})){const n=this.keyList[t],i=this.valList[t],o=this.isBackgroundFetch(i)?i.__staleWhileFetching:i,s={value:o};if(this.ttls){s.ttl=this.ttls[t];const e=r.now()-this.starts[t];s.start=Math.floor(Date.now()-e)}this.sizes&&(s.size=this.sizes[t]),e.unshift([n,s])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}dispose(e,t,n){}set(e,t,{ttl:n=this.ttl,start:r,noDisposeOnSet:i=this.noDisposeOnSet,size:o=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(o=this.requireSize(e,t,o,s),this.maxEntrySize&&o>this.maxEntrySize)return this.delete(e),this;let u=0===this.size?void 0:this.keyMap.get(e);if(void 0===u)u=this.newIndex(),this.keyList[u]=e,this.valList[u]=t,this.keyMap.set(e,u),this.next[this.tail]=u,this.prev[u]=this.tail,this.tail=u,this.size++,this.addItemSize(u,o),a=!1;else{const n=this.valList[u];t!==n&&(this.isBackgroundFetch(n)?n.__abortController.abort():i||(this.dispose(n,e,"set"),this.disposeAfter&&this.disposed.push([n,e,"set"])),this.removeItemSize(u),this.valList[u]=t,this.addItemSize(u,o)),this.moveToTail(u)}if(0===n||0!==this.ttl||this.ttls||this.initializeTTLTracking(),a||this.setItemTTL(u,n,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,n=this.keyList[t],r=this.valList[t];return this.isBackgroundFetch(r)?r.__abortController.abort():(this.dispose(r,n,"evict"),this.disposeAfter&&this.disposed.push([r,n,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(n),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const n=this.keyMap.get(e);return void 0!==n&&!this.isStale(n)&&(t&&this.updateItemAge(n),!0)}peek(e,{allowStale:t=this.allowStale}={}){const n=this.keyMap.get(e);if(void 0!==n&&(t||!this.isStale(n))){const e=this.valList[n];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,n,r){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const s=new o,a={signal:s.signal,options:n,context:r},u=t=>(s.signal.aborted||this.set(e,t,a.options),t),f=r=>{if(this.valList[t]===l){const r=!n.noDeleteOnFetchRejection||void 0===l.__staleWhileFetching;r?this.delete(e):this.valList[t]=l.__staleWhileFetching}if(l.__returned===l)throw r},c=t=>t(this.fetchMethod(e,i,a)),l=new Promise(c).then(u,f);return l.__abortController=s,l.__staleWhileFetching=i,l.__returned=null,void 0===t?(this.set(e,l,a.options),t=this.keyMap.get(e)):this.valList[t]=l,l}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,fetchContext:c=this.fetchContext,forceRefresh:l=!1}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r});const h={allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:i,noDisposeOnSet:o,size:s,sizeCalculation:a,noUpdateTTL:u,noDeleteOnFetchRejection:f};let d=this.keyMap.get(e);if(void 0===d){const t=this.backgroundFetch(e,d,h,c);return t.__returned=t}{const r=this.valList[d];if(this.isBackgroundFetch(r))return t&&void 0!==r.__staleWhileFetching?r.__staleWhileFetching:r.__returned=r;if(!l&&!this.isStale(d))return this.moveToTail(d),n&&this.updateItemAge(d),r;const i=this.backgroundFetch(e,d,h,c);return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i.__returned=i}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet}={}){const i=this.keyMap.get(e);if(void 0!==i){const o=this.valList[i],s=this.isBackgroundFetch(o);if(this.isStale(i))return s?t?o.__staleWhileFetching:void 0:(r||this.delete(e),t?o:void 0);if(s)return;return this.moveToTail(i),n&&this.updateItemAge(i),o}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return l("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const n=this.keyMap.get(e);if(void 0!==n)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(n);const t=this.valList[n];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const n=this.keyList[e];this.dispose(t,n,"delete"),this.disposeAfter&&this.disposed.push([t,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return l("reset","clear"),this.clear}get length(){return h("length","size"),this.size}static get AbortController(){return o}static get AbortSignal(){return u}}e.exports=_}}}}},tslib:{"package.json":function e(t,n,e){e.exports={name:"tslib",version:"2.3.1",module:"tslib.es6.js",main:"tslib.js"}},"tslib.es6.js":function e(t,n,e){e.export({__extends:()=>i,__assign:()=>o,__rest:()=>s,__decorate:()=>a,__param:()=>u,__metadata:()=>f,__awaiter:()=>c,__generator:()=>l,__createBinding:()=>h,__exportStar:()=>d,__values:()=>p,__read:()=>g,__spread:()=>b,__spreadArrays:()=>m,__spreadArray:()=>v,__await:()=>y,__asyncGenerator:()=>_,__asyncDelegator:()=>w,__asyncValues:()=>k,__makeTemplateObject:()=>j,__importStar:()=>S,__importDefault:()=>D,__classPrivateFieldGet:()=>E,__classPrivateFieldSet:()=>A}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -706,7 +706,7 @@ var r,a;r=this,a=function(t){var e=function(){"use strict";return{isMsie:functio */ var r,a;r=this,a=function(t){var e=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:t.isArray,isFunction:t.isFunction,isObject:t.isPlainObject,isUndefined:function(t){return void 0===t},isElement:function(t){return!(!t||1!==t.nodeType)},isJQuery:function(e){return e instanceof t},toStr:function t(n){return e.isUndefined(n)||null===n?"":n+""},bind:t.proxy,each:function(e,n){function i(t,e){return n(e,t)}t.each(e,i)},map:t.map,filter:t.grep,every:function(e,n){var i=!0;return e?(t.each(e,(function(t,r){if(!(i=n.call(null,r,t,e)))return!1})),!!i):i},some:function(e,n){var i=!1;return e?(t.each(e,(function(t,r){if(i=n.call(null,r,t,e))return!1})),!!i):i},mixin:t.extend,identity:function(t){return t},clone:function(e){return t.extend(!0,{},e)},getIdGenerator:function(){var t=0;return function(){return t++}},templatify:function e(n){return t.isFunction(n)?n:i;function i(){return String(n)}},defer:function(t){setTimeout(t,0)},debounce:function(t,e,n){var i,r;return function(){var a=this,o=arguments,s,u;return s=function(){i=null,n||(r=t.apply(a,o))},u=n&&!i,clearTimeout(i),i=setTimeout(s,e),u&&(r=t.apply(a,o)),r}},throttle:function(t,e){var n,i,r,a,o,s;return o=0,s=function(){o=new Date,r=null,a=t.apply(n,i)},function(){var u=new Date,l=e-(u-o);return n=this,i=arguments,l<=0?(clearTimeout(r),r=null,o=u,a=t.apply(n,i)):r||(r=setTimeout(s,l)),a}},stringify:function(t){return e.isString(t)?t:JSON.stringify(t)},noop:function(){}}}(),n=function(){"use strict";var t={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return n;function n(n){var o,s;return s=e.mixin({},t,n),{css:(o={css:a(),classes:s,html:i(s),selectors:r(s)}).css,html:o.html,classes:o.classes,selectors:o.selectors,mixin:function(t){e.mixin(t,o)}}}function i(t){return{wrapper:'',menu:'
'}}function r(t){var n={};return e.each(t,(function(t,e){n[e]="."+t})),n}function a(){var t={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return e.isMsie()&&e.mixin(t.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),t}}(),i=function(){"use strict";var n,i;function r(e){e&&e.el||t.error("EventBus initialized without el"),this.$el=t(e.el)}return n="typeahead:",i={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},e.mixin(r.prototype,{_trigger:function(e,i){var r;return r=t.Event(n+e),(i=i||[]).unshift(r),this.$el.trigger.apply(this.$el,i),r},before:function(t){var e,n;return e=[].slice.call(arguments,1),(n=this._trigger("before"+t,e)).isDefaultPrevented()},trigger:function(t){var e;this._trigger(t,[].slice.call(arguments,1)),(e=i[t])&&this._trigger(e,[].slice.call(arguments,1))}}),r}(),r=function(){"use strict";var t=/\s+/,e=u();return{onSync:r,onAsync:i,off:a,trigger:o};function n(e,n,i,r){var a;if(!i)return this;for(n=n.split(t),i=r?l(i,r):i,this._callbacks=this._callbacks||{};a=n.shift();)this._callbacks[a]=this._callbacks[a]||{sync:[],async:[]},this._callbacks[a][e].push(i);return this}function i(t,e,i){return n.call(this,"async",t,e,i)}function r(t,e,i){return n.call(this,"sync",t,e,i)}function a(e){var n;if(!this._callbacks)return this;for(e=e.split(t);n=e.shift();)delete this._callbacks[n];return this}function o(n){var i,r,a,o,u;if(!this._callbacks)return this;for(n=n.split(t),a=[].slice.call(arguments,1);(i=n.shift())&&(r=this._callbacks[i]);)o=s(r.sync,this,[i].concat(a)),u=s(r.async,this,[i].concat(a)),o()&&e(u);return this}function s(t,e,n){return i;function i(){for(var i,r=0,a=t.length;!i&&r9?this.$input.on("input.tt",o):this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",(function(i){n[i.which||i.keyCode]||e.defer(e.bind(t._onInput,t,i))})),this},focus:function t(){this.$input.focus()},blur:function t(){this.$input.blur()},getLangDir:function t(){return this.dir},getQuery:function t(){return this.query||""},setQuery:function t(e,n){this.setInputValue(e),this._setQuery(e,n)},hasQueryChangedSinceLastFocus:function t(){return this.query!==this.queryWhenFocused},getInputValue:function t(){return this.$input.val()},setInputValue:function t(e){this.$input.val(e),this.clearHintIfInvalid(),this._checkLanguageDirection()},resetInputValue:function t(){this.setInputValue(this.query)},getHint:function t(){return this.$hint.val()},setHint:function t(e){this.$hint.val(e)},clearHint:function t(){this.setHint("")},clearHintIfInvalid:function t(){var e,n,i,r;i=(e=this.getInputValue())!==(n=this.getHint())&&0===n.indexOf(e),!(r=""!==e&&i&&!this.hasOverflow())&&this.clearHint()},hasFocus:function t(){return this.$input.is(":focus")},hasOverflow:function t(){var e=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=e},isCursorAtEnd:function(){var t,n,i;return t=this.$input.val().length,n=this.$input[0].selectionStart,e.isNumber(n)?n===t:!document.selection||((i=document.selection.createRange()).moveStart("character",-t),t===i.text.length)},destroy:function e(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$overflowHelper.remove(),this.$hint=this.$input=this.$overflowHelper=t("
")}}),i;function a(e){return t('').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:e.css("font-family"),fontSize:e.css("font-size"),fontStyle:e.css("font-style"),fontVariant:e.css("font-variant"),fontWeight:e.css("font-weight"),wordSpacing:e.css("word-spacing"),letterSpacing:e.css("letter-spacing"),textIndent:e.css("text-indent"),textRendering:e.css("text-rendering"),textTransform:e.css("text-transform")}).insertAfter(e)}function o(t,e){return i.normalizeQuery(t)===i.normalizeQuery(e)}function s(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}}(),s=function(){"use strict";var n,i;function o(n,r){(n=n||{}).templates=n.templates||{},n.templates.notFound=n.templates.notFound||n.templates.empty,n.source||t.error("missing source"),n.node||t.error("missing node"),n.name&&(n.name,0)&&t.error("invalid dataset name: "+n.name),r.mixin(this),this.highlight=!!n.highlight,this.name=n.name||i(),this.limit=n.limit||5,this.displayFn=s(n.display||n.displayKey),this.templates=u(n.templates,this.displayFn),this.source=n.source.__ttAdapter?n.source.__ttAdapter():n.source,this.async=e.isUndefined(n.async)?this.source.length>2:!!n.async,this._resetLastSuggestion(),this.$el=t(n.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}return n={val:"tt-selectable-display",obj:"tt-selectable-object"},i=e.getIdGenerator(),o.extractData=function e(i){var r=t(i);return r.data(n.obj)?{val:r.data(n.val)||"",obj:r.data(n.obj)||null}:null},e.mixin(o.prototype,r,{_overwrite:function t(e,n){(n=n||[]).length?this._renderSuggestions(e,n):this.async&&this.templates.pending?this._renderPending(e):!this.async&&this.templates.notFound?this._renderNotFound(e):this._empty(),this.trigger("rendered",this.name,n,!1)},_append:function t(e,n){(n=n||[]).length&&this.$lastSuggestion.length?this._appendSuggestions(e,n):n.length?this._renderSuggestions(e,n):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(e),this.trigger("rendered",this.name,n,!0)},_renderSuggestions:function t(e,n){var i;i=this._getSuggestionsFragment(e,n),this.$lastSuggestion=i.children().last(),this.$el.html(i).prepend(this._getHeader(e,n)).append(this._getFooter(e,n))},_appendSuggestions:function t(e,n){var i,r;r=(i=this._getSuggestionsFragment(e,n)).children().last(),this.$lastSuggestion.after(i),this.$lastSuggestion=r},_renderPending:function t(e){var n=this.templates.pending;this._resetLastSuggestion(),n&&this.$el.html(n({query:e,dataset:this.name}))},_renderNotFound:function t(e){var n=this.templates.notFound;this._resetLastSuggestion(),n&&this.$el.html(n({query:e,dataset:this.name}))},_empty:function t(){this.$el.empty(),this._resetLastSuggestion()},_getSuggestionsFragment:function i(r,o){var s=this,u;return u=document.createDocumentFragment(),e.each(o,(function e(i){var a,o;o=s._injectQuery(r,i),a=t(s.templates.suggestion(o)).data(n.obj,i).data(n.val,s.displayFn(i)).addClass(s.classes.suggestion+" "+s.classes.selectable),u.appendChild(a[0])})),this.highlight&&a({className:this.classes.highlight,node:u,pattern:r}),t(u)},_getFooter:function t(e,n){return this.templates.footer?this.templates.footer({query:e,suggestions:n,dataset:this.name}):null},_getHeader:function t(e,n){return this.templates.header?this.templates.header({query:e,suggestions:n,dataset:this.name}):null},_resetLastSuggestion:function e(){this.$lastSuggestion=t()},_injectQuery:function t(n,i){return e.isObject(i)?e.mixin({_query:n},i):i},update:function e(n){var i=this,r=!1,a=!1,o=0;function s(t){a||(a=!0,t=(t||[]).slice(0,i.limit),o=t.length,i._overwrite(n,t),o")}}),o;function s(t){return t=t||e.stringify,e.isFunction(t)?t:n;function n(e){return e[t]}}function u(n,i){return{notFound:n.notFound&&e.templatify(n.notFound),pending:n.pending&&e.templatify(n.pending),header:n.header&&e.templatify(n.header),footer:n.footer&&e.templatify(n.footer),suggestion:n.suggestion||r};function r(e){return t("
").text(i(e))}}function l(t){return!0}}(),u=function(){"use strict";function n(n,i){var r=this;function a(e){var n=r.$node.find(e.node).first();return e.node=n.length?n:t("
").appendTo(r.$node),new s(e,i)}(n=n||{}).node||t.error("node is required"),i.mixin(this),this.$node=t(n.node),this.query=null,this.datasets=e.map(n.datasets,a)}return e.mixin(n.prototype,r,{_onSelectableClick:function e(n){this.trigger("selectableClicked",t(n.currentTarget))},_onRendered:function t(e,n,i,r){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetRendered",n,i,r)},_onCleared:function t(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetCleared")},_propagate:function t(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function t(){return e.every(this.datasets,n);function n(t){return t.isEmpty()}},_getSelectables:function t(){return this.$node.find(this.selectors.selectable)},_removeCursor:function t(){var e=this.getActiveSelectable();e&&e.removeClass(this.classes.cursor)},_ensureVisible:function t(e){var n,i,r,a;i=(n=e.position().top)+e.outerHeight(!0),r=this.$node.scrollTop(),a=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10),n<0?this.$node.scrollTop(r+n):a"),e.each(this.datasets,i)}}),n}(),l=function(){"use strict";var t=u.prototype;function n(){u.apply(this,[].slice.call(arguments,0))}return e.mixin(n.prototype,u.prototype,{open:function e(){return!this._allDatasetsEmpty()&&this._show(),t.open.apply(this,[].slice.call(arguments,0))},close:function e(){return this._hide(),t.close.apply(this,[].slice.call(arguments,0))},_onRendered:function e(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),t._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function e(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),t._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function e(n){return this.$node.css("ltr"===n?this.css.ltr:this.css.rtl),t.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function t(){this.$node.hide()},_show:function t(){this.$node.css("display","block")}}),n}(),c=function(){"use strict";function n(n,r){var a,o,s,u,l,c,d,f,h,p,m;(n=n||{}).input||t.error("missing input"),n.menu||t.error("missing menu"),n.eventBus||t.error("missing event bus"),r.mixin(this),this.eventBus=n.eventBus,this.minLength=e.isNumber(n.minLength)?n.minLength:1,this.input=n.input,this.menu=n.menu,this.enabled=!0,this.active=!1,this.input.hasFocus()&&this.activate(),this.dir=this.input.getLangDir(),this._hacks(),this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this),a=i(this,"activate","open","_onFocused"),o=i(this,"deactivate","_onBlurred"),s=i(this,"isActive","isOpen","_onEnterKeyed"),u=i(this,"isActive","isOpen","_onTabKeyed"),l=i(this,"isActive","_onEscKeyed"),c=i(this,"isActive","open","_onUpKeyed"),d=i(this,"isActive","open","_onDownKeyed"),f=i(this,"isActive","isOpen","_onLeftKeyed"),h=i(this,"isActive","isOpen","_onRightKeyed"),p=i(this,"_openIfActive","_onQueryChanged"),m=i(this,"_openIfActive","_onWhitespaceChanged"),this.input.bind().onSync("focused",a,this).onSync("blurred",o,this).onSync("enterKeyed",s,this).onSync("tabKeyed",u,this).onSync("escKeyed",l,this).onSync("upKeyed",c,this).onSync("downKeyed",d,this).onSync("leftKeyed",f,this).onSync("rightKeyed",h,this).onSync("queryChanged",p,this).onSync("whitespaceChanged",m,this).onSync("langDirChanged",this._onLangDirChanged,this)}return e.mixin(n.prototype,{_hacks:function n(){var i,r;i=this.input.$input||t("
"),r=this.menu.$node||t("
"),i.on("blur.tt",(function(t){var n,a,o;n=document.activeElement,a=r.is(n),o=r.has(n).length>0,e.isMsie()&&(a||o)&&(t.preventDefault(),t.stopImmediatePropagation(),e.defer((function(){i.focus()})))})),r.on("mousedown.tt",(function(t){t.preventDefault()}))},_onSelectableClicked:function t(e,n){this.select(n)},_onDatasetCleared:function t(){this._updateHint()},_onDatasetRendered:function t(e,n,i,r){this._updateHint(),this.eventBus.trigger("render",i,r,n)},_onAsyncRequested:function t(e,n,i){this.eventBus.trigger("asyncrequest",i,n)},_onAsyncCanceled:function t(e,n,i){this.eventBus.trigger("asynccancel",i,n)},_onAsyncReceived:function t(e,n,i){this.eventBus.trigger("asyncreceive",i,n)},_onFocused:function t(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function t(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function t(e,n){var i;(i=this.menu.getActiveSelectable())&&this.select(i)&&n.preventDefault()},_onTabKeyed:function t(e,n){var i;(i=this.menu.getActiveSelectable())?this.select(i)&&n.preventDefault():(i=this.menu.getTopSelectable())&&this.autocomplete(i)&&n.preventDefault()},_onEscKeyed:function t(){this.close()},_onUpKeyed:function t(){this.moveCursor(-1)},_onDownKeyed:function t(){this.moveCursor(1)},_onLeftKeyed:function t(){"rtl"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onRightKeyed:function t(){"ltr"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onQueryChanged:function t(e,n){this._minLengthMet(n)?this.menu.update(n):this.menu.empty()},_onWhitespaceChanged:function t(){this._updateHint()},_onLangDirChanged:function t(e,n){this.dir!==n&&(this.dir=n,this.menu.setLanguageDirection(n))},_openIfActive:function t(){this.isActive()&&this.open()},_minLengthMet:function t(n){return(n=e.isString(n)?n:this.input.getQuery()||"").length>=this.minLength},_updateHint:function t(){var n,i,r,a,s,u,l;n=this.menu.getTopSelectable(),i=this.menu.getSelectableData(n),r=this.input.getInputValue(),!i||e.isBlankString(r)||this.input.hasOverflow()?this.input.clearHint():(a=o.normalizeQuery(r),s=e.escapeRegExChars(a),(l=(u=new RegExp("^(?:"+s+")(.+$)","i")).exec(i.val))&&this.input.setHint(r+l[1]))},isEnabled:function t(){return this.enabled},enable:function t(){this.enabled=!0},disable:function t(){this.enabled=!1},isActive:function t(){return this.active},activate:function t(){return!!this.isActive()||!(!this.isEnabled()||this.eventBus.before("active"))&&(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function t(){return!this.isActive()||!this.eventBus.before("idle")&&(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0)},isOpen:function t(){return this.menu.isOpen()},open:function t(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function t(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function t(n){this.input.setQuery(e.toStr(n))},getVal:function t(){return this.input.getQuery()},select:function t(e){var n=this.menu.getSelectableData(e);return!(!n||this.eventBus.before("select",n.obj)||(this.input.setQuery(n.val,!0),this.eventBus.trigger("select",n.obj),this.close(),0))},autocomplete:function t(e){var n,i,r;return n=this.input.getQuery(),!(!(r=(i=this.menu.getSelectableData(e))&&n!==i.val)||this.eventBus.before("autocomplete",i.obj)||(this.input.setQuery(i.val),this.eventBus.trigger("autocomplete",i.obj),0))},moveCursor:function t(e){var n,i,r,a,o;return n=this.input.getQuery(),i=this.menu.selectableRelativeToCursor(e),a=(r=this.menu.getSelectableData(i))?r.obj:null,!(o=this._minLengthMet()&&this.menu.update(n))&&!this.eventBus.before("cursorchange",a)&&(this.menu.setCursor(i),r?this.input.setInputValue(r.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",a),!0)},destroy:function t(){this.input.destroy(),this.menu.destroy()}}),n;function i(t){var n=[].slice.call(arguments,1);return function(){var i=[].slice.call(arguments);e.each(n,(function(e){return t[e].apply(t,i)}))}}}();!function(){"use strict";var r,a,s;function d(e,n){e.each((function(){var e=t(this),i;(i=e.data(a.typeahead))&&n(i,e)}))}function f(t,e){return t.clone().addClass(e.classes.hint).removeData().css(e.css.hint).css(p(t)).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}function h(t,e){t.data(a.attrs,{dir:t.attr("dir"),autocomplete:t.attr("autocomplete"),spellcheck:t.attr("spellcheck"),style:t.attr("style")}),t.addClass(e.classes.input).attr({autocomplete:"off",spellcheck:!1});try{!t.attr("dir")&&t.attr("dir","auto")}catch(n){}return t}function p(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}function m(t){var n,i;n=t.data(a.www),i=t.parent().filter(n.selectors.wrapper),e.each(t.data(a.attrs),(function(n,i){e.isUndefined(n)?t.removeAttr(i):t.attr(i,n)})),t.removeData(a.typeahead).removeData(a.www).removeData(a.attr).removeClass(n.classes.input),i.length&&(t.detach().insertAfter(i),i.remove())}function g(n){var i,r;return(r=(i=e.isJQuery(n)||e.isElement(n))?t(n).first():[]).length?r:null}r=t.fn.typeahead,a={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"},s={initialize:function r(s,d){var p;return d=e.isArray(d)?d:[].slice.call(arguments,1),p=n((s=s||{}).classNames),this.each(m);function m(){var n,r,m,v,_,y,b,k,w,x,T;e.each(d,(function(t){t.highlight=!!s.highlight})),n=t(this),r=t(p.html.wrapper),m=g(s.hint),v=g(s.menu),_=!1!==s.hint&&!m,y=!1!==s.menu&&!v,_&&(m=f(n,p)),y&&(v=t(p.html.menu).css(p.css.menu)),m&&m.val(""),n=h(n,p),(_||y)&&(r.css(p.css.wrapper),n.css(_?p.css.input:p.css.inputWithNoHint),n.wrap(r).parent().prepend(_?m:null).append(y?v:null)),T=y?l:u,b=new i({el:n}),k=new o({hint:m,input:n},p),w=new T({node:v,datasets:d},p),x=new c({input:k,menu:w,eventBus:b,minLength:s.minLength},p),n.data(a.www,p),n.data(a.typeahead,x)}},isEnabled:function t(){var e;return d(this.first(),(function(t){e=t.isEnabled()})),e},enable:function t(){return d(this,(function(t){t.enable()})),this},disable:function t(){return d(this,(function(t){t.disable()})),this},isActive:function t(){var e;return d(this.first(),(function(t){e=t.isActive()})),e},activate:function t(){return d(this,(function(t){t.activate()})),this},deactivate:function t(){return d(this,(function(t){t.deactivate()})),this},isOpen:function t(){var e;return d(this.first(),(function(t){e=t.isOpen()})),e},open:function t(){return d(this,(function(t){t.open()})),this},close:function t(){return d(this,(function(t){t.close()})),this},select:function e(n){var i=!1,r=t(n);return d(this.first(),(function(t){i=t.select(r)})),i},autocomplete:function e(n){var i=!1,r=t(n);return d(this.first(),(function(t){i=t.autocomplete(r)})),i},moveCursor:function t(e){var n=!1;return d(this.first(),(function(t){n=t.moveCursor(e)})),n},val:function t(e){var n;return arguments.length?(d(this,(function(t){t.setVal(e)})),this):(d(this.first(),(function(t){n=t.getVal()})),n)},destroy:function t(){return d(this,(function(t,e){m(e),t.destroy()})),this}},t.fn.typeahead=function(t){return s[t]?s[t].apply(this,[].slice.call(arguments,1)):s.initialize.apply(this,arguments)},t.fn.typeahead.noConflict=function e(){return t.fn.typeahead=r,this}}()},"function"==typeof define&&define.amd?define("typeahead.js",["jquery"],(function(t){return a(t)})):"object"==typeof n?t.exports=a(e("jquery")):a(jQuery)}).call(this,t)}},"template.af-typeahead.js":function t(){q.__checkName("afTypeAhead"),q.afTypeAhead=new q("Template.afTypeAhead",(function(){var t=this;return R.DIV({class:"typeahead-basics"},"\n ",R.INPUT(R.Attrs({type:"text",value:function(){return M.mustache(M.dot(t.lookup("."),"value"))},placeholder:""},(function(){return M.attrMustache(M.dot(t.lookup("."),"atts"))}))),"\n ")}))},"af-typeahead.coffee":function t(){var e=P="object"==typeof P?P:{};b.addInputType("typeahead",{template:"afTypeAhead",valueIn:function(t,e){return t},valueOut:function(){return this.val()},valueConverters:{stringArray:b.valueConverters.stringToStringArray,number:b.valueConverters.stringToNumber,numerArray:b.valueConverters.stringToNumberArray,boolean:b.valueConverters.stringToBoolean,booleanArray:b.valueConverters.stringToBooleanArray,date:b.valueConverters.stringToDate,dateArray:b.valueConverters.stringToDateArray},contextAdjust:function(t){return void 0===t.atts.maxlength&&"number"==typeof t.max&&(t.atts.maxlength=t.max),t.atts.class="typeahead form-control",t}}),q.afTypeAhead.helpers,q.afTypeAhead.events,q.afTypeAhead.onRendered((function(){var t,e,n,i;return n=this.data.selectOptions,t=this.data.atts.id,e=this.data.name,i=function(t){return function(e,n){var i,r;return i=[],e?(r=new RegExp(e,"i"),$.each(t,(function(t,e){r.test(e)&&i.push(e)})),n(i)):n(t)}},$("#"+t).typeahead({hint:!1,highlight:!0,minLength:0},{name:e,limit:10,source:i(n.getProperty("label"))})}))}},"coreform-number":{"template.steedos-number.js":function t(){q.__checkName("afSteedosNumber"),q.afSteedosNumber=new q("Template.afSteedosNumber",(function(){var t=this;return R.INPUT(R.Attrs({type:"number",value:function(){return M.mustache(M.dot(t.lookup("."),"value"))}},(function(){return M.attrMustache(M.dot(t.lookup("."),"atts"))})))}))},"steedos-number.coffee":function t(){var e=P="object"==typeof P?P:{},n;b.addInputType("steedosNumber",{template:"afSteedosNumber",valueIn:function(t,e){return t?Number(t).toFixed(e.scale):(0).toFixed(e.scale)},valueOut:function(){return b.valueConverters.stringToNumber(this.val())},valueConverters:{string:b.valueConverters.numberToString,stringArray:b.valueConverters.numberToStringArray,numberArray:b.valueConverters.numberToNumberArray,boolean:b.valueConverters.numberToBoolean,booleanArray:b.valueConverters.numberToBooleanArray},contextAdjust:function(t){var e,n;return e=t.atts.scale||0,void 0===t.atts.max&&"number"==typeof t.max&&(t.atts.max=t.max),void 0===t.atts.min&&"number"==typeof t.min&&(t.atts.min=t.min),void 0===t.atts.step&&a.isNumber(e)&&e>0&&(n="0.",a.range(e).forEach((function(t,n){var i;return n===e-1?i+"1":i+"0"})),t.atts.step="0."),t.atts.class="form-control",t.precision=t.atts.precision,t.scale=t.atts.scale,t}}),n=function(t,e,n,i){var r,a;return a=b.getFormId(),r=new Number(t),t.indexOf(".")>-1?t.length-1>n?Number(t.substring(0,n-i-1)).toFixed(i):r.toFixed(i):t.length>n?Number(t.substring(0,n-i)).toFixed(i):r.toFixed(i)},q.afSteedosNumber.events({"blur input[type=number]":function(t,e){return t.currentTarget.value=n(t.currentTarget.value,this.atts.name,this.atts.precision,this.atts.scale)}})}},"coreform-date-mobile":{"template.date.js":function t(){q.__checkName("steedosInputDateMobile"),q.steedosInputDateMobile=new q("Template.steedosInputDateMobile",(function(){var t=this;return R.INPUT(R.Attrs({type:function(){return M.mustache(t.lookup("inputtype"))},value:function(){return M.mustache(M.dot(t.lookup("."),"value"))}},(function(){return M.attrMustache(t.lookup("atts"))})))}))},"date.js":function t(){b.addInputType("steedos-date-mobile",{template:"steedosInputDateMobile",valueIn:function(t,e){let n="datetime";return e.dateMobileOptions&&(n=e.dateMobileOptions.type),"string"==typeof t&&(t=new Date(t)),t="date"===n?k.utc(t).format("YYYY-MM-DD"):k(t).format("YYYY-MM-DDTHH:mm:ss")},valueOut:function(){let t=this.val(),e=this.attr("type");if(!t)return t;if("date"===e)return t;{let e;return(t=k.tz(b.Utility.dateToNormalizedLocalDateAndTimeString(t),"utc").toDate()).setHours(t.getHours()+t.getTimezoneOffset()/60),t}}}),q.steedosInputDateMobile.helpers({atts:function(){var t=a.clone(this.atts);return delete(t=b.Utility.addClass(t,"form-control")).dateMobileOptions,t},inputtype:function(){let t="datetime";switch(this.atts.dateMobileOptions&&(t=this.atts.dateMobileOptions.type),t){case"datetime":return"datetime-local";case"date":return"date";default:return"datetime-local"}}})}},"coreform-html":{"template.html.js":function t(){q.__checkName("steedosInputHtml"),q.steedosInputHtml=new q("Template.steedosInputHtml",(function(){var t=this;return j.If((function(){return M.call(t.lookup("isReadOnly"))}),(function(){return["\n ",R.DIV(R.Attrs((function(){return M.attrMustache(t.lookup("attsPlusFormControlClass"))})),"\n ",j.View("lookup:..value",(function(){return M.makeRaw(M.mustache(M.dot(t.lookup("."),"value")))})),"\n "),"\n ",R.INPUT(R.Attrs({type:"text",value:function(){return M.mustache(M.dot(t.lookup("."),"value"))},style:"display: none"},(function(){return M.attrMustache(M.dot(t.lookup("."),"atts"))}),(function(){return M.attrMustache(t.lookup("attsPlusFormControlClass"))}))),"\n "]}),(function(){return["\n ",R.INPUT(R.Attrs({type:"text",value:function(){return M.mustache(M.dot(t.lookup("."),"value"))}},(function(){return M.attrMustache(M.dot(t.lookup("."),"atts"))}),(function(){return M.attrMustache(t.lookup("attsPlusFormControlClass"))}))),"\n "]}))}))},"html.js":function t(){b.addInputType("steedosHtml",{template:"steedosInputHtml",valueConverters:{stringArray:b.valueConverters.stringToStringArray},contextAdjust:function(t){return void 0===t.atts.maxlength&&"number"==typeof t.max&&(t.atts.maxlength=t.max),t}}),q.steedosInputHtml.helpers({isReadOnly:function(){var t=this.atts;return!(!t.hasOwnProperty("disabled")&&!t.hasOwnProperty("readonly"))}})}}},components:{"slds-quickForm":{"template.slds-quickForm.js":function t(){q.__checkName("quickForm_slds"),q.quickForm_slds=new q("Template.quickForm_slds",(function(){var t=this;return R.DIV({class:function(){return["quickForm_slds ",j.If((function(){return M.call(t.lookup("horizontal"))}),(function(){return"horizontal"}))]}},"\n\t",j._TemplateWith((function(){return M.call(t.lookup("qfAutoFormContext"))}),(function(){return M.include(t.lookupTemplate("autoForm"),(function(){return["\n\t\t",j.If((function(){return M.call(M.dot(t.lookup("schemaFields"),"grouplessFields"))}),(function(){return["\n\t\t\t",j.Each((function(){return M.call(M.dot(t.lookup("schemaFields"),"grouplessFields"))}),(function(){return["\n\t\t\t\t",R.DIV({class:function(){return["slds-grid view-page-section-row ",j.If((function(){return M.dataMustache(t.lookup("has_wide_field"),t.lookup("."))}),(function(){return"wide-fields"}))]}},"\n\t\t\t\t\t",j.Each((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t",R.DIV({class:"slds-has-flexi-truncate slds-p-horizontal_x-small full view-page-block-item"},"\n\t\t\t\t\t\t\t",R.DIV({class:function(){return["slds-form-element slds-form-element_edit slds-grow slds-hint-parent slds-p-vertical_xx-small override--slds-form-element uiInput ",j.If((function(){return M.dataMustache(t.lookup("hasInlineHelpText"),t.lookup("."))}),(function(){return"has-inline-text"}))]}},"\n\t\t\t\t\t\t\t\t",j.If((function(){return M.dataMustache(t.lookup("is_range"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",M.include(t.lookupTemplate("range_field")),"\n\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t",j.Unless((function(){return M.dataMustache(t.lookup("is_renge_end"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.dataMustache(t.lookup("hasInlineHelpText"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t",R.DIV({class:"info-popover",id:function(){return["info_popover_",M.mustache(t.lookup("."))]},style:"display: none"},j.View("lookup:hasInlineHelpText",(function(){return M.mustache(t.lookup("hasInlineHelpText"),t.lookup("."))}))),"\n\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("horizontal"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),template:M.call("bootstrap3-horizontal"),"label-class":M.call("col-sm-3 col-xs-12"),"input-col-class":M.call("col-sm-9 col-xs-12")}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup(".")))}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"]})),"\n\t\t\t\t"),"\n\t\t\t"]})),"\n\t\t"]})),"\n\n\t\t",j.If((function(){return M.call(M.dot(t.lookup("schemaFields"),"groupFields"))}),(function(){return["\n\t\t\t",j.Each((function(){return M.call(M.dot(t.lookup("schemaFields"),"groupFields"))}),(function(){return["\n\t\t\t\t",j.If((function(){return M.call(M.dot(t.lookup("."),"fields"))}),(function(){return["\n\t\t\t\t\t",R.DIV({class:function(){return["slds-section group-section ",j.If((function(){return M.call(t.lookup("autoExpandGroup"))}),(function(){return"slds-is-open"}))]}},"\n\t\t\t\t\t\t",R.H3({class:"slds-section__title group-section-control"},"\n\t\t\t\t\t\t\t",j._TemplateWith((function(){return{className:M.call("slds-section__title-action"),iconClassName:M.call("slds-section__title-action-icon slds-button__icon_left"),iconCategory:M.call("utility"),iconName:M.call("switch"),variant:M.call("icon"),label:M.call(M.dot(t.lookup("."),"name"))}}),(function(){return M.include(t.lookupTemplate("steedos_button"))})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t\t",R.DIV({"aria-hidden":"false",class:"slds-section__content",id:"expando-unique-id"},"\n\t\t\t\t\t\t\t",j.Each((function(){return M.call(M.dot(t.lookup("."),"fields"))}),(function(){return["\n\t\t\t\t\t\t\t\t",R.DIV({class:function(){return["slds-grid view-page-section-row ",j.If((function(){return M.dataMustache(t.lookup("has_wide_field"),t.lookup("."))}),(function(){return"wide-fields"}))]}},"\n\t\t\t\t\t\t\t\t\t",j.Each((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",R.DIV({class:"slds-has-flexi-truncate slds-p-horizontal_x-small full view-page-block-item"},"\n\t\t\t\t\t\t\t\t\t\t",R.DIV({class:function(){return["slds-form-element slds-form-element_edit slds-grow slds-hint-parent slds-p-vertical_xx-small override--slds-form-element uiInput ",j.If((function(){return M.dataMustache(t.lookup("hasInlineHelpText"),t.lookup("."))}),(function(){return"has-inline-text"}))]}},"\n\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.dataMustache(t.lookup("is_range"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t",M.include(t.lookupTemplate("range_field")),"\n\t\t\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t",j.Unless((function(){return M.dataMustache(t.lookup("is_renge_end"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.dataMustache(t.lookup("hasInlineHelpText"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t",R.DIV({class:"info-popover",id:function(){return["info_popover_",M.mustache(t.lookup("."))]},style:"display: none"},j.View("lookup:hasInlineHelpText",(function(){return M.mustache(t.lookup("hasInlineHelpText"),t.lookup("."))}))),"\n\t\t\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("horizontal"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),template:M.call("bootstrap3-horizontal"),"label-class":M.call("col-sm-3 col-xs-12"),"input-col-class":M.call("col-sm-9 col-xs-12")}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup(".")))}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"]})),"\n\t\t\t"]})),"\n\t\t"]})),"\n\n\t\t",j.If((function(){return M.call(M.dot(t.lookup("schemaFields"),"hiddenFields"))}),(function(){return["\n\t\t\t",R.DIV({class:"slds-grid view-page-section-row hidden-fields"},"\n\t\t\t\t",R.DIV({class:"slds-has-flexi-truncate slds-p-horizontal_x-small full view-page-block-item"},"\n\t\t\t\t\t",j.Each((function(){return M.call(M.dot(t.lookup("schemaFields"),"hiddenFields"))}),(function(){return["\n\t\t\t\t\t\t",R.DIV({class:"slds-form-element slds-form-element_edit slds-grow slds-hint-parent slds-p-vertical_xx-small override--slds-form-element uiInput"},"\n\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("horizontal"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),template:M.call("bootstrap3-horizontal"),"label-class":M.call("col-sm-3 col-xs-12"),"input-col-class":M.call("col-sm-9 col-xs-12")}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup(".")))}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"]})),"\n\t\t\t\t"),"\n\t\t\t"),"\n\t\t"]})),"\n\n\t\t",j.If((function(){return M.call(M.dot(t.lookup("schemaFields"),"disabledFields"))}),(function(){return["\n\t\t\t",R.DIV({class:"slds-grid view-page-section-row disabled-fields"},"\n\t\t\t\t",R.DIV({class:"slds-has-flexi-truncate slds-p-horizontal_x-small full view-page-block-item"},"\n\t\t\t\t\t",j.Each((function(){return M.call(M.dot(t.lookup("schemaFields"),"disabledFields"))}),(function(){return["\n\t\t\t\t\t\t",R.DIV({class:"slds-form-element slds-form-element_edit slds-grow slds-hint-parent slds-p-vertical_xx-small override--slds-form-element uiInput"},"\n\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("horizontal"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),disabled:M.call(!1),readonly:M.call(!0),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),template:M.call("bootstrap3-horizontal"),"label-class":M.call("col-sm-3 col-xs-12"),"input-col-class":M.call("col-sm-9 col-xs-12")}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),disabled:M.call(!1),readonly:M.call(!0),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup(".")))}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"]})),"\n\t\t\t\t"),"\n\t\t\t"),"\n\t\t"]})),"\n\t"]}))})),"\n\t")})),q.__checkName("range_field"),q.range_field=new q("Template.range_field",(function(){var t=this;return R.DIV({class:function(){return["range-field field-code-",M.mustache(t.lookup("startName"))]}},"\n\t\t",R.DIV({class:"form-group"},"\n\t\t\t",R.LABEL({class:"col-sm-3 control-label",for:"dao2yaGvD4SFjifBi"},"\n\t\t\t\t",j.View("lookup:afFieldLabelText",(function(){return M.mustache(t.lookup("afFieldLabelText"),M.kw({name:t.lookup("startName"),class:"col-sm-3 col-xs-12"}))})),"\n\t\t\t"),"\n\t\t\t",R.DIV({class:"col-sm-9 col-xs-12"},"\n\t\t\t\t",R.DIV({class:"row show-grid"},"\n\t\t\t\t\t",R.DIV({class:"col-sm-6 col-xs-6 start"},j._TemplateWith((function(){return{name:M.call(t.lookup("startName")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),label:M.call(!1)}}),(function(){return M.include(t.lookupTemplate("afQuickField"))}))),"\n\t\t\t\t\t",R.DIV({class:"col-sm-6 col-xs-6 end"},j._TemplateWith((function(){return{name:M.call(t.lookup("endName")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),label:M.call(!1)}}),(function(){return M.include(t.lookupTemplate("afQuickField"))}))),"\n\t\t\t\t"),"\n\t\t\t"),"\n\t\t"),"\n\t")}))},"slds-quickForm.coffee":function t(){var e=P="object"==typeof P?P:{};q.quickForm_slds.helpers({isDisabled:function(t){var e,n,i,r;return null!=(e=q.instance())&&null!=(n=e.data)&&null!=(i=n.qfAutoFormContext.schema._schema[t])&&null!=(r=i.autoform)?r.disabled:void 0},hasInlineHelpText:function(t){var e,n,i,r;return null!=(e=q.instance())&&null!=(n=e.data)&&null!=(i=n.qfAutoFormContext.schema._schema[t])&&null!=(r=i.autoform)?r.inlineHelpText:void 0},is_range:function(t){var e,n,i,r;return null!=(e=q.instance())&&null!=(n=e.data)&&null!=(i=n.qfAutoFormContext.schema._schema[t])&&null!=(r=i.autoform)?r.is_range:void 0},is_renge_end:function(t){return null!=t?t.endsWith("_endLine"):void 0},getClass:function(t){var e,n,i,r;if("steedosGrid"!==(null!=(e=q.instance())&&null!=(n=e.data)&&null!=(i=n.qfAutoFormContext.schema._schema[t])&&null!=(r=i.autoform)?r.type:void 0))return"form-control"},schemaFields:function(){var t,e,n,i,o,s,u,l,c,d,f,h,p;return d=[],p=this.qfAutoFormContext.schema,h=p._schema,s=p._firstLevelSchemaKeys,(f=this.qfAutoFormContext.fields||s)||(f=[]),a.each(h,(function(t,e){var n;if(a.indexOf(s,e)>-1&&!(null!=(n=t.autoform)?n.omit:void 0))return d.push(e)})),1===d.length?o={grouplessFields:[d]}:(l=Creator.getHiddenFields(h),t=Creator.getDisabledFields(h),n=[],i=[],c=r.get("cmEditSingleField"),u=[],u=Creator.getFieldsWithNoGroup(h),u=Creator.getFieldsInFirstLevel(s,u),f&&(u=a.intersection(f,u)),u=Creator.getFieldsWithoutOmit(h,u),u=Creator.getFieldsForReorder(h,u,c),e=Creator.getSortedFieldGroupNames(h),a.each(e,(function(t){return i=Creator.getFieldsForGroup(h,t),i=Creator.getFieldsInFirstLevel(s,i),f&&(i=a.intersection(f,i)),i=Creator.getFieldsWithoutOmit(h,i),i=Creator.getFieldsForReorder(h,i,c),n.push({name:t,fields:i})})),o={grouplessFields:u,groupFields:n,hiddenFields:l,disabledFields:t})},horizontal:function(){return q.instance().data.atts.horizontal},is_range_fields:function(t){var e,n,i,r;if((null!=t?t.length:void 0)>0&&t[0])return null!=(e=q.instance())&&null!=(n=e.data)&&null!=(i=n.qfAutoFormContext.schema._schema[t[0]])&&null!=(r=i.autoform)?r.is_range:void 0},has_wide_field:function(t){var e,n,i,r;if((null!=t?t.length:void 0)>0&&t[0])return null!=(e=q.instance())&&null!=(n=e.data)&&null!=(i=n.qfAutoFormContext.schema._schema[t[0]])&&null!=(r=i.autoform)?r.is_wide:void 0},autoExpandGroup:function(){return q.instance().data.atts.autoExpandGroup||!1}}),q.quickForm_slds.events({"click .group-section-control":function(t,e){return t.preventDefault(),t.stopPropagation(),$(t.currentTarget).closest(".group-section").toggleClass("slds-is-open")}}),q.quickForm_slds.onRendered((function(){var t;return t=this,this.$(".has-inline-text").each((function(){var t,e;return t='\n\t\n',$(".control-label",$(this)).append(t)})),this.$(".info-popover").each((function(){var t;return t=$("~ .form-group .help-info",$(this)).attr("id"),$(this).dxPopover({target:"#"+t,showEvent:"mouseenter",hideEvent:"mouseleave",position:"top",width:300,animation:{show:{type:"pop",from:{scale:0},to:{scale:1}},hide:{type:"fade",from:1,to:0}}})}))})),q.range_field.helpers({startName:function(){return this.toString()},endName:function(){return this.toString()+"_endLine"},getClass:function(t){return"form-control"}})}}}}}}}}},{extensions:[".js",".json",".coffee",".html",".less"]});W("/node_modules/meteor/steedos:autoform/client/core.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/boolean-checkbox/template.boolean-checkbox.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/boolean-checkbox/boolean-checkbox.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/boolean-toggle/template.boolean-toggle.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/boolean-toggle/boolean-toggle.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org-localdata/template.select-orgs.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org-localdata/select-orgs.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/lib/template.cf_organization.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/lib/cf_organization.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/lib/template.cf_organization_modal.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/lib/cf_organization_modal.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/template.select-orgs.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/select-orgs.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user-localdata/template.select-users.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user-localdata/select-users.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_data_manager.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_tabular_space_user.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/template.cf_contact_modal.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_contact_modal.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/template.cf_organization_list.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_organization_list.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/template.cf_space_user_list.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_space_user_list.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/template.cf_organization_modal.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_organization_modal.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/template.select-users.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/select-users.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-tree/template.select-tree.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-tree/select-tree.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-email/template.email.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-email/email.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-url/template.url.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-url/url.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-widearea/template.widearea.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-widearea/widearea.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/components/slds-quickForm/template.slds-quickForm.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/components/slds-quickForm/slds-quickForm.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-typeahead/typeahead.js/bloodhound.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-typeahead/typeahead.js/typeahead.bundle.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-typeahead/typeahead.js/typeahead.jquery.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-typeahead/template.af-typeahead.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-typeahead/af-typeahead.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-number/template.steedos-number.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-number/steedos-number.coffee"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-date-mobile/template.date.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-date-mobile/date.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-html/template.html.js"),W("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-html/html.js"),Package._define("steedos:autoform",{CFDataManager:L})}(); -!function(){var Meteor=Package.meteor.Meteor,global=Package.meteor.global,meteorEnv=Package.meteor.meteorEnv,ReactiveVar=Package["reactive-var"].ReactiveVar,ReactiveDict=Package["reactive-dict"].ReactiveDict,Random=Package.random.Random,DDP=Package["ddp-client"].DDP,check=Package.check.check,Match=Package.check.Match,_=Package.underscore._,Tracker=Package.tracker.Tracker,Deps=Package.tracker.Deps,Session=Package.session.Session,Blaze=Package.ui.Blaze,UI=Package.ui.UI,Handlebars=Package.ui.Handlebars,Template=Package["templating-runtime"].Template,SimpleSchema=Package["aldeed:simple-schema"].SimpleSchema,MongoObject=Package["aldeed:simple-schema"].MongoObject,Tabular=Package["aldeed:tabular"].Tabular,AutoForm=Package["aldeed:autoform"].AutoForm,CollectionHooks=Package["matb33:collection-hooks"].CollectionHooks,BlazeLayout=Package["kadira:blaze-layout"].BlazeLayout,FlowRouter=Package["kadira:flow-router"].FlowRouter,SubsManager=Package["meteorhacks:subs-manager"].SubsManager,moment=Package["momentjs:moment"].moment,UniSelectize=Package["steedos:autoform-lookup"].UniSelectize,Accounts=Package["accounts-base"].Accounts,Selector=Package["steedos:base"].Selector,Steedos=Package["steedos:base"].Steedos,AjaxCollection=Package["steedos:base"].AjaxCollection,SteedosDataManager=Package["steedos:base"].SteedosDataManager,SteedosOffice=Package["steedos:base"].SteedosOffice,Modal=Package["steedos:base"].Modal,CFDataManager=Package["steedos:autoform"].CFDataManager,Push=Package["raix:push"].Push,Logger=Package["steedos:logger"].Logger,_i18n=Package["universe:i18n"]._i18n,i18n=Package["universe:i18n"].i18n,Promise=Package.promise.Promise,meteorInstall=Package.modules.meteorInstall,HTML=Package.htmljs.HTML,Collection2=Package["aldeed:collection2-core"].Collection2,FS=Package["steedos:cfs-base-package"].FS,Spacebars=Package.spacebars.Spacebars,Mongo=Package.mongo.Mongo,__coffeescriptShare,regions,require=meteorInstall({node_modules:{meteor:{"steedos:creator":{"core.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Creator.getSchema=function(e){var t;return null!=(t=Creator.getObject(e))?t.schema:void 0},Creator.getObjectHomeComponent=function(e){return!1},Creator.getObjectUrl=function(e,t,r){var o,a;return r||(r=Session.get("app_id")),e||(e=Session.get("object_name")),a=null!=(o=Creator.getListView(e,null))?o._id:void 0,t?Creator.getRelativeUrl("/app/"+r+"/"+e+"/view/"+t):Creator.getObjectHomeComponent(e)?Creator.getRelativeUrl("/app/"+r+"/"+e):a?Creator.getRelativeUrl("/app/"+r+"/"+e+"/grid/"+a):Creator.getRelativeUrl("/app/"+r+"/"+e)},Creator.getObjectAbsoluteUrl=function(e,t,r){var o,a;return r||(r=Session.get("app_id")),e||(e=Session.get("object_name")),a=null!=(o=Creator.getListView(e,null))?o._id:void 0,t?Steedos.absoluteUrl("/app/"+r+"/"+e+"/view/"+t,!0):Steedos.absoluteUrl("/app/"+r+"/"+e+"/grid/"+a,!0)},Creator.getObjectRouterUrl=function(e,t,r){var o,a;return r||(r=Session.get("app_id")),e||(e=Session.get("object_name")),a=null!=(o=Creator.getListView(e,null))?o._id:void 0,t?"/app/"+r+"/"+e+"/view/"+t:"/app/"+r+"/"+e+"/grid/"+a},Creator.getListViewUrl=function(e,t,r){var o;return o=Creator.getListViewRelativeUrl(e,t,r),Creator.getRelativeUrl(o)},Creator.getListViewRelativeUrl=function(e,t,r){return"/app/"+t+"/"+e+"/grid/"+r},Creator.getSwitchListUrl=function(e,t,r){return r?Creator.getRelativeUrl("/app/"+t+"/"+e+"/"+r+"/list"):Creator.getRelativeUrl("/app/"+t+"/"+e+"/list/switch")},Creator.getRelatedObjectUrl=function(e,t,r,o,a){return a?Creator.getRelativeUrl("/app/"+t+"/"+e+"/"+r+"/"+o+"/grid?related_field_name="+a):Creator.getRelativeUrl("/app/"+t+"/"+e+"/"+r+"/"+o+"/grid")},Creator.getObjectLookupFieldOptions=function(e,t,r,o){var a,n,i,s,c,l;return n=[],e?(i=null!=(a=Creator.getObject(e))?a.fields:void 0,s=null!=a?a.icon:void 0,_.forEach(i,(function(e,t){if(!r||!e.hidden)return"select"===e.type?n.push({label:""+(e.label||t),value:""+t,icon:s}):n.push({label:e.label||t,value:t,icon:s})})),t&&_.forEach(i,(function(e,t){var o;if(!r||!e.hidden)return("lookup"===e.type||"master_detail"===e.type)&&e.reference_to&&_.isString(e.reference_to)&&(o=Creator.getObject(e.reference_to))?_.forEach(o.fields,(function(r,a){return n.push({label:(e.label||t)+"=>"+(r.label||a),value:t+"."+a,icon:null!=o?o.icon:void 0})})):void 0})),o&&(c=Creator.getRelatedObjects(e),_.each(c,(l=this,function(e){var t,r;return r=Creator.getObjectLookupFieldOptions(e.object_name,!1,!1,!1),t=Creator.getObject(e.object_name),_.each(r,(function(r){if(e.foreign_key!==r.value)return n.push({label:(t.label||t.name)+"=>"+r.label,value:t.name+"."+r.value,icon:null!=t?t.icon:void 0})}))}))),n):n},Creator.getObjectFilterFieldOptions=function(e){var t,r,o,a,n;return r=[],e?(o=null!=(t=Creator.getObject(e))?t.fields:void 0,n=Creator.getFields(e),a=null!=t?t.icon:void 0,_.forEach(o,(function(e,t){if(!_.include(["grid","object","[Object]","[object]","Object","avatar","image","markdown","html"],e.type)&&!e.hidden&&!/\w+\./.test(t)&&_.indexOf(n,t)>-1)return r.push({label:e.label||t,value:t,icon:a})})),r):r},Creator.getObjectFieldOptions=function(e){var t,r,o,a,n;return r=[],e?(o=null!=(t=Creator.getObject(e))?t.fields:void 0,n=Creator.getFields(e),a=null!=t?t.icon:void 0,_.forEach(o,(function(e,t){if(!_.include(["grid","object","[Object]","[object]","Object","markdown","html"],e.type)&&!/\w+\./.test(t)&&_.indexOf(n,t)>-1)return r.push({label:e.label||t,value:t,icon:a})})),r):r},Creator.getFiltersWithFilterFields=function(e,t,r){return e||(e=[]),r||(r=[]),(null!=r?r.length:void 0)&&r.forEach((function(r){if(_.isString(r)&&(r={field:r,required:!1}),t[r.field]&&!_.findWhere(e,{field:r.field}))return e.push({field:r.field,is_default:!0,is_required:r.required})})),e.forEach((function(e){var t;return t=r.find((function(t){return t===e.field||t.field===e.field})),_.isString(t)&&(t={field:t,required:!1}),t?(e.is_default=!0,e.is_required=t.required):(delete e.is_default,delete e.is_required)})),e},Creator.getObjectRecord=function(e,t,r,o){var a,n,i,s,c,l;if(e||(e=Session.get("object_name")),t||(t=Session.get("record_id")),Meteor.isClient){if(e!==Session.get("object_name")||t!==Session.get("record_id"))return Creator.odata.get(e,t,r,o);if(null!=(s=Template.instance())?s.record:void 0)return null!=(c=Template.instance())&&null!=(l=c.record)?l.get():void 0}if("meteor"!==(n=Creator.getObject(e)).database_name&&n.database_name){if(e&&t)return Creator.odata.get(e,t,r,o)}else if(a=Creator.getCollection(e))return i=a.findOne(t)},Creator.getObjectRecordName=function(e,t){var r,o;if(e||(e=Creator.getObjectRecord()),e&&(r="organizations"===t?"name":null!=(o=Creator.getObject(t))?o.NAME_FIELD_KEY:void 0,e&&r))return e.label||e[r]},Creator.getApp=function(e){var t,r;return(t=Session.get("_app_menus")||Session.get("app_menus"))?r=t.find((function(t){return t.id===e})):{}},Creator.getAppDashboard=function(e){var t,r;if(t=Creator.getApp(e))return r=null,_.each(Creator.Dashboards,(function(e,o){var a;if((null!=(a=e.apps)?a.indexOf(t._id):void 0)>-1)return r=e})),r},Creator.getAppDashboardComponent=function(e){var t;t=Creator.getApp(e)},Creator.getAppObjectNames=function(e){var t,r,o,a;if(t=Creator.getApp(e))return r=(o=Steedos.isMobile())?t.mobile_objects:t.objects,a=[],t&&_.each(r,(function(e){var t;if(null!=(t=Creator.getObject(e))?t.permissions.get().allowRead:void 0)return a.push(e)})),a},Creator.getUrlWithToken=function(e,t){var r,o,a;return(a={})["X-Space-Id"]=Steedos.spaceId(),a["X-User-Id"]=Steedos.userId(),a["X-Company-Ids"]=Steedos.getUserCompanyIds(),a["X-Auth-Token"]=Accounts._storedLoginToken(),Steedos.isExpression(e)&&(e=Steedos.parseSingleExpression(e,t,"#",Creator.USER_CONTEXT)),""+e+(o=(r=/(\#.+\?)|(\?[^#]*$)/g.test(e))?"&":"?")+$.param(a)},Creator.getAppMenu=function(e,t){var r;return(r=Creator.getAppMenus(e))&&r.find((function(e){return e.id===t}))},Creator.getAppMenuUrlForInternet=function(e){return Creator.getUrlWithToken(e.path,e)},Creator.getAppMenuUrl=function(e){var t;return t=e.path,"url"===e.type?e.target?Creator.getAppMenuUrlForInternet(e):"/app/-/tab_iframe/"+e.id:e.path},Creator.getAppMenus=function(e){var t,r;return(t=Session.get("_app_menus")||Session.get("app_menus"))?(r=t.find((function(t){return t.id===e})))?r.children:void 0:[]},Creator.loadAppsMenus=function(){var e,t,r;return e={},(t=Steedos.isMobile())&&(e.mobile=t),r={type:"get",data:e,success:function(e){return Session.set("app_menus",e)}},null!=Steedos?Steedos.authRequest("/service/api/apps/menus",r):void 0},Creator.creatorAppsSelector=function(e,t){var r,o,a;return r=void 0,a=void 0,_.each(e,(function(e,t){e._id||(e._id=t),e.is_creator||(e.visible=!1)})),a=_.sortBy(_.values(e),"sort"),o={},r={},_.each(a,(function(e){return"admin"===e._id?r=e:o[e._id]=e})),o.admin=r,t.length&&_.each(o,(function(e,r){t.indexOf(r)>-1?e.visible=e.is_creator:e.visible=!1})),o},Creator.visibleAppsSelector=function(e,t){var r;return null==t&&(t=!0),r=[],_.each(e,(function(e,o){(!1!==e.visible&&"admin"!==e._id||t&&"admin"===e._id)&&r.push(e)})),r},Creator.getVisibleApps=function(e){var t,r;return t=Creator._subApp.get(),r=Object.assign({},Creator.Apps,{apps:t}),Creator.visibleAppsSelector(r,e)},Creator.getVisibleAppsObjects=function(){var e,t,r;return e=Creator.getVisibleApps(),r=_.flatten(_.pluck(e,"objects")),t=(t=_.filter(Creator.Objects,(function(e){return!(r.indexOf(e.name)<0)}))).sort(Creator.sortingMethod.bind({key:"label"})),t=_.pluck(t,"name"),_.uniq(t)},Creator.getAppsObjects=function(){var e,t;return e=[],t=[],_.forEach(Creator.Apps,(function(r){return t=_.filter(r.objects,(function(e){return!e.hidden})),e=e.concat(t)})),_.uniq(e)},Creator.validateFilters=function(e,t){var r,o,a,n,i,s,c;if(a=_.map(e,(function(e){return!_.isEmpty(e)&&e})),a=_.compact(a),o="",n=a.length,t){if(t=t.replace(/\n/g,"").replace(/\s+/g," "),/[._\-!+]+/gi.test(t)&&(o="含有特殊字符。"),!o)if(s=t.match(/\d+/gi))for(s.forEach((function(e){if(e<1||e>n)return o="您的筛选条件引用了未定义的筛选器:"+e+"。"})),i=1;i<=n;)s.includes(""+i)||(o="有些筛选条件进行了定义,但未在高级筛选条件中被引用。"),i++;else o="有些筛选条件进行了定义,但未在高级筛选条件中被引用。";if(o||(c=t.match(/[a-zA-Z]+/gi))&&c.forEach((function(e){if(!/^(and|or)$/gi.test(e))return o="检查您的高级筛选条件中的拼写。"})),!o){try{Creator.eval(t.replace(/and/gi,"&&").replace(/or/gi,"||"))}catch(l){r=l,o="您的筛选器中含有特殊字符"}(/(AND)[^()]+(OR)/gi.test(t)||/(OR)[^()]+(AND)/gi.test(t))&&(o="您的筛选器必须在连续性的 AND 和 OR 表达式前后使用括号。")}}return!o||(console.log("error",o),Meteor.isClient&&toastr.error(o),!1)},Creator.formatFiltersToMongo=function(e,t){var r;if(null!=e?e.length:void 0)return e[0]instanceof Array||(e=_.map(e,(function(e){return[e.field,e.operation,e.value]}))),r=[],_.each(e,(function(e){var o,a,n,i,s;return o=e[0],a=e[1],s=Meteor.isClient?Creator.evaluateFormula(e[2]):Creator.evaluateFormula(e[2],null,t),(i={})[o]={},"="===a?i[o].$eq=s:"<>"===a?i[o].$ne=s:">"===a?i[o].$gt=s:">="===a?i[o].$gte=s:"<"===a?i[o].$lt=s:"<="===a?i[o].$lte=s:"startswith"===a?(n=new RegExp("^"+s,"i"),i[o].$regex=n):"contains"===a?(n=new RegExp(s,"i"),i[o].$regex=n):"notcontains"===a&&(n=new RegExp("^((?!"+s+").)*$","i"),i[o].$regex=n),r.push(i)})),r},Creator.isBetweenFilterOperation=function(e){var t;return"between"===e||!!(null!=(t=Creator.getBetweenTimeBuiltinValues(!0))?t[e]:void 0)},Creator.formatFiltersToDev=function(e,t,r){var o,a;if(e.length)return(null!=r?r.is_logic_or:void 0)&&(o=[],e.forEach((function(e){return o.push(e),o.push("or")})),o.pop(),e=o),a=SteedosFilters.formatFiltersToDev(e,Creator.USER_CONTEXT)},Creator.formatLogicFiltersToDev=function(e,t,r){var o;return o="["+(o=(o=t.replace(/\(\s+/gi,"(").replace(/\s+\)/gi,")").replace(/\(/g,"[").replace(/\)/g,"]").replace(/\s+/g,",").replace(/(and|or)/gi,"'$1'")).replace(/(\d)+/gi,(function(t){var o,a,n,i,s;return o=e[t-1],a=o.field,n=o.operation,s=Meteor.isClient?Creator.evaluateFormula(o.value):Creator.evaluateFormula(o.value,null,r),i=[],!0===_.isArray(s)?("="===n?_.each(s,(function(e){return i.push([a,n,e],"or")})):"<>"===n?_.each(s,(function(e){return i.push([a,n,e],"and")})):_.each(s,(function(e){return i.push([a,n,e],"or")})),"and"!==i[i.length-1]&&"or"!==i[i.length-1]||i.pop()):i=[a,n,s],JSON.stringify(i)})))+"]",Creator.eval(o)},Creator.getRelatedObjects=function(e,t,r){var o,a,n,i,s;return Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),n=[],(o=Creator.getObject(e))?(i=Creator.getObjectRelateds(o._collection_name),0===(null!=(n=_.pluck(i,"object_name"))?n.length:void 0)?n:(s=(a=Creator.getPermissions(e,t,r)).unrelated_objects,n=_.difference(n,s),_.filter(i,(function(e){var o,i,s,c;return c=e.object_name,i=n.indexOf(c)>-1,o=null!=(s=Creator.getPermissions(c,t,r))?s.allowRead:void 0,"cms_files"===c&&(o=o&&a.allowReadFiles),i&&o})))):n},Creator.getRelatedObjectNames=function(e,t,r){var o;return o=Creator.getRelatedObjects(e,t,r),_.pluck(o,"object_name")},Creator.getRelatedObjectListActions=function(e,t,r){var o;return o=Creator.getActions(e,t,r),o=_.filter(o,(function(e){return"standard_follow"!==e.name&&("standard_query"!==e.name&&("list"===e.on&&("function"==typeof e.visible?e.visible():e.visible)))}))},Creator.getActions=function(e,t,r){var o,a,n,i,s,c;if(Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),n=Creator.getObject(e))return i=Creator.getPermissions(e,t,r),a=i.disabled_actions,o=_.sortBy(_.values(n.actions),"sort"),_.has(n,"allow_customActions")&&(o=_.filter(o,(function(e){return _.include(n.allow_customActions,e.name)||_.include(_.keys(Creator.getObject("base").actions)||{},e.name)}))),_.has(n,"exclude_actions")&&(o=_.filter(o,(function(e){return!_.include(n.exclude_actions,e.name)}))),_.each(o,(function(e){if(Steedos.isMobile()&&["record","record_only"].indexOf(e.on)>-1&&"standard_edit"!==e.name)return"record_only"===e.on?e.on="record_only_more":e.on="record_more"})),Steedos.isMobile()&&["cms_files","cfs.files.filerecord"].indexOf(e)>-1&&(null!=(s=o.find((function(e){return"standard_edit"===e.name})))&&(s.on="record_more"),null!=(c=o.find((function(e){return"download"===e.name})))&&(c.on="record")),o=_.filter(o,(function(e){return _.indexOf(a,e.name)<0}))},Creator.getListViews=function(e,t,r){var o,a,n,i,s,c;if(Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),e&&(s=Creator.getObject(e)))return o=(null!=(c=Creator.getPermissions(e,t,r))?c.disabled_list_views:void 0)||[],i=[],a=Steedos.isMobile(),_.each(s.list_views,(function(e,t){return e.name=t})),n=_.sortBy(_.values(s.list_views),"sort_no"),_.each(n,(function(e){var t;if(!a||"calendar"!==e.type)return"default"===e.name||(t=_.indexOf(o,e.name)>-1||e._id&&_.indexOf(o,e._id)>-1)&&e.owner!==r?void 0:i.push(e)})),i},Creator.getFields=function(e,t,r){var o,a,n;return Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),o=Creator.getObjectFieldsName(e),n=null!=(a=Creator.getPermissions(e,t,r))?a.unreadable_fields:void 0,_.difference(o,n)},Creator.isloading=function(){return!Creator.bootstrapLoaded.get()},Creator.convertSpecialCharacter=function(e){return e.replace(/([\^\$\(\)\*\+\?\.\\\|\[\]\{\}])/g,"\\$1")},Creator.getDisabledFields=function(e){var t;return t=_.map(e,(function(e,t){return e.autoform&&e.autoform.disabled&&!e.autoform.omit&&t})),t=_.compact(t)},Creator.getHiddenFields=function(e){var t;return t=_.map(e,(function(e,t){return e.autoform&&"hidden"===e.autoform.type&&!e.autoform.omit&&t})),t=_.compact(t)},Creator.getFieldsWithNoGroup=function(e){var t;return t=_.map(e,(function(e,t){return(!e.autoform||!e.autoform.group||"-"===e.autoform.group)&&(!e.autoform||"hidden"!==e.autoform.type)&&t})),t=_.compact(t)},Creator.getSortedFieldGroupNames=function(e){var t;return t=_.map(e,(function(e){return e.autoform&&"-"!==e.autoform.group&&e.autoform.group})),t=_.compact(t),t=_.unique(t)},Creator.getFieldsForGroup=function(e,t){var r;return r=_.map(e,(function(e,r){return e.autoform&&e.autoform.group===t&&"hidden"!==e.autoform.type&&r})),r=_.compact(r)},Creator.getSystemBaseFields=function(){return["created","created_by","modified","modified_by"]},Creator.getFieldsWithoutSystemBase=function(e){return _.difference(e,Creator.getSystemBaseFields())},Creator.getFieldsWithoutOmit=function(e,t){return t=_.map(t,(function(t){var r,o;return(null==(o=(r=_.pick(e,t))[t].autoform)||!o.omit)&&t})),t=_.compact(t)},Creator.getFieldsInFirstLevel=function(e,t){return t=_.map(t,(function(t){return _.indexOf(e,t)>-1&&t})),t=_.compact(t)},Creator.getFieldsForReorder=function(e,t,r){var o,a,n,i,s,c,l,u;for(n=[],i=0,o=_.filter(t,(function(e){return!e.endsWith("_endLine")}));i-1&&(o=e[t].data_type),o):"text"},Meteor.isServer&&(Creator.getAllRelatedObjects=function(e){var t;return t=[],_.each(Creator.Objects,(function(r,o){return _.each(r.fields,(function(r,a){if("master_detail"===r.type&&r.reference_to&&r.reference_to===e)return t.push(o)}))})),Creator.getObject(e).enable_files&&t.push("cms_files"),t}),Meteor.isServer&&(Steedos.formatIndex=function(e){var t,r,o,a,n,i;return o={background:!0},(r=(null!=(a=Meteor.settings)&&null!=(n=a.datasources)&&null!=(i=n.default)?i.documentDB:void 0)||!1)&&e.length>0&&(t=e.join("."),o.name=t,t.length>52&&(o.name=t.substring(0,52))),o})},lib:{"apps.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Creator.appsByName={}},"object_recent.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};this.ObjectRecent={},ObjectRecent.insert=function(e,t,r){return Meteor.call("object_recent_viewed",e,t,Session.get("spaceId"),(function(){if(r&&_.isFunction(r))return r()}))}},"filters_transform.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r;this.FiltersTransform={},r=function(e){return["date","datetime","time","currency","number"].includes(e)?"between":["text","textarea","html"].includes(e)?"contains":"="},FiltersTransform.queryToFilters=function(e){var t,o,a,n;if(e)return n=e.query,a=e.object_name,o=Creator.getObject(a).fields,t=[],_.each(n,(function(e,a){var n,i;if(o[a]){if(i=Creator.getFieldDataType(o,a),["date","datetime","time","currency","number"].includes(i))return t.push({field:a,operation:r(i),start_value:e,value:[e,null]});if(!["text","textarea","html"].includes(i))return["boolean"].includes(i)?t.push({field:a,operation:"=",value:e}):t.push({field:a,operation:r(i),value:e});if(_.isString(e))return t.push({field:a,operation:r(i),value:e});if(_.isArray(e))return t.push({field:a,operation:"=",value:e})}else if(a=a.replace(/(_endLine)$/,""),i=Creator.getFieldDataType(o,a),o[a]&&["date","datetime","time","currency","number"].includes(i))return(n=_.find(t,(function(e){return e.field===a})))?(n.end_value=e,n.value[1]=e):t.push({field:a,operation:r(i),end_value:e,value:[null,e]})})),t}},"form_manager.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;this.FormManager={},SimpleSchema.messages({formValidate:"[value]"}),FormManager.getRelatedInitialValues=(o=this,function(e,t,r){var o,a,n,i,s;if(!_.isString(t))throw new Meteor.Error("main_record_id must be String");return o={},i="",Creator.getRelatedList(e,t).forEach((function(e){if(r===e.object_name)return i=e.related_field_name})),a="company_id",(s=Creator.getObject(r))&&i&&s.fields[i]&&s.fields[i].reference_to_field&&(a=a+","+s.fields[i].reference_to_field),(n=Creator.odata.get(e,t,a))&&i&&n[s.fields[i].reference_to_field]&&(t=n[s.fields[i].reference_to_field]),o={},i&&("objects"===e?o[i]=Creator.getObjectRecord().name:(s=Creator.getObject(r),_.isString(s.fields[i].reference_to)?s.fields[i].multiple?o[i]=[t]:o[i]=t:o[i]={o:e,ids:[t]})),!_.has(o,"company_id")&&(null!=n?n.company_id:void 0)&&(o.company_id=n.company_id),o=Object.assign({},o,FormManager.getInitialValues(r,o))}),FormManager.getInitialValues=function(e,t){var r,o,a;return o=null!=(r=Creator.getObject(e))&&null!=(a=r.form)?a.initialValues:void 0,_.isFunction(o)?o.apply({doc:t||{}}):{}},FormManager.validate=function(e,t){var r,o,a,n,i,s;if(a=null!=(o=Creator.getObject(e))&&null!=(n=o.form)?n.validate:void 0,_.isFunction(a))try{if(s=a.apply({},[null!=(i=AutoForm.getFormValues(t))?i.insertDoc:void 0]),_.isBoolean(s)&&!1===s)return!1;if(!_.isEmpty(s)&&_.isObject(s))return _.each(s,(function(e,r){return AutoForm.addStickyValidationError(t,r,"formValidate",e),toastr.error(e)})),!1}catch(c){return r=c,console.error(r),toastr.error(r.message),!1}return!0},FormManager.onSubmit=function(e,t){var r,o,a,n,i;return o=null!=(r=Creator.getObject(e))&&null!=(n=r.form)?n.onSubmit:void 0,!(_.isFunction(o)&&(a=o.apply({},[null!=(i=AutoForm.getFormValues(t))?i.insertDoc:void 0]),!_.isEmpty(a)&&_.isObject(a)))||(_.each(a,(function(e,r){return AutoForm.addStickyValidationError(t,r,"formValidate",e),toastr.error(e)})),!1)},r=function(e,t,r){var o,a,n;return o={userId:Meteor.userId(),spaceId:Session.get("spaceId"),object_name:e},_.has(r,"previousDoc")&&(o.previousDoc=r.previousDoc),t.endsWith("Delete")?(o.id=r._id,o.doc=Creator.odata.get(e,r._id),t.startsWith("error")&&(o.error=r.error)):t.startsWith("after")?(o.id=null!=(a=r.dbDoc)?a._id:void 0,o.doc=r.dbDoc):t.startsWith("before")?(t.endsWith("Insert")||(o.id=r._id),t.endsWith("Update")?o.doc=null!=(n=r.doc)?n.$set:void 0:o.doc=r.doc):t.startsWith("error")&&(o.id=r._id,o.doc=r.doc,o.error=r.error),o},FormManager.getPreviousDoc=function(e,t,r){var o,a,n,i,s;if(("update"===r||"delete"===r)&&(o="after",a="after"+r.charAt(0).toLocaleUpperCase()+_.rest(r.split("")).join(""),i=null!=(n=Creator.getObject(e))&&null!=(s=n.form)?s[a]:void 0,_.isFunction(i)))return Creator.odata.get(e,t)},FormManager.runHook=function(e,t,o,a){var n,i,s,c,l,u,d,p;if(l=""+o+t.charAt(0).toLocaleUpperCase()+_.rest(t.split("")).join(""),"view"===t||"edit"===t)return FormManager.runViewEditHook(e,l,a.schema,a.record,a.doc);if(s=a.formId,d=null!=(u=Creator.getObject(e))&&null!=(p=u.form)?p[l]:void 0,_.isFunction(d))try{if(n=r(e,l,a),c=d.apply(n),_.isBoolean(c)&&!1===c)return!1;if(s&&"before"===o&&!_.isEmpty(c)&&_.isObject(c))return _.each(c,(function(e,t){return AutoForm.addStickyValidationError(s,t,"formValidate",e),toastr.error(e)})),!1}catch(f){return i=f,console.error(i),toastr.error(i.message),!1}return!0},FormManager.runViewEditHook=function(e,t,r,o,a){var n,i,s,c,l,u,d;if(l=null!=(u=Creator.getObject(e))&&null!=(d=u.form)?d[t]:void 0,_.isFunction(l)&&(s=r.get(),c={id:(i=a||o.get())._id,userId:Meteor.userId(),spaceId:Session.get("spaceId"),object_name:e,doc:i,schema:s},!1!==(n=l.apply(c))))return r.set(s),o.set(i)}},"grid_export.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;this.ObjectGrid={},this.GridExport={},r={equals:"=",notEqual:"!=",contains:"contains",notContains:"notcontains",startsWith:"startswith",endsWith:"=",lessThan:"<",lessThanOrEqual:"<=",greaterThan:">",greaterThanOrEqual:">=",empty:"empty"},o=function(e){var t;return t=[],_.forEach(e,(function(e,o){var a;return"between"===e.type?"number"===e.filterType?t.push([o,"between",[e.numberFrom,e.numberTo]]):e.filter?t.push([o,e.type,e.filter]):t.push([o,"between",[e.dateFrom,e.dateTo]]):_.isEmpty(e.filter)?e.operator?(a=[],e.condition1&&a.push([o,r[e.condition1.type],e.condition1.filter]),a.push(e.operator.toLocaleLowerCase()),e.condition2&&a.push([o,r[e.condition2.type],e.condition2.filter]),t.push(a)):void 0:(a=[o,r[e.type],e.filter],t.push(a))})),t},ObjectGrid.getFilters=function(e,t,r,a,n){var i,s,c,l,u,d;return s=Steedos.Page.Listview.getDefaultName(e,t),l=window.gridRefs&&window.gridRefs[s]&&window.gridRefs[s].current?window.gridRefs[s].current:window.gridRef.current,u=[],i=Creator.getListViewFilters(e,t,r,a,n),d=o(l.api.getFilterModel()),c=_.compact([].concat(i).concat(d))},GridExport.excel=function(e,t,r,a,n,i,s){var c,l,u,d,p,f,m,g,h,v,b,w,S;return u=Steedos.Page.Listview.getDefaultName(e,t),f=window.gridRefs&&window.gridRefs[u]&&window.gridRefs[u].current?window.gridRefs[u].current:window.gridRef.current,v=[],_.each(f.props.columnDefs,(function(e){if(e&&e.field)return v.push(e.field)})),b=[],_.forEach(f.api.getSortModel(),(function(e){return b.push([e.colId,e.sort])})),l=Creator.getListViewFilters(e,t,r,a,n,s),S=o(f.api.getFilterModel()),p=_.compact([].concat(l).concat(S)),c=SteedosFilters.formatFiltersToODataQuery(p),d=r?i+"-"+Creator.getObject(a).label:Creator.getObject(e).label+"-"+(null!=(h=Creator.getListView(e,t))?h.label:void 0),g=[],_.map(b,(function(e){var t;return t="desc"===e[1]?e[0]+" desc":e[0],g.push(t)})),m=g.join(","),d=encodeURIComponent(d),w=r?"/api/record/export/"+a+"?$select="+v.toString()+"&filename="+d:"/api/record/export/"+e+"?$select="+v.toString()+"&filename="+d,b.length>0&&(w=w+"&$orderby="+m),c&&(w=w+"&$filter="+c),Meteor.isCordova?Steedos.cordovaDownload(encodeURI(Steedos.absoluteUrl(w)),d+".xlsx"):window.open(w)}}},client:{"listview.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n,i;n=function(e,t,r){var o,a,n;return o=null!=t?t.columns:void 0,r&&((null!=t?t.mobile_columns:void 0)?o=t.mobile_columns:(null!=(n=Creator.getObjectFirstListView(e))?n.mobile_columns:void 0)?o=n.mobile_columns:o&&(o=Creator.pickObjectMobileColumns(e,o))),o||(a=Creator.getObjectFirstListViewColumns(e,r))&&(o=a),o},o=function(e,t,r){var o,a,i,s,c,l;return s=(c=Creator.getObject(e)).NAME_FIELD_KEY,"organizations"===c.name&&(s="name"),o=[s],(i=Creator.getCollection("object_listviews").findOne(t))?o=n(e,i,r):c.list_views&&(l=c.list_views[t],o=n(e,l,r)),o=o.map((function(e){var t,r;return t=_.isObject(e)?e.field:e,(null!=(r=c.fields[t])?r.type:void 0)?t:void 0})),Creator.isCommonSpace(Session.get("spaceId"))&&o.indexOf("space")<0&&o.push("space"),"cms_files"===e&&o.push("parent"),o=_.compact(o),a=Creator.getObjectFieldsName(e),_.intersection(o,a)},i=function(e,t,r,o){var a;return r?(a=Creator.getObject(e).fields,o&&(t=t.filter((function(e){var t,o;return"master_detail"!==(null!=(o=a[e])?o.type:void 0)||(!!a[e].multiple||(a[e].reference_to?(t=a[e].reference_to,_.isFunction(t)&&(t=t())):t=a[e].optionsFunction({}).getProperty("value"),!!_.isArray(t)||t!==r))}))),t):t},r=function(e,t){var r,o;return o=Creator.getObject(e).fields,r=[],_.each(t,(function(e){var t;if(null!=(t=o[e])?t.depend_on:void 0)return r=_.union(o[e].depend_on)})),r},a=function(e,t,r){var o,a;return a=_.intersection(["owner","company_id","company_ids","locked"],_.keys(e.fields)),!r&&e.enable_tree&&(a.push("parent"),a.push("children")),(o=Creator.getObjectDefaultExtraColumns(e.name))&&(a=_.union(a,o)),a},Creator.unionSelectColumnsWithExtraAndDepandOn=function(e,t,o,n){var i,s;return i=t.name,s=a(t,o,n),e=_.union(e,s),e=_.union(e,r(i,e))},Creator.getListViewFilters=function(e,t,r,o,a,n){var i,s,c,l,u,d,p,f,m,g;if(!e)return null;if(c=Creator.getObject(e),r)l=Creator.getODataRelatedFilter(e,o,a,t,n);else{if(d=Session.get("filter_logic"),p=Session.get("filter_scope"),u=Session.get("filter_items"),s=c.fields,u&&u.length>0&&window.lodash.isArray(u[0]))return l=u,(g=Creator.getStandardQuery(e,Session.get("standard_query")))&&g.length&&(l=l?[l,"and",g]:g),(m=Session.get("grid_sidebar_filters"))&&m.length&&(l=l?[l,"and",m]:m),l||(l=null),l;i=[],_.forEach(u,(function(t){var r,o,a,n,c,l,u,d,p,f,m;if(void 0!==t.value)if(r=s[null!=t?t.field:void 0],o=Creator.getFieldDataType(s,null!=t?t.field:void 0),["text","textarea","html","code"].includes(o)){if(_.isString(t.value)&&(m=t.value.trim().split(" "),l=[],m.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),l.push([t.field,t.operation,e])})),l.length>0))return c=!1,["<>","notcontains"].includes(t.operation)&&(c=!1),i.push(Creator.formatFiltersToDev(l,e,{is_logic_or:c}))}else{if(!["lookup","master_detail"].includes(o))return i.push(t);if(a=null!=r?r.reference_to:void 0,_.isFunction(a)&&(a=a()),!_.isArray(a))return i.push(t);if((null!=(u=t.value)?u.ids:void 0)&&i.push({field:t.field+".ids",operation:t.operation,value:null!=(d=t.value)?d.ids:void 0}),null!=(p=t.value)?p.o:void 0)return n=Creator.getObject(null!=(f=t.value)?f.o:void 0),i.push({field:t.field+".o",operation:t.operation,value:n._collection_name})}})),i.length>0&&(f={filter_logic:d,filter_scope:p,filters:i}),l=Creator.getODataFilter(t,e,f),(g=Creator.getStandardQuery(e,Session.get("standard_query")))&&g.length&&(l=l?[l,"and",g]:g),r||(m=Session.get("grid_sidebar_filters"))&&m.length&&(l=l?[l,"and",m]:m)}return l||(l=null),l},Creator.getODataEndpointUrl=function(e,t,r,o){var a,n;return r?(a=Creator.formatObjectName(o),n=Creator.getListViewIsRecent(e,t)?"/api/v4/"+a+"/recent":"/api/v4/"+a):(a=Creator.formatObjectName(e),n=Creator.getListViewIsRecent(e,t)?"/api/v4/"+a+"/recent":"/api/v4/"+a),Steedos.absoluteUrl(n)},Creator.getListviewColumns=function(e,t,r,a,n,s){var c,l;return c=e.name,l=Tracker.nonreactive((function(){return o(c,a,s)})),n&&n.customRelatedListObject&&(n.columns&&(l=n.columns),s&&n.mobile_columns&&(l=n.mobile_columns),l&&(l=l.map((function(e){return _.isObject(e)?e.field:_.isString(e)?e:void 0})),l=_.uniq(_.compact(l)))),l=i(c,l,t,r)}},views:{"_helpers.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Creator.helpers={object_name:function(){return Session.get("object_name")},object:function(){return Creator.getObject(Session.get("object_name"))},object_listviews:function(){return Creator.getObject("object_listviews")},objectLabel:function(e){return Creator.getObject(e).label},getOperationLabel:function(e){switch(e){case"=":return t("creator_filter_operation_equal");case"<>":return t("creator_filter_operation_unequal");case"<":return t("creator_filter_operation_less_than");case">":return t("creator_filter_operation_greater_than");case"<=":return t("creator_filter_operation_less_or_equal");case">=":return t("creator_filter_operation_greater_or_equal");case"contains":return t("creator_filter_operation_contains");case"notcontains":return t("creator_filter_operation_does_not_contain");case"startswith":return t("creator_filter_operation_starts_with");case"between":return t("creator_filter_operation_between")}},isMobile:function(){return Steedos.isMobile()}}},"template.page_template.js":function e(){Template.__checkName("page_template"),Template.page_template=new Template("Template.page_template",(function(){var e=this;return HTML.Raw('
')}))},"page_template.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_template.onRendered((function(){var e,t;return t=this,e=Session.get("app_id"),this.containerList=[],this.autorun((function(){var r;if(r=Steedos.Page.App.render(t,Session.get("pageApiName"),e))return t.containerList.push(r)}))})),Template.page_template.onDestroyed((function(){return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_object.js":function e(){Template.__checkName("page_object"),Template.page_object=new Template("Template.page_object",(function(){var e=this;return HTML.Raw('
')}))},"page_object.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_object.onRendered((function(){var e;return e=this,Steedos.Page.Object.Template.onRendered.apply(this)})),Template.page_object.onDestroyed((function(){var e;return e=this,Steedos.Page.Object.Template.onDestroyed.apply(this)}))},"template.page_record_view.js":function e(){Template.__checkName("page_record_view"),Template.page_record_view=new Template("Template.page_record_view",(function(){var e=this;return HTML.Raw('
')}))},"page_record_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_record_view.onRendered((function(){var e,t,r;return r=this,e=Session.get("object_name"),t=Session.get("record_id"),this.containerList=[],this.pageName=null,this.autorun((function(){var o,a,n,i,s,c,l,u,d,p;if(d=!0,(l=r.data.regions()).objectName!==(null!=(i=this.lastRegions)?i.objectName:void 0)&&(d=!1),this.lastRegions=l,d&&r.pageName)try{if(SteedosUI.refs[r.pageName])return(p={objectName:e}).recordId=Tracker.nonreactive((function(){return Session.get("record_id")})),n=(null!=(s=SteedosUI.refs[r.pageName])&&null!=(c=s.__$schema)?c.data:void 0)||{},SteedosUI.refs[r.pageName].updateProps({data:window._.defaultsDeep(p,n)})}catch(f){a=f,console.error(r.pageName+": "+a)}if(!d&&r.pageName&&SteedosUI.refs[r.pageName])try{SteedosUI.refs[r.pageName].unmount()}catch(f){a=f,console.error(r.pageName+": "+a)}if(r.data.regions&&(l=Tracker.nonreactive(r.data.regions),this.lastRegions=l,l&&l.page&&l.page.schema&&(u=l.page.schema,_.isString(u)&&(u=JSON.parse(u)),r.pageName=u.name)),e=Tracker.nonreactive((function(){return Session.get("object_name")})),t=Tracker.nonreactive((function(){return Session.get("record_id")})),o=Steedos.Page.Record.render(r,e,t))return r.containerList.push(o)}))})),Template.page_record_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_list_view.js":function e(){Template.__checkName("page_list_view"),Template.page_list_view=new Template("Template.page_list_view",(function(){var e=this;return HTML.Raw('
')}))},"page_list_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_list_view.onRendered((function(){var e,t;return t=this,e=Session.get("object_name"),this.containerList=[],this.pageName=null,this.autorun((function(){var r,o,a,n;if(t.pageName)try{SteedosUI.refs[t.pageName].unmount()}catch(i){o=i,console.error(t.pageName+": "+o)}if(t.data.regions&&(a=t.data.regions())&&a.page&&a.page.schema&&(n=a.page.schema,_.isString(n)&&(n=JSON.parse(n)),t.pageName=n.name),r=Steedos.Page.Listview.render(t,e))return t.containerList.push(r)}))})),Template.page_list_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_related_list_view.js":function e(){Template.__checkName("page_related_list_view"),Template.page_related_list_view=new Template("Template.page_related_list_view",(function(){var e=this;return HTML.Raw('')}))},"page_related_list_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_related_list_view.onRendered((function(){var e,t,r;return r=this,e=Session.get("object_name"),t=Session.get("record_id"),this.containerList=[],this.pageName=null,this.autorun((function(){var o,a,n,i;if(r.pageName)try{SteedosUI.refs[r.pageName].unmount()}catch(s){a=s,console.error(r.pageName+": "+a)}if(r.data.regions&&(n=r.data.regions())&&n.page&&n.page.schema&&(i=n.page.schema,_.isString(i)&&(i=JSON.parse(i)),r.pageName=i.name),o=Steedos.Page.RelatedListview.render(r,e,t))return r.containerList.push(o)}))})),Template.page_related_list_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.app_home.js":function e(){Template.__checkName("creator_app_home"),Template.creator_app_home=new Template("Template.creator_app_home",(function(){var e=this;return""}))},"app_home.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r;r=function(e){var t,r,o,a,n;return(null!=(t=Creator.getApp(e))?t.isExternalUrl:void 0)?/^http(s?):\/\//.test(t.path)?t.blank?window.open(t.path):window.location.href=t.path:FlowRouter.go(t.path):(a=Creator.getAppMenus(e),(r=_.first(a))?"url"===(o=Object.assign({},r,{target:!1})).type&&o.is_use_iframe?FlowRouter.go(o.path):(n=Creator.getAppMenuUrl(o),FlowRouter.go(n)):FlowRouter.go("/app/"+e))},Template.creator_app_home.onRendered((function(){return this.autorun((function(){var e,t,o;if(o=Creator.bootstrapLoaded.get(),_.has(FlowRouter.current().params,"app_id")){if(e=Session.get("app_id"),o&&e)return r(e)}else if(t=Steedos.getFirstApp(),o&&t)return r(t.code||t.id)}))}))},"template.app_iframe.js":function e(){Template.__checkName("creator_app_iframe"),Template.creator_app_iframe=new Template("Template.creator_app_iframe",(function(){var e=this;return Blaze.If((function(){return Spacebars.call(e.lookup("subsReady"))}),(function(){return["\n\t\t",HTML.IFRAME({id:"app_iframe",src:function(){return Spacebars.mustache(e.lookup("url"))},style:"width: 100%; height: 100%;"}),"\n\t"]}))}))},"app_iframe.coffee":function module(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var share=__coffeescriptShare;Template.creator_app_iframe.helpers({subsReady:function(){return Steedos.subsBootstrap.ready()},url:function(){var e,t;return t=Session.get("app_id"),(e=Creator.getApp(t))&&!e.on_click&&e.url?Creator.getUrlWithToken(e.url,e):""}}),Template.creator_app_iframe.events,Template.creator_app_iframe.onCreated((function(){})),Template.creator_app_iframe.onRendered((function(){var app,app_id,e,evalFunString,iframe;if(Steedos.forbidNodeContextmenu(window,"#app_iframe"),app_id=Session.get("app_id"),app=Creator.getApp(app_id),iframe=$("#app_iframe"),app&&app.on_click){evalFunString="(function(){"+app.on_click+"})()";try{return eval(evalFunString)}catch(error){return e=error,console.error("catch some error when eval the on_click script for app link:"),console.error(e.message+"\r\n"+e.stack)}}})),Template.creator_app_iframe.onDestroyed((function(){}))},"template.page_iframe.js":function e(){Template.__checkName("page_iframe"),Template.page_iframe=new Template("Template.page_iframe",(function(){var e=this;return HTML.IFRAME({name:"pageIframe",src:function(){return Spacebars.mustache(e.lookup("url"))},style:function(){return Spacebars.mustache(e.lookup("style"))},class:function(){return Spacebars.mustache(e.lookup("className"))}})}))},"page_iframe.js":function e(){var t=function(e){const{data:t}=e;"nav.click"===t.type&&FlowRouter.current().params.tab_id==t.data.id&&$("[name='pageIframe']").attr("src",$("[name='pageIframe']").attr("src"))};Template.page_iframe.helpers({url:()=>{if(Template.instance().data.regions)return(regions=Template.instance().data.regions()).queryParams.url},className:()=>{if(Template.instance().data.regions)return(regions=Template.instance().data.regions()).queryParams.className||""},style:()=>Template.instance().data.regions&&(regions=Template.instance().data.regions()).queryParams.style||"width: 100%; height: 100%;"}),Template.page_iframe.onCreated((function(){window.addEventListener("message",t)})),Template.page_iframe.onDestroyed((function(){window.removeEventListener("message",t)})),Template.page_iframe.onRendered((function(){window.Steedos.setDocumentTitle({pageName:null,tabName:null})}))},"template.initiate_approval.js":function e(){Template.__checkName("initiate_approval"),Template.initiate_approval=new Template("Template.initiate_approval",(function(){var e=this;return HTML.DIV({class:"modal fade creator-modal",id:"initiate_approval"},"\n\t\t",HTML.DIV({class:"modal-dialog slds-modal slds-fade-in-open"},"\n\t\t\t",HTML.DIV({class:"slds-modal__container"},"\n\t\t\t\t",HTML.HEADER({class:"slds-modal__header"},"\n\t\t\t\t\t",HTML.DIV({"data-dismiss":"modal"},"\n\t\t\t\t\t\t",Blaze._TemplateWith((function(){return{className:Spacebars.call("slds-modal__close slds-button__icon"),iconSize:Spacebars.call("large"),inverse:Spacebars.call(!0),iconCategory:Spacebars.call("utility"),iconName:Spacebars.call("close"),title:Spacebars.call(Spacebars.dataMustache(e.lookup("_"),"close")),variant:Spacebars.call("icon")}}),(function(){return Spacebars.include(e.lookupTemplate("steedos_button"))})),"\n\t\t\t\t\t"),"\n\t\t\t\t\t",HTML.Raw('

\n\t\t\t\t\t\t选择流程发起审批\n\t\t\t\t\t

'),"\n\t\t\t\t"),"\n\n\t\t\t\t",HTML.DIV({class:"slds-modal__content slds-p-around_medium",style:"font-size: 17px;"},"\n\t\t\t\t\t",Blaze.Each((function(){return Spacebars.call(e.lookup("flows"))}),(function(){return["\n\t\t\t\t\t",HTML.DIV({class:"weui_cells_weui_cells_access"},"\n\t\t\t\t\t\t",HTML.A({class:"weui_cell","data-flow":function(){return Spacebars.mustache(e.lookup("flow_id"))}},"\n\t\t\t\t\t\t\t",HTML.I({class:"ion ion-ios-compose-outline"}),HTML.CharRef({html:" ",str:" "}),HTML.CharRef({html:" ",str:" "}),Blaze.View("lookup:flow_name",(function(){return Spacebars.mustache(e.lookup("flow_name"))})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t\t"]})),"\n\n\t\t\t\t"),"\n\n\t\t\t"),"\n\t\t"),"\n\t")}))},"initiate_approval.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.initiate_approval.helpers({flows:function(){return _.where(Creator.object_workflows,{object_name:this.object_name,can_add:!0})}}),Template.initiate_approval.events({"click .weui_cell":function(e,t){var r,o,a,n,i,s,c;o=e.currentTarget.dataset.flow,a=t.data.object_name,n=t.data.record_id,i=[{o:a,ids:[n]}],(s={}).methodOverride="POST",s["X-User-Id"]=Meteor.userId(),s["X-Auth-Token"]=Accounts._storedLoginToken(),c=Steedos.absoluteUrl()+"api/object/workflow/drafts?"+$.param(s),r={Instances:[{flow:o,applicant:Meteor.userId(),space:Session.get("spaceId"),record_ids:i}]},r=JSON.stringify(r),$(document.body).addClass("loading"),$.ajax({url:c,type:"POST",async:!0,data:r,dataType:"json",processData:!1,contentType:"application/json",success:function(e,r){var o;$(document.body).removeClass("loading"),e.errors?e.errors.forEach((function(e){toastr.error(e.errorMessage)})):(o=e.inserts[0],Steedos.openWindow(Steedos.absoluteUrl("/app/"+FlowRouter.current().params.app_id+"/instances/view/"+o._id+"?display="+FlowRouter.current().queryParams.display+"&side_object=instances&side_listview_id=draft")),Modal.hide(t),SteedosUI.reloadRecord(a,n),FlowRouter.reload())},error:function(e,t,r){$(document.body).removeClass("loading"),toastr.error(t)}})}})},"template.amis_action.js":function e(){Template.__checkName("amis_action"),Template.amis_action=new Template("Template.amis_action",(function(){var e=this;return HTML.LI({class:function(){return["steedos-amis-button steedos-button-",Spacebars.mustache(e.lookup("objectName")),"-",Spacebars.mustache(e.lookup("name"))," ",Spacebars.mustache(e.lookup("buttonClassName"))]}})}))},"amis_action.js":function e(){const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;(e=e||"")&&"#"===e[0]?e=t.pathname+t.search+e:e&&"?"===e[0]&&(e=t.pathname+e);const r=e.indexOf("?"),o=e.indexOf("#");let a=~r?e.substring(0,r):~o?e.substring(0,o):e,n=~r?e.substring(r,~o?o:void 0):"",i=~o?e.substring(o):t.hash;if(a){if("/"!=a[0]&&!/^https?\:\/\//.test(a)){let e;const r=t.pathname.split("/");let o;for(r.pop();o=/^\.\.?\//.exec(a);)"../"===o[0]&&r.pop(),a=a.substring(o[0].length);a=r.concat(a).join("/")}}else a=t.pathname;return a+n+i},r=()=>({theme:"antd",getModalContainer:e=>{let t=document.querySelector("#amisModalContainer");return t||((t=document.createElement("div")).className="amis-scope",t.style.height="0px",t.id="amisModalContainer",document.body.appendChild(t)),t},notify:(e,t)=>{var r,o;(null===(r=t.props)||void 0===r?void 0:r.schema.tpl)?SteedosUI.message[e](null===(o=t.props)||void 0===o?void 0:o.schema.tpl):"string"==typeof t?SteedosUI.message[e](t):console.warn("notify",e,t)},confirm:e=>new Promise((t,r)=>SteedosUI.Modal.confirm({title:e,onOk:()=>{t(!0)},okText:"确认",cancelText:"取消"})),jumpTo:(e,r)=>{if("goBack"===e)return window.history.back();e=t(e),r&&"url"===r.actionType?!1===r.blank?FlowRouter.go(e):window.open(e):r&&e&&r.target?window.open(e,r.target):/^https?:\/\//.test(e)?window.location.replace(e):FlowRouter.go(e)}});Template.amis_action.helpers({objectName:()=>{var e=Template.instance().data;return e.button.object||e.button.object_name},name:()=>{var e;return Template.instance().data.button.name},buttonClassName:()=>{var e;return Template.instance().data.buttonClassName}}),Template.amis_action.onRendered(()=>{var e=Template.instance().data,t=e.button,o=e.buttonClassName,a=e.inMore,n=e.data,i=e.env,s=".steedos-button-"+(t.object||e.button.object_name)+"-"+t.name;const c=()=>{var e=Creator.USER_CONTEXT?Creator.USER_CONTEXT.user.language:null;return e?e="cn"===(e="zh"===(e="en"===(e=e.replace("_","-"))?"en-US":e)?"zh-CN":e)?"zh-CN":e:"zh-CN"};Promise.all([waitForThing(window,"amis")]).then(()=>{var e=amisRequire("amis/embed"),o=t.amis_schema?_.isString(t.amis_schema)?JSON.parse(t.amis_schema):t.amis_schema:{type:"service",bodyClassName:"p-0",body:[{type:"button",label:t.label}],regions:["body"]};const a=__meteor_runtime_config__.ROOT_URL,l=lodash.defaultsDeep({},{data:n},{data:{app_id:n.appId,object_name:n.objectName,record_id:n.recordId,formFactor:Steedos.isMobile()?"SMALL":"LARGE",context:{rootUrl:Meteor.isCordova?a.endsWith("/")?a.substr(0,a.length-1):a:"",tenantId:Creator.USER_CONTEXT.spaceId,userId:Creator.USER_CONTEXT.userId,authToken:Creator.USER_CONTEXT.user.authToken,user:Creator.USER_CONTEXT.user},global:{userId:Creator.USER_CONTEXT.userId,spaceId:Creator.USER_CONTEXT.spaceId,user:Creator.USER_CONTEXT.user,now:new Date},scopeId:o.name||o.id,$scopeId:o.name||o.id}});return o=lodash.defaultsDeep(l,o),e.embed(s,o,{locale:c()},Object.assign(r(),i))})})}},layout:{"template.layout.js":function e(){Template.__checkName("creatorLayout"),Template.creatorLayout=new Template("Template.creatorLayout",(function(){var e=this;return Blaze.If((function(){return Spacebars.call(e.lookup("isloading"))}),(function(){return"\n\t"}),(function(){return["\n\t\t",HTML.DIV({class:"steedos skin-blue-light creator h-full flex flex-col relative overflow-hidden"},"\n\t\t\t\n\n\t\t\t",HTML.HEADER({id:"header",class:"steedos-global-header-root flex-none"}),"\n\n\t\t\t\t\n\t\t\t",HTML.DIV({id:"main",class:function(){return["creator-content-wrapper ",Blaze.If((function(){return Spacebars.call(e.lookup("split"))}),(function(){return"split"}))]}},"\n\n\n\n\t\t\t\t",HTML.Comment(' {{#if split}}\n\t\t\t\t\t
\n\t\t\t\t\t\t{{> Template.dynamic template="creatorSidebar"}}\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{{> Template.dynamic template=main}}\n\t\t\t\t\t
\n\t\t\t\t{{else}} '),"\n\t\t\t\t\t",Blaze._TemplateWith((function(){return{template:Spacebars.call(e.lookup("main"))}}),(function(){return Spacebars.include((function(){return Spacebars.call(Template.__dynamic)}))})),"\n\t\t\t\t",HTML.Comment(" {{/if}} "),"\n\t\t\t"),"\n\t\t\t",HTML.FOOTER({id:"footer",class:"steedos-global-footer-root flex-none"}),"\n\t\t"),"\n",HTML.Comment(' \n\t\t
\n\t\t\t{{> status}}\n\t\t
'),"\n\t\t"]}))}))},"layout.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;Template.creatorLayout.helpers(Creator.helpers),Template.creatorLayout.helpers({isloading:function(){return Creator.isloading()},collection:function(){return Session.get("action_collection")},fields:function(){return Session.get("action_fields")},collectionName:function(){return Session.get("action_collection_name")},doc:function(){return Session.get("action_record_id")},saveAndInsert:function(){var e,t,r,o;return!!(e=Session.get("action_save_and_insert"))&&(r=(t=Session.get("action_collection")).replace(/Creator.Collections./,""),null!=(o=Creator.getPermissions(r))?o.allowCreate:void 0)},split:function(){var e,t,r;return!(!(e=Creator.getApp())||"admin"!==e._id)&&(r=/\/app\/\w+\/search\//,t=Session.get("router-path"),!r.test(t))},object_name:function(){return Session.get("object_name")},recordId:function(){return Session.get("recordId")},title:function(){return"编辑"},triggerLabel:function(){return"编辑"},onAddFinish:function(){return function(e){var t,r,o,a,n;return a=e[0],n="/app/"+(t=Session.get("app_id"))+"/"+(r=Session.get("object_name"))+"/view/"+(o=a._id),FlowRouter.go(n),!0}},onEditFinish:function(){return function(){return setTimeout((function(){return FlowRouter.reload()}),1),!0}}}),Template.creatorLayout.onRendered((function(){var e;return e=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),this.autorun((function(){return Steedos.Page.Header.render(Session.get("app_id"),e)})),this.autorun((function(){return Steedos.Page.Footer.render(Session.get("app_id"),e)})),this.autorun((function(){var e,t;if(t=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),window.SteedosUI&&(e=SteedosUI.refs.globalHeader))return Meteor.setTimeout((function(){var t;try{return e.updateProps({location:FlowRouter.current()},(function(){return console.log("amisScope.updateProps callback.......")}))}catch(r){t=r}}),100)})),this.autorun((function(){var e,t;if(t=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),window.SteedosUI&&(e=SteedosUI.refs.globalFooter))return Meteor.setTimeout((function(){var t;try{return e.updateProps({location:FlowRouter.current()},(function(){return console.log("amisScope.updateProps callback.......")}))}catch(r){t=r}}),100)}))})),r=function(){var e;return"calendar"===(null!=(e=Creator.getListView(Session.get("object_name",Session.get("list_view_id"))))?e.type:void 0)},AutoForm.hooks({creatorAddForm:{onSuccess:function(e,t){var o,a,n,i;if($("#afModal").modal("hide"),"/app/:app_id/:object_name/calendar/"!==FlowRouter._current.route.path&&!r())return"post"===t.type?(i="/app/"+(o=Session.get("app_id"))+"/"+(a=t.object_name)+"/view/"+(n=t._id),FlowRouter.go(i)):void 0}}},!1),AutoForm.hooks({creatorEditForm:{onSuccess:function(e,t){var o,a,n,i,s,c;if($("#afModal").modal("hide"),!r())return"post"===t.type&&(c="/app/"+(o=Session.get("app_id"))+"/"+(a=t.object_name)+"/view/"+(s=t._id),FlowRouter.go(c)),this.docId&&t.object_name?(i=Creator.getObjectUrl(t.object_name,this.docId),n=Creator.getObjectRecordName(this.updateDoc.$set,t.object_name),Creator.updateTempNavLabel(t.object_name,i,n)):void 0}}},!1),AutoForm.hooks({creatorCellEditForm:{onSuccess:function(e,t){var r,o;if($("#afModal").modal("hide"),this.docId&&t.object_name)return o=Creator.getObjectUrl(t.object_name,this.docId),r=Creator.getObjectRecordName(this.updateDoc.$set,t.object_name),Creator.updateTempNavLabel(t.object_name,o,r)}}},!1),o=function(e,t){return FlowRouter.current().route.path.endsWith("/:record_id")?FlowRouter.reload():window.refreshGrid()},AutoForm.hooks({creatorAddRelatedForm:{onSuccess:o}},!1)},"template.loading.js":function e(){Template.__checkName("creatorLoading"),Template.creatorLoading=new Template("Template.creatorLoading",(function(){var e=this;return HTML.Raw('
\n
\n Loading\n
\n
\n
\n
')}))},"template.empty_layout.js":function e(){Template.__checkName("empty_layout"),Template.empty_layout=new Template("Template.empty_layout",(function(){var e=this;return Blaze._TemplateWith((function(){return{template:Spacebars.call(e.lookup("main"))}}),(function(){return Spacebars.include((function(){return Spacebars.call(Template.__dynamic)}))}))}))}},mobile:{"template.admin.js":function e(){Template.__checkName("adminMenu"),Template.adminMenu=new Template("Template.adminMenu",(function(){var e=this;return HTML.DIV({class:"admin-menu mobile-template-container",id:"admin_menu"},"\n\n ",HTML.DIV({class:"admin-menu-content mobile-template-content"},"\n\t\t\t",HTML.DIV({class:"weui-panel weui-panel_access user-info"},"\n\t\t\t\t",HTML.A({class:"weui-media-box weui-media-box_appmsg"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box__hd",style:function(){return["background: url(",Spacebars.mustache(e.lookup("avatarURL")),")"]}},"\n\t\t\t\t\t\t",HTML.Raw('\x3c!-- --\x3e'),"\n\t\t\t\t\t"),"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box__bd"},"\n\t\t\t\t\t\t",HTML.H4({class:"weui-media-box__title"},Blaze.View("lookup:name",(function(){return Spacebars.mustache(e.lookup("name"))}))),"\n\t\t\t\t\t\t",HTML.P({class:"weui-media-box__desc"},"\n\t\t\t\t\t\t\t",Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Company")})),":",Blaze.View("lookup:spaceName",(function(){return Spacebars.mustache(e.lookup("spaceName"))})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n\n\t\t\t",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access btn-switch-space"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Switch Company")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",HTML.SPAN({class:"space-name"},Blaze.View("lookup:spaceName",(function(){return Spacebars.mustache(e.lookup("spaceName"))}))),"\n\t\t\t\t\t\t\t\t",HTML.Raw(''),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\n\n\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access btn-change-password"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Change Password")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",HTML.Raw(''),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t"),"\n\t\t\t"),"\n\n ",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access log-out steedos-logout"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Logout")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n "),"\n ")}))},"admin.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.adminMenu.helpers({avatarURL:function(e,t,r,o){var a,n;return n=Meteor.userId(),(e=null!=(a=Creator.getCollection("users").findOne({_id:n}))?a.avatar:void 0)?Steedos.absoluteUrl("avatar/"+Meteor.userId()+"?avatar="+e):Creator.getRelativeUrl("/images/default-avatar.png")},name:function(){var e;return null!=(e=Creator.getCollection("users").findOne())?e.name:void 0},logoutUrL:function(){return Creator.getRelativeUrl("/accounts/a/#/logout")},spaceName:function(){var e;return Session.get("spaceId")&&(e=db.spaces.findOne(Session.get("spaceId")))?e.name:t("none_space_selected_title")}}),Template.adminMenu.events({"click .steedos-logout":function(){return Steedos.logout()},"click .admin-menu-back":function(e,t){var r;return r=urlQuery[urlQuery.length-2],urlQuery.pop(),t.$("#admin_menu").animateCss("fadeOutRight",(function(){return Blaze.remove(t.view),r?FlowRouter.go(r):FlowRouter.go("/app")}))},"click .btn-switch-space":function(e,t){return FlowRouter.go("/user_settings/switchspace")},"click .btn-change-password":function(e,t){return Modal.show("reset_password_modal")},"click .btn-change-avatar":function(e,t){return t.$("#mobile-avator-upload").click()},"change #mobile-avator-upload":function(e,r){var o;if(o=e.target.files[0])return $("body").addClass("loading"),db.avatars.insert(o,(function(e,r){return e?(console.error(e),toastr.error(t(e.reason)),$(document.body).removeClass("loading")):setTimeout((function(){return Meteor.call("updateUserAvatar",r._id,(function(e,r){return(null!=r?r.error:void 0)?($(document.body).removeClass("loading"),toastr.error(t(r.message))):$(document.body).removeClass("loading")}))}),3e3)}))}})},"template.switch_space.js":function e(){Template.__checkName("switchSpace"),Template.switchSpace=new Template("Template.switchSpace",(function(){var e=this;return HTML.DIV({class:"switch-space mobile-template-container",id:"switch_space"},"\n\t\t\n\t\t",HTML.DIV({class:"switch-space-content mobile-template-content"},"\n\t\t\t",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",Blaze.Each((function(){return Spacebars.call(e.lookup("spaces"))}),(function(){return["\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access switchSpace"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:name",(function(){return Spacebars.mustache(e.lookup("name"))}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",Blaze.If((function(){return Spacebars.dataMustache(e.lookup("current_space"),e.lookup("_id"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",HTML.SPAN({class:"weui-icon-success-no-circle"}),"\n\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n\t\t"),"\n\t")}))},"switch_space.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.switchSpace.helpers({spaces:function(){return db.spaces.find()},current_space:function(e){return e===Session.get("spaceId")}}),Template.switchSpace.events({"click .switchSpace":function(e,t){return Steedos.setSpaceId(this._id),FlowRouter.go("/app")},"click .switch-space-back":function(e,t){var r;return r=urlQuery[urlQuery.length-2],urlQuery.pop(),t.$("#switch_space").animateCss("fadeOutRight",(function(){return Blaze.remove(t.view),r?FlowRouter.go(r):FlowRouter.go("/app")}))}})}},"core.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},o;Creator.Pages={},o=["owner","company_id","company_ids","locked"],Steedos.addPage=function(e,t){if(e)return Creator.Pages[e]=t},Creator.getLayout=function(e){return e||(e=Session.get("app_id")),"steedos"===e?"steedosLayout":"creatorLayout"},Creator.createObject=function(e,t){var r,o;return o=Creator.getObject(e),r="Creator.Collections."+e,Session.set("action_collection",r),Session.set("action_save_and_insert",!0),Session.set("action_collection_name",o.label),Session.set("action_object_name",e),Session.set("action_fields",void 0),Session.set("cmDoc",t),Meteor.defer((function(){return $(".creator-add").click()}))},Meteor.isClient&&(Creator.TabularSelectedIds={},Meteor.autorun((function(){var e,t;if(e=Session.get("list_view_id"),t=Session.get("object_name"))return Creator.TabularSelectedIds[t]=[]})),Creator.remainCheckboxState=function(e){var t,r,o,a,n,i,s;if((t=e.find(".select-all")).length&&(a=(o=null!=(n=t[0])?n.dataset:void 0).objectName,i=Creator.TabularSelectedIds[a]))return(r=e.find(".select-one")).each((function(e,t){var r;return r=i.indexOf(t.dataset.id)>-1,$(t).prop("checked",r)})),(s=i.length)>0&&r.length!==s?t.prop("indeterminate",!0):(t.prop("indeterminate",!1),0===s?t.prop("checked",!1):s===r.length?t.prop("checked",!0):void 0)},Creator.isListViewFilterEditable=function(e){return!e.shared||e.shared&&e.owner===Steedos.userId()},Creator.getODataFilter=function(e,t,r){var o,a,n,i,s,c,l,u,d,p,f,m,g;if(g=Meteor.userId(),m=Session.get("spaceId"),a=Creator.Collections.object_listviews.findOne(e))(l=Creator.isListViewFilterEditable(a))||((o={}).filter_scope=a.filter_scope,o.filters=a.filters);else if(o={},m&&g){if(!(u=Creator.getListView(t,e)))return["_id","=",-1];o.filter_scope=u.filter_scope,o.filters=u.filters}if(Creator.isCloudAdminSpace(m)&&_.include(["users","space_users","spaces"],t)&&delete o.filters,o&&(r?(o.filter_scope&&(r.filter_scope=o.filter_scope),_.isFunction(r.filters)||(null!=(d=r.filters)?d.length:void 0)?(_.isFunction(o.filters)||(null!=(p=o.filters)?p.length:void 0))&&(r.filters=[[r.filters,"and",o.filters]]):r.filters=o.filters):r=o),r||(r={}),n=r.filter_logic,i=r.filter_scope,s=r.filters,f=[],_.isFunction(s)&&(s=s()),a?n?(c=Creator.formatLogicFiltersToDev(s,n),f.length?f.push("and",c):f.push(c)):s&&s.length>0&&(f.length>0&&f.push("and"),(s=Creator.formatFiltersToDev(s,t))&&s.length>0&&(s=[s]),_.each(s,(function(e){return f.push(e)}))):m&&g&&("users"!==t||Creator.isCloudAdminSpace(m)||f.push(["_id","=",g]),s&&(s=Creator.formatFiltersToDev(s,t))&&s.length>0&&(s=[s],f.length>0&&f.push("and"),_.each(s,(function(e){if("spaces"!==t||e.length>0&&"_id"!==e[0])return f.push(e)})))),"mine"===i&&(f.length>0&&f.push("and"),f.push(["owner","=",g])),0!==f.length)return f},Creator.getODataRelatedFilter=function(e,t,r,o,a){var n,i,s,c,l,u,d,p,f,m,g,h,v,b,w,S,C;if(r&&(S=Steedos.spaceId(),C=Meteor.userId(),v=a?[a]:Creator.getRelatedList(e,r),h="",u="",w=[],n=function(e){return w.length>0&&w.push("and"),w.push(e)},_.each(v,(function(e){if(e.object_name===t)return e.filtersFunction?u=e.filtersFunction:h=e.related_field_name})),h||u)){if(h=h.replace(/\./g,"/"),o&&(i=Creator.getListView(t,o))){if(s=i.filter_logic,c=i.filter_scope,l=i.filters,u)return l=u(Creator.odata.get(e,r));s?(d=Creator.formatLogicFiltersToDev(l,s),n(d)):l&&l.length>0&&(l=_.map(l,(function(e){return _.isObject(e)&&!_.isArray(e)?Meteor.isClient&&_.isString(null!=e?e._value:void 0)?[e.field,e.operation,Creator.eval("("+e._value+")")()]:[e.field,e.operation,e.value]:e})),(l=Creator.formatFiltersToDev(l,t))&&l.length>0&&(l=[l]),_.each(l,(function(e){return n(e)})))}if("cfs.files.filerecord"===t&&n(["metadata/space","=",S]),m=Creator.getObject(t),p=t===e&&(null!=m?m.enable_tree:void 0),"cms_files"===t?(n(["parent/o","=",e]),n(["parent/ids","=",r])):"objects"===e?n([h,"=",r]):p||((b=null!=m?m.fields:void 0)&&(g=b[h]),g&&g.reference_to_field&&(f=Creator.odata.get(e,r,g.reference_to_field),"permission_fields"===t&&"object_fields"===e&&n(["object_name","=",f.object]),f&&f[g.reference_to_field]&&(r=f[g.reference_to_field])),!g||"master_detail"!==g.type&&"lookup"!==g.type?g&&"grid"===g.type?(n([h+".o","=",e]),n([h+".ids","=",r])):n([h,"=",r]):_.isFunction(g.reference_to)?_.isArray(g.reference_to())?n([h+".ids","=",r]):n([h,"=",r]):_.isArray(g.reference_to)?n([h+".ids","=",r]):n([h,"=",r])),"mine"===c&&n(["owner","=",C]),0!==w.length)return w}},Creator.getJsReportUrlQuery=function(){var e,t,r;return r="?space_id="+Steedos.getSpaceId(),(t=Tracker.nonreactive((function(){return Session.get("filter_items")})))&&(r+="&user_filters="+(e=encodeURI(JSON.stringify(t)))),r},Creator.getJsReportViewUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/web/viewer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.getJsReportExcelUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/api/report_db/"+e+"/excel"),t+=Creator.getJsReportUrlQuery()},Creator.getJsReportPdfUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/api/report_db/"+e+"/pdf"),t+=Creator.getJsReportUrlQuery()},Creator.getStimulsoftReportViewUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/stimulsoft/web/viewer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.getStimulsoftReportDesignerUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/stimulsoft/web/designer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.objectOdataSelectFields=function(e){var t,r;return t=e.fields,r=(r=_.keys(t)).filter((function(e){return e.indexOf(".")<0})),e&&["default","meteor"].indexOf(e.database_name||"default")>-1&&(r=_.union(r.concat(o))),r.join(",")},Creator.objectOdataExpandFields=function(e,t){var r,o;return r=[],o=e.fields,t||(t=_.keys(o)),_.each(t,(function(e){var t,a,n;if(("master_detail"===(null!=(a=o[e])?a.type:void 0)||"lookup"===(null!=(n=o[e])?n.type:void 0))&&(o[e].reference_to?(t=o[e].reference_to,_.isFunction(t)&&(t=t())):_.isFunction(o[e].optionsFunction)&&(t=o[e].optionsFunction({}).getProperty("value")),_.isArray(t)||(t=[t]),t=_.map(t,(function(e){var t,r;return t=(null!=(r=Creator.getObject(e))?r.NAME_FIELD_KEY:void 0)||"name"})),t=_.compact(t),(t=(t=_.uniq(t)).join(","))&&e.indexOf("$")<0))return e.indexOf(".")<0?r.push(e):r.push(e.replace(".","/"))})),r.join(",")},Creator.relatedObjectFileUploadHandler=function(e,r){var o,a,n,i,s,c,l,u,d,p;for(u=null!=(o=e.currentTarget.dataset)?o.parent:void 0,s=e.currentTarget.files,c=0,d=Session.get("record_id"),l=Session.get("object_name"),p=Session.get("spaceId");c0&&(t=!0),!t})),t},Creator.pushCurrentPathToUrlQuery=function(){var e;if((e=FlowRouter.current().path)!==urlQuery[urlQuery.length-1])return urlQuery.push(e)},Creator.getStandardQuery=function(e,t){var r,o,a,n,i,s;if(o=Creator.getObject(e).fields,t&&t.query&&_.size(t.query)&&t.object_name===e)return a=t.object_name,i=t.query,s=[],t.is_mini?_.each(i,(function(e,t){var r,n,i,c;if(o[t])if(r=Creator.getFieldDataType(o,t),["currency","number"].includes(r)){if(!_.isString(e))return s.push([t,"=",e]);if(c=e.trim().split(" "),n=[],c.forEach((function(e){var r,o;try{if(o=Number(e),_.isNumber(o)&&!_.isNaN(o))return n.push([t,"=",o])}catch(a){return r=a,console.error(r)}})),n.length>0)return s.push(Creator.formatFiltersToDev(n,a,{is_logic_or:!1}))}else if(["text","textarea","html","select","autonumber","url","email"].includes(r))if(_.isString(e)){if(c=e.trim().split(" "),i=[],c.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),"select"===r&&o[t].multiple?i.push([t,"=",e]):i.push([t,"contains",e])})),i.length>0)return s.push(Creator.formatFiltersToDev(i,a,{is_logic_or:!1}))}else if(_.isArray(e))return s.push([t,"=",e])})):_.each(i,(function(e,t){var r,n,i,c,l,u;if(o[t]){if(n=Creator.getFieldDataType(o,t),["date","datetime","time","currency","number"].includes(n))return s.push([t,">=",e]);if(["text","textarea","html"].includes(n)){if(_.isString(e)){if(u=e.trim().split(" "),l=[],u.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),l.push([t,"contains",e])})),l.length>0)return s.push(Creator.formatFiltersToDev(l,a,{is_logic_or:!1}))}else if(_.isArray(e))return s.push([t,"=",e])}else{if(["boolean"].includes(n))return s.push([t,"=",JSON.parse(e)]);if(!["lookup","master_detail"].includes(n))return s.push([t,"=",e]);if(i=null!=(r=o[t])?r.reference_to:void 0,_.isFunction(i)&&(i=i()),!_.isArray(i))return s.push([t,"=",e]);if((null!=e?e.ids:void 0)&&s.push({field:t+".ids",operation:"=",value:null!=e?e.ids:void 0}),null!=e?e.o:void 0)return c=Creator.getObject(null!=e?e.o:void 0),s.push({field:t+".o",operation:"=",value:c._collection_name})}}else if(t=t.replace(/(_endLine)$/,""),n=Creator.getFieldDataType(o,t),o[t]&&["date","datetime","time","currency","number"].includes(n))return s.push([t,"<=",e])})),n={is_logic_or:r=!!t.is_mini},Creator.formatFiltersToDev(s,a,n);delete Session.keys.standard_query},Creator.getSafeObjectUrl=function(e,t,r){var o;return _.isString(e)?(o="users"===e?Creator.getObject("space_users"):Creator.getObject(e)).permissions.get().allowRead?Creator.getObjectUrl(e,t,r):void 0:""},Creator.formatFileSize=function(e){var t,r;return r="KB",(t=e/1024)>1024&&(t/=1024,r="MB"),t>1024&&(t/=1024,r="GB"),t.toFixed(2)+r},Creator.getTableCellData=function(e){var r,o,a,n,i,s,c,l,u,d,p,f,m,g,h,v,b,w,S,C,y,j,T,R;if(d=[],R=e.val,g=e.object_name,y=(j=Creator.getObject(g)).NAME_FIELD_KEY,"organizations"===g&&(y="name"),o=e.field){if(a=o.type,"formula"===o.type)a=o.data_type;else if("select"===o.type&&o.data_type&&"text"!==o.data_type)a=o.data_type;else if("summary"===o.type)if("count"===o.summary_type)a="number";else{if(!(C=Creator.getObject(o.summary_object)))throw new Meteor.Error(500,"The summary_object '"+o.summary_object+"' is not found for the field '"+o.name+"'");if(!(S=C.fields[o.summary_field]))throw new Meteor.Error(500,"The summary_field '"+o.summary_field+"' is not found for the field '"+o.name+"'");"formula"!==(a=S.type)&&"summary"!==a||(a=S.data_type),_.isNumber(o.scale)||(r=function(e){var t,o;return _.isNumber(e.scale)?e.scale:"summary"===e.type&&(o=Creator.getObject(e.summary_object))?(t=o.fields[e.summary_field])?r(t):null:void 0},o.scale=r(S))}return v=null!=(h=e.field)?h.reference_to:void 0,_.isFunction(v)&&(v=v()),"grid"===a?d.push({isTable:!0}):"location"===a?d.push({value:(null!=R?R.address:void 0)||"",id:e._id}):"lookup"!==a&&"master_detail"!==a||_.isEmpty(R)?"image"===a?"string"==typeof R?d.push({value:R,id:e._id,isImage:!0,baseUrl:Creator.getRelativeUrl("/api/files/images")}):d.push({value:R,id:e._id,isImages:!0,baseUrl:Creator.getRelativeUrl("/api/files/images")}):"avatar"===a?"string"==typeof R?d.push({value:R,id:e._id,isImage:!0,baseUrl:Creator.getRelativeUrl("/api/files/avatars")}):d.push({value:R,id:e._id,isImages:!0,baseUrl:Creator.getRelativeUrl("/api/files/avatars")}):"code"===a?(R=R?"...":"",d.push({value:R,id:e._id})):"password"===a?(R=R?"******":"",d.push({value:R,id:e._id})):"url"===a?((null!=(f=R)?f.startsWith("http"):void 0)||(f=Steedos.absoluteUrl(encodeURI(f))),d.push({value:R,href:f,id:e._id,isUrl:!0})):"email"===a?d.push({value:R,href:f,id:e._id,isEmail:!0}):"boolean"===a||"toggle"===a?(R=e.val?t("YES"):t("NO"),d.push({value:R,checked:e.val,id:e._id,isBoolean:!0})):"select"===a?(s=o.allOptions||o.options,u=e.doc||{},c=e.record_val,_.isFunction(o.options)&&(s=o.options(c||u)),_.isFunction(o.optionsFunction)&&(s=o.optionsFunction(c||u)),w=e.val,_.isArray(w)||(w=[w]),m=[],_.each(s,(function(e){if(_.indexOf(w,e.value)>-1)return m.push({label:e.label,value:e.value})})),R=(R=m.map((function(e){return e.label}))).join(","),d.push({value:R,items:m,id:e._id,isSelects:!0})):(R&&["datetime","date","time"].indexOf(a)>=0?"odata"===e.agreement?"datetime"===a?"string"==typeof e.val&&/\d+Z$/.test(e.val)?R=moment(e.val).format("YYYY-MM-DD H:mm"):(T=moment().utcOffset()/60,R=moment(e.val).add(T,"hours").format("YYYY-MM-DD H:mm")):"date"===a&&(R="string"==typeof e.val&&/\d+Z$/.test(e.val)?moment.utc(e.val).format("YYYY-MM-DD"):moment(e.val).format("YYYY-MM-DD")):"datetime"===a?R=moment(e.val).format("YYYY-MM-DD H:mm"):"date"===a?R=moment.utc(e.val).format("YYYY-MM-DD"):"time"===a&&(R=moment.utc(e.val).format("HH:mm")):null===e.val?R="":"lookup"===a?_.isFunction(o.optionsFunction)&&(u=e.doc||{},(l=R)&&(_.isArray(l)||(l=[l]),(b=_.filter(o.optionsFunction(u),(function(e){return l.indexOf(e.value)>-1})))&&(R=b.getProperty("label")))):"filesize"===a?R=Creator.formatFileSize(R):["number","currency","percent"].indexOf(a)>-1&&_.isNumber(R)?(p=0,p=_.isNumber(o.scale)?o.scale:"currency"===a?2:0,"percent"===a&&(R*=100),R=Steedos.numberToString(R,p),"percent"===a&&(R+="%")):"markdown"===a?_.isEmpty(R)||(R=Spacebars.SafeString(marked(R))):"html"===a?_.isEmpty(R)||(R=Spacebars.SafeString(R)):"textarea"===a&&R&&(R=(R=R.replace(/\n/g,"\n
")).replace(/ /g," ")),"record_details"!==e.parent_view&&e.field_name===y&&(f=Creator.getObjectUrl(e.object_name,e._id)),d.push({value:R,href:f,id:e._id,type:a})):_.isFunction(o.optionsFunction)&&"company"!==v?(u=e.doc||{},c=e.record_val,(l=R)&&(l=_.isArray(l)?l.map((function(e){return _.isObject(e)?e._id:e})):_.isObject(l)?[l._id]:[l],i=o.optionsFunction(c||u),(b=_.filter(i,(function(e){return l.indexOf(null!=e?e.value:void 0)>-1})))&&(R&&_.isArray(R)&&_.isArray(b)&&(b=Creator.getOrderlySetByIds(b,R,"value")),R=b.getProperty("label"))),v?"objects"===v?_.each(b,(function(t){var r,o,a;return a=t.label,(null!=(r=Creator.getObject(t.value))?r._id:void 0)?(o=Creator.getSafeObjectUrl(v,r._id),d.push({reference_to:v,rid:a,value:a,id:e._id,href:o})):d.push({value:R,id:e._id})})):(n=e.val,_.isArray(n)||(n=n?[n]:[]),_.each(n,(function(t){var r,o,a;return _.isString(t)?(b=_.filter(i,(function(e){return t===(null!=e?e.value:void 0)})),d.push({value:b.getProperty("label"),id:e._id})):(v=t["reference_to._o"]||v,o=t._id,a=t._NAME_FIELD_VALUE,r=Creator.getSafeObjectUrl(v,o),d.push({reference_to:v,rid:o,value:a,href:r,id:e._id}))}))):d.push({value:R,id:e._id})):(_.isArray(R)||(R=R?[R]:[]),_.each(R,(function(t){var r,o,a;if(t)return v=t["reference_to._o"]||v,o=t._id,a=t._NAME_FIELD_VALUE,_.isString(t)&&(o=t,a=t),r=Creator.getSafeObjectUrl(v,o),d.push({reference_to:v,rid:o,value:a,href:r,id:e._id})}))),d}},Creator.openSafeObjectUrl=function(e,t){var r;return Steedos.isMobile()||(r=Creator.getSafeObjectUrl(e,t,"-"))&&window.open(r,"_blank","width=800, height=600, left=50, top= 50, toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes"),"undefined"!=typeof event&&null!==event&&event.stopPropagation(),"undefined"!=typeof event&&null!==event&&event.preventDefault(),!1},Creator.getAppLabel=function(e){return e||(e=Creator.getApp()),e?e.label?t(e.label):t(e.name):""},Creator.measureWidth=_.memoize((function(e,t,r){var o,a,n,i;return(o=arguments.callee.canvas)||(o=document.createElement("canvas"),(n=document.createDocumentFragment()).appendChild(o),arguments.callee.canvas=o),(a=o.getContext("2d")).font=t,i=a.measureText(e).width,r&&i>r?r:i})),Creator.showPreviewButton=function(e){var t,r,o,a,n;return!!((null!=(n=null!=(t=Meteor.settings)&&null!=(r=t.public)?r.webservices:void 0)&&null!=(o=n.officeOnline)?o.url:void 0)&&Steedos.isOfficeFile(e)||(null!=n&&null!=(a=n.pdfOnline)?a.url:void 0)&&Steedos.isPdfFile(e))},Creator.officeOnlinePreview=function(e,t){var r,o,a,n,i,s,c,l,u,d,p,f,m,_,g,h;return a=null!=(s=Meteor.settings)&&null!=(c=s.public)&&null!=(l=c.webservices)&&null!=(u=l.officeOnline)?u.url:void 0,i=null!=(d=Meteor.settings)&&null!=(p=d.public)&&null!=(f=p.webservices)&&null!=(m=f.pdfOnline)?m.url:void 0,a&&""!==a||i&&""!==i?(h=Meteor.userId(),_=Steedos.spaceId(),r={authToken:o=Accounts._storedLoginToken()},e=e+"?token="+(g=window.btoa(JSON.stringify(r))),Steedos.isPdfFile(t)?(n=e,i&&""!==i&&(n=i+encodeURIComponent(e)),Steedos.openWindow(n)):(n=a+encodeURIComponent(e),Steedos.openWindow(n))):(toastr.error(TAPi18n.__("creator_office_online_web_url_required")),!1)},Creator.isImageAttachment=function(e){var t,r;return!(e.split(".").length<2)&&(t=e.split(".").pop().toLowerCase(),-1!==(r=["png","jpg","jpeg","bmp","gif","webp","psd","svg","tiff"]).indexOf(t))},Creator.isHtmlAttachment=function(e){var t,r;return!(e.split(".").length<2)&&(t=e.split(".").pop().toLowerCase(),-1!==(r=["html","htm"]).indexOf(t))}),Meteor.startup((function(){return $(document).on("click",(function(e){return $(e.target).closest(".slds-table td").length<1?$(".slds-table").addClass("slds-no-cell-focus"):$(".slds-table").removeClass("slds-no-cell-focus")})),$(window).resize((function(){if($(".list-table-container table.dataTable").length)return $(".list-table-container table.dataTable thead th").each((function(){var e;return e=$(this).outerWidth(),$(".slds-th__action",this).css("width",e+"px")}))})),$(document).keydown((function(e){if("13"===e.keyCode||"Enter"===e.key){if($(".modal").length>1)return;if("TEXTAREA"!==e.target.tagName||$(e.target).closest("div").hasClass("bootstrap-tagsinput")){if("update"===Session.get("cmOperation"))return e.preventDefault(),e.stopPropagation(),$(".creator-auotform-modals .btn-update").click();if("insert"===Session.get("cmOperation"))return e.preventDefault(),e.stopPropagation(),$(".creator-auotform-modals .btn-insert").click()}}}))}))},"colors.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n,i;n="border-radius: 10px;padding: 1px 6px;display: inline-block;",i=function(e){return 3===(e=e.slice(1)).length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:Number.parseInt(e.slice(0,2),16),g:Number.parseInt(e.slice(2,4),16),b:Number.parseInt(e.slice(4,6),16)}},a=function(e,t,r){var o,a,n,s;return.299*(n=(s=i(e)).r)+.587*(a=s.g)+.114*(o=s.b)>186?r:t},o=function(e,t,r){var o,a,n,s,c,l,u;return(o=.2126*(n=(u=[(c=(l=i(e)).r)/255,(s=l.g)/255,(a=l.b)/255]).map((function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})))[0]+.7152*n[1]+.0722*n[2])>.179?r:t},r=function(e){var t,r;return r=[],t=e.fields,_.each(t,(function(t,a){var i;if(i=t.options,_.isFunction(i)&&(i=i({})),"select"===t.type&&(null!=i?i.length:void 0))return _.each(i,(function(t){var i,s;if(t.color)return i=t.color,/^#/.test(i)||(i="#"+i),s=o(i,"#fff","#333"),r.push(".creator-cell-color-"+e.name+"-"+a+"-"+t.value+"{"+n+"background:"+i+";color:"+s+";}")}))})),r},Creator.appendObjectFieldsColorStyles=function(){var e,t;return $("#object_fields_color_styles").remove(),t=[],_.each(Creator.Objects,(function(e){return t=_.union(t,r(e))})),t.push(".creator-cell-multiple-color{\n\tmargin-right:1px;\n}\n@media (max-width:767px) {\n\t.creator-cell-multiple-color{\n\t\tmargin-right:4px;\n\t}\n}"),e=$('"),$("head").append(e)}},"temp_navs.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},o,a,n,i,s,c,l,u,d,p;s=!1,a=function(){var e;if(e=sessionStorage.getItem("temp_navs"))return e.split(",").map((function(e){var t;return{name:(t=e.split(":"))[0],url:t[1],label:t[2],is_temp:!0}}))},n=function(e,t,r){return sessionStorage.getItem("temp_navs_id")},d=function(e){return sessionStorage.setItem("temp_navs_id",e)},p=function(e){var t,r;return e||(e=[]),t=(r=e.map((function(e){var t;return t=e.name,e.url&&(t+=":"+e.url),e.label&&(t+=":"+e.label),t}))).join(","),sessionStorage.setItem("temp_navs",t)},c=[],o=function(e,t){var r;return r=t||Creator.getObjectUrl(e),c.push(r)},u=function(e,t){var r,o;if(o=t||Creator.getObjectUrl(e),(r=c.indexOf(o))>-1)return c.splice(r,1)},i=function(e,t){var r,o,a,n,i,s;for(r=t||Creator.getObjectUrl(e),o=2,s=6,i=!1;!i&&o<8&&!((a=urlQuery.length-o)<0);)n=urlQuery[a],__meteor_runtime_config__.ROOT_URL_PATH_PREFIX+n!==r?(i=n&&c.indexOf(__meteor_runtime_config__.ROOT_URL_PATH_PREFIX+n)<0,o++):o++;return i?n:null},l=function(e,t,r,a){var n,s,c,l,u,d,p,f,m;return n=Session.get("object_name"),s=Session.get("record_id"),t?(l=(c=Creator.getObjectUrl(n,s))===t)||(l=FlowRouter.current().path===t):l=n===e,l?(d=i(e,t),o(e,t),d?(FlowRouter.go(d),urlQuery.pop(),urlQuery.pop()):((f=r[a])||(f=r[a-1]),f?(m=f.url?f.url:Creator.getObjectUrl(f.name),FlowRouter.redirect(m)):(u=(p=Creator.getAppMenus())[p.length-1],FlowRouter.redirect(u.path)))):o(e,t)},Creator.getTempNavs=function(){var e;return(e=Session.get("temp_navs"))||(e=a())&&Session.set("temp_navs",e),e},Creator.getTempNavsId=function(){var e;return(e=Session.get("temp_navs_id"))||(e=n())&&Session.set("temp_navs_id",e),e},Creator.createTempNav=function(e,t,r){var o,a;if(t||!(["users","cms_files","cfs.files.filerecord"].indexOf(e)>-1))return(a=Creator.getTempNavs())||(a=[]),(o=a.find((function(r){return t?r.name===e&&r.url===t:r.name===e})))?void 0:(a.push({name:e,url:t,label:r,is_temp:!0}),Session.set("temp_navs",a),p(a),u(e,t))},Creator.updateTempNavLabel=function(e,t,r){var o,a;if(t&&r)return(a=Creator.getTempNavs())||(a=[]),(o=a.find((function(r){return r.name===e&&r.url===t})))?(o.label=r,Session.set("temp_navs",a),p(a)):void 0},Creator.removeTempNavItem=function(e,t){var r,o,a;if((a=Session.get("temp_navs"))&&(o=null,r=a.filter((function(r,a){var n;return(n=t?r.name===e&&r.url===t:r.name===e)&&(o=a),!n})),_.isNumber(o)))return s=!0,l(e,t,r,o),Meteor.defer((function(){return Session.set("temp_navs",r),p(r),s=!1})),!0},Creator.resetTempNavsIfNeeded=function(){var e,t,r;if((t=(r=Creator.getTempNavsId())!==(e=Meteor.userId()+":"+Steedos.spaceId()+":"+Session.get("app_id")))&&(Session.set("temp_navs",null),p(null),c.length=0),t||!Session.get("temp_navs_id"))return Session.set("temp_navs_id",e),d(e)},Meteor.startup((function(){if(!Steedos.isMobile())return Tracker.autorun((function(){var e,t;if(Creator.bootstrapLoaded.get()&&(t=Session.get("spaceId"),e=Session.get("app_id"),t&&e))return Creator.resetTempNavsIfNeeded()})),Tracker.autorun((function(e){var r,o,a,n,i,c,l,u,d,p,f,m,g,h,v;if(u=Session.get("object_name"),h=Session.get("tab_name"),p=Session.get("record_id"),i=Creator.getAppMenus(),u&&i&&i.length&&(f=Session.get("record_name"),n=_.pluck(i,"id"),o=Session.get("temp_navs_force_create"),(null!=n?n.indexOf(u||h):void 0)<0||o)){if(o&&s)return void Session.set("temp_navs_force_create",!1);if(!(l=Creator.getObject(u)))return;if(p){if(!(d=Creator.getObjectRecord()))return;if(v=Creator.getObjectUrl(u,p),o&&(r=urlQuery[urlQuery.length-3])&&(g=new RegExp(r+"$")).test(v))return void Session.set("temp_navs_force_create",!1);a=f||("cfs.files.filerecord"===u?t("cfs_files_filerecord__object")+"-"+(null!=d&&null!=(m=d.original)?m.name:void 0):d[c=l.NAME_FIELD_KEY||"name"]),Creator.createTempNav(u,v,a)}else Creator.createTempNav(u);if(o)return Session.set("temp_navs_force_create",!1)}}))}))},"router.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n;this.urlQuery=new Array,o=function(e,t){var r;Meteor.userId()&&(Creator.pushCurrentPathToUrlQuery(),"-"!==(r=e.params.app_id)&&r&&Session.get("app_id")!==r&&Session.set("app_id",r))},n=function(e,t){var r,o,a,n;if(o=Tracker.nonreactive((function(){return Session.get("object_name")})),a=Tracker.nonreactive((function(){return Session.get("record_id")})),r=e.params.object_name,n=e.params.record_id,Session.set("object_name",r),Session.set("tab_name",null),Session.set("pageApiName",null),Session.set("record_id",n),Session.set("record_name",null),n&&(o&&o!==r||a&&n!==a))return Session.set("temp_navs_force_create",!0)},r=function(e,t){var r;if("admin"===(r=e.params.app_id)&&Steedos.isMobile())return t("/user_settings"),urlQuery.pop()},FlowRouter.route("/app",{triggersEnter:[o],action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"creator_app_home"})}}),FlowRouter.route("/app/menu",{triggersEnter:[o],action:function(e,t){var r;return r="app_object_menu",Session.set("hidden_header",!0),BlazeLayout.render(Creator.getLayout(),{main:r})},triggersExit:[function(e,t){if(Steedos.isMobile())return Session.set("hidden_header",void 0)}]}),FlowRouter.route("/app/:app_id",{triggersEnter:[o],action:function(e,t){var r,o,a;return"-"!==(o=FlowRouter.getParam("app_id"))&&(Session.set("object_name",null),Session.set("record_id",null),Session.set("app_id",o)),Session.set("admin_template_name",null),a=(r=Creator.getApp(o))&&r.is_use_iframe?"creator_app_iframe":"creator_app_home",BlazeLayout.render(Creator.getLayout(),{main:a})}}),FlowRouter.route("/app/:app_id/page/:page_id",{triggersEnter:[o],action:function(e,t){var r,o;return console.log("params",e),r=FlowRouter.getParam("app_id"),o=null!=e?e.page_id:void 0,Session.set("pageApiName",o),Session.set("object_name",null),BlazeLayout.render(Creator.getLayout(),{main:"page_template",regions:{appId:r,pageId:o}})},triggersExit:[function(e,t){return Session.set("pageApiName",null)}]}),FlowRouter.route("/page/:page_id/",{action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"page"})}}),FlowRouter.route("/app/:app_id/tab_iframe/:tab_id",{triggersEnter:[o],action:function(e,t){var r;return r=FlowRouter.getParam("tab_id"),Session.set("tab_name",r),Session.set("object_name",null),BlazeLayout.render(Creator.getLayout(),{main:"page_iframe",regions:{params:e,queryParams:t}})},triggersExit:[function(e,t){return Session.set("tab_name",null)}]}),(a=FlowRouter.group({prefix:"/app/:app_id/:object_name",name:"objectRoutes",triggersEnter:[o,n]})).route("/",{triggersEnter:[function(e,t){var r,o,a,n,i;return n=e.params.object_name,o=(null!=(a=window.getFirstListView(n))?a.name:void 0)||(null!=a?a._id:void 0),t(i="/app/"+(r=e.params.app_id)+"/"+n+"/grid/"+o)}],action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"object_home"})}}),a.route("/:record_id/:related_object_name/grid",{action:function(e,t){var r,o,a,n,i,s,c,l;return o={app_id:r=Session.get("app_id"),object_name:n=FlowRouter.getParam("object_name"),record_id:s=FlowRouter.getParam("record_id"),related_object_name:l=FlowRouter.getParam("related_object_name")},Session.set("related_object_name",l),a="related_object_list",(i=Steedos.Page.getPage("related_list",r,l))&&(a="page_related_list_view",c={page:i,appId:Session.get("app_id"),objectName:n,recordId:s,relatedObjectName:l,__timestamp:(new Date).getTime()}),Meteor.setTimeout((function(){return BlazeLayout.render(Creator.getLayout(),{main:a,regions:c})}),10)}}),a.route("/view/:record_id",{action:function(e,t){var r,o,a,n,i,s,c;return t["X-Space-Id"]&&Steedos.setSpaceId(t["X-Space-Id"]),o={app_id:r=FlowRouter.getParam("app_id"),object_name:n=FlowRouter.getParam("object_name"),record_id:s=FlowRouter.getParam("record_id")},ObjectRecent.insert(n,s),Session.set("detail_info_visible",!0),a="creator_view",(i=Steedos.Page.getPage("record",Session.get("app_id"),n,s))&&(a="page_object",c=window._.defaultsDeep({display:Steedos.Page.getDisplay(n)},FlowRouter.current().queryParams,{page:i,appId:Session.get("app_id"),recordId:s,objectName:n,pageType:"record",__timestamp:(new Date).getTime()})),Meteor.setTimeout((function(){return BlazeLayout.render(Creator.getLayout(),{main:a,regions:c})}),10)},triggersExit:[function(e,t){var r,o,a,n;if(Session.get("instance_change")&&("instances"===(null!=(r=e.params)?r.object_name:void 0)&&"draft"===(null!=(o=e.queryParams)?o.side_listview_id:void 0)||"instance_tasks"===(null!=(a=e.params)?a.object_name:void 0)&&"inbox"===(null!=(n=e.queryParams)?n.side_listview_id:void 0)))return InstanceManager.saveIns(!1)}]}),a.route("/grid/:list_view_id",{action:function(e,t){var r,o,a,n,i;return Session.set("record_id",null),Session.get("object_name")===FlowRouter.getParam("object_name")&&Session.get("list_view_id")===FlowRouter.getParam("list_view_id")||(Session.set("filter_target",null),Session.set("filter_items",null)),Session.get("object_name")!==FlowRouter.getParam("object_name")&&Session.set("list_view_id",null),"true"===(null!=t?t.hidden_header:void 0)&&Session.set("hidden_header",!0),"-"!==(r=FlowRouter.getParam("app_id"))&&Session.set("app_id",r),a=FlowRouter.getParam("object_name"),Session.set("object_name",a),Session.set("list_view_id",FlowRouter.getParam("list_view_id")),Session.set("list_view_visible",!1),Tracker.afterFlush((function(){return Session.set("list_view_visible",!0)})),(n=Steedos.Page.getPage("list",Session.get("app_id"),a))&&(o="page_object",i=window._.defaultsDeep({display:Steedos.Page.getDisplay(a)},FlowRouter.current().queryParams,{page:n,appId:Session.get("app_id"),objectName:a,listViewId:Session.get("list_view_id"),pageType:"list",__timestamp:(new Date).getTime()})),BlazeLayout.render(Creator.getLayout(),{main:o,regions:i})}}),FlowRouter.notFound={action:function(e,t){var r;try{throw new Error("404 not found:"+window.location.href)}catch(o){r=o,console.log(r,window.location.href)}return BlazeLayout.render("empty_layout",{main:"notFound"})}}},"tenant.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};$.getJSON("/accounts/settings",(function(e){if(null!=e?e.tenant:void 0)return Session.set("tenant_settings",e.tenant)}))},"animate.js":function e(){$.fn.extend({animateCss:function(e,t){var r=function(e){var t={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(var r in t)if(void 0!==e.style[r])return t[r]}(document.createElement("div"));return this.addClass("animated "+e).one(r,(function(){$(this).removeClass("animated "+e),"function"==typeof t&&t()})),this}})},"colResizable-1.6.js":function e(){!function(e){var t=e(document),r=e("head"),o=null,a={},n=0,i="id",s="px",c="JColResizer",l="JCLRFlex",u=parseInt,d=Math,p=navigator.userAgent.indexOf("Trident/4.0")>0,f;try{f=sessionStorage}catch(T){}r.append("");var m=function(t,o){var s=e(t);if(s.opt=o,s.mode=o.resizeMode,s.dc=s.opt.disabledColumns,s.opt.disable)return _(s);var l=s.id=s.attr(i)||c+n++;s.p=s.opt.postbackSafe,!s.is("table")||a[l]&&!s.opt.partialRefresh&&s.prev(".JCLRgrips").length>0||("col-resize"!==s.opt.hoverCursor&&r.append(""),s.addClass(c).attr(i,l).before('
'),s.g=[],s.c=[],s.w=s.width(),s.gc=s.prev(),s.f=s.opt.fixed,o.marginLeft&&s.gc.css("marginLeft",o.marginLeft),o.marginRight&&s.gc.css("marginRight",o.marginRight),s.cs=u(p?t.cellSpacing||t.currentStyle.borderSpacing:s.css("border-spacing"))||2,s.b=u(p?t.border||t.currentStyle.borderLeftWidth:s.css("border-left-width"))||1,a[l]=s,g(s))},_=function(e){var t=e.attr(i),e;(e=a[t])&&e.is("table")&&(e.removeClass(c+" "+l).gc.remove(),delete a[t])},g=function(t){var r=t.find(">thead>tr:first>th,>thead>tr:first>td");r.length||(r=t.find(">tbody>tr:first>th,>tr:first>th,>tbody>tr:first>td, >tr:first>td")),r=r.filter(":visible"),t.cg=t.find("col"),t.ln=r.length,t.p&&f&&f[t.id]&&h(t,r),r.each((function(r){var o=e(this),a=-1!=t.dc.indexOf(r),n=e(t.gc.append('
')[0].lastChild);n.append(a?"":t.opt.gripInnerHtml).append('
'),r==t.ln-1&&(n.addClass("JCLRLastGrip"),t.f&&n.html("")),n.bind("touchstart mousedown",y),a?n.addClass("JCLRdisabledGrip"):n.removeClass("JCLRdisabledGrip").bind("touchstart mousedown",y),n.t=t,n.i=r,n.c=o,o.w=o.width(),t.g.push(n),t.c.push(o),o.width(o.w).removeAttr("width"),n.data(c,{i:r,t:t.attr(i),last:r==t.ln-1})})),t.cg.removeAttr("width"),t.find("td, th").not(r).not("table th, table td").each((function(){e(this).removeAttr("width")})),t.f||t.removeAttr("width").addClass(l),v(t)},h=function(e,t){var r,o=0,a=0,n=[],i;if(t){if(e.cg.removeAttr("width"),e.opt.flush)return void(f[e.id]="");for(i=(r=f[e.id].split(";"))[e.ln+1],!e.f&&i&&(e.width(i*=1),e.opt.overflow&&(e.css("min-width",i+s),e.w=i));a*{cursor:"+s.opt.dragCursor+"!important}"),l.addClass(s.opt.draggingClass),o=l,s.c[i.i].l)for(var d=0,p;d"+(r.label||a),value:t+"."+a,icon:null!=o?o.icon:void 0})})):void 0})),o&&(c=Creator.getRelatedObjects(e),_.each(c,(l=this,function(e){var t,r;return r=Creator.getObjectLookupFieldOptions(e.object_name,!1,!1,!1),t=Creator.getObject(e.object_name),_.each(r,(function(r){if(e.foreign_key!==r.value)return n.push({label:(t.label||t.name)+"=>"+r.label,value:t.name+"."+r.value,icon:null!=t?t.icon:void 0})}))}))),n):n},Creator.getObjectFilterFieldOptions=function(e){var t,r,o,a,n;return r=[],e?(o=null!=(t=Creator.getObject(e))?t.fields:void 0,n=Creator.getFields(e),a=null!=t?t.icon:void 0,_.forEach(o,(function(e,t){if(!_.include(["grid","object","[Object]","[object]","Object","avatar","image","markdown","html"],e.type)&&!e.hidden&&!/\w+\./.test(t)&&_.indexOf(n,t)>-1)return r.push({label:e.label||t,value:t,icon:a})})),r):r},Creator.getObjectFieldOptions=function(e){var t,r,o,a,n;return r=[],e?(o=null!=(t=Creator.getObject(e))?t.fields:void 0,n=Creator.getFields(e),a=null!=t?t.icon:void 0,_.forEach(o,(function(e,t){if(!_.include(["grid","object","[Object]","[object]","Object","markdown","html"],e.type)&&!/\w+\./.test(t)&&_.indexOf(n,t)>-1)return r.push({label:e.label||t,value:t,icon:a})})),r):r},Creator.getFiltersWithFilterFields=function(e,t,r){return e||(e=[]),r||(r=[]),(null!=r?r.length:void 0)&&r.forEach((function(r){if(_.isString(r)&&(r={field:r,required:!1}),t[r.field]&&!_.findWhere(e,{field:r.field}))return e.push({field:r.field,is_default:!0,is_required:r.required})})),e.forEach((function(e){var t;return t=r.find((function(t){return t===e.field||t.field===e.field})),_.isString(t)&&(t={field:t,required:!1}),t?(e.is_default=!0,e.is_required=t.required):(delete e.is_default,delete e.is_required)})),e},Creator.getObjectRecord=function(e,t,r,o){var a,n,i,s,c,l;if(e||(e=Session.get("object_name")),t||(t=Session.get("record_id")),Meteor.isClient){if(e!==Session.get("object_name")||t!==Session.get("record_id"))return Creator.odata.get(e,t,r,o);if(null!=(s=Template.instance())?s.record:void 0)return null!=(c=Template.instance())&&null!=(l=c.record)?l.get():void 0}if("meteor"!==(n=Creator.getObject(e)).database_name&&n.database_name){if(e&&t)return Creator.odata.get(e,t,r,o)}else if(a=Creator.getCollection(e))return i=a.findOne(t)},Creator.getObjectRecordName=function(e,t){var r,o;if(e||(e=Creator.getObjectRecord()),e&&(r="organizations"===t?"name":null!=(o=Creator.getObject(t))?o.NAME_FIELD_KEY:void 0,e&&r))return e.label||e[r]},Creator.getApp=function(e){var t,r;return(t=Session.get("_app_menus")||Session.get("app_menus"))?r=t.find((function(t){return t.id===e})):{}},Creator.getAppDashboard=function(e){var t,r;if(t=Creator.getApp(e))return r=null,_.each(Creator.Dashboards,(function(e,o){var a;if((null!=(a=e.apps)?a.indexOf(t._id):void 0)>-1)return r=e})),r},Creator.getAppDashboardComponent=function(e){var t;t=Creator.getApp(e)},Creator.getAppObjectNames=function(e){var t,r,o,a;if(t=Creator.getApp(e))return r=(o=Steedos.isMobile())?t.mobile_objects:t.objects,a=[],t&&_.each(r,(function(e){var t;if(null!=(t=Creator.getObject(e))?t.permissions.get().allowRead:void 0)return a.push(e)})),a},Creator.getUrlWithToken=function(e,t){var r,o,a;return(a={})["X-Space-Id"]=Steedos.spaceId(),a["X-User-Id"]=Steedos.userId(),a["X-Company-Ids"]=Steedos.getUserCompanyIds(),a["X-Auth-Token"]=Accounts._storedLoginToken(),Steedos.isExpression(e)&&(e=Steedos.parseSingleExpression(e,t,"#",Creator.USER_CONTEXT)),""+e+(o=(r=/(\#.+\?)|(\?[^#]*$)/g.test(e))?"&":"?")+$.param(a)},Creator.getAppMenu=function(e,t){var r;return(r=Creator.getAppMenus(e))&&r.find((function(e){return e.id===t}))},Creator.getAppMenuUrlForInternet=function(e){return Creator.getUrlWithToken(e.path,e)},Creator.getAppMenuUrl=function(e){var t;return t=e.path,"url"===e.type?e.target?Creator.getAppMenuUrlForInternet(e):"/app/-/tab_iframe/"+e.id:e.path},Creator.getAppMenus=function(e){var t,r;return(t=Session.get("_app_menus")||Session.get("app_menus"))?(r=t.find((function(t){return t.id===e})))?r.children:void 0:[]},Creator.loadAppsMenus=function(){var e,t,r;return e={},(t=Steedos.isMobile())&&(e.mobile=t),r={type:"get",data:e,success:function(e){return Session.set("app_menus",e)}},null!=Steedos?Steedos.authRequest("/service/api/apps/menus",r):void 0},Creator.creatorAppsSelector=function(e,t){var r,o,a;return r=void 0,a=void 0,_.each(e,(function(e,t){e._id||(e._id=t),e.is_creator||(e.visible=!1)})),a=_.sortBy(_.values(e),"sort"),o={},r={},_.each(a,(function(e){return"admin"===e._id?r=e:o[e._id]=e})),o.admin=r,t.length&&_.each(o,(function(e,r){t.indexOf(r)>-1?e.visible=e.is_creator:e.visible=!1})),o},Creator.visibleAppsSelector=function(e,t){var r;return null==t&&(t=!0),r=[],_.each(e,(function(e,o){(!1!==e.visible&&"admin"!==e._id||t&&"admin"===e._id)&&r.push(e)})),r},Creator.getVisibleApps=function(e){var t,r;return t=Creator._subApp.get(),r=Object.assign({},Creator.Apps,{apps:t}),Creator.visibleAppsSelector(r,e)},Creator.getVisibleAppsObjects=function(){var e,t,r;return e=Creator.getVisibleApps(),r=_.flatten(_.pluck(e,"objects")),t=(t=_.filter(Creator.Objects,(function(e){return!(r.indexOf(e.name)<0)}))).sort(Creator.sortingMethod.bind({key:"label"})),t=_.pluck(t,"name"),_.uniq(t)},Creator.getAppsObjects=function(){var e,t;return e=[],t=[],_.forEach(Creator.Apps,(function(r){return t=_.filter(r.objects,(function(e){return!e.hidden})),e=e.concat(t)})),_.uniq(e)},Creator.validateFilters=function(e,t){var r,o,a,n,i,s,c;if(a=_.map(e,(function(e){return!_.isEmpty(e)&&e})),a=_.compact(a),o="",n=a.length,t){if(t=t.replace(/\n/g,"").replace(/\s+/g," "),/[._\-!+]+/gi.test(t)&&(o="含有特殊字符。"),!o)if(s=t.match(/\d+/gi))for(s.forEach((function(e){if(e<1||e>n)return o="您的筛选条件引用了未定义的筛选器:"+e+"。"})),i=1;i<=n;)s.includes(""+i)||(o="有些筛选条件进行了定义,但未在高级筛选条件中被引用。"),i++;else o="有些筛选条件进行了定义,但未在高级筛选条件中被引用。";if(o||(c=t.match(/[a-zA-Z]+/gi))&&c.forEach((function(e){if(!/^(and|or)$/gi.test(e))return o="检查您的高级筛选条件中的拼写。"})),!o){try{Creator.eval(t.replace(/and/gi,"&&").replace(/or/gi,"||"))}catch(l){r=l,o="您的筛选器中含有特殊字符"}(/(AND)[^()]+(OR)/gi.test(t)||/(OR)[^()]+(AND)/gi.test(t))&&(o="您的筛选器必须在连续性的 AND 和 OR 表达式前后使用括号。")}}return!o||(console.log("error",o),Meteor.isClient&&toastr.error(o),!1)},Creator.formatFiltersToMongo=function(e,t){var r;if(null!=e?e.length:void 0)return e[0]instanceof Array||(e=_.map(e,(function(e){return[e.field,e.operation,e.value]}))),r=[],_.each(e,(function(e){var o,a,n,i,s;return o=e[0],a=e[1],s=Meteor.isClient?Creator.evaluateFormula(e[2]):Creator.evaluateFormula(e[2],null,t),(i={})[o]={},"="===a?i[o].$eq=s:"<>"===a?i[o].$ne=s:">"===a?i[o].$gt=s:">="===a?i[o].$gte=s:"<"===a?i[o].$lt=s:"<="===a?i[o].$lte=s:"startswith"===a?(n=new RegExp("^"+s,"i"),i[o].$regex=n):"contains"===a?(n=new RegExp(s,"i"),i[o].$regex=n):"notcontains"===a&&(n=new RegExp("^((?!"+s+").)*$","i"),i[o].$regex=n),r.push(i)})),r},Creator.isBetweenFilterOperation=function(e){var t;return"between"===e||!!(null!=(t=Creator.getBetweenTimeBuiltinValues(!0))?t[e]:void 0)},Creator.formatFiltersToDev=function(e,t,r){var o,a;if(e.length)return(null!=r?r.is_logic_or:void 0)&&(o=[],e.forEach((function(e){return o.push(e),o.push("or")})),o.pop(),e=o),a=SteedosFilters.formatFiltersToDev(e,Creator.USER_CONTEXT)},Creator.formatLogicFiltersToDev=function(e,t,r){var o;return o="["+(o=(o=t.replace(/\(\s+/gi,"(").replace(/\s+\)/gi,")").replace(/\(/g,"[").replace(/\)/g,"]").replace(/\s+/g,",").replace(/(and|or)/gi,"'$1'")).replace(/(\d)+/gi,(function(t){var o,a,n,i,s;return o=e[t-1],a=o.field,n=o.operation,s=Meteor.isClient?Creator.evaluateFormula(o.value):Creator.evaluateFormula(o.value,null,r),i=[],!0===_.isArray(s)?("="===n?_.each(s,(function(e){return i.push([a,n,e],"or")})):"<>"===n?_.each(s,(function(e){return i.push([a,n,e],"and")})):_.each(s,(function(e){return i.push([a,n,e],"or")})),"and"!==i[i.length-1]&&"or"!==i[i.length-1]||i.pop()):i=[a,n,s],JSON.stringify(i)})))+"]",Creator.eval(o)},Creator.getRelatedObjects=function(e,t,r){var o,a,n,i,s;return Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),n=[],(o=Creator.getObject(e))?(i=Creator.getObjectRelateds(o._collection_name),0===(null!=(n=_.pluck(i,"object_name"))?n.length:void 0)?n:(s=(a=Creator.getPermissions(e,t,r)).unrelated_objects,n=_.difference(n,s),_.filter(i,(function(e){var o,i,s,c;return c=e.object_name,i=n.indexOf(c)>-1,o=null!=(s=Creator.getPermissions(c,t,r))?s.allowRead:void 0,"cms_files"===c&&(o=o&&a.allowReadFiles),i&&o})))):n},Creator.getRelatedObjectNames=function(e,t,r){var o;return o=Creator.getRelatedObjects(e,t,r),_.pluck(o,"object_name")},Creator.getRelatedObjectListActions=function(e,t,r){var o;return o=Creator.getActions(e,t,r),o=_.filter(o,(function(e){return"standard_follow"!==e.name&&("standard_query"!==e.name&&("list"===e.on&&("function"==typeof e.visible?e.visible():e.visible)))}))},Creator.getActions=function(e,t,r){var o,a,n,i,s,c;if(Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),n=Creator.getObject(e))return i=Creator.getPermissions(e,t,r),a=i.disabled_actions,o=_.sortBy(_.values(n.actions),"sort"),_.has(n,"allow_customActions")&&(o=_.filter(o,(function(e){return _.include(n.allow_customActions,e.name)||_.include(_.keys(Creator.getObject("base").actions)||{},e.name)}))),_.has(n,"exclude_actions")&&(o=_.filter(o,(function(e){return!_.include(n.exclude_actions,e.name)}))),_.each(o,(function(e){if(Steedos.isMobile()&&["record","record_only"].indexOf(e.on)>-1&&"standard_edit"!==e.name)return"record_only"===e.on?e.on="record_only_more":e.on="record_more"})),Steedos.isMobile()&&["cms_files","cfs.files.filerecord"].indexOf(e)>-1&&(null!=(s=o.find((function(e){return"standard_edit"===e.name})))&&(s.on="record_more"),null!=(c=o.find((function(e){return"download"===e.name})))&&(c.on="record")),o=_.filter(o,(function(e){return _.indexOf(a,e.name)<0}))},Creator.getListViews=function(e,t,r){var o,a,n,i,s,c;if(Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),e&&(s=Creator.getObject(e)))return o=(null!=(c=Creator.getPermissions(e,t,r))?c.disabled_list_views:void 0)||[],i=[],a=Steedos.isMobile(),_.each(s.list_views,(function(e,t){return e.name=t})),n=_.sortBy(_.values(s.list_views),"sort_no"),_.each(n,(function(e){var t;if(!a||"calendar"!==e.type)return"default"===e.name||(t=_.indexOf(o,e.name)>-1||e._id&&_.indexOf(o,e._id)>-1)&&e.owner!==r?void 0:i.push(e)})),i},Creator.getFields=function(e,t,r){var o,a,n;return Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),o=Creator.getObjectFieldsName(e),n=null!=(a=Creator.getPermissions(e,t,r))?a.unreadable_fields:void 0,_.difference(o,n)},Creator.isloading=function(){return!Creator.bootstrapLoaded.get()},Creator.convertSpecialCharacter=function(e){return e.replace(/([\^\$\(\)\*\+\?\.\\\|\[\]\{\}])/g,"\\$1")},Creator.getDisabledFields=function(e){var t;return t=_.map(e,(function(e,t){return e.autoform&&e.autoform.disabled&&!e.autoform.omit&&t})),t=_.compact(t)},Creator.getHiddenFields=function(e){var t;return t=_.map(e,(function(e,t){return e.autoform&&"hidden"===e.autoform.type&&!e.autoform.omit&&t})),t=_.compact(t)},Creator.getFieldsWithNoGroup=function(e){var t;return t=_.map(e,(function(e,t){return(!e.autoform||!e.autoform.group||"-"===e.autoform.group)&&(!e.autoform||"hidden"!==e.autoform.type)&&t})),t=_.compact(t)},Creator.getSortedFieldGroupNames=function(e){var t;return t=_.map(e,(function(e){return e.autoform&&"-"!==e.autoform.group&&e.autoform.group})),t=_.compact(t),t=_.unique(t)},Creator.getFieldsForGroup=function(e,t){var r;return r=_.map(e,(function(e,r){return e.autoform&&e.autoform.group===t&&"hidden"!==e.autoform.type&&r})),r=_.compact(r)},Creator.getSystemBaseFields=function(){return["created","created_by","modified","modified_by"]},Creator.getFieldsWithoutSystemBase=function(e){return _.difference(e,Creator.getSystemBaseFields())},Creator.getFieldsWithoutOmit=function(e,t){return t=_.map(t,(function(t){var r,o;return(null==(o=(r=_.pick(e,t))[t].autoform)||!o.omit)&&t})),t=_.compact(t)},Creator.getFieldsInFirstLevel=function(e,t){return t=_.map(t,(function(t){return _.indexOf(e,t)>-1&&t})),t=_.compact(t)},Creator.getFieldsForReorder=function(e,t,r){var o,a,n,i,s,c,l,u;for(n=[],i=0,o=_.filter(t,(function(e){return!e.endsWith("_endLine")}));i-1&&(o=e[t].data_type),o):"text"},Meteor.isServer&&(Creator.getAllRelatedObjects=function(e){var t;return t=[],_.each(Creator.Objects,(function(r,o){return _.each(r.fields,(function(r,a){if("master_detail"===r.type&&r.reference_to&&r.reference_to===e)return t.push(o)}))})),Creator.getObject(e).enable_files&&t.push("cms_files"),t}),Meteor.isServer&&(Steedos.formatIndex=function(e){var t,r,o,a,n,i;return o={background:!0},(r=(null!=(a=Meteor.settings)&&null!=(n=a.datasources)&&null!=(i=n.default)?i.documentDB:void 0)||!1)&&e.length>0&&(t=e.join("."),o.name=t,t.length>52&&(o.name=t.substring(0,52))),o})},lib:{"apps.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Creator.appsByName={}},"object_recent.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};this.ObjectRecent={},ObjectRecent.insert=function(e,t,r){return Meteor.call("object_recent_viewed",e,t,Session.get("spaceId"),(function(){if(r&&_.isFunction(r))return r()}))}},"filters_transform.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r;this.FiltersTransform={},r=function(e){return["date","datetime","time","currency","number"].includes(e)?"between":["text","textarea","html"].includes(e)?"contains":"="},FiltersTransform.queryToFilters=function(e){var t,o,a,n;if(e)return n=e.query,a=e.object_name,o=Creator.getObject(a).fields,t=[],_.each(n,(function(e,a){var n,i;if(o[a]){if(i=Creator.getFieldDataType(o,a),["date","datetime","time","currency","number"].includes(i))return t.push({field:a,operation:r(i),start_value:e,value:[e,null]});if(!["text","textarea","html"].includes(i))return["boolean"].includes(i)?t.push({field:a,operation:"=",value:e}):t.push({field:a,operation:r(i),value:e});if(_.isString(e))return t.push({field:a,operation:r(i),value:e});if(_.isArray(e))return t.push({field:a,operation:"=",value:e})}else if(a=a.replace(/(_endLine)$/,""),i=Creator.getFieldDataType(o,a),o[a]&&["date","datetime","time","currency","number"].includes(i))return(n=_.find(t,(function(e){return e.field===a})))?(n.end_value=e,n.value[1]=e):t.push({field:a,operation:r(i),end_value:e,value:[null,e]})})),t}},"form_manager.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;this.FormManager={},SimpleSchema.messages({formValidate:"[value]"}),FormManager.getRelatedInitialValues=(o=this,function(e,t,r){var o,a,n,i,s;if(!_.isString(t))throw new Meteor.Error("main_record_id must be String");return o={},i="",Creator.getRelatedList(e,t).forEach((function(e){if(r===e.object_name)return i=e.related_field_name})),a="company_id",(s=Creator.getObject(r))&&i&&s.fields[i]&&s.fields[i].reference_to_field&&(a=a+","+s.fields[i].reference_to_field),(n=Creator.odata.get(e,t,a))&&i&&n[s.fields[i].reference_to_field]&&(t=n[s.fields[i].reference_to_field]),o={},i&&("objects"===e?o[i]=Creator.getObjectRecord().name:(s=Creator.getObject(r),_.isString(s.fields[i].reference_to)?s.fields[i].multiple?o[i]=[t]:o[i]=t:o[i]={o:e,ids:[t]})),!_.has(o,"company_id")&&(null!=n?n.company_id:void 0)&&(o.company_id=n.company_id),o=Object.assign({},o,FormManager.getInitialValues(r,o))}),FormManager.getInitialValues=function(e,t){var r,o,a;return o=null!=(r=Creator.getObject(e))&&null!=(a=r.form)?a.initialValues:void 0,_.isFunction(o)?o.apply({doc:t||{}}):{}},FormManager.validate=function(e,t){var r,o,a,n,i,s;if(a=null!=(o=Creator.getObject(e))&&null!=(n=o.form)?n.validate:void 0,_.isFunction(a))try{if(s=a.apply({},[null!=(i=AutoForm.getFormValues(t))?i.insertDoc:void 0]),_.isBoolean(s)&&!1===s)return!1;if(!_.isEmpty(s)&&_.isObject(s))return _.each(s,(function(e,r){return AutoForm.addStickyValidationError(t,r,"formValidate",e),toastr.error(e)})),!1}catch(c){return r=c,console.error(r),toastr.error(r.message),!1}return!0},FormManager.onSubmit=function(e,t){var r,o,a,n,i;return o=null!=(r=Creator.getObject(e))&&null!=(n=r.form)?n.onSubmit:void 0,!(_.isFunction(o)&&(a=o.apply({},[null!=(i=AutoForm.getFormValues(t))?i.insertDoc:void 0]),!_.isEmpty(a)&&_.isObject(a)))||(_.each(a,(function(e,r){return AutoForm.addStickyValidationError(t,r,"formValidate",e),toastr.error(e)})),!1)},r=function(e,t,r){var o,a,n;return o={userId:Meteor.userId(),spaceId:Session.get("spaceId"),object_name:e},_.has(r,"previousDoc")&&(o.previousDoc=r.previousDoc),t.endsWith("Delete")?(o.id=r._id,o.doc=Creator.odata.get(e,r._id),t.startsWith("error")&&(o.error=r.error)):t.startsWith("after")?(o.id=null!=(a=r.dbDoc)?a._id:void 0,o.doc=r.dbDoc):t.startsWith("before")?(t.endsWith("Insert")||(o.id=r._id),t.endsWith("Update")?o.doc=null!=(n=r.doc)?n.$set:void 0:o.doc=r.doc):t.startsWith("error")&&(o.id=r._id,o.doc=r.doc,o.error=r.error),o},FormManager.getPreviousDoc=function(e,t,r){var o,a,n,i,s;if(("update"===r||"delete"===r)&&(o="after",a="after"+r.charAt(0).toLocaleUpperCase()+_.rest(r.split("")).join(""),i=null!=(n=Creator.getObject(e))&&null!=(s=n.form)?s[a]:void 0,_.isFunction(i)))return Creator.odata.get(e,t)},FormManager.runHook=function(e,t,o,a){var n,i,s,c,l,u,d,p;if(l=""+o+t.charAt(0).toLocaleUpperCase()+_.rest(t.split("")).join(""),"view"===t||"edit"===t)return FormManager.runViewEditHook(e,l,a.schema,a.record,a.doc);if(s=a.formId,d=null!=(u=Creator.getObject(e))&&null!=(p=u.form)?p[l]:void 0,_.isFunction(d))try{if(n=r(e,l,a),c=d.apply(n),_.isBoolean(c)&&!1===c)return!1;if(s&&"before"===o&&!_.isEmpty(c)&&_.isObject(c))return _.each(c,(function(e,t){return AutoForm.addStickyValidationError(s,t,"formValidate",e),toastr.error(e)})),!1}catch(f){return i=f,console.error(i),toastr.error(i.message),!1}return!0},FormManager.runViewEditHook=function(e,t,r,o,a){var n,i,s,c,l,u,d;if(l=null!=(u=Creator.getObject(e))&&null!=(d=u.form)?d[t]:void 0,_.isFunction(l)&&(s=r.get(),c={id:(i=a||o.get())._id,userId:Meteor.userId(),spaceId:Session.get("spaceId"),object_name:e,doc:i,schema:s},!1!==(n=l.apply(c))))return r.set(s),o.set(i)}},"grid_export.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;this.ObjectGrid={},this.GridExport={},r={equals:"=",notEqual:"!=",contains:"contains",notContains:"notcontains",startsWith:"startswith",endsWith:"=",lessThan:"<",lessThanOrEqual:"<=",greaterThan:">",greaterThanOrEqual:">=",empty:"empty"},o=function(e){var t;return t=[],_.forEach(e,(function(e,o){var a;return"between"===e.type?"number"===e.filterType?t.push([o,"between",[e.numberFrom,e.numberTo]]):e.filter?t.push([o,e.type,e.filter]):t.push([o,"between",[e.dateFrom,e.dateTo]]):_.isEmpty(e.filter)?e.operator?(a=[],e.condition1&&a.push([o,r[e.condition1.type],e.condition1.filter]),a.push(e.operator.toLocaleLowerCase()),e.condition2&&a.push([o,r[e.condition2.type],e.condition2.filter]),t.push(a)):void 0:(a=[o,r[e.type],e.filter],t.push(a))})),t},ObjectGrid.getFilters=function(e,t,r,a,n){var i,s,c,l,u,d;return s=Steedos.Page.Listview.getDefaultName(e,t),l=window.gridRefs&&window.gridRefs[s]&&window.gridRefs[s].current?window.gridRefs[s].current:window.gridRef.current,u=[],i=Creator.getListViewFilters(e,t,r,a,n),d=o(l.api.getFilterModel()),c=_.compact([].concat(i).concat(d))},GridExport.excel=function(e,t,r,a,n,i,s){var c,l,u,d,p,f,m,g,h,v,b,w,S;return u=Steedos.Page.Listview.getDefaultName(e,t),f=window.gridRefs&&window.gridRefs[u]&&window.gridRefs[u].current?window.gridRefs[u].current:window.gridRef.current,v=[],_.each(f.props.columnDefs,(function(e){if(e&&e.field)return v.push(e.field)})),b=[],_.forEach(f.api.getSortModel(),(function(e){return b.push([e.colId,e.sort])})),l=Creator.getListViewFilters(e,t,r,a,n,s),S=o(f.api.getFilterModel()),p=_.compact([].concat(l).concat(S)),c=SteedosFilters.formatFiltersToODataQuery(p),d=r?i+"-"+Creator.getObject(a).label:Creator.getObject(e).label+"-"+(null!=(h=Creator.getListView(e,t))?h.label:void 0),g=[],_.map(b,(function(e){var t;return t="desc"===e[1]?e[0]+" desc":e[0],g.push(t)})),m=g.join(","),d=encodeURIComponent(d),w=r?"/api/record/export/"+a+"?$select="+v.toString()+"&filename="+d:"/api/record/export/"+e+"?$select="+v.toString()+"&filename="+d,b.length>0&&(w=w+"&$orderby="+m),c&&(w=w+"&$filter="+c),Meteor.isCordova?Steedos.cordovaDownload(encodeURI(Steedos.absoluteUrl(w)),d+".xlsx"):window.open(w)}}},client:{"listview.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n,i;n=function(e,t,r){var o,a,n;return o=null!=t?t.columns:void 0,r&&((null!=t?t.mobile_columns:void 0)?o=t.mobile_columns:(null!=(n=Creator.getObjectFirstListView(e))?n.mobile_columns:void 0)?o=n.mobile_columns:o&&(o=Creator.pickObjectMobileColumns(e,o))),o||(a=Creator.getObjectFirstListViewColumns(e,r))&&(o=a),o},o=function(e,t,r){var o,a,i,s,c,l;return s=(c=Creator.getObject(e)).NAME_FIELD_KEY,"organizations"===c.name&&(s="name"),o=[s],(i=Creator.getCollection("object_listviews").findOne(t))?o=n(e,i,r):c.list_views&&(l=c.list_views[t],o=n(e,l,r)),o=o.map((function(e){var t,r;return t=_.isObject(e)?e.field:e,(null!=(r=c.fields[t])?r.type:void 0)?t:void 0})),Creator.isCommonSpace(Session.get("spaceId"))&&o.indexOf("space")<0&&o.push("space"),"cms_files"===e&&o.push("parent"),o=_.compact(o),a=Creator.getObjectFieldsName(e),_.intersection(o,a)},i=function(e,t,r,o){var a;return r?(a=Creator.getObject(e).fields,o&&(t=t.filter((function(e){var t,o;return"master_detail"!==(null!=(o=a[e])?o.type:void 0)||(!!a[e].multiple||(a[e].reference_to?(t=a[e].reference_to,_.isFunction(t)&&(t=t())):t=a[e].optionsFunction({}).getProperty("value"),!!_.isArray(t)||t!==r))}))),t):t},r=function(e,t){var r,o;return o=Creator.getObject(e).fields,r=[],_.each(t,(function(e){var t;if(null!=(t=o[e])?t.depend_on:void 0)return r=_.union(o[e].depend_on)})),r},a=function(e,t,r){var o,a;return a=_.intersection(["owner","company_id","company_ids","locked"],_.keys(e.fields)),!r&&e.enable_tree&&(a.push("parent"),a.push("children")),(o=Creator.getObjectDefaultExtraColumns(e.name))&&(a=_.union(a,o)),a},Creator.unionSelectColumnsWithExtraAndDepandOn=function(e,t,o,n){var i,s;return i=t.name,s=a(t,o,n),e=_.union(e,s),e=_.union(e,r(i,e))},Creator.getListViewFilters=function(e,t,r,o,a,n){var i,s,c,l,u,d,p,f,m,g;if(!e)return null;if(c=Creator.getObject(e),r)l=Creator.getODataRelatedFilter(e,o,a,t,n);else{if(d=Session.get("filter_logic"),p=Session.get("filter_scope"),u=Session.get("filter_items"),s=c.fields,u&&u.length>0&&window.lodash.isArray(u[0]))return l=u,(g=Creator.getStandardQuery(e,Session.get("standard_query")))&&g.length&&(l=l?[l,"and",g]:g),(m=Session.get("grid_sidebar_filters"))&&m.length&&(l=l?[l,"and",m]:m),l||(l=null),l;i=[],_.forEach(u,(function(t){var r,o,a,n,c,l,u,d,p,f,m;if(void 0!==t.value)if(r=s[null!=t?t.field:void 0],o=Creator.getFieldDataType(s,null!=t?t.field:void 0),["text","textarea","html","code"].includes(o)){if(_.isString(t.value)&&(m=t.value.trim().split(" "),l=[],m.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),l.push([t.field,t.operation,e])})),l.length>0))return c=!1,["<>","notcontains"].includes(t.operation)&&(c=!1),i.push(Creator.formatFiltersToDev(l,e,{is_logic_or:c}))}else{if(!["lookup","master_detail"].includes(o))return i.push(t);if(a=null!=r?r.reference_to:void 0,_.isFunction(a)&&(a=a()),!_.isArray(a))return i.push(t);if((null!=(u=t.value)?u.ids:void 0)&&i.push({field:t.field+".ids",operation:t.operation,value:null!=(d=t.value)?d.ids:void 0}),null!=(p=t.value)?p.o:void 0)return n=Creator.getObject(null!=(f=t.value)?f.o:void 0),i.push({field:t.field+".o",operation:t.operation,value:n._collection_name})}})),i.length>0&&(f={filter_logic:d,filter_scope:p,filters:i}),l=Creator.getODataFilter(t,e,f),(g=Creator.getStandardQuery(e,Session.get("standard_query")))&&g.length&&(l=l?[l,"and",g]:g),r||(m=Session.get("grid_sidebar_filters"))&&m.length&&(l=l?[l,"and",m]:m)}return l||(l=null),l},Creator.getODataEndpointUrl=function(e,t,r,o){var a,n;return r?(a=Creator.formatObjectName(o),n=Creator.getListViewIsRecent(e,t)?"/api/v4/"+a+"/recent":"/api/v4/"+a):(a=Creator.formatObjectName(e),n=Creator.getListViewIsRecent(e,t)?"/api/v4/"+a+"/recent":"/api/v4/"+a),Steedos.absoluteUrl(n)},Creator.getListviewColumns=function(e,t,r,a,n,s){var c,l;return c=e.name,l=Tracker.nonreactive((function(){return o(c,a,s)})),n&&n.customRelatedListObject&&(n.columns&&(l=n.columns),s&&n.mobile_columns&&(l=n.mobile_columns),l&&(l=l.map((function(e){return _.isObject(e)?e.field:_.isString(e)?e:void 0})),l=_.uniq(_.compact(l)))),l=i(c,l,t,r)}},views:{"_helpers.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Creator.helpers={object_name:function(){return Session.get("object_name")},object:function(){return Creator.getObject(Session.get("object_name"))},object_listviews:function(){return Creator.getObject("object_listviews")},objectLabel:function(e){return Creator.getObject(e).label},getOperationLabel:function(e){switch(e){case"=":return t("creator_filter_operation_equal");case"<>":return t("creator_filter_operation_unequal");case"<":return t("creator_filter_operation_less_than");case">":return t("creator_filter_operation_greater_than");case"<=":return t("creator_filter_operation_less_or_equal");case">=":return t("creator_filter_operation_greater_or_equal");case"contains":return t("creator_filter_operation_contains");case"notcontains":return t("creator_filter_operation_does_not_contain");case"startswith":return t("creator_filter_operation_starts_with");case"between":return t("creator_filter_operation_between")}},isMobile:function(){return Steedos.isMobile()}}},"template.page_template.js":function e(){Template.__checkName("page_template"),Template.page_template=new Template("Template.page_template",(function(){var e=this;return HTML.Raw('
')}))},"page_template.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_template.onRendered((function(){var e,t;return t=this,e=Session.get("app_id"),this.containerList=[],this.autorun((function(){var r;if(r=Steedos.Page.App.render(t,Session.get("pageApiName"),e))return t.containerList.push(r)}))})),Template.page_template.onDestroyed((function(){return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_object.js":function e(){Template.__checkName("page_object"),Template.page_object=new Template("Template.page_object",(function(){var e=this;return HTML.Raw('
')}))},"page_object.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_object.onRendered((function(){var e;return e=this,Steedos.Page.Object.Template.onRendered.apply(this)})),Template.page_object.onDestroyed((function(){var e;return e=this,Steedos.Page.Object.Template.onDestroyed.apply(this)}))},"template.page_record_view.js":function e(){Template.__checkName("page_record_view"),Template.page_record_view=new Template("Template.page_record_view",(function(){var e=this;return HTML.Raw('
')}))},"page_record_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_record_view.onRendered((function(){var e,t,r;return r=this,e=Session.get("object_name"),t=Session.get("record_id"),this.containerList=[],this.pageName=null,this.autorun((function(){var o,a,n,i,s,c,l,u,d,p;if(d=!0,(l=r.data.regions()).objectName!==(null!=(i=this.lastRegions)?i.objectName:void 0)&&(d=!1),this.lastRegions=l,d&&r.pageName)try{if(SteedosUI.refs[r.pageName])return(p={objectName:e}).recordId=Tracker.nonreactive((function(){return Session.get("record_id")})),n=(null!=(s=SteedosUI.refs[r.pageName])&&null!=(c=s.__$schema)?c.data:void 0)||{},SteedosUI.refs[r.pageName].updateProps({data:window._.defaultsDeep(p,n)})}catch(f){a=f,console.error(r.pageName+": "+a)}if(!d&&r.pageName&&SteedosUI.refs[r.pageName])try{SteedosUI.refs[r.pageName].unmount()}catch(f){a=f,console.error(r.pageName+": "+a)}if(r.data.regions&&(l=Tracker.nonreactive(r.data.regions),this.lastRegions=l,l&&l.page&&l.page.schema&&(u=l.page.schema,_.isString(u)&&(u=JSON.parse(u)),r.pageName=u.name)),e=Tracker.nonreactive((function(){return Session.get("object_name")})),t=Tracker.nonreactive((function(){return Session.get("record_id")})),o=Steedos.Page.Record.render(r,e,t))return r.containerList.push(o)}))})),Template.page_record_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_list_view.js":function e(){Template.__checkName("page_list_view"),Template.page_list_view=new Template("Template.page_list_view",(function(){var e=this;return HTML.Raw('
')}))},"page_list_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_list_view.onRendered((function(){var e,t;return t=this,e=Session.get("object_name"),this.containerList=[],this.pageName=null,this.autorun((function(){var r,o,a,n;if(t.pageName)try{SteedosUI.refs[t.pageName].unmount()}catch(i){o=i,console.error(t.pageName+": "+o)}if(t.data.regions&&(a=t.data.regions())&&a.page&&a.page.schema&&(n=a.page.schema,_.isString(n)&&(n=JSON.parse(n)),t.pageName=n.name),r=Steedos.Page.Listview.render(t,e))return t.containerList.push(r)}))})),Template.page_list_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_related_list_view.js":function e(){Template.__checkName("page_related_list_view"),Template.page_related_list_view=new Template("Template.page_related_list_view",(function(){var e=this;return HTML.Raw('')}))},"page_related_list_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_related_list_view.onRendered((function(){var e,t,r;return r=this,e=Session.get("object_name"),t=Session.get("record_id"),this.containerList=[],this.pageName=null,this.autorun((function(){var o,a,n,i;if(r.pageName)try{SteedosUI.refs[r.pageName].unmount()}catch(s){a=s,console.error(r.pageName+": "+a)}if(r.data.regions&&(n=r.data.regions())&&n.page&&n.page.schema&&(i=n.page.schema,_.isString(i)&&(i=JSON.parse(i)),r.pageName=i.name),o=Steedos.Page.RelatedListview.render(r,e,t))return r.containerList.push(o)}))})),Template.page_related_list_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.app_home.js":function e(){Template.__checkName("creator_app_home"),Template.creator_app_home=new Template("Template.creator_app_home",(function(){var e=this;return""}))},"app_home.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r;r=function(e){var t,r,o,a,n;return(null!=(t=Creator.getApp(e))?t.isExternalUrl:void 0)?/^http(s?):\/\//.test(t.path)?t.blank?window.open(t.path):window.location.href=t.path:FlowRouter.go(t.path):(a=Creator.getAppMenus(e),(r=_.first(a))?"url"===(o=Object.assign({},r,{target:!1})).type&&o.is_use_iframe?FlowRouter.go(o.path):(n=Creator.getAppMenuUrl(o),FlowRouter.go(n)):FlowRouter.go("/app/"+e))},Template.creator_app_home.onRendered((function(){return this.autorun((function(){var e,t,o;if(o=Creator.bootstrapLoaded.get(),_.has(FlowRouter.current().params,"app_id")){if(e=Session.get("app_id"),o&&e)return r(e)}else if(t=Steedos.getFirstApp(),o&&t)return r(t.code||t.id)}))}))},"template.app_iframe.js":function e(){Template.__checkName("creator_app_iframe"),Template.creator_app_iframe=new Template("Template.creator_app_iframe",(function(){var e=this;return Blaze.If((function(){return Spacebars.call(e.lookup("subsReady"))}),(function(){return["\n\t\t",HTML.IFRAME({id:"app_iframe",src:function(){return Spacebars.mustache(e.lookup("url"))},style:"width: 100%; height: 100%;"}),"\n\t"]}))}))},"app_iframe.coffee":function module(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var share=__coffeescriptShare;Template.creator_app_iframe.helpers({subsReady:function(){return Steedos.subsBootstrap.ready()},url:function(){var e,t;return t=Session.get("app_id"),(e=Creator.getApp(t))&&!e.on_click&&e.url?Creator.getUrlWithToken(e.url,e):""}}),Template.creator_app_iframe.events,Template.creator_app_iframe.onCreated((function(){})),Template.creator_app_iframe.onRendered((function(){var app,app_id,e,evalFunString,iframe;if(Steedos.forbidNodeContextmenu(window,"#app_iframe"),app_id=Session.get("app_id"),app=Creator.getApp(app_id),iframe=$("#app_iframe"),app&&app.on_click){evalFunString="(function(){"+app.on_click+"})()";try{return eval(evalFunString)}catch(error){return e=error,console.error("catch some error when eval the on_click script for app link:"),console.error(e.message+"\r\n"+e.stack)}}})),Template.creator_app_iframe.onDestroyed((function(){}))},"template.page_iframe.js":function e(){Template.__checkName("page_iframe"),Template.page_iframe=new Template("Template.page_iframe",(function(){var e=this;return HTML.IFRAME({name:"pageIframe",src:function(){return Spacebars.mustache(e.lookup("url"))},style:function(){return Spacebars.mustache(e.lookup("style"))},class:function(){return Spacebars.mustache(e.lookup("className"))}})}))},"page_iframe.js":function e(){var t=function(e){const{data:t}=e;"nav.click"===t.type&&FlowRouter.current().params.tab_id==t.data.id&&$("[name='pageIframe']").attr("src",$("[name='pageIframe']").attr("src"))};Template.page_iframe.helpers({url:()=>{if(Template.instance().data.regions)return(regions=Template.instance().data.regions()).queryParams.url},className:()=>{if(Template.instance().data.regions)return(regions=Template.instance().data.regions()).queryParams.className||""},style:()=>Template.instance().data.regions&&(regions=Template.instance().data.regions()).queryParams.style||"width: 100%; height: 100%;"}),Template.page_iframe.onCreated((function(){window.addEventListener("message",t)})),Template.page_iframe.onDestroyed((function(){window.removeEventListener("message",t)})),Template.page_iframe.onRendered((function(){window.Steedos.setDocumentTitle({pageName:null,tabName:null})}))},"template.initiate_approval.js":function e(){Template.__checkName("initiate_approval"),Template.initiate_approval=new Template("Template.initiate_approval",(function(){var e=this;return HTML.DIV({class:"modal fade creator-modal",id:"initiate_approval"},"\n\t\t",HTML.DIV({class:"modal-dialog slds-modal slds-fade-in-open"},"\n\t\t\t",HTML.DIV({class:"slds-modal__container"},"\n\t\t\t\t",HTML.HEADER({class:"slds-modal__header"},"\n\t\t\t\t\t",HTML.DIV({"data-dismiss":"modal"},"\n\t\t\t\t\t\t",Blaze._TemplateWith((function(){return{className:Spacebars.call("slds-modal__close slds-button__icon"),iconSize:Spacebars.call("large"),inverse:Spacebars.call(!0),iconCategory:Spacebars.call("utility"),iconName:Spacebars.call("close"),title:Spacebars.call(Spacebars.dataMustache(e.lookup("_"),"close")),variant:Spacebars.call("icon")}}),(function(){return Spacebars.include(e.lookupTemplate("steedos_button"))})),"\n\t\t\t\t\t"),"\n\t\t\t\t\t",HTML.Raw('

\n\t\t\t\t\t\t选择流程发起审批\n\t\t\t\t\t

'),"\n\t\t\t\t"),"\n\n\t\t\t\t",HTML.DIV({class:"slds-modal__content slds-p-around_medium",style:"font-size: 17px;"},"\n\t\t\t\t\t",Blaze.Each((function(){return Spacebars.call(e.lookup("flows"))}),(function(){return["\n\t\t\t\t\t",HTML.DIV({class:"weui_cells_weui_cells_access"},"\n\t\t\t\t\t\t",HTML.A({class:"weui_cell","data-flow":function(){return Spacebars.mustache(e.lookup("flow_id"))}},"\n\t\t\t\t\t\t\t",HTML.I({class:"ion ion-ios-compose-outline"}),HTML.CharRef({html:" ",str:" "}),HTML.CharRef({html:" ",str:" "}),Blaze.View("lookup:flow_name",(function(){return Spacebars.mustache(e.lookup("flow_name"))})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t\t"]})),"\n\n\t\t\t\t"),"\n\n\t\t\t"),"\n\t\t"),"\n\t")}))},"initiate_approval.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.initiate_approval.helpers({flows:function(){return _.where(Creator.object_workflows,{object_name:this.object_name,can_add:!0})}}),Template.initiate_approval.events({"click .weui_cell":function(e,t){var r,o,a,n,i,s,c;o=e.currentTarget.dataset.flow,a=t.data.object_name,n=t.data.record_id,i=[{o:a,ids:[n]}],(s={}).methodOverride="POST",s["X-User-Id"]=Meteor.userId(),s["X-Auth-Token"]=Accounts._storedLoginToken(),c=Steedos.absoluteUrl()+"api/object/workflow/drafts?"+$.param(s),r={Instances:[{flow:o,applicant:Meteor.userId(),space:Session.get("spaceId"),record_ids:i}]},r=JSON.stringify(r),$(document.body).addClass("loading"),$.ajax({url:c,type:"POST",async:!0,data:r,dataType:"json",processData:!1,contentType:"application/json",success:function(e,r){var o;$(document.body).removeClass("loading"),e.errors?e.errors.forEach((function(e){toastr.error(e.errorMessage)})):(o=e.inserts[0],Steedos.openWindow(Steedos.absoluteUrl("/app/"+FlowRouter.current().params.app_id+"/instances/view/"+o._id+"?display="+FlowRouter.current().queryParams.display+"&side_object=instances&side_listview_id=draft")),Modal.hide(t),SteedosUI.reloadRecord(a,n),FlowRouter.reload())},error:function(e,t,r){$(document.body).removeClass("loading"),toastr.error(t)}})}})},"template.amis_action.js":function e(){Template.__checkName("amis_action"),Template.amis_action=new Template("Template.amis_action",(function(){var e=this;return HTML.LI({class:function(){return["steedos-amis-button steedos-button-",Spacebars.mustache(e.lookup("objectName")),"-",Spacebars.mustache(e.lookup("name"))," ",Spacebars.mustache(e.lookup("buttonClassName"))]}})}))},"amis_action.js":function e(){const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;(e=e||"")&&"#"===e[0]?e=t.pathname+t.search+e:e&&"?"===e[0]&&(e=t.pathname+e);const r=e.indexOf("?"),o=e.indexOf("#");let a=~r?e.substring(0,r):~o?e.substring(0,o):e,n=~r?e.substring(r,~o?o:void 0):"",i=~o?e.substring(o):t.hash;if(a){if("/"!=a[0]&&!/^https?\:\/\//.test(a)){let e;const r=t.pathname.split("/");let o;for(r.pop();o=/^\.\.?\//.exec(a);)"../"===o[0]&&r.pop(),a=a.substring(o[0].length);a=r.concat(a).join("/")}}else a=t.pathname;return a+n+i},r=()=>({theme:"antd",getModalContainer:e=>{let t=document.querySelector("#amisModalContainer");return t||((t=document.createElement("div")).className="amis-scope",t.style.height="0px",t.id="amisModalContainer",document.body.appendChild(t)),t},notify:(e,t)=>{var r,o;(null===(r=t.props)||void 0===r?void 0:r.schema.tpl)?SteedosUI.message[e](null===(o=t.props)||void 0===o?void 0:o.schema.tpl):"string"==typeof t?SteedosUI.message[e](t):console.warn("notify",e,t)},confirm:e=>new Promise((t,r)=>SteedosUI.Modal.confirm({title:e,onOk:()=>{t(!0)},okText:"确认",cancelText:"取消"})),jumpTo:(e,r)=>{if("goBack"===e)return window.history.back();e=t(e),r&&"url"===r.actionType?!1===r.blank?FlowRouter.go(e):window.open(e):r&&e&&r.target?window.open(e,r.target):/^https?:\/\//.test(e)?window.location.replace(e):FlowRouter.go(e)}});Template.amis_action.helpers({objectName:()=>{var e=Template.instance().data;return e.button.object||e.button.object_name},name:()=>{var e;return Template.instance().data.button.name},buttonClassName:()=>{var e;return Template.instance().data.buttonClassName}}),Template.amis_action.onRendered(()=>{var e=Template.instance().data,t=e.button,o=e.buttonClassName,a=e.inMore,n=e.data,i=e.env,s=".steedos-button-"+(t.object||e.button.object_name)+"-"+t.name;const c=()=>{var e=Creator.USER_CONTEXT?Creator.USER_CONTEXT.user.language:null;return e?e="cn"===(e="zh"===(e="en"===(e=e.replace("_","-"))?"en-US":e)?"zh-CN":e)?"zh-CN":e:"zh-CN"};Promise.all([waitForThing(window,"amis")]).then(()=>{var e=amisRequire("amis/embed"),o=t.amis_schema?_.isString(t.amis_schema)?JSON.parse(t.amis_schema):t.amis_schema:{type:"service",bodyClassName:"p-0",body:[{type:"button",label:t.label}],regions:["body"]};const a=__meteor_runtime_config__.ROOT_URL,l=lodash.defaultsDeep({},{data:n},{data:{app_id:n.appId,object_name:n.objectName,record_id:n.recordId,formFactor:Steedos.isMobile()?"SMALL":"LARGE",context:{rootUrl:Meteor.isCordova?a.endsWith("/")?a.substr(0,a.length-1):a:"",tenantId:Creator.USER_CONTEXT.spaceId,userId:Creator.USER_CONTEXT.userId,authToken:Creator.USER_CONTEXT.user.authToken,user:Creator.USER_CONTEXT.user},global:{userId:Creator.USER_CONTEXT.userId,spaceId:Creator.USER_CONTEXT.spaceId,user:Creator.USER_CONTEXT.user,now:new Date},scopeId:o.name||o.id,$scopeId:o.name||o.id}});return o=lodash.defaultsDeep(l,o),e.embed(s,o,{locale:c()},Object.assign(r(),i))})})}},layout:{"template.layout.js":function e(){Template.__checkName("creatorLayout"),Template.creatorLayout=new Template("Template.creatorLayout",(function(){var e=this;return Blaze.If((function(){return Spacebars.call(e.lookup("isloading"))}),(function(){return"\n\t"}),(function(){return["\n\t\t",HTML.DIV({class:"steedos skin-blue-light creator h-full flex flex-col relative overflow-hidden"},"\n\t\t\t\n\n\t\t\t",HTML.HEADER({id:"header",class:"steedos-global-header-root flex-none"}),"\n\n\t\t\t\t\n\t\t\t",HTML.DIV({id:"main",class:function(){return["creator-content-wrapper ",Blaze.If((function(){return Spacebars.call(e.lookup("split"))}),(function(){return"split"}))]}},"\n\n\n\n\t\t\t\t",HTML.Comment(' {{#if split}}\n\t\t\t\t\t
\n\t\t\t\t\t\t{{> Template.dynamic template="creatorSidebar"}}\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{{> Template.dynamic template=main}}\n\t\t\t\t\t
\n\t\t\t\t{{else}} '),"\n\t\t\t\t\t",Blaze._TemplateWith((function(){return{template:Spacebars.call(e.lookup("main"))}}),(function(){return Spacebars.include((function(){return Spacebars.call(Template.__dynamic)}))})),"\n\t\t\t\t",HTML.Comment(" {{/if}} "),"\n\t\t\t"),"\n\t\t\t",HTML.FOOTER({id:"footer",class:"steedos-global-footer-root flex-none"}),"\n\t\t"),"\n",HTML.Comment(' \n\t\t
\n\t\t\t{{> status}}\n\t\t
'),"\n\t\t"]}))}))},"layout.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;Template.creatorLayout.helpers(Creator.helpers),Template.creatorLayout.helpers({isloading:function(){return Creator.isloading()},collection:function(){return Session.get("action_collection")},fields:function(){return Session.get("action_fields")},collectionName:function(){return Session.get("action_collection_name")},doc:function(){return Session.get("action_record_id")},saveAndInsert:function(){var e,t,r,o;return!!(e=Session.get("action_save_and_insert"))&&(r=(t=Session.get("action_collection")).replace(/Creator.Collections./,""),null!=(o=Creator.getPermissions(r))?o.allowCreate:void 0)},split:function(){var e,t,r;return!(!(e=Creator.getApp())||"admin"!==e._id)&&(r=/\/app\/\w+\/search\//,t=Session.get("router-path"),!r.test(t))},object_name:function(){return Session.get("object_name")},recordId:function(){return Session.get("recordId")},title:function(){return"编辑"},triggerLabel:function(){return"编辑"},onAddFinish:function(){return function(e){var t,r,o,a,n;return a=e[0],n="/app/"+(t=Session.get("app_id"))+"/"+(r=Session.get("object_name"))+"/view/"+(o=a._id),FlowRouter.go(n),!0}},onEditFinish:function(){return function(){return setTimeout((function(){return FlowRouter.reload()}),1),!0}}}),Template.creatorLayout.onRendered((function(){var e;return e=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),this.autorun((function(){return Steedos.Page.Header.render(Session.get("app_id"),e)})),this.autorun((function(){return Steedos.Page.Footer.render(Session.get("app_id"),e)})),this.autorun((function(){var e,t;if(t=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),window.SteedosUI&&(e=SteedosUI.refs.globalHeader))return Meteor.setTimeout((function(){var t;try{return e.updateProps({location:FlowRouter.current()},(function(){return console.log("amisScope.updateProps callback.......")}))}catch(r){t=r}}),100)})),this.autorun((function(){var e,t;if(t=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),window.SteedosUI&&(e=SteedosUI.refs.globalFooter))return Meteor.setTimeout((function(){var t;try{return e.updateProps({location:FlowRouter.current()},(function(){return console.log("amisScope.updateProps callback.......")}))}catch(r){t=r}}),100)}))})),r=function(){var e;return"calendar"===(null!=(e=Creator.getListView(Session.get("object_name",Session.get("list_view_id"))))?e.type:void 0)},AutoForm.hooks({creatorAddForm:{onSuccess:function(e,t){var o,a,n,i;if($("#afModal").modal("hide"),"/app/:app_id/:object_name/calendar/"!==FlowRouter._current.route.path&&!r())return"post"===t.type?(i="/app/"+(o=Session.get("app_id"))+"/"+(a=t.object_name)+"/view/"+(n=t._id),FlowRouter.go(i)):void 0}}},!1),AutoForm.hooks({creatorEditForm:{onSuccess:function(e,t){var o,a,n,i,s,c;if($("#afModal").modal("hide"),!r())return"post"===t.type&&(c="/app/"+(o=Session.get("app_id"))+"/"+(a=t.object_name)+"/view/"+(s=t._id),FlowRouter.go(c)),this.docId&&t.object_name?(i=Creator.getObjectUrl(t.object_name,this.docId),n=Creator.getObjectRecordName(this.updateDoc.$set,t.object_name),Creator.updateTempNavLabel(t.object_name,i,n)):void 0}}},!1),AutoForm.hooks({creatorCellEditForm:{onSuccess:function(e,t){var r,o;if($("#afModal").modal("hide"),this.docId&&t.object_name)return o=Creator.getObjectUrl(t.object_name,this.docId),r=Creator.getObjectRecordName(this.updateDoc.$set,t.object_name),Creator.updateTempNavLabel(t.object_name,o,r)}}},!1),o=function(e,t){return FlowRouter.current().route.path.endsWith("/:record_id")?FlowRouter.reload():window.refreshGrid()},AutoForm.hooks({creatorAddRelatedForm:{onSuccess:o}},!1)},"template.loading.js":function e(){Template.__checkName("creatorLoading"),Template.creatorLoading=new Template("Template.creatorLoading",(function(){var e=this;return HTML.Raw('
\n
\n Loading\n
\n
\n
\n
')}))},"template.empty_layout.js":function e(){Template.__checkName("empty_layout"),Template.empty_layout=new Template("Template.empty_layout",(function(){var e=this;return Blaze._TemplateWith((function(){return{template:Spacebars.call(e.lookup("main"))}}),(function(){return Spacebars.include((function(){return Spacebars.call(Template.__dynamic)}))}))}))}},mobile:{"template.admin.js":function e(){Template.__checkName("adminMenu"),Template.adminMenu=new Template("Template.adminMenu",(function(){var e=this;return HTML.DIV({class:"admin-menu mobile-template-container",id:"admin_menu"},"\n\n ",HTML.DIV({class:"admin-menu-content mobile-template-content"},"\n\t\t\t",HTML.DIV({class:"weui-panel weui-panel_access user-info"},"\n\t\t\t\t",HTML.A({class:"weui-media-box weui-media-box_appmsg"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box__hd",style:function(){return["background: url(",Spacebars.mustache(e.lookup("avatarURL")),")"]}},"\n\t\t\t\t\t\t",HTML.Raw('\x3c!-- --\x3e'),"\n\t\t\t\t\t"),"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box__bd"},"\n\t\t\t\t\t\t",HTML.H4({class:"weui-media-box__title"},Blaze.View("lookup:name",(function(){return Spacebars.mustache(e.lookup("name"))}))),"\n\t\t\t\t\t\t",HTML.P({class:"weui-media-box__desc"},"\n\t\t\t\t\t\t\t",Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Company")})),":",Blaze.View("lookup:spaceName",(function(){return Spacebars.mustache(e.lookup("spaceName"))})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n\n\t\t\t",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access btn-switch-space"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Switch Company")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",HTML.SPAN({class:"space-name"},Blaze.View("lookup:spaceName",(function(){return Spacebars.mustache(e.lookup("spaceName"))}))),"\n\t\t\t\t\t\t\t\t",HTML.Raw(''),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\n\n\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access btn-change-password"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Change Password")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",HTML.Raw(''),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t"),"\n\t\t\t"),"\n\n ",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access log-out steedos-logout"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Logout")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n "),"\n ")}))},"admin.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.adminMenu.helpers({avatarURL:function(e,t,r,o){var a,n;return n=Meteor.userId(),(e=null!=(a=Creator.getCollection("users").findOne({_id:n}))?a.avatar:void 0)?Steedos.absoluteUrl("avatar/"+Meteor.userId()+"?avatar="+e):Creator.getRelativeUrl("/images/default-avatar.png")},name:function(){var e;return null!=(e=Creator.getCollection("users").findOne())?e.name:void 0},logoutUrL:function(){return Creator.getRelativeUrl("/accounts/a/#/logout")},spaceName:function(){var e;return Session.get("spaceId")&&(e=db.spaces.findOne(Session.get("spaceId")))?e.name:t("none_space_selected_title")}}),Template.adminMenu.events({"click .steedos-logout":function(){return Steedos.logout()},"click .admin-menu-back":function(e,t){var r;return r=urlQuery[urlQuery.length-2],urlQuery.pop(),t.$("#admin_menu").animateCss("fadeOutRight",(function(){return Blaze.remove(t.view),r?FlowRouter.go(r):FlowRouter.go("/app")}))},"click .btn-switch-space":function(e,t){return FlowRouter.go("/user_settings/switchspace")},"click .btn-change-password":function(e,t){return Modal.show("reset_password_modal")},"click .btn-change-avatar":function(e,t){return t.$("#mobile-avator-upload").click()},"change #mobile-avator-upload":function(e,r){var o;if(o=e.target.files[0])return $("body").addClass("loading"),db.avatars.insert(o,(function(e,r){return e?(console.error(e),toastr.error(t(e.reason)),$(document.body).removeClass("loading")):setTimeout((function(){return Meteor.call("updateUserAvatar",r._id,(function(e,r){return(null!=r?r.error:void 0)?($(document.body).removeClass("loading"),toastr.error(t(r.message))):$(document.body).removeClass("loading")}))}),3e3)}))}})},"template.switch_space.js":function e(){Template.__checkName("switchSpace"),Template.switchSpace=new Template("Template.switchSpace",(function(){var e=this;return HTML.DIV({class:"switch-space mobile-template-container",id:"switch_space"},"\n\t\t\n\t\t",HTML.DIV({class:"switch-space-content mobile-template-content"},"\n\t\t\t",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",Blaze.Each((function(){return Spacebars.call(e.lookup("spaces"))}),(function(){return["\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access switchSpace"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:name",(function(){return Spacebars.mustache(e.lookup("name"))}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",Blaze.If((function(){return Spacebars.dataMustache(e.lookup("current_space"),e.lookup("_id"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",HTML.SPAN({class:"weui-icon-success-no-circle"}),"\n\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n\t\t"),"\n\t")}))},"switch_space.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.switchSpace.helpers({spaces:function(){return db.spaces.find()},current_space:function(e){return e===Session.get("spaceId")}}),Template.switchSpace.events({"click .switchSpace":function(e,t){return Steedos.setSpaceId(this._id),FlowRouter.go("/app")},"click .switch-space-back":function(e,t){var r;return r=urlQuery[urlQuery.length-2],urlQuery.pop(),t.$("#switch_space").animateCss("fadeOutRight",(function(){return Blaze.remove(t.view),r?FlowRouter.go(r):FlowRouter.go("/app")}))}})}},"core.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},o;Creator.Pages={},o=["owner","company_id","company_ids","locked"],Steedos.addPage=function(e,t){if(e)return Creator.Pages[e]=t},Creator.getLayout=function(e){return e||(e=Session.get("app_id")),"steedos"===e?"steedosLayout":"creatorLayout"},Creator.createObject=function(e,t){var r,o;return o=Creator.getObject(e),r="Creator.Collections."+e,Session.set("action_collection",r),Session.set("action_save_and_insert",!0),Session.set("action_collection_name",o.label),Session.set("action_object_name",e),Session.set("action_fields",void 0),Session.set("cmDoc",t),Meteor.defer((function(){return $(".creator-add").click()}))},Meteor.isClient&&(Creator.TabularSelectedIds={},Meteor.autorun((function(){var e,t;if(e=Session.get("list_view_id"),t=Session.get("object_name"))return Creator.TabularSelectedIds[t]=[]})),Creator.remainCheckboxState=function(e){var t,r,o,a,n,i,s;if((t=e.find(".select-all")).length&&(a=(o=null!=(n=t[0])?n.dataset:void 0).objectName,i=Creator.TabularSelectedIds[a]))return(r=e.find(".select-one")).each((function(e,t){var r;return r=i.indexOf(t.dataset.id)>-1,$(t).prop("checked",r)})),(s=i.length)>0&&r.length!==s?t.prop("indeterminate",!0):(t.prop("indeterminate",!1),0===s?t.prop("checked",!1):s===r.length?t.prop("checked",!0):void 0)},Creator.isListViewFilterEditable=function(e){return!e.shared||e.shared&&e.owner===Steedos.userId()},Creator.getODataFilter=function(e,t,r){var o,a,n,i,s,c,l,u,d,p,f,m,g;if(g=Meteor.userId(),m=Session.get("spaceId"),a=Creator.Collections.object_listviews.findOne(e))(l=Creator.isListViewFilterEditable(a))||((o={}).filter_scope=a.filter_scope,o.filters=a.filters);else if(o={},m&&g){if(!(u=Creator.getListView(t,e)))return["_id","=",-1];o.filter_scope=u.filter_scope,o.filters=u.filters}if(Creator.isCloudAdminSpace(m)&&_.include(["users","space_users","spaces"],t)&&delete o.filters,o&&(r?(o.filter_scope&&(r.filter_scope=o.filter_scope),_.isFunction(r.filters)||(null!=(d=r.filters)?d.length:void 0)?(_.isFunction(o.filters)||(null!=(p=o.filters)?p.length:void 0))&&(r.filters=[[r.filters,"and",o.filters]]):r.filters=o.filters):r=o),r||(r={}),n=r.filter_logic,i=r.filter_scope,s=r.filters,f=[],_.isFunction(s)&&(s=s()),a?n?(c=Creator.formatLogicFiltersToDev(s,n),f.length?f.push("and",c):f.push(c)):s&&s.length>0&&(f.length>0&&f.push("and"),(s=Creator.formatFiltersToDev(s,t))&&s.length>0&&(s=[s]),_.each(s,(function(e){return f.push(e)}))):m&&g&&("users"!==t||Creator.isCloudAdminSpace(m)||f.push(["_id","=",g]),s&&(s=Creator.formatFiltersToDev(s,t))&&s.length>0&&(s=[s],f.length>0&&f.push("and"),_.each(s,(function(e){if("spaces"!==t||e.length>0&&"_id"!==e[0])return f.push(e)})))),"mine"===i&&(f.length>0&&f.push("and"),f.push(["owner","=",g])),0!==f.length)return f},Creator.getODataRelatedFilter=function(e,t,r,o,a){var n,i,s,c,l,u,d,p,f,m,g,h,v,b,w,S,C;if(r&&(S=Steedos.spaceId(),C=Meteor.userId(),v=a?[a]:Creator.getRelatedList(e,r),h="",u="",w=[],n=function(e){return w.length>0&&w.push("and"),w.push(e)},_.each(v,(function(e){if(e.object_name===t)return e.filtersFunction?u=e.filtersFunction:h=e.related_field_name})),h||u)){if(h=h.replace(/\./g,"/"),o&&(i=Creator.getListView(t,o))){if(s=i.filter_logic,c=i.filter_scope,l=i.filters,u)return l=u(Creator.odata.get(e,r));s?(d=Creator.formatLogicFiltersToDev(l,s),n(d)):l&&l.length>0&&(l=_.map(l,(function(e){return _.isObject(e)&&!_.isArray(e)?Meteor.isClient&&_.isString(null!=e?e._value:void 0)?[e.field,e.operation,Creator.eval("("+e._value+")")()]:[e.field,e.operation,e.value]:e})),(l=Creator.formatFiltersToDev(l,t))&&l.length>0&&(l=[l]),_.each(l,(function(e){return n(e)})))}if("cfs.files.filerecord"===t&&n(["metadata/space","=",S]),m=Creator.getObject(t),p=t===e&&(null!=m?m.enable_tree:void 0),"cms_files"===t?(n(["parent/o","=",e]),n(["parent/ids","=",r])):"objects"===e?n([h,"=",r]):p||((b=null!=m?m.fields:void 0)&&(g=b[h]),g&&g.reference_to_field&&(f=Creator.odata.get(e,r,g.reference_to_field),"permission_fields"===t&&"object_fields"===e&&n(["object_name","=",f.object]),f&&f[g.reference_to_field]&&(r=f[g.reference_to_field])),!g||"master_detail"!==g.type&&"lookup"!==g.type?g&&"grid"===g.type?(n([h+".o","=",e]),n([h+".ids","=",r])):n([h,"=",r]):_.isFunction(g.reference_to)?_.isArray(g.reference_to())?n([h+".ids","=",r]):n([h,"=",r]):_.isArray(g.reference_to)?n([h+".ids","=",r]):n([h,"=",r])),"mine"===c&&n(["owner","=",C]),0!==w.length)return w}},Creator.getJsReportUrlQuery=function(){var e,t,r;return r="?space_id="+Steedos.getSpaceId(),(t=Tracker.nonreactive((function(){return Session.get("filter_items")})))&&(r+="&user_filters="+(e=encodeURI(JSON.stringify(t)))),r},Creator.getJsReportViewUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/web/viewer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.getJsReportExcelUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/api/report_db/"+e+"/excel"),t+=Creator.getJsReportUrlQuery()},Creator.getJsReportPdfUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/api/report_db/"+e+"/pdf"),t+=Creator.getJsReportUrlQuery()},Creator.getStimulsoftReportViewUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/stimulsoft/web/viewer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.getStimulsoftReportDesignerUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/stimulsoft/web/designer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.objectOdataSelectFields=function(e){var t,r;return t=e.fields,r=(r=_.keys(t)).filter((function(e){return e.indexOf(".")<0})),e&&["default","meteor"].indexOf(e.database_name||"default")>-1&&(r=_.union(r.concat(o))),r.join(",")},Creator.objectOdataExpandFields=function(e,t){var r,o;return r=[],o=e.fields,t||(t=_.keys(o)),_.each(t,(function(e){var t,a,n;if(("master_detail"===(null!=(a=o[e])?a.type:void 0)||"lookup"===(null!=(n=o[e])?n.type:void 0))&&(o[e].reference_to?(t=o[e].reference_to,_.isFunction(t)&&(t=t())):_.isFunction(o[e].optionsFunction)&&(t=o[e].optionsFunction({}).getProperty("value")),_.isArray(t)||(t=[t]),t=_.map(t,(function(e){var t,r;return t=(null!=(r=Creator.getObject(e))?r.NAME_FIELD_KEY:void 0)||"name"})),t=_.compact(t),(t=(t=_.uniq(t)).join(","))&&e.indexOf("$")<0))return e.indexOf(".")<0?r.push(e):r.push(e.replace(".","/"))})),r.join(",")},Creator.relatedObjectFileUploadHandler=function(e,r){var o,a,n,i,s,c,l,u,d,p;for(u=null!=(o=e.currentTarget.dataset)?o.parent:void 0,s=e.currentTarget.files,c=0,d=Session.get("record_id"),l=Session.get("object_name"),p=Session.get("spaceId");c0&&(t=!0),!t})),t},Creator.pushCurrentPathToUrlQuery=function(){var e;if((e=FlowRouter.current().path)!==urlQuery[urlQuery.length-1])return urlQuery.push(e)},Creator.getStandardQuery=function(e,t){var r,o,a,n,i,s;if(o=Creator.getObject(e).fields,t&&t.query&&_.size(t.query)&&t.object_name===e)return a=t.object_name,i=t.query,s=[],t.is_mini?_.each(i,(function(e,t){var r,n,i,c;if(o[t])if(r=Creator.getFieldDataType(o,t),["currency","number"].includes(r)){if(!_.isString(e))return s.push([t,"=",e]);if(c=e.trim().split(" "),n=[],c.forEach((function(e){var r,o;try{if(o=Number(e),_.isNumber(o)&&!_.isNaN(o))return n.push([t,"=",o])}catch(a){return r=a,console.error(r)}})),n.length>0)return s.push(Creator.formatFiltersToDev(n,a,{is_logic_or:!1}))}else if(["text","textarea","html","select","autonumber","url","email"].includes(r))if(_.isString(e)){if(c=e.trim().split(" "),i=[],c.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),"select"===r&&o[t].multiple?i.push([t,"=",e]):i.push([t,"contains",e])})),i.length>0)return s.push(Creator.formatFiltersToDev(i,a,{is_logic_or:!1}))}else if(_.isArray(e))return s.push([t,"=",e])})):_.each(i,(function(e,t){var r,n,i,c,l,u;if(o[t]){if(n=Creator.getFieldDataType(o,t),["date","datetime","time","currency","number"].includes(n))return s.push([t,">=",e]);if(["text","textarea","html"].includes(n)){if(_.isString(e)){if(u=e.trim().split(" "),l=[],u.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),l.push([t,"contains",e])})),l.length>0)return s.push(Creator.formatFiltersToDev(l,a,{is_logic_or:!1}))}else if(_.isArray(e))return s.push([t,"=",e])}else{if(["boolean"].includes(n))return s.push([t,"=",JSON.parse(e)]);if(!["lookup","master_detail"].includes(n))return s.push([t,"=",e]);if(i=null!=(r=o[t])?r.reference_to:void 0,_.isFunction(i)&&(i=i()),!_.isArray(i))return s.push([t,"=",e]);if((null!=e?e.ids:void 0)&&s.push({field:t+".ids",operation:"=",value:null!=e?e.ids:void 0}),null!=e?e.o:void 0)return c=Creator.getObject(null!=e?e.o:void 0),s.push({field:t+".o",operation:"=",value:c._collection_name})}}else if(t=t.replace(/(_endLine)$/,""),n=Creator.getFieldDataType(o,t),o[t]&&["date","datetime","time","currency","number"].includes(n))return s.push([t,"<=",e])})),n={is_logic_or:r=!!t.is_mini},Creator.formatFiltersToDev(s,a,n);delete Session.keys.standard_query},Creator.getSafeObjectUrl=function(e,t,r){var o;return _.isString(e)?(o="users"===e?Creator.getObject("space_users"):Creator.getObject(e)).permissions.get().allowRead?Creator.getObjectUrl(e,t,r):void 0:""},Creator.formatFileSize=function(e){var t,r;return r="KB",(t=e/1024)>1024&&(t/=1024,r="MB"),t>1024&&(t/=1024,r="GB"),t.toFixed(2)+r},Creator.getTableCellData=function(e){var r,o,a,n,i,s,c,l,u,d,p,f,m,g,h,v,b,w,S,C,y,j,T,R;if(d=[],R=e.val,g=e.object_name,y=(j=Creator.getObject(g)).NAME_FIELD_KEY,"organizations"===g&&(y="name"),o=e.field){if(a=o.type,"formula"===o.type)a=o.data_type;else if("select"===o.type&&o.data_type&&"text"!==o.data_type)a=o.data_type;else if("summary"===o.type)if("count"===o.summary_type)a="number";else{if(!(C=Creator.getObject(o.summary_object)))throw new Meteor.Error(500,"The summary_object '"+o.summary_object+"' is not found for the field '"+o.name+"'");if(!(S=C.fields[o.summary_field]))throw new Meteor.Error(500,"The summary_field '"+o.summary_field+"' is not found for the field '"+o.name+"'");"formula"!==(a=S.type)&&"summary"!==a||(a=S.data_type),_.isNumber(o.scale)||(r=function(e){var t,o;return _.isNumber(e.scale)?e.scale:"summary"===e.type&&(o=Creator.getObject(e.summary_object))?(t=o.fields[e.summary_field])?r(t):null:void 0},o.scale=r(S))}return v=null!=(h=e.field)?h.reference_to:void 0,_.isFunction(v)&&(v=v()),"grid"===a?d.push({isTable:!0}):"location"===a?d.push({value:(null!=R?R.address:void 0)||"",id:e._id}):"lookup"!==a&&"master_detail"!==a||_.isEmpty(R)?"image"===a?"string"==typeof R?d.push({value:R,id:e._id,isImage:!0,baseUrl:Creator.getRelativeUrl("/api/files/images")}):d.push({value:R,id:e._id,isImages:!0,baseUrl:Creator.getRelativeUrl("/api/files/images")}):"avatar"===a?"string"==typeof R?d.push({value:R,id:e._id,isImage:!0,baseUrl:Creator.getRelativeUrl("/api/files/avatars")}):d.push({value:R,id:e._id,isImages:!0,baseUrl:Creator.getRelativeUrl("/api/files/avatars")}):"code"===a?(R=R?"...":"",d.push({value:R,id:e._id})):"password"===a?(R=R?"******":"",d.push({value:R,id:e._id})):"url"===a?((null!=(f=R)?f.startsWith("http"):void 0)||(f=Steedos.absoluteUrl(encodeURI(f))),d.push({value:R,href:f,id:e._id,isUrl:!0})):"email"===a?d.push({value:R,href:f,id:e._id,isEmail:!0}):"boolean"===a||"toggle"===a?(R=e.val?t("YES"):t("NO"),d.push({value:R,checked:e.val,id:e._id,isBoolean:!0})):"select"===a?(s=o.allOptions||o.options,u=e.doc||{},c=e.record_val,_.isFunction(o.options)&&(s=o.options(c||u)),_.isFunction(o.optionsFunction)&&(s=o.optionsFunction(c||u)),w=e.val,_.isArray(w)||(w=[w]),m=[],_.each(s,(function(e){if(_.indexOf(w,e.value)>-1)return m.push({label:e.label,value:e.value})})),R=(R=m.map((function(e){return e.label}))).join(","),d.push({value:R,items:m,id:e._id,isSelects:!0})):(R&&["datetime","date","time"].indexOf(a)>=0?"odata"===e.agreement?"datetime"===a?"string"==typeof e.val&&/\d+Z$/.test(e.val)?R=moment(e.val).format("YYYY-MM-DD H:mm"):(T=moment().utcOffset()/60,R=moment(e.val).add(T,"hours").format("YYYY-MM-DD H:mm")):"date"===a&&(R="string"==typeof e.val&&/\d+Z$/.test(e.val)?moment.utc(e.val).format("YYYY-MM-DD"):moment(e.val).format("YYYY-MM-DD")):"datetime"===a?R=moment(e.val).format("YYYY-MM-DD H:mm"):"date"===a?R=moment.utc(e.val).format("YYYY-MM-DD"):"time"===a&&(R=moment.utc(e.val).format("HH:mm")):null===e.val?R="":"lookup"===a?_.isFunction(o.optionsFunction)&&(u=e.doc||{},(l=R)&&(_.isArray(l)||(l=[l]),(b=_.filter(o.optionsFunction(u),(function(e){return l.indexOf(e.value)>-1})))&&(R=b.getProperty("label")))):"filesize"===a?R=Creator.formatFileSize(R):["number","currency","percent"].indexOf(a)>-1&&_.isNumber(R)?(p=0,p=_.isNumber(o.scale)?o.scale:"currency"===a?2:0,"percent"===a&&(R*=100),R=Steedos.numberToString(R,p),"percent"===a&&(R+="%")):"markdown"===a?_.isEmpty(R)||(R=Spacebars.SafeString(marked(R))):"html"===a?_.isEmpty(R)||(R=Spacebars.SafeString(R)):"textarea"===a&&R&&(R=(R=R.replace(/\n/g,"\n
")).replace(/ /g," ")),"record_details"!==e.parent_view&&e.field_name===y&&(f=Creator.getObjectUrl(e.object_name,e._id)),d.push({value:R,href:f,id:e._id,type:a})):_.isFunction(o.optionsFunction)&&"company"!==v?(u=e.doc||{},c=e.record_val,(l=R)&&(l=_.isArray(l)?l.map((function(e){return _.isObject(e)?e._id:e})):_.isObject(l)?[l._id]:[l],i=o.optionsFunction(c||u),(b=_.filter(i,(function(e){return l.indexOf(null!=e?e.value:void 0)>-1})))&&(R&&_.isArray(R)&&_.isArray(b)&&(b=Creator.getOrderlySetByIds(b,R,"value")),R=b.getProperty("label"))),v?"objects"===v?_.each(b,(function(t){var r,o,a;return a=t.label,(null!=(r=Creator.getObject(t.value))?r._id:void 0)?(o=Creator.getSafeObjectUrl(v,r._id),d.push({reference_to:v,rid:a,value:a,id:e._id,href:o})):d.push({value:R,id:e._id})})):(n=e.val,_.isArray(n)||(n=n?[n]:[]),_.each(n,(function(t){var r,o,a;return _.isString(t)?(b=_.filter(i,(function(e){return t===(null!=e?e.value:void 0)})),d.push({value:b.getProperty("label"),id:e._id})):(v=t["reference_to._o"]||v,o=t._id,a=t._NAME_FIELD_VALUE,r=Creator.getSafeObjectUrl(v,o),d.push({reference_to:v,rid:o,value:a,href:r,id:e._id}))}))):d.push({value:R,id:e._id})):(_.isArray(R)||(R=R?[R]:[]),_.each(R,(function(t){var r,o,a;if(t)return v=t["reference_to._o"]||v,o=t._id,a=t._NAME_FIELD_VALUE,_.isString(t)&&(o=t,a=t),r=Creator.getSafeObjectUrl(v,o),d.push({reference_to:v,rid:o,value:a,href:r,id:e._id})}))),d}},Creator.openSafeObjectUrl=function(e,t){var r;return Steedos.isMobile()||(r=Creator.getSafeObjectUrl(e,t,"-"))&&window.open(r,"_blank","width=800, height=600, left=50, top= 50, toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes"),"undefined"!=typeof event&&null!==event&&event.stopPropagation(),"undefined"!=typeof event&&null!==event&&event.preventDefault(),!1},Creator.getAppLabel=function(e){return e||(e=Creator.getApp()),e?e.label?t(e.label):t(e.name):""},Creator.measureWidth=_.memoize((function(e,t,r){var o,a,n,i;return(o=arguments.callee.canvas)||(o=document.createElement("canvas"),(n=document.createDocumentFragment()).appendChild(o),arguments.callee.canvas=o),(a=o.getContext("2d")).font=t,i=a.measureText(e).width,r&&i>r?r:i})),Creator.showPreviewButton=function(e){var t,r,o,a,n;return!!((null!=(n=null!=(t=Meteor.settings)&&null!=(r=t.public)?r.webservices:void 0)&&null!=(o=n.officeOnline)?o.url:void 0)&&Steedos.isOfficeFile(e)||(null!=n&&null!=(a=n.pdfOnline)?a.url:void 0)&&Steedos.isPdfFile(e))},Creator.officeOnlinePreview=function(e,t){var r,o,a,n,i,s,c,l,u,d,p,f,m,_,g,h;return a=null!=(s=Meteor.settings)&&null!=(c=s.public)&&null!=(l=c.webservices)&&null!=(u=l.officeOnline)?u.url:void 0,i=null!=(d=Meteor.settings)&&null!=(p=d.public)&&null!=(f=p.webservices)&&null!=(m=f.pdfOnline)?m.url:void 0,a&&""!==a||i&&""!==i?(h=Meteor.userId(),_=Steedos.spaceId(),r={authToken:o=Accounts._storedLoginToken()},e=e+"?token="+(g=window.btoa(JSON.stringify(r))),Steedos.isPdfFile(t)?(n=e,i&&""!==i&&(n=i+encodeURIComponent(e)),Steedos.openWindow(n)):(n=a+encodeURIComponent(e),Steedos.openWindow(n))):(toastr.error(TAPi18n.__("creator_office_online_web_url_required")),!1)},Creator.isImageAttachment=function(e){var t,r;return!(e.split(".").length<2)&&(t=e.split(".").pop().toLowerCase(),-1!==(r=["png","jpg","jpeg","bmp","gif","webp","psd","svg","tiff"]).indexOf(t))},Creator.isHtmlAttachment=function(e){var t,r;return!(e.split(".").length<2)&&(t=e.split(".").pop().toLowerCase(),-1!==(r=["html","htm"]).indexOf(t))}),Meteor.startup((function(){return $(document).on("click",(function(e){return $(e.target).closest(".slds-table td").length<1?$(".slds-table").addClass("slds-no-cell-focus"):$(".slds-table").removeClass("slds-no-cell-focus")})),$(window).resize((function(){if($(".list-table-container table.dataTable").length)return $(".list-table-container table.dataTable thead th").each((function(){var e;return e=$(this).outerWidth(),$(".slds-th__action",this).css("width",e+"px")}))})),$(document).keydown((function(e){if("13"===e.keyCode||"Enter"===e.key){if($(".modal").length>1)return;if("TEXTAREA"!==e.target.tagName||$(e.target).closest("div").hasClass("bootstrap-tagsinput")){if("update"===Session.get("cmOperation"))return e.preventDefault(),e.stopPropagation(),$(".creator-auotform-modals .btn-update").click();if("insert"===Session.get("cmOperation"))return e.preventDefault(),e.stopPropagation(),$(".creator-auotform-modals .btn-insert").click()}}}))}))},"colors.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n,i;n="border-radius: 10px;padding: 1px 6px;display: inline-block;",i=function(e){return 3===(e=e.slice(1)).length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:Number.parseInt(e.slice(0,2),16),g:Number.parseInt(e.slice(2,4),16),b:Number.parseInt(e.slice(4,6),16)}},a=function(e,t,r){var o,a,n,s;return.299*(n=(s=i(e)).r)+.587*(a=s.g)+.114*(o=s.b)>186?r:t},o=function(e,t,r){var o,a,n,s,c,l,u;return(o=.2126*(n=(u=[(c=(l=i(e)).r)/255,(s=l.g)/255,(a=l.b)/255]).map((function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})))[0]+.7152*n[1]+.0722*n[2])>.179?r:t},r=function(e){var t,r;return r=[],t=e.fields,_.each(t,(function(t,a){var i;if(i=t.options,_.isFunction(i)&&(i=i({})),"select"===t.type&&(null!=i?i.length:void 0))return _.each(i,(function(t){var i,s;if(t.color)return i=t.color,/^#/.test(i)||(i="#"+i),s=o(i,"#fff","#333"),r.push(".creator-cell-color-"+e.name+"-"+a+"-"+t.value+"{"+n+"background:"+i+";color:"+s+";}")}))})),r},Creator.appendObjectFieldsColorStyles=function(){var e,t;return $("#object_fields_color_styles").remove(),t=[],_.each(Creator.Objects,(function(e){return t=_.union(t,r(e))})),t.push(".creator-cell-multiple-color{\n\tmargin-right:1px;\n}\n@media (max-width:767px) {\n\t.creator-cell-multiple-color{\n\t\tmargin-right:4px;\n\t}\n}"),e=$('"),$("head").append(e)}},"temp_navs.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},o,a,n,i,s,c,l,u,d,p;s=!1,a=function(){var e;if(e=sessionStorage.getItem("temp_navs"))return e.split(",").map((function(e){var t;return{name:(t=e.split(":"))[0],url:t[1],label:t[2],is_temp:!0}}))},n=function(e,t,r){return sessionStorage.getItem("temp_navs_id")},d=function(e){return sessionStorage.setItem("temp_navs_id",e)},p=function(e){var t,r;return e||(e=[]),t=(r=e.map((function(e){var t;return t=e.name,e.url&&(t+=":"+e.url),e.label&&(t+=":"+e.label),t}))).join(","),sessionStorage.setItem("temp_navs",t)},c=[],o=function(e,t){var r;return r=t||Creator.getObjectUrl(e),c.push(r)},u=function(e,t){var r,o;if(o=t||Creator.getObjectUrl(e),(r=c.indexOf(o))>-1)return c.splice(r,1)},i=function(e,t){var r,o,a,n,i,s;for(r=t||Creator.getObjectUrl(e),o=2,s=6,i=!1;!i&&o<8&&!((a=urlQuery.length-o)<0);)n=urlQuery[a],__meteor_runtime_config__.ROOT_URL_PATH_PREFIX+n!==r?(i=n&&c.indexOf(__meteor_runtime_config__.ROOT_URL_PATH_PREFIX+n)<0,o++):o++;return i?n:null},l=function(e,t,r,a){var n,s,c,l,u,d,p,f,m;return n=Session.get("object_name"),s=Session.get("record_id"),t?(l=(c=Creator.getObjectUrl(n,s))===t)||(l=FlowRouter.current().path===t):l=n===e,l?(d=i(e,t),o(e,t),d?(FlowRouter.go(d),urlQuery.pop(),urlQuery.pop()):((f=r[a])||(f=r[a-1]),f?(m=f.url?f.url:Creator.getObjectUrl(f.name),FlowRouter.redirect(m)):(u=(p=Creator.getAppMenus())[p.length-1],FlowRouter.redirect(u.path)))):o(e,t)},Creator.getTempNavs=function(){var e;return(e=Session.get("temp_navs"))||(e=a())&&Session.set("temp_navs",e),e},Creator.getTempNavsId=function(){var e;return(e=Session.get("temp_navs_id"))||(e=n())&&Session.set("temp_navs_id",e),e},Creator.createTempNav=function(e,t,r){var o,a;if(t||!(["users","cms_files","cfs.files.filerecord"].indexOf(e)>-1))return(a=Creator.getTempNavs())||(a=[]),(o=a.find((function(r){return t?r.name===e&&r.url===t:r.name===e})))?void 0:(a.push({name:e,url:t,label:r,is_temp:!0}),Session.set("temp_navs",a),p(a),u(e,t))},Creator.updateTempNavLabel=function(e,t,r){var o,a;if(t&&r)return(a=Creator.getTempNavs())||(a=[]),(o=a.find((function(r){return r.name===e&&r.url===t})))?(o.label=r,Session.set("temp_navs",a),p(a)):void 0},Creator.removeTempNavItem=function(e,t){var r,o,a;if((a=Session.get("temp_navs"))&&(o=null,r=a.filter((function(r,a){var n;return(n=t?r.name===e&&r.url===t:r.name===e)&&(o=a),!n})),_.isNumber(o)))return s=!0,l(e,t,r,o),Meteor.defer((function(){return Session.set("temp_navs",r),p(r),s=!1})),!0},Creator.resetTempNavsIfNeeded=function(){var e,t,r;if((t=(r=Creator.getTempNavsId())!==(e=Meteor.userId()+":"+Steedos.spaceId()+":"+Session.get("app_id")))&&(Session.set("temp_navs",null),p(null),c.length=0),t||!Session.get("temp_navs_id"))return Session.set("temp_navs_id",e),d(e)},Meteor.startup((function(){if(!Steedos.isMobile())return Tracker.autorun((function(){var e,t;if(Creator.bootstrapLoaded.get()&&(t=Session.get("spaceId"),e=Session.get("app_id"),t&&e))return Creator.resetTempNavsIfNeeded()})),Tracker.autorun((function(e){var r,o,a,n,i,c,l,u,d,p,f,m,g,h,v;if(u=Session.get("object_name"),h=Session.get("tab_name"),p=Session.get("record_id"),i=Creator.getAppMenus(),u&&i&&i.length&&(f=Session.get("record_name"),n=_.pluck(i,"id"),o=Session.get("temp_navs_force_create"),(null!=n?n.indexOf(u||h):void 0)<0||o)){if(o&&s)return void Session.set("temp_navs_force_create",!1);if(!(l=Creator.getObject(u)))return;if(p){if(!(d=Creator.getObjectRecord()))return;if(v=Creator.getObjectUrl(u,p),o&&(r=urlQuery[urlQuery.length-3])&&(g=new RegExp(r+"$")).test(v))return void Session.set("temp_navs_force_create",!1);a=f||("cfs.files.filerecord"===u?t("cfs_files_filerecord__object")+"-"+(null!=d&&null!=(m=d.original)?m.name:void 0):d[c=l.NAME_FIELD_KEY||"name"]),Creator.createTempNav(u,v,a)}else Creator.createTempNav(u);if(o)return Session.set("temp_navs_force_create",!1)}}))}))},"router.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n;this.urlQuery=new Array,o=function(e,t){var r,o;Meteor.userId()&&(Creator.pushCurrentPathToUrlQuery(),"-"!==(r=e.params.app_id)&&r&&Session.get("app_id")!==r?Session.set("app_id",r):"-"!==r||Session.get("app_id")||(o=Steedos.getFirstApp(),Session.set("app_id",o.id)))},n=function(e,t){var r,o,a,n;if(o=Tracker.nonreactive((function(){return Session.get("object_name")})),a=Tracker.nonreactive((function(){return Session.get("record_id")})),r=e.params.object_name,n=e.params.record_id,Session.set("object_name",r),Session.set("tab_name",null),Session.set("pageApiName",null),Session.set("record_id",n),Session.set("record_name",null),n&&(o&&o!==r||a&&n!==a))return Session.set("temp_navs_force_create",!0)},r=function(e,t){var r;if("admin"===(r=e.params.app_id)&&Steedos.isMobile())return t("/user_settings"),urlQuery.pop()},FlowRouter.route("/app",{triggersEnter:[o],action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"creator_app_home"})}}),FlowRouter.route("/app/menu",{triggersEnter:[o],action:function(e,t){var r;return r="app_object_menu",Session.set("hidden_header",!0),BlazeLayout.render(Creator.getLayout(),{main:r})},triggersExit:[function(e,t){if(Steedos.isMobile())return Session.set("hidden_header",void 0)}]}),FlowRouter.route("/app/:app_id",{triggersEnter:[o],action:function(e,t){var r,o,a;return"-"!==(o=FlowRouter.getParam("app_id"))&&(Session.set("object_name",null),Session.set("record_id",null),Session.set("app_id",o)),Session.set("admin_template_name",null),a=(r=Creator.getApp(o))&&r.is_use_iframe?"creator_app_iframe":"creator_app_home",BlazeLayout.render(Creator.getLayout(),{main:a})}}),FlowRouter.route("/app/:app_id/page/:page_id",{triggersEnter:[o],action:function(e,t){var r,o;return console.log("params",e),r=FlowRouter.getParam("app_id"),o=null!=e?e.page_id:void 0,Session.set("pageApiName",o),Session.set("object_name",null),BlazeLayout.render(Creator.getLayout(),{main:"page_template",regions:{appId:r,pageId:o}})},triggersExit:[function(e,t){return Session.set("pageApiName",null)}]}),FlowRouter.route("/page/:page_id/",{action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"page"})}}),FlowRouter.route("/app/:app_id/tab_iframe/:tab_id",{triggersEnter:[o],action:function(e,t){var r;return r=FlowRouter.getParam("tab_id"),Session.set("tab_name",r),Session.set("object_name",null),BlazeLayout.render(Creator.getLayout(),{main:"page_iframe",regions:{params:e,queryParams:t}})},triggersExit:[function(e,t){return Session.set("tab_name",null)}]}),(a=FlowRouter.group({prefix:"/app/:app_id/:object_name",name:"objectRoutes",triggersEnter:[o,n]})).route("/",{triggersEnter:[function(e,t){var r,o,a,n,i;return n=e.params.object_name,o=(null!=(a=window.getFirstListView(n))?a.name:void 0)||(null!=a?a._id:void 0),t(i="/app/"+(r=e.params.app_id)+"/"+n+"/grid/"+o)}],action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"object_home"})}}),a.route("/:record_id/:related_object_name/grid",{action:function(e,t){var r,o,a,n,i,s,c,l;return o={app_id:r=Session.get("app_id"),object_name:n=FlowRouter.getParam("object_name"),record_id:s=FlowRouter.getParam("record_id"),related_object_name:l=FlowRouter.getParam("related_object_name")},Session.set("related_object_name",l),a="related_object_list",(i=Steedos.Page.getPage("related_list",r,l))&&(a="page_related_list_view",c={page:i,appId:Session.get("app_id"),objectName:n,recordId:s,relatedObjectName:l,__timestamp:(new Date).getTime()}),Meteor.setTimeout((function(){return BlazeLayout.render(Creator.getLayout(),{main:a,regions:c})}),10)}}),a.route("/view/:record_id",{action:function(e,t){var r,o,a,n,i,s,c;return t["X-Space-Id"]&&Steedos.setSpaceId(t["X-Space-Id"]),o={app_id:r=FlowRouter.getParam("app_id"),object_name:n=FlowRouter.getParam("object_name"),record_id:s=FlowRouter.getParam("record_id")},ObjectRecent.insert(n,s),Session.set("detail_info_visible",!0),a="creator_view",(i=Steedos.Page.getPage("record",Session.get("app_id"),n,s))&&(a="page_object",c=window._.defaultsDeep({display:Steedos.Page.getDisplay(n)},FlowRouter.current().queryParams,{page:i,appId:Session.get("app_id"),recordId:s,objectName:n,pageType:"record",__timestamp:(new Date).getTime()})),Meteor.setTimeout((function(){return BlazeLayout.render(Creator.getLayout(),{main:a,regions:c})}),10)},triggersExit:[function(e,t){var r,o,a,n;if(Session.get("instance_change")&&("instances"===(null!=(r=e.params)?r.object_name:void 0)&&"draft"===(null!=(o=e.queryParams)?o.side_listview_id:void 0)||"instance_tasks"===(null!=(a=e.params)?a.object_name:void 0)&&"inbox"===(null!=(n=e.queryParams)?n.side_listview_id:void 0)))return InstanceManager.saveIns(!1)}]}),a.route("/grid/:list_view_id",{action:function(e,t){var r,o,a,n,i;return Session.set("record_id",null),Session.get("object_name")===FlowRouter.getParam("object_name")&&Session.get("list_view_id")===FlowRouter.getParam("list_view_id")||(Session.set("filter_target",null),Session.set("filter_items",null)),Session.get("object_name")!==FlowRouter.getParam("object_name")&&Session.set("list_view_id",null),"true"===(null!=t?t.hidden_header:void 0)&&Session.set("hidden_header",!0),"-"!==(r=FlowRouter.getParam("app_id"))&&Session.set("app_id",r),a=FlowRouter.getParam("object_name"),Session.set("object_name",a),Session.set("list_view_id",FlowRouter.getParam("list_view_id")),Session.set("list_view_visible",!1),Tracker.afterFlush((function(){return Session.set("list_view_visible",!0)})),(n=Steedos.Page.getPage("list",Session.get("app_id"),a))&&(o="page_object",i=window._.defaultsDeep({display:Steedos.Page.getDisplay(a)},FlowRouter.current().queryParams,{page:n,appId:Session.get("app_id"),objectName:a,listViewId:Session.get("list_view_id"),pageType:"list",__timestamp:(new Date).getTime()})),BlazeLayout.render(Creator.getLayout(),{main:o,regions:i})}}),FlowRouter.notFound={action:function(e,t){var r;try{throw new Error("404 not found:"+window.location.href)}catch(o){r=o,console.log(r,window.location.href)}return BlazeLayout.render("empty_layout",{main:"notFound"})}}},"tenant.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};$.getJSON("/accounts/settings",(function(e){if(null!=e?e.tenant:void 0)return Session.set("tenant_settings",e.tenant)}))},"animate.js":function e(){$.fn.extend({animateCss:function(e,t){var r=function(e){var t={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(var r in t)if(void 0!==e.style[r])return t[r]}(document.createElement("div"));return this.addClass("animated "+e).one(r,(function(){$(this).removeClass("animated "+e),"function"==typeof t&&t()})),this}})},"colResizable-1.6.js":function e(){!function(e){var t=e(document),r=e("head"),o=null,a={},n=0,i="id",s="px",c="JColResizer",l="JCLRFlex",u=parseInt,d=Math,p=navigator.userAgent.indexOf("Trident/4.0")>0,f;try{f=sessionStorage}catch(T){}r.append("");var m=function(t,o){var s=e(t);if(s.opt=o,s.mode=o.resizeMode,s.dc=s.opt.disabledColumns,s.opt.disable)return _(s);var l=s.id=s.attr(i)||c+n++;s.p=s.opt.postbackSafe,!s.is("table")||a[l]&&!s.opt.partialRefresh&&s.prev(".JCLRgrips").length>0||("col-resize"!==s.opt.hoverCursor&&r.append(""),s.addClass(c).attr(i,l).before('
'),s.g=[],s.c=[],s.w=s.width(),s.gc=s.prev(),s.f=s.opt.fixed,o.marginLeft&&s.gc.css("marginLeft",o.marginLeft),o.marginRight&&s.gc.css("marginRight",o.marginRight),s.cs=u(p?t.cellSpacing||t.currentStyle.borderSpacing:s.css("border-spacing"))||2,s.b=u(p?t.border||t.currentStyle.borderLeftWidth:s.css("border-left-width"))||1,a[l]=s,g(s))},_=function(e){var t=e.attr(i),e;(e=a[t])&&e.is("table")&&(e.removeClass(c+" "+l).gc.remove(),delete a[t])},g=function(t){var r=t.find(">thead>tr:first>th,>thead>tr:first>td");r.length||(r=t.find(">tbody>tr:first>th,>tr:first>th,>tbody>tr:first>td, >tr:first>td")),r=r.filter(":visible"),t.cg=t.find("col"),t.ln=r.length,t.p&&f&&f[t.id]&&h(t,r),r.each((function(r){var o=e(this),a=-1!=t.dc.indexOf(r),n=e(t.gc.append('
')[0].lastChild);n.append(a?"":t.opt.gripInnerHtml).append('
'),r==t.ln-1&&(n.addClass("JCLRLastGrip"),t.f&&n.html("")),n.bind("touchstart mousedown",y),a?n.addClass("JCLRdisabledGrip"):n.removeClass("JCLRdisabledGrip").bind("touchstart mousedown",y),n.t=t,n.i=r,n.c=o,o.w=o.width(),t.g.push(n),t.c.push(o),o.width(o.w).removeAttr("width"),n.data(c,{i:r,t:t.attr(i),last:r==t.ln-1})})),t.cg.removeAttr("width"),t.find("td, th").not(r).not("table th, table td").each((function(){e(this).removeAttr("width")})),t.f||t.removeAttr("width").addClass(l),v(t)},h=function(e,t){var r,o=0,a=0,n=[],i;if(t){if(e.cg.removeAttr("width"),e.opt.flush)return void(f[e.id]="");for(i=(r=f[e.id].split(";"))[e.ln+1],!e.f&&i&&(e.width(i*=1),e.opt.overflow&&(e.css("min-width",i+s),e.w=i));a*{cursor:"+s.opt.dragCursor+"!important}"),l.addClass(s.opt.draggingClass),o=l,s.c[i.i].l)for(var d=0,p;d3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var r in t)if(void 0!==e.style[r])return{end:t[r]};return!1}e.fn.emulateTransitionEnd=function(t){var r=!1,n=this,i;return e(this).one("bsTransitionEnd",(function(){r=!0})),setTimeout((function(){r||e(n).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',r=function(r){e(r).on("click",t,this.close)};function n(t){return this.each((function(){var n=e(this),i=n.data("bs.alert");i||n.data("bs.alert",i=new r(this)),"string"==typeof t&&i[t].call(n)}))}r.VERSION="3.4.1",r.TRANSITION_DURATION=150,r.prototype.close=function(t){var n=e(this),i=n.attr("data-target");i||(i=(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var o=e(document).find(i);function a(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=n.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",a).emulateTransitionEnd(r.TRANSITION_DURATION):a())};var i=e.fn.alert;e.fn.alert=n,e.fn.alert.Constructor=r,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,r.prototype.close)}(jQuery),function(e){"use strict";var t=function(r,n){this.$element=e(r),this.options=e.extend({},t.DEFAULTS,n),this.isLoading=!1};function r(r){return this.each((function(){var n=e(this),i=n.data("bs.button"),o="object"==typeof r&&r;i||n.data("bs.button",i=new t(this,o)),"toggle"==r?i.toggle():r&&i.setState(r)}))}t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var r="disabled",n=this.$element,i=n.is("input")?"val":"html",o=n.data();t+="Text",null==o.resetText&&n.data("resetText",n[i]()),setTimeout(e.proxy((function(){n[i](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(r).attr(r,r).prop(r,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(r).removeAttr(r).prop(r,!1))}),this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var r=this.$element.find("input");"radio"==r.prop("type")?(r.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==r.prop("type")&&(r.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),r.prop("checked",this.$element.hasClass("active")),e&&r.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=r,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var n=e(t.target).closest(".btn");r.call(n,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),n.is("input,button")?n.trigger("focus"):n.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(jQuery),function(e){"use strict";var t=function(t,r){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=r,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function r(r){return this.each((function(){var n=e(this),i=n.data("bs.carousel"),o=e.extend({},t.DEFAULTS,n.data(),"object"==typeof r&&r),a="string"==typeof r?r:o.slide;i||n.data("bs.carousel",i=new t(this,o)),"number"==typeof r?i.to(r):a?i[a]():o.interval&&i.pause().cycle()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var r=this.getItemIndex(t),n;if(("prev"==e&&0===r||"next"==e&&r==this.$items.length-1)&&!this.options.wrap)return t;var i,o=(r+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(o)},t.prototype.to=function(e){var t=this,r=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):r==e?this.pause().cycle():this.slide(e>r?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(r,n){var i=this.$element.find(".item.active"),o=n||this.getItemForDirection(r,i),a=this.interval,s="next"==r?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var c=o[0],l=e.Event("slide.bs.carousel",{relatedTarget:c,direction:s});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var f=e(this.$indicators.children()[this.getItemIndex(o)]);f&&f.addClass("active")}var d=e.Event("slid.bs.carousel",{relatedTarget:c,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(r),"object"==typeof o&&o.length&&o[0].offsetWidth,i.addClass(s),o.addClass(s),i.one("bsTransitionEnd",(function(){o.removeClass([r,s].join(" ")).addClass("active"),i.removeClass(["active",s].join(" ")),u.sliding=!1,setTimeout((function(){u.$element.trigger(d)}),0)})).emulateTransitionEnd(t.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),a&&this.cycle(),this}};var n=e.fn.carousel;e.fn.carousel=r,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this};var i=function(t){var n=e(this),i=n.attr("href");i&&(i=i.replace(/.*(?=#[^\s]+$)/,""));var o=n.attr("data-target")||i,a=e(document).find(o);if(a.hasClass("carousel")){var s=e.extend({},a.data(),n.data()),u=n.attr("data-slide-to");u&&(s.interval=!1),r.call(a,s),u&&a.data("bs.carousel").to(u),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var t=e(this);r.call(t,t.data())}))}))}(jQuery),function(e){"use strict";var t=function(r,n){this.$element=e(r),this.options=e.extend({},t.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+r.id+'"],[data-toggle="collapse"][data-target="#'+r.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function r(t){var r,n=t.attr("data-target")||(r=t.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(n)}function n(r){return this.each((function(){var n=e(this),i=n.data("bs.collapse"),o=e.extend({},t.DEFAULTS,n.data(),"object"==typeof r&&r);!i&&o.toggle&&/show|hide/.test(r)&&(o.toggle=!1),i||n.data("bs.collapse",i=new t(this,o)),"string"==typeof r&&i[r]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e;return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var r,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(r=i.data("bs.collapse"))&&r.transitioning)){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(n.call(i,"hide"),r||i.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var u=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[a](this.$element[0][u])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var r=e.Event("hide.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return i.call(this);this.$element[n](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,n){var i=e(n);this.addAriaAndCollapsedClass(r(i),i)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var r=e.hasClass("in");e.attr("aria-expanded",r),t.toggleClass("collapsed",!r).attr("aria-expanded",r)};var i=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var i=e(this);i.attr("data-target")||t.preventDefault();var o=r(i),a,s=o.data("bs.collapse")?"toggle":i.data();n.call(o,s)}))}(jQuery),function(e){"use strict";var t=".dropdown-backdrop",r='[data-toggle="dropdown"]',n=function(t){e(t).on("click.bs.dropdown",this.toggle)};function i(t){var r=t.attr("data-target");r||(r=(r=t.attr("href"))&&/#[A-Za-z]/.test(r)&&r.replace(/.*(?=#[^\s]*$)/,""));var n="#"!==r?e(document).find(r):null;return n&&n.length?n:t.parent()}function o(n){n&&3===n.which||(e(t).remove(),e(r).each((function(){var t=e(this),r=i(t),o={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(r[0],n.target)||(r.trigger(n=e.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(t.attr("aria-expanded","false"),r.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))})))}function a(t){return this.each((function(){var r=e(this),i=r.data("bs.dropdown");i||r.data("bs.dropdown",i=new n(this)),"string"==typeof t&&i[t].call(r)}))}n.VERSION="3.4.1",n.prototype.toggle=function(t){var r=e(this);if(!r.is(".disabled, :disabled")){var n=i(r),a=n.hasClass("open");if(o(),!a){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",o);var s={relatedTarget:this};if(n.trigger(t=e.Event("show.bs.dropdown",s)),t.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},n.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var n=e(this);if(t.preventDefault(),t.stopPropagation(),!n.is(".disabled, :disabled")){var o=i(n),a=o.hasClass("open");if(!a&&27!=t.which||a&&27==t.which)return 27==t.which&&o.find(r).trigger("focus"),n.trigger("click");var s=" li:not(.disabled):visible a",u=o.find(".dropdown-menu"+s);if(u.length){var c=u.index(t.target);38==t.which&&c>0&&c--,40==t.which&&cdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},c.prototype.init=function(t,r,n){if(this.enabled=!0,this.type=t,this.$element=e(r),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var a=i[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",u="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(r){var n=this.$element.data();for(var i in n)n.hasOwnProperty(i)&&-1!==e.inArray(i,t)&&delete n[i];return(r=e.extend({},this.getDefaults(),n,r)).delay&&"number"==typeof r.delay&&(r.delay={show:r.delay,hide:r.delay}),r.sanitize&&(r.template=u(r.template,r.whiteList,r.sanitizeFn)),r},c.prototype.getDelegateOptions=function(){var t={},r=this.getDefaults();return this._options&&e.each(this._options,(function(e,n){r[e]!=n&&(t[e]=n)})),t},c.prototype.enter=function(t){var r=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(r||(r=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,r)),t instanceof e.Event&&(r.inState["focusin"==t.type?"focus":"hover"]=!0),r.tip().hasClass("in")||"in"==r.hoverState)r.hoverState="in";else{if(clearTimeout(r.timeout),r.hoverState="in",!r.options.delay||!r.options.delay.show)return r.show();r.timeout=setTimeout((function(){"in"==r.hoverState&&r.show()}),r.options.delay.show)}},c.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},c.prototype.leave=function(t){var r=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(r||(r=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,r)),t instanceof e.Event&&(r.inState["focusout"==t.type?"focus":"hover"]=!1),!r.isInStateTrue()){if(clearTimeout(r.timeout),r.hoverState="out",!r.options.delay||!r.options.delay.hide)return r.hide();r.timeout=setTimeout((function(){"out"==r.hoverState&&r.hide()}),r.options.delay.hide)}},c.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var r=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!r)return;var n=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,u=s.test(a);u&&(a=a.replace(s,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?i.appendTo(e(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),f=i[0].offsetWidth,d=i[0].offsetHeight;if(u){var h=a,p=this.getPosition(this.$viewport);a="bottom"==a&&l.bottom+d>p.bottom?"top":"top"==a&&l.top-dp.width?"left":"left"==a&&l.left-fa.top+a.height&&(i.top=a.top+a.height-u)}else{var c=t.left-o,l=t.left+o+r;ca.right&&(i.left=a.left+a.width-l)}return i},c.prototype.getTitle=function(){var e,t=this.$element,r=this.options;return e=t.attr("data-original-title")||("function"==typeof r.title?r.title.call(t[0]):r.title)},c.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(t){var r=this;t&&((r=e(t.currentTarget).data("bs."+this.type))||(r=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,r))),t?(r.inState.click=!r.inState.click,r.isInStateTrue()?r.enter(r):r.leave(r)):r.tip().hasClass("in")?r.leave(r):r.enter(r)},c.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},c.prototype.sanitizeHtml=function(e){return u(e,this.options.whiteList,this.options.sanitizeFn)};var f=e.fn.tooltip;e.fn.tooltip=l,e.fn.tooltip.Constructor=c,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=f,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");function r(r){return this.each((function(){var n=e(this),i=n.data("bs.popover"),o="object"==typeof r&&r;!i&&/destroy|hide/.test(r)||(i||n.data("bs.popover",i=new t(this,o)),"string"==typeof r&&i[r]())}))}t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),r=this.getContent();if(this.options.html){var n=typeof r;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===n&&(r=this.sanitizeHtml(r))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===n?"html":"append"](r)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(r);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=e.fn.popover;e.fn.popover=r,e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(jQuery),function(e){"use strict";function t(r,n){this.$body=e(document.body),this.$scrollElement=e(r).is(document.body)?e(window):e(r),this.options=e.extend({},t.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function r(r){return this.each((function(){var n=e(this),i=n.data("bs.scrollspy"),o="object"==typeof r&&r;i||n.data("bs.scrollspy",i=new t(this,o)),"string"==typeof r&&i[r]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,r="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(r="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),i=t.data("target")||t.attr("href"),o=/^#./.test(i)&&e(i);return o&&o.length&&o.is(":visible")&&[[o[r]().top+n,i]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.getScrollHeight(),r=this.options.offset+t-this.$scrollElement.height(),n=this.offsets,i=this.targets,o=this.activeTarget,a;if(this.scrollHeight!=t&&this.refresh(),e>=r)return o!=(a=i[i.length-1])&&this.activate(a);if(o&&e=n[a]&&(void 0===n[a+1]||e .active"),a=i&&e.support.transition&&(o.length&&o.hasClass("fade")||!!n.find("> .fade").length);function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),r.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(r[0].offsetWidth,r.addClass("in")):r.removeClass("fade"),r.parent(".dropdown-menu").length&&r.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&a?o.one("bsTransitionEnd",s).emulateTransitionEnd(t.TRANSITION_DURATION):s(),o.removeClass("in")};var n=e.fn.tab;e.fn.tab=r,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=n,this};var i=function(t){t.preventDefault(),r.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(e){"use strict";var t=function(r,n){this.options=e.extend({},t.DEFAULTS,n);var i=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(r),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function r(r){return this.each((function(){var n=e(this),i=n.data("bs.affix"),o="object"==typeof r&&r;i||n.data("bs.affix",i=new t(this,o)),"string"==typeof r&&i[r]()}))}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,r,n){var i=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=r&&"top"==this.affixed)return i=e-n&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),r=this.$element.offset();return this.pinnedOffset=r.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var r=this.$element.height(),n=this.options.offset,i=n.top,o=n.bottom,a=Math.max(e(document).height(),e(document.body).height());"object"!=typeof n&&(o=i=n),"function"==typeof i&&(i=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var s=this.getState(a,r,i,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var u="affix"+(s?"-"+s:""),c=e.Event(u+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-r-o})}};var n=e.fn.affix;e.fn.affix=r,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var t=e(this),n=t.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),r.call(t,n)}))}))}(jQuery)}}}},fibers:{"package.json":function e(t,r,e){e.exports={name:"fibers",version:"5.0.3",main:"fibers"}},"fibers.js":function e(t,r,e,n,i){if(process.fiberLib)e.exports=process.fiberLib;else{var o=t("fs"),a=t("path"),s=t("detect-libc");Math.random();var u=a.join(i,"bin",process.platform+"-"+process.arch+"-"+process.versions.modules+("linux"===process.platform?"-"+s.family:""),"fibers");try{process.fiberLib=e.exports=t(u).Fiber}catch(l){throw console.error("## There is an issue with `node-fibers` ##\n`"+u+".node` is missing.\n\nTry running this to fix the issue: "+process.execPath+" "+i.replace(" ","\\ ")+"/build"),console.error(l.stack||l.message||l),new Error("Missing binary. See message above.")}c(e.exports)}function c(e){try{var t=process.binding("async_wrap"),r;if(t.asyncIdStackSize instanceof Function)r=t.asyncIdStackSize;else{if(void 0===t.constants.kStackLength)throw new Error("Couldn't figure out how to get async stack size");f=t.constants.kStackLength,r=function(){return t.async_hook_fields[f]}}var n=t.popAsyncContext||t.popAsyncIds,i=t.pushAsyncContext||t.pushAsyncIds,o,a;if(!n||!i)throw new Error("Push/pop do not exist");o=void 0===t.constants.kExecutionAsyncId?t.constants.kCurrentAsyncId:t.constants.kExecutionAsyncId,a=void 0===t.constants.kTriggerAsyncId?t.constants.kCurrentTriggerId:t.constants.kTriggerAsyncId;var s=t.async_id_fields||t.async_uid_fields;function u(){for(var e=r(),t=new Array(e);e>0;--e){var i=s[o];t[e-1]={asyncId:i,triggerId:s[a]},n(i)}return t}function c(e){for(var t=0;t0)i.changeLanguage(e,n);else if(0!=s[u]){s[u]=0;var c=new XMLHttpRequest;c.overrideMimeType("application/json"),c.open("GET",u,!1),c.send(null),200===c.status?s[u]=1:s[u]=-1,r.addResourceBundle(e,a,JSON.parse(c.response)||{}),i.changeLanguage(e,n)}};r.changeLanguage=p;var b=function(e,t,r){return i.format(e,t,r)};r.format=b;var m=function(){return i.languages};r.getLanguages=m;var g=function(e,t){return i.loadLanguages(e,t)};r.loadLanguages=g;var v=function(e,t){return i.loadNamespaces(e,t)};r.loadNamespaces=v;var y=function(e,t){return i.on(e,t)};r.on=y;var w=function(e,t){return i.off(e,t)};r.off=w,n.__exportStar(t("./i18n/i18n"),r),n.__exportStar(t("./i18n/i18n.app"),r),n.__exportStar(t("./translations"),r)},i18n:{"i18n.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.fallbackKeys=r.getObjectI18nTemplate=r.translationI18nObjects=r.addObjectsI18n=r.translationI18nObject=void 0;var n=t("../index"),i=t("underscore"),o=t("clone"),a="_",s="base",u="core",c="translation",l=function(e,t){var r={lng:t,ns:c};if((0,n.exists)(e,r))return(0,n._t)(e,r)},f=function(e){return"".concat(e,"__object")},d=function(e,t){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t)},h=function(e,t){var r=d(e,t);return"".concat(r).concat("_","inlineHelpText")},p=function(e,t){var r=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","group").concat("_").concat(r)},b=function(e,t,r){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t).concat("_","options").concat("_").concat(r)},m=function(e,t){return"".concat(e).concat("_","action").concat("_").concat(t)},g=function(e,t){return"".concat(e).concat("_","listview").concat("_").concat(t)},v=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},y=function(e,t,r){var n=f(t);return l(n,e)||r||""},w=function(e,t,r,n,i){var o=d(t,r),a=l(o,e);if(!a){var s=v(i);s&&"base"!=t&&"core"!=t&&(a=w(e,s,r,n,i))}return a||n||""},_=function(e,t,r,n,i){var o=h(t,r),a=l(o,e);if(!a){var s=v(i);s&&"base"!=t&&"core"!=t&&(a=_(e,s,r,n,i))}return a||n||""},x=function(e,t,r,n){var i=p(t,r);return l(i,e)||n||""},k=function(e,t,r,n,i,o){var a=b(t,r,n),s=l(a,e);if(!s){var u=v(o);u&&"base"!=t&&"core"!=t&&(s=k(e,u,r,n,i,o))}return s||i||""},S=function(e,t,r,n,i){var o=m(t,r),a=l(o,e);if(!a){var s=v(i);s&&"base"!=t&&"core"!=t&&(a=S(e,s,r,n,i))}return a||n||""},j=function(e,t,r,n,i){var o=g(t,r),a=l(o,e);if(!a){var s=v(i);s&&"base"!=t&&"core"!=t&&(a=j(e,s,r,n,i))}return a||n||""},A=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},D=function(e){i.forEach(e.fields,(function(e,t){var r=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;return e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return r.push(A(e))}))):r.push(A(e))})),e.options=r}catch(n){console.error("convertFieldsOptions error: ",e.options,n)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return r.push({label:e,value:t})})),e.options=r)}))},E=function(e,t,r){r.label=y(e,t,r.label),i.each(r.fields,(function(n,o){if(n.label=w(e,t,o,n.label,r.datasource),n.inlineHelpText&&(n.inlineHelpText=_(e,t,o,n.inlineHelpText,r.datasource)),n.group&&(n.group=x(e,t,n.group,n.group)),n.options){var a=[];i.each(n.options,(function(n){if(i.has(n,"value")){var s=k(e,t,o,n.value,n.label,r.datasource);a.push(i.extend({},n,{label:s}))}else a.push(n)})),n.options=a}})),i.each(r.actions,(function(n,i){n.label=S(e,t,i,n.label,r.datasource)})),i.each(r.list_views,(function(n,i){n.label=j(e,t,i,n.label,r.datasource)}))};r.translationI18nObject=E;var C=function(e){i.each(e,(function(e){(0,n.addResourceBundle)(e.lng,c,e.data,!0,!0)}))};r.addObjectsI18n=C;var O=function(e,t){i.each(t,(function(t,n){(0,r.translationI18nObject)(e,n,t)}))};r.translationI18nObjects=O;var T=function(e,t,r){var n=o(r);D(n);var a={};return a[f(t)]=y(e,t,n.label),i.each(n.fields,(function(r,o){a[d(t,o)]=w(e,t,o,r.label),r.inlineHelpText&&(a[h(t,o)]=_(e,t,o,r.inlineHelpText,n.datasource)),r.group&&(a[p(t,r.group)]=x(e,t,r.group,r.group)),r.options&&i.each(r.options,(function(r){i.has(r,"value")&&(a[b(t,o,r.value)]=k(e,t,o,r.value,r.label))}))})),i.each(n.actions,(function(r,n){a[m(t,n)]=S(e,t,n,r.label)})),i.each(n.list_views,(function(r,n){a[g(t,n)]=j(e,t,n,r.label)})),a};r.getObjectI18nTemplate=T,r.fallbackKeys={getObjectLabelKey:f,getObjectFieldLabelKey:d,getObjectFieldInlineHelpTextLabelKey:h,getObjectFieldGroupKey:p,getObjectFieldOptionsLabelKey:b,getObjectActionLabelKey:m,getObjectListviewLabelKey:g}},"i18n.app.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.appFallbackKeys=r.getAppI18nTemplate=r.translationI18nApps=r.translationI18nMenus=void 0;var n=t("../index"),i=t("underscore"),o=t("clone"),a="translation",s="_",u=function(e,t){var r={lng:t,ns:a};if((0,n.exists)(e,r))return(0,n._t)(e,r)},c=function(e){return"app".concat("_").concat(e).concat("_","name")},l=function(e){return"app".concat("_").concat(e).concat("_","description")},f=function(e,t){var r=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","tab_group").concat("_").concat(r)},d=function(e){return"menu".concat("_").concat(e)},h=function(e){return"tab".concat("_").concat(e)},p=function(e,t,r){var n=c(t);return u(n,e)||r||""},b=function(e,t,r){var n=l(t);return u(n,e)||r||""},m=function(e,t,r){var n=d(t);return u(n,e)||r||""},g=function(e,t,n){n.label=p(e,t,n.label||n.name),n.description=b(e,t,n.description),(0,r.translationI18nMenus)(e,n.admin_menus)},v=function(e,t){i.each(t,(function(t){var r=m(e,t._id,t.label||t.name);t.label=r,t.name=r}))};r.translationI18nMenus=v;var y=function(e,t){i.each(t,(function(t,r){g(e,r,t)}))};r.translationI18nApps=y;var w=function(e,t,r){var n=o(r),a={};return a[c(t)]=p(e,t,n.label||n.name),a[l(t)]=b(e,t,n.description),i.each(n.admin_menus,(function(t){a[d(t._id)]=m(e,t._id,t.label||t.name)})),a};r.getAppI18nTemplate=w,r.appFallbackKeys={getAppLabelKey:c,getAppDescriptionKey:l,getAppGroupKey:f,getMenuLabelKey:d,getTabKey:h}}},translations:{"index.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SteedosTranslationPrefixKeys=r.convertObject=void 0;var n=t("tslib"),i=t("underscore");n.__exportStar(t("./objectTranslation"),r),n.__exportStar(t("./translation"),r),n.__exportStar(t("./templates/objectTranslation"),r),n.__exportStar(t("./templates/translation"),r);var o=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},a=function(e){i.forEach(e.fields,(function(e,t){var r=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return r.push(o(e))}))):r.push(o(e))})),e.options=r}catch(n){console.error("convertFieldsOptions error: ",e.options,n)}else if(e.options&&i.isArray(e.options))try{i.forEach(e.options,(function(e){i.isString(e)?r.push(o(e)):r.push(e)})),e.options=r}catch(n){console.error("Creator.convertFieldsOptions",e.options,n)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return r.push({label:e,value:t})})),e.options=r)}))},s;r.convertObject=a,function(e){e.Object="CustomObject",e.Field="CustomField",e.Action="CustomAction",e.Listview="CustomListview",e.Permission="CustomPermission",e.ValidationRule="CustomValidationRule",e.Application="CustomApplication",e.Tab="CustomTabs",e.Permissionset="CustomPermissionset",e.Profile="CustomProfile",e.Report="CustomReport",e.Workflow="Workflow",e.Layout="Layout",e.Client="Client",e.Server="Server",e.Function="Function",e.Router="Router",e.Trigger="Trigger"}(s=r.SteedosTranslationPrefixKeys||(r.SteedosTranslationPrefixKeys={}))},"objectTranslation.js":function e(t,r,e,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.addObjectsTranslation=r.getObjectTranslationTemplate=r.translationObjects=r.translationObject=r.translationObjectLabel=void 0;var i=t("underscore"),o=t("./"),a=t("../index"),s=t("./index"),u=t("../i18n/i18n"),c=t("lodash"),l=t("crypto"),f,d=(0,t("@steedos/cachers").getCacher)("lru.translations.objects");function h(e){var t;return l.createHash("md5").update(e).digest("hex")}var p=function(e,t){return"".concat(e,"_").concat(t.name,"_").concat(h(JSON.stringify(t)))},b=t("clone"),m=".",g="base",v="core",y="translation",w="object",_="field",x="listview",k="action",S=function(e,t){var r={lng:t,ns:y,keySeparator:!1};if((0,a.exists)(e,r))return(0,a._t)(e,r)},j=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},A=function(e){switch(e){case"object":return o.SteedosTranslationPrefixKeys.Object;case"field":return o.SteedosTranslationPrefixKeys.Field;case"listview":return o.SteedosTranslationPrefixKeys.Listview;case"action":return o.SteedosTranslationPrefixKeys.Action;default:return"CustomLabels"}},D=function(e){var t;return[A(),e].join(".")},E=function(e){var t;return[A("object"),e,"label"].join(".")},C=function(e){var t;return[A("object"),e,"description"].join(".")},O=function(e,t){var r;return t&&(t=t.replace(/\./g,"_")),[A("field"),e,t,"label"].join(".")},T=function(e,t){var r;return t&&(t=t.replace(/\./g,"_")),[A("field"),e,t,"help"].join(".")},M=function(e,t){var r;return t&&(t=t.replace(/\./g,"_")),[A("field"),e,t,"description"].join(".")},B=function(e,t){var r=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_"),n;return[A("field"),e,"group",r].join(".")},I=function(e,t,r){var n;return t&&(t=t.replace(/\./g,"_")),[A("field"),e,t,"options",r].join(".")},R=function(e,t){var r;return[A("action"),e,t].join(".")},N=function(e,t){var r;return[A("listview"),e,t].join(".")},F=function(e,t,r){var n,i=[E(t)],o=u.fallbackKeys.getObjectLabelKey(t);return o&&i.push(o),S(i,e)||r||""};r.translationObjectLabel=F;var P=function(e,t,r){var n=C(t);return S(n,e)||r||""},L=function(e,t,r,n,i,o){var a,s=[O(t,r)],c=u.fallbackKeys.getObjectFieldLabelKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=L(e,f,r,n,i))}return l||n||""},q=function(e,t,r,n,i,o){var a,s=[T(t,r)],c=u.fallbackKeys.getObjectFieldInlineHelpTextLabelKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=q(e,f,r,n,i))}return l||n||""},z=function(e,t,r,n,i,o){var a=M(t,r),s,u=S([a],e);if(1!=o&&!u){var c=j(i);c&&"base"!=t&&"core"!=t&&(u=z(e,c,r,n,i))}return u||n||""},U=function(e,t,r,n,i,o){var a,s=[B(t,r)],c=u.fallbackKeys.getObjectFieldGroupKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=U(e,f,r,n,i))}return l||n||""},H=function(e,t,r,n,i,o,a){var s,c=[I(t,r,n)],l=u.fallbackKeys.getObjectFieldOptionsLabelKey(t,r,n);l&&c.push(l);var f=S(c,e);if(1!=a&&!f){var d=j(o);d&&"base"!=t&&"core"!=t&&(f=H(e,d,r,n,i,o))}return f||i||""},W=function(e,t,r,n,i,o){var a,s=[R(t,r)],c=u.fallbackKeys.getObjectActionLabelKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=W(e,f,r,n,i))}return l||n||""},$=function(e,t,r,n,i,o){var a,s=[N(t,r)],c=u.fallbackKeys.getObjectListviewLabelKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=$(e,f,r,n,i))}return l||n||""},Y=function(e,t,n,o,a){void 0===a&&(a=!1);var u=p(e,n);"test_obj_layout1"===t&&console.log("translationObject",t,u);var l=d.get(u);if(l)return Object.assign(n,(0,c.cloneDeep)(l));o&&(0,s.convertObject)(n),n.label=(0,r.translationObjectLabel)(e,t,n.label),n.description=P(e,t,n.description),i.each(n.fields,(function(r,o){if(r.label=L(e,t,o,r.label,n.datasource,a),r.inlineHelpText&&(r.inlineHelpText=q(e,t,o,r.inlineHelpText,n.datasource,a)),r.group&&(r.group=U(e,t,r.group,r.group,n.datasource,a)),r.options){var s=[];i.each(r.options,(function(r){if(i.has(r,"value")){var u=H(e,t,o,r.value,r.label,n.datasource,a);s.push(i.extend({},r,{label:u}))}else s.push(r)})),r.options=s}})),i.each(n.actions,(function(r,i){r.label=W(e,t,i,r.label,n.datasource,a)})),i.each(n.list_views,(function(r,i){r.label=$(e,t,i,r.label,n.datasource,a)})),d.set(u,(0,c.cloneDeep)(n))};r.translationObject=Y;var V=function(e,t){i.each(t,(function(t,n){(0,r.translationObject)(e,n,t)}))};r.translationObjects=V;var K=function(e,t,n){var o=b(n);(0,s.convertObject)(o);var a={};return a[E(t)]=(0,r.translationObjectLabel)(e,t,o.label),a[C(t)]=P(e,t,o.description),i.each(o.fields,(function(r,n){a[O(t,n)]=L(e,t,n,r.label),r.inlineHelpText&&(a[T(t,n)]=q(e,t,n,r.inlineHelpText,o.datasource)),r.description&&(a[M(t,n)]=z(e,t,n,r.description,o.datasource)),r.group&&(a[B(t,r.group)]=U(e,t,r.group,r.group,o.datasource)),r.options&&i.each(r.options,(function(r){i.has(r,"value")&&(a[I(t,n,r.value)]=H(e,t,n,r.value,r.label))}))})),i.each(o.actions,(function(r,n){a[R(t,n)]=W(e,t,n,r.label)})),i.each(o.list_views,(function(r,n){a[N(t,n)]=$(e,t,n,r.label)})),a};function G(e,t){var r=b(e);(0,s.convertObject)(r);var n={},o=r.name;return o||console.error("Error: Invalid objectTranslation:"+t),n[E(o)]=r.label,n[C(o)]=r.description,i.each(r.fields,(function(e,t){n[O(o,t)]=e.label,e.help&&(n[T(o,t)]=e.help),e.description&&(n[M(o,t)]=e.description),e.options&&i.each(e.options,(function(e){i.has(e,"value")&&(n[I(o,t,e.value)]=e.label)}))})),i.each(r.groups,(function(e,t){n[B(o,t)]=e})),i.each(r.actions,(function(e,t){n[R(o,t)]=e.label})),i.each(r.listviews,(function(e,t){n[N(o,t)]=e.label})),i.each(r.CustomLabels,(function(e,t){n[D(t)]=e})),n}r.getObjectTranslationTemplate=K;var X=function(e){i.each(e,(function(e){var t=G(e.data,e.__filename);(0,a.addResourceBundle)(e.lng,y,t,!0,!0)}))};r.addObjectsTranslation=X},"translation.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.addTranslations=r.convertTranslation=r.convertTranslationData=r.getAppTranslationTemplate=r.translationApps=r.translationMenus=r.translationApp=r.translationTabLabel=r.translationTabGroup=void 0;var n=t("../index"),i=t("underscore"),o=t("./"),a=t("../i18n/i18n.app"),s=t("clone"),u="translation",c=".",l="app",f="menu",d="tab",h=function(e){switch(e){case"app":return o.SteedosTranslationPrefixKeys.Application;case"tab":return o.SteedosTranslationPrefixKeys.Tab;default:return"CustomLabels"}},p=function(e){var t;return[h(),e].join(".")},b=function(e,t){var r={lng:t,ns:u,keySeparator:!1};if((0,n.exists)(e,r))return(0,n._t)(e,r)},m=function(e){var t;return[h("app"),e,"name"].join(".")},g=function(e){var t;return[h("app"),e,"description"].join(".")},v=function(e,t){var r,n;return[h("app"),e,"groups",t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_")].join(".")},y=function(e){var t;return[h("menu"),"menu_".concat(e)].join(".")},w=function(e){var t;return[h("tab"),e].join(".")},_=function(e,t,r){var n,i=[m(t)],o=a.appFallbackKeys.getAppLabelKey(t);return o&&i.push(o),b(i,e)||r||""},x=function(e,t,r){var n,i=[g(t)],o=a.appFallbackKeys.getAppDescriptionKey(t);return o&&i.push(o),b(i,e)||r||""},k=function(e,t,r,n){var i,o=[v(t,r)],s=a.appFallbackKeys.getAppGroupKey(t,r);return s&&o.push(s),b(o,e)||n||""};r.translationTabGroup=k;var S=function(e,t,r){var n,i=[y(t)],o=a.appFallbackKeys.getMenuLabelKey(t);return o&&i.push(o),b(i,e)||r||""},j=function(e,t,r){var n,i=[w(t)],o=a.appFallbackKeys.getTabKey(t);return o&&i.push(o),b(i,e)||r||""};r.translationTabLabel=j;var A=function(e,t,n){n.label=_(e,t,n.label||n.name),n.description=x(e,t,n.description),i.each(n.tab_groups,(function(i,o){n.tab_groups[o].id=i.id||i.group_name,n.tab_groups[o].group_name=(0,r.translationTabGroup)(e,t,i.group_name,i.group_name)})),(0,r.translationMenus)(e,n.admin_menus)};r.translationApp=A;var D=function(e,t){i.each(t,(function(t){var r=S(e,t._id,t.label||t.name);t.label=r,t.name=r}))};r.translationMenus=D;var E=function(e,t){i.each(t,(function(t,n){(0,r.translationApp)(e,n,t)}))};r.translationApps=E;var C=function(e,t,r){var n=s(r),o={};return o[m(t)]=_(e,t,n.label||n.name),o[g(t)]=x(e,t,n.description),i.each(n.admin_menus,(function(t){o[y(t._id)]=S(e,t._id,t.label||t.name)})),o};r.getAppTranslationTemplate=C;var O=function(e,t,r){i.isArray(r)?i.each(r,(function(e){O(e,"",e)})):r&&i.each(i.keys(r),(function(n){var o=t?"".concat(t,".").concat(n):n,a=r[n];"object"==typeof a?i.isArray(a)?i.each(a,(function(e){O(e,o,a)})):O(e,o,a):e[o]=a}))};function T(e){for(var t in e)"object"==typeof e[t]&&O(e,t,e[t]);return e}r.convertTranslationData=T;var M=function(e){var t=s(e),r={};return i.each(t.CustomApplications,(function(e,t){r[m(t)]=e.name,r[g(t)]=e.description,i.each(e.groups,(function(e,n){r[v(t,n)]=e}))})),i.each(t.CustomTabs,(function(e,t){r[w(t)]=e})),i.each(t.CustomLabels,(function(e,t){var n;if("simpleschema"!=t&&i.isObject(e)){var o=T(((n={})[t]=e,n));i.each(o,(function(e,t){i.isObject(e)||(r[p(t)]=e)}))}else r[p(t)]=e})),r};r.convertTranslation=M;var B=function(e){i.each(e,(function(e){var t=(0,r.convertTranslation)(e.data);(0,n.addResourceBundle)(e.lng,u,t,!0,!0)}))};r.addTranslations=B},templates:{"objectTranslation.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getObjectMetadataTranslationTemplate=void 0;var n=t("underscore"),i=t("../index"),o=t("clone");function a(e,t){var r={};return n.each(e,(function(e){r[e]="help"===e?t.inlineHelpText||"":t[e]||""})),r}function s(e){return a(["label","description"],e)}function u(e){switch(e.type){case"select":return a(["label","help","options","description"],e);default:return a(["label","help","description"],e)}}function c(e){return a(["label"],e)}function l(e){return a(["label"],e)}function f(e){var t={};return n.each(e,(function(e,r){t[r]=u(e)})),t}function d(e){var t={};return n.each(e,(function(e,r){t[r]=l(e)})),t}function h(e){var t={};return n.each(e,(function(e,r){t[r]=c(e)})),t}function p(e,t){var r={};return n.each(e,(function(e,n){if(e.group){var i=e.group.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");r[i]=t[n].group}})),r}var b=function(e,t,r,a){void 0===a&&(a=!1);var u=o(r);1!=a&&(0,i.translationObject)(e,t,u,!0,a);var c=Object.assign({},s(u));c=Object.assign({},c,{fields:f(u.fields)});var l=p(r.fields,u.fields);n.isEmpty(l)||(c=Object.assign({},c,{groups:l}));var b=h(u.list_views);n.isEmpty(b)||(c=Object.assign({},c,{listviews:b}));var m=d(u.actions);return n.isEmpty(m)||(c=Object.assign({},c,{actions:m})),Object.assign({name:t},c)};r.getObjectMetadataTranslationTemplate=b},"translation.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getAppMetadataTranslationTemplate=void 0;var n=t("underscore"),i=t("../index"),o=t("clone");function a(e,t){var r={};return n.each(e,(function(e){r[e]=t[e]||""})),r}function s(e){var t={groups:{}};return e?(n.each(e,(function(e){var r=e.group_name.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t.groups[r]=e.group_name})),t):{}}var u=function(e){return Object.assign({},a(["name","description"],e),s(e.tab_groups))},c=function(e){var t={};return n.each(e,(function(e,r){t[r]=r})),t},l=function(e){var t={};return n.each(e,(function(e){var r=e.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t[r]=e})),t},f=function(e,t,r){var n,a=o(r);(0,i.translationApp)(e,t,a);var s={},f;return a.tab_items?s=c(a.tab_items):a.tabs&&(s=l(a.tabs)),Object.assign({},{CustomApplications:(n={},n[t]=u(a),n)},{CustomTabs:s})};r.getAppMetadataTranslationTemplate=f}}}},node_modules:{i18next:{"package.json":function e(t,r,e){e.exports={name:"i18next",version:"19.9.2",main:"./dist/cjs/i18next.js",module:"./dist/esm/i18next.js"}},dist:{cjs:{"i18next.js":function e(t,r,e){"use strict";var n=t("@babel/runtime/helpers/typeof"),i=t("@babel/runtime/helpers/objectSpread"),o=t("@babel/runtime/helpers/classCallCheck"),a=t("@babel/runtime/helpers/createClass"),s=t("@babel/runtime/helpers/possibleConstructorReturn"),u=t("@babel/runtime/helpers/getPrototypeOf"),c=t("@babel/runtime/helpers/assertThisInitialized"),l=t("@babel/runtime/helpers/inherits");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=f(n),h=f(i),p=f(o),b=f(a),m=f(s),g=f(u),v=f(c),y=f(l),w={type:"logger",log:function e(t){this.output("log",t)},warn:function e(t){this.output("warn",t)},error:function e(t){this.output("error",t)},output:function e(t,r){console&&console[t]&&console[t].apply(console,r)}},_,x=new(function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p.default(this,e),this.init(t,r)}return b.default(e,[{key:"init",value:function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||w,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function e(t){this.debug=t}},{key:"log",value:function e(){for(var t=arguments.length,r=new Array(t),n=0;n1?r-1:0),i=1;i-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:n(o.shift())}}function E(e,t,r){var n=D(e,t,Object),i,o;n.obj[n.k]=r}function C(e,t,r,n){var i=D(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],n&&(o[a]=o[a].concat(r)),n||o[a].push(r)}function O(e,t){var r=D(e,t),n=r.obj,i=r.k;if(n)return n[i]}function T(e,t,r){var n=O(e,r);return void 0!==n?n:O(t,r)}function M(e,t,r){for(var n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?"string"==typeof e[n]||e[n]instanceof String||"string"==typeof t[n]||t[n]instanceof String?r&&(e[n]=t[n]):M(e[n],t[n],r):e[n]=t[n]);return e}function B(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var I={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function R(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return I[e]})):e}var N="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,F=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return p.default(this,t),r=m.default(this,g.default(t).call(this)),N&&k.call(v.default(r)),r.data=e||{},r.options=n,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r}return y.default(t,e),b.default(t,[{key:"addNamespaces",value:function e(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function e(t){var r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function e(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[t,r];return n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(a=t.split(".")),O(this.data,a)}},{key:"addResource",value:function e(t,r,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var s=[t,r];n&&(s=s.concat(a?n.split(a):n)),t.indexOf(".")>-1&&(i=r,r=(s=t.split("."))[1]),this.addNamespaces(r),E(this.data,s,i),o.silent||this.emit("added",t,r,n,i)}},{key:"addResources",value:function e(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(t,r,o,n[o],{silent:!0});i.silent||this.emit("added",t,r,n)}},{key:"addResourceBundle",value:function e(t,r,n,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[t,r];t.indexOf(".")>-1&&(i=n,n=r,r=(s=t.split("."))[1]),this.addNamespaces(r);var u=O(this.data,s)||{};i?M(u,n,o):u=h.default({},u,n),E(this.data,s,u),a.silent||this.emit("added",t,r,n)}},{key:"removeResourceBundle",value:function e(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}},{key:"hasResourceBundle",value:function e(t,r){return void 0!==this.getResource(t,r)}},{key:"getResourceBundle",value:function e(t,r){return r||(r=this.options.defaultNS),"v1"===this.options.compatibilityAPI?h.default({},{},this.getResource(t,r)):this.getResource(t,r)}},{key:"getDataByLanguage",value:function e(t){return this.data[t]}},{key:"toJSON",value:function e(){return this.data}}]),t}(k),P={processors:{},addPostProcessor:function e(t){this.processors[t.name]=t},handle:function e(t,r,n,i,o){var a=this;return t.forEach((function(e){a.processors[e]&&(r=a.processors[e].process(r,n,i,o))})),r}},L={},q=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p.default(this,t),r=m.default(this,g.default(t).call(this)),N&&k.call(v.default(r)),A(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,v.default(r)),r.options=n,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=x.create("translator"),r}return y.default(t,e),b.default(t,[{key:"changeLanguage",value:function e(t){t&&(this.language=t)}},{key:"exists",value:function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(t,r);return n&&void 0!==n.res}},{key:"extractFromKey",value:function e(t,r){var n=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=r.ns||this.options.defaultNS;if(n&&t.indexOf(n)>-1){var a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:o};var s=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),t=s.join(i)}return"string"==typeof o&&(o=[o]),{key:t,namespaces:o}}},{key:"translate",value:function e(r,n,i){var o=this;if("object"!==d.default(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==r)return"";Array.isArray(r)||(r=[String(r)]);var a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(r[r.length-1],n),u=s.key,c=s.namespaces,l=c[c.length-1],f=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(p){var b=n.nsSeparator||this.options.nsSeparator;return l+b+u}return u}var m=this.resolve(r,n),g=m&&m.res,v=m&&m.usedKey||u,y=m&&m.exactUsedKey||u,w=Object.prototype.toString.apply(g),_=["[object Number]","[object Function]","[object RegExp]"],x=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,S="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(k&&g&&S&&_.indexOf(w)<0&&("string"!=typeof x||"[object Array]"!==w)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,g,n):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(a){var j="[object Array]"===w,A=j?[]:{},D=j?y:v;for(var E in g)if(Object.prototype.hasOwnProperty.call(g,E)){var C="".concat(D).concat(a).concat(E);A[E]=this.translate(C,h.default({},n,{joinArrays:!1,ns:c})),A[E]===C&&(A[E]=g[E])}g=A}}else if(k&&"string"==typeof x&&"[object Array]"===w)(g=g.join(x))&&(g=this.extendTranslation(g,r,n,i));else{var O=!1,T=!1,M=void 0!==n.count&&"string"!=typeof n.count,B=t.hasDefaultValue(n),I=M?this.pluralResolver.getSuffix(f,n.count):"",R=n["defaultValue".concat(I)]||n.defaultValue;!this.isValidLookup(g)&&B&&(O=!0,g=R),this.isValidLookup(g)||(T=!0,g=u);var N=B&&R!==g&&this.options.updateMissing;if(T||O||N){if(this.logger.log(N?"updateKey":"missingKey",f,l,u,N?R:g),a){var F=this.resolve(u,h.default({},n,{keySeparator:!1}));F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var P=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var q=0;q1&&void 0!==arguments[1]?arguments[1]:{},i,o,a,s,u;return"string"==typeof t&&(t=[t]),t.forEach((function(e){if(!r.isValidLookup(i)){var t=r.extractFromKey(e,n),c=t.key;o=c;var l=t.namespaces;r.options.fallbackNS&&(l=l.concat(r.options.fallbackNS));var f=void 0!==n.count&&"string"!=typeof n.count,d=void 0!==n.context&&"string"==typeof n.context&&""!==n.context,h=n.lngs?n.lngs:r.languageUtils.toResolveHierarchy(n.lng||r.language,n.fallbackLng);l.forEach((function(e){r.isValidLookup(i)||(u=e,!L["".concat(h[0],"-").concat(e)]&&r.utils&&r.utils.hasLoadedNamespace&&!r.utils.hasLoadedNamespace(u)&&(L["".concat(h[0],"-").concat(e)]=!0,r.logger.warn('key "'.concat(o,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(t){if(!r.isValidLookup(i)){s=t;var o=c,u=[o],l,h;if(r.i18nFormat&&r.i18nFormat.addLookupKeys)r.i18nFormat.addLookupKeys(u,c,t,e,n);else f&&(l=r.pluralResolver.getSuffix(t,n.count)),f&&d&&u.push(o+l),d&&u.push(o+="".concat(r.options.contextSeparator).concat(n.context)),f&&u.push(o+=l);for(;h=u.pop();)r.isValidLookup(i)||(a=h,i=r.getResource(t,e,h,n))}})))}))}})),{res:i,usedKey:o,exactUsedKey:a,usedLng:s,usedNS:u}}},{key:"isValidLookup",value:function e(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function e(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,i):this.resourceStore.getResource(t,r,n,i)}}],[{key:"hasDefaultValue",value:function e(t){var r="defaultValue";for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&void 0!==t[n])return!0;return!1}}]),t}(k);function z(e){return e.charAt(0).toUpperCase()+e.slice(1)}var U=function(){function e(t){p.default(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=x.create("languageUtils")}return b.default(e,[{key:"getScriptPartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return null;var r=t.split("-");return 2===r.length?null:(r.pop(),"x"===r[r.length-1].toLowerCase()?null:this.formatLanguageCode(r.join("-")))}},{key:"getLanguagePartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return t;var r=t.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function e(t){if("string"==typeof t&&t.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=z(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=z(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=z(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function e(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function e(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function e(t){var r=this,n;return t?(t.forEach((function(e){if(!n){var t=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(t)||(n=t)}})),!n&&this.options.supportedLngs&&t.forEach((function(e){if(!n){var t=r.getLanguagePartFromCode(e);if(r.isSupportedCode(t))return n=t;n=r.options.supportedLngs.find((function(e){if(0===e.indexOf(t))return e}))}})),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function e(t,r){if(!t)return[];if("function"==typeof t&&(t=t(r)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!r)return t.default||[];var n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function e(t,r){var n=this,i=this.getFallbackCodes(r||this.options.fallbackLng||[],t),o=[],a=function e(t){t&&(n.isSupportedCode(t)?o.push(t):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(t))):"string"==typeof t&&a(this.formatLanguageCode(t)),i.forEach((function(e){o.indexOf(e)<0&&a(n.formatLanguageCode(e))})),o}}]),e}(),H=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],W={1:function e(t){return Number(t>1)},2:function e(t){return Number(1!=t)},3:function e(t){return 0},4:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function e(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function e(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function e(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function e(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function e(t){return Number(t>=2)},10:function e(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function e(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function e(t){return Number(t%10!=1||t%100==11)},13:function e(t){return Number(0!==t)},14:function e(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function e(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function e(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function e(t){return Number(0==t?0:1==t?1:2)},19:function e(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function e(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function e(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function e(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function $(){var e={};return H.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:W[t.fc]}}))})),e}var Y=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p.default(this,e),this.languageUtils=t,this.options=r,this.logger=x.create("pluralResolver"),this.rules=$()}return b.default(e,[{key:"addRule",value:function e(t,r){this.rules[t]=r}},{key:"getRule",value:function e(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function e(t){var r=this.getRule(t);return r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function e(t,r){return this.getSuffixes(t).map((function(e){return r+e}))}},{key:"getSuffixes",value:function e(t){var r=this,n=this.getRule(t);return n?n.numbers.map((function(e){return r.getSuffix(t,e)})):[]}},{key:"getSuffix",value:function e(t,r){var n=this,i=this.getRule(t);if(i){var o=i.noAbs?i.plurals(r):i.plurals(Math.abs(r)),a=i.numbers[o];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===a?a="plural":1===a&&(a=""));var s=function e(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return"v1"===this.options.compatibilityJSON?1===a?"":"number"==typeof a?"_plural_".concat(a.toString()):s():"v2"===this.options.compatibilityJSON?s():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),V=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p.default(this,e),this.logger=x.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return b.default(e,[{key:"init",value:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:R,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?B(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?B(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?B(r.nestingPrefix):r.nestingPrefixEscaped||B("$t("),this.nestingSuffix=r.nestingSuffix?B(r.nestingSuffix):r.nestingSuffixEscaped||B(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=void 0!==r.alwaysFormat&&r.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function e(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function e(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function e(t,r,n,i){var o=this,a,s,u,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var f=function e(t){if(t.indexOf(o.formatSeparator)<0){var a=T(r,c,t);return o.alwaysFormat?o.format(a,void 0,n):a}var s=t.split(o.formatSeparator),u=s.shift().trim(),l=s.join(o.formatSeparator).trim();return o.format(T(r,c,u),l,n,i)};this.resetRegExp();var d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p;return[{regex:this.regexpUnescape,safeValue:function e(t){return l(t)}},{regex:this.regexp,safeValue:function e(t){return o.escapeValue?l(o.escape(t)):l(t)}}].forEach((function(e){for(u=0;a=e.regex.exec(t);){if(void 0===(s=f(a[1].trim())))if("function"==typeof d){var r=d(t,a,i);s="string"==typeof r?r:""}else{if(h){s=a[0];continue}o.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(t)),s=""}else"string"==typeof s||o.useRawValueToEscape||(s=j(s));if(t=t.replace(a[0],e.safeValue(s)),e.regex.lastIndex=0,++u>=o.maxReplaces)break}})),t}},{key:"nest",value:function e(t,r){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o,a,s=h.default({},i);function u(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var n=e.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(n[1]);e=n[0],i=(i=this.interpolate(i,s)).replace(/'/g,'"');try{s=JSON.parse(i),t&&(s=h.default({},t,s))}catch(o){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),o),"".concat(e).concat(r).concat(i)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;o=this.nestingRegexp.exec(t);){var c=[],l=!1;if(o[0].includes(this.formatSeparator)&&!/{.*}/.test(o[1])){var f=o[1].split(this.formatSeparator).map((function(e){return e.trim()}));o[1]=f.shift(),c=f,l=!0}if((a=r(u.call(this,o[1].trim(),s),s))&&o[0]===t&&"string"!=typeof a)return a;"string"!=typeof a&&(a=j(a)),a||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(t)),a=""),l&&(a=c.reduce((function(e,t){return n.format(e,t,i.lng,i)}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}]),e}();function K(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}var G=function(e){function t(e,r,n){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return p.default(this,t),i=m.default(this,g.default(t).call(this)),N&&k.call(v.default(i)),i.backend=e,i.store=r,i.services=n,i.languageUtils=n.languageUtils,i.options=o,i.logger=x.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(n,o.backend,o),i}return y.default(t,e),b.default(t,[{key:"queueLoad",value:function e(t,r,n,i){var o=this,a=[],s=[],u=[],c=[];return t.forEach((function(e){var t=!0;r.forEach((function(r){var i="".concat(e,"|").concat(r);!n.reload&&o.store.hasResourceBundle(e,r)?o.state[i]=2:o.state[i]<0||(1===o.state[i]?s.indexOf(i)<0&&s.push(i):(o.state[i]=1,t=!1,s.indexOf(i)<0&&s.push(i),a.indexOf(i)<0&&a.push(i),c.indexOf(r)<0&&c.push(r)))})),t||u.push(e)})),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:a,pending:s,toLoadLanguages:u,toLoadNamespaces:c}}},{key:"loaded",value:function e(t,r,n){var i=t.split("|"),o=i[0],a=i[1];r&&this.emit("failedLoading",o,a,r),n&&this.store.addResourceBundle(o,a,n),this.state[t]=r?-1:2;var e={};this.queue.forEach((function(n){C(n.loaded,[o],a),K(n.pending,t),r&&n.errors.push(r),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(t){e[t]||(e[t]=[]),n.loaded[t].length&&n.loaded[t].forEach((function(r){e[t].indexOf(r)<0&&e[t].push(r)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",e),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function e(t,r,n){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[n](t,r,(function(e,u){e&&u&&o<5?setTimeout((function(){i.read.call(i,t,r,n,o+1,2*a,s)}),a):s(e,u)})):s(null,{})}},{key:"prepareLoading",value:function e(t,r){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof r&&(r=[r]);var a=this.queueLoad(t,r,i,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function e(t,r,n){this.prepareLoading(t,r,{},n)}},{key:"reload",value:function e(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}},{key:"loadOne",value:function e(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t.split("|"),o=i[0],a=i[1];this.read(o,a,"read",void 0,void 0,(function(e,i){e&&r.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(o," failed"),e),!e&&i&&r.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(o),i),r.loaded(t,e,i)}))}},{key:"saveMissing",value:function e(t,r,n,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(t,r,n,i,null,h.default({},a,{isUpdate:o})),t&&t[0]&&this.store.addResource(t[0],r,n,i))}}]),t}(k);function X(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function e(t){var r={};if("object"===d.default(t[1])&&(r=t[1]),"string"==typeof t[1]&&(r.defaultValue=t[1]),"string"==typeof t[2]&&(r.tDescription=t[2]),"object"===d.default(t[2])||"object"===d.default(t[3])){var n=t[3]||t[2];Object.keys(n).forEach((function(e){r[e]=n[e]}))}return r},interpolation:{escapeValue:!0,format:function e(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function Z(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function J(){}var Q,ee=new(function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(p.default(this,t),e=m.default(this,g.default(t).call(this)),N&&k.call(v.default(e)),e.options=Z(r),e.services={},e.logger=x,e.modules={external:[]},n&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,n),m.default(e,v.default(e));setTimeout((function(){e.init(r,n)}),0)}return e}return y.default(t,e),b.default(t,[{key:"init",value:function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function i(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof r&&(n=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=h.default({},X(),this.options,Z(r)),this.format=this.options.interpolation.format,n||(n=J),!this.options.isClone){this.modules.logger?x.init(i(this.modules.logger),this.options):x.init(null,this.options);var o=new U(this.options);this.store=new F(this.options.resources,this.options);var a=this.services;a.logger=x,a.resourceStore=this.store,a.languageUtils=o,a.pluralResolver=new Y(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new V(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new G(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i1?r-1:0),i=1;i0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments),t}}));var l=S(),f=function e(){var r=function e(r,i){t.isInitialized&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),l.resolve(i),n(r,i)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return r(null,t.t.bind(t));t.changeLanguage(t.options.lng,r)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),l}},{key:"loadResources",value:function e(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J,i=n,o="string"==typeof t?t:this.language;if("function"==typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return i();var a=[],s=function e(t){var n;t&&r.services.languageUtils.toResolveHierarchy(t).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};if(o)s(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return s(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return s(e)})),this.services.backendConnector.load(a,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function e(t,r,n){var i=S();return t||(t=this.languages),r||(r=this.options.ns),n||(n=J),this.services.backendConnector.reload(t,r,(function(e){i.resolve(),n(e)})),i}},{key:"use",value:function e(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&P.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function e(t,r){var n=this;this.isLanguageChangingTo=t;var i=S();this.emit("languageChanging",t);var o=function e(t,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,i.resolve((function(){return n.t.apply(n,arguments)})),r&&r(t,(function(){return n.t.apply(n,arguments)}))},a=function e(t){var r="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);r&&(n.language||(n.language=r,n.languages=n.services.languageUtils.toResolveHierarchy(r)),n.translator.language||n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,(function(e){o(e,r)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(t):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function e(t,r){var n=this,i=function e(t,r){var i;if("object"!==d.default(r)){for(var o=arguments.length,a=new Array(o>2?o-2:0),s=2;s1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],o=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var s=function e(t,n){var i=r.services.backendConnector.state["".concat(t,"|").concat(n)];return-1===i||2===i};if(n.precheck){var u=n.precheck(this,s);if(void 0!==u)return u}return!!this.hasResourceBundle(i,t)||(!this.services.backendConnector.backend||!(!s(i,t)||o&&!s(a,t)))}},{key:"loadNamespaces",value:function e(t,r){var n=this,i=S();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),r&&r(e)})),i):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function e(t,r){var n=S();"string"==typeof t&&(t=[t]);var i=this.options.preload||[],o=t.filter((function(e){return i.indexOf(e)<0}));return o.length?(this.options.preload=i.concat(o),this.loadResources((function(e){n.resolve(),r&&r(e)})),n):(r&&r(),Promise.resolve())}},{key:"dir",value:function e(t){return t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),t?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr":"rtl";var r}},{key:"createInstance",value:function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(r,n)}},{key:"cloneInstance",value:function e(){var r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J,o=h.default({},this.options,n,{isClone:!0}),a=new t(o),s=["store","services","language"];return s.forEach((function(e){a[e]=r[e]})),a.services=h.default({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new q(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=0&&r<=y}}function Z(e){return function(t){return null==t?void 0:t[e]}}var J=Z("byteLength"),Q=X(J),ee=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function te(e){return p?p(e)&&!U(e):Q(e)&&ee.test(s.call(e))}var re=c?te:G(!1),ne=Z("length");function ie(e){for(var t={},r=e.length,n=0;n":">",'"':""","'":"'","`":"`"},st=ot(at),ut,ct=ot(Oe(at)),lt=ce.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},ft=/(.)^/,dt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ht=/\\|'|\r|\n|\u2028|\u2029/g;function pt(e){return"\\"+dt[e]}var bt=/^\s*(\w|\$)+\s*$/;function mt(e,t,r){!t&&r&&(t=r),t=Re({},t,ce.templateSettings);var n=RegExp([(t.escape||ft).source,(t.interpolate||ft).source,(t.evaluate||ft).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(n,(function(t,r,n,a,s){return o+=e.slice(i,s).replace(ht,pt),i=s+t.length,r?o+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":n?o+="'+\n((__t=("+n+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t})),o+="';\n";var a=t.variable,s;if(a){if(!bt.test(a))throw new Error("variable is not a bare identifier: "+a)}else o="with(obj||{}){\n"+o+"}\n",a="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{s=new Function(a,"_",o)}catch(c){throw c.source=o,c}var u=function(e){return s.call(this,e,ce)};return u.source="function("+a+"){\n"+o+"}",u}function gt(e,t,r){var n=(t=Ue(t)).length;if(!n)return N(r)?r.call(e):r;for(var i=0;i1)jt(s,t-1,r,n),i=n.length;else for(var u=0,c=s.length;ut?(n&&(clearTimeout(n),n=null),s=c,a=e.apply(i,o),n||(i=o=null)):n||!1===r.trailing||(n=setTimeout(u,l)),a};return c.cancel=function(){clearTimeout(n),s=0,n=i=o=null},c}function Tt(e,t,r){var n,i,o,a,s,u=function(){var c=it()-i;t>c?n=setTimeout(u,t-c):(n=null,r||(a=e.apply(s,o)),n||(o=s=null))},c=w((function(c){return s=this,o=c,i=it(),n||(n=setTimeout(u,t),r&&(a=e.apply(s,o))),a}));return c.cancel=function(){clearTimeout(n),n=o=s=null},c}function Mt(e,t){return xt(t,e)}function Bt(e){return function(){return!e.apply(this,arguments)}}function It(){var e=arguments,t=e.length-1;return function(){for(var r=t,n=e[t].apply(this,arguments);r--;)n=e[r].call(this,n);return n}}function Rt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Nt(e,t){var r;return function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}}var Ft=xt(Nt,2);function Pt(e,t,r){t=Je(t,r);for(var n=ae(e),i,o=0,a=n.length;o0?0:i-1;o>=0&&o0?s=o>=0?o:Math.max(o+u,s):u=o>=0?Math.min(o+1,u):o+u+1;else if(r&&o&&u)return n[o=r(n,i)]===i?o:-1;if(i!=i)return(o=t(a.call(n,s,u),K))>=0?o+s:-1;for(o=e>0?s:u-1;o>=0&&o0?0:a-1;for(i||(n=t[o?o[s]:s],s+=e);s>=0&&s=3;return t(e,Ge(r,i,4),n,o)}}var Zt=Xt(1),Jt=Xt(-1);function Qt(e,t,r){var n=[];return t=Je(t,r),Kt(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function er(e,t,r){return Qt(e,Bt(Je(t)),r)}function tr(e,t,r){t=Je(t,r);for(var n=!St(e)&&ae(e),i=(n||e).length,o=0;o=0}var ir=w((function(e,t,r){var n,i;return N(t)?i=t:(t=Ue(t),n=t.slice(0,-1),t=t[t.length-1]),Gt(e,(function(e){var o=i;if(!o){if(n&&n.length&&(e=He(e,n)),null==e)return;o=e[t]}return null==o?o:o.apply(e,r)}))}));function or(e,t){return Gt(e,Ke(t))}function ar(e,t){return Qt(e,Ve(t))}function sr(e,t,r){var n=-1/0,i=-1/0,o,a;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=St(e)?e:Ee(e)).length;sn&&(n=o);else t=Je(t,r),Kt(e,(function(e,r,o){((a=t(e,r,o))>i||a===-1/0&&n===-1/0)&&(n=e,i=a)}));return n}function ur(e,t,r){var n=1/0,i=1/0,o,a;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=St(e)?e:Ee(e)).length;sn||void 0===r)return 1;if(r1&&(n=Ge(n,t[1])),t=be(e)):(n=wr,t=jt(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i1&&(n=t[1])):(t=Gt(jt(t,!1,!1),String),r=function(e,r){return!nr(t,r)}),_r(e,r,n)}));function kr(e,t,r){return a.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))}function Sr(e,t,r){return null==e||e.length<1?null==t||r?void 0:[]:null==t||r?e[0]:kr(e,e.length-t)}function jr(e,t,r){return a.call(e,null==t||r?1:t)}function Ar(e,t,r){return null==e||e.length<1?null==t||r?void 0:[]:null==t||r?e[e.length-1]:jr(e,Math.max(0,e.length-t))}function Dr(e){return Qt(e,Boolean)}function Er(e,t){return jt(e,t,!1)}var Cr=w((function(e,t){return t=jt(t,!0,!0),Qt(e,(function(e){return!nr(t,e)}))})),Or=w((function(e,t){return Cr(e,t)}));function Tr(e,t,r,n){S(t)||(n=r,r=t,t=!1),null!=r&&(r=Je(r,n));for(var i=[],o=[],a=0,s=ne(e);ae(t),this)}}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},c=new Set,l=(e,t)=>{const r=`LRU_CACHE_OPTION_${e}`;p(r)&&b(r,`${e} option`,`options.${t}`,w)},f=(e,t)=>{const r=`LRU_CACHE_METHOD_${e}`;if(p(r)){const{prototype:n}=w,{get:i}=Object.getOwnPropertyDescriptor(n,e);b(r,`${e} method`,`cache.${t}()`,i)}},d=(e,t)=>{const r=`LRU_CACHE_PROPERTY_${e}`;if(p(r)){const{prototype:n}=w,{get:i}=Object.getOwnPropertyDescriptor(n,e);b(r,`${e} property`,`cache.${t}`,i)}},h=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},p=e=>!c.has(e),b=(e,t,r,n)=>{c.add(e);const i=`The ${t} is deprecated. Please use ${r} instead.`;h(i,"DeprecationWarning",e,n)},m=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),g=e=>m(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?v:null:null;class v extends Array{constructor(e){super(e),this.fill(0)}}class y{constructor(e){if(0===e)return[];const t=g(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class w{constructor(e={}){const{max:t=0,ttl:r,ttlResolution:n=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:s,dispose:u,disposeAfter:f,noDisposeOnSet:d,noUpdateTTL:b,maxSize:v=0,maxEntrySize:_=0,sizeCalculation:x,fetchMethod:k,fetchContext:S,noDeleteOnFetchRejection:j,noDeleteOnStaleGet:A}=e,{length:D,maxAge:E,stale:C}=e instanceof w?{}:e;if(0!==t&&!m(t))throw new TypeError("max option must be a nonnegative integer");const O=t?g(t):Array;if(!O)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=v,this.maxEntrySize=_||this.maxSize,this.sizeCalculation=x||D,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=k||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=S,!this.fetchMethod&&void 0!==S)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new O(t),this.prev=new O(t),this.head=0,this.tail=0,this.free=new y(t),this.initialFill=1,this.size=0,"function"==typeof u&&(this.dispose=u),"function"==typeof f?(this.disposeAfter=f,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!b,this.noDeleteOnFetchRejection=!!j,0!==this.maxEntrySize){if(0!==this.maxSize&&!m(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!m(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!s||!!C,this.noDeleteOnStaleGet=!!A,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=m(n)||0===n?n:1,this.ttlAutopurge=!!i,this.ttl=r||E||0,this.ttl){if(!m(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";if(p(e)){c.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";h(t,"UnboundedCacheWarning",e,w)}}C&&l("stale","allowStale"),E&&l("maxAge","ttl"),D&&l("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new v(this.max),this.starts=new v(this.max),this.setItemTTL=(e,t,r=n.now())=>{if(this.starts[e]=0!==t?r:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const r=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);r.unref&&r.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?n.now():0};let e=0;const t=()=>{const t=n.now();if(this.ttlResolution>0){e=t;const r=setTimeout(()=>e=0,this.ttlResolution);r.unref&&r.unref()}return t};this.getRemainingTTL=r=>{const n=this.keyMap.get(r);return void 0===n?0:0===this.ttls[n]||0===this.starts[n]?1/0:this.starts[n]+this.ttls[n]-(e||t())},this.isStale=r=>0!==this.ttls[r]&&0!==this.starts[r]&&(e||t())-this.starts[r]>this.ttls[r]}updateItemAge(e){}setItemTTL(e,t,r){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new v(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,r,n)=>{if(this.isBackgroundFetch(t))return 0;if(!m(r)){if(!n)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!m(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t)=>{if(this.sizes[e]=t,this.maxSize){const t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e]}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,r,n){if(r||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const r of this.indexes())if(e(this.valList[r],this.keyList[r],this))return this.get(this.keyList[r],t)}forEach(e,t=this){for(const r of this.indexes())e.call(t,this.valList[r],this.keyList[r],this)}rforEach(e,t=this){for(const r of this.rindexes())e.call(t,this.valList[r],this.keyList[r],this)}get prune(){return f("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes({allowStale:!0})){const r=this.keyList[t],i=this.valList[t],o=this.isBackgroundFetch(i)?i.__staleWhileFetching:i,a={value:o};if(this.ttls){a.ttl=this.ttls[t];const e=n.now()-this.starts[t];a.start=Math.floor(Date.now()-e)}this.sizes&&(a.size=this.sizes[t]),e.unshift([r,a])}return e}load(e){this.clear();for(const[t,r]of e){if(r.start){const e=Date.now()-r.start;r.start=n.now()-e}this.set(t,r.value,r)}}dispose(e,t,r){}set(e,t,{ttl:r=this.ttl,start:n,noDisposeOnSet:i=this.noDisposeOnSet,size:o=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:s=this.noUpdateTTL}={}){if(o=this.requireSize(e,t,o,a),this.maxEntrySize&&o>this.maxEntrySize)return this.delete(e),this;let u=0===this.size?void 0:this.keyMap.get(e);if(void 0===u)u=this.newIndex(),this.keyList[u]=e,this.valList[u]=t,this.keyMap.set(e,u),this.next[this.tail]=u,this.prev[u]=this.tail,this.tail=u,this.size++,this.addItemSize(u,o),s=!1;else{const r=this.valList[u];t!==r&&(this.isBackgroundFetch(r)?r.__abortController.abort():i||(this.dispose(r,e,"set"),this.disposeAfter&&this.disposed.push([r,e,"set"])),this.removeItemSize(u),this.valList[u]=t,this.addItemSize(u,o)),this.moveToTail(u)}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),s||this.setItemTTL(u,r,n),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,r=this.keyList[t],n=this.valList[t];return this.isBackgroundFetch(n)?n.__abortController.abort():(this.dispose(n,r,"evict"),this.disposeAfter&&this.disposed.push([n,r,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(r),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const r=this.keyMap.get(e);return void 0!==r&&!this.isStale(r)&&(t&&this.updateItemAge(r),!0)}peek(e,{allowStale:t=this.allowStale}={}){const r=this.keyMap.get(e);if(void 0!==r&&(t||!this.isStale(r))){const e=this.valList[r];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,r,n){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const a=new o,s={signal:a.signal,options:r,context:n},u=t=>(a.signal.aborted||this.set(e,t,s.options),t),c=n=>{if(this.valList[t]===f){const n=!r.noDeleteOnFetchRejection||void 0===f.__staleWhileFetching;n?this.delete(e):this.valList[t]=f.__staleWhileFetching}if(f.__returned===f)throw n},l=t=>t(this.fetchMethod(e,i,s)),f=new Promise(l).then(u,c);return f.__abortController=a,f.__staleWhileFetching=i,f.__returned=null,void 0===t?(this.set(e,f,s.options),t=this.keyMap.get(e)):this.valList[t]=f,f}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,fetchContext:l=this.fetchContext,forceRefresh:f=!1}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:n});const d={allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:n,ttl:i,noDisposeOnSet:o,size:a,sizeCalculation:s,noUpdateTTL:u,noDeleteOnFetchRejection:c};let h=this.keyMap.get(e);if(void 0===h){const t=this.backgroundFetch(e,h,d,l);return t.__returned=t}{const n=this.valList[h];if(this.isBackgroundFetch(n))return t&&void 0!==n.__staleWhileFetching?n.__staleWhileFetching:n.__returned=n;if(!f&&!this.isStale(h))return this.moveToTail(h),r&&this.updateItemAge(h),n;const i=this.backgroundFetch(e,h,d,l);return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i.__returned=i}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet}={}){const i=this.keyMap.get(e);if(void 0!==i){const o=this.valList[i],a=this.isBackgroundFetch(o);if(this.isStale(i))return a?t?o.__staleWhileFetching:void 0:(n||this.delete(e),t?o:void 0);if(a)return;return this.moveToTail(i),r&&this.updateItemAge(i),o}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return f("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const r=this.keyMap.get(e);if(void 0!==r)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(r);const t=this.valList[r];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const r=this.keyList[e];this.dispose(t,r,"delete"),this.disposeAfter&&this.disposed.push([t,r,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return f("reset","clear"),this.clear}get length(){return d("length","size"),this.size}static get AbortController(){return o}static get AbortSignal(){return u}}e.exports=w}}}}},tslib:{"package.json":function e(t,r,e){e.exports={name:"tslib",version:"2.3.1",main:"tslib.js",module:"tslib.es6.js"}},"tslib.js":function e(t,r,e){ +if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var r in t)if(void 0!==e.style[r])return{end:t[r]};return!1}e.fn.emulateTransitionEnd=function(t){var r=!1,n=this,i;return e(this).one("bsTransitionEnd",(function(){r=!0})),setTimeout((function(){r||e(n).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',r=function(r){e(r).on("click",t,this.close)};function n(t){return this.each((function(){var n=e(this),i=n.data("bs.alert");i||n.data("bs.alert",i=new r(this)),"string"==typeof t&&i[t].call(n)}))}r.VERSION="3.4.1",r.TRANSITION_DURATION=150,r.prototype.close=function(t){var n=e(this),i=n.attr("data-target");i||(i=(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var o=e(document).find(i);function a(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=n.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",a).emulateTransitionEnd(r.TRANSITION_DURATION):a())};var i=e.fn.alert;e.fn.alert=n,e.fn.alert.Constructor=r,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,r.prototype.close)}(jQuery),function(e){"use strict";var t=function(r,n){this.$element=e(r),this.options=e.extend({},t.DEFAULTS,n),this.isLoading=!1};function r(r){return this.each((function(){var n=e(this),i=n.data("bs.button"),o="object"==typeof r&&r;i||n.data("bs.button",i=new t(this,o)),"toggle"==r?i.toggle():r&&i.setState(r)}))}t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var r="disabled",n=this.$element,i=n.is("input")?"val":"html",o=n.data();t+="Text",null==o.resetText&&n.data("resetText",n[i]()),setTimeout(e.proxy((function(){n[i](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(r).attr(r,r).prop(r,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(r).removeAttr(r).prop(r,!1))}),this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var r=this.$element.find("input");"radio"==r.prop("type")?(r.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==r.prop("type")&&(r.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),r.prop("checked",this.$element.hasClass("active")),e&&r.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=r,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var n=e(t.target).closest(".btn");r.call(n,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),n.is("input,button")?n.trigger("focus"):n.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(jQuery),function(e){"use strict";var t=function(t,r){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=r,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function r(r){return this.each((function(){var n=e(this),i=n.data("bs.carousel"),o=e.extend({},t.DEFAULTS,n.data(),"object"==typeof r&&r),a="string"==typeof r?r:o.slide;i||n.data("bs.carousel",i=new t(this,o)),"number"==typeof r?i.to(r):a?i[a]():o.interval&&i.pause().cycle()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var r=this.getItemIndex(t),n;if(("prev"==e&&0===r||"next"==e&&r==this.$items.length-1)&&!this.options.wrap)return t;var i,o=(r+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(o)},t.prototype.to=function(e){var t=this,r=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):r==e?this.pause().cycle():this.slide(e>r?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(r,n){var i=this.$element.find(".item.active"),o=n||this.getItemForDirection(r,i),a=this.interval,s="next"==r?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var c=o[0],l=e.Event("slide.bs.carousel",{relatedTarget:c,direction:s});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var f=e(this.$indicators.children()[this.getItemIndex(o)]);f&&f.addClass("active")}var d=e.Event("slid.bs.carousel",{relatedTarget:c,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(r),"object"==typeof o&&o.length&&o[0].offsetWidth,i.addClass(s),o.addClass(s),i.one("bsTransitionEnd",(function(){o.removeClass([r,s].join(" ")).addClass("active"),i.removeClass(["active",s].join(" ")),u.sliding=!1,setTimeout((function(){u.$element.trigger(d)}),0)})).emulateTransitionEnd(t.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),a&&this.cycle(),this}};var n=e.fn.carousel;e.fn.carousel=r,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this};var i=function(t){var n=e(this),i=n.attr("href");i&&(i=i.replace(/.*(?=#[^\s]+$)/,""));var o=n.attr("data-target")||i,a=e(document).find(o);if(a.hasClass("carousel")){var s=e.extend({},a.data(),n.data()),u=n.attr("data-slide-to");u&&(s.interval=!1),r.call(a,s),u&&a.data("bs.carousel").to(u),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var t=e(this);r.call(t,t.data())}))}))}(jQuery),function(e){"use strict";var t=function(r,n){this.$element=e(r),this.options=e.extend({},t.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+r.id+'"],[data-toggle="collapse"][data-target="#'+r.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function r(t){var r,n=t.attr("data-target")||(r=t.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(n)}function n(r){return this.each((function(){var n=e(this),i=n.data("bs.collapse"),o=e.extend({},t.DEFAULTS,n.data(),"object"==typeof r&&r);!i&&o.toggle&&/show|hide/.test(r)&&(o.toggle=!1),i||n.data("bs.collapse",i=new t(this,o)),"string"==typeof r&&i[r]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e;return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var r,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(r=i.data("bs.collapse"))&&r.transitioning)){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(n.call(i,"hide"),r||i.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var u=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[a](this.$element[0][u])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var r=e.Event("hide.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return i.call(this);this.$element[n](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,n){var i=e(n);this.addAriaAndCollapsedClass(r(i),i)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var r=e.hasClass("in");e.attr("aria-expanded",r),t.toggleClass("collapsed",!r).attr("aria-expanded",r)};var i=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var i=e(this);i.attr("data-target")||t.preventDefault();var o=r(i),a,s=o.data("bs.collapse")?"toggle":i.data();n.call(o,s)}))}(jQuery),function(e){"use strict";var t=".dropdown-backdrop",r='[data-toggle="dropdown"]',n=function(t){e(t).on("click.bs.dropdown",this.toggle)};function i(t){var r=t.attr("data-target");r||(r=(r=t.attr("href"))&&/#[A-Za-z]/.test(r)&&r.replace(/.*(?=#[^\s]*$)/,""));var n="#"!==r?e(document).find(r):null;return n&&n.length?n:t.parent()}function o(n){n&&3===n.which||(e(t).remove(),e(r).each((function(){var t=e(this),r=i(t),o={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(r[0],n.target)||(r.trigger(n=e.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(t.attr("aria-expanded","false"),r.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))})))}function a(t){return this.each((function(){var r=e(this),i=r.data("bs.dropdown");i||r.data("bs.dropdown",i=new n(this)),"string"==typeof t&&i[t].call(r)}))}n.VERSION="3.4.1",n.prototype.toggle=function(t){var r=e(this);if(!r.is(".disabled, :disabled")){var n=i(r),a=n.hasClass("open");if(o(),!a){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",o);var s={relatedTarget:this};if(n.trigger(t=e.Event("show.bs.dropdown",s)),t.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},n.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var n=e(this);if(t.preventDefault(),t.stopPropagation(),!n.is(".disabled, :disabled")){var o=i(n),a=o.hasClass("open");if(!a&&27!=t.which||a&&27==t.which)return 27==t.which&&o.find(r).trigger("focus"),n.trigger("click");var s=" li:not(.disabled):visible a",u=o.find(".dropdown-menu"+s);if(u.length){var c=u.index(t.target);38==t.which&&c>0&&c--,40==t.which&&cdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},c.prototype.init=function(t,r,n){if(this.enabled=!0,this.type=t,this.$element=e(r),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var a=i[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",u="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(r){var n=this.$element.data();for(var i in n)n.hasOwnProperty(i)&&-1!==e.inArray(i,t)&&delete n[i];return(r=e.extend({},this.getDefaults(),n,r)).delay&&"number"==typeof r.delay&&(r.delay={show:r.delay,hide:r.delay}),r.sanitize&&(r.template=u(r.template,r.whiteList,r.sanitizeFn)),r},c.prototype.getDelegateOptions=function(){var t={},r=this.getDefaults();return this._options&&e.each(this._options,(function(e,n){r[e]!=n&&(t[e]=n)})),t},c.prototype.enter=function(t){var r=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(r||(r=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,r)),t instanceof e.Event&&(r.inState["focusin"==t.type?"focus":"hover"]=!0),r.tip().hasClass("in")||"in"==r.hoverState)r.hoverState="in";else{if(clearTimeout(r.timeout),r.hoverState="in",!r.options.delay||!r.options.delay.show)return r.show();r.timeout=setTimeout((function(){"in"==r.hoverState&&r.show()}),r.options.delay.show)}},c.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},c.prototype.leave=function(t){var r=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(r||(r=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,r)),t instanceof e.Event&&(r.inState["focusout"==t.type?"focus":"hover"]=!1),!r.isInStateTrue()){if(clearTimeout(r.timeout),r.hoverState="out",!r.options.delay||!r.options.delay.hide)return r.hide();r.timeout=setTimeout((function(){"out"==r.hoverState&&r.hide()}),r.options.delay.hide)}},c.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var r=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!r)return;var n=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,u=s.test(a);u&&(a=a.replace(s,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?i.appendTo(e(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),f=i[0].offsetWidth,d=i[0].offsetHeight;if(u){var h=a,p=this.getPosition(this.$viewport);a="bottom"==a&&l.bottom+d>p.bottom?"top":"top"==a&&l.top-dp.width?"left":"left"==a&&l.left-fa.top+a.height&&(i.top=a.top+a.height-u)}else{var c=t.left-o,l=t.left+o+r;ca.right&&(i.left=a.left+a.width-l)}return i},c.prototype.getTitle=function(){var e,t=this.$element,r=this.options;return e=t.attr("data-original-title")||("function"==typeof r.title?r.title.call(t[0]):r.title)},c.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(t){var r=this;t&&((r=e(t.currentTarget).data("bs."+this.type))||(r=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,r))),t?(r.inState.click=!r.inState.click,r.isInStateTrue()?r.enter(r):r.leave(r)):r.tip().hasClass("in")?r.leave(r):r.enter(r)},c.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},c.prototype.sanitizeHtml=function(e){return u(e,this.options.whiteList,this.options.sanitizeFn)};var f=e.fn.tooltip;e.fn.tooltip=l,e.fn.tooltip.Constructor=c,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=f,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");function r(r){return this.each((function(){var n=e(this),i=n.data("bs.popover"),o="object"==typeof r&&r;!i&&/destroy|hide/.test(r)||(i||n.data("bs.popover",i=new t(this,o)),"string"==typeof r&&i[r]())}))}t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),r=this.getContent();if(this.options.html){var n=typeof r;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===n&&(r=this.sanitizeHtml(r))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===n?"html":"append"](r)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(r);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=e.fn.popover;e.fn.popover=r,e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(jQuery),function(e){"use strict";function t(r,n){this.$body=e(document.body),this.$scrollElement=e(r).is(document.body)?e(window):e(r),this.options=e.extend({},t.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function r(r){return this.each((function(){var n=e(this),i=n.data("bs.scrollspy"),o="object"==typeof r&&r;i||n.data("bs.scrollspy",i=new t(this,o)),"string"==typeof r&&i[r]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,r="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(r="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),i=t.data("target")||t.attr("href"),o=/^#./.test(i)&&e(i);return o&&o.length&&o.is(":visible")&&[[o[r]().top+n,i]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.getScrollHeight(),r=this.options.offset+t-this.$scrollElement.height(),n=this.offsets,i=this.targets,o=this.activeTarget,a;if(this.scrollHeight!=t&&this.refresh(),e>=r)return o!=(a=i[i.length-1])&&this.activate(a);if(o&&e=n[a]&&(void 0===n[a+1]||e .active"),a=i&&e.support.transition&&(o.length&&o.hasClass("fade")||!!n.find("> .fade").length);function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),r.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(r[0].offsetWidth,r.addClass("in")):r.removeClass("fade"),r.parent(".dropdown-menu").length&&r.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&a?o.one("bsTransitionEnd",s).emulateTransitionEnd(t.TRANSITION_DURATION):s(),o.removeClass("in")};var n=e.fn.tab;e.fn.tab=r,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=n,this};var i=function(t){t.preventDefault(),r.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(e){"use strict";var t=function(r,n){this.options=e.extend({},t.DEFAULTS,n);var i=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(r),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function r(r){return this.each((function(){var n=e(this),i=n.data("bs.affix"),o="object"==typeof r&&r;i||n.data("bs.affix",i=new t(this,o)),"string"==typeof r&&i[r]()}))}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,r,n){var i=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=r&&"top"==this.affixed)return i=e-n&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),r=this.$element.offset();return this.pinnedOffset=r.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var r=this.$element.height(),n=this.options.offset,i=n.top,o=n.bottom,a=Math.max(e(document).height(),e(document.body).height());"object"!=typeof n&&(o=i=n),"function"==typeof i&&(i=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var s=this.getState(a,r,i,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var u="affix"+(s?"-"+s:""),c=e.Event(u+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-r-o})}};var n=e.fn.affix;e.fn.affix=r,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var t=e(this),n=t.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),r.call(t,n)}))}))}(jQuery)}}}},fibers:{"package.json":function e(t,r,e){e.exports={name:"fibers",version:"5.0.3",main:"fibers"}},"fibers.js":function e(t,r,e,n,i){if(process.fiberLib)e.exports=process.fiberLib;else{var o=t("fs"),a=t("path"),s=t("detect-libc");Math.random();var u=a.join(i,"bin",process.platform+"-"+process.arch+"-"+process.versions.modules+("linux"===process.platform?"-"+s.family:""),"fibers");try{process.fiberLib=e.exports=t(u).Fiber}catch(l){throw console.error("## There is an issue with `node-fibers` ##\n`"+u+".node` is missing.\n\nTry running this to fix the issue: "+process.execPath+" "+i.replace(" ","\\ ")+"/build"),console.error(l.stack||l.message||l),new Error("Missing binary. See message above.")}c(e.exports)}function c(e){try{var t=process.binding("async_wrap"),r;if(t.asyncIdStackSize instanceof Function)r=t.asyncIdStackSize;else{if(void 0===t.constants.kStackLength)throw new Error("Couldn't figure out how to get async stack size");f=t.constants.kStackLength,r=function(){return t.async_hook_fields[f]}}var n=t.popAsyncContext||t.popAsyncIds,i=t.pushAsyncContext||t.pushAsyncIds,o,a;if(!n||!i)throw new Error("Push/pop do not exist");o=void 0===t.constants.kExecutionAsyncId?t.constants.kCurrentAsyncId:t.constants.kExecutionAsyncId,a=void 0===t.constants.kTriggerAsyncId?t.constants.kCurrentTriggerId:t.constants.kTriggerAsyncId;var s=t.async_id_fields||t.async_uid_fields;function u(){for(var e=r(),t=new Array(e);e>0;--e){var i=s[o];t[e-1]={asyncId:i,triggerId:s[a]},n(i)}return t}function c(e){for(var t=0;t0)i.changeLanguage(e,n);else if(0!=s[u]){s[u]=0;var c=new XMLHttpRequest;c.overrideMimeType("application/json"),c.open("GET",u,!1),c.send(null),200===c.status?s[u]=1:s[u]=-1,r.addResourceBundle(e,a,JSON.parse(c.response)||{}),i.changeLanguage(e,n)}};r.changeLanguage=p;var b=function(e,t,r){return i.format(e,t,r)};r.format=b;var m=function(){return i.languages};r.getLanguages=m;var g=function(e,t){return i.loadLanguages(e,t)};r.loadLanguages=g;var v=function(e,t){return i.loadNamespaces(e,t)};r.loadNamespaces=v;var y=function(e,t){return i.on(e,t)};r.on=y;var w=function(e,t){return i.off(e,t)};r.off=w,n.__exportStar(t("./i18n/i18n"),r),n.__exportStar(t("./i18n/i18n.app"),r),n.__exportStar(t("./translations"),r)},i18n:{"i18n.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.fallbackKeys=r.getObjectI18nTemplate=r.translationI18nObjects=r.addObjectsI18n=r.translationI18nObject=void 0;var n=t("../index"),i=t("underscore"),o=t("clone"),a="_",s="base",u="core",c="translation",l=function(e,t){var r={lng:t,ns:c};if((0,n.exists)(e,r))return(0,n._t)(e,r)},f=function(e){return"".concat(e,"__object")},d=function(e,t){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t)},h=function(e,t){var r=d(e,t);return"".concat(r).concat("_","inlineHelpText")},p=function(e,t){var r=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","group").concat("_").concat(r)},b=function(e,t,r){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t).concat("_","options").concat("_").concat(r)},m=function(e,t){return"".concat(e).concat("_","action").concat("_").concat(t)},g=function(e,t){return"".concat(e).concat("_","listview").concat("_").concat(t)},v=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},y=function(e,t,r){var n=f(t);return l(n,e)||r||""},w=function(e,t,r,n,i){var o=d(t,r),a=l(o,e);if(!a){var s=v(i);s&&"base"!=t&&"core"!=t&&(a=w(e,s,r,n,i))}return a||n||""},_=function(e,t,r,n,i){var o=h(t,r),a=l(o,e);if(!a){var s=v(i);s&&"base"!=t&&"core"!=t&&(a=_(e,s,r,n,i))}return a||n||""},x=function(e,t,r,n){var i=p(t,r);return l(i,e)||n||""},k=function(e,t,r,n,i,o){var a=b(t,r,n),s=l(a,e);if(!s){var u=v(o);u&&"base"!=t&&"core"!=t&&(s=k(e,u,r,n,i,o))}return s||i||""},S=function(e,t,r,n,i){var o=m(t,r),a=l(o,e);if(!a){var s=v(i);s&&"base"!=t&&"core"!=t&&(a=S(e,s,r,n,i))}return a||n||""},j=function(e,t,r,n,i){var o=g(t,r),a=l(o,e);if(!a){var s=v(i);s&&"base"!=t&&"core"!=t&&(a=j(e,s,r,n,i))}return a||n||""},A=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},D=function(e){i.forEach(e.fields,(function(e,t){var r=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;return e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return r.push(A(e))}))):r.push(A(e))})),e.options=r}catch(n){console.error("convertFieldsOptions error: ",e.options,n)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return r.push({label:e,value:t})})),e.options=r)}))},E=function(e,t,r){r.label=y(e,t,r.label),i.each(r.fields,(function(n,o){if(n.label=w(e,t,o,n.label,r.datasource),n.inlineHelpText&&(n.inlineHelpText=_(e,t,o,n.inlineHelpText,r.datasource)),n.group&&(n.group=x(e,t,n.group,n.group)),n.options){var a=[];i.each(n.options,(function(n){if(i.has(n,"value")){var s=k(e,t,o,n.value,n.label,r.datasource);a.push(i.extend({},n,{label:s}))}else a.push(n)})),n.options=a}})),i.each(r.actions,(function(n,i){n.label=S(e,t,i,n.label,r.datasource)})),i.each(r.list_views,(function(n,i){n.label=j(e,t,i,n.label,r.datasource)}))};r.translationI18nObject=E;var C=function(e){i.each(e,(function(e){(0,n.addResourceBundle)(e.lng,c,e.data,!0,!0)}))};r.addObjectsI18n=C;var O=function(e,t){i.each(t,(function(t,n){(0,r.translationI18nObject)(e,n,t)}))};r.translationI18nObjects=O;var T=function(e,t,r){var n=o(r);D(n);var a={};return a[f(t)]=y(e,t,n.label),i.each(n.fields,(function(r,o){a[d(t,o)]=w(e,t,o,r.label),r.inlineHelpText&&(a[h(t,o)]=_(e,t,o,r.inlineHelpText,n.datasource)),r.group&&(a[p(t,r.group)]=x(e,t,r.group,r.group)),r.options&&i.each(r.options,(function(r){i.has(r,"value")&&(a[b(t,o,r.value)]=k(e,t,o,r.value,r.label))}))})),i.each(n.actions,(function(r,n){a[m(t,n)]=S(e,t,n,r.label)})),i.each(n.list_views,(function(r,n){a[g(t,n)]=j(e,t,n,r.label)})),a};r.getObjectI18nTemplate=T,r.fallbackKeys={getObjectLabelKey:f,getObjectFieldLabelKey:d,getObjectFieldInlineHelpTextLabelKey:h,getObjectFieldGroupKey:p,getObjectFieldOptionsLabelKey:b,getObjectActionLabelKey:m,getObjectListviewLabelKey:g}},"i18n.app.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.appFallbackKeys=r.getAppI18nTemplate=r.translationI18nApps=r.translationI18nMenus=void 0;var n=t("../index"),i=t("underscore"),o=t("clone"),a="translation",s="_",u=function(e,t){var r={lng:t,ns:a};if((0,n.exists)(e,r))return(0,n._t)(e,r)},c=function(e){return"app".concat("_").concat(e).concat("_","name")},l=function(e){return"app".concat("_").concat(e).concat("_","description")},f=function(e,t){var r=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","tab_group").concat("_").concat(r)},d=function(e){return"menu".concat("_").concat(e)},h=function(e){return"tab".concat("_").concat(e)},p=function(e,t,r){var n=c(t);return u(n,e)||r||""},b=function(e,t,r){var n=l(t);return u(n,e)||r||""},m=function(e,t,r){var n=d(t);return u(n,e)||r||""},g=function(e,t,n){n.label=p(e,t,n.label||n.name),n.description=b(e,t,n.description),(0,r.translationI18nMenus)(e,n.admin_menus)},v=function(e,t){i.each(t,(function(t){var r=m(e,t._id,t.label||t.name);t.label=r,t.name=r}))};r.translationI18nMenus=v;var y=function(e,t){i.each(t,(function(t,r){g(e,r,t)}))};r.translationI18nApps=y;var w=function(e,t,r){var n=o(r),a={};return a[c(t)]=p(e,t,n.label||n.name),a[l(t)]=b(e,t,n.description),i.each(n.admin_menus,(function(t){a[d(t._id)]=m(e,t._id,t.label||t.name)})),a};r.getAppI18nTemplate=w,r.appFallbackKeys={getAppLabelKey:c,getAppDescriptionKey:l,getAppGroupKey:f,getMenuLabelKey:d,getTabKey:h}}},translations:{"index.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SteedosTranslationPrefixKeys=r.convertObject=void 0;var n=t("tslib"),i=t("underscore");n.__exportStar(t("./objectTranslation"),r),n.__exportStar(t("./translation"),r),n.__exportStar(t("./templates/objectTranslation"),r),n.__exportStar(t("./templates/translation"),r);var o=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},a=function(e){i.forEach(e.fields,(function(e,t){var r=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return r.push(o(e))}))):r.push(o(e))})),e.options=r}catch(n){console.error("convertFieldsOptions error: ",e.options,n)}else if(e.options&&i.isArray(e.options))try{i.forEach(e.options,(function(e){i.isString(e)?r.push(o(e)):r.push(e)})),e.options=r}catch(n){console.error("Creator.convertFieldsOptions",e.options,n)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return r.push({label:e,value:t})})),e.options=r)}))},s;r.convertObject=a,function(e){e.Object="CustomObject",e.Field="CustomField",e.Action="CustomAction",e.Listview="CustomListview",e.Permission="CustomPermission",e.ValidationRule="CustomValidationRule",e.Application="CustomApplication",e.Tab="CustomTabs",e.Permissionset="CustomPermissionset",e.Profile="CustomProfile",e.Report="CustomReport",e.Workflow="Workflow",e.Layout="Layout",e.Client="Client",e.Server="Server",e.Function="Function",e.Router="Router",e.Trigger="Trigger"}(s=r.SteedosTranslationPrefixKeys||(r.SteedosTranslationPrefixKeys={}))},"objectTranslation.js":function e(t,r,e,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.addObjectsTranslation=r.getObjectTranslationTemplate=r.translationObjects=r.translationObject=r.translationObjectLabel=void 0;var i=t("underscore"),o=t("./"),a=t("../index"),s=t("./index"),u=t("../i18n/i18n"),c=t("lodash"),l=t("crypto"),f,d=(0,t("@steedos/cachers").getCacher)("lru.translations.objects");function h(e){var t;return l.createHash("md5").update(e).digest("hex")}var p=function(e,t){return"".concat(e,"_").concat(t.name,"_").concat(h(JSON.stringify(t)))},b=t("clone"),m=".",g="base",v="core",y="translation",w="object",_="field",x="listview",k="action",S=function(e,t){var r={lng:t,ns:y,keySeparator:!1};if((0,a.exists)(e,r))return(0,a._t)(e,r)},j=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},A=function(e){switch(e){case"object":return o.SteedosTranslationPrefixKeys.Object;case"field":return o.SteedosTranslationPrefixKeys.Field;case"listview":return o.SteedosTranslationPrefixKeys.Listview;case"action":return o.SteedosTranslationPrefixKeys.Action;default:return"CustomLabels"}},D=function(e){var t;return[A(),e].join(".")},E=function(e){var t;return[A("object"),e,"label"].join(".")},C=function(e){var t;return[A("object"),e,"description"].join(".")},O=function(e,t){var r;return t&&(t=t.replace(/\./g,"_")),[A("field"),e,t,"label"].join(".")},T=function(e,t){var r;return t&&(t=t.replace(/\./g,"_")),[A("field"),e,t,"help"].join(".")},M=function(e,t){var r;return t&&(t=t.replace(/\./g,"_")),[A("field"),e,t,"description"].join(".")},B=function(e,t){var r=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_"),n;return[A("field"),e,"group",r].join(".")},I=function(e,t,r){var n;return t&&(t=t.replace(/\./g,"_")),[A("field"),e,t,"options",r].join(".")},R=function(e,t){var r;return[A("action"),e,t].join(".")},N=function(e,t){var r;return[A("listview"),e,t].join(".")},F=function(e,t,r){var n,i=[E(t)],o=u.fallbackKeys.getObjectLabelKey(t);return o&&i.push(o),S(i,e)||r||""};r.translationObjectLabel=F;var P=function(e,t,r){var n=C(t);return S(n,e)||r||""},L=function(e,t,r,n,i,o){var a,s=[O(t,r)],c=u.fallbackKeys.getObjectFieldLabelKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=L(e,f,r,n,i))}return l||n||""},q=function(e,t,r,n,i,o){var a,s=[T(t,r)],c=u.fallbackKeys.getObjectFieldInlineHelpTextLabelKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=q(e,f,r,n,i))}return l||n||""},z=function(e,t,r,n,i,o){var a=M(t,r),s,u=S([a],e);if(1!=o&&!u){var c=j(i);c&&"base"!=t&&"core"!=t&&(u=z(e,c,r,n,i))}return u||n||""},U=function(e,t,r,n,i,o){var a,s=[B(t,r)],c=u.fallbackKeys.getObjectFieldGroupKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=U(e,f,r,n,i))}return l||n||""},H=function(e,t,r,n,i,o,a){var s,c=[I(t,r,n)],l=u.fallbackKeys.getObjectFieldOptionsLabelKey(t,r,n);l&&c.push(l);var f=S(c,e);if(1!=a&&!f){var d=j(o);d&&"base"!=t&&"core"!=t&&(f=H(e,d,r,n,i,o))}return f||i||""},W=function(e,t,r,n,i,o){var a,s=[R(t,r)],c=u.fallbackKeys.getObjectActionLabelKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=W(e,f,r,n,i))}return l||n||""},$=function(e,t,r,n,i,o){var a,s=[N(t,r)],c=u.fallbackKeys.getObjectListviewLabelKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=$(e,f,r,n,i))}return l||n||""},Y=function(e,t,n,o,a){void 0===a&&(a=!1);var u=p(e,n);"test_obj_layout1"===t&&console.log("translationObject",t,u);var l=d.get(u);if(l)return Object.assign(n,(0,c.cloneDeep)(l));o&&(0,s.convertObject)(n),n.label=(0,r.translationObjectLabel)(e,t,n.label),n.description=P(e,t,n.description),i.each(n.fields,(function(r,o){if(r.label=L(e,t,o,r.label,n.datasource,a),r.inlineHelpText&&(r.inlineHelpText=q(e,t,o,r.inlineHelpText,n.datasource,a)),r.group&&(r.group=U(e,t,r.group,r.group,n.datasource,a)),r.options){var s=[];i.each(r.options,(function(r){if(i.has(r,"value")){var u=H(e,t,o,r.value,r.label,n.datasource,a);s.push(i.extend({},r,{label:u}))}else s.push(r)})),r.options=s}})),i.each(n.actions,(function(r,i){r.label=W(e,t,i,r.label,n.datasource,a)})),i.each(n.list_views,(function(r,i){r.label=$(e,t,i,r.label,n.datasource,a)})),d.set(u,(0,c.cloneDeep)(n))};r.translationObject=Y;var V=function(e,t){i.each(t,(function(t,n){(0,r.translationObject)(e,n,t)}))};r.translationObjects=V;var K=function(e,t,n){var o=b(n);(0,s.convertObject)(o);var a={};return a[E(t)]=(0,r.translationObjectLabel)(e,t,o.label),a[C(t)]=P(e,t,o.description),i.each(o.fields,(function(r,n){a[O(t,n)]=L(e,t,n,r.label),r.inlineHelpText&&(a[T(t,n)]=q(e,t,n,r.inlineHelpText,o.datasource)),r.description&&(a[M(t,n)]=z(e,t,n,r.description,o.datasource)),r.group&&(a[B(t,r.group)]=U(e,t,r.group,r.group,o.datasource)),r.options&&i.each(r.options,(function(r){i.has(r,"value")&&(a[I(t,n,r.value)]=H(e,t,n,r.value,r.label))}))})),i.each(o.actions,(function(r,n){a[R(t,n)]=W(e,t,n,r.label)})),i.each(o.list_views,(function(r,n){a[N(t,n)]=$(e,t,n,r.label)})),a};function G(e,t){var r=b(e);(0,s.convertObject)(r);var n={},o=r.name;return o||console.error("Error: Invalid objectTranslation:"+t),n[E(o)]=r.label,n[C(o)]=r.description,i.each(r.fields,(function(e,t){n[O(o,t)]=e.label,e.help&&(n[T(o,t)]=e.help),e.description&&(n[M(o,t)]=e.description),e.options&&i.each(e.options,(function(e){i.has(e,"value")&&(n[I(o,t,e.value)]=e.label)}))})),i.each(r.groups,(function(e,t){n[B(o,t)]=e})),i.each(r.actions,(function(e,t){n[R(o,t)]=e.label})),i.each(r.listviews,(function(e,t){n[N(o,t)]=e.label})),i.each(r.CustomLabels,(function(e,t){n[D(t)]=e})),n}r.getObjectTranslationTemplate=K;var X=function(e){i.each(e,(function(e){var t=G(e.data,e.__filename);(0,a.addResourceBundle)(e.lng,y,t,!0,!0)}))};r.addObjectsTranslation=X},"translation.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.addTranslations=r.convertTranslation=r.convertTranslationData=r.getAppTranslationTemplate=r.translationApps=r.translationMenus=r.translationApp=r.translationTabLabel=r.translationTabGroup=void 0;var n=t("../index"),i=t("underscore"),o=t("./"),a=t("../i18n/i18n.app"),s=t("clone"),u="translation",c=".",l="app",f="menu",d="tab",h=function(e){switch(e){case"app":return o.SteedosTranslationPrefixKeys.Application;case"tab":return o.SteedosTranslationPrefixKeys.Tab;default:return"CustomLabels"}},p=function(e){var t;return[h(),e].join(".")},b=function(e,t){var r={lng:t,ns:u,keySeparator:!1};if((0,n.exists)(e,r))return(0,n._t)(e,r)},m=function(e){var t;return[h("app"),e,"name"].join(".")},g=function(e){var t;return[h("app"),e,"description"].join(".")},v=function(e,t){var r,n;return[h("app"),e,"groups",t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_")].join(".")},y=function(e){var t;return[h("menu"),"menu_".concat(e)].join(".")},w=function(e){var t;return[h("tab"),e].join(".")},_=function(e,t,r){var n,i=[m(t)],o=a.appFallbackKeys.getAppLabelKey(t);return o&&i.push(o),b(i,e)||r||""},x=function(e,t,r){var n,i=[g(t)],o=a.appFallbackKeys.getAppDescriptionKey(t);return o&&i.push(o),b(i,e)||r||""},k=function(e,t,r,n){var i,o=[v(t,r)],s=a.appFallbackKeys.getAppGroupKey(t,r);return s&&o.push(s),b(o,e)||n||""};r.translationTabGroup=k;var S=function(e,t,r){var n,i=[y(t)],o=a.appFallbackKeys.getMenuLabelKey(t);return o&&i.push(o),b(i,e)||r||""},j=function(e,t,r){var n,i=[w(t)],o=a.appFallbackKeys.getTabKey(t);return o&&i.push(o),b(i,e)||r||""};r.translationTabLabel=j;var A=function(e,t,n){n.label=_(e,t,n.label||n.name),n.description=x(e,t,n.description),i.each(n.tab_groups,(function(i,o){n.tab_groups[o].id=i.id||i.group_name,n.tab_groups[o].group_name=(0,r.translationTabGroup)(e,t,i.group_name,i.group_name)})),(0,r.translationMenus)(e,n.admin_menus)};r.translationApp=A;var D=function(e,t){i.each(t,(function(t){var r=S(e,t._id,t.label||t.name);t.label=r,t.name=r}))};r.translationMenus=D;var E=function(e,t){i.each(t,(function(t,n){(0,r.translationApp)(e,n,t)}))};r.translationApps=E;var C=function(e,t,r){var n=s(r),o={};return o[m(t)]=_(e,t,n.label||n.name),o[g(t)]=x(e,t,n.description),i.each(n.admin_menus,(function(t){o[y(t._id)]=S(e,t._id,t.label||t.name)})),o};r.getAppTranslationTemplate=C;var O=function(e,t,r){i.isArray(r)?i.each(r,(function(e){O(e,"",e)})):r&&i.each(i.keys(r),(function(n){var o=t?"".concat(t,".").concat(n):n,a=r[n];"object"==typeof a?i.isArray(a)?i.each(a,(function(e){O(e,o,a)})):O(e,o,a):e[o]=a}))};function T(e){for(var t in e)"object"==typeof e[t]&&O(e,t,e[t]);return e}r.convertTranslationData=T;var M=function(e){var t=s(e),r={};return i.each(t.CustomApplications,(function(e,t){r[m(t)]=e.name,r[g(t)]=e.description,i.each(e.groups,(function(e,n){r[v(t,n)]=e}))})),i.each(t.CustomTabs,(function(e,t){r[w(t)]=e})),i.each(t.CustomLabels,(function(e,t){var n;if("simpleschema"!=t&&i.isObject(e)){var o=T(((n={})[t]=e,n));i.each(o,(function(e,t){i.isObject(e)||(r[p(t)]=e)}))}else r[p(t)]=e})),r};r.convertTranslation=M;var B=function(e){i.each(e,(function(e){var t=(0,r.convertTranslation)(e.data);(0,n.addResourceBundle)(e.lng,u,t,!0,!0)}))};r.addTranslations=B},templates:{"objectTranslation.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getObjectMetadataTranslationTemplate=void 0;var n=t("underscore"),i=t("../index"),o=t("clone");function a(e,t){var r={};return n.each(e,(function(e){r[e]="help"===e?t.inlineHelpText||"":t[e]||""})),r}function s(e){return a(["label","description"],e)}function u(e){switch(e.type){case"select":return a(["label","help","options","description"],e);default:return a(["label","help","description"],e)}}function c(e){return a(["label"],e)}function l(e){return a(["label"],e)}function f(e){var t={};return n.each(e,(function(e,r){t[r]=u(e)})),t}function d(e){var t={};return n.each(e,(function(e,r){t[r]=l(e)})),t}function h(e){var t={};return n.each(e,(function(e,r){t[r]=c(e)})),t}function p(e,t){var r={};return n.each(e,(function(e,n){if(e.group){var i=e.group.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");r[i]=t[n].group}})),r}var b=function(e,t,r,a){void 0===a&&(a=!1);var u=o(r);1!=a&&(0,i.translationObject)(e,t,u,!0,a);var c=Object.assign({},s(u));c=Object.assign({},c,{fields:f(u.fields)});var l=p(r.fields,u.fields);n.isEmpty(l)||(c=Object.assign({},c,{groups:l}));var b=h(u.list_views);n.isEmpty(b)||(c=Object.assign({},c,{listviews:b}));var m=d(u.actions);return n.isEmpty(m)||(c=Object.assign({},c,{actions:m})),Object.assign({name:t},c)};r.getObjectMetadataTranslationTemplate=b},"translation.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getAppMetadataTranslationTemplate=void 0;var n=t("underscore"),i=t("../index"),o=t("clone");function a(e,t){var r={};return n.each(e,(function(e){r[e]=t[e]||""})),r}function s(e){var t={groups:{}};return e?(n.each(e,(function(e){var r=e.group_name.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t.groups[r]=e.group_name})),t):{}}var u=function(e){return Object.assign({},a(["name","description"],e),s(e.tab_groups))},c=function(e){var t={};return n.each(e,(function(e,r){t[r]=r})),t},l=function(e){var t={};return n.each(e,(function(e){var r=e.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t[r]=e})),t},f=function(e,t,r){var n,a=o(r);(0,i.translationApp)(e,t,a);var s={},f;return a.tab_items?s=c(a.tab_items):a.tabs&&(s=l(a.tabs)),Object.assign({},{CustomApplications:(n={},n[t]=u(a),n)},{CustomTabs:s})};r.getAppMetadataTranslationTemplate=f}}}},node_modules:{i18next:{"package.json":function e(t,r,e){e.exports={name:"i18next",version:"19.9.2",main:"./dist/cjs/i18next.js",module:"./dist/esm/i18next.js"}},dist:{cjs:{"i18next.js":function e(t,r,e){"use strict";var n=t("@babel/runtime/helpers/typeof"),i=t("@babel/runtime/helpers/objectSpread"),o=t("@babel/runtime/helpers/classCallCheck"),a=t("@babel/runtime/helpers/createClass"),s=t("@babel/runtime/helpers/possibleConstructorReturn"),u=t("@babel/runtime/helpers/getPrototypeOf"),c=t("@babel/runtime/helpers/assertThisInitialized"),l=t("@babel/runtime/helpers/inherits");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=f(n),h=f(i),p=f(o),b=f(a),m=f(s),g=f(u),v=f(c),y=f(l),w={type:"logger",log:function e(t){this.output("log",t)},warn:function e(t){this.output("warn",t)},error:function e(t){this.output("error",t)},output:function e(t,r){console&&console[t]&&console[t].apply(console,r)}},_,x=new(function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p.default(this,e),this.init(t,r)}return b.default(e,[{key:"init",value:function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||w,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function e(t){this.debug=t}},{key:"log",value:function e(){for(var t=arguments.length,r=new Array(t),n=0;n1?r-1:0),i=1;i-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:n(o.shift())}}function E(e,t,r){var n=D(e,t,Object),i,o;n.obj[n.k]=r}function C(e,t,r,n){var i=D(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],n&&(o[a]=o[a].concat(r)),n||o[a].push(r)}function O(e,t){var r=D(e,t),n=r.obj,i=r.k;if(n)return n[i]}function T(e,t,r){var n=O(e,r);return void 0!==n?n:O(t,r)}function M(e,t,r){for(var n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?"string"==typeof e[n]||e[n]instanceof String||"string"==typeof t[n]||t[n]instanceof String?r&&(e[n]=t[n]):M(e[n],t[n],r):e[n]=t[n]);return e}function B(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var I={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function R(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return I[e]})):e}var N="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,F=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return p.default(this,t),r=m.default(this,g.default(t).call(this)),N&&k.call(v.default(r)),r.data=e||{},r.options=n,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r}return y.default(t,e),b.default(t,[{key:"addNamespaces",value:function e(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function e(t){var r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function e(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[t,r];return n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(a=t.split(".")),O(this.data,a)}},{key:"addResource",value:function e(t,r,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var s=[t,r];n&&(s=s.concat(a?n.split(a):n)),t.indexOf(".")>-1&&(i=r,r=(s=t.split("."))[1]),this.addNamespaces(r),E(this.data,s,i),o.silent||this.emit("added",t,r,n,i)}},{key:"addResources",value:function e(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(t,r,o,n[o],{silent:!0});i.silent||this.emit("added",t,r,n)}},{key:"addResourceBundle",value:function e(t,r,n,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[t,r];t.indexOf(".")>-1&&(i=n,n=r,r=(s=t.split("."))[1]),this.addNamespaces(r);var u=O(this.data,s)||{};i?M(u,n,o):u=h.default({},u,n),E(this.data,s,u),a.silent||this.emit("added",t,r,n)}},{key:"removeResourceBundle",value:function e(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}},{key:"hasResourceBundle",value:function e(t,r){return void 0!==this.getResource(t,r)}},{key:"getResourceBundle",value:function e(t,r){return r||(r=this.options.defaultNS),"v1"===this.options.compatibilityAPI?h.default({},{},this.getResource(t,r)):this.getResource(t,r)}},{key:"getDataByLanguage",value:function e(t){return this.data[t]}},{key:"toJSON",value:function e(){return this.data}}]),t}(k),P={processors:{},addPostProcessor:function e(t){this.processors[t.name]=t},handle:function e(t,r,n,i,o){var a=this;return t.forEach((function(e){a.processors[e]&&(r=a.processors[e].process(r,n,i,o))})),r}},L={},q=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p.default(this,t),r=m.default(this,g.default(t).call(this)),N&&k.call(v.default(r)),A(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,v.default(r)),r.options=n,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=x.create("translator"),r}return y.default(t,e),b.default(t,[{key:"changeLanguage",value:function e(t){t&&(this.language=t)}},{key:"exists",value:function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(t,r);return n&&void 0!==n.res}},{key:"extractFromKey",value:function e(t,r){var n=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=r.ns||this.options.defaultNS;if(n&&t.indexOf(n)>-1){var a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:o};var s=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),t=s.join(i)}return"string"==typeof o&&(o=[o]),{key:t,namespaces:o}}},{key:"translate",value:function e(r,n,i){var o=this;if("object"!==d.default(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==r)return"";Array.isArray(r)||(r=[String(r)]);var a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(r[r.length-1],n),u=s.key,c=s.namespaces,l=c[c.length-1],f=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(p){var b=n.nsSeparator||this.options.nsSeparator;return l+b+u}return u}var m=this.resolve(r,n),g=m&&m.res,v=m&&m.usedKey||u,y=m&&m.exactUsedKey||u,w=Object.prototype.toString.apply(g),_=["[object Number]","[object Function]","[object RegExp]"],x=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,S="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(k&&g&&S&&_.indexOf(w)<0&&("string"!=typeof x||"[object Array]"!==w)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,g,n):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(a){var j="[object Array]"===w,A=j?[]:{},D=j?y:v;for(var E in g)if(Object.prototype.hasOwnProperty.call(g,E)){var C="".concat(D).concat(a).concat(E);A[E]=this.translate(C,h.default({},n,{joinArrays:!1,ns:c})),A[E]===C&&(A[E]=g[E])}g=A}}else if(k&&"string"==typeof x&&"[object Array]"===w)(g=g.join(x))&&(g=this.extendTranslation(g,r,n,i));else{var O=!1,T=!1,M=void 0!==n.count&&"string"!=typeof n.count,B=t.hasDefaultValue(n),I=M?this.pluralResolver.getSuffix(f,n.count):"",R=n["defaultValue".concat(I)]||n.defaultValue;!this.isValidLookup(g)&&B&&(O=!0,g=R),this.isValidLookup(g)||(T=!0,g=u);var N=B&&R!==g&&this.options.updateMissing;if(T||O||N){if(this.logger.log(N?"updateKey":"missingKey",f,l,u,N?R:g),a){var F=this.resolve(u,h.default({},n,{keySeparator:!1}));F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var P=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var q=0;q1&&void 0!==arguments[1]?arguments[1]:{},i,o,a,s,u;return"string"==typeof t&&(t=[t]),t.forEach((function(e){if(!r.isValidLookup(i)){var t=r.extractFromKey(e,n),c=t.key;o=c;var l=t.namespaces;r.options.fallbackNS&&(l=l.concat(r.options.fallbackNS));var f=void 0!==n.count&&"string"!=typeof n.count,d=void 0!==n.context&&"string"==typeof n.context&&""!==n.context,h=n.lngs?n.lngs:r.languageUtils.toResolveHierarchy(n.lng||r.language,n.fallbackLng);l.forEach((function(e){r.isValidLookup(i)||(u=e,!L["".concat(h[0],"-").concat(e)]&&r.utils&&r.utils.hasLoadedNamespace&&!r.utils.hasLoadedNamespace(u)&&(L["".concat(h[0],"-").concat(e)]=!0,r.logger.warn('key "'.concat(o,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(t){if(!r.isValidLookup(i)){s=t;var o=c,u=[o],l,h;if(r.i18nFormat&&r.i18nFormat.addLookupKeys)r.i18nFormat.addLookupKeys(u,c,t,e,n);else f&&(l=r.pluralResolver.getSuffix(t,n.count)),f&&d&&u.push(o+l),d&&u.push(o+="".concat(r.options.contextSeparator).concat(n.context)),f&&u.push(o+=l);for(;h=u.pop();)r.isValidLookup(i)||(a=h,i=r.getResource(t,e,h,n))}})))}))}})),{res:i,usedKey:o,exactUsedKey:a,usedLng:s,usedNS:u}}},{key:"isValidLookup",value:function e(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function e(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,i):this.resourceStore.getResource(t,r,n,i)}}],[{key:"hasDefaultValue",value:function e(t){var r="defaultValue";for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&void 0!==t[n])return!0;return!1}}]),t}(k);function z(e){return e.charAt(0).toUpperCase()+e.slice(1)}var U=function(){function e(t){p.default(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=x.create("languageUtils")}return b.default(e,[{key:"getScriptPartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return null;var r=t.split("-");return 2===r.length?null:(r.pop(),"x"===r[r.length-1].toLowerCase()?null:this.formatLanguageCode(r.join("-")))}},{key:"getLanguagePartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return t;var r=t.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function e(t){if("string"==typeof t&&t.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=z(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=z(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=z(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function e(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function e(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function e(t){var r=this,n;return t?(t.forEach((function(e){if(!n){var t=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(t)||(n=t)}})),!n&&this.options.supportedLngs&&t.forEach((function(e){if(!n){var t=r.getLanguagePartFromCode(e);if(r.isSupportedCode(t))return n=t;n=r.options.supportedLngs.find((function(e){if(0===e.indexOf(t))return e}))}})),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function e(t,r){if(!t)return[];if("function"==typeof t&&(t=t(r)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!r)return t.default||[];var n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function e(t,r){var n=this,i=this.getFallbackCodes(r||this.options.fallbackLng||[],t),o=[],a=function e(t){t&&(n.isSupportedCode(t)?o.push(t):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(t))):"string"==typeof t&&a(this.formatLanguageCode(t)),i.forEach((function(e){o.indexOf(e)<0&&a(n.formatLanguageCode(e))})),o}}]),e}(),H=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],W={1:function e(t){return Number(t>1)},2:function e(t){return Number(1!=t)},3:function e(t){return 0},4:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function e(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function e(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function e(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function e(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function e(t){return Number(t>=2)},10:function e(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function e(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function e(t){return Number(t%10!=1||t%100==11)},13:function e(t){return Number(0!==t)},14:function e(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function e(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function e(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function e(t){return Number(0==t?0:1==t?1:2)},19:function e(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function e(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function e(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function e(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function $(){var e={};return H.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:W[t.fc]}}))})),e}var Y=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p.default(this,e),this.languageUtils=t,this.options=r,this.logger=x.create("pluralResolver"),this.rules=$()}return b.default(e,[{key:"addRule",value:function e(t,r){this.rules[t]=r}},{key:"getRule",value:function e(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function e(t){var r=this.getRule(t);return r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function e(t,r){return this.getSuffixes(t).map((function(e){return r+e}))}},{key:"getSuffixes",value:function e(t){var r=this,n=this.getRule(t);return n?n.numbers.map((function(e){return r.getSuffix(t,e)})):[]}},{key:"getSuffix",value:function e(t,r){var n=this,i=this.getRule(t);if(i){var o=i.noAbs?i.plurals(r):i.plurals(Math.abs(r)),a=i.numbers[o];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===a?a="plural":1===a&&(a=""));var s=function e(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return"v1"===this.options.compatibilityJSON?1===a?"":"number"==typeof a?"_plural_".concat(a.toString()):s():"v2"===this.options.compatibilityJSON?s():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),V=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p.default(this,e),this.logger=x.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return b.default(e,[{key:"init",value:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:R,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?B(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?B(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?B(r.nestingPrefix):r.nestingPrefixEscaped||B("$t("),this.nestingSuffix=r.nestingSuffix?B(r.nestingSuffix):r.nestingSuffixEscaped||B(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=void 0!==r.alwaysFormat&&r.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function e(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function e(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function e(t,r,n,i){var o=this,a,s,u,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var f=function e(t){if(t.indexOf(o.formatSeparator)<0){var a=T(r,c,t);return o.alwaysFormat?o.format(a,void 0,n):a}var s=t.split(o.formatSeparator),u=s.shift().trim(),l=s.join(o.formatSeparator).trim();return o.format(T(r,c,u),l,n,i)};this.resetRegExp();var d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p;return[{regex:this.regexpUnescape,safeValue:function e(t){return l(t)}},{regex:this.regexp,safeValue:function e(t){return o.escapeValue?l(o.escape(t)):l(t)}}].forEach((function(e){for(u=0;a=e.regex.exec(t);){if(void 0===(s=f(a[1].trim())))if("function"==typeof d){var r=d(t,a,i);s="string"==typeof r?r:""}else{if(h){s=a[0];continue}o.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(t)),s=""}else"string"==typeof s||o.useRawValueToEscape||(s=j(s));if(t=t.replace(a[0],e.safeValue(s)),e.regex.lastIndex=0,++u>=o.maxReplaces)break}})),t}},{key:"nest",value:function e(t,r){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o,a,s=h.default({},i);function u(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var n=e.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(n[1]);e=n[0],i=(i=this.interpolate(i,s)).replace(/'/g,'"');try{s=JSON.parse(i),t&&(s=h.default({},t,s))}catch(o){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),o),"".concat(e).concat(r).concat(i)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;o=this.nestingRegexp.exec(t);){var c=[],l=!1;if(o[0].includes(this.formatSeparator)&&!/{.*}/.test(o[1])){var f=o[1].split(this.formatSeparator).map((function(e){return e.trim()}));o[1]=f.shift(),c=f,l=!0}if((a=r(u.call(this,o[1].trim(),s),s))&&o[0]===t&&"string"!=typeof a)return a;"string"!=typeof a&&(a=j(a)),a||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(t)),a=""),l&&(a=c.reduce((function(e,t){return n.format(e,t,i.lng,i)}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}]),e}();function K(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}var G=function(e){function t(e,r,n){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return p.default(this,t),i=m.default(this,g.default(t).call(this)),N&&k.call(v.default(i)),i.backend=e,i.store=r,i.services=n,i.languageUtils=n.languageUtils,i.options=o,i.logger=x.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(n,o.backend,o),i}return y.default(t,e),b.default(t,[{key:"queueLoad",value:function e(t,r,n,i){var o=this,a=[],s=[],u=[],c=[];return t.forEach((function(e){var t=!0;r.forEach((function(r){var i="".concat(e,"|").concat(r);!n.reload&&o.store.hasResourceBundle(e,r)?o.state[i]=2:o.state[i]<0||(1===o.state[i]?s.indexOf(i)<0&&s.push(i):(o.state[i]=1,t=!1,s.indexOf(i)<0&&s.push(i),a.indexOf(i)<0&&a.push(i),c.indexOf(r)<0&&c.push(r)))})),t||u.push(e)})),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:a,pending:s,toLoadLanguages:u,toLoadNamespaces:c}}},{key:"loaded",value:function e(t,r,n){var i=t.split("|"),o=i[0],a=i[1];r&&this.emit("failedLoading",o,a,r),n&&this.store.addResourceBundle(o,a,n),this.state[t]=r?-1:2;var e={};this.queue.forEach((function(n){C(n.loaded,[o],a),K(n.pending,t),r&&n.errors.push(r),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(t){e[t]||(e[t]=[]),n.loaded[t].length&&n.loaded[t].forEach((function(r){e[t].indexOf(r)<0&&e[t].push(r)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",e),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function e(t,r,n){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[n](t,r,(function(e,u){e&&u&&o<5?setTimeout((function(){i.read.call(i,t,r,n,o+1,2*a,s)}),a):s(e,u)})):s(null,{})}},{key:"prepareLoading",value:function e(t,r){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof r&&(r=[r]);var a=this.queueLoad(t,r,i,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function e(t,r,n){this.prepareLoading(t,r,{},n)}},{key:"reload",value:function e(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}},{key:"loadOne",value:function e(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t.split("|"),o=i[0],a=i[1];this.read(o,a,"read",void 0,void 0,(function(e,i){e&&r.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(o," failed"),e),!e&&i&&r.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(o),i),r.loaded(t,e,i)}))}},{key:"saveMissing",value:function e(t,r,n,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(t,r,n,i,null,h.default({},a,{isUpdate:o})),t&&t[0]&&this.store.addResource(t[0],r,n,i))}}]),t}(k);function X(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function e(t){var r={};if("object"===d.default(t[1])&&(r=t[1]),"string"==typeof t[1]&&(r.defaultValue=t[1]),"string"==typeof t[2]&&(r.tDescription=t[2]),"object"===d.default(t[2])||"object"===d.default(t[3])){var n=t[3]||t[2];Object.keys(n).forEach((function(e){r[e]=n[e]}))}return r},interpolation:{escapeValue:!0,format:function e(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function Z(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function J(){}var Q,ee=new(function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(p.default(this,t),e=m.default(this,g.default(t).call(this)),N&&k.call(v.default(e)),e.options=Z(r),e.services={},e.logger=x,e.modules={external:[]},n&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,n),m.default(e,v.default(e));setTimeout((function(){e.init(r,n)}),0)}return e}return y.default(t,e),b.default(t,[{key:"init",value:function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function i(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof r&&(n=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=h.default({},X(),this.options,Z(r)),this.format=this.options.interpolation.format,n||(n=J),!this.options.isClone){this.modules.logger?x.init(i(this.modules.logger),this.options):x.init(null,this.options);var o=new U(this.options);this.store=new F(this.options.resources,this.options);var a=this.services;a.logger=x,a.resourceStore=this.store,a.languageUtils=o,a.pluralResolver=new Y(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new V(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new G(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i1?r-1:0),i=1;i0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments),t}}));var l=S(),f=function e(){var r=function e(r,i){t.isInitialized&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),l.resolve(i),n(r,i)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return r(null,t.t.bind(t));t.changeLanguage(t.options.lng,r)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),l}},{key:"loadResources",value:function e(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J,i=n,o="string"==typeof t?t:this.language;if("function"==typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return i();var a=[],s=function e(t){var n;t&&r.services.languageUtils.toResolveHierarchy(t).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};if(o)s(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return s(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return s(e)})),this.services.backendConnector.load(a,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function e(t,r,n){var i=S();return t||(t=this.languages),r||(r=this.options.ns),n||(n=J),this.services.backendConnector.reload(t,r,(function(e){i.resolve(),n(e)})),i}},{key:"use",value:function e(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&P.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function e(t,r){var n=this;this.isLanguageChangingTo=t;var i=S();this.emit("languageChanging",t);var o=function e(t,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,i.resolve((function(){return n.t.apply(n,arguments)})),r&&r(t,(function(){return n.t.apply(n,arguments)}))},a=function e(t){var r="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);r&&(n.language||(n.language=r,n.languages=n.services.languageUtils.toResolveHierarchy(r)),n.translator.language||n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,(function(e){o(e,r)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(t):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function e(t,r){var n=this,i=function e(t,r){var i;if("object"!==d.default(r)){for(var o=arguments.length,a=new Array(o>2?o-2:0),s=2;s1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],o=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var s=function e(t,n){var i=r.services.backendConnector.state["".concat(t,"|").concat(n)];return-1===i||2===i};if(n.precheck){var u=n.precheck(this,s);if(void 0!==u)return u}return!!this.hasResourceBundle(i,t)||(!this.services.backendConnector.backend||!(!s(i,t)||o&&!s(a,t)))}},{key:"loadNamespaces",value:function e(t,r){var n=this,i=S();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),r&&r(e)})),i):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function e(t,r){var n=S();"string"==typeof t&&(t=[t]);var i=this.options.preload||[],o=t.filter((function(e){return i.indexOf(e)<0}));return o.length?(this.options.preload=i.concat(o),this.loadResources((function(e){n.resolve(),r&&r(e)})),n):(r&&r(),Promise.resolve())}},{key:"dir",value:function e(t){return t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),t?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr":"rtl";var r}},{key:"createInstance",value:function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(r,n)}},{key:"cloneInstance",value:function e(){var r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J,o=h.default({},this.options,n,{isClone:!0}),a=new t(o),s=["store","services","language"];return s.forEach((function(e){a[e]=r[e]})),a.services=h.default({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new q(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=0&&r<=y}}function Z(e){return function(t){return null==t?void 0:t[e]}}var J=Z("byteLength"),Q=X(J),ee=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function te(e){return p?p(e)&&!U(e):Q(e)&&ee.test(s.call(e))}var re=c?te:G(!1),ne=Z("length");function ie(e){for(var t={},r=e.length,n=0;n":">",'"':""","'":"'","`":"`"},st=ot(at),ut,ct=ot(Oe(at)),lt=ce.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},ft=/(.)^/,dt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ht=/\\|'|\r|\n|\u2028|\u2029/g;function pt(e){return"\\"+dt[e]}var bt=/^\s*(\w|\$)+\s*$/;function mt(e,t,r){!t&&r&&(t=r),t=Re({},t,ce.templateSettings);var n=RegExp([(t.escape||ft).source,(t.interpolate||ft).source,(t.evaluate||ft).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(n,(function(t,r,n,a,s){return o+=e.slice(i,s).replace(ht,pt),i=s+t.length,r?o+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":n?o+="'+\n((__t=("+n+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t})),o+="';\n";var a=t.variable,s;if(a){if(!bt.test(a))throw new Error("variable is not a bare identifier: "+a)}else o="with(obj||{}){\n"+o+"}\n",a="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{s=new Function(a,"_",o)}catch(c){throw c.source=o,c}var u=function(e){return s.call(this,e,ce)};return u.source="function("+a+"){\n"+o+"}",u}function gt(e,t,r){var n=(t=Ue(t)).length;if(!n)return N(r)?r.call(e):r;for(var i=0;i1)jt(s,t-1,r,n),i=n.length;else for(var u=0,c=s.length;ut?(n&&(clearTimeout(n),n=null),s=c,a=e.apply(i,o),n||(i=o=null)):n||!1===r.trailing||(n=setTimeout(u,l)),a};return c.cancel=function(){clearTimeout(n),s=0,n=i=o=null},c}function Tt(e,t,r){var n,i,o,a,s,u=function(){var c=it()-i;t>c?n=setTimeout(u,t-c):(n=null,r||(a=e.apply(s,o)),n||(o=s=null))},c=w((function(c){return s=this,o=c,i=it(),n||(n=setTimeout(u,t),r&&(a=e.apply(s,o))),a}));return c.cancel=function(){clearTimeout(n),n=o=s=null},c}function Mt(e,t){return xt(t,e)}function Bt(e){return function(){return!e.apply(this,arguments)}}function It(){var e=arguments,t=e.length-1;return function(){for(var r=t,n=e[t].apply(this,arguments);r--;)n=e[r].call(this,n);return n}}function Rt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Nt(e,t){var r;return function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}}var Ft=xt(Nt,2);function Pt(e,t,r){t=Je(t,r);for(var n=ae(e),i,o=0,a=n.length;o0?0:i-1;o>=0&&o0?s=o>=0?o:Math.max(o+u,s):u=o>=0?Math.min(o+1,u):o+u+1;else if(r&&o&&u)return n[o=r(n,i)]===i?o:-1;if(i!=i)return(o=t(a.call(n,s,u),K))>=0?o+s:-1;for(o=e>0?s:u-1;o>=0&&o0?0:a-1;for(i||(n=t[o?o[s]:s],s+=e);s>=0&&s=3;return t(e,Ge(r,i,4),n,o)}}var Zt=Xt(1),Jt=Xt(-1);function Qt(e,t,r){var n=[];return t=Je(t,r),Kt(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function er(e,t,r){return Qt(e,Bt(Je(t)),r)}function tr(e,t,r){t=Je(t,r);for(var n=!St(e)&&ae(e),i=(n||e).length,o=0;o=0}var ir=w((function(e,t,r){var n,i;return N(t)?i=t:(t=Ue(t),n=t.slice(0,-1),t=t[t.length-1]),Gt(e,(function(e){var o=i;if(!o){if(n&&n.length&&(e=He(e,n)),null==e)return;o=e[t]}return null==o?o:o.apply(e,r)}))}));function or(e,t){return Gt(e,Ke(t))}function ar(e,t){return Qt(e,Ve(t))}function sr(e,t,r){var n=-1/0,i=-1/0,o,a;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=St(e)?e:Ee(e)).length;sn&&(n=o);else t=Je(t,r),Kt(e,(function(e,r,o){((a=t(e,r,o))>i||a===-1/0&&n===-1/0)&&(n=e,i=a)}));return n}function ur(e,t,r){var n=1/0,i=1/0,o,a;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=St(e)?e:Ee(e)).length;sn||void 0===r)return 1;if(r1&&(n=Ge(n,t[1])),t=be(e)):(n=wr,t=jt(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i1&&(n=t[1])):(t=Gt(jt(t,!1,!1),String),r=function(e,r){return!nr(t,r)}),_r(e,r,n)}));function kr(e,t,r){return a.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))}function Sr(e,t,r){return null==e||e.length<1?null==t||r?void 0:[]:null==t||r?e[0]:kr(e,e.length-t)}function jr(e,t,r){return a.call(e,null==t||r?1:t)}function Ar(e,t,r){return null==e||e.length<1?null==t||r?void 0:[]:null==t||r?e[e.length-1]:jr(e,Math.max(0,e.length-t))}function Dr(e){return Qt(e,Boolean)}function Er(e,t){return jt(e,t,!1)}var Cr=w((function(e,t){return t=jt(t,!0,!0),Qt(e,(function(e){return!nr(t,e)}))})),Or=w((function(e,t){return Cr(e,t)}));function Tr(e,t,r,n){S(t)||(n=r,r=t,t=!1),null!=r&&(r=Je(r,n));for(var i=[],o=[],a=0,s=ne(e);ae(t),this)}}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},c=new Set,l=(e,t)=>{const r=`LRU_CACHE_OPTION_${e}`;p(r)&&b(r,`${e} option`,`options.${t}`,w)},f=(e,t)=>{const r=`LRU_CACHE_METHOD_${e}`;if(p(r)){const{prototype:n}=w,{get:i}=Object.getOwnPropertyDescriptor(n,e);b(r,`${e} method`,`cache.${t}()`,i)}},d=(e,t)=>{const r=`LRU_CACHE_PROPERTY_${e}`;if(p(r)){const{prototype:n}=w,{get:i}=Object.getOwnPropertyDescriptor(n,e);b(r,`${e} property`,`cache.${t}`,i)}},h=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},p=e=>!c.has(e),b=(e,t,r,n)=>{c.add(e);const i=`The ${t} is deprecated. Please use ${r} instead.`;h(i,"DeprecationWarning",e,n)},m=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),g=e=>m(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?v:null:null;class v extends Array{constructor(e){super(e),this.fill(0)}}class y{constructor(e){if(0===e)return[];const t=g(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class w{constructor(e={}){const{max:t=0,ttl:r,ttlResolution:n=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:s,dispose:u,disposeAfter:f,noDisposeOnSet:d,noUpdateTTL:b,maxSize:v=0,maxEntrySize:_=0,sizeCalculation:x,fetchMethod:k,fetchContext:S,noDeleteOnFetchRejection:j,noDeleteOnStaleGet:A}=e,{length:D,maxAge:E,stale:C}=e instanceof w?{}:e;if(0!==t&&!m(t))throw new TypeError("max option must be a nonnegative integer");const O=t?g(t):Array;if(!O)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=v,this.maxEntrySize=_||this.maxSize,this.sizeCalculation=x||D,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=k||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=S,!this.fetchMethod&&void 0!==S)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new O(t),this.prev=new O(t),this.head=0,this.tail=0,this.free=new y(t),this.initialFill=1,this.size=0,"function"==typeof u&&(this.dispose=u),"function"==typeof f?(this.disposeAfter=f,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!b,this.noDeleteOnFetchRejection=!!j,0!==this.maxEntrySize){if(0!==this.maxSize&&!m(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!m(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!s||!!C,this.noDeleteOnStaleGet=!!A,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=m(n)||0===n?n:1,this.ttlAutopurge=!!i,this.ttl=r||E||0,this.ttl){if(!m(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";if(p(e)){c.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";h(t,"UnboundedCacheWarning",e,w)}}C&&l("stale","allowStale"),E&&l("maxAge","ttl"),D&&l("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new v(this.max),this.starts=new v(this.max),this.setItemTTL=(e,t,r=n.now())=>{if(this.starts[e]=0!==t?r:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const r=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);r.unref&&r.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?n.now():0};let e=0;const t=()=>{const t=n.now();if(this.ttlResolution>0){e=t;const r=setTimeout(()=>e=0,this.ttlResolution);r.unref&&r.unref()}return t};this.getRemainingTTL=r=>{const n=this.keyMap.get(r);return void 0===n?0:0===this.ttls[n]||0===this.starts[n]?1/0:this.starts[n]+this.ttls[n]-(e||t())},this.isStale=r=>0!==this.ttls[r]&&0!==this.starts[r]&&(e||t())-this.starts[r]>this.ttls[r]}updateItemAge(e){}setItemTTL(e,t,r){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new v(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,r,n)=>{if(this.isBackgroundFetch(t))return 0;if(!m(r)){if(!n)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!m(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t)=>{if(this.sizes[e]=t,this.maxSize){const t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e]}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,r,n){if(r||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const r of this.indexes())if(e(this.valList[r],this.keyList[r],this))return this.get(this.keyList[r],t)}forEach(e,t=this){for(const r of this.indexes())e.call(t,this.valList[r],this.keyList[r],this)}rforEach(e,t=this){for(const r of this.rindexes())e.call(t,this.valList[r],this.keyList[r],this)}get prune(){return f("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes({allowStale:!0})){const r=this.keyList[t],i=this.valList[t],o=this.isBackgroundFetch(i)?i.__staleWhileFetching:i,a={value:o};if(this.ttls){a.ttl=this.ttls[t];const e=n.now()-this.starts[t];a.start=Math.floor(Date.now()-e)}this.sizes&&(a.size=this.sizes[t]),e.unshift([r,a])}return e}load(e){this.clear();for(const[t,r]of e){if(r.start){const e=Date.now()-r.start;r.start=n.now()-e}this.set(t,r.value,r)}}dispose(e,t,r){}set(e,t,{ttl:r=this.ttl,start:n,noDisposeOnSet:i=this.noDisposeOnSet,size:o=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:s=this.noUpdateTTL}={}){if(o=this.requireSize(e,t,o,a),this.maxEntrySize&&o>this.maxEntrySize)return this.delete(e),this;let u=0===this.size?void 0:this.keyMap.get(e);if(void 0===u)u=this.newIndex(),this.keyList[u]=e,this.valList[u]=t,this.keyMap.set(e,u),this.next[this.tail]=u,this.prev[u]=this.tail,this.tail=u,this.size++,this.addItemSize(u,o),s=!1;else{const r=this.valList[u];t!==r&&(this.isBackgroundFetch(r)?r.__abortController.abort():i||(this.dispose(r,e,"set"),this.disposeAfter&&this.disposed.push([r,e,"set"])),this.removeItemSize(u),this.valList[u]=t,this.addItemSize(u,o)),this.moveToTail(u)}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),s||this.setItemTTL(u,r,n),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,r=this.keyList[t],n=this.valList[t];return this.isBackgroundFetch(n)?n.__abortController.abort():(this.dispose(n,r,"evict"),this.disposeAfter&&this.disposed.push([n,r,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(r),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const r=this.keyMap.get(e);return void 0!==r&&!this.isStale(r)&&(t&&this.updateItemAge(r),!0)}peek(e,{allowStale:t=this.allowStale}={}){const r=this.keyMap.get(e);if(void 0!==r&&(t||!this.isStale(r))){const e=this.valList[r];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,r,n){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const a=new o,s={signal:a.signal,options:r,context:n},u=t=>(a.signal.aborted||this.set(e,t,s.options),t),c=n=>{if(this.valList[t]===f){const n=!r.noDeleteOnFetchRejection||void 0===f.__staleWhileFetching;n?this.delete(e):this.valList[t]=f.__staleWhileFetching}if(f.__returned===f)throw n},l=t=>t(this.fetchMethod(e,i,s)),f=new Promise(l).then(u,c);return f.__abortController=a,f.__staleWhileFetching=i,f.__returned=null,void 0===t?(this.set(e,f,s.options),t=this.keyMap.get(e)):this.valList[t]=f,f}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,fetchContext:l=this.fetchContext,forceRefresh:f=!1}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:n});const d={allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:n,ttl:i,noDisposeOnSet:o,size:a,sizeCalculation:s,noUpdateTTL:u,noDeleteOnFetchRejection:c};let h=this.keyMap.get(e);if(void 0===h){const t=this.backgroundFetch(e,h,d,l);return t.__returned=t}{const n=this.valList[h];if(this.isBackgroundFetch(n))return t&&void 0!==n.__staleWhileFetching?n.__staleWhileFetching:n.__returned=n;if(!f&&!this.isStale(h))return this.moveToTail(h),r&&this.updateItemAge(h),n;const i=this.backgroundFetch(e,h,d,l);return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i.__returned=i}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet}={}){const i=this.keyMap.get(e);if(void 0!==i){const o=this.valList[i],a=this.isBackgroundFetch(o);if(this.isStale(i))return a?t?o.__staleWhileFetching:void 0:(n||this.delete(e),t?o:void 0);if(a)return;return this.moveToTail(i),r&&this.updateItemAge(i),o}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return f("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const r=this.keyMap.get(e);if(void 0!==r)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(r);const t=this.valList[r];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const r=this.keyList[e];this.dispose(t,r,"delete"),this.disposeAfter&&this.disposed.push([t,r,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return f("reset","clear"),this.clear}get length(){return d("length","size"),this.size}static get AbortController(){return o}static get AbortSignal(){return u}}e.exports=w}}}}},tslib:{"package.json":function e(t,r,e){e.exports={name:"tslib",version:"2.3.1",main:"tslib.js",module:"tslib.es6.js"}},"tslib.js":function e(t,r,e){ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -725,7 +725,7 @@ o=this,a=function(t){var e=function(){"use strict";return{isMsie:function(){retu */ o=this,a=function(t){var e=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:t.isArray,isFunction:t.isFunction,isObject:t.isPlainObject,isUndefined:function(t){return void 0===t},isElement:function(t){return!(!t||1!==t.nodeType)},isJQuery:function(e){return e instanceof t},toStr:function(){function t(t){return e.isUndefined(t)||null===t?"":t+""}return t}(),bind:t.proxy,each:function(e,n){function r(t,e){return n(e,t)}t.each(e,r)},map:t.map,filter:t.grep,every:function(e,n){var r=!0;return e?(t.each(e,(function(t,i){if(!(r=n.call(null,i,t,e)))return!1})),!!r):r},some:function(e,n){var r=!1;return e?(t.each(e,(function(t,i){if(r=n.call(null,i,t,e))return!1})),!!r):r},mixin:t.extend,identity:function(t){return t},clone:function(e){return t.extend(!0,{},e)},getIdGenerator:function(){var t=0;return function(){return t++}},templatify:function(){function e(e){return t.isFunction(e)?e:n;function n(){return String(e)}}return e}(),defer:function(t){setTimeout(t,0)},debounce:function(t,e,n){var r,i;return function(){var o=this,a=arguments,s,u;return s=function(){r=null,n||(i=t.apply(o,a))},u=n&&!r,clearTimeout(r),r=setTimeout(s,e),u&&(i=t.apply(o,a)),i}},throttle:function(t,e){var n,r,i,o,a,s;return a=0,s=function(){a=new Date,i=null,o=t.apply(n,r)},function(){var u=new Date,c=e-(u-a);return n=this,r=arguments,c<=0?(clearTimeout(i),i=null,a=u,o=t.apply(n,r)):i||(i=setTimeout(s,c)),o}},stringify:function(t){return e.isString(t)?t:JSON.stringify(t)},noop:function(){}}}(),n=function(){"use strict";var t={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return n;function n(n){var a,s;return s=e.mixin({},t,n),{css:(a={css:o(),classes:s,html:r(s),selectors:i(s)}).css,html:a.html,classes:a.classes,selectors:a.selectors,mixin:function(t){e.mixin(t,a)}}}function r(t){return{wrapper:'',menu:'
'}}function i(t){var n={};return e.each(t,(function(t,e){n[e]="."+t})),n}function o(){var t={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return e.isMsie()&&e.mixin(t.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),t}}(),r=function(){"use strict";var n,r;function i(e){e&&e.el||t.error("EventBus initialized without el"),this.$el=t(e.el)}return n="typeahead:",r={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},e.mixin(i.prototype,{_trigger:function(e,r){var i;return i=t.Event(n+e),(r=r||[]).unshift(i),this.$el.trigger.apply(this.$el,r),i},before:function(t){var e,n;return e=[].slice.call(arguments,1),(n=this._trigger("before"+t,e)).isDefaultPrevented()},trigger:function(t){var e;this._trigger(t,[].slice.call(arguments,1)),(e=r[t])&&this._trigger(e,[].slice.call(arguments,1))}}),i}(),i=function(){"use strict";var t=/\s+/,e=u();return{onSync:i,onAsync:r,off:o,trigger:a};function n(e,n,r,i){var o;if(!r)return this;for(n=n.split(t),r=i?c(r,i):r,this._callbacks=this._callbacks||{};o=n.shift();)this._callbacks[o]=this._callbacks[o]||{sync:[],async:[]},this._callbacks[o][e].push(r);return this}function r(t,e,r){return n.call(this,"async",t,e,r)}function i(t,e,r){return n.call(this,"sync",t,e,r)}function o(e){var n;if(!this._callbacks)return this;for(e=e.split(t);n=e.shift();)delete this._callbacks[n];return this}function a(n){var r,i,o,a,u;if(!this._callbacks)return this;for(n=n.split(t),o=[].slice.call(arguments,1);(r=n.shift())&&(i=this._callbacks[r]);)a=s(i.sync,this,[r].concat(o)),u=s(i.async,this,[r].concat(o)),a()&&e(u);return this}function s(t,e,n){return r;function r(){for(var r,i=0,o=t.length;!r&&i9?this.$input.on("input.tt",a):this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",(function(r){n[r.which||r.keyCode]||e.defer(e.bind(t._onInput,t,r))})),this},focus:function(){function t(){this.$input.focus()}return t}(),blur:function(){function t(){this.$input.blur()}return t}(),getLangDir:function(){function t(){return this.dir}return t}(),getQuery:function(){function t(){return this.query||""}return t}(),setQuery:function(){function t(t,e){this.setInputValue(t),this._setQuery(t,e)}return t}(),hasQueryChangedSinceLastFocus:function(){function t(){return this.query!==this.queryWhenFocused}return t}(),getInputValue:function(){function t(){return this.$input.val()}return t}(),setInputValue:function(){function t(t){this.$input.val(t),this.clearHintIfInvalid(),this._checkLanguageDirection()}return t}(),resetInputValue:function(){function t(){this.setInputValue(this.query)}return t}(),getHint:function(){function t(){return this.$hint.val()}return t}(),setHint:function(){function t(t){this.$hint.val(t)}return t}(),clearHint:function(){function t(){this.setHint("")}return t}(),clearHintIfInvalid:function(){function t(){var t,e,n,r;n=(t=this.getInputValue())!==(e=this.getHint())&&0===e.indexOf(t),!(r=""!==t&&n&&!this.hasOverflow())&&this.clearHint()}return t}(),hasFocus:function(){function t(){return this.$input.is(":focus")}return t}(),hasOverflow:function(){function t(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t}return t}(),isCursorAtEnd:function(){var t,n,r;return t=this.$input.val().length,n=this.$input[0].selectionStart,e.isNumber(n)?n===t:!document.selection||((r=document.selection.createRange()).moveStart("character",-t),t===r.text.length)},destroy:function(){function e(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$overflowHelper.remove(),this.$hint=this.$input=this.$overflowHelper=t("
")}return e}()}),r;function o(e){return t('').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:e.css("font-family"),fontSize:e.css("font-size"),fontStyle:e.css("font-style"),fontVariant:e.css("font-variant"),fontWeight:e.css("font-weight"),wordSpacing:e.css("word-spacing"),letterSpacing:e.css("letter-spacing"),textIndent:e.css("text-indent"),textRendering:e.css("text-rendering"),textTransform:e.css("text-transform")}).insertAfter(e)}function a(t,e){return r.normalizeQuery(t)===r.normalizeQuery(e)}function s(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}}(),s=function(){"use strict";var n,r;function a(n,i){(n=n||{}).templates=n.templates||{},n.templates.notFound=n.templates.notFound||n.templates.empty,n.source||t.error("missing source"),n.node||t.error("missing node"),n.name&&(n.name,0)&&t.error("invalid dataset name: "+n.name),i.mixin(this),this.highlight=!!n.highlight,this.name=n.name||r(),this.limit=n.limit||5,this.displayFn=s(n.display||n.displayKey),this.templates=u(n.templates,this.displayFn),this.source=n.source.__ttAdapter?n.source.__ttAdapter():n.source,this.async=e.isUndefined(n.async)?this.source.length>2:!!n.async,this._resetLastSuggestion(),this.$el=t(n.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}return n={val:"tt-selectable-display",obj:"tt-selectable-object"},r=e.getIdGenerator(),a.extractData=function(){function e(e){var r=t(e);return r.data(n.obj)?{val:r.data(n.val)||"",obj:r.data(n.obj)||null}:null}return e}(),e.mixin(a.prototype,i,{_overwrite:function(){function t(t,e){(e=e||[]).length?this._renderSuggestions(t,e):this.async&&this.templates.pending?this._renderPending(t):!this.async&&this.templates.notFound?this._renderNotFound(t):this._empty(),this.trigger("rendered",this.name,e,!1)}return t}(),_append:function(){function t(t,e){(e=e||[]).length&&this.$lastSuggestion.length?this._appendSuggestions(t,e):e.length?this._renderSuggestions(t,e):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(t),this.trigger("rendered",this.name,e,!0)}return t}(),_renderSuggestions:function(){function t(t,e){var n;n=this._getSuggestionsFragment(t,e),this.$lastSuggestion=n.children().last(),this.$el.html(n).prepend(this._getHeader(t,e)).append(this._getFooter(t,e))}return t}(),_appendSuggestions:function(){function t(t,e){var n,r;r=(n=this._getSuggestionsFragment(t,e)).children().last(),this.$lastSuggestion.after(n),this.$lastSuggestion=r}return t}(),_renderPending:function(){function t(t){var e=this.templates.pending;this._resetLastSuggestion(),e&&this.$el.html(e({query:t,dataset:this.name}))}return t}(),_renderNotFound:function(){function t(t){var e=this.templates.notFound;this._resetLastSuggestion(),e&&this.$el.html(e({query:t,dataset:this.name}))}return t}(),_empty:function(){function t(){this.$el.empty(),this._resetLastSuggestion()}return t}(),_getSuggestionsFragment:function(){function r(r,i){var a=this,s;return s=document.createDocumentFragment(),e.each(i,function(){function e(e){var i,o;o=a._injectQuery(r,e),i=t(a.templates.suggestion(o)).data(n.obj,e).data(n.val,a.displayFn(e)).addClass(a.classes.suggestion+" "+a.classes.selectable),s.appendChild(i[0])}return e}()),this.highlight&&o({className:this.classes.highlight,node:s,pattern:r}),t(s)}return r}(),_getFooter:function(){function t(t,e){return this.templates.footer?this.templates.footer({query:t,suggestions:e,dataset:this.name}):null}return t}(),_getHeader:function(){function t(t,e){return this.templates.header?this.templates.header({query:t,suggestions:e,dataset:this.name}):null}return t}(),_resetLastSuggestion:function(){function e(){this.$lastSuggestion=t()}return e}(),_injectQuery:function(){function t(t,n){return e.isObject(n)?e.mixin({_query:t},n):n}return t}(),update:function(){function e(e){var n=this,r=!1,i=!1,o=0;function a(t){i||(i=!0,t=(t||[]).slice(0,n.limit),o=t.length,n._overwrite(e,t),o")}return e}()}),a;function s(t){return t=t||e.stringify,e.isFunction(t)?t:n;function n(e){return e[t]}}function u(n,r){return{notFound:n.notFound&&e.templatify(n.notFound),pending:n.pending&&e.templatify(n.pending),header:n.header&&e.templatify(n.header),footer:n.footer&&e.templatify(n.footer),suggestion:n.suggestion||i};function i(e){return t("
").text(r(e))}}function c(t){return!0}}(),u=function(){"use strict";function n(n,r){var i=this;function o(e){var n=i.$node.find(e.node).first();return e.node=n.length?n:t("
").appendTo(i.$node),new s(e,r)}(n=n||{}).node||t.error("node is required"),r.mixin(this),this.$node=t(n.node),this.query=null,this.datasets=e.map(n.datasets,o)}return e.mixin(n.prototype,i,{_onSelectableClick:function(){function e(e){this.trigger("selectableClicked",t(e.currentTarget))}return e}(),_onRendered:function(){function t(t,e,n,r){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetRendered",e,n,r)}return t}(),_onCleared:function(){function t(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetCleared")}return t}(),_propagate:function(){function t(){this.trigger.apply(this,arguments)}return t}(),_allDatasetsEmpty:function(){function t(){return e.every(this.datasets,t);function t(t){return t.isEmpty()}}return t}(),_getSelectables:function(){function t(){return this.$node.find(this.selectors.selectable)}return t}(),_removeCursor:function(){function t(){var t=this.getActiveSelectable();t&&t.removeClass(this.classes.cursor)}return t}(),_ensureVisible:function(){function t(t){var e,n,r,i;n=(e=t.position().top)+t.outerHeight(!0),r=this.$node.scrollTop(),i=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10),e<0?this.$node.scrollTop(r+e):i"),e.each(this.datasets,n)}return n}()}),n}(),c=function(){"use strict";var t=u.prototype;function n(){u.apply(this,[].slice.call(arguments,0))}return e.mixin(n.prototype,u.prototype,{open:function(){function e(){return!this._allDatasetsEmpty()&&this._show(),t.open.apply(this,[].slice.call(arguments,0))}return e}(),close:function(){function e(){return this._hide(),t.close.apply(this,[].slice.call(arguments,0))}return e}(),_onRendered:function(){function e(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),t._onRendered.apply(this,[].slice.call(arguments,0))}return e}(),_onCleared:function(){function e(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),t._onCleared.apply(this,[].slice.call(arguments,0))}return e}(),setLanguageDirection:function(){function e(e){return this.$node.css("ltr"===e?this.css.ltr:this.css.rtl),t.setLanguageDirection.apply(this,[].slice.call(arguments,0))}return e}(),_hide:function(){function t(){this.$node.hide()}return t}(),_show:function(){function t(){this.$node.css("display","block")}return t}()}),n}(),l=function(){"use strict";function n(n,i){var o,a,s,u,c,l,f,d,h,p,m;(n=n||{}).input||t.error("missing input"),n.menu||t.error("missing menu"),n.eventBus||t.error("missing event bus"),i.mixin(this),this.eventBus=n.eventBus,this.minLength=e.isNumber(n.minLength)?n.minLength:1,this.input=n.input,this.menu=n.menu,this.enabled=!0,this.active=!1,this.input.hasFocus()&&this.activate(),this.dir=this.input.getLangDir(),this._hacks(),this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this),o=r(this,"activate","open","_onFocused"),a=r(this,"deactivate","_onBlurred"),s=r(this,"isActive","isOpen","_onEnterKeyed"),u=r(this,"isActive","isOpen","_onTabKeyed"),c=r(this,"isActive","_onEscKeyed"),l=r(this,"isActive","open","_onUpKeyed"),f=r(this,"isActive","open","_onDownKeyed"),d=r(this,"isActive","isOpen","_onLeftKeyed"),h=r(this,"isActive","isOpen","_onRightKeyed"),p=r(this,"_openIfActive","_onQueryChanged"),m=r(this,"_openIfActive","_onWhitespaceChanged"),this.input.bind().onSync("focused",o,this).onSync("blurred",a,this).onSync("enterKeyed",s,this).onSync("tabKeyed",u,this).onSync("escKeyed",c,this).onSync("upKeyed",l,this).onSync("downKeyed",f,this).onSync("leftKeyed",d,this).onSync("rightKeyed",h,this).onSync("queryChanged",p,this).onSync("whitespaceChanged",m,this).onSync("langDirChanged",this._onLangDirChanged,this)}return e.mixin(n.prototype,{_hacks:function(){function n(){var n,r;n=this.input.$input||t("
"),r=this.menu.$node||t("
"),n.on("blur.tt",(function(t){var i,o,a;i=document.activeElement,o=r.is(i),a=r.has(i).length>0,e.isMsie()&&(o||a)&&(t.preventDefault(),t.stopImmediatePropagation(),e.defer((function(){n.focus()})))})),r.on("mousedown.tt",(function(t){t.preventDefault()}))}return n}(),_onSelectableClicked:function(){function t(t,e){this.select(e)}return t}(),_onDatasetCleared:function(){function t(){this._updateHint()}return t}(),_onDatasetRendered:function(){function t(t,e,n,r){this._updateHint(),this.eventBus.trigger("render",n,r,e)}return t}(),_onAsyncRequested:function(){function t(t,e,n){this.eventBus.trigger("asyncrequest",n,e)}return t}(),_onAsyncCanceled:function(){function t(t,e,n){this.eventBus.trigger("asynccancel",n,e)}return t}(),_onAsyncReceived:function(){function t(t,e,n){this.eventBus.trigger("asyncreceive",n,e)}return t}(),_onFocused:function(){function t(){this._minLengthMet()&&this.menu.update(this.input.getQuery())}return t}(),_onBlurred:function(){function t(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())}return t}(),_onEnterKeyed:function(){function t(t,e){var n;(n=this.menu.getActiveSelectable())&&this.select(n)&&e.preventDefault()}return t}(),_onTabKeyed:function(){function t(t,e){var n;(n=this.menu.getActiveSelectable())?this.select(n)&&e.preventDefault():(n=this.menu.getTopSelectable())&&this.autocomplete(n)&&e.preventDefault()}return t}(),_onEscKeyed:function(){function t(){this.close()}return t}(),_onUpKeyed:function(){function t(){this.moveCursor(-1)}return t}(),_onDownKeyed:function(){function t(){this.moveCursor(1)}return t}(),_onLeftKeyed:function(){function t(){"rtl"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())}return t}(),_onRightKeyed:function(){function t(){"ltr"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())}return t}(),_onQueryChanged:function(){function t(t,e){this._minLengthMet(e)?this.menu.update(e):this.menu.empty()}return t}(),_onWhitespaceChanged:function(){function t(){this._updateHint()}return t}(),_onLangDirChanged:function(){function t(t,e){this.dir!==e&&(this.dir=e,this.menu.setLanguageDirection(e))}return t}(),_openIfActive:function(){function t(){this.isActive()&&this.open()}return t}(),_minLengthMet:function(){function t(t){return(t=e.isString(t)?t:this.input.getQuery()||"").length>=this.minLength}return t}(),_updateHint:function(){function t(){var t,n,r,i,o,s,u;t=this.menu.getTopSelectable(),n=this.menu.getSelectableData(t),r=this.input.getInputValue(),!n||e.isBlankString(r)||this.input.hasOverflow()?this.input.clearHint():(i=a.normalizeQuery(r),o=e.escapeRegExChars(i),(u=(s=new RegExp("^(?:"+o+")(.+$)","i")).exec(n.val))&&this.input.setHint(r+u[1]))}return t}(),isEnabled:function(){function t(){return this.enabled}return t}(),enable:function(){function t(){this.enabled=!0}return t}(),disable:function(){function t(){this.enabled=!1}return t}(),isActive:function(){function t(){return this.active}return t}(),activate:function(){function t(){return!!this.isActive()||!(!this.isEnabled()||this.eventBus.before("active"))&&(this.active=!0,this.eventBus.trigger("active"),!0)}return t}(),deactivate:function(){function t(){return!this.isActive()||!this.eventBus.before("idle")&&(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0)}return t}(),isOpen:function(){function t(){return this.menu.isOpen()}return t}(),open:function(){function t(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()}return t}(),close:function(){function t(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()}return t}(),setVal:function(){function t(t){this.input.setQuery(e.toStr(t))}return t}(),getVal:function(){function t(){return this.input.getQuery()}return t}(),select:function(){function t(t){var e=this.menu.getSelectableData(t);return!(!e||this.eventBus.before("select",e.obj)||(this.input.setQuery(e.val,!0),this.eventBus.trigger("select",e.obj),this.close(),0))}return t}(),autocomplete:function(){function t(t){var e,n,r;return e=this.input.getQuery(),!(!(r=(n=this.menu.getSelectableData(t))&&e!==n.val)||this.eventBus.before("autocomplete",n.obj)||(this.input.setQuery(n.val),this.eventBus.trigger("autocomplete",n.obj),0))}return t}(),moveCursor:function(){function t(t){var e,n,r,i,o;return e=this.input.getQuery(),n=this.menu.selectableRelativeToCursor(t),i=(r=this.menu.getSelectableData(n))?r.obj:null,!(o=this._minLengthMet()&&this.menu.update(e))&&!this.eventBus.before("cursorchange",i)&&(this.menu.setCursor(n),r?this.input.setInputValue(r.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",i),!0)}return t}(),destroy:function(){function t(){this.input.destroy(),this.menu.destroy()}return t}()}),n;function r(t){var n=[].slice.call(arguments,1);return function(){var r=[].slice.call(arguments);e.each(n,(function(e){return t[e].apply(t,r)}))}}}();!function(){"use strict";var i,o,s;function f(e,n){e.each((function(){var e=t(this),r;(r=e.data(o.typeahead))&&n(r,e)}))}function d(t,e){return t.clone().addClass(e.classes.hint).removeData().css(e.css.hint).css(p(t)).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}function h(t,e){t.data(o.attrs,{dir:t.attr("dir"),autocomplete:t.attr("autocomplete"),spellcheck:t.attr("spellcheck"),style:t.attr("style")}),t.addClass(e.classes.input).attr({autocomplete:"off",spellcheck:!1});try{!t.attr("dir")&&t.attr("dir","auto")}catch(n){}return t}function p(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}function m(t){var n,r;n=t.data(o.www),r=t.parent().filter(n.selectors.wrapper),e.each(t.data(o.attrs),(function(n,r){e.isUndefined(n)?t.removeAttr(r):t.attr(r,n)})),t.removeData(o.typeahead).removeData(o.www).removeData(o.attr).removeClass(n.classes.input),r.length&&(t.detach().insertAfter(r),r.remove())}function g(n){var r,i;return(i=(r=e.isJQuery(n)||e.isElement(n))?t(n).first():[]).length?i:null}i=t.fn.typeahead,o={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"},s={initialize:function(){function i(i,s){var f;return s=e.isArray(s)?s:[].slice.call(arguments,1),f=n((i=i||{}).classNames),this.each(p);function p(){var n,p,m,v,_,y,b,k,w,x,T;e.each(s,(function(t){t.highlight=!!i.highlight})),n=t(this),p=t(f.html.wrapper),m=g(i.hint),v=g(i.menu),_=!1!==i.hint&&!m,y=!1!==i.menu&&!v,_&&(m=d(n,f)),y&&(v=t(f.html.menu).css(f.css.menu)),m&&m.val(""),n=h(n,f),(_||y)&&(p.css(f.css.wrapper),n.css(_?f.css.input:f.css.inputWithNoHint),n.wrap(p).parent().prepend(_?m:null).append(y?v:null)),T=y?c:u,b=new r({el:n}),k=new a({hint:m,input:n},f),w=new T({node:v,datasets:s},f),x=new l({input:k,menu:w,eventBus:b,minLength:i.minLength},f),n.data(o.www,f),n.data(o.typeahead,x)}}return i}(),isEnabled:function(){function t(){var t;return f(this.first(),(function(e){t=e.isEnabled()})),t}return t}(),enable:function(){function t(){return f(this,(function(t){t.enable()})),this}return t}(),disable:function(){function t(){return f(this,(function(t){t.disable()})),this}return t}(),isActive:function(){function t(){var t;return f(this.first(),(function(e){t=e.isActive()})),t}return t}(),activate:function(){function t(){return f(this,(function(t){t.activate()})),this}return t}(),deactivate:function(){function t(){return f(this,(function(t){t.deactivate()})),this}return t}(),isOpen:function(){function t(){var t;return f(this.first(),(function(e){t=e.isOpen()})),t}return t}(),open:function(){function t(){return f(this,(function(t){t.open()})),this}return t}(),close:function(){function t(){return f(this,(function(t){t.close()})),this}return t}(),select:function(){function e(e){var n=!1,r=t(e);return f(this.first(),(function(t){n=t.select(r)})),n}return e}(),autocomplete:function(){function e(e){var n=!1,r=t(e);return f(this.first(),(function(t){n=t.autocomplete(r)})),n}return e}(),moveCursor:function(){function t(t){var e=!1;return f(this.first(),(function(n){e=n.moveCursor(t)})),e}return t}(),val:function(){function t(t){var e;return arguments.length?(f(this,(function(e){e.setVal(t)})),this):(f(this.first(),(function(t){e=t.getVal()})),e)}return t}(),destroy:function(){function t(){return f(this,(function(t,e){m(e),t.destroy()})),this}return t}()},t.fn.typeahead=function(t){return s[t]?s[t].apply(this,[].slice.call(arguments,1)):s.initialize.apply(this,arguments)},t.fn.typeahead.noConflict=function(){function e(){return t.fn.typeahead=i,this}return e}()}()},"function"==typeof define&&define.amd?define("typeahead.js",["jquery"],(function(t){return a(t)})):"object"===(void 0===n?"undefined":i(n))?t.exports=a(e("jquery")):a(jQuery)}).call(this,t)}},"template.af-typeahead.js":function t(){q.__checkName("afTypeAhead"),q.afTypeAhead=new q("Template.afTypeAhead",(function(){var t=this;return R.DIV({class:"typeahead-basics"},"\n ",R.INPUT(R.Attrs({type:"text",value:function(){return M.mustache(M.dot(t.lookup("."),"value"))},placeholder:""},(function(){return M.attrMustache(M.dot(t.lookup("."),"atts"))}))),"\n ")}))},"af-typeahead.coffee":function t(){var e=U="object"==typeof U?U:{};b.addInputType("typeahead",{template:"afTypeAhead",valueIn:function(t,e){return t},valueOut:function(){return this.val()},valueConverters:{stringArray:b.valueConverters.stringToStringArray,number:b.valueConverters.stringToNumber,numerArray:b.valueConverters.stringToNumberArray,boolean:b.valueConverters.stringToBoolean,booleanArray:b.valueConverters.stringToBooleanArray,date:b.valueConverters.stringToDate,dateArray:b.valueConverters.stringToDateArray},contextAdjust:function(t){return void 0===t.atts.maxlength&&"number"==typeof t.max&&(t.atts.maxlength=t.max),t.atts.class="typeahead form-control",t}}),q.afTypeAhead.helpers,q.afTypeAhead.events,q.afTypeAhead.onRendered((function(){var t,e,n,r;return n=this.data.selectOptions,t=this.data.atts.id,e=this.data.name,r=function(t){return function(e,n){var r,i;return r=[],e?(i=new RegExp(e,"i"),$.each(t,(function(t,e){i.test(e)&&r.push(e)})),n(r)):n(t)}},$("#"+t).typeahead({hint:!1,highlight:!0,minLength:0},{name:e,limit:10,source:r(n.getProperty("label"))})}))}},"coreform-number":{"template.steedos-number.js":function t(){q.__checkName("afSteedosNumber"),q.afSteedosNumber=new q("Template.afSteedosNumber",(function(){var t=this;return R.INPUT(R.Attrs({type:"number",value:function(){return M.mustache(M.dot(t.lookup("."),"value"))}},(function(){return M.attrMustache(M.dot(t.lookup("."),"atts"))})))}))},"steedos-number.coffee":function t(){var e=U="object"==typeof U?U:{},n;b.addInputType("steedosNumber",{template:"afSteedosNumber",valueIn:function(t,e){return t?Number(t).toFixed(e.scale):(0).toFixed(e.scale)},valueOut:function(){return b.valueConverters.stringToNumber(this.val())},valueConverters:{string:b.valueConverters.numberToString,stringArray:b.valueConverters.numberToStringArray,numberArray:b.valueConverters.numberToNumberArray,boolean:b.valueConverters.numberToBoolean,booleanArray:b.valueConverters.numberToBooleanArray},contextAdjust:function(t){var e,n;return e=t.atts.scale||0,void 0===t.atts.max&&"number"==typeof t.max&&(t.atts.max=t.max),void 0===t.atts.min&&"number"==typeof t.min&&(t.atts.min=t.min),void 0===t.atts.step&&o.isNumber(e)&&e>0&&(n="0.",o.range(e).forEach((function(t,n){var r;return n===e-1?r+"1":r+"0"})),t.atts.step="0."),t.atts.class="form-control",t.precision=t.atts.precision,t.scale=t.atts.scale,t}}),n=function(t,e,n,r){var i,o;return o=b.getFormId(),i=new Number(t),t.indexOf(".")>-1?t.length-1>n?Number(t.substring(0,n-r-1)).toFixed(r):i.toFixed(r):t.length>n?Number(t.substring(0,n-r)).toFixed(r):i.toFixed(r)},q.afSteedosNumber.events({"blur input[type=number]":function(t,e){return t.currentTarget.value=n(t.currentTarget.value,this.atts.name,this.atts.precision,this.atts.scale)}})}},"coreform-date-mobile":{"template.date.js":function t(){q.__checkName("steedosInputDateMobile"),q.steedosInputDateMobile=new q("Template.steedosInputDateMobile",(function(){var t=this;return R.INPUT(R.Attrs({type:function(){return M.mustache(t.lookup("inputtype"))},value:function(){return M.mustache(M.dot(t.lookup("."),"value"))}},(function(){return M.attrMustache(t.lookup("atts"))})))}))},"date.js":function t(){b.addInputType("steedos-date-mobile",{template:"steedosInputDateMobile",valueIn:function(t,e){var n="datetime";return e.dateMobileOptions&&(n=e.dateMobileOptions.type),"string"==typeof t&&(t=new Date(t)),t="date"===n?k.utc(t).format("YYYY-MM-DD"):k(t).format("YYYY-MM-DDTHH:mm:ss")},valueOut:function(){var t=this.val(),e=this.attr("type"),n;return t?"date"===e?t:((t=k.tz(b.Utility.dateToNormalizedLocalDateAndTimeString(t),"utc").toDate()).setHours(t.getHours()+t.getTimezoneOffset()/60),t):t}}),q.steedosInputDateMobile.helpers({atts:function(){var t=o.clone(this.atts);return delete(t=b.Utility.addClass(t,"form-control")).dateMobileOptions,t},inputtype:function(){var t="datetime";switch(this.atts.dateMobileOptions&&(t=this.atts.dateMobileOptions.type),t){case"datetime":return"datetime-local";case"date":return"date";default:return"datetime-local"}}})}},"coreform-html":{"template.html.js":function t(){q.__checkName("steedosInputHtml"),q.steedosInputHtml=new q("Template.steedosInputHtml",(function(){var t=this;return j.If((function(){return M.call(t.lookup("isReadOnly"))}),(function(){return["\n ",R.DIV(R.Attrs((function(){return M.attrMustache(t.lookup("attsPlusFormControlClass"))})),"\n ",j.View("lookup:..value",(function(){return M.makeRaw(M.mustache(M.dot(t.lookup("."),"value")))})),"\n "),"\n ",R.INPUT(R.Attrs({type:"text",value:function(){return M.mustache(M.dot(t.lookup("."),"value"))},style:"display: none"},(function(){return M.attrMustache(M.dot(t.lookup("."),"atts"))}),(function(){return M.attrMustache(t.lookup("attsPlusFormControlClass"))}))),"\n "]}),(function(){return["\n ",R.INPUT(R.Attrs({type:"text",value:function(){return M.mustache(M.dot(t.lookup("."),"value"))}},(function(){return M.attrMustache(M.dot(t.lookup("."),"atts"))}),(function(){return M.attrMustache(t.lookup("attsPlusFormControlClass"))}))),"\n "]}))}))},"html.js":function t(){b.addInputType("steedosHtml",{template:"steedosInputHtml",valueConverters:{stringArray:b.valueConverters.stringToStringArray},contextAdjust:function(t){return void 0===t.atts.maxlength&&"number"==typeof t.max&&(t.atts.maxlength=t.max),t}}),q.steedosInputHtml.helpers({isReadOnly:function(){var t=this.atts;return!(!t.hasOwnProperty("disabled")&&!t.hasOwnProperty("readonly"))}})}}},components:{"slds-quickForm":{"template.slds-quickForm.js":function t(){q.__checkName("quickForm_slds"),q.quickForm_slds=new q("Template.quickForm_slds",(function(){var t=this;return R.DIV({class:function(){return["quickForm_slds ",j.If((function(){return M.call(t.lookup("horizontal"))}),(function(){return"horizontal"}))]}},"\n\t",j._TemplateWith((function(){return M.call(t.lookup("qfAutoFormContext"))}),(function(){return M.include(t.lookupTemplate("autoForm"),(function(){return["\n\t\t",j.If((function(){return M.call(M.dot(t.lookup("schemaFields"),"grouplessFields"))}),(function(){return["\n\t\t\t",j.Each((function(){return M.call(M.dot(t.lookup("schemaFields"),"grouplessFields"))}),(function(){return["\n\t\t\t\t",R.DIV({class:function(){return["slds-grid view-page-section-row ",j.If((function(){return M.dataMustache(t.lookup("has_wide_field"),t.lookup("."))}),(function(){return"wide-fields"}))]}},"\n\t\t\t\t\t",j.Each((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t",R.DIV({class:"slds-has-flexi-truncate slds-p-horizontal_x-small full view-page-block-item"},"\n\t\t\t\t\t\t\t",R.DIV({class:function(){return["slds-form-element slds-form-element_edit slds-grow slds-hint-parent slds-p-vertical_xx-small override--slds-form-element uiInput ",j.If((function(){return M.dataMustache(t.lookup("hasInlineHelpText"),t.lookup("."))}),(function(){return"has-inline-text"}))]}},"\n\t\t\t\t\t\t\t\t",j.If((function(){return M.dataMustache(t.lookup("is_range"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",M.include(t.lookupTemplate("range_field")),"\n\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t",j.Unless((function(){return M.dataMustache(t.lookup("is_renge_end"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.dataMustache(t.lookup("hasInlineHelpText"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t",R.DIV({class:"info-popover",id:function(){return["info_popover_",M.mustache(t.lookup("."))]},style:"display: none"},j.View("lookup:hasInlineHelpText",(function(){return M.mustache(t.lookup("hasInlineHelpText"),t.lookup("."))}))),"\n\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("horizontal"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),template:M.call("bootstrap3-horizontal"),"label-class":M.call("col-sm-3 col-xs-12"),"input-col-class":M.call("col-sm-9 col-xs-12")}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup(".")))}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"]})),"\n\t\t\t\t"),"\n\t\t\t"]})),"\n\t\t"]})),"\n\n\t\t",j.If((function(){return M.call(M.dot(t.lookup("schemaFields"),"groupFields"))}),(function(){return["\n\t\t\t",j.Each((function(){return M.call(M.dot(t.lookup("schemaFields"),"groupFields"))}),(function(){return["\n\t\t\t\t",j.If((function(){return M.call(M.dot(t.lookup("."),"fields"))}),(function(){return["\n\t\t\t\t\t",R.DIV({class:function(){return["slds-section group-section ",j.If((function(){return M.call(t.lookup("autoExpandGroup"))}),(function(){return"slds-is-open"}))]}},"\n\t\t\t\t\t\t",R.H3({class:"slds-section__title group-section-control"},"\n\t\t\t\t\t\t\t",j._TemplateWith((function(){return{className:M.call("slds-section__title-action"),iconClassName:M.call("slds-section__title-action-icon slds-button__icon_left"),iconCategory:M.call("utility"),iconName:M.call("switch"),variant:M.call("icon"),label:M.call(M.dot(t.lookup("."),"name"))}}),(function(){return M.include(t.lookupTemplate("steedos_button"))})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t\t",R.DIV({"aria-hidden":"false",class:"slds-section__content",id:"expando-unique-id"},"\n\t\t\t\t\t\t\t",j.Each((function(){return M.call(M.dot(t.lookup("."),"fields"))}),(function(){return["\n\t\t\t\t\t\t\t\t",R.DIV({class:function(){return["slds-grid view-page-section-row ",j.If((function(){return M.dataMustache(t.lookup("has_wide_field"),t.lookup("."))}),(function(){return"wide-fields"}))]}},"\n\t\t\t\t\t\t\t\t\t",j.Each((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",R.DIV({class:"slds-has-flexi-truncate slds-p-horizontal_x-small full view-page-block-item"},"\n\t\t\t\t\t\t\t\t\t\t",R.DIV({class:function(){return["slds-form-element slds-form-element_edit slds-grow slds-hint-parent slds-p-vertical_xx-small override--slds-form-element uiInput ",j.If((function(){return M.dataMustache(t.lookup("hasInlineHelpText"),t.lookup("."))}),(function(){return"has-inline-text"}))]}},"\n\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.dataMustache(t.lookup("is_range"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t",M.include(t.lookupTemplate("range_field")),"\n\t\t\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t",j.Unless((function(){return M.dataMustache(t.lookup("is_renge_end"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.dataMustache(t.lookup("hasInlineHelpText"),t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t",R.DIV({class:"info-popover",id:function(){return["info_popover_",M.mustache(t.lookup("."))]},style:"display: none"},j.View("lookup:hasInlineHelpText",(function(){return M.mustache(t.lookup("hasInlineHelpText"),t.lookup("."))}))),"\n\t\t\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("horizontal"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),template:M.call("bootstrap3-horizontal"),"label-class":M.call("col-sm-3 col-xs-12"),"input-col-class":M.call("col-sm-9 col-xs-12")}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup(".")))}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"]})),"\n\t\t\t"]})),"\n\t\t"]})),"\n\n\t\t",j.If((function(){return M.call(M.dot(t.lookup("schemaFields"),"hiddenFields"))}),(function(){return["\n\t\t\t",R.DIV({class:"slds-grid view-page-section-row hidden-fields"},"\n\t\t\t\t",R.DIV({class:"slds-has-flexi-truncate slds-p-horizontal_x-small full view-page-block-item"},"\n\t\t\t\t\t",j.Each((function(){return M.call(M.dot(t.lookup("schemaFields"),"hiddenFields"))}),(function(){return["\n\t\t\t\t\t\t",R.DIV({class:"slds-form-element slds-form-element_edit slds-grow slds-hint-parent slds-p-vertical_xx-small override--slds-form-element uiInput"},"\n\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("horizontal"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),template:M.call("bootstrap3-horizontal"),"label-class":M.call("col-sm-3 col-xs-12"),"input-col-class":M.call("col-sm-9 col-xs-12")}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup(".")))}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"]})),"\n\t\t\t\t"),"\n\t\t\t"),"\n\t\t"]})),"\n\n\t\t",j.If((function(){return M.call(M.dot(t.lookup("schemaFields"),"disabledFields"))}),(function(){return["\n\t\t\t",R.DIV({class:"slds-grid view-page-section-row disabled-fields"},"\n\t\t\t\t",R.DIV({class:"slds-has-flexi-truncate slds-p-horizontal_x-small full view-page-block-item"},"\n\t\t\t\t\t",j.Each((function(){return M.call(M.dot(t.lookup("schemaFields"),"disabledFields"))}),(function(){return["\n\t\t\t\t\t\t",R.DIV({class:"slds-form-element slds-form-element_edit slds-grow slds-hint-parent slds-p-vertical_xx-small override--slds-form-element uiInput"},"\n\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("."))}),(function(){return["\n\t\t\t\t\t\t\t\t",j.If((function(){return M.call(t.lookup("horizontal"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),disabled:M.call(!1),readonly:M.call(!0),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),template:M.call("bootstrap3-horizontal"),"label-class":M.call("col-sm-3 col-xs-12"),"input-col-class":M.call("col-sm-9 col-xs-12")}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t"]}),(function(){return["\n\t\t\t\t\t\t\t\t\t",j._TemplateWith((function(){return{name:M.call(t.lookup(".")),disabled:M.call(!1),readonly:M.call(!0),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup(".")))}}),(function(){return M.include(t.lookupTemplate("afQuickField"))})),"\n\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"]})),"\n\t\t\t\t"),"\n\t\t\t"),"\n\t\t"]})),"\n\t"]}))})),"\n\t")})),q.__checkName("range_field"),q.range_field=new q("Template.range_field",(function(){var t=this;return R.DIV({class:function(){return["range-field field-code-",M.mustache(t.lookup("startName"))]}},"\n\t\t",R.DIV({class:"form-group"},"\n\t\t\t",R.LABEL({class:"col-sm-3 control-label",for:"dao2yaGvD4SFjifBi"},"\n\t\t\t\t",j.View("lookup:afFieldLabelText",(function(){return M.mustache(t.lookup("afFieldLabelText"),M.kw({name:t.lookup("startName"),class:"col-sm-3 col-xs-12"}))})),"\n\t\t\t"),"\n\t\t\t",R.DIV({class:"col-sm-9 col-xs-12"},"\n\t\t\t\t",R.DIV({class:"row show-grid"},"\n\t\t\t\t\t",R.DIV({class:"col-sm-6 col-xs-6 start"},j._TemplateWith((function(){return{name:M.call(t.lookup("startName")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),label:M.call(!1)}}),(function(){return M.include(t.lookupTemplate("afQuickField"))}))),"\n\t\t\t\t\t",R.DIV({class:"col-sm-6 col-xs-6 end"},j._TemplateWith((function(){return{name:M.call(t.lookup("endName")),class:M.call(M.dataMustache(t.lookup("getClass"),t.lookup("."))),label:M.call(!1)}}),(function(){return M.include(t.lookupTemplate("afQuickField"))}))),"\n\t\t\t\t"),"\n\t\t\t"),"\n\t\t"),"\n\t")}))},"slds-quickForm.coffee":function t(){var e=U="object"==typeof U?U:{};q.quickForm_slds.helpers({isDisabled:function(t){var e,n,r,i;return null!=(e=q.instance())&&null!=(n=e.data)&&null!=(r=n.qfAutoFormContext.schema._schema[t])&&null!=(i=r.autoform)?i.disabled:void 0},hasInlineHelpText:function(t){var e,n,r,i;return null!=(e=q.instance())&&null!=(n=e.data)&&null!=(r=n.qfAutoFormContext.schema._schema[t])&&null!=(i=r.autoform)?i.inlineHelpText:void 0},is_range:function(t){var e,n,r,i;return null!=(e=q.instance())&&null!=(n=e.data)&&null!=(r=n.qfAutoFormContext.schema._schema[t])&&null!=(i=r.autoform)?i.is_range:void 0},is_renge_end:function(t){return null!=t?t.endsWith("_endLine"):void 0},getClass:function(t){var e,n,r,i;if("steedosGrid"!==(null!=(e=q.instance())&&null!=(n=e.data)&&null!=(r=n.qfAutoFormContext.schema._schema[t])&&null!=(i=r.autoform)?i.type:void 0))return"form-control"},schemaFields:function(){var t,e,n,r,a,s,u,c,l,f,d,h,p;return f=[],p=this.qfAutoFormContext.schema,h=p._schema,s=p._firstLevelSchemaKeys,(d=this.qfAutoFormContext.fields||s)||(d=[]),o.each(h,(function(t,e){var n;if(o.indexOf(s,e)>-1&&!(null!=(n=t.autoform)?n.omit:void 0))return f.push(e)})),1===f.length?a={grouplessFields:[f]}:(c=Creator.getHiddenFields(h),t=Creator.getDisabledFields(h),n=[],r=[],l=i.get("cmEditSingleField"),u=[],u=Creator.getFieldsWithNoGroup(h),u=Creator.getFieldsInFirstLevel(s,u),d&&(u=o.intersection(d,u)),u=Creator.getFieldsWithoutOmit(h,u),u=Creator.getFieldsForReorder(h,u,l),e=Creator.getSortedFieldGroupNames(h),o.each(e,(function(t){return r=Creator.getFieldsForGroup(h,t),r=Creator.getFieldsInFirstLevel(s,r),d&&(r=o.intersection(d,r)),r=Creator.getFieldsWithoutOmit(h,r),r=Creator.getFieldsForReorder(h,r,l),n.push({name:t,fields:r})})),a={grouplessFields:u,groupFields:n,hiddenFields:c,disabledFields:t})},horizontal:function(){return q.instance().data.atts.horizontal},is_range_fields:function(t){var e,n,r,i;if((null!=t?t.length:void 0)>0&&t[0])return null!=(e=q.instance())&&null!=(n=e.data)&&null!=(r=n.qfAutoFormContext.schema._schema[t[0]])&&null!=(i=r.autoform)?i.is_range:void 0},has_wide_field:function(t){var e,n,r,i;if((null!=t?t.length:void 0)>0&&t[0])return null!=(e=q.instance())&&null!=(n=e.data)&&null!=(r=n.qfAutoFormContext.schema._schema[t[0]])&&null!=(i=r.autoform)?i.is_wide:void 0},autoExpandGroup:function(){return q.instance().data.atts.autoExpandGroup||!1}}),q.quickForm_slds.events({"click .group-section-control":function(t,e){return t.preventDefault(),t.stopPropagation(),$(t.currentTarget).closest(".group-section").toggleClass("slds-is-open")}}),q.quickForm_slds.onRendered((function(){var t;return t=this,this.$(".has-inline-text").each((function(){var t,e;return t='\n\t\n',$(".control-label",$(this)).append(t)})),this.$(".info-popover").each((function(){var t;return t=$("~ .form-group .help-info",$(this)).attr("id"),$(this).dxPopover({target:"#"+t,showEvent:"mouseenter",hideEvent:"mouseleave",position:"top",width:300,animation:{show:{type:"pop",from:{scale:0},to:{scale:1}},hide:{type:"fade",from:1,to:0}}})}))})),q.range_field.helpers({startName:function(){return this.toString()},endName:function(){return this.toString()+"_endLine"},getClass:function(t){return"form-control"}})}}}}}}}}},{extensions:[".js",".json",".coffee",".html",".less"]});X("/node_modules/meteor/steedos:autoform/client/core.coffee"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/boolean-checkbox/template.boolean-checkbox.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/boolean-checkbox/boolean-checkbox.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/boolean-toggle/template.boolean-toggle.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/boolean-toggle/boolean-toggle.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org-localdata/template.select-orgs.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org-localdata/select-orgs.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/lib/template.cf_organization.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/lib/cf_organization.coffee"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/lib/template.cf_organization_modal.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/lib/cf_organization_modal.coffee"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/template.select-orgs.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-org/select-orgs.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user-localdata/template.select-users.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user-localdata/select-users.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_data_manager.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_tabular_space_user.coffee"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/template.cf_contact_modal.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_contact_modal.coffee"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/template.cf_organization_list.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_organization_list.coffee"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/template.cf_space_user_list.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_space_user_list.coffee"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/template.cf_organization_modal.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/lib/cf_organization_modal.coffee"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/template.select-users.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-user/select-users.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-tree/template.select-tree.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-tree/select-tree.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-email/template.email.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-email/email.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-url/template.url.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-url/url.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-widearea/template.widearea.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-widearea/widearea.coffee"),X("/node_modules/meteor/steedos:autoform/client/coreform/components/slds-quickForm/template.slds-quickForm.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/components/slds-quickForm/slds-quickForm.coffee"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-typeahead/typeahead.js/bloodhound.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-typeahead/typeahead.js/typeahead.bundle.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-typeahead/typeahead.js/typeahead.jquery.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-typeahead/template.af-typeahead.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-typeahead/af-typeahead.coffee"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-number/template.steedos-number.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-number/steedos-number.coffee"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-date-mobile/template.date.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-date-mobile/date.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-html/template.html.js"),X("/node_modules/meteor/steedos:autoform/client/coreform/inputTypes/coreform-html/html.js"),Package._define("steedos:autoform",{CFDataManager:H})}(); -!function(){var Meteor=Package.meteor.Meteor,global=Package.meteor.global,meteorEnv=Package.meteor.meteorEnv,ReactiveVar=Package["reactive-var"].ReactiveVar,ReactiveDict=Package["reactive-dict"].ReactiveDict,Random=Package.random.Random,DDP=Package["ddp-client"].DDP,check=Package.check.check,Match=Package.check.Match,_=Package.underscore._,Tracker=Package.tracker.Tracker,Deps=Package.tracker.Deps,Session=Package.session.Session,Blaze=Package.ui.Blaze,UI=Package.ui.UI,Handlebars=Package.ui.Handlebars,Template=Package["templating-runtime"].Template,SimpleSchema=Package["aldeed:simple-schema"].SimpleSchema,MongoObject=Package["aldeed:simple-schema"].MongoObject,Tabular=Package["aldeed:tabular"].Tabular,AutoForm=Package["aldeed:autoform"].AutoForm,CollectionHooks=Package["matb33:collection-hooks"].CollectionHooks,BlazeLayout=Package["kadira:blaze-layout"].BlazeLayout,FlowRouter=Package["kadira:flow-router"].FlowRouter,SubsManager=Package["meteorhacks:subs-manager"].SubsManager,moment=Package["momentjs:moment"].moment,UniSelectize=Package["steedos:autoform-lookup"].UniSelectize,Accounts=Package["accounts-base"].Accounts,Selector=Package["steedos:base"].Selector,Steedos=Package["steedos:base"].Steedos,AjaxCollection=Package["steedos:base"].AjaxCollection,SteedosDataManager=Package["steedos:base"].SteedosDataManager,SteedosOffice=Package["steedos:base"].SteedosOffice,Modal=Package["steedos:base"].Modal,CFDataManager=Package["steedos:autoform"].CFDataManager,Push=Package["raix:push"].Push,Logger=Package["steedos:logger"].Logger,_i18n=Package["universe:i18n"]._i18n,i18n=Package["universe:i18n"].i18n,Promise=Package.promise.Promise,meteorInstall=Package.modules.meteorInstall,meteorBabelHelpers=Package.modules.meteorBabelHelpers,HTML=Package.htmljs.HTML,Collection2=Package["aldeed:collection2-core"].Collection2,FS=Package["steedos:cfs-base-package"].FS,Spacebars=Package.spacebars.Spacebars,Symbol=Package["ecmascript-runtime-client"].Symbol,Map=Package["ecmascript-runtime-client"].Map,Set=Package["ecmascript-runtime-client"].Set,Mongo=Package.mongo.Mongo,__coffeescriptShare,regions,require=meteorInstall({node_modules:{meteor:{"steedos:creator":{"core.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Creator.getSchema=function(e){var t;return null!=(t=Creator.getObject(e))?t.schema:void 0},Creator.getObjectHomeComponent=function(e){return!1},Creator.getObjectUrl=function(e,t,r){var o,a;return r||(r=Session.get("app_id")),e||(e=Session.get("object_name")),a=null!=(o=Creator.getListView(e,null))?o._id:void 0,t?Creator.getRelativeUrl("/app/"+r+"/"+e+"/view/"+t):Creator.getObjectHomeComponent(e)?Creator.getRelativeUrl("/app/"+r+"/"+e):a?Creator.getRelativeUrl("/app/"+r+"/"+e+"/grid/"+a):Creator.getRelativeUrl("/app/"+r+"/"+e)},Creator.getObjectAbsoluteUrl=function(e,t,r){var o,a;return r||(r=Session.get("app_id")),e||(e=Session.get("object_name")),a=null!=(o=Creator.getListView(e,null))?o._id:void 0,t?Steedos.absoluteUrl("/app/"+r+"/"+e+"/view/"+t,!0):Steedos.absoluteUrl("/app/"+r+"/"+e+"/grid/"+a,!0)},Creator.getObjectRouterUrl=function(e,t,r){var o,a;return r||(r=Session.get("app_id")),e||(e=Session.get("object_name")),a=null!=(o=Creator.getListView(e,null))?o._id:void 0,t?"/app/"+r+"/"+e+"/view/"+t:"/app/"+r+"/"+e+"/grid/"+a},Creator.getListViewUrl=function(e,t,r){var o;return o=Creator.getListViewRelativeUrl(e,t,r),Creator.getRelativeUrl(o)},Creator.getListViewRelativeUrl=function(e,t,r){return"/app/"+t+"/"+e+"/grid/"+r},Creator.getSwitchListUrl=function(e,t,r){return r?Creator.getRelativeUrl("/app/"+t+"/"+e+"/"+r+"/list"):Creator.getRelativeUrl("/app/"+t+"/"+e+"/list/switch")},Creator.getRelatedObjectUrl=function(e,t,r,o,a){return a?Creator.getRelativeUrl("/app/"+t+"/"+e+"/"+r+"/"+o+"/grid?related_field_name="+a):Creator.getRelativeUrl("/app/"+t+"/"+e+"/"+r+"/"+o+"/grid")},Creator.getObjectLookupFieldOptions=function(e,t,r,o){var a,n,i,s,c,l;return n=[],e?(i=null!=(a=Creator.getObject(e))?a.fields:void 0,s=null!=a?a.icon:void 0,_.forEach(i,(function(e,t){if(!r||!e.hidden)return"select"===e.type?n.push({label:""+(e.label||t),value:""+t,icon:s}):n.push({label:e.label||t,value:t,icon:s})})),t&&_.forEach(i,(function(e,t){var o;if(!r||!e.hidden)return("lookup"===e.type||"master_detail"===e.type)&&e.reference_to&&_.isString(e.reference_to)&&(o=Creator.getObject(e.reference_to))?_.forEach(o.fields,(function(r,a){return n.push({label:(e.label||t)+"=>"+(r.label||a),value:t+"."+a,icon:null!=o?o.icon:void 0})})):void 0})),o&&(c=Creator.getRelatedObjects(e),_.each(c,(l=this,function(e){var t,r;return r=Creator.getObjectLookupFieldOptions(e.object_name,!1,!1,!1),t=Creator.getObject(e.object_name),_.each(r,(function(r){if(e.foreign_key!==r.value)return n.push({label:(t.label||t.name)+"=>"+r.label,value:t.name+"."+r.value,icon:null!=t?t.icon:void 0})}))}))),n):n},Creator.getObjectFilterFieldOptions=function(e){var t,r,o,a,n;return r=[],e?(o=null!=(t=Creator.getObject(e))?t.fields:void 0,n=Creator.getFields(e),a=null!=t?t.icon:void 0,_.forEach(o,(function(e,t){if(!_.include(["grid","object","[Object]","[object]","Object","avatar","image","markdown","html"],e.type)&&!e.hidden&&!/\w+\./.test(t)&&_.indexOf(n,t)>-1)return r.push({label:e.label||t,value:t,icon:a})})),r):r},Creator.getObjectFieldOptions=function(e){var t,r,o,a,n;return r=[],e?(o=null!=(t=Creator.getObject(e))?t.fields:void 0,n=Creator.getFields(e),a=null!=t?t.icon:void 0,_.forEach(o,(function(e,t){if(!_.include(["grid","object","[Object]","[object]","Object","markdown","html"],e.type)&&!/\w+\./.test(t)&&_.indexOf(n,t)>-1)return r.push({label:e.label||t,value:t,icon:a})})),r):r},Creator.getFiltersWithFilterFields=function(e,t,r){return e||(e=[]),r||(r=[]),(null!=r?r.length:void 0)&&r.forEach((function(r){if(_.isString(r)&&(r={field:r,required:!1}),t[r.field]&&!_.findWhere(e,{field:r.field}))return e.push({field:r.field,is_default:!0,is_required:r.required})})),e.forEach((function(e){var t;return t=r.find((function(t){return t===e.field||t.field===e.field})),_.isString(t)&&(t={field:t,required:!1}),t?(e.is_default=!0,e.is_required=t.required):(delete e.is_default,delete e.is_required)})),e},Creator.getObjectRecord=function(e,t,r,o){var a,n,i,s,c,l;if(e||(e=Session.get("object_name")),t||(t=Session.get("record_id")),Meteor.isClient){if(e!==Session.get("object_name")||t!==Session.get("record_id"))return Creator.odata.get(e,t,r,o);if(null!=(s=Template.instance())?s.record:void 0)return null!=(c=Template.instance())&&null!=(l=c.record)?l.get():void 0}if("meteor"!==(n=Creator.getObject(e)).database_name&&n.database_name){if(e&&t)return Creator.odata.get(e,t,r,o)}else if(a=Creator.getCollection(e))return i=a.findOne(t)},Creator.getObjectRecordName=function(e,t){var r,o;if(e||(e=Creator.getObjectRecord()),e&&(r="organizations"===t?"name":null!=(o=Creator.getObject(t))?o.NAME_FIELD_KEY:void 0,e&&r))return e.label||e[r]},Creator.getApp=function(e){var t,r;return(t=Session.get("_app_menus")||Session.get("app_menus"))?r=t.find((function(t){return t.id===e})):{}},Creator.getAppDashboard=function(e){var t,r;if(t=Creator.getApp(e))return r=null,_.each(Creator.Dashboards,(function(e,o){var a;if((null!=(a=e.apps)?a.indexOf(t._id):void 0)>-1)return r=e})),r},Creator.getAppDashboardComponent=function(e){var t;t=Creator.getApp(e)},Creator.getAppObjectNames=function(e){var t,r,o,a;if(t=Creator.getApp(e))return r=(o=Steedos.isMobile())?t.mobile_objects:t.objects,a=[],t&&_.each(r,(function(e){var t;if(null!=(t=Creator.getObject(e))?t.permissions.get().allowRead:void 0)return a.push(e)})),a},Creator.getUrlWithToken=function(e,t){var r,o,a;return(a={})["X-Space-Id"]=Steedos.spaceId(),a["X-User-Id"]=Steedos.userId(),a["X-Company-Ids"]=Steedos.getUserCompanyIds(),a["X-Auth-Token"]=Accounts._storedLoginToken(),Steedos.isExpression(e)&&(e=Steedos.parseSingleExpression(e,t,"#",Creator.USER_CONTEXT)),""+e+(o=(r=/(\#.+\?)|(\?[^#]*$)/g.test(e))?"&":"?")+$.param(a)},Creator.getAppMenu=function(e,t){var r;return(r=Creator.getAppMenus(e))&&r.find((function(e){return e.id===t}))},Creator.getAppMenuUrlForInternet=function(e){return Creator.getUrlWithToken(e.path,e)},Creator.getAppMenuUrl=function(e){var t;return t=e.path,"url"===e.type?e.target?Creator.getAppMenuUrlForInternet(e):"/app/-/tab_iframe/"+e.id:e.path},Creator.getAppMenus=function(e){var t,r;return(t=Session.get("_app_menus")||Session.get("app_menus"))?(r=t.find((function(t){return t.id===e})))?r.children:void 0:[]},Creator.loadAppsMenus=function(){var e,t,r;return e={},(t=Steedos.isMobile())&&(e.mobile=t),r={type:"get",data:e,success:function(e){return Session.set("app_menus",e)}},null!=Steedos?Steedos.authRequest("/service/api/apps/menus",r):void 0},Creator.creatorAppsSelector=function(e,t){var r,o,a;return r=void 0,a=void 0,_.each(e,(function(e,t){e._id||(e._id=t),e.is_creator||(e.visible=!1)})),a=_.sortBy(_.values(e),"sort"),o={},r={},_.each(a,(function(e){return"admin"===e._id?r=e:o[e._id]=e})),o.admin=r,t.length&&_.each(o,(function(e,r){t.indexOf(r)>-1?e.visible=e.is_creator:e.visible=!1})),o},Creator.visibleAppsSelector=function(e,t){var r;return null==t&&(t=!0),r=[],_.each(e,(function(e,o){(!1!==e.visible&&"admin"!==e._id||t&&"admin"===e._id)&&r.push(e)})),r},Creator.getVisibleApps=function(e){var t,r;return t=Creator._subApp.get(),r=Object.assign({},Creator.Apps,{apps:t}),Creator.visibleAppsSelector(r,e)},Creator.getVisibleAppsObjects=function(){var e,t,r;return e=Creator.getVisibleApps(),r=_.flatten(_.pluck(e,"objects")),t=(t=_.filter(Creator.Objects,(function(e){return!(r.indexOf(e.name)<0)}))).sort(Creator.sortingMethod.bind({key:"label"})),t=_.pluck(t,"name"),_.uniq(t)},Creator.getAppsObjects=function(){var e,t;return e=[],t=[],_.forEach(Creator.Apps,(function(r){return t=_.filter(r.objects,(function(e){return!e.hidden})),e=e.concat(t)})),_.uniq(e)},Creator.validateFilters=function(e,t){var r,o,a,n,i,s,c;if(a=_.map(e,(function(e){return!_.isEmpty(e)&&e})),a=_.compact(a),o="",n=a.length,t){if(t=t.replace(/\n/g,"").replace(/\s+/g," "),/[._\-!+]+/gi.test(t)&&(o="含有特殊字符。"),!o)if(s=t.match(/\d+/gi))for(s.forEach((function(e){if(e<1||e>n)return o="您的筛选条件引用了未定义的筛选器:"+e+"。"})),i=1;i<=n;)s.includes(""+i)||(o="有些筛选条件进行了定义,但未在高级筛选条件中被引用。"),i++;else o="有些筛选条件进行了定义,但未在高级筛选条件中被引用。";if(o||(c=t.match(/[a-zA-Z]+/gi))&&c.forEach((function(e){if(!/^(and|or)$/gi.test(e))return o="检查您的高级筛选条件中的拼写。"})),!o){try{Creator.eval(t.replace(/and/gi,"&&").replace(/or/gi,"||"))}catch(l){r=l,o="您的筛选器中含有特殊字符"}(/(AND)[^()]+(OR)/gi.test(t)||/(OR)[^()]+(AND)/gi.test(t))&&(o="您的筛选器必须在连续性的 AND 和 OR 表达式前后使用括号。")}}return!o||(console.log("error",o),Meteor.isClient&&toastr.error(o),!1)},Creator.formatFiltersToMongo=function(e,t){var r;if(null!=e?e.length:void 0)return e[0]instanceof Array||(e=_.map(e,(function(e){return[e.field,e.operation,e.value]}))),r=[],_.each(e,(function(e){var o,a,n,i,s;return o=e[0],a=e[1],s=Meteor.isClient?Creator.evaluateFormula(e[2]):Creator.evaluateFormula(e[2],null,t),(i={})[o]={},"="===a?i[o].$eq=s:"<>"===a?i[o].$ne=s:">"===a?i[o].$gt=s:">="===a?i[o].$gte=s:"<"===a?i[o].$lt=s:"<="===a?i[o].$lte=s:"startswith"===a?(n=new RegExp("^"+s,"i"),i[o].$regex=n):"contains"===a?(n=new RegExp(s,"i"),i[o].$regex=n):"notcontains"===a&&(n=new RegExp("^((?!"+s+").)*$","i"),i[o].$regex=n),r.push(i)})),r},Creator.isBetweenFilterOperation=function(e){var t;return"between"===e||!!(null!=(t=Creator.getBetweenTimeBuiltinValues(!0))?t[e]:void 0)},Creator.formatFiltersToDev=function(e,t,r){var o,a;if(e.length)return(null!=r?r.is_logic_or:void 0)&&(o=[],e.forEach((function(e){return o.push(e),o.push("or")})),o.pop(),e=o),a=SteedosFilters.formatFiltersToDev(e,Creator.USER_CONTEXT)},Creator.formatLogicFiltersToDev=function(e,t,r){var o;return o="["+(o=(o=t.replace(/\(\s+/gi,"(").replace(/\s+\)/gi,")").replace(/\(/g,"[").replace(/\)/g,"]").replace(/\s+/g,",").replace(/(and|or)/gi,"'$1'")).replace(/(\d)+/gi,(function(t){var o,a,n,i,s;return o=e[t-1],a=o.field,n=o.operation,s=Meteor.isClient?Creator.evaluateFormula(o.value):Creator.evaluateFormula(o.value,null,r),i=[],!0===_.isArray(s)?("="===n?_.each(s,(function(e){return i.push([a,n,e],"or")})):"<>"===n?_.each(s,(function(e){return i.push([a,n,e],"and")})):_.each(s,(function(e){return i.push([a,n,e],"or")})),"and"!==i[i.length-1]&&"or"!==i[i.length-1]||i.pop()):i=[a,n,s],JSON.stringify(i)})))+"]",Creator.eval(o)},Creator.getRelatedObjects=function(e,t,r){var o,a,n,i,s;return Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),n=[],(o=Creator.getObject(e))?(i=Creator.getObjectRelateds(o._collection_name),0===(null!=(n=_.pluck(i,"object_name"))?n.length:void 0)?n:(s=(a=Creator.getPermissions(e,t,r)).unrelated_objects,n=_.difference(n,s),_.filter(i,(function(e){var o,i,s,c;return c=e.object_name,i=n.indexOf(c)>-1,o=null!=(s=Creator.getPermissions(c,t,r))?s.allowRead:void 0,"cms_files"===c&&(o=o&&a.allowReadFiles),i&&o})))):n},Creator.getRelatedObjectNames=function(e,t,r){var o;return o=Creator.getRelatedObjects(e,t,r),_.pluck(o,"object_name")},Creator.getRelatedObjectListActions=function(e,t,r){var o;return o=Creator.getActions(e,t,r),o=_.filter(o,(function(e){return"standard_follow"!==e.name&&("standard_query"!==e.name&&("list"===e.on&&("function"==typeof e.visible?e.visible():e.visible)))}))},Creator.getActions=function(e,t,r){var o,a,n,i,s,c;if(Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),n=Creator.getObject(e))return i=Creator.getPermissions(e,t,r),a=i.disabled_actions,o=_.sortBy(_.values(n.actions),"sort"),_.has(n,"allow_customActions")&&(o=_.filter(o,(function(e){return _.include(n.allow_customActions,e.name)||_.include(_.keys(Creator.getObject("base").actions)||{},e.name)}))),_.has(n,"exclude_actions")&&(o=_.filter(o,(function(e){return!_.include(n.exclude_actions,e.name)}))),_.each(o,(function(e){if(Steedos.isMobile()&&["record","record_only"].indexOf(e.on)>-1&&"standard_edit"!==e.name)return"record_only"===e.on?e.on="record_only_more":e.on="record_more"})),Steedos.isMobile()&&["cms_files","cfs.files.filerecord"].indexOf(e)>-1&&(null!=(s=o.find((function(e){return"standard_edit"===e.name})))&&(s.on="record_more"),null!=(c=o.find((function(e){return"download"===e.name})))&&(c.on="record")),o=_.filter(o,(function(e){return _.indexOf(a,e.name)<0}))},Creator.getListViews=function(e,t,r){var o,a,n,i,s,c;if(Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),e&&(s=Creator.getObject(e)))return o=(null!=(c=Creator.getPermissions(e,t,r))?c.disabled_list_views:void 0)||[],i=[],a=Steedos.isMobile(),_.each(s.list_views,(function(e,t){return e.name=t})),n=_.sortBy(_.values(s.list_views),"sort_no"),_.each(n,(function(e){var t;if(!a||"calendar"!==e.type)return"default"===e.name||(t=_.indexOf(o,e.name)>-1||e._id&&_.indexOf(o,e._id)>-1)&&e.owner!==r?void 0:i.push(e)})),i},Creator.getFields=function(e,t,r){var o,a,n;return Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),o=Creator.getObjectFieldsName(e),n=null!=(a=Creator.getPermissions(e,t,r))?a.unreadable_fields:void 0,_.difference(o,n)},Creator.isloading=function(){return!Creator.bootstrapLoaded.get()},Creator.convertSpecialCharacter=function(e){return e.replace(/([\^\$\(\)\*\+\?\.\\\|\[\]\{\}])/g,"\\$1")},Creator.getDisabledFields=function(e){var t;return t=_.map(e,(function(e,t){return e.autoform&&e.autoform.disabled&&!e.autoform.omit&&t})),t=_.compact(t)},Creator.getHiddenFields=function(e){var t;return t=_.map(e,(function(e,t){return e.autoform&&"hidden"===e.autoform.type&&!e.autoform.omit&&t})),t=_.compact(t)},Creator.getFieldsWithNoGroup=function(e){var t;return t=_.map(e,(function(e,t){return(!e.autoform||!e.autoform.group||"-"===e.autoform.group)&&(!e.autoform||"hidden"!==e.autoform.type)&&t})),t=_.compact(t)},Creator.getSortedFieldGroupNames=function(e){var t;return t=_.map(e,(function(e){return e.autoform&&"-"!==e.autoform.group&&e.autoform.group})),t=_.compact(t),t=_.unique(t)},Creator.getFieldsForGroup=function(e,t){var r;return r=_.map(e,(function(e,r){return e.autoform&&e.autoform.group===t&&"hidden"!==e.autoform.type&&r})),r=_.compact(r)},Creator.getSystemBaseFields=function(){return["created","created_by","modified","modified_by"]},Creator.getFieldsWithoutSystemBase=function(e){return _.difference(e,Creator.getSystemBaseFields())},Creator.getFieldsWithoutOmit=function(e,t){return t=_.map(t,(function(t){var r,o;return(null==(o=(r=_.pick(e,t))[t].autoform)||!o.omit)&&t})),t=_.compact(t)},Creator.getFieldsInFirstLevel=function(e,t){return t=_.map(t,(function(t){return _.indexOf(e,t)>-1&&t})),t=_.compact(t)},Creator.getFieldsForReorder=function(e,t,r){var o,a,n,i,s,c,l,u;for(n=[],i=0,o=_.filter(t,(function(e){return!e.endsWith("_endLine")}));i-1&&(o=e[t].data_type),o):"text"},Meteor.isServer&&(Creator.getAllRelatedObjects=function(e){var t;return t=[],_.each(Creator.Objects,(function(r,o){return _.each(r.fields,(function(r,a){if("master_detail"===r.type&&r.reference_to&&r.reference_to===e)return t.push(o)}))})),Creator.getObject(e).enable_files&&t.push("cms_files"),t}),Meteor.isServer&&(Steedos.formatIndex=function(e){var t,r,o,a,n,i;return o={background:!0},(r=(null!=(a=Meteor.settings)&&null!=(n=a.datasources)&&null!=(i=n.default)?i.documentDB:void 0)||!1)&&e.length>0&&(t=e.join("."),o.name=t,t.length>52&&(o.name=t.substring(0,52))),o})},lib:{"apps.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Creator.appsByName={}},"object_recent.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};this.ObjectRecent={},ObjectRecent.insert=function(e,t,r){return Meteor.call("object_recent_viewed",e,t,Session.get("spaceId"),(function(){if(r&&_.isFunction(r))return r()}))}},"filters_transform.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r;this.FiltersTransform={},r=function(e){return["date","datetime","time","currency","number"].includes(e)?"between":["text","textarea","html"].includes(e)?"contains":"="},FiltersTransform.queryToFilters=function(e){var t,o,a,n;if(e)return n=e.query,a=e.object_name,o=Creator.getObject(a).fields,t=[],_.each(n,(function(e,a){var n,i;if(o[a]){if(i=Creator.getFieldDataType(o,a),["date","datetime","time","currency","number"].includes(i))return t.push({field:a,operation:r(i),start_value:e,value:[e,null]});if(!["text","textarea","html"].includes(i))return["boolean"].includes(i)?t.push({field:a,operation:"=",value:e}):t.push({field:a,operation:r(i),value:e});if(_.isString(e))return t.push({field:a,operation:r(i),value:e});if(_.isArray(e))return t.push({field:a,operation:"=",value:e})}else if(a=a.replace(/(_endLine)$/,""),i=Creator.getFieldDataType(o,a),o[a]&&["date","datetime","time","currency","number"].includes(i))return(n=_.find(t,(function(e){return e.field===a})))?(n.end_value=e,n.value[1]=e):t.push({field:a,operation:r(i),end_value:e,value:[null,e]})})),t}},"form_manager.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;this.FormManager={},SimpleSchema.messages({formValidate:"[value]"}),FormManager.getRelatedInitialValues=(o=this,function(e,t,r){var o,a,n,i,s;if(!_.isString(t))throw new Meteor.Error("main_record_id must be String");return o={},i="",Creator.getRelatedList(e,t).forEach((function(e){if(r===e.object_name)return i=e.related_field_name})),a="company_id",(s=Creator.getObject(r))&&i&&s.fields[i]&&s.fields[i].reference_to_field&&(a=a+","+s.fields[i].reference_to_field),(n=Creator.odata.get(e,t,a))&&i&&n[s.fields[i].reference_to_field]&&(t=n[s.fields[i].reference_to_field]),o={},i&&("objects"===e?o[i]=Creator.getObjectRecord().name:(s=Creator.getObject(r),_.isString(s.fields[i].reference_to)?s.fields[i].multiple?o[i]=[t]:o[i]=t:o[i]={o:e,ids:[t]})),!_.has(o,"company_id")&&(null!=n?n.company_id:void 0)&&(o.company_id=n.company_id),o=Object.assign({},o,FormManager.getInitialValues(r,o))}),FormManager.getInitialValues=function(e,t){var r,o,a;return o=null!=(r=Creator.getObject(e))&&null!=(a=r.form)?a.initialValues:void 0,_.isFunction(o)?o.apply({doc:t||{}}):{}},FormManager.validate=function(e,t){var r,o,a,n,i,s;if(a=null!=(o=Creator.getObject(e))&&null!=(n=o.form)?n.validate:void 0,_.isFunction(a))try{if(s=a.apply({},[null!=(i=AutoForm.getFormValues(t))?i.insertDoc:void 0]),_.isBoolean(s)&&!1===s)return!1;if(!_.isEmpty(s)&&_.isObject(s))return _.each(s,(function(e,r){return AutoForm.addStickyValidationError(t,r,"formValidate",e),toastr.error(e)})),!1}catch(c){return r=c,console.error(r),toastr.error(r.message),!1}return!0},FormManager.onSubmit=function(e,t){var r,o,a,n,i;return o=null!=(r=Creator.getObject(e))&&null!=(n=r.form)?n.onSubmit:void 0,!(_.isFunction(o)&&(a=o.apply({},[null!=(i=AutoForm.getFormValues(t))?i.insertDoc:void 0]),!_.isEmpty(a)&&_.isObject(a)))||(_.each(a,(function(e,r){return AutoForm.addStickyValidationError(t,r,"formValidate",e),toastr.error(e)})),!1)},r=function(e,t,r){var o,a,n;return o={userId:Meteor.userId(),spaceId:Session.get("spaceId"),object_name:e},_.has(r,"previousDoc")&&(o.previousDoc=r.previousDoc),t.endsWith("Delete")?(o.id=r._id,o.doc=Creator.odata.get(e,r._id),t.startsWith("error")&&(o.error=r.error)):t.startsWith("after")?(o.id=null!=(a=r.dbDoc)?a._id:void 0,o.doc=r.dbDoc):t.startsWith("before")?(t.endsWith("Insert")||(o.id=r._id),t.endsWith("Update")?o.doc=null!=(n=r.doc)?n.$set:void 0:o.doc=r.doc):t.startsWith("error")&&(o.id=r._id,o.doc=r.doc,o.error=r.error),o},FormManager.getPreviousDoc=function(e,t,r){var o,a,n,i,s;if(("update"===r||"delete"===r)&&(o="after",a="after"+r.charAt(0).toLocaleUpperCase()+_.rest(r.split("")).join(""),i=null!=(n=Creator.getObject(e))&&null!=(s=n.form)?s[a]:void 0,_.isFunction(i)))return Creator.odata.get(e,t)},FormManager.runHook=function(e,t,o,a){var n,i,s,c,l,u,d,p;if(l=""+o+t.charAt(0).toLocaleUpperCase()+_.rest(t.split("")).join(""),"view"===t||"edit"===t)return FormManager.runViewEditHook(e,l,a.schema,a.record,a.doc);if(s=a.formId,d=null!=(u=Creator.getObject(e))&&null!=(p=u.form)?p[l]:void 0,_.isFunction(d))try{if(n=r(e,l,a),c=d.apply(n),_.isBoolean(c)&&!1===c)return!1;if(s&&"before"===o&&!_.isEmpty(c)&&_.isObject(c))return _.each(c,(function(e,t){return AutoForm.addStickyValidationError(s,t,"formValidate",e),toastr.error(e)})),!1}catch(f){return i=f,console.error(i),toastr.error(i.message),!1}return!0},FormManager.runViewEditHook=function(e,t,r,o,a){var n,i,s,c,l,u,d;if(l=null!=(u=Creator.getObject(e))&&null!=(d=u.form)?d[t]:void 0,_.isFunction(l)&&(s=r.get(),c={id:(i=a||o.get())._id,userId:Meteor.userId(),spaceId:Session.get("spaceId"),object_name:e,doc:i,schema:s},!1!==(n=l.apply(c))))return r.set(s),o.set(i)}},"grid_export.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;this.ObjectGrid={},this.GridExport={},r={equals:"=",notEqual:"!=",contains:"contains",notContains:"notcontains",startsWith:"startswith",endsWith:"=",lessThan:"<",lessThanOrEqual:"<=",greaterThan:">",greaterThanOrEqual:">=",empty:"empty"},o=function(e){var t;return t=[],_.forEach(e,(function(e,o){var a;return"between"===e.type?"number"===e.filterType?t.push([o,"between",[e.numberFrom,e.numberTo]]):e.filter?t.push([o,e.type,e.filter]):t.push([o,"between",[e.dateFrom,e.dateTo]]):_.isEmpty(e.filter)?e.operator?(a=[],e.condition1&&a.push([o,r[e.condition1.type],e.condition1.filter]),a.push(e.operator.toLocaleLowerCase()),e.condition2&&a.push([o,r[e.condition2.type],e.condition2.filter]),t.push(a)):void 0:(a=[o,r[e.type],e.filter],t.push(a))})),t},ObjectGrid.getFilters=function(e,t,r,a,n){var i,s,c,l,u,d;return s=Steedos.Page.Listview.getDefaultName(e,t),l=window.gridRefs&&window.gridRefs[s]&&window.gridRefs[s].current?window.gridRefs[s].current:window.gridRef.current,u=[],i=Creator.getListViewFilters(e,t,r,a,n),d=o(l.api.getFilterModel()),c=_.compact([].concat(i).concat(d))},GridExport.excel=function(e,t,r,a,n,i,s){var c,l,u,d,p,f,m,g,v,h,b,w,S;return u=Steedos.Page.Listview.getDefaultName(e,t),f=window.gridRefs&&window.gridRefs[u]&&window.gridRefs[u].current?window.gridRefs[u].current:window.gridRef.current,h=[],_.each(f.props.columnDefs,(function(e){if(e&&e.field)return h.push(e.field)})),b=[],_.forEach(f.api.getSortModel(),(function(e){return b.push([e.colId,e.sort])})),l=Creator.getListViewFilters(e,t,r,a,n,s),S=o(f.api.getFilterModel()),p=_.compact([].concat(l).concat(S)),c=SteedosFilters.formatFiltersToODataQuery(p),d=r?i+"-"+Creator.getObject(a).label:Creator.getObject(e).label+"-"+(null!=(v=Creator.getListView(e,t))?v.label:void 0),g=[],_.map(b,(function(e){var t;return t="desc"===e[1]?e[0]+" desc":e[0],g.push(t)})),m=g.join(","),d=encodeURIComponent(d),w=r?"/api/record/export/"+a+"?$select="+h.toString()+"&filename="+d:"/api/record/export/"+e+"?$select="+h.toString()+"&filename="+d,b.length>0&&(w=w+"&$orderby="+m),c&&(w=w+"&$filter="+c),Meteor.isCordova?Steedos.cordovaDownload(encodeURI(Steedos.absoluteUrl(w)),d+".xlsx"):window.open(w)}}},client:{"listview.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n,i;n=function(e,t,r){var o,a,n;return o=null!=t?t.columns:void 0,r&&((null!=t?t.mobile_columns:void 0)?o=t.mobile_columns:(null!=(n=Creator.getObjectFirstListView(e))?n.mobile_columns:void 0)?o=n.mobile_columns:o&&(o=Creator.pickObjectMobileColumns(e,o))),o||(a=Creator.getObjectFirstListViewColumns(e,r))&&(o=a),o},o=function(e,t,r){var o,a,i,s,c,l;return s=(c=Creator.getObject(e)).NAME_FIELD_KEY,"organizations"===c.name&&(s="name"),o=[s],(i=Creator.getCollection("object_listviews").findOne(t))?o=n(e,i,r):c.list_views&&(l=c.list_views[t],o=n(e,l,r)),o=o.map((function(e){var t,r;return t=_.isObject(e)?e.field:e,(null!=(r=c.fields[t])?r.type:void 0)?t:void 0})),Creator.isCommonSpace(Session.get("spaceId"))&&o.indexOf("space")<0&&o.push("space"),"cms_files"===e&&o.push("parent"),o=_.compact(o),a=Creator.getObjectFieldsName(e),_.intersection(o,a)},i=function(e,t,r,o){var a;return r?(a=Creator.getObject(e).fields,o&&(t=t.filter((function(e){var t,o;return"master_detail"!==(null!=(o=a[e])?o.type:void 0)||(!!a[e].multiple||(a[e].reference_to?(t=a[e].reference_to,_.isFunction(t)&&(t=t())):t=a[e].optionsFunction({}).getProperty("value"),!!_.isArray(t)||t!==r))}))),t):t},r=function(e,t){var r,o;return o=Creator.getObject(e).fields,r=[],_.each(t,(function(e){var t;if(null!=(t=o[e])?t.depend_on:void 0)return r=_.union(o[e].depend_on)})),r},a=function(e,t,r){var o,a;return a=_.intersection(["owner","company_id","company_ids","locked"],_.keys(e.fields)),!r&&e.enable_tree&&(a.push("parent"),a.push("children")),(o=Creator.getObjectDefaultExtraColumns(e.name))&&(a=_.union(a,o)),a},Creator.unionSelectColumnsWithExtraAndDepandOn=function(e,t,o,n){var i,s;return i=t.name,s=a(t,o,n),e=_.union(e,s),e=_.union(e,r(i,e))},Creator.getListViewFilters=function(e,t,r,o,a,n){var i,s,c,l,u,d,p,f,m,g;if(!e)return null;if(c=Creator.getObject(e),r)l=Creator.getODataRelatedFilter(e,o,a,t,n);else{if(d=Session.get("filter_logic"),p=Session.get("filter_scope"),u=Session.get("filter_items"),s=c.fields,u&&u.length>0&&window.lodash.isArray(u[0]))return l=u,(g=Creator.getStandardQuery(e,Session.get("standard_query")))&&g.length&&(l=l?[l,"and",g]:g),(m=Session.get("grid_sidebar_filters"))&&m.length&&(l=l?[l,"and",m]:m),l||(l=null),l;i=[],_.forEach(u,(function(t){var r,o,a,n,c,l,u,d,p,f,m;if(void 0!==t.value)if(r=s[null!=t?t.field:void 0],o=Creator.getFieldDataType(s,null!=t?t.field:void 0),["text","textarea","html","code"].includes(o)){if(_.isString(t.value)&&(m=t.value.trim().split(" "),l=[],m.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),l.push([t.field,t.operation,e])})),l.length>0))return c=!1,["<>","notcontains"].includes(t.operation)&&(c=!1),i.push(Creator.formatFiltersToDev(l,e,{is_logic_or:c}))}else{if(!["lookup","master_detail"].includes(o))return i.push(t);if(a=null!=r?r.reference_to:void 0,_.isFunction(a)&&(a=a()),!_.isArray(a))return i.push(t);if((null!=(u=t.value)?u.ids:void 0)&&i.push({field:t.field+".ids",operation:t.operation,value:null!=(d=t.value)?d.ids:void 0}),null!=(p=t.value)?p.o:void 0)return n=Creator.getObject(null!=(f=t.value)?f.o:void 0),i.push({field:t.field+".o",operation:t.operation,value:n._collection_name})}})),i.length>0&&(f={filter_logic:d,filter_scope:p,filters:i}),l=Creator.getODataFilter(t,e,f),(g=Creator.getStandardQuery(e,Session.get("standard_query")))&&g.length&&(l=l?[l,"and",g]:g),r||(m=Session.get("grid_sidebar_filters"))&&m.length&&(l=l?[l,"and",m]:m)}return l||(l=null),l},Creator.getODataEndpointUrl=function(e,t,r,o){var a,n;return r?(a=Creator.formatObjectName(o),n=Creator.getListViewIsRecent(e,t)?"/api/v4/"+a+"/recent":"/api/v4/"+a):(a=Creator.formatObjectName(e),n=Creator.getListViewIsRecent(e,t)?"/api/v4/"+a+"/recent":"/api/v4/"+a),Steedos.absoluteUrl(n)},Creator.getListviewColumns=function(e,t,r,a,n,s){var c,l;return c=e.name,l=Tracker.nonreactive((function(){return o(c,a,s)})),n&&n.customRelatedListObject&&(n.columns&&(l=n.columns),s&&n.mobile_columns&&(l=n.mobile_columns),l&&(l=l.map((function(e){return _.isObject(e)?e.field:_.isString(e)?e:void 0})),l=_.uniq(_.compact(l)))),l=i(c,l,t,r)}},views:{"_helpers.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Creator.helpers={object_name:function(){return Session.get("object_name")},object:function(){return Creator.getObject(Session.get("object_name"))},object_listviews:function(){return Creator.getObject("object_listviews")},objectLabel:function(e){return Creator.getObject(e).label},getOperationLabel:function(e){switch(e){case"=":return t("creator_filter_operation_equal");case"<>":return t("creator_filter_operation_unequal");case"<":return t("creator_filter_operation_less_than");case">":return t("creator_filter_operation_greater_than");case"<=":return t("creator_filter_operation_less_or_equal");case">=":return t("creator_filter_operation_greater_or_equal");case"contains":return t("creator_filter_operation_contains");case"notcontains":return t("creator_filter_operation_does_not_contain");case"startswith":return t("creator_filter_operation_starts_with");case"between":return t("creator_filter_operation_between")}},isMobile:function(){return Steedos.isMobile()}}},"template.page_template.js":function e(){Template.__checkName("page_template"),Template.page_template=new Template("Template.page_template",(function(){var e=this;return HTML.Raw('
')}))},"page_template.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_template.onRendered((function(){var e,t;return t=this,e=Session.get("app_id"),this.containerList=[],this.autorun((function(){var r;if(r=Steedos.Page.App.render(t,Session.get("pageApiName"),e))return t.containerList.push(r)}))})),Template.page_template.onDestroyed((function(){return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_object.js":function e(){Template.__checkName("page_object"),Template.page_object=new Template("Template.page_object",(function(){var e=this;return HTML.Raw('
')}))},"page_object.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_object.onRendered((function(){var e;return e=this,Steedos.Page.Object.Template.onRendered.apply(this)})),Template.page_object.onDestroyed((function(){var e;return e=this,Steedos.Page.Object.Template.onDestroyed.apply(this)}))},"template.page_record_view.js":function e(){Template.__checkName("page_record_view"),Template.page_record_view=new Template("Template.page_record_view",(function(){var e=this;return HTML.Raw('
')}))},"page_record_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_record_view.onRendered((function(){var e,t,r;return r=this,e=Session.get("object_name"),t=Session.get("record_id"),this.containerList=[],this.pageName=null,this.autorun((function(){var o,a,n,i,s,c,l,u,d,p;if(d=!0,(l=r.data.regions()).objectName!==(null!=(i=this.lastRegions)?i.objectName:void 0)&&(d=!1),this.lastRegions=l,d&&r.pageName)try{if(SteedosUI.refs[r.pageName])return(p={objectName:e}).recordId=Tracker.nonreactive((function(){return Session.get("record_id")})),n=(null!=(s=SteedosUI.refs[r.pageName])&&null!=(c=s.__$schema)?c.data:void 0)||{},SteedosUI.refs[r.pageName].updateProps({data:window._.defaultsDeep(p,n)})}catch(f){a=f,console.error(r.pageName+": "+a)}if(!d&&r.pageName&&SteedosUI.refs[r.pageName])try{SteedosUI.refs[r.pageName].unmount()}catch(f){a=f,console.error(r.pageName+": "+a)}if(r.data.regions&&(l=Tracker.nonreactive(r.data.regions),this.lastRegions=l,l&&l.page&&l.page.schema&&(u=l.page.schema,_.isString(u)&&(u=JSON.parse(u)),r.pageName=u.name)),e=Tracker.nonreactive((function(){return Session.get("object_name")})),t=Tracker.nonreactive((function(){return Session.get("record_id")})),o=Steedos.Page.Record.render(r,e,t))return r.containerList.push(o)}))})),Template.page_record_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_list_view.js":function e(){Template.__checkName("page_list_view"),Template.page_list_view=new Template("Template.page_list_view",(function(){var e=this;return HTML.Raw('
')}))},"page_list_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_list_view.onRendered((function(){var e,t;return t=this,e=Session.get("object_name"),this.containerList=[],this.pageName=null,this.autorun((function(){var r,o,a,n;if(t.pageName)try{SteedosUI.refs[t.pageName].unmount()}catch(i){o=i,console.error(t.pageName+": "+o)}if(t.data.regions&&(a=t.data.regions())&&a.page&&a.page.schema&&(n=a.page.schema,_.isString(n)&&(n=JSON.parse(n)),t.pageName=n.name),r=Steedos.Page.Listview.render(t,e))return t.containerList.push(r)}))})),Template.page_list_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_related_list_view.js":function e(){Template.__checkName("page_related_list_view"),Template.page_related_list_view=new Template("Template.page_related_list_view",(function(){var e=this;return HTML.Raw('')}))},"page_related_list_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_related_list_view.onRendered((function(){var e,t,r;return r=this,e=Session.get("object_name"),t=Session.get("record_id"),this.containerList=[],this.pageName=null,this.autorun((function(){var o,a,n,i;if(r.pageName)try{SteedosUI.refs[r.pageName].unmount()}catch(s){a=s,console.error(r.pageName+": "+a)}if(r.data.regions&&(n=r.data.regions())&&n.page&&n.page.schema&&(i=n.page.schema,_.isString(i)&&(i=JSON.parse(i)),r.pageName=i.name),o=Steedos.Page.RelatedListview.render(r,e,t))return r.containerList.push(o)}))})),Template.page_related_list_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.app_home.js":function e(){Template.__checkName("creator_app_home"),Template.creator_app_home=new Template("Template.creator_app_home",(function(){var e=this;return""}))},"app_home.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r;r=function(e){var t,r,o,a,n;return(null!=(t=Creator.getApp(e))?t.isExternalUrl:void 0)?/^http(s?):\/\//.test(t.path)?t.blank?window.open(t.path):window.location.href=t.path:FlowRouter.go(t.path):(a=Creator.getAppMenus(e),(r=_.first(a))?"url"===(o=Object.assign({},r,{target:!1})).type&&o.is_use_iframe?FlowRouter.go(o.path):(n=Creator.getAppMenuUrl(o),FlowRouter.go(n)):FlowRouter.go("/app/"+e))},Template.creator_app_home.onRendered((function(){return this.autorun((function(){var e,t,o;if(o=Creator.bootstrapLoaded.get(),_.has(FlowRouter.current().params,"app_id")){if(e=Session.get("app_id"),o&&e)return r(e)}else if(t=Steedos.getFirstApp(),o&&t)return r(t.code||t.id)}))}))},"template.app_iframe.js":function e(){Template.__checkName("creator_app_iframe"),Template.creator_app_iframe=new Template("Template.creator_app_iframe",(function(){var e=this;return Blaze.If((function(){return Spacebars.call(e.lookup("subsReady"))}),(function(){return["\n\t\t",HTML.IFRAME({id:"app_iframe",src:function(){return Spacebars.mustache(e.lookup("url"))},style:"width: 100%; height: 100%;"}),"\n\t"]}))}))},"app_iframe.coffee":function module(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var share=__coffeescriptShare;Template.creator_app_iframe.helpers({subsReady:function(){return Steedos.subsBootstrap.ready()},url:function(){var e,t;return t=Session.get("app_id"),(e=Creator.getApp(t))&&!e.on_click&&e.url?Creator.getUrlWithToken(e.url,e):""}}),Template.creator_app_iframe.events,Template.creator_app_iframe.onCreated((function(){})),Template.creator_app_iframe.onRendered((function(){var app,app_id,e,evalFunString,iframe;if(Steedos.forbidNodeContextmenu(window,"#app_iframe"),app_id=Session.get("app_id"),app=Creator.getApp(app_id),iframe=$("#app_iframe"),app&&app.on_click){evalFunString="(function(){"+app.on_click+"})()";try{return eval(evalFunString)}catch(error){return e=error,console.error("catch some error when eval the on_click script for app link:"),console.error(e.message+"\r\n"+e.stack)}}})),Template.creator_app_iframe.onDestroyed((function(){}))},"template.page_iframe.js":function e(){Template.__checkName("page_iframe"),Template.page_iframe=new Template("Template.page_iframe",(function(){var e=this;return HTML.IFRAME({name:"pageIframe",src:function(){return Spacebars.mustache(e.lookup("url"))},style:function(){return Spacebars.mustache(e.lookup("style"))},class:function(){return Spacebars.mustache(e.lookup("className"))}})}))},"page_iframe.js":function e(){var t=function(e){var t=e.data;"nav.click"===t.type&&FlowRouter.current().params.tab_id==t.data.id&&$("[name='pageIframe']").attr("src",$("[name='pageIframe']").attr("src"))};Template.page_iframe.helpers({url:function(){if(Template.instance().data.regions)return(regions=Template.instance().data.regions()).queryParams.url},className:function(){if(Template.instance().data.regions)return(regions=Template.instance().data.regions()).queryParams.className||""},style:function(){return Template.instance().data.regions&&(regions=Template.instance().data.regions()).queryParams.style||"width: 100%; height: 100%;"}}),Template.page_iframe.onCreated((function(){window.addEventListener("message",t)})),Template.page_iframe.onDestroyed((function(){window.removeEventListener("message",t)})),Template.page_iframe.onRendered((function(){window.Steedos.setDocumentTitle({pageName:null,tabName:null})}))},"template.initiate_approval.js":function e(){Template.__checkName("initiate_approval"),Template.initiate_approval=new Template("Template.initiate_approval",(function(){var e=this;return HTML.DIV({class:"modal fade creator-modal",id:"initiate_approval"},"\n\t\t",HTML.DIV({class:"modal-dialog slds-modal slds-fade-in-open"},"\n\t\t\t",HTML.DIV({class:"slds-modal__container"},"\n\t\t\t\t",HTML.HEADER({class:"slds-modal__header"},"\n\t\t\t\t\t",HTML.DIV({"data-dismiss":"modal"},"\n\t\t\t\t\t\t",Blaze._TemplateWith((function(){return{className:Spacebars.call("slds-modal__close slds-button__icon"),iconSize:Spacebars.call("large"),inverse:Spacebars.call(!0),iconCategory:Spacebars.call("utility"),iconName:Spacebars.call("close"),title:Spacebars.call(Spacebars.dataMustache(e.lookup("_"),"close")),variant:Spacebars.call("icon")}}),(function(){return Spacebars.include(e.lookupTemplate("steedos_button"))})),"\n\t\t\t\t\t"),"\n\t\t\t\t\t",HTML.Raw('

\n\t\t\t\t\t\t选择流程发起审批\n\t\t\t\t\t

'),"\n\t\t\t\t"),"\n\n\t\t\t\t",HTML.DIV({class:"slds-modal__content slds-p-around_medium",style:"font-size: 17px;"},"\n\t\t\t\t\t",Blaze.Each((function(){return Spacebars.call(e.lookup("flows"))}),(function(){return["\n\t\t\t\t\t",HTML.DIV({class:"weui_cells_weui_cells_access"},"\n\t\t\t\t\t\t",HTML.A({class:"weui_cell","data-flow":function(){return Spacebars.mustache(e.lookup("flow_id"))}},"\n\t\t\t\t\t\t\t",HTML.I({class:"ion ion-ios-compose-outline"}),HTML.CharRef({html:" ",str:" "}),HTML.CharRef({html:" ",str:" "}),Blaze.View("lookup:flow_name",(function(){return Spacebars.mustache(e.lookup("flow_name"))})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t\t"]})),"\n\n\t\t\t\t"),"\n\n\t\t\t"),"\n\t\t"),"\n\t")}))},"initiate_approval.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.initiate_approval.helpers({flows:function(){return _.where(Creator.object_workflows,{object_name:this.object_name,can_add:!0})}}),Template.initiate_approval.events({"click .weui_cell":function(e,t){var r,o,a,n,i,s,c;o=e.currentTarget.dataset.flow,a=t.data.object_name,n=t.data.record_id,i=[{o:a,ids:[n]}],(s={}).methodOverride="POST",s["X-User-Id"]=Meteor.userId(),s["X-Auth-Token"]=Accounts._storedLoginToken(),c=Steedos.absoluteUrl()+"api/object/workflow/drafts?"+$.param(s),r={Instances:[{flow:o,applicant:Meteor.userId(),space:Session.get("spaceId"),record_ids:i}]},r=JSON.stringify(r),$(document.body).addClass("loading"),$.ajax({url:c,type:"POST",async:!0,data:r,dataType:"json",processData:!1,contentType:"application/json",success:function(e,r){var o;$(document.body).removeClass("loading"),e.errors?e.errors.forEach((function(e){toastr.error(e.errorMessage)})):(o=e.inserts[0],Steedos.openWindow(Steedos.absoluteUrl("/app/"+FlowRouter.current().params.app_id+"/instances/view/"+o._id+"?display="+FlowRouter.current().queryParams.display+"&side_object=instances&side_listview_id=draft")),Modal.hide(t),SteedosUI.reloadRecord(a,n),FlowRouter.reload())},error:function(e,t,r){$(document.body).removeClass("loading"),toastr.error(t)}})}})},"template.amis_action.js":function e(){Template.__checkName("amis_action"),Template.amis_action=new Template("Template.amis_action",(function(){var e=this;return HTML.LI({class:function(){return["steedos-amis-button steedos-button-",Spacebars.mustache(e.lookup("objectName")),"-",Spacebars.mustache(e.lookup("name"))," ",Spacebars.mustache(e.lookup("buttonClassName"))]}})}))},"amis_action.js":function e(){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;(e=e||"")&&"#"===e[0]?e=t.pathname+t.search+e:e&&"?"===e[0]&&(e=t.pathname+e);var r=e.indexOf("?"),o=e.indexOf("#"),a=~r?e.substring(0,r):~o?e.substring(0,o):e,n=~r?e.substring(r,~o?o:void 0):"",i=~o?e.substring(o):t.hash;if(a){if("/"!=a[0]&&!/^https?\:\/\//.test(a)){var s=t.pathname,c=s.split("/"),l;for(c.pop();l=/^\.\.?\//.exec(a);)"../"===l[0]&&c.pop(),a=a.substring(l[0].length);a=c.concat(a).join("/")}}else a=t.pathname;return a+n+i},r=function(){return{theme:"antd",getModalContainer:function(e){var t=document.querySelector("#amisModalContainer");return t||((t=document.createElement("div")).className="amis-scope",t.style.height="0px",t.id="amisModalContainer",document.body.appendChild(t)),t},notify:function(e,t){var r,o;(null===(r=t.props)||void 0===r?void 0:r.schema.tpl)?SteedosUI.message[e](null===(o=t.props)||void 0===o?void 0:o.schema.tpl):"string"==typeof t?SteedosUI.message[e](t):console.warn("notify",e,t)},confirm:function(e){return new Promise((function(t,r){return SteedosUI.Modal.confirm({title:e,onOk:function(){t(!0)},okText:"确认",cancelText:"取消"})}))},jumpTo:function(e,r){if("goBack"===e)return window.history.back();e=t(e),r&&"url"===r.actionType?!1===r.blank?FlowRouter.go(e):window.open(e):r&&e&&r.target?window.open(e,r.target):/^https?:\/\//.test(e)?window.location.replace(e):FlowRouter.go(e)}}};Template.amis_action.helpers({objectName:function(){var e=Template.instance().data;return e.button.object||e.button.object_name},name:function(){var e;return Template.instance().data.button.name},buttonClassName:function(){var e;return Template.instance().data.buttonClassName}}),Template.amis_action.onRendered((function(){var e=Template.instance().data,t=e.button,o=e.buttonClassName,a=e.inMore,n=e.data,i=e.env,s=".steedos-button-"+(t.object||e.button.object_name)+"-"+t.name,c=function(){var e=Creator.USER_CONTEXT?Creator.USER_CONTEXT.user.language:null;return e?e="cn"===(e="zh"===(e="en"===(e=e.replace("_","-"))?"en-US":e)?"zh-CN":e)?"zh-CN":e:"zh-CN"};Promise.all([waitForThing(window,"amis")]).then((function(){var e=amisRequire("amis/embed"),o=t.amis_schema?_.isString(t.amis_schema)?JSON.parse(t.amis_schema):t.amis_schema:{type:"service",bodyClassName:"p-0",body:[{type:"button",label:t.label}],regions:["body"]},a=__meteor_runtime_config__.ROOT_URL,l=lodash.defaultsDeep({},{data:n},{data:{app_id:n.appId,object_name:n.objectName,record_id:n.recordId,formFactor:Steedos.isMobile()?"SMALL":"LARGE",context:{rootUrl:Meteor.isCordova?a.endsWith("/")?a.substr(0,a.length-1):a:"",tenantId:Creator.USER_CONTEXT.spaceId,userId:Creator.USER_CONTEXT.userId,authToken:Creator.USER_CONTEXT.user.authToken,user:Creator.USER_CONTEXT.user},global:{userId:Creator.USER_CONTEXT.userId,spaceId:Creator.USER_CONTEXT.spaceId,user:Creator.USER_CONTEXT.user,now:new Date},scopeId:o.name||o.id,$scopeId:o.name||o.id}});return o=lodash.defaultsDeep(l,o),e.embed(s,o,{locale:c()},Object.assign(r(),i))}))}))}},layout:{"template.layout.js":function e(){Template.__checkName("creatorLayout"),Template.creatorLayout=new Template("Template.creatorLayout",(function(){var e=this;return Blaze.If((function(){return Spacebars.call(e.lookup("isloading"))}),(function(){return"\n\t"}),(function(){return["\n\t\t",HTML.DIV({class:"steedos skin-blue-light creator h-full flex flex-col relative overflow-hidden"},"\n\t\t\t\n\n\t\t\t",HTML.HEADER({id:"header",class:"steedos-global-header-root flex-none"}),"\n\n\t\t\t\t\n\t\t\t",HTML.DIV({id:"main",class:function(){return["creator-content-wrapper ",Blaze.If((function(){return Spacebars.call(e.lookup("split"))}),(function(){return"split"}))]}},"\n\n\n\n\t\t\t\t",HTML.Comment(' {{#if split}}\n\t\t\t\t\t
\n\t\t\t\t\t\t{{> Template.dynamic template="creatorSidebar"}}\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{{> Template.dynamic template=main}}\n\t\t\t\t\t
\n\t\t\t\t{{else}} '),"\n\t\t\t\t\t",Blaze._TemplateWith((function(){return{template:Spacebars.call(e.lookup("main"))}}),(function(){return Spacebars.include((function(){return Spacebars.call(Template.__dynamic)}))})),"\n\t\t\t\t",HTML.Comment(" {{/if}} "),"\n\t\t\t"),"\n\t\t\t",HTML.FOOTER({id:"footer",class:"steedos-global-footer-root flex-none"}),"\n\t\t"),"\n",HTML.Comment(' \n\t\t
\n\t\t\t{{> status}}\n\t\t
'),"\n\t\t"]}))}))},"layout.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;Template.creatorLayout.helpers(Creator.helpers),Template.creatorLayout.helpers({isloading:function(){return Creator.isloading()},collection:function(){return Session.get("action_collection")},fields:function(){return Session.get("action_fields")},collectionName:function(){return Session.get("action_collection_name")},doc:function(){return Session.get("action_record_id")},saveAndInsert:function(){var e,t,r,o;return!!(e=Session.get("action_save_and_insert"))&&(r=(t=Session.get("action_collection")).replace(/Creator.Collections./,""),null!=(o=Creator.getPermissions(r))?o.allowCreate:void 0)},split:function(){var e,t,r;return!(!(e=Creator.getApp())||"admin"!==e._id)&&(r=/\/app\/\w+\/search\//,t=Session.get("router-path"),!r.test(t))},object_name:function(){return Session.get("object_name")},recordId:function(){return Session.get("recordId")},title:function(){return"编辑"},triggerLabel:function(){return"编辑"},onAddFinish:function(){return function(e){var t,r,o,a,n;return a=e[0],n="/app/"+(t=Session.get("app_id"))+"/"+(r=Session.get("object_name"))+"/view/"+(o=a._id),FlowRouter.go(n),!0}},onEditFinish:function(){return function(){return setTimeout((function(){return FlowRouter.reload()}),1),!0}}}),Template.creatorLayout.onRendered((function(){var e;return e=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),this.autorun((function(){return Steedos.Page.Header.render(Session.get("app_id"),e)})),this.autorun((function(){return Steedos.Page.Footer.render(Session.get("app_id"),e)})),this.autorun((function(){var e,t;if(t=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),window.SteedosUI&&(e=SteedosUI.refs.globalHeader))return Meteor.setTimeout((function(){var t;try{return e.updateProps({location:FlowRouter.current()},(function(){return console.log("amisScope.updateProps callback.......")}))}catch(r){t=r}}),100)})),this.autorun((function(){var e,t;if(t=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),window.SteedosUI&&(e=SteedosUI.refs.globalFooter))return Meteor.setTimeout((function(){var t;try{return e.updateProps({location:FlowRouter.current()},(function(){return console.log("amisScope.updateProps callback.......")}))}catch(r){t=r}}),100)}))})),r=function(){var e;return"calendar"===(null!=(e=Creator.getListView(Session.get("object_name",Session.get("list_view_id"))))?e.type:void 0)},AutoForm.hooks({creatorAddForm:{onSuccess:function(e,t){var o,a,n,i;if($("#afModal").modal("hide"),"/app/:app_id/:object_name/calendar/"!==FlowRouter._current.route.path&&!r())return"post"===t.type?(i="/app/"+(o=Session.get("app_id"))+"/"+(a=t.object_name)+"/view/"+(n=t._id),FlowRouter.go(i)):void 0}}},!1),AutoForm.hooks({creatorEditForm:{onSuccess:function(e,t){var o,a,n,i,s,c;if($("#afModal").modal("hide"),!r())return"post"===t.type&&(c="/app/"+(o=Session.get("app_id"))+"/"+(a=t.object_name)+"/view/"+(s=t._id),FlowRouter.go(c)),this.docId&&t.object_name?(i=Creator.getObjectUrl(t.object_name,this.docId),n=Creator.getObjectRecordName(this.updateDoc.$set,t.object_name),Creator.updateTempNavLabel(t.object_name,i,n)):void 0}}},!1),AutoForm.hooks({creatorCellEditForm:{onSuccess:function(e,t){var r,o;if($("#afModal").modal("hide"),this.docId&&t.object_name)return o=Creator.getObjectUrl(t.object_name,this.docId),r=Creator.getObjectRecordName(this.updateDoc.$set,t.object_name),Creator.updateTempNavLabel(t.object_name,o,r)}}},!1),o=function(e,t){return FlowRouter.current().route.path.endsWith("/:record_id")?FlowRouter.reload():window.refreshGrid()},AutoForm.hooks({creatorAddRelatedForm:{onSuccess:o}},!1)},"template.loading.js":function e(){Template.__checkName("creatorLoading"),Template.creatorLoading=new Template("Template.creatorLoading",(function(){var e=this;return HTML.Raw('
\n
\n Loading\n
\n
\n
\n
')}))},"template.empty_layout.js":function e(){Template.__checkName("empty_layout"),Template.empty_layout=new Template("Template.empty_layout",(function(){var e=this;return Blaze._TemplateWith((function(){return{template:Spacebars.call(e.lookup("main"))}}),(function(){return Spacebars.include((function(){return Spacebars.call(Template.__dynamic)}))}))}))}},mobile:{"template.admin.js":function e(){Template.__checkName("adminMenu"),Template.adminMenu=new Template("Template.adminMenu",(function(){var e=this;return HTML.DIV({class:"admin-menu mobile-template-container",id:"admin_menu"},"\n\n ",HTML.DIV({class:"admin-menu-content mobile-template-content"},"\n\t\t\t",HTML.DIV({class:"weui-panel weui-panel_access user-info"},"\n\t\t\t\t",HTML.A({class:"weui-media-box weui-media-box_appmsg"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box__hd",style:function(){return["background: url(",Spacebars.mustache(e.lookup("avatarURL")),")"]}},"\n\t\t\t\t\t\t",HTML.Raw('\x3c!-- --\x3e'),"\n\t\t\t\t\t"),"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box__bd"},"\n\t\t\t\t\t\t",HTML.H4({class:"weui-media-box__title"},Blaze.View("lookup:name",(function(){return Spacebars.mustache(e.lookup("name"))}))),"\n\t\t\t\t\t\t",HTML.P({class:"weui-media-box__desc"},"\n\t\t\t\t\t\t\t",Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Company")})),":",Blaze.View("lookup:spaceName",(function(){return Spacebars.mustache(e.lookup("spaceName"))})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n\n\t\t\t",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access btn-switch-space"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Switch Company")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",HTML.SPAN({class:"space-name"},Blaze.View("lookup:spaceName",(function(){return Spacebars.mustache(e.lookup("spaceName"))}))),"\n\t\t\t\t\t\t\t\t",HTML.Raw(''),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\n\n\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access btn-change-password"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Change Password")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",HTML.Raw(''),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t"),"\n\t\t\t"),"\n\n ",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access log-out steedos-logout"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Logout")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n "),"\n ")}))},"admin.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.adminMenu.helpers({avatarURL:function(e,t,r,o){var a,n;return n=Meteor.userId(),(e=null!=(a=Creator.getCollection("users").findOne({_id:n}))?a.avatar:void 0)?Steedos.absoluteUrl("avatar/"+Meteor.userId()+"?avatar="+e):Creator.getRelativeUrl("/images/default-avatar.png")},name:function(){var e;return null!=(e=Creator.getCollection("users").findOne())?e.name:void 0},logoutUrL:function(){return Creator.getRelativeUrl("/accounts/a/#/logout")},spaceName:function(){var e;return Session.get("spaceId")&&(e=db.spaces.findOne(Session.get("spaceId")))?e.name:t("none_space_selected_title")}}),Template.adminMenu.events({"click .steedos-logout":function(){return Steedos.logout()},"click .admin-menu-back":function(e,t){var r;return r=urlQuery[urlQuery.length-2],urlQuery.pop(),t.$("#admin_menu").animateCss("fadeOutRight",(function(){return Blaze.remove(t.view),r?FlowRouter.go(r):FlowRouter.go("/app")}))},"click .btn-switch-space":function(e,t){return FlowRouter.go("/user_settings/switchspace")},"click .btn-change-password":function(e,t){return Modal.show("reset_password_modal")},"click .btn-change-avatar":function(e,t){return t.$("#mobile-avator-upload").click()},"change #mobile-avator-upload":function(e,r){var o;if(o=e.target.files[0])return $("body").addClass("loading"),db.avatars.insert(o,(function(e,r){return e?(console.error(e),toastr.error(t(e.reason)),$(document.body).removeClass("loading")):setTimeout((function(){return Meteor.call("updateUserAvatar",r._id,(function(e,r){return(null!=r?r.error:void 0)?($(document.body).removeClass("loading"),toastr.error(t(r.message))):$(document.body).removeClass("loading")}))}),3e3)}))}})},"template.switch_space.js":function e(){Template.__checkName("switchSpace"),Template.switchSpace=new Template("Template.switchSpace",(function(){var e=this;return HTML.DIV({class:"switch-space mobile-template-container",id:"switch_space"},"\n\t\t\n\t\t",HTML.DIV({class:"switch-space-content mobile-template-content"},"\n\t\t\t",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",Blaze.Each((function(){return Spacebars.call(e.lookup("spaces"))}),(function(){return["\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access switchSpace"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:name",(function(){return Spacebars.mustache(e.lookup("name"))}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",Blaze.If((function(){return Spacebars.dataMustache(e.lookup("current_space"),e.lookup("_id"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",HTML.SPAN({class:"weui-icon-success-no-circle"}),"\n\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n\t\t"),"\n\t")}))},"switch_space.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.switchSpace.helpers({spaces:function(){return db.spaces.find()},current_space:function(e){return e===Session.get("spaceId")}}),Template.switchSpace.events({"click .switchSpace":function(e,t){return Steedos.setSpaceId(this._id),FlowRouter.go("/app")},"click .switch-space-back":function(e,t){var r;return r=urlQuery[urlQuery.length-2],urlQuery.pop(),t.$("#switch_space").animateCss("fadeOutRight",(function(){return Blaze.remove(t.view),r?FlowRouter.go(r):FlowRouter.go("/app")}))}})}},"core.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},o;Creator.Pages={},o=["owner","company_id","company_ids","locked"],Steedos.addPage=function(e,t){if(e)return Creator.Pages[e]=t},Creator.getLayout=function(e){return e||(e=Session.get("app_id")),"steedos"===e?"steedosLayout":"creatorLayout"},Creator.createObject=function(e,t){var r,o;return o=Creator.getObject(e),r="Creator.Collections."+e,Session.set("action_collection",r),Session.set("action_save_and_insert",!0),Session.set("action_collection_name",o.label),Session.set("action_object_name",e),Session.set("action_fields",void 0),Session.set("cmDoc",t),Meteor.defer((function(){return $(".creator-add").click()}))},Meteor.isClient&&(Creator.TabularSelectedIds={},Meteor.autorun((function(){var e,t;if(e=Session.get("list_view_id"),t=Session.get("object_name"))return Creator.TabularSelectedIds[t]=[]})),Creator.remainCheckboxState=function(e){var t,r,o,a,n,i,s;if((t=e.find(".select-all")).length&&(a=(o=null!=(n=t[0])?n.dataset:void 0).objectName,i=Creator.TabularSelectedIds[a]))return(r=e.find(".select-one")).each((function(e,t){var r;return r=i.indexOf(t.dataset.id)>-1,$(t).prop("checked",r)})),(s=i.length)>0&&r.length!==s?t.prop("indeterminate",!0):(t.prop("indeterminate",!1),0===s?t.prop("checked",!1):s===r.length?t.prop("checked",!0):void 0)},Creator.isListViewFilterEditable=function(e){return!e.shared||e.shared&&e.owner===Steedos.userId()},Creator.getODataFilter=function(e,t,r){var o,a,n,i,s,c,l,u,d,p,f,m,g;if(g=Meteor.userId(),m=Session.get("spaceId"),a=Creator.Collections.object_listviews.findOne(e))(l=Creator.isListViewFilterEditable(a))||((o={}).filter_scope=a.filter_scope,o.filters=a.filters);else if(o={},m&&g){if(!(u=Creator.getListView(t,e)))return["_id","=",-1];o.filter_scope=u.filter_scope,o.filters=u.filters}if(Creator.isCloudAdminSpace(m)&&_.include(["users","space_users","spaces"],t)&&delete o.filters,o&&(r?(o.filter_scope&&(r.filter_scope=o.filter_scope),_.isFunction(r.filters)||(null!=(d=r.filters)?d.length:void 0)?(_.isFunction(o.filters)||(null!=(p=o.filters)?p.length:void 0))&&(r.filters=[[r.filters,"and",o.filters]]):r.filters=o.filters):r=o),r||(r={}),n=r.filter_logic,i=r.filter_scope,s=r.filters,f=[],_.isFunction(s)&&(s=s()),a?n?(c=Creator.formatLogicFiltersToDev(s,n),f.length?f.push("and",c):f.push(c)):s&&s.length>0&&(f.length>0&&f.push("and"),(s=Creator.formatFiltersToDev(s,t))&&s.length>0&&(s=[s]),_.each(s,(function(e){return f.push(e)}))):m&&g&&("users"!==t||Creator.isCloudAdminSpace(m)||f.push(["_id","=",g]),s&&(s=Creator.formatFiltersToDev(s,t))&&s.length>0&&(s=[s],f.length>0&&f.push("and"),_.each(s,(function(e){if("spaces"!==t||e.length>0&&"_id"!==e[0])return f.push(e)})))),"mine"===i&&(f.length>0&&f.push("and"),f.push(["owner","=",g])),0!==f.length)return f},Creator.getODataRelatedFilter=function(e,t,r,o,a){var n,i,s,c,l,u,d,p,f,m,g,v,h,b,w,S,C;if(r&&(S=Steedos.spaceId(),C=Meteor.userId(),h=a?[a]:Creator.getRelatedList(e,r),v="",u="",w=[],n=function(e){return w.length>0&&w.push("and"),w.push(e)},_.each(h,(function(e){if(e.object_name===t)return e.filtersFunction?u=e.filtersFunction:v=e.related_field_name})),v||u)){if(v=v.replace(/\./g,"/"),o&&(i=Creator.getListView(t,o))){if(s=i.filter_logic,c=i.filter_scope,l=i.filters,u)return l=u(Creator.odata.get(e,r));s?(d=Creator.formatLogicFiltersToDev(l,s),n(d)):l&&l.length>0&&(l=_.map(l,(function(e){return _.isObject(e)&&!_.isArray(e)?Meteor.isClient&&_.isString(null!=e?e._value:void 0)?[e.field,e.operation,Creator.eval("("+e._value+")")()]:[e.field,e.operation,e.value]:e})),(l=Creator.formatFiltersToDev(l,t))&&l.length>0&&(l=[l]),_.each(l,(function(e){return n(e)})))}if("cfs.files.filerecord"===t&&n(["metadata/space","=",S]),m=Creator.getObject(t),p=t===e&&(null!=m?m.enable_tree:void 0),"cms_files"===t?(n(["parent/o","=",e]),n(["parent/ids","=",r])):"objects"===e?n([v,"=",r]):p||((b=null!=m?m.fields:void 0)&&(g=b[v]),g&&g.reference_to_field&&(f=Creator.odata.get(e,r,g.reference_to_field),"permission_fields"===t&&"object_fields"===e&&n(["object_name","=",f.object]),f&&f[g.reference_to_field]&&(r=f[g.reference_to_field])),!g||"master_detail"!==g.type&&"lookup"!==g.type?g&&"grid"===g.type?(n([v+".o","=",e]),n([v+".ids","=",r])):n([v,"=",r]):_.isFunction(g.reference_to)?_.isArray(g.reference_to())?n([v+".ids","=",r]):n([v,"=",r]):_.isArray(g.reference_to)?n([v+".ids","=",r]):n([v,"=",r])),"mine"===c&&n(["owner","=",C]),0!==w.length)return w}},Creator.getJsReportUrlQuery=function(){var e,t,r;return r="?space_id="+Steedos.getSpaceId(),(t=Tracker.nonreactive((function(){return Session.get("filter_items")})))&&(r+="&user_filters="+(e=encodeURI(JSON.stringify(t)))),r},Creator.getJsReportViewUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/web/viewer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.getJsReportExcelUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/api/report_db/"+e+"/excel"),t+=Creator.getJsReportUrlQuery()},Creator.getJsReportPdfUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/api/report_db/"+e+"/pdf"),t+=Creator.getJsReportUrlQuery()},Creator.getStimulsoftReportViewUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/stimulsoft/web/viewer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.getStimulsoftReportDesignerUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/stimulsoft/web/designer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.objectOdataSelectFields=function(e){var t,r;return t=e.fields,r=(r=_.keys(t)).filter((function(e){return e.indexOf(".")<0})),e&&["default","meteor"].indexOf(e.database_name||"default")>-1&&(r=_.union(r.concat(o))),r.join(",")},Creator.objectOdataExpandFields=function(e,t){var r,o;return r=[],o=e.fields,t||(t=_.keys(o)),_.each(t,(function(e){var t,a,n;if(("master_detail"===(null!=(a=o[e])?a.type:void 0)||"lookup"===(null!=(n=o[e])?n.type:void 0))&&(o[e].reference_to?(t=o[e].reference_to,_.isFunction(t)&&(t=t())):_.isFunction(o[e].optionsFunction)&&(t=o[e].optionsFunction({}).getProperty("value")),_.isArray(t)||(t=[t]),t=_.map(t,(function(e){var t,r;return t=(null!=(r=Creator.getObject(e))?r.NAME_FIELD_KEY:void 0)||"name"})),t=_.compact(t),(t=(t=_.uniq(t)).join(","))&&e.indexOf("$")<0))return e.indexOf(".")<0?r.push(e):r.push(e.replace(".","/"))})),r.join(",")},Creator.relatedObjectFileUploadHandler=function(e,r){var o,a,n,i,s,c,l,u,d,p;for(u=null!=(o=e.currentTarget.dataset)?o.parent:void 0,s=e.currentTarget.files,c=0,d=Session.get("record_id"),l=Session.get("object_name"),p=Session.get("spaceId");c0&&(t=!0),!t})),t},Creator.pushCurrentPathToUrlQuery=function(){var e;if((e=FlowRouter.current().path)!==urlQuery[urlQuery.length-1])return urlQuery.push(e)},Creator.getStandardQuery=function(e,t){var r,o,a,n,i,s;if(o=Creator.getObject(e).fields,t&&t.query&&_.size(t.query)&&t.object_name===e)return a=t.object_name,i=t.query,s=[],t.is_mini?_.each(i,(function(e,t){var r,n,i,c;if(o[t])if(r=Creator.getFieldDataType(o,t),["currency","number"].includes(r)){if(!_.isString(e))return s.push([t,"=",e]);if(c=e.trim().split(" "),n=[],c.forEach((function(e){var r,o;try{if(o=Number(e),_.isNumber(o)&&!_.isNaN(o))return n.push([t,"=",o])}catch(a){return r=a,console.error(r)}})),n.length>0)return s.push(Creator.formatFiltersToDev(n,a,{is_logic_or:!1}))}else if(["text","textarea","html","select","autonumber","url","email"].includes(r))if(_.isString(e)){if(c=e.trim().split(" "),i=[],c.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),"select"===r&&o[t].multiple?i.push([t,"=",e]):i.push([t,"contains",e])})),i.length>0)return s.push(Creator.formatFiltersToDev(i,a,{is_logic_or:!1}))}else if(_.isArray(e))return s.push([t,"=",e])})):_.each(i,(function(e,t){var r,n,i,c,l,u;if(o[t]){if(n=Creator.getFieldDataType(o,t),["date","datetime","time","currency","number"].includes(n))return s.push([t,">=",e]);if(["text","textarea","html"].includes(n)){if(_.isString(e)){if(u=e.trim().split(" "),l=[],u.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),l.push([t,"contains",e])})),l.length>0)return s.push(Creator.formatFiltersToDev(l,a,{is_logic_or:!1}))}else if(_.isArray(e))return s.push([t,"=",e])}else{if(["boolean"].includes(n))return s.push([t,"=",JSON.parse(e)]);if(!["lookup","master_detail"].includes(n))return s.push([t,"=",e]);if(i=null!=(r=o[t])?r.reference_to:void 0,_.isFunction(i)&&(i=i()),!_.isArray(i))return s.push([t,"=",e]);if((null!=e?e.ids:void 0)&&s.push({field:t+".ids",operation:"=",value:null!=e?e.ids:void 0}),null!=e?e.o:void 0)return c=Creator.getObject(null!=e?e.o:void 0),s.push({field:t+".o",operation:"=",value:c._collection_name})}}else if(t=t.replace(/(_endLine)$/,""),n=Creator.getFieldDataType(o,t),o[t]&&["date","datetime","time","currency","number"].includes(n))return s.push([t,"<=",e])})),n={is_logic_or:r=!!t.is_mini},Creator.formatFiltersToDev(s,a,n);delete Session.keys.standard_query},Creator.getSafeObjectUrl=function(e,t,r){var o;return _.isString(e)?(o="users"===e?Creator.getObject("space_users"):Creator.getObject(e)).permissions.get().allowRead?Creator.getObjectUrl(e,t,r):void 0:""},Creator.formatFileSize=function(e){var t,r;return r="KB",(t=e/1024)>1024&&(t/=1024,r="MB"),t>1024&&(t/=1024,r="GB"),t.toFixed(2)+r},Creator.getTableCellData=function(e){var r,o,a,n,i,s,c,l,u,d,p,f,m,g,v,h,b,w,S,C,y,j,T,R;if(d=[],R=e.val,g=e.object_name,y=(j=Creator.getObject(g)).NAME_FIELD_KEY,"organizations"===g&&(y="name"),o=e.field){if(a=o.type,"formula"===o.type)a=o.data_type;else if("select"===o.type&&o.data_type&&"text"!==o.data_type)a=o.data_type;else if("summary"===o.type)if("count"===o.summary_type)a="number";else{if(!(C=Creator.getObject(o.summary_object)))throw new Meteor.Error(500,"The summary_object '"+o.summary_object+"' is not found for the field '"+o.name+"'");if(!(S=C.fields[o.summary_field]))throw new Meteor.Error(500,"The summary_field '"+o.summary_field+"' is not found for the field '"+o.name+"'");"formula"!==(a=S.type)&&"summary"!==a||(a=S.data_type),_.isNumber(o.scale)||(r=function(e){var t,o;return _.isNumber(e.scale)?e.scale:"summary"===e.type&&(o=Creator.getObject(e.summary_object))?(t=o.fields[e.summary_field])?r(t):null:void 0},o.scale=r(S))}return h=null!=(v=e.field)?v.reference_to:void 0,_.isFunction(h)&&(h=h()),"grid"===a?d.push({isTable:!0}):"location"===a?d.push({value:(null!=R?R.address:void 0)||"",id:e._id}):"lookup"!==a&&"master_detail"!==a||_.isEmpty(R)?"image"===a?"string"==typeof R?d.push({value:R,id:e._id,isImage:!0,baseUrl:Creator.getRelativeUrl("/api/files/images")}):d.push({value:R,id:e._id,isImages:!0,baseUrl:Creator.getRelativeUrl("/api/files/images")}):"avatar"===a?"string"==typeof R?d.push({value:R,id:e._id,isImage:!0,baseUrl:Creator.getRelativeUrl("/api/files/avatars")}):d.push({value:R,id:e._id,isImages:!0,baseUrl:Creator.getRelativeUrl("/api/files/avatars")}):"code"===a?(R=R?"...":"",d.push({value:R,id:e._id})):"password"===a?(R=R?"******":"",d.push({value:R,id:e._id})):"url"===a?((null!=(f=R)?f.startsWith("http"):void 0)||(f=Steedos.absoluteUrl(encodeURI(f))),d.push({value:R,href:f,id:e._id,isUrl:!0})):"email"===a?d.push({value:R,href:f,id:e._id,isEmail:!0}):"boolean"===a||"toggle"===a?(R=e.val?t("YES"):t("NO"),d.push({value:R,checked:e.val,id:e._id,isBoolean:!0})):"select"===a?(s=o.allOptions||o.options,u=e.doc||{},c=e.record_val,_.isFunction(o.options)&&(s=o.options(c||u)),_.isFunction(o.optionsFunction)&&(s=o.optionsFunction(c||u)),w=e.val,_.isArray(w)||(w=[w]),m=[],_.each(s,(function(e){if(_.indexOf(w,e.value)>-1)return m.push({label:e.label,value:e.value})})),R=(R=m.map((function(e){return e.label}))).join(","),d.push({value:R,items:m,id:e._id,isSelects:!0})):(R&&["datetime","date","time"].indexOf(a)>=0?"odata"===e.agreement?"datetime"===a?"string"==typeof e.val&&/\d+Z$/.test(e.val)?R=moment(e.val).format("YYYY-MM-DD H:mm"):(T=moment().utcOffset()/60,R=moment(e.val).add(T,"hours").format("YYYY-MM-DD H:mm")):"date"===a&&(R="string"==typeof e.val&&/\d+Z$/.test(e.val)?moment.utc(e.val).format("YYYY-MM-DD"):moment(e.val).format("YYYY-MM-DD")):"datetime"===a?R=moment(e.val).format("YYYY-MM-DD H:mm"):"date"===a?R=moment.utc(e.val).format("YYYY-MM-DD"):"time"===a&&(R=moment.utc(e.val).format("HH:mm")):null===e.val?R="":"lookup"===a?_.isFunction(o.optionsFunction)&&(u=e.doc||{},(l=R)&&(_.isArray(l)||(l=[l]),(b=_.filter(o.optionsFunction(u),(function(e){return l.indexOf(e.value)>-1})))&&(R=b.getProperty("label")))):"filesize"===a?R=Creator.formatFileSize(R):["number","currency","percent"].indexOf(a)>-1&&_.isNumber(R)?(p=0,p=_.isNumber(o.scale)?o.scale:"currency"===a?2:0,"percent"===a&&(R*=100),R=Steedos.numberToString(R,p),"percent"===a&&(R+="%")):"markdown"===a?_.isEmpty(R)||(R=Spacebars.SafeString(marked(R))):"html"===a?_.isEmpty(R)||(R=Spacebars.SafeString(R)):"textarea"===a&&R&&(R=(R=R.replace(/\n/g,"\n
")).replace(/ /g," ")),"record_details"!==e.parent_view&&e.field_name===y&&(f=Creator.getObjectUrl(e.object_name,e._id)),d.push({value:R,href:f,id:e._id,type:a})):_.isFunction(o.optionsFunction)&&"company"!==h?(u=e.doc||{},c=e.record_val,(l=R)&&(l=_.isArray(l)?l.map((function(e){return _.isObject(e)?e._id:e})):_.isObject(l)?[l._id]:[l],i=o.optionsFunction(c||u),(b=_.filter(i,(function(e){return l.indexOf(null!=e?e.value:void 0)>-1})))&&(R&&_.isArray(R)&&_.isArray(b)&&(b=Creator.getOrderlySetByIds(b,R,"value")),R=b.getProperty("label"))),h?"objects"===h?_.each(b,(function(t){var r,o,a;return a=t.label,(null!=(r=Creator.getObject(t.value))?r._id:void 0)?(o=Creator.getSafeObjectUrl(h,r._id),d.push({reference_to:h,rid:a,value:a,id:e._id,href:o})):d.push({value:R,id:e._id})})):(n=e.val,_.isArray(n)||(n=n?[n]:[]),_.each(n,(function(t){var r,o,a;return _.isString(t)?(b=_.filter(i,(function(e){return t===(null!=e?e.value:void 0)})),d.push({value:b.getProperty("label"),id:e._id})):(h=t["reference_to._o"]||h,o=t._id,a=t._NAME_FIELD_VALUE,r=Creator.getSafeObjectUrl(h,o),d.push({reference_to:h,rid:o,value:a,href:r,id:e._id}))}))):d.push({value:R,id:e._id})):(_.isArray(R)||(R=R?[R]:[]),_.each(R,(function(t){var r,o,a;if(t)return h=t["reference_to._o"]||h,o=t._id,a=t._NAME_FIELD_VALUE,_.isString(t)&&(o=t,a=t),r=Creator.getSafeObjectUrl(h,o),d.push({reference_to:h,rid:o,value:a,href:r,id:e._id})}))),d}},Creator.openSafeObjectUrl=function(e,t){var r;return Steedos.isMobile()||(r=Creator.getSafeObjectUrl(e,t,"-"))&&window.open(r,"_blank","width=800, height=600, left=50, top= 50, toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes"),"undefined"!=typeof event&&null!==event&&event.stopPropagation(),"undefined"!=typeof event&&null!==event&&event.preventDefault(),!1},Creator.getAppLabel=function(e){return e||(e=Creator.getApp()),e?e.label?t(e.label):t(e.name):""},Creator.measureWidth=_.memoize((function(e,t,r){var o,a,n,i;return(o=arguments.callee.canvas)||(o=document.createElement("canvas"),(n=document.createDocumentFragment()).appendChild(o),arguments.callee.canvas=o),(a=o.getContext("2d")).font=t,i=a.measureText(e).width,r&&i>r?r:i})),Creator.showPreviewButton=function(e){var t,r,o,a,n;return!!((null!=(n=null!=(t=Meteor.settings)&&null!=(r=t.public)?r.webservices:void 0)&&null!=(o=n.officeOnline)?o.url:void 0)&&Steedos.isOfficeFile(e)||(null!=n&&null!=(a=n.pdfOnline)?a.url:void 0)&&Steedos.isPdfFile(e))},Creator.officeOnlinePreview=function(e,t){var r,o,a,n,i,s,c,l,u,d,p,f,m,_,g,v;return a=null!=(s=Meteor.settings)&&null!=(c=s.public)&&null!=(l=c.webservices)&&null!=(u=l.officeOnline)?u.url:void 0,i=null!=(d=Meteor.settings)&&null!=(p=d.public)&&null!=(f=p.webservices)&&null!=(m=f.pdfOnline)?m.url:void 0,a&&""!==a||i&&""!==i?(v=Meteor.userId(),_=Steedos.spaceId(),r={authToken:o=Accounts._storedLoginToken()},e=e+"?token="+(g=window.btoa(JSON.stringify(r))),Steedos.isPdfFile(t)?(n=e,i&&""!==i&&(n=i+encodeURIComponent(e)),Steedos.openWindow(n)):(n=a+encodeURIComponent(e),Steedos.openWindow(n))):(toastr.error(TAPi18n.__("creator_office_online_web_url_required")),!1)},Creator.isImageAttachment=function(e){var t,r;return!(e.split(".").length<2)&&(t=e.split(".").pop().toLowerCase(),-1!==(r=["png","jpg","jpeg","bmp","gif","webp","psd","svg","tiff"]).indexOf(t))},Creator.isHtmlAttachment=function(e){var t,r;return!(e.split(".").length<2)&&(t=e.split(".").pop().toLowerCase(),-1!==(r=["html","htm"]).indexOf(t))}),Meteor.startup((function(){return $(document).on("click",(function(e){return $(e.target).closest(".slds-table td").length<1?$(".slds-table").addClass("slds-no-cell-focus"):$(".slds-table").removeClass("slds-no-cell-focus")})),$(window).resize((function(){if($(".list-table-container table.dataTable").length)return $(".list-table-container table.dataTable thead th").each((function(){var e;return e=$(this).outerWidth(),$(".slds-th__action",this).css("width",e+"px")}))})),$(document).keydown((function(e){if("13"===e.keyCode||"Enter"===e.key){if($(".modal").length>1)return;if("TEXTAREA"!==e.target.tagName||$(e.target).closest("div").hasClass("bootstrap-tagsinput")){if("update"===Session.get("cmOperation"))return e.preventDefault(),e.stopPropagation(),$(".creator-auotform-modals .btn-update").click();if("insert"===Session.get("cmOperation"))return e.preventDefault(),e.stopPropagation(),$(".creator-auotform-modals .btn-insert").click()}}}))}))},"colors.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n,i;n="border-radius: 10px;padding: 1px 6px;display: inline-block;",i=function(e){return 3===(e=e.slice(1)).length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:Number.parseInt(e.slice(0,2),16),g:Number.parseInt(e.slice(2,4),16),b:Number.parseInt(e.slice(4,6),16)}},a=function(e,t,r){var o,a,n,s;return.299*(n=(s=i(e)).r)+.587*(a=s.g)+.114*(o=s.b)>186?r:t},o=function(e,t,r){var o,a,n,s,c,l,u;return(o=.2126*(n=(u=[(c=(l=i(e)).r)/255,(s=l.g)/255,(a=l.b)/255]).map((function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})))[0]+.7152*n[1]+.0722*n[2])>.179?r:t},r=function(e){var t,r;return r=[],t=e.fields,_.each(t,(function(t,a){var i;if(i=t.options,_.isFunction(i)&&(i=i({})),"select"===t.type&&(null!=i?i.length:void 0))return _.each(i,(function(t){var i,s;if(t.color)return i=t.color,/^#/.test(i)||(i="#"+i),s=o(i,"#fff","#333"),r.push(".creator-cell-color-"+e.name+"-"+a+"-"+t.value+"{"+n+"background:"+i+";color:"+s+";}")}))})),r},Creator.appendObjectFieldsColorStyles=function(){var e,t;return $("#object_fields_color_styles").remove(),t=[],_.each(Creator.Objects,(function(e){return t=_.union(t,r(e))})),t.push(".creator-cell-multiple-color{\n\tmargin-right:1px;\n}\n@media (max-width:767px) {\n\t.creator-cell-multiple-color{\n\t\tmargin-right:4px;\n\t}\n}"),e=$('"),$("head").append(e)}},"temp_navs.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},o,a,n,i,s,c,l,u,d,p;s=!1,a=function(){var e;if(e=sessionStorage.getItem("temp_navs"))return e.split(",").map((function(e){var t;return{name:(t=e.split(":"))[0],url:t[1],label:t[2],is_temp:!0}}))},n=function(e,t,r){return sessionStorage.getItem("temp_navs_id")},d=function(e){return sessionStorage.setItem("temp_navs_id",e)},p=function(e){var t,r;return e||(e=[]),t=(r=e.map((function(e){var t;return t=e.name,e.url&&(t+=":"+e.url),e.label&&(t+=":"+e.label),t}))).join(","),sessionStorage.setItem("temp_navs",t)},c=[],o=function(e,t){var r;return r=t||Creator.getObjectUrl(e),c.push(r)},u=function(e,t){var r,o;if(o=t||Creator.getObjectUrl(e),(r=c.indexOf(o))>-1)return c.splice(r,1)},i=function(e,t){var r,o,a,n,i,s;for(r=t||Creator.getObjectUrl(e),o=2,s=6,i=!1;!i&&o<8&&!((a=urlQuery.length-o)<0);)n=urlQuery[a],__meteor_runtime_config__.ROOT_URL_PATH_PREFIX+n!==r?(i=n&&c.indexOf(__meteor_runtime_config__.ROOT_URL_PATH_PREFIX+n)<0,o++):o++;return i?n:null},l=function(e,t,r,a){var n,s,c,l,u,d,p,f,m;return n=Session.get("object_name"),s=Session.get("record_id"),t?(l=(c=Creator.getObjectUrl(n,s))===t)||(l=FlowRouter.current().path===t):l=n===e,l?(d=i(e,t),o(e,t),d?(FlowRouter.go(d),urlQuery.pop(),urlQuery.pop()):((f=r[a])||(f=r[a-1]),f?(m=f.url?f.url:Creator.getObjectUrl(f.name),FlowRouter.redirect(m)):(u=(p=Creator.getAppMenus())[p.length-1],FlowRouter.redirect(u.path)))):o(e,t)},Creator.getTempNavs=function(){var e;return(e=Session.get("temp_navs"))||(e=a())&&Session.set("temp_navs",e),e},Creator.getTempNavsId=function(){var e;return(e=Session.get("temp_navs_id"))||(e=n())&&Session.set("temp_navs_id",e),e},Creator.createTempNav=function(e,t,r){var o,a;if(t||!(["users","cms_files","cfs.files.filerecord"].indexOf(e)>-1))return(a=Creator.getTempNavs())||(a=[]),(o=a.find((function(r){return t?r.name===e&&r.url===t:r.name===e})))?void 0:(a.push({name:e,url:t,label:r,is_temp:!0}),Session.set("temp_navs",a),p(a),u(e,t))},Creator.updateTempNavLabel=function(e,t,r){var o,a;if(t&&r)return(a=Creator.getTempNavs())||(a=[]),(o=a.find((function(r){return r.name===e&&r.url===t})))?(o.label=r,Session.set("temp_navs",a),p(a)):void 0},Creator.removeTempNavItem=function(e,t){var r,o,a;if((a=Session.get("temp_navs"))&&(o=null,r=a.filter((function(r,a){var n;return(n=t?r.name===e&&r.url===t:r.name===e)&&(o=a),!n})),_.isNumber(o)))return s=!0,l(e,t,r,o),Meteor.defer((function(){return Session.set("temp_navs",r),p(r),s=!1})),!0},Creator.resetTempNavsIfNeeded=function(){var e,t,r;if((t=(r=Creator.getTempNavsId())!==(e=Meteor.userId()+":"+Steedos.spaceId()+":"+Session.get("app_id")))&&(Session.set("temp_navs",null),p(null),c.length=0),t||!Session.get("temp_navs_id"))return Session.set("temp_navs_id",e),d(e)},Meteor.startup((function(){if(!Steedos.isMobile())return Tracker.autorun((function(){var e,t;if(Creator.bootstrapLoaded.get()&&(t=Session.get("spaceId"),e=Session.get("app_id"),t&&e))return Creator.resetTempNavsIfNeeded()})),Tracker.autorun((function(e){var r,o,a,n,i,c,l,u,d,p,f,m,g,v,h;if(u=Session.get("object_name"),v=Session.get("tab_name"),p=Session.get("record_id"),i=Creator.getAppMenus(),u&&i&&i.length&&(f=Session.get("record_name"),n=_.pluck(i,"id"),o=Session.get("temp_navs_force_create"),(null!=n?n.indexOf(u||v):void 0)<0||o)){if(o&&s)return void Session.set("temp_navs_force_create",!1);if(!(l=Creator.getObject(u)))return;if(p){if(!(d=Creator.getObjectRecord()))return;if(h=Creator.getObjectUrl(u,p),o&&(r=urlQuery[urlQuery.length-3])&&(g=new RegExp(r+"$")).test(h))return void Session.set("temp_navs_force_create",!1);a=f||("cfs.files.filerecord"===u?t("cfs_files_filerecord__object")+"-"+(null!=d&&null!=(m=d.original)?m.name:void 0):d[c=l.NAME_FIELD_KEY||"name"]),Creator.createTempNav(u,h,a)}else Creator.createTempNav(u);if(o)return Session.set("temp_navs_force_create",!1)}}))}))},"router.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n;this.urlQuery=new Array,o=function(e,t){var r;Meteor.userId()&&(Creator.pushCurrentPathToUrlQuery(),"-"!==(r=e.params.app_id)&&r&&Session.get("app_id")!==r&&Session.set("app_id",r))},n=function(e,t){var r,o,a,n;if(o=Tracker.nonreactive((function(){return Session.get("object_name")})),a=Tracker.nonreactive((function(){return Session.get("record_id")})),r=e.params.object_name,n=e.params.record_id,Session.set("object_name",r),Session.set("tab_name",null),Session.set("pageApiName",null),Session.set("record_id",n),Session.set("record_name",null),n&&(o&&o!==r||a&&n!==a))return Session.set("temp_navs_force_create",!0)},r=function(e,t){var r;if("admin"===(r=e.params.app_id)&&Steedos.isMobile())return t("/user_settings"),urlQuery.pop()},FlowRouter.route("/app",{triggersEnter:[o],action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"creator_app_home"})}}),FlowRouter.route("/app/menu",{triggersEnter:[o],action:function(e,t){var r;return r="app_object_menu",Session.set("hidden_header",!0),BlazeLayout.render(Creator.getLayout(),{main:r})},triggersExit:[function(e,t){if(Steedos.isMobile())return Session.set("hidden_header",void 0)}]}),FlowRouter.route("/app/:app_id",{triggersEnter:[o],action:function(e,t){var r,o,a;return"-"!==(o=FlowRouter.getParam("app_id"))&&(Session.set("object_name",null),Session.set("record_id",null),Session.set("app_id",o)),Session.set("admin_template_name",null),a=(r=Creator.getApp(o))&&r.is_use_iframe?"creator_app_iframe":"creator_app_home",BlazeLayout.render(Creator.getLayout(),{main:a})}}),FlowRouter.route("/app/:app_id/page/:page_id",{triggersEnter:[o],action:function(e,t){var r,o;return console.log("params",e),r=FlowRouter.getParam("app_id"),o=null!=e?e.page_id:void 0,Session.set("pageApiName",o),Session.set("object_name",null),BlazeLayout.render(Creator.getLayout(),{main:"page_template",regions:{appId:r,pageId:o}})},triggersExit:[function(e,t){return Session.set("pageApiName",null)}]}),FlowRouter.route("/page/:page_id/",{action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"page"})}}),FlowRouter.route("/app/:app_id/tab_iframe/:tab_id",{triggersEnter:[o],action:function(e,t){var r;return r=FlowRouter.getParam("tab_id"),Session.set("tab_name",r),Session.set("object_name",null),BlazeLayout.render(Creator.getLayout(),{main:"page_iframe",regions:{params:e,queryParams:t}})},triggersExit:[function(e,t){return Session.set("tab_name",null)}]}),(a=FlowRouter.group({prefix:"/app/:app_id/:object_name",name:"objectRoutes",triggersEnter:[o,n]})).route("/",{triggersEnter:[function(e,t){var r,o,a,n,i;return n=e.params.object_name,o=(null!=(a=window.getFirstListView(n))?a.name:void 0)||(null!=a?a._id:void 0),t(i="/app/"+(r=e.params.app_id)+"/"+n+"/grid/"+o)}],action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"object_home"})}}),a.route("/:record_id/:related_object_name/grid",{action:function(e,t){var r,o,a,n,i,s,c,l;return o={app_id:r=Session.get("app_id"),object_name:n=FlowRouter.getParam("object_name"),record_id:s=FlowRouter.getParam("record_id"),related_object_name:l=FlowRouter.getParam("related_object_name")},Session.set("related_object_name",l),a="related_object_list",(i=Steedos.Page.getPage("related_list",r,l))&&(a="page_related_list_view",c={page:i,appId:Session.get("app_id"),objectName:n,recordId:s,relatedObjectName:l,__timestamp:(new Date).getTime()}),Meteor.setTimeout((function(){return BlazeLayout.render(Creator.getLayout(),{main:a,regions:c})}),10)}}),a.route("/view/:record_id",{action:function(e,t){var r,o,a,n,i,s,c;return t["X-Space-Id"]&&Steedos.setSpaceId(t["X-Space-Id"]),o={app_id:r=FlowRouter.getParam("app_id"),object_name:n=FlowRouter.getParam("object_name"),record_id:s=FlowRouter.getParam("record_id")},ObjectRecent.insert(n,s),Session.set("detail_info_visible",!0),a="creator_view",(i=Steedos.Page.getPage("record",Session.get("app_id"),n,s))&&(a="page_object",c=window._.defaultsDeep({display:Steedos.Page.getDisplay(n)},FlowRouter.current().queryParams,{page:i,appId:Session.get("app_id"),recordId:s,objectName:n,pageType:"record",__timestamp:(new Date).getTime()})),Meteor.setTimeout((function(){return BlazeLayout.render(Creator.getLayout(),{main:a,regions:c})}),10)},triggersExit:[function(e,t){var r,o,a,n;if(Session.get("instance_change")&&("instances"===(null!=(r=e.params)?r.object_name:void 0)&&"draft"===(null!=(o=e.queryParams)?o.side_listview_id:void 0)||"instance_tasks"===(null!=(a=e.params)?a.object_name:void 0)&&"inbox"===(null!=(n=e.queryParams)?n.side_listview_id:void 0)))return InstanceManager.saveIns(!1)}]}),a.route("/grid/:list_view_id",{action:function(e,t){var r,o,a,n,i;return Session.set("record_id",null),Session.get("object_name")===FlowRouter.getParam("object_name")&&Session.get("list_view_id")===FlowRouter.getParam("list_view_id")||(Session.set("filter_target",null),Session.set("filter_items",null)),Session.get("object_name")!==FlowRouter.getParam("object_name")&&Session.set("list_view_id",null),"true"===(null!=t?t.hidden_header:void 0)&&Session.set("hidden_header",!0),"-"!==(r=FlowRouter.getParam("app_id"))&&Session.set("app_id",r),a=FlowRouter.getParam("object_name"),Session.set("object_name",a),Session.set("list_view_id",FlowRouter.getParam("list_view_id")),Session.set("list_view_visible",!1),Tracker.afterFlush((function(){return Session.set("list_view_visible",!0)})),(n=Steedos.Page.getPage("list",Session.get("app_id"),a))&&(o="page_object",i=window._.defaultsDeep({display:Steedos.Page.getDisplay(a)},FlowRouter.current().queryParams,{page:n,appId:Session.get("app_id"),objectName:a,listViewId:Session.get("list_view_id"),pageType:"list",__timestamp:(new Date).getTime()})),BlazeLayout.render(Creator.getLayout(),{main:o,regions:i})}}),FlowRouter.notFound={action:function(e,t){var r;try{throw new Error("404 not found:"+window.location.href)}catch(o){r=o,console.log(r,window.location.href)}return BlazeLayout.render("empty_layout",{main:"notFound"})}}},"tenant.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};$.getJSON("/accounts/settings",(function(e){if(null!=e?e.tenant:void 0)return Session.set("tenant_settings",e.tenant)}))},"animate.js":function e(){$.fn.extend({animateCss:function(e,t){var r=function(e){var t={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(var r in meteorBabelHelpers.sanitizeForInObject(t))if(void 0!==e.style[r])return t[r]}(document.createElement("div"));return this.addClass("animated "+e).one(r,(function(){$(this).removeClass("animated "+e),"function"==typeof t&&t()})),this}})},"colResizable-1.6.js":function e(){!function(e){var t=e(document),r=e("head"),o=null,a={},n=0,i="id",s="px",c="JColResizer",l="JCLRFlex",u=parseInt,d=Math,p=navigator.userAgent.indexOf("Trident/4.0")>0,f;try{f=sessionStorage}catch(T){}r.append("");var m=function(t,o){var s=e(t);if(s.opt=o,s.mode=o.resizeMode,s.dc=s.opt.disabledColumns,s.opt.disable)return _(s);var l=s.id=s.attr(i)||c+n++;s.p=s.opt.postbackSafe,!s.is("table")||a[l]&&!s.opt.partialRefresh&&s.prev(".JCLRgrips").length>0||("col-resize"!==s.opt.hoverCursor&&r.append(""),s.addClass(c).attr(i,l).before('
'),s.g=[],s.c=[],s.w=s.width(),s.gc=s.prev(),s.f=s.opt.fixed,o.marginLeft&&s.gc.css("marginLeft",o.marginLeft),o.marginRight&&s.gc.css("marginRight",o.marginRight),s.cs=u(p?t.cellSpacing||t.currentStyle.borderSpacing:s.css("border-spacing"))||2,s.b=u(p?t.border||t.currentStyle.borderLeftWidth:s.css("border-left-width"))||1,a[l]=s,g(s))},_=function(e){var t=e.attr(i),e;(e=a[t])&&e.is("table")&&(e.removeClass(c+" "+l).gc.remove(),delete a[t])},g=function(t){var r=t.find(">thead>tr:first>th,>thead>tr:first>td");r.length||(r=t.find(">tbody>tr:first>th,>tr:first>th,>tbody>tr:first>td, >tr:first>td")),r=r.filter(":visible"),t.cg=t.find("col"),t.ln=r.length,t.p&&f&&f[t.id]&&v(t,r),r.each((function(r){var o=e(this),a=-1!=t.dc.indexOf(r),n=e(t.gc.append('
')[0].lastChild);n.append(a?"":t.opt.gripInnerHtml).append('
'),r==t.ln-1&&(n.addClass("JCLRLastGrip"),t.f&&n.html("")),n.bind("touchstart mousedown",y),a?n.addClass("JCLRdisabledGrip"):n.removeClass("JCLRdisabledGrip").bind("touchstart mousedown",y),n.t=t,n.i=r,n.c=o,o.w=o.width(),t.g.push(n),t.c.push(o),o.width(o.w).removeAttr("width"),n.data(c,{i:r,t:t.attr(i),last:r==t.ln-1})})),t.cg.removeAttr("width"),t.find("td, th").not(r).not("table th, table td").each((function(){e(this).removeAttr("width")})),t.f||t.removeAttr("width").addClass(l),h(t)},v=function(e,t){var r,o=0,a=0,n=[],i;if(t){if(e.cg.removeAttr("width"),e.opt.flush)return void(f[e.id]="");for(i=(r=f[e.id].split(";"))[e.ln+1],!e.f&&i&&(e.width(i*=1),e.opt.overflow&&(e.css("min-width",i+s),e.w=i));a*{cursor:"+s.opt.dragCursor+"!important}"),l.addClass(s.opt.draggingClass),o=l,s.c[i.i].l)for(var d=0,p;d"+(r.label||a),value:t+"."+a,icon:null!=o?o.icon:void 0})})):void 0})),o&&(c=Creator.getRelatedObjects(e),_.each(c,(l=this,function(e){var t,r;return r=Creator.getObjectLookupFieldOptions(e.object_name,!1,!1,!1),t=Creator.getObject(e.object_name),_.each(r,(function(r){if(e.foreign_key!==r.value)return n.push({label:(t.label||t.name)+"=>"+r.label,value:t.name+"."+r.value,icon:null!=t?t.icon:void 0})}))}))),n):n},Creator.getObjectFilterFieldOptions=function(e){var t,r,o,a,n;return r=[],e?(o=null!=(t=Creator.getObject(e))?t.fields:void 0,n=Creator.getFields(e),a=null!=t?t.icon:void 0,_.forEach(o,(function(e,t){if(!_.include(["grid","object","[Object]","[object]","Object","avatar","image","markdown","html"],e.type)&&!e.hidden&&!/\w+\./.test(t)&&_.indexOf(n,t)>-1)return r.push({label:e.label||t,value:t,icon:a})})),r):r},Creator.getObjectFieldOptions=function(e){var t,r,o,a,n;return r=[],e?(o=null!=(t=Creator.getObject(e))?t.fields:void 0,n=Creator.getFields(e),a=null!=t?t.icon:void 0,_.forEach(o,(function(e,t){if(!_.include(["grid","object","[Object]","[object]","Object","markdown","html"],e.type)&&!/\w+\./.test(t)&&_.indexOf(n,t)>-1)return r.push({label:e.label||t,value:t,icon:a})})),r):r},Creator.getFiltersWithFilterFields=function(e,t,r){return e||(e=[]),r||(r=[]),(null!=r?r.length:void 0)&&r.forEach((function(r){if(_.isString(r)&&(r={field:r,required:!1}),t[r.field]&&!_.findWhere(e,{field:r.field}))return e.push({field:r.field,is_default:!0,is_required:r.required})})),e.forEach((function(e){var t;return t=r.find((function(t){return t===e.field||t.field===e.field})),_.isString(t)&&(t={field:t,required:!1}),t?(e.is_default=!0,e.is_required=t.required):(delete e.is_default,delete e.is_required)})),e},Creator.getObjectRecord=function(e,t,r,o){var a,n,i,s,c,l;if(e||(e=Session.get("object_name")),t||(t=Session.get("record_id")),Meteor.isClient){if(e!==Session.get("object_name")||t!==Session.get("record_id"))return Creator.odata.get(e,t,r,o);if(null!=(s=Template.instance())?s.record:void 0)return null!=(c=Template.instance())&&null!=(l=c.record)?l.get():void 0}if("meteor"!==(n=Creator.getObject(e)).database_name&&n.database_name){if(e&&t)return Creator.odata.get(e,t,r,o)}else if(a=Creator.getCollection(e))return i=a.findOne(t)},Creator.getObjectRecordName=function(e,t){var r,o;if(e||(e=Creator.getObjectRecord()),e&&(r="organizations"===t?"name":null!=(o=Creator.getObject(t))?o.NAME_FIELD_KEY:void 0,e&&r))return e.label||e[r]},Creator.getApp=function(e){var t,r;return(t=Session.get("_app_menus")||Session.get("app_menus"))?r=t.find((function(t){return t.id===e})):{}},Creator.getAppDashboard=function(e){var t,r;if(t=Creator.getApp(e))return r=null,_.each(Creator.Dashboards,(function(e,o){var a;if((null!=(a=e.apps)?a.indexOf(t._id):void 0)>-1)return r=e})),r},Creator.getAppDashboardComponent=function(e){var t;t=Creator.getApp(e)},Creator.getAppObjectNames=function(e){var t,r,o,a;if(t=Creator.getApp(e))return r=(o=Steedos.isMobile())?t.mobile_objects:t.objects,a=[],t&&_.each(r,(function(e){var t;if(null!=(t=Creator.getObject(e))?t.permissions.get().allowRead:void 0)return a.push(e)})),a},Creator.getUrlWithToken=function(e,t){var r,o,a;return(a={})["X-Space-Id"]=Steedos.spaceId(),a["X-User-Id"]=Steedos.userId(),a["X-Company-Ids"]=Steedos.getUserCompanyIds(),a["X-Auth-Token"]=Accounts._storedLoginToken(),Steedos.isExpression(e)&&(e=Steedos.parseSingleExpression(e,t,"#",Creator.USER_CONTEXT)),""+e+(o=(r=/(\#.+\?)|(\?[^#]*$)/g.test(e))?"&":"?")+$.param(a)},Creator.getAppMenu=function(e,t){var r;return(r=Creator.getAppMenus(e))&&r.find((function(e){return e.id===t}))},Creator.getAppMenuUrlForInternet=function(e){return Creator.getUrlWithToken(e.path,e)},Creator.getAppMenuUrl=function(e){var t;return t=e.path,"url"===e.type?e.target?Creator.getAppMenuUrlForInternet(e):"/app/-/tab_iframe/"+e.id:e.path},Creator.getAppMenus=function(e){var t,r;return(t=Session.get("_app_menus")||Session.get("app_menus"))?(r=t.find((function(t){return t.id===e})))?r.children:void 0:[]},Creator.loadAppsMenus=function(){var e,t,r;return e={},(t=Steedos.isMobile())&&(e.mobile=t),r={type:"get",data:e,success:function(e){return Session.set("app_menus",e)}},null!=Steedos?Steedos.authRequest("/service/api/apps/menus",r):void 0},Creator.creatorAppsSelector=function(e,t){var r,o,a;return r=void 0,a=void 0,_.each(e,(function(e,t){e._id||(e._id=t),e.is_creator||(e.visible=!1)})),a=_.sortBy(_.values(e),"sort"),o={},r={},_.each(a,(function(e){return"admin"===e._id?r=e:o[e._id]=e})),o.admin=r,t.length&&_.each(o,(function(e,r){t.indexOf(r)>-1?e.visible=e.is_creator:e.visible=!1})),o},Creator.visibleAppsSelector=function(e,t){var r;return null==t&&(t=!0),r=[],_.each(e,(function(e,o){(!1!==e.visible&&"admin"!==e._id||t&&"admin"===e._id)&&r.push(e)})),r},Creator.getVisibleApps=function(e){var t,r;return t=Creator._subApp.get(),r=Object.assign({},Creator.Apps,{apps:t}),Creator.visibleAppsSelector(r,e)},Creator.getVisibleAppsObjects=function(){var e,t,r;return e=Creator.getVisibleApps(),r=_.flatten(_.pluck(e,"objects")),t=(t=_.filter(Creator.Objects,(function(e){return!(r.indexOf(e.name)<0)}))).sort(Creator.sortingMethod.bind({key:"label"})),t=_.pluck(t,"name"),_.uniq(t)},Creator.getAppsObjects=function(){var e,t;return e=[],t=[],_.forEach(Creator.Apps,(function(r){return t=_.filter(r.objects,(function(e){return!e.hidden})),e=e.concat(t)})),_.uniq(e)},Creator.validateFilters=function(e,t){var r,o,a,n,i,s,c;if(a=_.map(e,(function(e){return!_.isEmpty(e)&&e})),a=_.compact(a),o="",n=a.length,t){if(t=t.replace(/\n/g,"").replace(/\s+/g," "),/[._\-!+]+/gi.test(t)&&(o="含有特殊字符。"),!o)if(s=t.match(/\d+/gi))for(s.forEach((function(e){if(e<1||e>n)return o="您的筛选条件引用了未定义的筛选器:"+e+"。"})),i=1;i<=n;)s.includes(""+i)||(o="有些筛选条件进行了定义,但未在高级筛选条件中被引用。"),i++;else o="有些筛选条件进行了定义,但未在高级筛选条件中被引用。";if(o||(c=t.match(/[a-zA-Z]+/gi))&&c.forEach((function(e){if(!/^(and|or)$/gi.test(e))return o="检查您的高级筛选条件中的拼写。"})),!o){try{Creator.eval(t.replace(/and/gi,"&&").replace(/or/gi,"||"))}catch(l){r=l,o="您的筛选器中含有特殊字符"}(/(AND)[^()]+(OR)/gi.test(t)||/(OR)[^()]+(AND)/gi.test(t))&&(o="您的筛选器必须在连续性的 AND 和 OR 表达式前后使用括号。")}}return!o||(console.log("error",o),Meteor.isClient&&toastr.error(o),!1)},Creator.formatFiltersToMongo=function(e,t){var r;if(null!=e?e.length:void 0)return e[0]instanceof Array||(e=_.map(e,(function(e){return[e.field,e.operation,e.value]}))),r=[],_.each(e,(function(e){var o,a,n,i,s;return o=e[0],a=e[1],s=Meteor.isClient?Creator.evaluateFormula(e[2]):Creator.evaluateFormula(e[2],null,t),(i={})[o]={},"="===a?i[o].$eq=s:"<>"===a?i[o].$ne=s:">"===a?i[o].$gt=s:">="===a?i[o].$gte=s:"<"===a?i[o].$lt=s:"<="===a?i[o].$lte=s:"startswith"===a?(n=new RegExp("^"+s,"i"),i[o].$regex=n):"contains"===a?(n=new RegExp(s,"i"),i[o].$regex=n):"notcontains"===a&&(n=new RegExp("^((?!"+s+").)*$","i"),i[o].$regex=n),r.push(i)})),r},Creator.isBetweenFilterOperation=function(e){var t;return"between"===e||!!(null!=(t=Creator.getBetweenTimeBuiltinValues(!0))?t[e]:void 0)},Creator.formatFiltersToDev=function(e,t,r){var o,a;if(e.length)return(null!=r?r.is_logic_or:void 0)&&(o=[],e.forEach((function(e){return o.push(e),o.push("or")})),o.pop(),e=o),a=SteedosFilters.formatFiltersToDev(e,Creator.USER_CONTEXT)},Creator.formatLogicFiltersToDev=function(e,t,r){var o;return o="["+(o=(o=t.replace(/\(\s+/gi,"(").replace(/\s+\)/gi,")").replace(/\(/g,"[").replace(/\)/g,"]").replace(/\s+/g,",").replace(/(and|or)/gi,"'$1'")).replace(/(\d)+/gi,(function(t){var o,a,n,i,s;return o=e[t-1],a=o.field,n=o.operation,s=Meteor.isClient?Creator.evaluateFormula(o.value):Creator.evaluateFormula(o.value,null,r),i=[],!0===_.isArray(s)?("="===n?_.each(s,(function(e){return i.push([a,n,e],"or")})):"<>"===n?_.each(s,(function(e){return i.push([a,n,e],"and")})):_.each(s,(function(e){return i.push([a,n,e],"or")})),"and"!==i[i.length-1]&&"or"!==i[i.length-1]||i.pop()):i=[a,n,s],JSON.stringify(i)})))+"]",Creator.eval(o)},Creator.getRelatedObjects=function(e,t,r){var o,a,n,i,s;return Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),n=[],(o=Creator.getObject(e))?(i=Creator.getObjectRelateds(o._collection_name),0===(null!=(n=_.pluck(i,"object_name"))?n.length:void 0)?n:(s=(a=Creator.getPermissions(e,t,r)).unrelated_objects,n=_.difference(n,s),_.filter(i,(function(e){var o,i,s,c;return c=e.object_name,i=n.indexOf(c)>-1,o=null!=(s=Creator.getPermissions(c,t,r))?s.allowRead:void 0,"cms_files"===c&&(o=o&&a.allowReadFiles),i&&o})))):n},Creator.getRelatedObjectNames=function(e,t,r){var o;return o=Creator.getRelatedObjects(e,t,r),_.pluck(o,"object_name")},Creator.getRelatedObjectListActions=function(e,t,r){var o;return o=Creator.getActions(e,t,r),o=_.filter(o,(function(e){return"standard_follow"!==e.name&&("standard_query"!==e.name&&("list"===e.on&&("function"==typeof e.visible?e.visible():e.visible)))}))},Creator.getActions=function(e,t,r){var o,a,n,i,s,c;if(Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),n=Creator.getObject(e))return i=Creator.getPermissions(e,t,r),a=i.disabled_actions,o=_.sortBy(_.values(n.actions),"sort"),_.has(n,"allow_customActions")&&(o=_.filter(o,(function(e){return _.include(n.allow_customActions,e.name)||_.include(_.keys(Creator.getObject("base").actions)||{},e.name)}))),_.has(n,"exclude_actions")&&(o=_.filter(o,(function(e){return!_.include(n.exclude_actions,e.name)}))),_.each(o,(function(e){if(Steedos.isMobile()&&["record","record_only"].indexOf(e.on)>-1&&"standard_edit"!==e.name)return"record_only"===e.on?e.on="record_only_more":e.on="record_more"})),Steedos.isMobile()&&["cms_files","cfs.files.filerecord"].indexOf(e)>-1&&(null!=(s=o.find((function(e){return"standard_edit"===e.name})))&&(s.on="record_more"),null!=(c=o.find((function(e){return"download"===e.name})))&&(c.on="record")),o=_.filter(o,(function(e){return _.indexOf(a,e.name)<0}))},Creator.getListViews=function(e,t,r){var o,a,n,i,s,c;if(Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),e&&(s=Creator.getObject(e)))return o=(null!=(c=Creator.getPermissions(e,t,r))?c.disabled_list_views:void 0)||[],i=[],a=Steedos.isMobile(),_.each(s.list_views,(function(e,t){return e.name=t})),n=_.sortBy(_.values(s.list_views),"sort_no"),_.each(n,(function(e){var t;if(!a||"calendar"!==e.type)return"default"===e.name||(t=_.indexOf(o,e.name)>-1||e._id&&_.indexOf(o,e._id)>-1)&&e.owner!==r?void 0:i.push(e)})),i},Creator.getFields=function(e,t,r){var o,a,n;return Meteor.isClient&&(e||(e=Session.get("object_name")),t||(t=Session.get("spaceId")),r||(r=Meteor.userId())),o=Creator.getObjectFieldsName(e),n=null!=(a=Creator.getPermissions(e,t,r))?a.unreadable_fields:void 0,_.difference(o,n)},Creator.isloading=function(){return!Creator.bootstrapLoaded.get()},Creator.convertSpecialCharacter=function(e){return e.replace(/([\^\$\(\)\*\+\?\.\\\|\[\]\{\}])/g,"\\$1")},Creator.getDisabledFields=function(e){var t;return t=_.map(e,(function(e,t){return e.autoform&&e.autoform.disabled&&!e.autoform.omit&&t})),t=_.compact(t)},Creator.getHiddenFields=function(e){var t;return t=_.map(e,(function(e,t){return e.autoform&&"hidden"===e.autoform.type&&!e.autoform.omit&&t})),t=_.compact(t)},Creator.getFieldsWithNoGroup=function(e){var t;return t=_.map(e,(function(e,t){return(!e.autoform||!e.autoform.group||"-"===e.autoform.group)&&(!e.autoform||"hidden"!==e.autoform.type)&&t})),t=_.compact(t)},Creator.getSortedFieldGroupNames=function(e){var t;return t=_.map(e,(function(e){return e.autoform&&"-"!==e.autoform.group&&e.autoform.group})),t=_.compact(t),t=_.unique(t)},Creator.getFieldsForGroup=function(e,t){var r;return r=_.map(e,(function(e,r){return e.autoform&&e.autoform.group===t&&"hidden"!==e.autoform.type&&r})),r=_.compact(r)},Creator.getSystemBaseFields=function(){return["created","created_by","modified","modified_by"]},Creator.getFieldsWithoutSystemBase=function(e){return _.difference(e,Creator.getSystemBaseFields())},Creator.getFieldsWithoutOmit=function(e,t){return t=_.map(t,(function(t){var r,o;return(null==(o=(r=_.pick(e,t))[t].autoform)||!o.omit)&&t})),t=_.compact(t)},Creator.getFieldsInFirstLevel=function(e,t){return t=_.map(t,(function(t){return _.indexOf(e,t)>-1&&t})),t=_.compact(t)},Creator.getFieldsForReorder=function(e,t,r){var o,a,n,i,s,c,l,u;for(n=[],i=0,o=_.filter(t,(function(e){return!e.endsWith("_endLine")}));i-1&&(o=e[t].data_type),o):"text"},Meteor.isServer&&(Creator.getAllRelatedObjects=function(e){var t;return t=[],_.each(Creator.Objects,(function(r,o){return _.each(r.fields,(function(r,a){if("master_detail"===r.type&&r.reference_to&&r.reference_to===e)return t.push(o)}))})),Creator.getObject(e).enable_files&&t.push("cms_files"),t}),Meteor.isServer&&(Steedos.formatIndex=function(e){var t,r,o,a,n,i;return o={background:!0},(r=(null!=(a=Meteor.settings)&&null!=(n=a.datasources)&&null!=(i=n.default)?i.documentDB:void 0)||!1)&&e.length>0&&(t=e.join("."),o.name=t,t.length>52&&(o.name=t.substring(0,52))),o})},lib:{"apps.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Creator.appsByName={}},"object_recent.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};this.ObjectRecent={},ObjectRecent.insert=function(e,t,r){return Meteor.call("object_recent_viewed",e,t,Session.get("spaceId"),(function(){if(r&&_.isFunction(r))return r()}))}},"filters_transform.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r;this.FiltersTransform={},r=function(e){return["date","datetime","time","currency","number"].includes(e)?"between":["text","textarea","html"].includes(e)?"contains":"="},FiltersTransform.queryToFilters=function(e){var t,o,a,n;if(e)return n=e.query,a=e.object_name,o=Creator.getObject(a).fields,t=[],_.each(n,(function(e,a){var n,i;if(o[a]){if(i=Creator.getFieldDataType(o,a),["date","datetime","time","currency","number"].includes(i))return t.push({field:a,operation:r(i),start_value:e,value:[e,null]});if(!["text","textarea","html"].includes(i))return["boolean"].includes(i)?t.push({field:a,operation:"=",value:e}):t.push({field:a,operation:r(i),value:e});if(_.isString(e))return t.push({field:a,operation:r(i),value:e});if(_.isArray(e))return t.push({field:a,operation:"=",value:e})}else if(a=a.replace(/(_endLine)$/,""),i=Creator.getFieldDataType(o,a),o[a]&&["date","datetime","time","currency","number"].includes(i))return(n=_.find(t,(function(e){return e.field===a})))?(n.end_value=e,n.value[1]=e):t.push({field:a,operation:r(i),end_value:e,value:[null,e]})})),t}},"form_manager.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;this.FormManager={},SimpleSchema.messages({formValidate:"[value]"}),FormManager.getRelatedInitialValues=(o=this,function(e,t,r){var o,a,n,i,s;if(!_.isString(t))throw new Meteor.Error("main_record_id must be String");return o={},i="",Creator.getRelatedList(e,t).forEach((function(e){if(r===e.object_name)return i=e.related_field_name})),a="company_id",(s=Creator.getObject(r))&&i&&s.fields[i]&&s.fields[i].reference_to_field&&(a=a+","+s.fields[i].reference_to_field),(n=Creator.odata.get(e,t,a))&&i&&n[s.fields[i].reference_to_field]&&(t=n[s.fields[i].reference_to_field]),o={},i&&("objects"===e?o[i]=Creator.getObjectRecord().name:(s=Creator.getObject(r),_.isString(s.fields[i].reference_to)?s.fields[i].multiple?o[i]=[t]:o[i]=t:o[i]={o:e,ids:[t]})),!_.has(o,"company_id")&&(null!=n?n.company_id:void 0)&&(o.company_id=n.company_id),o=Object.assign({},o,FormManager.getInitialValues(r,o))}),FormManager.getInitialValues=function(e,t){var r,o,a;return o=null!=(r=Creator.getObject(e))&&null!=(a=r.form)?a.initialValues:void 0,_.isFunction(o)?o.apply({doc:t||{}}):{}},FormManager.validate=function(e,t){var r,o,a,n,i,s;if(a=null!=(o=Creator.getObject(e))&&null!=(n=o.form)?n.validate:void 0,_.isFunction(a))try{if(s=a.apply({},[null!=(i=AutoForm.getFormValues(t))?i.insertDoc:void 0]),_.isBoolean(s)&&!1===s)return!1;if(!_.isEmpty(s)&&_.isObject(s))return _.each(s,(function(e,r){return AutoForm.addStickyValidationError(t,r,"formValidate",e),toastr.error(e)})),!1}catch(c){return r=c,console.error(r),toastr.error(r.message),!1}return!0},FormManager.onSubmit=function(e,t){var r,o,a,n,i;return o=null!=(r=Creator.getObject(e))&&null!=(n=r.form)?n.onSubmit:void 0,!(_.isFunction(o)&&(a=o.apply({},[null!=(i=AutoForm.getFormValues(t))?i.insertDoc:void 0]),!_.isEmpty(a)&&_.isObject(a)))||(_.each(a,(function(e,r){return AutoForm.addStickyValidationError(t,r,"formValidate",e),toastr.error(e)})),!1)},r=function(e,t,r){var o,a,n;return o={userId:Meteor.userId(),spaceId:Session.get("spaceId"),object_name:e},_.has(r,"previousDoc")&&(o.previousDoc=r.previousDoc),t.endsWith("Delete")?(o.id=r._id,o.doc=Creator.odata.get(e,r._id),t.startsWith("error")&&(o.error=r.error)):t.startsWith("after")?(o.id=null!=(a=r.dbDoc)?a._id:void 0,o.doc=r.dbDoc):t.startsWith("before")?(t.endsWith("Insert")||(o.id=r._id),t.endsWith("Update")?o.doc=null!=(n=r.doc)?n.$set:void 0:o.doc=r.doc):t.startsWith("error")&&(o.id=r._id,o.doc=r.doc,o.error=r.error),o},FormManager.getPreviousDoc=function(e,t,r){var o,a,n,i,s;if(("update"===r||"delete"===r)&&(o="after",a="after"+r.charAt(0).toLocaleUpperCase()+_.rest(r.split("")).join(""),i=null!=(n=Creator.getObject(e))&&null!=(s=n.form)?s[a]:void 0,_.isFunction(i)))return Creator.odata.get(e,t)},FormManager.runHook=function(e,t,o,a){var n,i,s,c,l,u,d,p;if(l=""+o+t.charAt(0).toLocaleUpperCase()+_.rest(t.split("")).join(""),"view"===t||"edit"===t)return FormManager.runViewEditHook(e,l,a.schema,a.record,a.doc);if(s=a.formId,d=null!=(u=Creator.getObject(e))&&null!=(p=u.form)?p[l]:void 0,_.isFunction(d))try{if(n=r(e,l,a),c=d.apply(n),_.isBoolean(c)&&!1===c)return!1;if(s&&"before"===o&&!_.isEmpty(c)&&_.isObject(c))return _.each(c,(function(e,t){return AutoForm.addStickyValidationError(s,t,"formValidate",e),toastr.error(e)})),!1}catch(f){return i=f,console.error(i),toastr.error(i.message),!1}return!0},FormManager.runViewEditHook=function(e,t,r,o,a){var n,i,s,c,l,u,d;if(l=null!=(u=Creator.getObject(e))&&null!=(d=u.form)?d[t]:void 0,_.isFunction(l)&&(s=r.get(),c={id:(i=a||o.get())._id,userId:Meteor.userId(),spaceId:Session.get("spaceId"),object_name:e,doc:i,schema:s},!1!==(n=l.apply(c))))return r.set(s),o.set(i)}},"grid_export.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;this.ObjectGrid={},this.GridExport={},r={equals:"=",notEqual:"!=",contains:"contains",notContains:"notcontains",startsWith:"startswith",endsWith:"=",lessThan:"<",lessThanOrEqual:"<=",greaterThan:">",greaterThanOrEqual:">=",empty:"empty"},o=function(e){var t;return t=[],_.forEach(e,(function(e,o){var a;return"between"===e.type?"number"===e.filterType?t.push([o,"between",[e.numberFrom,e.numberTo]]):e.filter?t.push([o,e.type,e.filter]):t.push([o,"between",[e.dateFrom,e.dateTo]]):_.isEmpty(e.filter)?e.operator?(a=[],e.condition1&&a.push([o,r[e.condition1.type],e.condition1.filter]),a.push(e.operator.toLocaleLowerCase()),e.condition2&&a.push([o,r[e.condition2.type],e.condition2.filter]),t.push(a)):void 0:(a=[o,r[e.type],e.filter],t.push(a))})),t},ObjectGrid.getFilters=function(e,t,r,a,n){var i,s,c,l,u,d;return s=Steedos.Page.Listview.getDefaultName(e,t),l=window.gridRefs&&window.gridRefs[s]&&window.gridRefs[s].current?window.gridRefs[s].current:window.gridRef.current,u=[],i=Creator.getListViewFilters(e,t,r,a,n),d=o(l.api.getFilterModel()),c=_.compact([].concat(i).concat(d))},GridExport.excel=function(e,t,r,a,n,i,s){var c,l,u,d,p,f,m,g,v,h,b,w,S;return u=Steedos.Page.Listview.getDefaultName(e,t),f=window.gridRefs&&window.gridRefs[u]&&window.gridRefs[u].current?window.gridRefs[u].current:window.gridRef.current,h=[],_.each(f.props.columnDefs,(function(e){if(e&&e.field)return h.push(e.field)})),b=[],_.forEach(f.api.getSortModel(),(function(e){return b.push([e.colId,e.sort])})),l=Creator.getListViewFilters(e,t,r,a,n,s),S=o(f.api.getFilterModel()),p=_.compact([].concat(l).concat(S)),c=SteedosFilters.formatFiltersToODataQuery(p),d=r?i+"-"+Creator.getObject(a).label:Creator.getObject(e).label+"-"+(null!=(v=Creator.getListView(e,t))?v.label:void 0),g=[],_.map(b,(function(e){var t;return t="desc"===e[1]?e[0]+" desc":e[0],g.push(t)})),m=g.join(","),d=encodeURIComponent(d),w=r?"/api/record/export/"+a+"?$select="+h.toString()+"&filename="+d:"/api/record/export/"+e+"?$select="+h.toString()+"&filename="+d,b.length>0&&(w=w+"&$orderby="+m),c&&(w=w+"&$filter="+c),Meteor.isCordova?Steedos.cordovaDownload(encodeURI(Steedos.absoluteUrl(w)),d+".xlsx"):window.open(w)}}},client:{"listview.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n,i;n=function(e,t,r){var o,a,n;return o=null!=t?t.columns:void 0,r&&((null!=t?t.mobile_columns:void 0)?o=t.mobile_columns:(null!=(n=Creator.getObjectFirstListView(e))?n.mobile_columns:void 0)?o=n.mobile_columns:o&&(o=Creator.pickObjectMobileColumns(e,o))),o||(a=Creator.getObjectFirstListViewColumns(e,r))&&(o=a),o},o=function(e,t,r){var o,a,i,s,c,l;return s=(c=Creator.getObject(e)).NAME_FIELD_KEY,"organizations"===c.name&&(s="name"),o=[s],(i=Creator.getCollection("object_listviews").findOne(t))?o=n(e,i,r):c.list_views&&(l=c.list_views[t],o=n(e,l,r)),o=o.map((function(e){var t,r;return t=_.isObject(e)?e.field:e,(null!=(r=c.fields[t])?r.type:void 0)?t:void 0})),Creator.isCommonSpace(Session.get("spaceId"))&&o.indexOf("space")<0&&o.push("space"),"cms_files"===e&&o.push("parent"),o=_.compact(o),a=Creator.getObjectFieldsName(e),_.intersection(o,a)},i=function(e,t,r,o){var a;return r?(a=Creator.getObject(e).fields,o&&(t=t.filter((function(e){var t,o;return"master_detail"!==(null!=(o=a[e])?o.type:void 0)||(!!a[e].multiple||(a[e].reference_to?(t=a[e].reference_to,_.isFunction(t)&&(t=t())):t=a[e].optionsFunction({}).getProperty("value"),!!_.isArray(t)||t!==r))}))),t):t},r=function(e,t){var r,o;return o=Creator.getObject(e).fields,r=[],_.each(t,(function(e){var t;if(null!=(t=o[e])?t.depend_on:void 0)return r=_.union(o[e].depend_on)})),r},a=function(e,t,r){var o,a;return a=_.intersection(["owner","company_id","company_ids","locked"],_.keys(e.fields)),!r&&e.enable_tree&&(a.push("parent"),a.push("children")),(o=Creator.getObjectDefaultExtraColumns(e.name))&&(a=_.union(a,o)),a},Creator.unionSelectColumnsWithExtraAndDepandOn=function(e,t,o,n){var i,s;return i=t.name,s=a(t,o,n),e=_.union(e,s),e=_.union(e,r(i,e))},Creator.getListViewFilters=function(e,t,r,o,a,n){var i,s,c,l,u,d,p,f,m,g;if(!e)return null;if(c=Creator.getObject(e),r)l=Creator.getODataRelatedFilter(e,o,a,t,n);else{if(d=Session.get("filter_logic"),p=Session.get("filter_scope"),u=Session.get("filter_items"),s=c.fields,u&&u.length>0&&window.lodash.isArray(u[0]))return l=u,(g=Creator.getStandardQuery(e,Session.get("standard_query")))&&g.length&&(l=l?[l,"and",g]:g),(m=Session.get("grid_sidebar_filters"))&&m.length&&(l=l?[l,"and",m]:m),l||(l=null),l;i=[],_.forEach(u,(function(t){var r,o,a,n,c,l,u,d,p,f,m;if(void 0!==t.value)if(r=s[null!=t?t.field:void 0],o=Creator.getFieldDataType(s,null!=t?t.field:void 0),["text","textarea","html","code"].includes(o)){if(_.isString(t.value)&&(m=t.value.trim().split(" "),l=[],m.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),l.push([t.field,t.operation,e])})),l.length>0))return c=!1,["<>","notcontains"].includes(t.operation)&&(c=!1),i.push(Creator.formatFiltersToDev(l,e,{is_logic_or:c}))}else{if(!["lookup","master_detail"].includes(o))return i.push(t);if(a=null!=r?r.reference_to:void 0,_.isFunction(a)&&(a=a()),!_.isArray(a))return i.push(t);if((null!=(u=t.value)?u.ids:void 0)&&i.push({field:t.field+".ids",operation:t.operation,value:null!=(d=t.value)?d.ids:void 0}),null!=(p=t.value)?p.o:void 0)return n=Creator.getObject(null!=(f=t.value)?f.o:void 0),i.push({field:t.field+".o",operation:t.operation,value:n._collection_name})}})),i.length>0&&(f={filter_logic:d,filter_scope:p,filters:i}),l=Creator.getODataFilter(t,e,f),(g=Creator.getStandardQuery(e,Session.get("standard_query")))&&g.length&&(l=l?[l,"and",g]:g),r||(m=Session.get("grid_sidebar_filters"))&&m.length&&(l=l?[l,"and",m]:m)}return l||(l=null),l},Creator.getODataEndpointUrl=function(e,t,r,o){var a,n;return r?(a=Creator.formatObjectName(o),n=Creator.getListViewIsRecent(e,t)?"/api/v4/"+a+"/recent":"/api/v4/"+a):(a=Creator.formatObjectName(e),n=Creator.getListViewIsRecent(e,t)?"/api/v4/"+a+"/recent":"/api/v4/"+a),Steedos.absoluteUrl(n)},Creator.getListviewColumns=function(e,t,r,a,n,s){var c,l;return c=e.name,l=Tracker.nonreactive((function(){return o(c,a,s)})),n&&n.customRelatedListObject&&(n.columns&&(l=n.columns),s&&n.mobile_columns&&(l=n.mobile_columns),l&&(l=l.map((function(e){return _.isObject(e)?e.field:_.isString(e)?e:void 0})),l=_.uniq(_.compact(l)))),l=i(c,l,t,r)}},views:{"_helpers.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Creator.helpers={object_name:function(){return Session.get("object_name")},object:function(){return Creator.getObject(Session.get("object_name"))},object_listviews:function(){return Creator.getObject("object_listviews")},objectLabel:function(e){return Creator.getObject(e).label},getOperationLabel:function(e){switch(e){case"=":return t("creator_filter_operation_equal");case"<>":return t("creator_filter_operation_unequal");case"<":return t("creator_filter_operation_less_than");case">":return t("creator_filter_operation_greater_than");case"<=":return t("creator_filter_operation_less_or_equal");case">=":return t("creator_filter_operation_greater_or_equal");case"contains":return t("creator_filter_operation_contains");case"notcontains":return t("creator_filter_operation_does_not_contain");case"startswith":return t("creator_filter_operation_starts_with");case"between":return t("creator_filter_operation_between")}},isMobile:function(){return Steedos.isMobile()}}},"template.page_template.js":function e(){Template.__checkName("page_template"),Template.page_template=new Template("Template.page_template",(function(){var e=this;return HTML.Raw('
')}))},"page_template.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_template.onRendered((function(){var e,t;return t=this,e=Session.get("app_id"),this.containerList=[],this.autorun((function(){var r;if(r=Steedos.Page.App.render(t,Session.get("pageApiName"),e))return t.containerList.push(r)}))})),Template.page_template.onDestroyed((function(){return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_object.js":function e(){Template.__checkName("page_object"),Template.page_object=new Template("Template.page_object",(function(){var e=this;return HTML.Raw('
')}))},"page_object.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_object.onRendered((function(){var e;return e=this,Steedos.Page.Object.Template.onRendered.apply(this)})),Template.page_object.onDestroyed((function(){var e;return e=this,Steedos.Page.Object.Template.onDestroyed.apply(this)}))},"template.page_record_view.js":function e(){Template.__checkName("page_record_view"),Template.page_record_view=new Template("Template.page_record_view",(function(){var e=this;return HTML.Raw('
')}))},"page_record_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_record_view.onRendered((function(){var e,t,r;return r=this,e=Session.get("object_name"),t=Session.get("record_id"),this.containerList=[],this.pageName=null,this.autorun((function(){var o,a,n,i,s,c,l,u,d,p;if(d=!0,(l=r.data.regions()).objectName!==(null!=(i=this.lastRegions)?i.objectName:void 0)&&(d=!1),this.lastRegions=l,d&&r.pageName)try{if(SteedosUI.refs[r.pageName])return(p={objectName:e}).recordId=Tracker.nonreactive((function(){return Session.get("record_id")})),n=(null!=(s=SteedosUI.refs[r.pageName])&&null!=(c=s.__$schema)?c.data:void 0)||{},SteedosUI.refs[r.pageName].updateProps({data:window._.defaultsDeep(p,n)})}catch(f){a=f,console.error(r.pageName+": "+a)}if(!d&&r.pageName&&SteedosUI.refs[r.pageName])try{SteedosUI.refs[r.pageName].unmount()}catch(f){a=f,console.error(r.pageName+": "+a)}if(r.data.regions&&(l=Tracker.nonreactive(r.data.regions),this.lastRegions=l,l&&l.page&&l.page.schema&&(u=l.page.schema,_.isString(u)&&(u=JSON.parse(u)),r.pageName=u.name)),e=Tracker.nonreactive((function(){return Session.get("object_name")})),t=Tracker.nonreactive((function(){return Session.get("record_id")})),o=Steedos.Page.Record.render(r,e,t))return r.containerList.push(o)}))})),Template.page_record_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_list_view.js":function e(){Template.__checkName("page_list_view"),Template.page_list_view=new Template("Template.page_list_view",(function(){var e=this;return HTML.Raw('
')}))},"page_list_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_list_view.onRendered((function(){var e,t;return t=this,e=Session.get("object_name"),this.containerList=[],this.pageName=null,this.autorun((function(){var r,o,a,n;if(t.pageName)try{SteedosUI.refs[t.pageName].unmount()}catch(i){o=i,console.error(t.pageName+": "+o)}if(t.data.regions&&(a=t.data.regions())&&a.page&&a.page.schema&&(n=a.page.schema,_.isString(n)&&(n=JSON.parse(n)),t.pageName=n.name),r=Steedos.Page.Listview.render(t,e))return t.containerList.push(r)}))})),Template.page_list_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.page_related_list_view.js":function e(){Template.__checkName("page_related_list_view"),Template.page_related_list_view=new Template("Template.page_related_list_view",(function(){var e=this;return HTML.Raw('')}))},"page_related_list_view.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.page_related_list_view.onRendered((function(){var e,t,r;return r=this,e=Session.get("object_name"),t=Session.get("record_id"),this.containerList=[],this.pageName=null,this.autorun((function(){var o,a,n,i;if(r.pageName)try{SteedosUI.refs[r.pageName].unmount()}catch(s){a=s,console.error(r.pageName+": "+a)}if(r.data.regions&&(n=r.data.regions())&&n.page&&n.page.schema&&(i=n.page.schema,_.isString(i)&&(i=JSON.parse(i)),r.pageName=i.name),o=Steedos.Page.RelatedListview.render(r,e,t))return r.containerList.push(o)}))})),Template.page_related_list_view.onDestroyed((function(){var e;try{SteedosUI.refs[this.pageName].unmount()}catch(t){e=t,console.error(this.pageName+": "+e)}return _.each(this.containerList,(function(e){if(e)return ReactDOM.unmountComponentAtNode(e)}))}))},"template.app_home.js":function e(){Template.__checkName("creator_app_home"),Template.creator_app_home=new Template("Template.creator_app_home",(function(){var e=this;return""}))},"app_home.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r;r=function(e){var t,r,o,a,n;return(null!=(t=Creator.getApp(e))?t.isExternalUrl:void 0)?/^http(s?):\/\//.test(t.path)?t.blank?window.open(t.path):window.location.href=t.path:FlowRouter.go(t.path):(a=Creator.getAppMenus(e),(r=_.first(a))?"url"===(o=Object.assign({},r,{target:!1})).type&&o.is_use_iframe?FlowRouter.go(o.path):(n=Creator.getAppMenuUrl(o),FlowRouter.go(n)):FlowRouter.go("/app/"+e))},Template.creator_app_home.onRendered((function(){return this.autorun((function(){var e,t,o;if(o=Creator.bootstrapLoaded.get(),_.has(FlowRouter.current().params,"app_id")){if(e=Session.get("app_id"),o&&e)return r(e)}else if(t=Steedos.getFirstApp(),o&&t)return r(t.code||t.id)}))}))},"template.app_iframe.js":function e(){Template.__checkName("creator_app_iframe"),Template.creator_app_iframe=new Template("Template.creator_app_iframe",(function(){var e=this;return Blaze.If((function(){return Spacebars.call(e.lookup("subsReady"))}),(function(){return["\n\t\t",HTML.IFRAME({id:"app_iframe",src:function(){return Spacebars.mustache(e.lookup("url"))},style:"width: 100%; height: 100%;"}),"\n\t"]}))}))},"app_iframe.coffee":function module(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var share=__coffeescriptShare;Template.creator_app_iframe.helpers({subsReady:function(){return Steedos.subsBootstrap.ready()},url:function(){var e,t;return t=Session.get("app_id"),(e=Creator.getApp(t))&&!e.on_click&&e.url?Creator.getUrlWithToken(e.url,e):""}}),Template.creator_app_iframe.events,Template.creator_app_iframe.onCreated((function(){})),Template.creator_app_iframe.onRendered((function(){var app,app_id,e,evalFunString,iframe;if(Steedos.forbidNodeContextmenu(window,"#app_iframe"),app_id=Session.get("app_id"),app=Creator.getApp(app_id),iframe=$("#app_iframe"),app&&app.on_click){evalFunString="(function(){"+app.on_click+"})()";try{return eval(evalFunString)}catch(error){return e=error,console.error("catch some error when eval the on_click script for app link:"),console.error(e.message+"\r\n"+e.stack)}}})),Template.creator_app_iframe.onDestroyed((function(){}))},"template.page_iframe.js":function e(){Template.__checkName("page_iframe"),Template.page_iframe=new Template("Template.page_iframe",(function(){var e=this;return HTML.IFRAME({name:"pageIframe",src:function(){return Spacebars.mustache(e.lookup("url"))},style:function(){return Spacebars.mustache(e.lookup("style"))},class:function(){return Spacebars.mustache(e.lookup("className"))}})}))},"page_iframe.js":function e(){var t=function(e){var t=e.data;"nav.click"===t.type&&FlowRouter.current().params.tab_id==t.data.id&&$("[name='pageIframe']").attr("src",$("[name='pageIframe']").attr("src"))};Template.page_iframe.helpers({url:function(){if(Template.instance().data.regions)return(regions=Template.instance().data.regions()).queryParams.url},className:function(){if(Template.instance().data.regions)return(regions=Template.instance().data.regions()).queryParams.className||""},style:function(){return Template.instance().data.regions&&(regions=Template.instance().data.regions()).queryParams.style||"width: 100%; height: 100%;"}}),Template.page_iframe.onCreated((function(){window.addEventListener("message",t)})),Template.page_iframe.onDestroyed((function(){window.removeEventListener("message",t)})),Template.page_iframe.onRendered((function(){window.Steedos.setDocumentTitle({pageName:null,tabName:null})}))},"template.initiate_approval.js":function e(){Template.__checkName("initiate_approval"),Template.initiate_approval=new Template("Template.initiate_approval",(function(){var e=this;return HTML.DIV({class:"modal fade creator-modal",id:"initiate_approval"},"\n\t\t",HTML.DIV({class:"modal-dialog slds-modal slds-fade-in-open"},"\n\t\t\t",HTML.DIV({class:"slds-modal__container"},"\n\t\t\t\t",HTML.HEADER({class:"slds-modal__header"},"\n\t\t\t\t\t",HTML.DIV({"data-dismiss":"modal"},"\n\t\t\t\t\t\t",Blaze._TemplateWith((function(){return{className:Spacebars.call("slds-modal__close slds-button__icon"),iconSize:Spacebars.call("large"),inverse:Spacebars.call(!0),iconCategory:Spacebars.call("utility"),iconName:Spacebars.call("close"),title:Spacebars.call(Spacebars.dataMustache(e.lookup("_"),"close")),variant:Spacebars.call("icon")}}),(function(){return Spacebars.include(e.lookupTemplate("steedos_button"))})),"\n\t\t\t\t\t"),"\n\t\t\t\t\t",HTML.Raw('

\n\t\t\t\t\t\t选择流程发起审批\n\t\t\t\t\t

'),"\n\t\t\t\t"),"\n\n\t\t\t\t",HTML.DIV({class:"slds-modal__content slds-p-around_medium",style:"font-size: 17px;"},"\n\t\t\t\t\t",Blaze.Each((function(){return Spacebars.call(e.lookup("flows"))}),(function(){return["\n\t\t\t\t\t",HTML.DIV({class:"weui_cells_weui_cells_access"},"\n\t\t\t\t\t\t",HTML.A({class:"weui_cell","data-flow":function(){return Spacebars.mustache(e.lookup("flow_id"))}},"\n\t\t\t\t\t\t\t",HTML.I({class:"ion ion-ios-compose-outline"}),HTML.CharRef({html:" ",str:" "}),HTML.CharRef({html:" ",str:" "}),Blaze.View("lookup:flow_name",(function(){return Spacebars.mustache(e.lookup("flow_name"))})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t\t"]})),"\n\n\t\t\t\t"),"\n\n\t\t\t"),"\n\t\t"),"\n\t")}))},"initiate_approval.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.initiate_approval.helpers({flows:function(){return _.where(Creator.object_workflows,{object_name:this.object_name,can_add:!0})}}),Template.initiate_approval.events({"click .weui_cell":function(e,t){var r,o,a,n,i,s,c;o=e.currentTarget.dataset.flow,a=t.data.object_name,n=t.data.record_id,i=[{o:a,ids:[n]}],(s={}).methodOverride="POST",s["X-User-Id"]=Meteor.userId(),s["X-Auth-Token"]=Accounts._storedLoginToken(),c=Steedos.absoluteUrl()+"api/object/workflow/drafts?"+$.param(s),r={Instances:[{flow:o,applicant:Meteor.userId(),space:Session.get("spaceId"),record_ids:i}]},r=JSON.stringify(r),$(document.body).addClass("loading"),$.ajax({url:c,type:"POST",async:!0,data:r,dataType:"json",processData:!1,contentType:"application/json",success:function(e,r){var o;$(document.body).removeClass("loading"),e.errors?e.errors.forEach((function(e){toastr.error(e.errorMessage)})):(o=e.inserts[0],Steedos.openWindow(Steedos.absoluteUrl("/app/"+FlowRouter.current().params.app_id+"/instances/view/"+o._id+"?display="+FlowRouter.current().queryParams.display+"&side_object=instances&side_listview_id=draft")),Modal.hide(t),SteedosUI.reloadRecord(a,n),FlowRouter.reload())},error:function(e,t,r){$(document.body).removeClass("loading"),toastr.error(t)}})}})},"template.amis_action.js":function e(){Template.__checkName("amis_action"),Template.amis_action=new Template("Template.amis_action",(function(){var e=this;return HTML.LI({class:function(){return["steedos-amis-button steedos-button-",Spacebars.mustache(e.lookup("objectName")),"-",Spacebars.mustache(e.lookup("name"))," ",Spacebars.mustache(e.lookup("buttonClassName"))]}})}))},"amis_action.js":function e(){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;(e=e||"")&&"#"===e[0]?e=t.pathname+t.search+e:e&&"?"===e[0]&&(e=t.pathname+e);var r=e.indexOf("?"),o=e.indexOf("#"),a=~r?e.substring(0,r):~o?e.substring(0,o):e,n=~r?e.substring(r,~o?o:void 0):"",i=~o?e.substring(o):t.hash;if(a){if("/"!=a[0]&&!/^https?\:\/\//.test(a)){var s=t.pathname,c=s.split("/"),l;for(c.pop();l=/^\.\.?\//.exec(a);)"../"===l[0]&&c.pop(),a=a.substring(l[0].length);a=c.concat(a).join("/")}}else a=t.pathname;return a+n+i},r=function(){return{theme:"antd",getModalContainer:function(e){var t=document.querySelector("#amisModalContainer");return t||((t=document.createElement("div")).className="amis-scope",t.style.height="0px",t.id="amisModalContainer",document.body.appendChild(t)),t},notify:function(e,t){var r,o;(null===(r=t.props)||void 0===r?void 0:r.schema.tpl)?SteedosUI.message[e](null===(o=t.props)||void 0===o?void 0:o.schema.tpl):"string"==typeof t?SteedosUI.message[e](t):console.warn("notify",e,t)},confirm:function(e){return new Promise((function(t,r){return SteedosUI.Modal.confirm({title:e,onOk:function(){t(!0)},okText:"确认",cancelText:"取消"})}))},jumpTo:function(e,r){if("goBack"===e)return window.history.back();e=t(e),r&&"url"===r.actionType?!1===r.blank?FlowRouter.go(e):window.open(e):r&&e&&r.target?window.open(e,r.target):/^https?:\/\//.test(e)?window.location.replace(e):FlowRouter.go(e)}}};Template.amis_action.helpers({objectName:function(){var e=Template.instance().data;return e.button.object||e.button.object_name},name:function(){var e;return Template.instance().data.button.name},buttonClassName:function(){var e;return Template.instance().data.buttonClassName}}),Template.amis_action.onRendered((function(){var e=Template.instance().data,t=e.button,o=e.buttonClassName,a=e.inMore,n=e.data,i=e.env,s=".steedos-button-"+(t.object||e.button.object_name)+"-"+t.name,c=function(){var e=Creator.USER_CONTEXT?Creator.USER_CONTEXT.user.language:null;return e?e="cn"===(e="zh"===(e="en"===(e=e.replace("_","-"))?"en-US":e)?"zh-CN":e)?"zh-CN":e:"zh-CN"};Promise.all([waitForThing(window,"amis")]).then((function(){var e=amisRequire("amis/embed"),o=t.amis_schema?_.isString(t.amis_schema)?JSON.parse(t.amis_schema):t.amis_schema:{type:"service",bodyClassName:"p-0",body:[{type:"button",label:t.label}],regions:["body"]},a=__meteor_runtime_config__.ROOT_URL,l=lodash.defaultsDeep({},{data:n},{data:{app_id:n.appId,object_name:n.objectName,record_id:n.recordId,formFactor:Steedos.isMobile()?"SMALL":"LARGE",context:{rootUrl:Meteor.isCordova?a.endsWith("/")?a.substr(0,a.length-1):a:"",tenantId:Creator.USER_CONTEXT.spaceId,userId:Creator.USER_CONTEXT.userId,authToken:Creator.USER_CONTEXT.user.authToken,user:Creator.USER_CONTEXT.user},global:{userId:Creator.USER_CONTEXT.userId,spaceId:Creator.USER_CONTEXT.spaceId,user:Creator.USER_CONTEXT.user,now:new Date},scopeId:o.name||o.id,$scopeId:o.name||o.id}});return o=lodash.defaultsDeep(l,o),e.embed(s,o,{locale:c()},Object.assign(r(),i))}))}))}},layout:{"template.layout.js":function e(){Template.__checkName("creatorLayout"),Template.creatorLayout=new Template("Template.creatorLayout",(function(){var e=this;return Blaze.If((function(){return Spacebars.call(e.lookup("isloading"))}),(function(){return"\n\t"}),(function(){return["\n\t\t",HTML.DIV({class:"steedos skin-blue-light creator h-full flex flex-col relative overflow-hidden"},"\n\t\t\t\n\n\t\t\t",HTML.HEADER({id:"header",class:"steedos-global-header-root flex-none"}),"\n\n\t\t\t\t\n\t\t\t",HTML.DIV({id:"main",class:function(){return["creator-content-wrapper ",Blaze.If((function(){return Spacebars.call(e.lookup("split"))}),(function(){return"split"}))]}},"\n\n\n\n\t\t\t\t",HTML.Comment(' {{#if split}}\n\t\t\t\t\t
\n\t\t\t\t\t\t{{> Template.dynamic template="creatorSidebar"}}\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{{> Template.dynamic template=main}}\n\t\t\t\t\t
\n\t\t\t\t{{else}} '),"\n\t\t\t\t\t",Blaze._TemplateWith((function(){return{template:Spacebars.call(e.lookup("main"))}}),(function(){return Spacebars.include((function(){return Spacebars.call(Template.__dynamic)}))})),"\n\t\t\t\t",HTML.Comment(" {{/if}} "),"\n\t\t\t"),"\n\t\t\t",HTML.FOOTER({id:"footer",class:"steedos-global-footer-root flex-none"}),"\n\t\t"),"\n",HTML.Comment(' \n\t\t
\n\t\t\t{{> status}}\n\t\t
'),"\n\t\t"]}))}))},"layout.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o;Template.creatorLayout.helpers(Creator.helpers),Template.creatorLayout.helpers({isloading:function(){return Creator.isloading()},collection:function(){return Session.get("action_collection")},fields:function(){return Session.get("action_fields")},collectionName:function(){return Session.get("action_collection_name")},doc:function(){return Session.get("action_record_id")},saveAndInsert:function(){var e,t,r,o;return!!(e=Session.get("action_save_and_insert"))&&(r=(t=Session.get("action_collection")).replace(/Creator.Collections./,""),null!=(o=Creator.getPermissions(r))?o.allowCreate:void 0)},split:function(){var e,t,r;return!(!(e=Creator.getApp())||"admin"!==e._id)&&(r=/\/app\/\w+\/search\//,t=Session.get("router-path"),!r.test(t))},object_name:function(){return Session.get("object_name")},recordId:function(){return Session.get("recordId")},title:function(){return"编辑"},triggerLabel:function(){return"编辑"},onAddFinish:function(){return function(e){var t,r,o,a,n;return a=e[0],n="/app/"+(t=Session.get("app_id"))+"/"+(r=Session.get("object_name"))+"/view/"+(o=a._id),FlowRouter.go(n),!0}},onEditFinish:function(){return function(){return setTimeout((function(){return FlowRouter.reload()}),1),!0}}}),Template.creatorLayout.onRendered((function(){var e;return e=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),this.autorun((function(){return Steedos.Page.Header.render(Session.get("app_id"),e)})),this.autorun((function(){return Steedos.Page.Footer.render(Session.get("app_id"),e)})),this.autorun((function(){var e,t;if(t=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),window.SteedosUI&&(e=SteedosUI.refs.globalHeader))return Meteor.setTimeout((function(){var t;try{return e.updateProps({location:FlowRouter.current()},(function(){return console.log("amisScope.updateProps callback.......")}))}catch(r){t=r}}),100)})),this.autorun((function(){var e,t;if(t=Session.get("pageApiName")||Session.get("object_name")||Session.get("tab_name"),window.SteedosUI&&(e=SteedosUI.refs.globalFooter))return Meteor.setTimeout((function(){var t;try{return e.updateProps({location:FlowRouter.current()},(function(){return console.log("amisScope.updateProps callback.......")}))}catch(r){t=r}}),100)}))})),r=function(){var e;return"calendar"===(null!=(e=Creator.getListView(Session.get("object_name",Session.get("list_view_id"))))?e.type:void 0)},AutoForm.hooks({creatorAddForm:{onSuccess:function(e,t){var o,a,n,i;if($("#afModal").modal("hide"),"/app/:app_id/:object_name/calendar/"!==FlowRouter._current.route.path&&!r())return"post"===t.type?(i="/app/"+(o=Session.get("app_id"))+"/"+(a=t.object_name)+"/view/"+(n=t._id),FlowRouter.go(i)):void 0}}},!1),AutoForm.hooks({creatorEditForm:{onSuccess:function(e,t){var o,a,n,i,s,c;if($("#afModal").modal("hide"),!r())return"post"===t.type&&(c="/app/"+(o=Session.get("app_id"))+"/"+(a=t.object_name)+"/view/"+(s=t._id),FlowRouter.go(c)),this.docId&&t.object_name?(i=Creator.getObjectUrl(t.object_name,this.docId),n=Creator.getObjectRecordName(this.updateDoc.$set,t.object_name),Creator.updateTempNavLabel(t.object_name,i,n)):void 0}}},!1),AutoForm.hooks({creatorCellEditForm:{onSuccess:function(e,t){var r,o;if($("#afModal").modal("hide"),this.docId&&t.object_name)return o=Creator.getObjectUrl(t.object_name,this.docId),r=Creator.getObjectRecordName(this.updateDoc.$set,t.object_name),Creator.updateTempNavLabel(t.object_name,o,r)}}},!1),o=function(e,t){return FlowRouter.current().route.path.endsWith("/:record_id")?FlowRouter.reload():window.refreshGrid()},AutoForm.hooks({creatorAddRelatedForm:{onSuccess:o}},!1)},"template.loading.js":function e(){Template.__checkName("creatorLoading"),Template.creatorLoading=new Template("Template.creatorLoading",(function(){var e=this;return HTML.Raw('
\n
\n Loading\n
\n
\n
\n
')}))},"template.empty_layout.js":function e(){Template.__checkName("empty_layout"),Template.empty_layout=new Template("Template.empty_layout",(function(){var e=this;return Blaze._TemplateWith((function(){return{template:Spacebars.call(e.lookup("main"))}}),(function(){return Spacebars.include((function(){return Spacebars.call(Template.__dynamic)}))}))}))}},mobile:{"template.admin.js":function e(){Template.__checkName("adminMenu"),Template.adminMenu=new Template("Template.adminMenu",(function(){var e=this;return HTML.DIV({class:"admin-menu mobile-template-container",id:"admin_menu"},"\n\n ",HTML.DIV({class:"admin-menu-content mobile-template-content"},"\n\t\t\t",HTML.DIV({class:"weui-panel weui-panel_access user-info"},"\n\t\t\t\t",HTML.A({class:"weui-media-box weui-media-box_appmsg"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box__hd",style:function(){return["background: url(",Spacebars.mustache(e.lookup("avatarURL")),")"]}},"\n\t\t\t\t\t\t",HTML.Raw('\x3c!-- --\x3e'),"\n\t\t\t\t\t"),"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box__bd"},"\n\t\t\t\t\t\t",HTML.H4({class:"weui-media-box__title"},Blaze.View("lookup:name",(function(){return Spacebars.mustache(e.lookup("name"))}))),"\n\t\t\t\t\t\t",HTML.P({class:"weui-media-box__desc"},"\n\t\t\t\t\t\t\t",Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Company")})),":",Blaze.View("lookup:spaceName",(function(){return Spacebars.mustache(e.lookup("spaceName"))})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n\n\t\t\t",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access btn-switch-space"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Switch Company")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",HTML.SPAN({class:"space-name"},Blaze.View("lookup:spaceName",(function(){return Spacebars.mustache(e.lookup("spaceName"))}))),"\n\t\t\t\t\t\t\t\t",HTML.Raw(''),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\n\n\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access btn-change-password"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Change Password")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",HTML.Raw(''),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t"),"\n\t\t\t"),"\n\n ",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access log-out steedos-logout"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:_",(function(){return Spacebars.mustache(e.lookup("_"),"Logout")}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n "),"\n ")}))},"admin.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.adminMenu.helpers({avatarURL:function(e,t,r,o){var a,n;return n=Meteor.userId(),(e=null!=(a=Creator.getCollection("users").findOne({_id:n}))?a.avatar:void 0)?Steedos.absoluteUrl("avatar/"+Meteor.userId()+"?avatar="+e):Creator.getRelativeUrl("/images/default-avatar.png")},name:function(){var e;return null!=(e=Creator.getCollection("users").findOne())?e.name:void 0},logoutUrL:function(){return Creator.getRelativeUrl("/accounts/a/#/logout")},spaceName:function(){var e;return Session.get("spaceId")&&(e=db.spaces.findOne(Session.get("spaceId")))?e.name:t("none_space_selected_title")}}),Template.adminMenu.events({"click .steedos-logout":function(){return Steedos.logout()},"click .admin-menu-back":function(e,t){var r;return r=urlQuery[urlQuery.length-2],urlQuery.pop(),t.$("#admin_menu").animateCss("fadeOutRight",(function(){return Blaze.remove(t.view),r?FlowRouter.go(r):FlowRouter.go("/app")}))},"click .btn-switch-space":function(e,t){return FlowRouter.go("/user_settings/switchspace")},"click .btn-change-password":function(e,t){return Modal.show("reset_password_modal")},"click .btn-change-avatar":function(e,t){return t.$("#mobile-avator-upload").click()},"change #mobile-avator-upload":function(e,r){var o;if(o=e.target.files[0])return $("body").addClass("loading"),db.avatars.insert(o,(function(e,r){return e?(console.error(e),toastr.error(t(e.reason)),$(document.body).removeClass("loading")):setTimeout((function(){return Meteor.call("updateUserAvatar",r._id,(function(e,r){return(null!=r?r.error:void 0)?($(document.body).removeClass("loading"),toastr.error(t(r.message))):$(document.body).removeClass("loading")}))}),3e3)}))}})},"template.switch_space.js":function e(){Template.__checkName("switchSpace"),Template.switchSpace=new Template("Template.switchSpace",(function(){var e=this;return HTML.DIV({class:"switch-space mobile-template-container",id:"switch_space"},"\n\t\t\n\t\t",HTML.DIV({class:"switch-space-content mobile-template-content"},"\n\t\t\t",HTML.DIV({class:"weui-panel"},"\n\t\t\t\t",HTML.DIV({class:"weui-panel__bd"},"\n\t\t\t\t\t",HTML.DIV({class:"weui-media-box weui-media-box_small-appmsg"},"\n\t\t\t\t\t\t",HTML.DIV({class:"weui-cells"},"\n\t\t\t\t\t\t\t",Blaze.Each((function(){return Spacebars.call(e.lookup("spaces"))}),(function(){return["\n\t\t\t\t\t\t\t",HTML.A({class:"weui-cell weui-cell_access switchSpace"},"\n\t\t\t\t\t\t\t\t",HTML.DIV({class:"weui-cell__bd weui-cell_primary"},"\n\t\t\t\t\t\t\t\t\t",HTML.P(Blaze.View("lookup:name",(function(){return Spacebars.mustache(e.lookup("name"))}))),"\n\t\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t\t",Blaze.If((function(){return Spacebars.dataMustache(e.lookup("current_space"),e.lookup("_id"))}),(function(){return["\n\t\t\t\t\t\t\t\t\t",HTML.SPAN({class:"weui-icon-success-no-circle"}),"\n\t\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t\t"),"\n\t\t\t\t\t\t\t"]})),"\n\t\t\t\t\t\t"),"\n\t\t\t\t\t"),"\n\t\t\t\t"),"\n\t\t\t"),"\n\t\t"),"\n\t")}))},"switch_space.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Template.switchSpace.helpers({spaces:function(){return db.spaces.find()},current_space:function(e){return e===Session.get("spaceId")}}),Template.switchSpace.events({"click .switchSpace":function(e,t){return Steedos.setSpaceId(this._id),FlowRouter.go("/app")},"click .switch-space-back":function(e,t){var r;return r=urlQuery[urlQuery.length-2],urlQuery.pop(),t.$("#switch_space").animateCss("fadeOutRight",(function(){return Blaze.remove(t.view),r?FlowRouter.go(r):FlowRouter.go("/app")}))}})}},"core.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},o;Creator.Pages={},o=["owner","company_id","company_ids","locked"],Steedos.addPage=function(e,t){if(e)return Creator.Pages[e]=t},Creator.getLayout=function(e){return e||(e=Session.get("app_id")),"steedos"===e?"steedosLayout":"creatorLayout"},Creator.createObject=function(e,t){var r,o;return o=Creator.getObject(e),r="Creator.Collections."+e,Session.set("action_collection",r),Session.set("action_save_and_insert",!0),Session.set("action_collection_name",o.label),Session.set("action_object_name",e),Session.set("action_fields",void 0),Session.set("cmDoc",t),Meteor.defer((function(){return $(".creator-add").click()}))},Meteor.isClient&&(Creator.TabularSelectedIds={},Meteor.autorun((function(){var e,t;if(e=Session.get("list_view_id"),t=Session.get("object_name"))return Creator.TabularSelectedIds[t]=[]})),Creator.remainCheckboxState=function(e){var t,r,o,a,n,i,s;if((t=e.find(".select-all")).length&&(a=(o=null!=(n=t[0])?n.dataset:void 0).objectName,i=Creator.TabularSelectedIds[a]))return(r=e.find(".select-one")).each((function(e,t){var r;return r=i.indexOf(t.dataset.id)>-1,$(t).prop("checked",r)})),(s=i.length)>0&&r.length!==s?t.prop("indeterminate",!0):(t.prop("indeterminate",!1),0===s?t.prop("checked",!1):s===r.length?t.prop("checked",!0):void 0)},Creator.isListViewFilterEditable=function(e){return!e.shared||e.shared&&e.owner===Steedos.userId()},Creator.getODataFilter=function(e,t,r){var o,a,n,i,s,c,l,u,d,p,f,m,g;if(g=Meteor.userId(),m=Session.get("spaceId"),a=Creator.Collections.object_listviews.findOne(e))(l=Creator.isListViewFilterEditable(a))||((o={}).filter_scope=a.filter_scope,o.filters=a.filters);else if(o={},m&&g){if(!(u=Creator.getListView(t,e)))return["_id","=",-1];o.filter_scope=u.filter_scope,o.filters=u.filters}if(Creator.isCloudAdminSpace(m)&&_.include(["users","space_users","spaces"],t)&&delete o.filters,o&&(r?(o.filter_scope&&(r.filter_scope=o.filter_scope),_.isFunction(r.filters)||(null!=(d=r.filters)?d.length:void 0)?(_.isFunction(o.filters)||(null!=(p=o.filters)?p.length:void 0))&&(r.filters=[[r.filters,"and",o.filters]]):r.filters=o.filters):r=o),r||(r={}),n=r.filter_logic,i=r.filter_scope,s=r.filters,f=[],_.isFunction(s)&&(s=s()),a?n?(c=Creator.formatLogicFiltersToDev(s,n),f.length?f.push("and",c):f.push(c)):s&&s.length>0&&(f.length>0&&f.push("and"),(s=Creator.formatFiltersToDev(s,t))&&s.length>0&&(s=[s]),_.each(s,(function(e){return f.push(e)}))):m&&g&&("users"!==t||Creator.isCloudAdminSpace(m)||f.push(["_id","=",g]),s&&(s=Creator.formatFiltersToDev(s,t))&&s.length>0&&(s=[s],f.length>0&&f.push("and"),_.each(s,(function(e){if("spaces"!==t||e.length>0&&"_id"!==e[0])return f.push(e)})))),"mine"===i&&(f.length>0&&f.push("and"),f.push(["owner","=",g])),0!==f.length)return f},Creator.getODataRelatedFilter=function(e,t,r,o,a){var n,i,s,c,l,u,d,p,f,m,g,v,h,b,w,S,C;if(r&&(S=Steedos.spaceId(),C=Meteor.userId(),h=a?[a]:Creator.getRelatedList(e,r),v="",u="",w=[],n=function(e){return w.length>0&&w.push("and"),w.push(e)},_.each(h,(function(e){if(e.object_name===t)return e.filtersFunction?u=e.filtersFunction:v=e.related_field_name})),v||u)){if(v=v.replace(/\./g,"/"),o&&(i=Creator.getListView(t,o))){if(s=i.filter_logic,c=i.filter_scope,l=i.filters,u)return l=u(Creator.odata.get(e,r));s?(d=Creator.formatLogicFiltersToDev(l,s),n(d)):l&&l.length>0&&(l=_.map(l,(function(e){return _.isObject(e)&&!_.isArray(e)?Meteor.isClient&&_.isString(null!=e?e._value:void 0)?[e.field,e.operation,Creator.eval("("+e._value+")")()]:[e.field,e.operation,e.value]:e})),(l=Creator.formatFiltersToDev(l,t))&&l.length>0&&(l=[l]),_.each(l,(function(e){return n(e)})))}if("cfs.files.filerecord"===t&&n(["metadata/space","=",S]),m=Creator.getObject(t),p=t===e&&(null!=m?m.enable_tree:void 0),"cms_files"===t?(n(["parent/o","=",e]),n(["parent/ids","=",r])):"objects"===e?n([v,"=",r]):p||((b=null!=m?m.fields:void 0)&&(g=b[v]),g&&g.reference_to_field&&(f=Creator.odata.get(e,r,g.reference_to_field),"permission_fields"===t&&"object_fields"===e&&n(["object_name","=",f.object]),f&&f[g.reference_to_field]&&(r=f[g.reference_to_field])),!g||"master_detail"!==g.type&&"lookup"!==g.type?g&&"grid"===g.type?(n([v+".o","=",e]),n([v+".ids","=",r])):n([v,"=",r]):_.isFunction(g.reference_to)?_.isArray(g.reference_to())?n([v+".ids","=",r]):n([v,"=",r]):_.isArray(g.reference_to)?n([v+".ids","=",r]):n([v,"=",r])),"mine"===c&&n(["owner","=",C]),0!==w.length)return w}},Creator.getJsReportUrlQuery=function(){var e,t,r;return r="?space_id="+Steedos.getSpaceId(),(t=Tracker.nonreactive((function(){return Session.get("filter_items")})))&&(r+="&user_filters="+(e=encodeURI(JSON.stringify(t)))),r},Creator.getJsReportViewUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/web/viewer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.getJsReportExcelUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/api/report_db/"+e+"/excel"),t+=Creator.getJsReportUrlQuery()},Creator.getJsReportPdfUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/jsreport/api/report_db/"+e+"/pdf"),t+=Creator.getJsReportUrlQuery()},Creator.getStimulsoftReportViewUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/stimulsoft/web/viewer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.getStimulsoftReportDesignerUrl=function(e){var t;return t=Creator.getRelativeUrl("/plugins/stimulsoft/web/designer_db/"+e),t+=Creator.getJsReportUrlQuery()},Creator.objectOdataSelectFields=function(e){var t,r;return t=e.fields,r=(r=_.keys(t)).filter((function(e){return e.indexOf(".")<0})),e&&["default","meteor"].indexOf(e.database_name||"default")>-1&&(r=_.union(r.concat(o))),r.join(",")},Creator.objectOdataExpandFields=function(e,t){var r,o;return r=[],o=e.fields,t||(t=_.keys(o)),_.each(t,(function(e){var t,a,n;if(("master_detail"===(null!=(a=o[e])?a.type:void 0)||"lookup"===(null!=(n=o[e])?n.type:void 0))&&(o[e].reference_to?(t=o[e].reference_to,_.isFunction(t)&&(t=t())):_.isFunction(o[e].optionsFunction)&&(t=o[e].optionsFunction({}).getProperty("value")),_.isArray(t)||(t=[t]),t=_.map(t,(function(e){var t,r;return t=(null!=(r=Creator.getObject(e))?r.NAME_FIELD_KEY:void 0)||"name"})),t=_.compact(t),(t=(t=_.uniq(t)).join(","))&&e.indexOf("$")<0))return e.indexOf(".")<0?r.push(e):r.push(e.replace(".","/"))})),r.join(",")},Creator.relatedObjectFileUploadHandler=function(e,r){var o,a,n,i,s,c,l,u,d,p;for(u=null!=(o=e.currentTarget.dataset)?o.parent:void 0,s=e.currentTarget.files,c=0,d=Session.get("record_id"),l=Session.get("object_name"),p=Session.get("spaceId");c0&&(t=!0),!t})),t},Creator.pushCurrentPathToUrlQuery=function(){var e;if((e=FlowRouter.current().path)!==urlQuery[urlQuery.length-1])return urlQuery.push(e)},Creator.getStandardQuery=function(e,t){var r,o,a,n,i,s;if(o=Creator.getObject(e).fields,t&&t.query&&_.size(t.query)&&t.object_name===e)return a=t.object_name,i=t.query,s=[],t.is_mini?_.each(i,(function(e,t){var r,n,i,c;if(o[t])if(r=Creator.getFieldDataType(o,t),["currency","number"].includes(r)){if(!_.isString(e))return s.push([t,"=",e]);if(c=e.trim().split(" "),n=[],c.forEach((function(e){var r,o;try{if(o=Number(e),_.isNumber(o)&&!_.isNaN(o))return n.push([t,"=",o])}catch(a){return r=a,console.error(r)}})),n.length>0)return s.push(Creator.formatFiltersToDev(n,a,{is_logic_or:!1}))}else if(["text","textarea","html","select","autonumber","url","email"].includes(r))if(_.isString(e)){if(c=e.trim().split(" "),i=[],c.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),"select"===r&&o[t].multiple?i.push([t,"=",e]):i.push([t,"contains",e])})),i.length>0)return s.push(Creator.formatFiltersToDev(i,a,{is_logic_or:!1}))}else if(_.isArray(e))return s.push([t,"=",e])})):_.each(i,(function(e,t){var r,n,i,c,l,u;if(o[t]){if(n=Creator.getFieldDataType(o,t),["date","datetime","time","currency","number"].includes(n))return s.push([t,">=",e]);if(["text","textarea","html"].includes(n)){if(_.isString(e)){if(u=e.trim().split(" "),l=[],u.forEach((function(e){return e=encodeURIComponent(Creator.convertSpecialCharacter(e)),l.push([t,"contains",e])})),l.length>0)return s.push(Creator.formatFiltersToDev(l,a,{is_logic_or:!1}))}else if(_.isArray(e))return s.push([t,"=",e])}else{if(["boolean"].includes(n))return s.push([t,"=",JSON.parse(e)]);if(!["lookup","master_detail"].includes(n))return s.push([t,"=",e]);if(i=null!=(r=o[t])?r.reference_to:void 0,_.isFunction(i)&&(i=i()),!_.isArray(i))return s.push([t,"=",e]);if((null!=e?e.ids:void 0)&&s.push({field:t+".ids",operation:"=",value:null!=e?e.ids:void 0}),null!=e?e.o:void 0)return c=Creator.getObject(null!=e?e.o:void 0),s.push({field:t+".o",operation:"=",value:c._collection_name})}}else if(t=t.replace(/(_endLine)$/,""),n=Creator.getFieldDataType(o,t),o[t]&&["date","datetime","time","currency","number"].includes(n))return s.push([t,"<=",e])})),n={is_logic_or:r=!!t.is_mini},Creator.formatFiltersToDev(s,a,n);delete Session.keys.standard_query},Creator.getSafeObjectUrl=function(e,t,r){var o;return _.isString(e)?(o="users"===e?Creator.getObject("space_users"):Creator.getObject(e)).permissions.get().allowRead?Creator.getObjectUrl(e,t,r):void 0:""},Creator.formatFileSize=function(e){var t,r;return r="KB",(t=e/1024)>1024&&(t/=1024,r="MB"),t>1024&&(t/=1024,r="GB"),t.toFixed(2)+r},Creator.getTableCellData=function(e){var r,o,a,n,i,s,c,l,u,d,p,f,m,g,v,h,b,w,S,C,y,j,T,R;if(d=[],R=e.val,g=e.object_name,y=(j=Creator.getObject(g)).NAME_FIELD_KEY,"organizations"===g&&(y="name"),o=e.field){if(a=o.type,"formula"===o.type)a=o.data_type;else if("select"===o.type&&o.data_type&&"text"!==o.data_type)a=o.data_type;else if("summary"===o.type)if("count"===o.summary_type)a="number";else{if(!(C=Creator.getObject(o.summary_object)))throw new Meteor.Error(500,"The summary_object '"+o.summary_object+"' is not found for the field '"+o.name+"'");if(!(S=C.fields[o.summary_field]))throw new Meteor.Error(500,"The summary_field '"+o.summary_field+"' is not found for the field '"+o.name+"'");"formula"!==(a=S.type)&&"summary"!==a||(a=S.data_type),_.isNumber(o.scale)||(r=function(e){var t,o;return _.isNumber(e.scale)?e.scale:"summary"===e.type&&(o=Creator.getObject(e.summary_object))?(t=o.fields[e.summary_field])?r(t):null:void 0},o.scale=r(S))}return h=null!=(v=e.field)?v.reference_to:void 0,_.isFunction(h)&&(h=h()),"grid"===a?d.push({isTable:!0}):"location"===a?d.push({value:(null!=R?R.address:void 0)||"",id:e._id}):"lookup"!==a&&"master_detail"!==a||_.isEmpty(R)?"image"===a?"string"==typeof R?d.push({value:R,id:e._id,isImage:!0,baseUrl:Creator.getRelativeUrl("/api/files/images")}):d.push({value:R,id:e._id,isImages:!0,baseUrl:Creator.getRelativeUrl("/api/files/images")}):"avatar"===a?"string"==typeof R?d.push({value:R,id:e._id,isImage:!0,baseUrl:Creator.getRelativeUrl("/api/files/avatars")}):d.push({value:R,id:e._id,isImages:!0,baseUrl:Creator.getRelativeUrl("/api/files/avatars")}):"code"===a?(R=R?"...":"",d.push({value:R,id:e._id})):"password"===a?(R=R?"******":"",d.push({value:R,id:e._id})):"url"===a?((null!=(f=R)?f.startsWith("http"):void 0)||(f=Steedos.absoluteUrl(encodeURI(f))),d.push({value:R,href:f,id:e._id,isUrl:!0})):"email"===a?d.push({value:R,href:f,id:e._id,isEmail:!0}):"boolean"===a||"toggle"===a?(R=e.val?t("YES"):t("NO"),d.push({value:R,checked:e.val,id:e._id,isBoolean:!0})):"select"===a?(s=o.allOptions||o.options,u=e.doc||{},c=e.record_val,_.isFunction(o.options)&&(s=o.options(c||u)),_.isFunction(o.optionsFunction)&&(s=o.optionsFunction(c||u)),w=e.val,_.isArray(w)||(w=[w]),m=[],_.each(s,(function(e){if(_.indexOf(w,e.value)>-1)return m.push({label:e.label,value:e.value})})),R=(R=m.map((function(e){return e.label}))).join(","),d.push({value:R,items:m,id:e._id,isSelects:!0})):(R&&["datetime","date","time"].indexOf(a)>=0?"odata"===e.agreement?"datetime"===a?"string"==typeof e.val&&/\d+Z$/.test(e.val)?R=moment(e.val).format("YYYY-MM-DD H:mm"):(T=moment().utcOffset()/60,R=moment(e.val).add(T,"hours").format("YYYY-MM-DD H:mm")):"date"===a&&(R="string"==typeof e.val&&/\d+Z$/.test(e.val)?moment.utc(e.val).format("YYYY-MM-DD"):moment(e.val).format("YYYY-MM-DD")):"datetime"===a?R=moment(e.val).format("YYYY-MM-DD H:mm"):"date"===a?R=moment.utc(e.val).format("YYYY-MM-DD"):"time"===a&&(R=moment.utc(e.val).format("HH:mm")):null===e.val?R="":"lookup"===a?_.isFunction(o.optionsFunction)&&(u=e.doc||{},(l=R)&&(_.isArray(l)||(l=[l]),(b=_.filter(o.optionsFunction(u),(function(e){return l.indexOf(e.value)>-1})))&&(R=b.getProperty("label")))):"filesize"===a?R=Creator.formatFileSize(R):["number","currency","percent"].indexOf(a)>-1&&_.isNumber(R)?(p=0,p=_.isNumber(o.scale)?o.scale:"currency"===a?2:0,"percent"===a&&(R*=100),R=Steedos.numberToString(R,p),"percent"===a&&(R+="%")):"markdown"===a?_.isEmpty(R)||(R=Spacebars.SafeString(marked(R))):"html"===a?_.isEmpty(R)||(R=Spacebars.SafeString(R)):"textarea"===a&&R&&(R=(R=R.replace(/\n/g,"\n
")).replace(/ /g," ")),"record_details"!==e.parent_view&&e.field_name===y&&(f=Creator.getObjectUrl(e.object_name,e._id)),d.push({value:R,href:f,id:e._id,type:a})):_.isFunction(o.optionsFunction)&&"company"!==h?(u=e.doc||{},c=e.record_val,(l=R)&&(l=_.isArray(l)?l.map((function(e){return _.isObject(e)?e._id:e})):_.isObject(l)?[l._id]:[l],i=o.optionsFunction(c||u),(b=_.filter(i,(function(e){return l.indexOf(null!=e?e.value:void 0)>-1})))&&(R&&_.isArray(R)&&_.isArray(b)&&(b=Creator.getOrderlySetByIds(b,R,"value")),R=b.getProperty("label"))),h?"objects"===h?_.each(b,(function(t){var r,o,a;return a=t.label,(null!=(r=Creator.getObject(t.value))?r._id:void 0)?(o=Creator.getSafeObjectUrl(h,r._id),d.push({reference_to:h,rid:a,value:a,id:e._id,href:o})):d.push({value:R,id:e._id})})):(n=e.val,_.isArray(n)||(n=n?[n]:[]),_.each(n,(function(t){var r,o,a;return _.isString(t)?(b=_.filter(i,(function(e){return t===(null!=e?e.value:void 0)})),d.push({value:b.getProperty("label"),id:e._id})):(h=t["reference_to._o"]||h,o=t._id,a=t._NAME_FIELD_VALUE,r=Creator.getSafeObjectUrl(h,o),d.push({reference_to:h,rid:o,value:a,href:r,id:e._id}))}))):d.push({value:R,id:e._id})):(_.isArray(R)||(R=R?[R]:[]),_.each(R,(function(t){var r,o,a;if(t)return h=t["reference_to._o"]||h,o=t._id,a=t._NAME_FIELD_VALUE,_.isString(t)&&(o=t,a=t),r=Creator.getSafeObjectUrl(h,o),d.push({reference_to:h,rid:o,value:a,href:r,id:e._id})}))),d}},Creator.openSafeObjectUrl=function(e,t){var r;return Steedos.isMobile()||(r=Creator.getSafeObjectUrl(e,t,"-"))&&window.open(r,"_blank","width=800, height=600, left=50, top= 50, toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes"),"undefined"!=typeof event&&null!==event&&event.stopPropagation(),"undefined"!=typeof event&&null!==event&&event.preventDefault(),!1},Creator.getAppLabel=function(e){return e||(e=Creator.getApp()),e?e.label?t(e.label):t(e.name):""},Creator.measureWidth=_.memoize((function(e,t,r){var o,a,n,i;return(o=arguments.callee.canvas)||(o=document.createElement("canvas"),(n=document.createDocumentFragment()).appendChild(o),arguments.callee.canvas=o),(a=o.getContext("2d")).font=t,i=a.measureText(e).width,r&&i>r?r:i})),Creator.showPreviewButton=function(e){var t,r,o,a,n;return!!((null!=(n=null!=(t=Meteor.settings)&&null!=(r=t.public)?r.webservices:void 0)&&null!=(o=n.officeOnline)?o.url:void 0)&&Steedos.isOfficeFile(e)||(null!=n&&null!=(a=n.pdfOnline)?a.url:void 0)&&Steedos.isPdfFile(e))},Creator.officeOnlinePreview=function(e,t){var r,o,a,n,i,s,c,l,u,d,p,f,m,_,g,v;return a=null!=(s=Meteor.settings)&&null!=(c=s.public)&&null!=(l=c.webservices)&&null!=(u=l.officeOnline)?u.url:void 0,i=null!=(d=Meteor.settings)&&null!=(p=d.public)&&null!=(f=p.webservices)&&null!=(m=f.pdfOnline)?m.url:void 0,a&&""!==a||i&&""!==i?(v=Meteor.userId(),_=Steedos.spaceId(),r={authToken:o=Accounts._storedLoginToken()},e=e+"?token="+(g=window.btoa(JSON.stringify(r))),Steedos.isPdfFile(t)?(n=e,i&&""!==i&&(n=i+encodeURIComponent(e)),Steedos.openWindow(n)):(n=a+encodeURIComponent(e),Steedos.openWindow(n))):(toastr.error(TAPi18n.__("creator_office_online_web_url_required")),!1)},Creator.isImageAttachment=function(e){var t,r;return!(e.split(".").length<2)&&(t=e.split(".").pop().toLowerCase(),-1!==(r=["png","jpg","jpeg","bmp","gif","webp","psd","svg","tiff"]).indexOf(t))},Creator.isHtmlAttachment=function(e){var t,r;return!(e.split(".").length<2)&&(t=e.split(".").pop().toLowerCase(),-1!==(r=["html","htm"]).indexOf(t))}),Meteor.startup((function(){return $(document).on("click",(function(e){return $(e.target).closest(".slds-table td").length<1?$(".slds-table").addClass("slds-no-cell-focus"):$(".slds-table").removeClass("slds-no-cell-focus")})),$(window).resize((function(){if($(".list-table-container table.dataTable").length)return $(".list-table-container table.dataTable thead th").each((function(){var e;return e=$(this).outerWidth(),$(".slds-th__action",this).css("width",e+"px")}))})),$(document).keydown((function(e){if("13"===e.keyCode||"Enter"===e.key){if($(".modal").length>1)return;if("TEXTAREA"!==e.target.tagName||$(e.target).closest("div").hasClass("bootstrap-tagsinput")){if("update"===Session.get("cmOperation"))return e.preventDefault(),e.stopPropagation(),$(".creator-auotform-modals .btn-update").click();if("insert"===Session.get("cmOperation"))return e.preventDefault(),e.stopPropagation(),$(".creator-auotform-modals .btn-insert").click()}}}))}))},"colors.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n,i;n="border-radius: 10px;padding: 1px 6px;display: inline-block;",i=function(e){return 3===(e=e.slice(1)).length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:Number.parseInt(e.slice(0,2),16),g:Number.parseInt(e.slice(2,4),16),b:Number.parseInt(e.slice(4,6),16)}},a=function(e,t,r){var o,a,n,s;return.299*(n=(s=i(e)).r)+.587*(a=s.g)+.114*(o=s.b)>186?r:t},o=function(e,t,r){var o,a,n,s,c,l,u;return(o=.2126*(n=(u=[(c=(l=i(e)).r)/255,(s=l.g)/255,(a=l.b)/255]).map((function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})))[0]+.7152*n[1]+.0722*n[2])>.179?r:t},r=function(e){var t,r;return r=[],t=e.fields,_.each(t,(function(t,a){var i;if(i=t.options,_.isFunction(i)&&(i=i({})),"select"===t.type&&(null!=i?i.length:void 0))return _.each(i,(function(t){var i,s;if(t.color)return i=t.color,/^#/.test(i)||(i="#"+i),s=o(i,"#fff","#333"),r.push(".creator-cell-color-"+e.name+"-"+a+"-"+t.value+"{"+n+"background:"+i+";color:"+s+";}")}))})),r},Creator.appendObjectFieldsColorStyles=function(){var e,t;return $("#object_fields_color_styles").remove(),t=[],_.each(Creator.Objects,(function(e){return t=_.union(t,r(e))})),t.push(".creator-cell-multiple-color{\n\tmargin-right:1px;\n}\n@media (max-width:767px) {\n\t.creator-cell-multiple-color{\n\t\tmargin-right:4px;\n\t}\n}"),e=$('"),$("head").append(e)}},"temp_navs.coffee":function e(){var r=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},o,a,n,i,s,c,l,u,d,p;s=!1,a=function(){var e;if(e=sessionStorage.getItem("temp_navs"))return e.split(",").map((function(e){var t;return{name:(t=e.split(":"))[0],url:t[1],label:t[2],is_temp:!0}}))},n=function(e,t,r){return sessionStorage.getItem("temp_navs_id")},d=function(e){return sessionStorage.setItem("temp_navs_id",e)},p=function(e){var t,r;return e||(e=[]),t=(r=e.map((function(e){var t;return t=e.name,e.url&&(t+=":"+e.url),e.label&&(t+=":"+e.label),t}))).join(","),sessionStorage.setItem("temp_navs",t)},c=[],o=function(e,t){var r;return r=t||Creator.getObjectUrl(e),c.push(r)},u=function(e,t){var r,o;if(o=t||Creator.getObjectUrl(e),(r=c.indexOf(o))>-1)return c.splice(r,1)},i=function(e,t){var r,o,a,n,i,s;for(r=t||Creator.getObjectUrl(e),o=2,s=6,i=!1;!i&&o<8&&!((a=urlQuery.length-o)<0);)n=urlQuery[a],__meteor_runtime_config__.ROOT_URL_PATH_PREFIX+n!==r?(i=n&&c.indexOf(__meteor_runtime_config__.ROOT_URL_PATH_PREFIX+n)<0,o++):o++;return i?n:null},l=function(e,t,r,a){var n,s,c,l,u,d,p,f,m;return n=Session.get("object_name"),s=Session.get("record_id"),t?(l=(c=Creator.getObjectUrl(n,s))===t)||(l=FlowRouter.current().path===t):l=n===e,l?(d=i(e,t),o(e,t),d?(FlowRouter.go(d),urlQuery.pop(),urlQuery.pop()):((f=r[a])||(f=r[a-1]),f?(m=f.url?f.url:Creator.getObjectUrl(f.name),FlowRouter.redirect(m)):(u=(p=Creator.getAppMenus())[p.length-1],FlowRouter.redirect(u.path)))):o(e,t)},Creator.getTempNavs=function(){var e;return(e=Session.get("temp_navs"))||(e=a())&&Session.set("temp_navs",e),e},Creator.getTempNavsId=function(){var e;return(e=Session.get("temp_navs_id"))||(e=n())&&Session.set("temp_navs_id",e),e},Creator.createTempNav=function(e,t,r){var o,a;if(t||!(["users","cms_files","cfs.files.filerecord"].indexOf(e)>-1))return(a=Creator.getTempNavs())||(a=[]),(o=a.find((function(r){return t?r.name===e&&r.url===t:r.name===e})))?void 0:(a.push({name:e,url:t,label:r,is_temp:!0}),Session.set("temp_navs",a),p(a),u(e,t))},Creator.updateTempNavLabel=function(e,t,r){var o,a;if(t&&r)return(a=Creator.getTempNavs())||(a=[]),(o=a.find((function(r){return r.name===e&&r.url===t})))?(o.label=r,Session.set("temp_navs",a),p(a)):void 0},Creator.removeTempNavItem=function(e,t){var r,o,a;if((a=Session.get("temp_navs"))&&(o=null,r=a.filter((function(r,a){var n;return(n=t?r.name===e&&r.url===t:r.name===e)&&(o=a),!n})),_.isNumber(o)))return s=!0,l(e,t,r,o),Meteor.defer((function(){return Session.set("temp_navs",r),p(r),s=!1})),!0},Creator.resetTempNavsIfNeeded=function(){var e,t,r;if((t=(r=Creator.getTempNavsId())!==(e=Meteor.userId()+":"+Steedos.spaceId()+":"+Session.get("app_id")))&&(Session.set("temp_navs",null),p(null),c.length=0),t||!Session.get("temp_navs_id"))return Session.set("temp_navs_id",e),d(e)},Meteor.startup((function(){if(!Steedos.isMobile())return Tracker.autorun((function(){var e,t;if(Creator.bootstrapLoaded.get()&&(t=Session.get("spaceId"),e=Session.get("app_id"),t&&e))return Creator.resetTempNavsIfNeeded()})),Tracker.autorun((function(e){var r,o,a,n,i,c,l,u,d,p,f,m,g,v,h;if(u=Session.get("object_name"),v=Session.get("tab_name"),p=Session.get("record_id"),i=Creator.getAppMenus(),u&&i&&i.length&&(f=Session.get("record_name"),n=_.pluck(i,"id"),o=Session.get("temp_navs_force_create"),(null!=n?n.indexOf(u||v):void 0)<0||o)){if(o&&s)return void Session.set("temp_navs_force_create",!1);if(!(l=Creator.getObject(u)))return;if(p){if(!(d=Creator.getObjectRecord()))return;if(h=Creator.getObjectUrl(u,p),o&&(r=urlQuery[urlQuery.length-3])&&(g=new RegExp(r+"$")).test(h))return void Session.set("temp_navs_force_create",!1);a=f||("cfs.files.filerecord"===u?t("cfs_files_filerecord__object")+"-"+(null!=d&&null!=(m=d.original)?m.name:void 0):d[c=l.NAME_FIELD_KEY||"name"]),Creator.createTempNav(u,h,a)}else Creator.createTempNav(u);if(o)return Session.set("temp_navs_force_create",!1)}}))}))},"router.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{},r,o,a,n;this.urlQuery=new Array,o=function(e,t){var r,o;Meteor.userId()&&(Creator.pushCurrentPathToUrlQuery(),"-"!==(r=e.params.app_id)&&r&&Session.get("app_id")!==r?Session.set("app_id",r):"-"!==r||Session.get("app_id")||(o=Steedos.getFirstApp(),Session.set("app_id",o.id)))},n=function(e,t){var r,o,a,n;if(o=Tracker.nonreactive((function(){return Session.get("object_name")})),a=Tracker.nonreactive((function(){return Session.get("record_id")})),r=e.params.object_name,n=e.params.record_id,Session.set("object_name",r),Session.set("tab_name",null),Session.set("pageApiName",null),Session.set("record_id",n),Session.set("record_name",null),n&&(o&&o!==r||a&&n!==a))return Session.set("temp_navs_force_create",!0)},r=function(e,t){var r;if("admin"===(r=e.params.app_id)&&Steedos.isMobile())return t("/user_settings"),urlQuery.pop()},FlowRouter.route("/app",{triggersEnter:[o],action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"creator_app_home"})}}),FlowRouter.route("/app/menu",{triggersEnter:[o],action:function(e,t){var r;return r="app_object_menu",Session.set("hidden_header",!0),BlazeLayout.render(Creator.getLayout(),{main:r})},triggersExit:[function(e,t){if(Steedos.isMobile())return Session.set("hidden_header",void 0)}]}),FlowRouter.route("/app/:app_id",{triggersEnter:[o],action:function(e,t){var r,o,a;return"-"!==(o=FlowRouter.getParam("app_id"))&&(Session.set("object_name",null),Session.set("record_id",null),Session.set("app_id",o)),Session.set("admin_template_name",null),a=(r=Creator.getApp(o))&&r.is_use_iframe?"creator_app_iframe":"creator_app_home",BlazeLayout.render(Creator.getLayout(),{main:a})}}),FlowRouter.route("/app/:app_id/page/:page_id",{triggersEnter:[o],action:function(e,t){var r,o;return console.log("params",e),r=FlowRouter.getParam("app_id"),o=null!=e?e.page_id:void 0,Session.set("pageApiName",o),Session.set("object_name",null),BlazeLayout.render(Creator.getLayout(),{main:"page_template",regions:{appId:r,pageId:o}})},triggersExit:[function(e,t){return Session.set("pageApiName",null)}]}),FlowRouter.route("/page/:page_id/",{action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"page"})}}),FlowRouter.route("/app/:app_id/tab_iframe/:tab_id",{triggersEnter:[o],action:function(e,t){var r;return r=FlowRouter.getParam("tab_id"),Session.set("tab_name",r),Session.set("object_name",null),BlazeLayout.render(Creator.getLayout(),{main:"page_iframe",regions:{params:e,queryParams:t}})},triggersExit:[function(e,t){return Session.set("tab_name",null)}]}),(a=FlowRouter.group({prefix:"/app/:app_id/:object_name",name:"objectRoutes",triggersEnter:[o,n]})).route("/",{triggersEnter:[function(e,t){var r,o,a,n,i;return n=e.params.object_name,o=(null!=(a=window.getFirstListView(n))?a.name:void 0)||(null!=a?a._id:void 0),t(i="/app/"+(r=e.params.app_id)+"/"+n+"/grid/"+o)}],action:function(e,t){return BlazeLayout.render(Creator.getLayout(),{main:"object_home"})}}),a.route("/:record_id/:related_object_name/grid",{action:function(e,t){var r,o,a,n,i,s,c,l;return o={app_id:r=Session.get("app_id"),object_name:n=FlowRouter.getParam("object_name"),record_id:s=FlowRouter.getParam("record_id"),related_object_name:l=FlowRouter.getParam("related_object_name")},Session.set("related_object_name",l),a="related_object_list",(i=Steedos.Page.getPage("related_list",r,l))&&(a="page_related_list_view",c={page:i,appId:Session.get("app_id"),objectName:n,recordId:s,relatedObjectName:l,__timestamp:(new Date).getTime()}),Meteor.setTimeout((function(){return BlazeLayout.render(Creator.getLayout(),{main:a,regions:c})}),10)}}),a.route("/view/:record_id",{action:function(e,t){var r,o,a,n,i,s,c;return t["X-Space-Id"]&&Steedos.setSpaceId(t["X-Space-Id"]),o={app_id:r=FlowRouter.getParam("app_id"),object_name:n=FlowRouter.getParam("object_name"),record_id:s=FlowRouter.getParam("record_id")},ObjectRecent.insert(n,s),Session.set("detail_info_visible",!0),a="creator_view",(i=Steedos.Page.getPage("record",Session.get("app_id"),n,s))&&(a="page_object",c=window._.defaultsDeep({display:Steedos.Page.getDisplay(n)},FlowRouter.current().queryParams,{page:i,appId:Session.get("app_id"),recordId:s,objectName:n,pageType:"record",__timestamp:(new Date).getTime()})),Meteor.setTimeout((function(){return BlazeLayout.render(Creator.getLayout(),{main:a,regions:c})}),10)},triggersExit:[function(e,t){var r,o,a,n;if(Session.get("instance_change")&&("instances"===(null!=(r=e.params)?r.object_name:void 0)&&"draft"===(null!=(o=e.queryParams)?o.side_listview_id:void 0)||"instance_tasks"===(null!=(a=e.params)?a.object_name:void 0)&&"inbox"===(null!=(n=e.queryParams)?n.side_listview_id:void 0)))return InstanceManager.saveIns(!1)}]}),a.route("/grid/:list_view_id",{action:function(e,t){var r,o,a,n,i;return Session.set("record_id",null),Session.get("object_name")===FlowRouter.getParam("object_name")&&Session.get("list_view_id")===FlowRouter.getParam("list_view_id")||(Session.set("filter_target",null),Session.set("filter_items",null)),Session.get("object_name")!==FlowRouter.getParam("object_name")&&Session.set("list_view_id",null),"true"===(null!=t?t.hidden_header:void 0)&&Session.set("hidden_header",!0),"-"!==(r=FlowRouter.getParam("app_id"))&&Session.set("app_id",r),a=FlowRouter.getParam("object_name"),Session.set("object_name",a),Session.set("list_view_id",FlowRouter.getParam("list_view_id")),Session.set("list_view_visible",!1),Tracker.afterFlush((function(){return Session.set("list_view_visible",!0)})),(n=Steedos.Page.getPage("list",Session.get("app_id"),a))&&(o="page_object",i=window._.defaultsDeep({display:Steedos.Page.getDisplay(a)},FlowRouter.current().queryParams,{page:n,appId:Session.get("app_id"),objectName:a,listViewId:Session.get("list_view_id"),pageType:"list",__timestamp:(new Date).getTime()})),BlazeLayout.render(Creator.getLayout(),{main:o,regions:i})}}),FlowRouter.notFound={action:function(e,t){var r;try{throw new Error("404 not found:"+window.location.href)}catch(o){r=o,console.log(r,window.location.href)}return BlazeLayout.render("empty_layout",{main:"notFound"})}}},"tenant.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};$.getJSON("/accounts/settings",(function(e){if(null!=e?e.tenant:void 0)return Session.set("tenant_settings",e.tenant)}))},"animate.js":function e(){$.fn.extend({animateCss:function(e,t){var r=function(e){var t={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(var r in meteorBabelHelpers.sanitizeForInObject(t))if(void 0!==e.style[r])return t[r]}(document.createElement("div"));return this.addClass("animated "+e).one(r,(function(){$(this).removeClass("animated "+e),"function"==typeof t&&t()})),this}})},"colResizable-1.6.js":function e(){!function(e){var t=e(document),r=e("head"),o=null,a={},n=0,i="id",s="px",c="JColResizer",l="JCLRFlex",u=parseInt,d=Math,p=navigator.userAgent.indexOf("Trident/4.0")>0,f;try{f=sessionStorage}catch(T){}r.append("");var m=function(t,o){var s=e(t);if(s.opt=o,s.mode=o.resizeMode,s.dc=s.opt.disabledColumns,s.opt.disable)return _(s);var l=s.id=s.attr(i)||c+n++;s.p=s.opt.postbackSafe,!s.is("table")||a[l]&&!s.opt.partialRefresh&&s.prev(".JCLRgrips").length>0||("col-resize"!==s.opt.hoverCursor&&r.append(""),s.addClass(c).attr(i,l).before('
'),s.g=[],s.c=[],s.w=s.width(),s.gc=s.prev(),s.f=s.opt.fixed,o.marginLeft&&s.gc.css("marginLeft",o.marginLeft),o.marginRight&&s.gc.css("marginRight",o.marginRight),s.cs=u(p?t.cellSpacing||t.currentStyle.borderSpacing:s.css("border-spacing"))||2,s.b=u(p?t.border||t.currentStyle.borderLeftWidth:s.css("border-left-width"))||1,a[l]=s,g(s))},_=function(e){var t=e.attr(i),e;(e=a[t])&&e.is("table")&&(e.removeClass(c+" "+l).gc.remove(),delete a[t])},g=function(t){var r=t.find(">thead>tr:first>th,>thead>tr:first>td");r.length||(r=t.find(">tbody>tr:first>th,>tr:first>th,>tbody>tr:first>td, >tr:first>td")),r=r.filter(":visible"),t.cg=t.find("col"),t.ln=r.length,t.p&&f&&f[t.id]&&v(t,r),r.each((function(r){var o=e(this),a=-1!=t.dc.indexOf(r),n=e(t.gc.append('
')[0].lastChild);n.append(a?"":t.opt.gripInnerHtml).append('
'),r==t.ln-1&&(n.addClass("JCLRLastGrip"),t.f&&n.html("")),n.bind("touchstart mousedown",y),a?n.addClass("JCLRdisabledGrip"):n.removeClass("JCLRdisabledGrip").bind("touchstart mousedown",y),n.t=t,n.i=r,n.c=o,o.w=o.width(),t.g.push(n),t.c.push(o),o.width(o.w).removeAttr("width"),n.data(c,{i:r,t:t.attr(i),last:r==t.ln-1})})),t.cg.removeAttr("width"),t.find("td, th").not(r).not("table th, table td").each((function(){e(this).removeAttr("width")})),t.f||t.removeAttr("width").addClass(l),h(t)},v=function(e,t){var r,o=0,a=0,n=[],i;if(t){if(e.cg.removeAttr("width"),e.opt.flush)return void(f[e.id]="");for(i=(r=f[e.id].split(";"))[e.ln+1],!e.f&&i&&(e.width(i*=1),e.opt.overflow&&(e.css("min-width",i+s),e.w=i));a*{cursor:"+s.opt.dragCursor+"!important}"),l.addClass(s.opt.draggingClass),o=l,s.c[i.i].l)for(var d=0,p;d Date: Sun, 8 Oct 2023 11:08:51 +0000 Subject: [PATCH 04/32] docker: show loading page when steedos error 502 & 503 --- .../enterprise/fs/opt/steedos/templates/nginx-app.conf.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh b/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh index ca46c535b6..dd3f9c5bf3 100755 --- a/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh +++ b/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh @@ -77,9 +77,10 @@ fi gzip on; gzip_types *; - # root /opt/steedos/public; # index index.html; # error_page 404 /; + error_page 502 /nginx/loading; + error_page 503 /nginx/loading; # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors # add_header Content-Security-Policy "frame-ancestors ${STEEDOS_ALLOWED_FRAME_ANCESTORS-'self' *}"; @@ -144,5 +145,10 @@ fi proxy_set_header Connection ""; proxy_pass http://localhost:3100/; } + + location /nginx/ { + root ${NGINX_WWW_PATH}; + try_files \$uri \$uri/ /index.html =404; + } } EOF \ No newline at end of file From ae9bff7d9d2bf380a9cce4a7133face6c8aeebb9 Mon Sep 17 00:00:00 2001 From: baozhoutao Date: Mon, 9 Oct 2023 14:10:25 +0800 Subject: [PATCH 05/32] fix bug: #5533 #5537 --- .../main/default/manager/loader.js | 6 ++++-- .../project.package.service.js | 13 ++++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/services/service-package-registry/main/default/manager/loader.js b/services/service-package-registry/main/default/manager/loader.js index 46518731de..e9e139281f 100644 --- a/services/service-package-registry/main/default/manager/loader.js +++ b/services/service-package-registry/main/default/manager/loader.js @@ -23,7 +23,7 @@ const loadPackagesConfig = ()=>{ return yaml.load(fs.readFileSync(packagesFilePath, 'utf8')) || {}; } -const appendToPackagesConfig = (packageName, options)=>{ +const appendToPackagesConfig = (packageName, options, actionName)=>{ let packages = loadPackagesConfig(); let changeNamePackage = null; if(options.local && !packages[packageName]){ @@ -46,7 +46,9 @@ const appendToPackagesConfig = (packageName, options)=>{ } }else{ // 对于已经存在的软件包, 不支持使用传入的enable控制软件包状态. - delete options.enable + if(actionName === 'addPackage'){ + delete options.enable + } packages[packageName] = Object.assign(packages[packageName], options) } }else{ diff --git a/services/service-package-registry/project.package.service.js b/services/service-package-registry/project.package.service.js index 814c34572d..ffc6c58a4d 100644 --- a/services/service-package-registry/project.package.service.js +++ b/services/service-package-registry/project.package.service.js @@ -92,11 +92,15 @@ module.exports = { async handler(ctx) { const { module } = ctx.params const packages = loader.loadPackagesConfig(); - const packageConfig = _.find(packages, (_p, pname) => { + let packageConfig = _.find(packages, (_p, pname) => { + _p.name = pname; return pname === module; }) if (packageConfig) { if (packageConfig.enable) { + if(packageConfig.static){ + packageConfig = Object.assign({}, packageConfig, this.getStaticPackageInfo(packageConfig, packageConfig.name)) + } if (packageConfig.local) { let packagePath = packageConfig.path; if(!path.isAbsolute(packagePath)){ @@ -129,7 +133,10 @@ module.exports = { disablePackage:{ async handler(ctx) { const { module } = ctx.params - const packageConfig = await loader.disablePackage(module); + let packageConfig = await loader.disablePackage(module); + if(packageConfig.static){ + packageConfig = Object.assign({}, packageConfig, this.getStaticPackageInfo(packageConfig, packageConfig.name)) + } if(packageConfig.path){ const metadata = await loader.getPackageMetadata(util.getPackageRelativePath(process.cwd(), packageConfig.path)); const packageYmlData = loader.getPackageYmlData(packageConfig.path); @@ -421,7 +428,7 @@ module.exports = { if(!_.has(options, 'static')){ options.static = true } - loader.appendToPackagesConfig(name, options) + loader.appendToPackagesConfig(name, options, 'addPackage') await this.installPackagesSyncToMetaData(name); } } From ad152c71e59d74083aea977380af2b13689601aa Mon Sep 17 00:00:00 2001 From: baozhoutao Date: Mon, 9 Oct 2023 15:46:24 +0800 Subject: [PATCH 06/32] =?UTF-8?q?fix=20[Bug]:=20=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=A1=B5=E9=9D=A2=E6=8A=A5=E9=94=99=E2=80=9C?= =?UTF-8?q?Cannot=20read=20property=20'=5Fid'=20of=20undefined=E2=80=9D=20?= =?UTF-8?q?#5534?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/default/applications/new8.app.yml | 12 +++++ .../main/default/applications/new8.app.yml | 12 +++++ .../buttons/amis_nav_schema_design.button.js | 46 +++++++++---------- .../main/default/triggers/apps.trigger.js | 10 ++-- 4 files changed, 53 insertions(+), 27 deletions(-) create mode 100644 examples/project-template/steedos-app/main/default/applications/new8.app.yml create mode 100644 examples/project-template/steedos-app2/main/default/applications/new8.app.yml diff --git a/examples/project-template/steedos-app/main/default/applications/new8.app.yml b/examples/project-template/steedos-app/main/default/applications/new8.app.yml new file mode 100644 index 0000000000..4168166393 --- /dev/null +++ b/examples/project-template/steedos-app/main/default/applications/new8.app.yml @@ -0,0 +1,12 @@ +name: new8 +code: new8 +icon_slds: account +is_creator: true +mobile: true +sort: 1 +tab_items: + calendar_objects_list: + index: 1 +tabs: + - calendar_objects_list +visible: true diff --git a/examples/project-template/steedos-app2/main/default/applications/new8.app.yml b/examples/project-template/steedos-app2/main/default/applications/new8.app.yml new file mode 100644 index 0000000000..4168166393 --- /dev/null +++ b/examples/project-template/steedos-app2/main/default/applications/new8.app.yml @@ -0,0 +1,12 @@ +name: new8 +code: new8 +icon_slds: account +is_creator: true +mobile: true +sort: 1 +tab_items: + calendar_objects_list: + index: 1 +tabs: + - calendar_objects_list +visible: true diff --git a/services/standard-ui/main/default/objects/apps/buttons/amis_nav_schema_design.button.js b/services/standard-ui/main/default/objects/apps/buttons/amis_nav_schema_design.button.js index 0be9393384..1865be2223 100644 --- a/services/standard-ui/main/default/objects/apps/buttons/amis_nav_schema_design.button.js +++ b/services/standard-ui/main/default/objects/apps/buttons/amis_nav_schema_design.button.js @@ -2,30 +2,30 @@ * @Author: baozhoutao@steedos.com * @Date: 2023-04-11 14:05:42 * @LastEditors: baozhoutao@steedos.com - * @LastEditTime: 2023-04-11 14:08:41 + * @LastEditTime: 2023-10-09 15:44:47 * @Description: */ module.exports = { - amis_nav_schema_design: function (object_name, record_id) { - document.location = Steedos.absoluteUrl(`/api/amisAppNavSchemaDesign?id=${record_id}&object=${this.record.object_name}&assetUrls=${Builder.settings.assetUrls}&locale=${Builder.settings.locale}`); - }, - amis_nav_schema_designVisible: function (object_name, record_id, record_permissions) { - var perms= {}; - var record = Creator.getObjectRecord(object_name, record_id); - if(!record){ - return false; - } - if(!record.enable_nav_schema){ - return false; - } - if (record_permissions) { - perms = record_permissions; - } else { - record_permissions = Creator.getRecordPermissions(object_name, record, Meteor.userId()); - if (record_permissions) { - perms = record_permissions; - } - } - return perms["allowEdit"]; + amis_nav_schema_design: function (object_name, record_id) { + document.location = Steedos.absoluteUrl(`/api/amisAppNavSchemaDesign?id=${record_id}&object=${this.record.object_name}&assetUrls=${Builder.settings.assetUrls}&locale=${Builder.settings.locale}`); + }, + amis_nav_schema_designVisible: function (object_name, record_id, record_permissions, data) { + var perms = {}; + var record = data.record; + if (!record) { + return false; } - } \ No newline at end of file + if (!record.enable_nav_schema) { + return false; + } + if (record_permissions) { + perms = record_permissions; + } else { + record_permissions = Creator.getRecordPermissions(object_name, record, Meteor.userId()); + if (record_permissions) { + perms = record_permissions; + } + } + return perms["allowEdit"]; + } +} \ No newline at end of file diff --git a/services/standard-ui/main/default/triggers/apps.trigger.js b/services/standard-ui/main/default/triggers/apps.trigger.js index 7d68e0e0da..f9cf62fed5 100644 --- a/services/standard-ui/main/default/triggers/apps.trigger.js +++ b/services/standard-ui/main/default/triggers/apps.trigger.js @@ -1,8 +1,8 @@ /* * @Author: baozhoutao@steedos.com * @Date: 2022-08-05 14:17:44 - * @LastEditors: 孙浩林 sunhaolin@steedos.com - * @LastEditTime: 2023-07-22 11:09:28 + * @LastEditors: baozhoutao@steedos.com + * @LastEditTime: 2023-10-09 15:46:06 * @Description: */ const _ = require('underscore'); @@ -81,8 +81,10 @@ module.exports = { if(id && _.isEmpty(this.data.values)){ let lng = await getLng(this.userId); let app = await objectql.getAppConfig(id); - i18n.translationApp(lng, app._id, app) - Object.assign(this.data.values, Object.assign({code: app._id}, clone(app), baseRecord)) + if(app){ + i18n.translationApp(lng, app._id, app) + Object.assign(this.data.values, Object.assign({code: app._id}, clone(app), baseRecord)) + } } } } \ No newline at end of file From 1838832921007ff61b771cde1ccda669c48c78c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Mon, 9 Oct 2023 08:36:13 +0000 Subject: [PATCH 07/32] =?UTF-8?q?docker:=20=E6=96=87=E4=BB=B6=E5=A4=B9?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E5=85=BC=E5=AE=B9=E6=97=A7=E7=89=88=20docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/cluster/docker-compose.yml | 2 +- deploy/enterprise/Dockerfile | 20 +++++++++++-------- deploy/enterprise/docker-compose.yml | 1 - .../templates/supervisord/steedos.conf | 2 +- .../steedos/templates/supervisord/unpkg.conf | 2 +- 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/deploy/cluster/docker-compose.yml b/deploy/cluster/docker-compose.yml index df89c1f184..bade07c06a 100644 --- a/deploy/cluster/docker-compose.yml +++ b/deploy/cluster/docker-compose.yml @@ -13,7 +13,7 @@ services: - 8080:80 steedos: - image: steedos/steedos-enterprise:2.5.15-beta.10 + image: steedos/steedos-enterprise:2.5.15-beta.12 scale: 2 environment: - MONGO_URL=mongodb://mongodb:27017/steedos diff --git a/deploy/enterprise/Dockerfile b/deploy/enterprise/Dockerfile index 9575eb78ac..3e1d2cdef7 100644 --- a/deploy/enterprise/Dockerfile +++ b/deploy/enterprise/Dockerfile @@ -71,22 +71,30 @@ RUN apt-get update \ && apt-get remove -y git python3-pip python3-venv \ && apt-get clean -y -COPY ./app /app +# platform +COPY ./app/platform /app ENV NODE_ENV=production -WORKDIR /app/unpkg +WORKDIR /app RUN npm i --production && npm cache clean --force -WORKDIR /app/steedosctl +# steedosctl +COPY ./app/steedosctl /opt/steedos/steedosctl + +WORKDIR /opt/steedos/steedosctl RUN npm install --only=prod && npm install --only=prod -g -WORKDIR /app/platform +# unpkg +COPY ./app/unpkg /opt/steedos/unpkg +WORKDIR /opt/steedos/unpkg RUN npm i --production && npm cache clean --force +COPY ./fs / + # Remove cached files RUN rm -rf \ /root/.cache \ @@ -98,8 +106,6 @@ RUN rm -rf \ /var/lib/apt/lists/* \ /tmp/* -COPY ./fs/etc /etc -COPY ./fs/opt /opt # Set workdir to /opt/steedos WORKDIR /opt/steedos @@ -128,8 +134,6 @@ ENV ROOT_URL=http://127.0.0.1:3000 \ # Define volumes - Service Layer VOLUME [ "/steedos-stacks" ] -WORKDIR /opt/steedos/platform - ENTRYPOINT [ "/opt/steedos/entrypoint.sh" ] HEALTHCHECK --interval=15s --timeout=15s --start-period=45s CMD "/opt/steedos/healthcheck.sh" diff --git a/deploy/enterprise/docker-compose.yml b/deploy/enterprise/docker-compose.yml index 9ea3d0b354..501ccc0794 100644 --- a/deploy/enterprise/docker-compose.yml +++ b/deploy/enterprise/docker-compose.yml @@ -11,7 +11,6 @@ services: ports: - "80:80" - "443:443" - - "3000:3000" - "9001:9001" environment: - ROOT_URL=http://127.0.0.1:3000 diff --git a/deploy/enterprise/fs/opt/steedos/templates/supervisord/steedos.conf b/deploy/enterprise/fs/opt/steedos/templates/supervisord/steedos.conf index 81cee50bb3..c8a8c1f8d7 100644 --- a/deploy/enterprise/fs/opt/steedos/templates/supervisord/steedos.conf +++ b/deploy/enterprise/fs/opt/steedos/templates/supervisord/steedos.conf @@ -1,5 +1,5 @@ [program:steedos] -directory=/app/platform/ +directory=/app/ command=/opt/steedos/run-with-env.sh ./node_modules/.bin/steedos start --config steedos.config.js priority=15 autostart=true diff --git a/deploy/enterprise/fs/opt/steedos/templates/supervisord/unpkg.conf b/deploy/enterprise/fs/opt/steedos/templates/supervisord/unpkg.conf index 9f7208ee0d..06c615135f 100644 --- a/deploy/enterprise/fs/opt/steedos/templates/supervisord/unpkg.conf +++ b/deploy/enterprise/fs/opt/steedos/templates/supervisord/unpkg.conf @@ -1,5 +1,5 @@ [program:unpkg] -directory=/app/unpkg/ +directory=/opt/steedos/unpkg/ command=/opt/steedos/run-with-env.sh node server.js priority=15 autostart=true From 09adea8a282e5e92babc6e5c24c32774a44ec356 Mon Sep 17 00:00:00 2001 From: baozhoutao Date: Mon, 9 Oct 2023 17:20:37 +0800 Subject: [PATCH 08/32] Update base.client.js --- packages/standard-objects/base.client.js | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/standard-objects/base.client.js b/packages/standard-objects/base.client.js index 77fe57d1e7..4555fa6f9d 100644 --- a/packages/standard-objects/base.client.js +++ b/packages/standard-objects/base.client.js @@ -71,7 +71,6 @@ Steedos.StandardObjects = { }, standard_approve:{ visible: function (object_name, record_id, record_permissions, props) { - console.log('standard_approve=====?>'); if (!Session.get("record_id")) { /*只在详细界面显示这个action*/ return false; From 11ed8c90fbe8e7484aa27e3255853bdc10dc74a6 Mon Sep 17 00:00:00 2001 From: baozhoutao Date: Mon, 9 Oct 2023 17:21:08 +0800 Subject: [PATCH 09/32] Update page.render.client.js --- .../service-pages/main/default/client/page.render.client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/service-pages/main/default/client/page.render.client.js b/services/service-pages/main/default/client/page.render.client.js index ae14925357..e96f644f4a 100644 --- a/services/service-pages/main/default/client/page.render.client.js +++ b/services/service-pages/main/default/client/page.render.client.js @@ -276,7 +276,7 @@ $scopeId : schema.name || schema.id } }); - console.log(`defData`, defData) + // console.log(`defData`, defData) schema = lodash.defaultsDeep(defData , schema); From a618272f71774d25c8b8d629af7085f8fd640a3b Mon Sep 17 00:00:00 2001 From: baozhoutao Date: Mon, 9 Oct 2023 17:22:06 +0800 Subject: [PATCH 10/32] =?UTF-8?q?=E6=B8=85=E7=90=86log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/default/client/amis.render.client.js | 4 ++-- .../standard-space/main/default/client/badge.client.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/services/service-plugin-amis/main/default/client/amis.render.client.js b/services/service-plugin-amis/main/default/client/amis.render.client.js index af5aaff92f..db64bd0885 100644 --- a/services/service-plugin-amis/main/default/client/amis.render.client.js +++ b/services/service-plugin-amis/main/default/client/amis.render.client.js @@ -326,8 +326,8 @@ }; window.renderAmis = function (root, schema, data, env) { - console.log("===window.renderAmis===root, env===", root, env); - console.log("===window.renderAmis===data===", data); + // console.log("===window.renderAmis===root, env===", root, env); + // console.log("===window.renderAmis===data===", data); const refName = schema.name || schema.id; if(SteedosUI.refs[refName]){ if(SteedosUI.refs[refName].unmount){ diff --git a/services/standard-space/main/default/client/badge.client.js b/services/standard-space/main/default/client/badge.client.js index 72846db9b5..59a6f64568 100644 --- a/services/standard-space/main/default/client/badge.client.js +++ b/services/standard-space/main/default/client/badge.client.js @@ -1,8 +1,8 @@ /* * @Author: 殷亮辉 yinlianghui@hotoa.com * @Date: 2023-03-05 17:07:58 - * @LastEditors: 殷亮辉 yinlianghui@hotoa.com - * @LastEditTime: 2023-08-22 17:44:06 + * @LastEditors: baozhoutao@steedos.com + * @LastEditTime: 2023-10-09 17:21:35 */ let keyvalues = {}; ; (function () { @@ -101,11 +101,11 @@ function observeBadgeCount(button) { "_id": "Y8dTQRuyaqkRebFPz" } */ - console.log("observed steedos_keyvalues change:", type, doc); + // console.log("observed steedos_keyvalues change:", type, doc); if(doc.space){ keyvalues[doc.key] = doc; sessionStorage.setItem("keyvalues", JSON.stringify(keyvalues)); - console.log("handleAction broadcast for observeBadgeCount"); + // console.log("handleAction broadcast for observeBadgeCount"); // space为null的订阅不触发事件,后续有需要再单独处理 button.props.dispatchEvent('click', { type: type, From 8300f4f3879850f54add5ab816b53d8259fc7ff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Mon, 9 Oct 2023 09:38:20 +0000 Subject: [PATCH 11/32] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=20process.env.STEEDOS=5FLOG=5FLEVEL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/enterprise/app/platform/steedos.config.js | 2 +- deploy/enterprise/docker-compose.yml | 1 + packages/cli/default.steedos.config.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy/enterprise/app/platform/steedos.config.js b/deploy/enterprise/app/platform/steedos.config.js index aa96c31bfe..d0e88b4927 100644 --- a/deploy/enterprise/app/platform/steedos.config.js +++ b/deploy/enterprise/app/platform/steedos.config.js @@ -5,7 +5,7 @@ module.exports = { namespace: "steedos", // Default log level for built-in console logger. It can be overwritten in logger options above. // Available values: trace, debug, info, warn, error, fatal - logLevel: "warn", + logLevel: process.env.STEEDOS_LOG_LEVEL || "warn", // Called after broker started. started(broker) { diff --git a/deploy/enterprise/docker-compose.yml b/deploy/enterprise/docker-compose.yml index 501ccc0794..63bbe12c65 100644 --- a/deploy/enterprise/docker-compose.yml +++ b/deploy/enterprise/docker-compose.yml @@ -15,6 +15,7 @@ services: environment: - ROOT_URL=http://127.0.0.1:3000 - STEEDOS_LICENSE=trial + - STEEDOS_LOG_LEVEL=info tty: true volumes: - "./stacks:/steedos-stacks" diff --git a/packages/cli/default.steedos.config.js b/packages/cli/default.steedos.config.js index 2f6e55fd49..1b2c85e7f7 100644 --- a/packages/cli/default.steedos.config.js +++ b/packages/cli/default.steedos.config.js @@ -111,7 +111,7 @@ module.exports = { // Default log level for built-in console logger. It can be overwritten in logger options above. // Available values: trace, debug, info, warn, error, fatal - logLevel: "warn", + logLevel: process.env.STEEDOS_LOG_LEVEL || "warn", // Define transporter. // More info: https://moleculer.services/docs/0.14/networking.html From 84c70532dd58dbb6bec1785c711f9e20ce8e83f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Mon, 9 Oct 2023 09:38:38 +0000 Subject: [PATCH 12/32] =?UTF-8?q?installPackageFromUrl:=20=E5=AE=8C?= =?UTF-8?q?=E5=96=84=E9=94=99=E8=AF=AF=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/service-package-registry/project.package.service.js | 1 + 1 file changed, 1 insertion(+) diff --git a/services/service-package-registry/project.package.service.js b/services/service-package-registry/project.package.service.js index ffc6c58a4d..64f070e903 100644 --- a/services/service-package-registry/project.package.service.js +++ b/services/service-package-registry/project.package.service.js @@ -196,6 +196,7 @@ module.exports = { const enable = true; return await this.installPackageFromUrl(module, version, url, auth, enable, registry_url, ctx.broker, {fromClient}) } catch (error) { + this.broker.logger.error(`installPackageFromUrl: `, error); let errorInfo = error.message || ''; if (error.stderr) { const errors = error.stderr.split('\n'); From e3d558b0f9e424497fbb304072edb8018ca639d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Mon, 9 Oct 2023 09:38:59 +0000 Subject: [PATCH 13/32] =?UTF-8?q?docker:=20=E5=AE=89=E8=A3=85yarn=201.22?= =?UTF-8?q?=20=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/enterprise/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deploy/enterprise/Dockerfile b/deploy/enterprise/Dockerfile index 3e1d2cdef7..96d10368f7 100644 --- a/deploy/enterprise/Dockerfile +++ b/deploy/enterprise/Dockerfile @@ -71,6 +71,10 @@ RUN apt-get update \ && apt-get remove -y git python3-pip python3-venv \ && apt-get clean -y +# yarn + +RUN npm install --global yarn + # platform COPY ./app/platform /app From c7fa2776daffb5107c4fa2f50f808b0b8100137c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Mon, 9 Oct 2023 09:48:53 +0000 Subject: [PATCH 14/32] =?UTF-8?q?docker:=20=E5=AE=89=E8=A3=85yarn=201.22?= =?UTF-8?q?=20=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/enterprise/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/enterprise/Dockerfile b/deploy/enterprise/Dockerfile index 96d10368f7..e5ff82f1c1 100644 --- a/deploy/enterprise/Dockerfile +++ b/deploy/enterprise/Dockerfile @@ -14,7 +14,7 @@ RUN apt-get update || : && apt-get install -y \ RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - RUN apt-get update \ - && apt-get install -y gnupg curl nodejs yarn + && apt-get install -y gnupg curl nodejs # Install MongoDB 4.4.25 # https://www.mongodb.com/docs/v4.4/tutorial/install-mongodb-on-ubuntu/ From 176d7fcac08ae860f46385816d9fc18a988c46d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Mon, 9 Oct 2023 10:02:14 +0000 Subject: [PATCH 15/32] docker: add info alias --- .../enterprise/fs/opt/steedos/templates/nginx-app.conf.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh b/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh index dd3f9c5bf3..167b290671 100755 --- a/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh +++ b/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh @@ -150,5 +150,11 @@ fi root ${NGINX_WWW_PATH}; try_files \$uri \$uri/ /index.html =404; } + + location = /info.json { + add_header Content-Type application/json; + alias /opt/steedos/info.json; + } + } EOF \ No newline at end of file From 23919465e1b5e59dabed5cf5cb53d589064fa3e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Mon, 9 Oct 2023 10:02:29 +0000 Subject: [PATCH 16/32] docker: push enterprise docker to cn --- .github/workflows/release-docker-enterprise.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/release-docker-enterprise.yml b/.github/workflows/release-docker-enterprise.yml index c69ebd42d3..2bea457a30 100644 --- a/.github/workflows/release-docker-enterprise.yml +++ b/.github/workflows/release-docker-enterprise.yml @@ -43,6 +43,7 @@ jobs: with: images: | steedos/steedos-enterprise + 252208178451.dkr.ecr.cn-northwest-1.amazonaws.com.cn/dockerhub/steedos/steedos-enterprise tags: | type=semver,pattern={{version}},value=${{ env.STEEDOS_VERSION }} type=semver,pattern={{major}}.{{minor}},value=${{ env.STEEDOS_VERSION }} @@ -54,6 +55,18 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_NINGXIA }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_NINGXIA }} + aws-region: cn-northwest-1 + - + name: Login to ECR + uses: docker/login-action@v2 + with: + registry: 252208178451.dkr.ecr.cn-northwest-1.amazonaws.com.cn + - name: Replace Version ~2.5 to Tag uses: jacobtomlinson/gha-find-replace@v2 with: From 1844ca46a39a10cb64769ae62122d9ca18a71f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Mon, 9 Oct 2023 10:02:58 +0000 Subject: [PATCH 17/32] docker: gitingore generated info.json --- deploy/.gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/.gitignore b/deploy/.gitignore index 025a11e0d1..7d4838578d 100644 --- a/deploy/.gitignore +++ b/deploy/.gitignore @@ -1,3 +1,4 @@ stacks .env -mongo-data \ No newline at end of file +mongo-data +info.json \ No newline at end of file From e884ed9a8b691903c0cbe36897394644de1c766b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Mon, 9 Oct 2023 10:41:39 +0000 Subject: [PATCH 18/32] =?UTF-8?q?docker:=20=E5=85=BC=E5=AE=B9=E6=97=A7?= =?UTF-8?q?=E7=9A=84=E6=96=87=E4=BB=B6=E5=A4=B9=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/enterprise/fs/opt/steedos/run-with-env.sh | 2 +- deploy/enterprise/fs/opt/steedos/templates/docker.env.sh | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/deploy/enterprise/fs/opt/steedos/run-with-env.sh b/deploy/enterprise/fs/opt/steedos/run-with-env.sh index 9e8ffa99fd..259803290a 100755 --- a/deploy/enterprise/fs/opt/steedos/run-with-env.sh +++ b/deploy/enterprise/fs/opt/steedos/run-with-env.sh @@ -13,7 +13,7 @@ if [[ -z "${STEEDOS_UNPKG_URL}" ]] && [[ ! -z "${STEEDOS_LICENSE}" ]]; then fi if [[ -z "${STEEDOS_STORAGE_DIR}" ]]; then - export STEEDOS_STORAGE_DIR=/steedos-stacks/storage + export STEEDOS_STORAGE_DIR=/steedos-stacks/ fi mkdir -pv "$STEEDOS_STORAGE_DIR" diff --git a/deploy/enterprise/fs/opt/steedos/templates/docker.env.sh b/deploy/enterprise/fs/opt/steedos/templates/docker.env.sh index 99f3277b05..c8b843c465 100755 --- a/deploy/enterprise/fs/opt/steedos/templates/docker.env.sh +++ b/deploy/enterprise/fs/opt/steedos/templates/docker.env.sh @@ -27,9 +27,6 @@ STEEDOS_ENCRYPTION_SALT=$ENCRYPTION_SALT STEEDOS_SUPERVISOR_USER=steedos STEEDOS_SUPERVISOR_PASSWORD=$SUPERVISOR_PASSWORD -STEEDOS_CFS_STORE=local -STEEDOS_STORAGE_DIR=/steedos-stacks/storage - NPM_CACHE_ENABLED=true NPM_CACHE_FOLDER=/steedos-stacks/unpkg NPM_CACHE_PACKAGE_CONTENT=true From 495f1e1aa9deda4d23a989e6ba603b2881499e9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Tue, 10 Oct 2023 01:17:35 +0000 Subject: [PATCH 19/32] docker: steedos community --- .github/workflows/docker-community.yml | 86 +++++++++++++++++++ ...r-enterprise.yml => docker-enterprise.yml} | 0 deploy/docker/Dockerfile | 29 ++----- deploy/docker/{ => app/platform}/package.json | 0 .../{ => app/platform}/steedos.config.js | 3 +- 5 files changed, 93 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/docker-community.yml rename .github/workflows/{release-docker-enterprise.yml => docker-enterprise.yml} (100%) rename deploy/docker/{ => app/platform}/package.json (100%) rename deploy/docker/{ => app/platform}/steedos.config.js (88%) diff --git a/.github/workflows/docker-community.yml b/.github/workflows/docker-community.yml new file mode 100644 index 0000000000..59fdd302ba --- /dev/null +++ b/.github/workflows/docker-community.yml @@ -0,0 +1,86 @@ +name: Release Docker EE + +on: + workflow_run: + workflows: [Disabled-Release NPM] + types: + - completed + push: + branches: + - 'release/**' + +jobs: + docker: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14.x] + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set Current Version + run: | + STEEDOS_VERSION=$(node -p 'require("./lerna.json").version') + echo "STEEDOS_VERSION=${STEEDOS_VERSION}" >> $GITHUB_ENV + echo "STEEDOS_VERSION=${STEEDOS_VERSION}" + + - name: Generate info.json + run: | + if [[ -f deploy/enterprise/scripts/generate_info_json.sh ]]; then + deploy/enterprise/scripts/generate_info_json.sh + fi + + - uses: docker/setup-qemu-action@v1 + - uses: docker/setup-buildx-action@v1 + with: + driver-opts: network=host + + - name: Docker meta + id: meta + uses: docker/metadata-action@v4 + with: + images: | + steedos/steedos-community + 252208178451.dkr.ecr.cn-northwest-1.amazonaws.com.cn/dockerhub/steedos/steedos-community + tags: | + type=semver,pattern={{version}},value=${{ env.STEEDOS_VERSION }} + type=semver,pattern={{major}}.{{minor}},value=${{ env.STEEDOS_VERSION }} + type=semver,pattern={{major}},value=${{ env.STEEDOS_VERSION }} + + - uses: docker/login-action@v1 + name: Login Docker Hub + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_NINGXIA }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_NINGXIA }} + aws-region: cn-northwest-1 + - + name: Login to ECR + uses: docker/login-action@v2 + with: + registry: 252208178451.dkr.ecr.cn-northwest-1.amazonaws.com.cn + + - name: Replace Version ~2.5 to Tag + uses: jacobtomlinson/gha-find-replace@v2 + with: + include: deploy/docker/app/platform/package.json + find: "~2.5" + replace: ${{env.STEEDOS_VERSION}} + regex: false + + - name: Build and push docker + uses: docker/build-push-action@v3 + with: + context: ./deploy/enterprise + platforms: linux/amd64 #,linux/arm64 + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + diff --git a/.github/workflows/release-docker-enterprise.yml b/.github/workflows/docker-enterprise.yml similarity index 100% rename from .github/workflows/release-docker-enterprise.yml rename to .github/workflows/docker-enterprise.yml diff --git a/deploy/docker/Dockerfile b/deploy/docker/Dockerfile index 59b7e7bd57..5f18beb737 100644 --- a/deploy/docker/Dockerfile +++ b/deploy/docker/Dockerfile @@ -1,35 +1,16 @@ -FROM node:14-slim as builder +FROM node:14-slim RUN apt-get update || : && apt-get install -y \ python \ curl \ build-essential -WORKDIR /app +COPY ./app/platform /app -ADD package.json . -ADD steedos.config.js . +WORKDIR /app ENV NODE_ENV=production -RUN npm i --production && npm cache clean --force - -FROM node:14-slim - -RUN apt-get update \ - && apt-get install curl -y \ - && apt-get install -y build-essential \ - && apt-get clean -y - -WORKDIR / - -RUN mkdir -p /app - -# copy npm scripts -COPY --from=builder /app/package.json ./app/package.json -COPY --from=builder /app/steedos.config.js ./app/steedos.config.js -COPY --from=builder /app/node_modules ./app/node_modules - -WORKDIR /app +RUN yarn --production && yarn cache clean -CMD ["npm", "start"] \ No newline at end of file +CMD ["yarn", "start"] \ No newline at end of file diff --git a/deploy/docker/package.json b/deploy/docker/app/platform/package.json similarity index 100% rename from deploy/docker/package.json rename to deploy/docker/app/platform/package.json diff --git a/deploy/docker/steedos.config.js b/deploy/docker/app/platform/steedos.config.js similarity index 88% rename from deploy/docker/steedos.config.js rename to deploy/docker/app/platform/steedos.config.js index e8ae71ac31..025e5530a1 100644 --- a/deploy/docker/steedos.config.js +++ b/deploy/docker/app/platform/steedos.config.js @@ -3,10 +3,11 @@ module.exports = { namespace: "steedos", // Default log level for built-in console logger. It can be overwritten in logger options above. // Available values: trace, debug, info, warn, error, fatal - logLevel: "warn", + logLevel: process.env.STEEDOS_LOG_LEVEL || "warn", // Called after broker started. started(broker) { broker.createService(require("@steedos/service-community")); }, + }; \ No newline at end of file From 86225814960732aa524447f378f28a1adf63e42b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Tue, 10 Oct 2023 01:28:43 +0000 Subject: [PATCH 20/32] docker: /steedos-stacks -> /steedos-storage --- deploy/.gitignore | 2 +- deploy/docker/docker-compose.yml | 3 ++- deploy/enterprise/Dockerfile | 2 +- deploy/enterprise/README.md | 14 +++++++------- deploy/enterprise/app/steedosctl/bin/backup.js | 10 +++++----- .../enterprise/app/steedosctl/bin/backup.test.js | 14 +++++++------- .../enterprise/app/steedosctl/bin/constants.js | 8 ++++---- deploy/enterprise/app/steedosctl/bin/index.js | 2 +- deploy/enterprise/app/steedosctl/bin/migrate.js | 6 +++--- deploy/enterprise/app/steedosctl/bin/restore.js | 6 +++--- deploy/enterprise/docker-compose.yml | 2 +- .../fs/etc/supervisor/supervisord.conf | 4 ++-- deploy/enterprise/fs/opt/steedos/entrypoint.sh | 16 ++++++++-------- .../enterprise/fs/opt/steedos/init_ssl_cert.sh | 4 ++-- .../fs/opt/steedos/renew-certificate.sh | 8 ++++---- deploy/enterprise/fs/opt/steedos/run-nginx.sh | 2 +- deploy/enterprise/fs/opt/steedos/run-with-env.sh | 6 +++--- .../fs/opt/steedos/templates/docker.env.sh | 2 +- .../fs/opt/steedos/templates/nginx-app.conf.sh | 14 +++++++------- .../opt/steedos/templates/supervisord/cron.conf | 2 +- .../steedos/templates/supervisord/mongodb.conf | 6 +++--- .../opt/steedos/templates/supervisord/nginx.conf | 4 ++-- .../opt/steedos/templates/supervisord/redis.conf | 4 ++-- .../steedos/templates/supervisord/steedos.conf | 2 +- .../opt/steedos/templates/supervisord/unpkg.conf | 2 +- 25 files changed, 73 insertions(+), 72 deletions(-) diff --git a/deploy/.gitignore b/deploy/.gitignore index 7d4838578d..7b40af20ba 100644 --- a/deploy/.gitignore +++ b/deploy/.gitignore @@ -1,4 +1,4 @@ -stacks +storage .env mongo-data info.json \ No newline at end of file diff --git a/deploy/docker/docker-compose.yml b/deploy/docker/docker-compose.yml index 48e2e4b979..dbb5ecaf27 100644 --- a/deploy/docker/docker-compose.yml +++ b/deploy/docker/docker-compose.yml @@ -16,8 +16,9 @@ services: - MONGO_OPLOG_URL=mongodb://mongodb:27017/local - TRANSPORTER=nats://nats:4222 - CACHER=redis://redis:6379 + - STEEDOS_STORAGE_DIR=/steedos-storage volumes: - - "steedos-data:/app/storage" + - "steedos-data:/steedos-storage" depends_on: mongodb: condition: service_healthy diff --git a/deploy/enterprise/Dockerfile b/deploy/enterprise/Dockerfile index e5ff82f1c1..127888d2ec 100644 --- a/deploy/enterprise/Dockerfile +++ b/deploy/enterprise/Dockerfile @@ -136,7 +136,7 @@ ENV ROOT_URL=http://127.0.0.1:3000 \ NODE_ENV=production # Define volumes - Service Layer -VOLUME [ "/steedos-stacks" ] +VOLUME [ "/steedos-storage" ] ENTRYPOINT [ "/opt/steedos/entrypoint.sh" ] diff --git a/deploy/enterprise/README.md b/deploy/enterprise/README.md index 05c868f51a..f57ee864aa 100644 --- a/deploy/enterprise/README.md +++ b/deploy/enterprise/README.md @@ -38,7 +38,7 @@ services: - "443:443" - "9001:9001" volumes: - - ./stacks:/steedos-stacks + - ./storage:/steedos-storage restart: unless-stopped # # Uncomment the lines below to enable auto-update # labels: @@ -88,7 +88,7 @@ To make Steedos Platform available on a custom domain, please update your domain In our container, we support to generate a free SSL certificate If you have your owned certificate, please follow these steps to use it inside the container. - Firstly, please rename your certificate file as `fullchain.pem` and key file as `privkey.pem` -- Then, copy these files into the sub-directory `/ssl/` (*Note: Please change `` by the mounting volume directory in the `docker-compose.yml`. Default is `./stacks`*) +- Then, copy these files into the sub-directory `/ssl/` (*Note: Please change `` by the mounting volume directory in the `docker-compose.yml`. Default is `./storage`*) - Restart the container using `docker restart Steedos Platform` The container will check the certificate files in the folder `/ssl` and use them if they are existed. @@ -108,18 +108,18 @@ Before running this, ensure you are in the directory where `docker-compose.yml` docker-compose exec steedos-enterprise steedosctl export_db ``` -The output file will be stored in the container directory `/steedos-stacks/data/backup/steedos-data.archive`. Thanks to the volume configuration in the `docker-compose.yml` file, it should be available on your host machine at `./stacks/data/backup/steedos-data.archive`. +The output file will be stored in the container directory `/steedos-storage/data/backup/steedos-data.archive`. Thanks to the volume configuration in the `docker-compose.yml` file, it should be available on your host machine at `./storage/data/backup/steedos-data.archive`. If your volume configuration is different or unavailable, you can use the following command to copy the archive file to your host disk: ```sh -docker-compose cp steedos-enterprise:/steedos-stacks/data/backup/steedos-data.archive . +docker-compose cp steedos-enterprise:/steedos-storage/data/backup/steedos-data.archive . ``` Note that you may want to save the `docker.env` file in addition to this archive file, if you intend to be able to reproduce this environment elsewhere, or in case of a disaster. This file can be copied out of the container with the following command: ```sh -docker-compose cp steedos-enterprise:/steedos-stacks/configuration/docker.env . +docker-compose cp steedos-enterprise:/steedos-storage/configuration/docker.env . ``` **Be sure to keep this file safe**, since it contains information that can be used to decrypt datasource information from the database archive. @@ -131,7 +131,7 @@ The following command can restore backup archive, that was produced by the expor First, copy the archive file into the container using the following command: ```sh -docker-compose cp ./steedos-data.archive steedos-enterprise:/steedos-stacks/data/restore/ +docker-compose cp ./steedos-data.archive steedos-enterprise:/steedos-storage/data/restore/ ``` Second, run the following command to import data from this file: @@ -143,7 +143,7 @@ docker-compose exec steedos-enterprise steedosctl import_db Note that when you restore, you may also want to copy a `docker.env` from the original instance into this one. You can use the following command to do this (assuming you are in the installation folder and `docker.env` exists in the same folder): ```sh -docker-compose cp ./docker.env steedos-enterprise:/steedos-stacks/configuration/ +docker-compose cp ./docker.env steedos-enterprise:/steedos-storage/configuration/ ``` This will need a restart of the Steedos Platform server, which can be done using the following command: diff --git a/deploy/enterprise/app/steedosctl/bin/backup.js b/deploy/enterprise/app/steedosctl/bin/backup.js index ef2e1fccec..811a1c16b0 100644 --- a/deploy/enterprise/app/steedosctl/bin/backup.js +++ b/deploy/enterprise/app/steedosctl/bin/backup.js @@ -21,7 +21,7 @@ async function run() { } }); - console.log('Available free space at /steedos-stacks'); + console.log('Available free space at /steedos-storage'); const availSpaceInBytes = getAvailableBackupSpaceInBytes(); console.log('\n'); @@ -87,7 +87,7 @@ async function createManifestFile(path) { async function exportDockerEnvFile(destFolder) { console.log('Exporting docker environment file'); - const content = await fsPromises.readFile('/steedos-stacks/configuration/docker.env', { encoding: 'utf8' }); + const content = await fsPromises.readFile('/steedos-storage/configuration/docker.env', { encoding: 'utf8' }); const cleaned_content = removeSensitiveEnvData(content) await fsPromises.writeFile(destFolder + '/docker.env', cleaned_content); console.log('Exporting docker environment file done.'); @@ -128,7 +128,7 @@ async function executeCopyCMD(srcFolder, destFolder) { function getGitRoot(gitRoot) { if (gitRoot == null || gitRoot === '') { - gitRoot = '/steedos-stacks/git-storage'; + gitRoot = '/steedos-storage/git-storage'; } return gitRoot } @@ -172,12 +172,12 @@ function getTimeStampInISO() { } function getAvailableBackupSpaceInBytes() { - return parseInt(shell.exec('df --output=avail -B 1 /steedos-stacks | tail -n 1'), 10) + return parseInt(shell.exec('df --output=avail -B 1 /steedos-storage | tail -n 1'), 10) } function checkAvailableBackupSpace(availSpaceInBytes) { if (availSpaceInBytes < Constants.MIN_REQUIRED_DISK_SPACE_IN_BYTES) { - throw new Error('Not enough space avaliable at /steedos-stacks. Please ensure availability of atleast 2GB to backup successfully.'); + throw new Error('Not enough space avaliable at /steedos-storage. Please ensure availability of atleast 2GB to backup successfully.'); } } diff --git a/deploy/enterprise/app/steedosctl/bin/backup.test.js b/deploy/enterprise/app/steedosctl/bin/backup.test.js index feae501e8b..85ee94def9 100644 --- a/deploy/enterprise/app/steedosctl/bin/backup.test.js +++ b/deploy/enterprise/app/steedosctl/bin/backup.test.js @@ -12,7 +12,7 @@ test('Timestamp string in ISO format', () => { expect(backup.getTimeStampInISO()).toMatch(/(\d{4})-(\d{2})-(\d{2})T(\d{2})\-(\d{2})\-(\d{2})\.(\d{3})Z/) }); -test('Available Space in /steedos-stacks volume in Bytes', () => { +test('Available Space in /steedos-storage volume in Bytes', () => { shell.exec = jest.fn((format) => '20'); const res = expect(backup.getAvailableBackupSpaceInBytes()) res.toBe(20) @@ -24,11 +24,11 @@ it('Checkx the constant is 2 GB', () => { }); it('Should throw Error when the available size is below MIN_REQUIRED_DISK_SPACE_IN_BYTES', () => { let size = Constants.MIN_REQUIRED_DISK_SPACE_IN_BYTES - 1; - expect(() => {backup.checkAvailableBackupSpace(size)}).toThrow('Not enough space avaliable at /steedos-stacks. Please ensure availability of atleast 2GB to backup successfully.'); + expect(() => {backup.checkAvailableBackupSpace(size)}).toThrow('Not enough space avaliable at /steedos-storage. Please ensure availability of atleast 2GB to backup successfully.'); }); it('Should not hould throw Error when the available size is >= MIN_REQUIRED_DISK_SPACE_IN_BYTES', () => { - expect(() => {backup.checkAvailableBackupSpace(Constants.MIN_REQUIRED_DISK_SPACE_IN_BYTES)}).not.toThrow('Not enough space avaliable at /steedos-stacks. Please ensure availability of atleast 5GB to backup successfully.'); + expect(() => {backup.checkAvailableBackupSpace(Constants.MIN_REQUIRED_DISK_SPACE_IN_BYTES)}).not.toThrow('Not enough space avaliable at /steedos-storage. Please ensure availability of atleast 5GB to backup successfully.'); }); it('Generates t', async () => { @@ -56,11 +56,11 @@ test('Test mongodump CMD generaton', async () => { }) test('Test get gitRoot path when STEEDOS_GIT_ROOT is \'\' ', () => { - expect(backup.getGitRoot('')).toBe('/steedos-stacks/git-storage') + expect(backup.getGitRoot('')).toBe('/steedos-storage/git-storage') }); test('Test get gitRoot path when STEEDOS_GIT_ROOT is null ', () => { - expect(backup.getGitRoot()).toBe('/steedos-stacks/git-storage') + expect(backup.getGitRoot()).toBe('/steedos-storage/git-storage') }); test('Test get gitRoot path when STEEDOS_GIT_ROOT is defined ', () => { @@ -68,9 +68,9 @@ test('Test get gitRoot path when STEEDOS_GIT_ROOT is defined ', () => { }); test('Test ln command generation', async () => { - var gitRoot = '/steedos-stacks/git-storage' + var gitRoot = '/steedos-storage/git-storage' var dest = '/destdir' - var cmd = 'ln -s /steedos-stacks/git-storage /destdir/git-storage' + var cmd = 'ln -s /steedos-storage/git-storage /destdir/git-storage' utils.execCommand = jest.fn().mockImplementation(async (a) => a.join(' ')); const res = await backup.executeCopyCMD(gitRoot, dest) expect(res).toBe(cmd) diff --git a/deploy/enterprise/app/steedosctl/bin/constants.js b/deploy/enterprise/app/steedosctl/bin/constants.js index b6cc777cde..fd9a6a6253 100644 --- a/deploy/enterprise/app/steedosctl/bin/constants.js +++ b/deploy/enterprise/app/steedosctl/bin/constants.js @@ -1,13 +1,13 @@ -const BACKUP_PATH = "/steedos-stacks/data/backup" +const BACKUP_PATH = "/steedos-storage/data/backup" -const RESTORE_PATH = "/steedos-stacks/data/restore" +const RESTORE_PATH = "/steedos-storage/data/restore" const DUMP_FILE_NAME = "steedos-data.archive" -const STEEDOSCTL_LOG_PATH = "/steedos-stacks/logs/steedosctl" +const STEEDOSCTL_LOG_PATH = "/steedos-storage/logs/steedosctl" -const LAST_ERROR_MAIL_TS = "/steedos-stacks/data/backup/last-error-mail-ts" +const LAST_ERROR_MAIL_TS = "/steedos-storage/data/backup/last-error-mail-ts" const MIN_REQUIRED_DISK_SPACE_IN_BYTES = 2147483648 // 2GB diff --git a/deploy/enterprise/app/steedosctl/bin/index.js b/deploy/enterprise/app/steedosctl/bin/index.js index 9e0d4e15b7..2d0bc849b7 100755 --- a/deploy/enterprise/app/steedosctl/bin/index.js +++ b/deploy/enterprise/app/steedosctl/bin/index.js @@ -9,7 +9,7 @@ const check_replica_set = require("./check_replica_set.js"); const version = require("./version.js"); const mongo_shell_utils = require("./mongo_shell_utils.js"); -const APPLICATION_CONFIG_PATH = "/steedos-stacks/configuration/docker.env"; +const APPLICATION_CONFIG_PATH = "/steedos-storage/configuration/docker.env"; // Loading latest application configuration require("dotenv").config({ path: APPLICATION_CONFIG_PATH }); diff --git a/deploy/enterprise/app/steedosctl/bin/migrate.js b/deploy/enterprise/app/steedosctl/bin/migrate.js index 04a11aa7ee..1f264f4633 100644 --- a/deploy/enterprise/app/steedosctl/bin/migrate.js +++ b/deploy/enterprise/app/steedosctl/bin/migrate.js @@ -64,13 +64,13 @@ const main = async (userServer, ipServer) => { // } // shell.exec( - // `scp -i ${folderSsh}/id_rsa -r /steedos-stacks/configuration ${userServer}@${ipServer}:${installAbsoluteDir}/stacks`, + // `scp -i ${folderSsh}/id_rsa -r /steedos-storage/configuration ${userServer}@${ipServer}:${installAbsoluteDir}/stacks`, // ); // shell.exec( - // `scp -i ${folderSsh}/id_rsa -r /steedos-stacks/data/backup ${userServer}@${ipServer}:${installAbsoluteDir}/stacks/data`, + // `scp -i ${folderSsh}/id_rsa -r /steedos-storage/data/backup ${userServer}@${ipServer}:${installAbsoluteDir}/stacks/data`, // ); // shell.exec( - // `scp -i ${folderSsh}/id_rsa -r /steedos-stacks/letsencrypt ${userServer}@${ipServer}:${installAbsoluteDir}/stacks`, + // `scp -i ${folderSsh}/id_rsa -r /steedos-storage/letsencrypt ${userServer}@${ipServer}:${installAbsoluteDir}/stacks`, // ); // shell.exec(`ssh -i ${folderSsh}/id_rsa ${userServer}@${ipServer} 'bash -s ${installAbsoluteDir}' < /opt/steedos/start_app.sh`); // shell.rm('-rf', folderSsh); diff --git a/deploy/enterprise/app/steedosctl/bin/restore.js b/deploy/enterprise/app/steedosctl/bin/restore.js index b2a00dd0b2..25a6bec9b7 100644 --- a/deploy/enterprise/app/steedosctl/bin/restore.js +++ b/deploy/enterprise/app/steedosctl/bin/restore.js @@ -52,7 +52,7 @@ async function restoreDatabase(restoreContentsPath) { async function restoreDockerEnvFile(restoreContentsPath, backupName) { console.log('Restoring docker environment file'); - const dockerEnvFile = '/steedos-stacks/configuration/docker.env'; + const dockerEnvFile = '/steedos-storage/configuration/docker.env'; var encryptionPwd = process.env.STEEDOS_ENCRYPTION_PASSWORD; var encryptionSalt = process.env.STEEDOS_ENCRYPTION_SALT; await utils.execCommand(['mv', dockerEnvFile, dockerEnvFile + '.' + backupName]); @@ -94,9 +94,9 @@ async function restoreDockerEnvFile(restoreContentsPath, backupName) { async function restoreGitStorageArchive(restoreContentsPath, backupName) { console.log('Restoring git-storage archive'); // TODO: Consider STEEDOS_GIT_ROOT env for later iterations - const gitRoot = '/steedos-stacks/git-storage'; + const gitRoot = '/steedos-storage/git-storage'; await utils.execCommand(['mv', gitRoot, gitRoot + '-' + backupName]); - await utils.execCommand(['mv', restoreContentsPath + '/git-storage', '/steedos-stacks']); + await utils.execCommand(['mv', restoreContentsPath + '/git-storage', '/steedos-storage']); console.log('Restoring git-storage archive completed'); } diff --git a/deploy/enterprise/docker-compose.yml b/deploy/enterprise/docker-compose.yml index 63bbe12c65..738583c59d 100644 --- a/deploy/enterprise/docker-compose.yml +++ b/deploy/enterprise/docker-compose.yml @@ -18,5 +18,5 @@ services: - STEEDOS_LOG_LEVEL=info tty: true volumes: - - "./stacks:/steedos-stacks" + - "./storage:/steedos-storage" \ No newline at end of file diff --git a/deploy/enterprise/fs/etc/supervisor/supervisord.conf b/deploy/enterprise/fs/etc/supervisor/supervisord.conf index fe4e38c07f..781ad89c40 100644 --- a/deploy/enterprise/fs/etc/supervisor/supervisord.conf +++ b/deploy/enterprise/fs/etc/supervisor/supervisord.conf @@ -10,9 +10,9 @@ username=%(ENV_STEEDOS_SUPERVISOR_USER)s password=%(ENV_STEEDOS_SUPERVISOR_PASSWORD)s [supervisord] -logfile=/steedos-stacks/logs/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log) +logfile=/steedos-storage/logs/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log) pidfile=%(ENV_TMP)s/supervisord.pid ; (supervisord pidfile;default supervisord.pid) -childlogdir=/steedos-stacks/logs/supervisor ; ('AUTO' child log dir, default $TEMP) +childlogdir=/steedos-storage/logs/supervisor ; ('AUTO' child log dir, default $TEMP) stdout_logfile_maxbytes = 0 stderr_logfile_maxbytes = 0 diff --git a/deploy/enterprise/fs/opt/steedos/entrypoint.sh b/deploy/enterprise/fs/opt/steedos/entrypoint.sh index 442785ab77..364c8c11f6 100755 --- a/deploy/enterprise/fs/opt/steedos/entrypoint.sh +++ b/deploy/enterprise/fs/opt/steedos/entrypoint.sh @@ -2,7 +2,7 @@ set -e -stacks_path=/steedos-stacks +stacks_path=/steedos-storage export SUPERVISORD_CONF_TARGET="$TMP/supervisor-conf.d/" # export for use in supervisord.conf export MONGODB_TMP_KEY_PATH="$TMP/mongodb-key" # export for use in supervisor process mongodb.conf @@ -10,7 +10,7 @@ export MONGODB_TMP_KEY_PATH="$TMP/mongodb-key" # export for use in supervisor p mkdir -pv "$SUPERVISORD_CONF_TARGET" "$NGINX_WWW_PATH" init_env_file() { - CONF_PATH="/steedos-stacks/configuration" + CONF_PATH="/steedos-storage/configuration" ENV_PATH="$CONF_PATH/docker.env" TEMPLATES_PATH="/opt/steedos/templates" @@ -154,8 +154,8 @@ use-mongodb-key() { mount_letsencrypt_directory() { echo "Mounting Let's encrypt directory" rm -rf /etc/letsencrypt - mkdir -p /steedos-stacks/{letsencrypt,ssl} - ln -s /steedos-stacks/letsencrypt /etc/letsencrypt + mkdir -p /steedos-storage/{letsencrypt,ssl} + ln -s /steedos-storage/letsencrypt /etc/letsencrypt } is_empty_directory() { @@ -247,7 +247,7 @@ configure_supervisord() { cp "$supervisord_conf_source/redis.conf" "$SUPERVISORD_CONF_TARGET" mkdir -p "$stacks_path/data/redis" fi - if ! [[ -e "/steedos-stacks/ssl/fullchain.pem" ]] || ! [[ -e "/steedos-stacks/ssl/privkey.pem" ]]; then + if ! [[ -e "/steedos-storage/ssl/fullchain.pem" ]] || ! [[ -e "/steedos-storage/ssl/privkey.pem" ]]; then cp "$supervisord_conf_source/cron.conf" "$SUPERVISORD_CONF_TARGET" fi fi @@ -299,13 +299,13 @@ fi configure_supervisord -mkdir -p /steedos-stacks/unpkg +mkdir -p /steedos-storage/unpkg # Ensure the restore path exists in the container, so an archive can be copied to it, if need be. -mkdir -p /steedos-stacks/data/{backup,restore} +mkdir -p /steedos-storage/data/{backup,restore} # Create sub-directory to store services log in the container mounting folder -mkdir -p /steedos-stacks/logs/{supervisor,steedos,cron,mongodb,redis,nginx,unpkg} +mkdir -p /steedos-storage/logs/{supervisor,steedos,cron,mongodb,redis,nginx,unpkg} # Stop nginx gracefully nginx -s quit diff --git a/deploy/enterprise/fs/opt/steedos/init_ssl_cert.sh b/deploy/enterprise/fs/opt/steedos/init_ssl_cert.sh index 9864cdda30..01e9c98f25 100755 --- a/deploy/enterprise/fs/opt/steedos/init_ssl_cert.sh +++ b/deploy/enterprise/fs/opt/steedos/init_ssl_cert.sh @@ -4,7 +4,7 @@ init_ssl_cert() { STEEDOS_CUSTOM_DOMAIN="$1" local rsa_key_size=4096 - local data_path="/steedos-stacks/data/certificate" + local data_path="/steedos-storage/data/certificate" mkdir -p "$data_path/www" @@ -15,7 +15,7 @@ init_ssl_cert() { nginx local live_path="/etc/letsencrypt/live/$STEEDOS_CUSTOM_DOMAIN" - local ssl_path="/steedos-stacks/ssl" + local ssl_path="/steedos-storage/ssl" if [[ -e "$ssl_path/fullchain.pem" ]] && [[ -e "$ssl_path/privkey.pem" ]]; then echo "Existing custom certificate" echo "Stop Nginx" diff --git a/deploy/enterprise/fs/opt/steedos/renew-certificate.sh b/deploy/enterprise/fs/opt/steedos/renew-certificate.sh index 1621ba5ec4..a09436b1ce 100755 --- a/deploy/enterprise/fs/opt/steedos/renew-certificate.sh +++ b/deploy/enterprise/fs/opt/steedos/renew-certificate.sh @@ -2,9 +2,9 @@ set -e -ENV_PATH="/steedos-stacks/configuration/docker.env" -PRE_DEFINED_ENV_PATH="/steedos-stacks/configuration/pre-define.env" -if [[ -f /steedos-stacks/configuration/docker.env ]]; then +ENV_PATH="/steedos-storage/configuration/docker.env" +PRE_DEFINED_ENV_PATH="/steedos-storage/configuration/pre-define.env" +if [[ -f /steedos-storage/configuration/docker.env ]]; then echo 'Load environment configuration' set -o allexport . "$ENV_PATH" @@ -13,7 +13,7 @@ if [[ -f /steedos-stacks/configuration/docker.env ]]; then fi if [[ -n $STEEDOS_CUSTOM_DOMAIN ]]; then - data_path="/steedos-stacks/data/certificate" + data_path="/steedos-storage/data/certificate" domain="$STEEDOS_CUSTOM_DOMAIN" rsa_key_size=4096 diff --git a/deploy/enterprise/fs/opt/steedos/run-nginx.sh b/deploy/enterprise/fs/opt/steedos/run-nginx.sh index 52c65e0a2d..759ee22f98 100755 --- a/deploy/enterprise/fs/opt/steedos/run-nginx.sh +++ b/deploy/enterprise/fs/opt/steedos/run-nginx.sh @@ -5,7 +5,7 @@ set -o nounset set -o pipefail set -o xtrace -ssl_conf_path="/steedos-stacks/data/certificate/conf" +ssl_conf_path="/steedos-storage/data/certificate/conf" mkdir -pv "$ssl_conf_path" diff --git a/deploy/enterprise/fs/opt/steedos/run-with-env.sh b/deploy/enterprise/fs/opt/steedos/run-with-env.sh index 259803290a..f9d430f63f 100755 --- a/deploy/enterprise/fs/opt/steedos/run-with-env.sh +++ b/deploy/enterprise/fs/opt/steedos/run-with-env.sh @@ -1,7 +1,7 @@ #!/bin/bash -ENV_PATH="/steedos-stacks/configuration/docker.env" -PRE_DEFINED_ENV_PATH="/steedos-stacks/configuration/pre-define.env" +ENV_PATH="/steedos-storage/configuration/docker.env" +PRE_DEFINED_ENV_PATH="/steedos-storage/configuration/pre-define.env" echo 'Load environment configuration' set -o allexport . "$ENV_PATH" @@ -13,7 +13,7 @@ if [[ -z "${STEEDOS_UNPKG_URL}" ]] && [[ ! -z "${STEEDOS_LICENSE}" ]]; then fi if [[ -z "${STEEDOS_STORAGE_DIR}" ]]; then - export STEEDOS_STORAGE_DIR=/steedos-stacks/ + export STEEDOS_STORAGE_DIR=/steedos-storage/ fi mkdir -pv "$STEEDOS_STORAGE_DIR" diff --git a/deploy/enterprise/fs/opt/steedos/templates/docker.env.sh b/deploy/enterprise/fs/opt/steedos/templates/docker.env.sh index c8b843c465..5a65393594 100755 --- a/deploy/enterprise/fs/opt/steedos/templates/docker.env.sh +++ b/deploy/enterprise/fs/opt/steedos/templates/docker.env.sh @@ -28,7 +28,7 @@ STEEDOS_SUPERVISOR_USER=steedos STEEDOS_SUPERVISOR_PASSWORD=$SUPERVISOR_PASSWORD NPM_CACHE_ENABLED=true -NPM_CACHE_FOLDER=/steedos-stacks/unpkg +NPM_CACHE_FOLDER=/steedos-storage/unpkg NPM_CACHE_PACKAGE_CONTENT=true EOF \ No newline at end of file diff --git a/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh b/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh index 167b290671..f2ef207534 100755 --- a/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh +++ b/deploy/enterprise/fs/opt/steedos/templates/nginx-app.conf.sh @@ -11,9 +11,9 @@ if [[ $use_https == 1 ]]; then ssl_key_path="/etc/letsencrypt/live/$custom_domain/privkey.pem" # In case of existing custom certificate, container will use them to configure SSL - if [[ -e "/steedos-stacks/ssl/fullchain.pem" ]] && [[ -e "/steedos-stacks/ssl/privkey.pem" ]]; then - ssl_cert_path="/steedos-stacks/ssl/fullchain.pem" - ssl_key_path="/steedos-stacks/ssl/privkey.pem" + if [[ -e "/steedos-storage/ssl/fullchain.pem" ]] && [[ -e "/steedos-storage/ssl/privkey.pem" ]]; then + ssl_cert_path="/steedos-storage/ssl/fullchain.pem" + ssl_key_path="/steedos-storage/ssl/privkey.pem" fi fi @@ -50,7 +50,7 @@ if [[ $use_https == 1 ]]; then server_name $custom_domain; location /.well-known/acme-challenge/ { - root /steedos-stacks/data/certificate/certbot; + root /steedos-storage/data/certificate/certbot; } return 301 https://\$host\$request_uri; @@ -61,8 +61,8 @@ server { server_name _; ssl_certificate $ssl_cert_path; ssl_certificate_key $ssl_key_path; - include /steedos-stacks/data/certificate/conf/options-ssl-nginx.conf; - ssl_dhparam /steedos-stacks/data/certificate/conf/ssl-dhparams.pem; + include /steedos-storage/data/certificate/conf/options-ssl-nginx.conf; + ssl_dhparam /steedos-storage/data/certificate/conf/ssl-dhparams.pem; " else echo " @@ -88,7 +88,7 @@ fi $additional_downstream_headers location /.well-known/acme-challenge/ { - root /steedos-stacks/data/certificate/certbot; + root /steedos-storage/data/certificate/certbot; } location = /supervisor { diff --git a/deploy/enterprise/fs/opt/steedos/templates/supervisord/cron.conf b/deploy/enterprise/fs/opt/steedos/templates/supervisord/cron.conf index 242f8fb13a..0aba8e6cc6 100644 --- a/deploy/enterprise/fs/opt/steedos/templates/supervisord/cron.conf +++ b/deploy/enterprise/fs/opt/steedos/templates/supervisord/cron.conf @@ -6,7 +6,7 @@ autostart=true autorestart=true startsecs=0 startretries=3 -stdout_logfile=/steedos-stacks/logs/%(program_name)s/%(program_name)s.log +stdout_logfile=/steedos-storage/logs/%(program_name)s/%(program_name)s.log redirect_stderr=true stdout_logfile_maxbytes=10MB stderr_logfile_maxbytes=10MB diff --git a/deploy/enterprise/fs/opt/steedos/templates/supervisord/mongodb.conf b/deploy/enterprise/fs/opt/steedos/templates/supervisord/mongodb.conf index 7eb1c441ac..fc562967f0 100644 --- a/deploy/enterprise/fs/opt/steedos/templates/supervisord/mongodb.conf +++ b/deploy/enterprise/fs/opt/steedos/templates/supervisord/mongodb.conf @@ -1,12 +1,12 @@ [program:mongodb] -directory=/steedos-stacks/data/mongodb -command=mongod --port 27017 --dbpath . --logpath /steedos-stacks/logs/%(program_name)s/db.log --replSet steedos --keyFile %(ENV_MONGODB_TMP_KEY_PATH)s --bind_ip localhost +directory=/steedos-storage/data/mongodb +command=mongod --port 27017 --dbpath . --logpath /steedos-storage/logs/%(program_name)s/db.log --replSet steedos --keyFile %(ENV_MONGODB_TMP_KEY_PATH)s --bind_ip localhost priority=10 autostart=true autorestart=true startsecs=10 startretries=3 -stdout_logfile=/steedos-stacks/logs/%(program_name)s/%(program_name)s.log +stdout_logfile=/steedos-storage/logs/%(program_name)s/%(program_name)s.log redirect_stderr=true stdout_logfile_maxbytes=10MB stderr_logfile_maxbytes=10MB diff --git a/deploy/enterprise/fs/opt/steedos/templates/supervisord/nginx.conf b/deploy/enterprise/fs/opt/steedos/templates/supervisord/nginx.conf index 96e6f759ca..039c98ee61 100644 --- a/deploy/enterprise/fs/opt/steedos/templates/supervisord/nginx.conf +++ b/deploy/enterprise/fs/opt/steedos/templates/supervisord/nginx.conf @@ -5,8 +5,8 @@ autostart=true autorestart=true startsecs=0 startretries=3 -stdout_logfile=/steedos-stacks/logs/%(program_name)s/access-%(ENV_HOSTNAME)s.log -stderr_logfile=/steedos-stacks/logs/%(program_name)s/error-%(ENV_HOSTNAME)s.log +stdout_logfile=/steedos-storage/logs/%(program_name)s/access-%(ENV_HOSTNAME)s.log +stderr_logfile=/steedos-storage/logs/%(program_name)s/error-%(ENV_HOSTNAME)s.log stdout_logfile_maxbytes=10MB stderr_logfile_maxbytes=10MB stdout_logfile_backups=2 diff --git a/deploy/enterprise/fs/opt/steedos/templates/supervisord/redis.conf b/deploy/enterprise/fs/opt/steedos/templates/supervisord/redis.conf index 83c1744438..97dea951ff 100644 --- a/deploy/enterprise/fs/opt/steedos/templates/supervisord/redis.conf +++ b/deploy/enterprise/fs/opt/steedos/templates/supervisord/redis.conf @@ -2,13 +2,13 @@ directory=/etc/redis ; The `--save` is for saving session data to disk more often, so recent sessions aren't cleared on restart. ; The empty string to `--logfile` is for logging to stdout so that supervisor can capture it. -command=redis-server --save 15 1 --dir /steedos-stacks/data/redis --daemonize no --logfile "" +command=redis-server --save 15 1 --dir /steedos-storage/data/redis --daemonize no --logfile "" priority=5 autostart=true autorestart=true startsecs=0 startretries=3 -stdout_logfile=/steedos-stacks/logs/%(program_name)s/%(program_name)s.log +stdout_logfile=/steedos-storage/logs/%(program_name)s/%(program_name)s.log redirect_stderr=true stdout_logfile_maxbytes=10MB stderr_logfile_maxbytes=10MB diff --git a/deploy/enterprise/fs/opt/steedos/templates/supervisord/steedos.conf b/deploy/enterprise/fs/opt/steedos/templates/supervisord/steedos.conf index c8a8c1f8d7..b18d3c9d8c 100644 --- a/deploy/enterprise/fs/opt/steedos/templates/supervisord/steedos.conf +++ b/deploy/enterprise/fs/opt/steedos/templates/supervisord/steedos.conf @@ -6,7 +6,7 @@ autostart=true autorestart=true startsecs=0 startretries=3 -stdout_logfile=/steedos-stacks/logs/%(program_name)s/%(program_name)s-%(ENV_HOSTNAME)s.log +stdout_logfile=/steedos-storage/logs/%(program_name)s/%(program_name)s-%(ENV_HOSTNAME)s.log redirect_stderr=true stdout_logfile_maxbytes=10MB stderr_logfile_maxbytes=10MB diff --git a/deploy/enterprise/fs/opt/steedos/templates/supervisord/unpkg.conf b/deploy/enterprise/fs/opt/steedos/templates/supervisord/unpkg.conf index 06c615135f..c03998fb1b 100644 --- a/deploy/enterprise/fs/opt/steedos/templates/supervisord/unpkg.conf +++ b/deploy/enterprise/fs/opt/steedos/templates/supervisord/unpkg.conf @@ -6,7 +6,7 @@ autostart=true autorestart=true startsecs=0 startretries=3 -stdout_logfile=/steedos-stacks/logs/%(program_name)s/%(program_name)s-%(ENV_HOSTNAME)s.log +stdout_logfile=/steedos-storage/logs/%(program_name)s/%(program_name)s-%(ENV_HOSTNAME)s.log redirect_stderr=true stdout_logfile_maxbytes=10MB stderr_logfile_maxbytes=10MB From 2dee3dff7a88fe8134e26e04063b0d24a8a63b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Tue, 10 Oct 2023 01:32:58 +0000 Subject: [PATCH 21/32] docker: /steedos-stacks -> /steedos-storage --- deploy/docker/docker-compose.yml | 4 ++-- deploy/enterprise/app/platform/steedos.config.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/deploy/docker/docker-compose.yml b/deploy/docker/docker-compose.yml index dbb5ecaf27..2b4e7ca2f1 100644 --- a/deploy/docker/docker-compose.yml +++ b/deploy/docker/docker-compose.yml @@ -18,7 +18,7 @@ services: - CACHER=redis://redis:6379 - STEEDOS_STORAGE_DIR=/steedos-storage volumes: - - "steedos-data:/steedos-storage" + - "steedos-storage:/steedos-storage" depends_on: mongodb: condition: service_healthy @@ -63,5 +63,5 @@ volumes: driver: local steedos-installed-packages: driver: local - steedos-data: + steedos-storage: driver: local \ No newline at end of file diff --git a/deploy/enterprise/app/platform/steedos.config.js b/deploy/enterprise/app/platform/steedos.config.js index d0e88b4927..e6fb618d94 100644 --- a/deploy/enterprise/app/platform/steedos.config.js +++ b/deploy/enterprise/app/platform/steedos.config.js @@ -1,4 +1,6 @@ -process.env.PORT = 3000; // reset port for meteor +// env PORT is reserved for nginx, reset port for meteor +// 企业版 PORT 环境变量用于 nginx,此处重置 metor 端口为 3000 +process.env.PORT = 3000; module.exports = { // Namespace of nodes to segment your nodes on the same network. From f54eec992ec96d22ae03b48c640f8b68c067ec1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Tue, 10 Oct 2023 01:40:33 +0000 Subject: [PATCH 22/32] =?UTF-8?q?docker:=20=E9=BB=98=E8=AE=A4=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20TRANSPORTER=3Dredis://redis:6379?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/docker/docker-compose.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/deploy/docker/docker-compose.yml b/deploy/docker/docker-compose.yml index 2b4e7ca2f1..4f7c4d7051 100644 --- a/deploy/docker/docker-compose.yml +++ b/deploy/docker/docker-compose.yml @@ -14,17 +14,19 @@ services: - PORT=5000 - MONGO_URL=mongodb://mongodb:27017/steedos - MONGO_OPLOG_URL=mongodb://mongodb:27017/local - - TRANSPORTER=nats://nats:4222 - - CACHER=redis://redis:6379 + - TRANSPORTER=redis://redis:6379 + - CACHER=redis://redis:6379/1 - STEEDOS_STORAGE_DIR=/steedos-storage volumes: - "steedos-storage:/steedos-storage" depends_on: + redis: + condition: service_started mongodb: condition: service_healthy redis: - image: redis:6.0 + image: redis:6.2.10 command: "redis-server --save \"\" --appendonly no --loglevel warning" ports: - "6379:6379" @@ -51,13 +53,6 @@ services: command: > mongo --host mongodb:27017 --eval "rs.initiate({ _id: 'steedos', members: [{_id: 0, host: 'mongodb:27017'}]})" - # Micro Service Transporter - nats: - image: nats:2.9 - ports: - - "4222:4222" - # - "8222:8222" # monitor port - volumes: steedos-mongo-data: driver: local From 50520e336be627f04aed13961080706e20ca4c32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Tue, 10 Oct 2023 01:42:54 +0000 Subject: [PATCH 23/32] docker: workflow rename --- .github/workflows/docker-community.yml | 2 +- .github/workflows/docker-enterprise.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-community.yml b/.github/workflows/docker-community.yml index 59fdd302ba..9e50c840c7 100644 --- a/.github/workflows/docker-community.yml +++ b/.github/workflows/docker-community.yml @@ -1,4 +1,4 @@ -name: Release Docker EE +name: Docker Community on: workflow_run: diff --git a/.github/workflows/docker-enterprise.yml b/.github/workflows/docker-enterprise.yml index 2bea457a30..56c1f36a81 100644 --- a/.github/workflows/docker-enterprise.yml +++ b/.github/workflows/docker-enterprise.yml @@ -1,4 +1,4 @@ -name: Release Docker EE +name: Docker Enterprise on: workflow_run: From dbacdf29e8e92aeb136a2b752cd1ec3487fbfd79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Tue, 10 Oct 2023 02:03:31 +0000 Subject: [PATCH 24/32] docker: steedos community --- .github/workflows/docker-community.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-community.yml b/.github/workflows/docker-community.yml index 9e50c840c7..e256ebec3c 100644 --- a/.github/workflows/docker-community.yml +++ b/.github/workflows/docker-community.yml @@ -78,7 +78,7 @@ jobs: - name: Build and push docker uses: docker/build-push-action@v3 with: - context: ./deploy/enterprise + context: ./deploy/community platforms: linux/amd64 #,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} From 10bdbd523c1aa7d281af5acf14ae5770c145bdfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Tue, 10 Oct 2023 02:08:08 +0000 Subject: [PATCH 25/32] docker: steedos community --- .github/workflows/docker-community.yml | 2 +- .github/workflows/docker-enterprise.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-community.yml b/.github/workflows/docker-community.yml index e256ebec3c..f98fad5a58 100644 --- a/.github/workflows/docker-community.yml +++ b/.github/workflows/docker-community.yml @@ -78,7 +78,7 @@ jobs: - name: Build and push docker uses: docker/build-push-action@v3 with: - context: ./deploy/community + context: ./deploy/docker platforms: linux/amd64 #,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} diff --git a/.github/workflows/docker-enterprise.yml b/.github/workflows/docker-enterprise.yml index 56c1f36a81..07423858d8 100644 --- a/.github/workflows/docker-enterprise.yml +++ b/.github/workflows/docker-enterprise.yml @@ -2,7 +2,7 @@ name: Docker Enterprise on: workflow_run: - workflows: [Disabled-Release NPM] + workflows: [Release NPM] types: - completed push: From 6c429463fab24594572da01647f1985021236ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Tue, 10 Oct 2023 02:21:57 +0000 Subject: [PATCH 26/32] =?UTF-8?q?docker:=20=E5=8F=91=E5=B8=83npm=E5=90=8E?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8F=91=E5=B8=83docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-community.yml | 3 ++- .github/workflows/release.yml | 28 +++++++++++++------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docker-community.yml b/.github/workflows/docker-community.yml index f98fad5a58..27ecbb156f 100644 --- a/.github/workflows/docker-community.yml +++ b/.github/workflows/docker-community.yml @@ -2,7 +2,7 @@ name: Docker Community on: workflow_run: - workflows: [Disabled-Release NPM] + workflows: [Release NPM] types: - completed push: @@ -12,6 +12,7 @@ on: jobs: docker: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} strategy: matrix: node-version: [14.x] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 601387617a..1584325fb3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -214,20 +214,20 @@ jobs: with: time: 120s - - name: Create Docker Release - # if: steps.version.outputs.is_stable == 'true' - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.DOCKER_GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token - with: - owner: steedos - repo: docker - commitish: main - tag_name: v${{ steps.branch-name.outputs.tag }} - release_name: Release v${{ steps.branch-name.outputs.tag }} - draft: false - prerelease: false + # - name: Create Docker Release + # # if: steps.version.outputs.is_stable == 'true' + # id: create_release + # uses: actions/create-release@v1 + # env: + # GITHUB_TOKEN: ${{ secrets.DOCKER_GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + # with: + # owner: steedos + # repo: docker + # commitish: main + # tag_name: v${{ steps.branch-name.outputs.tag }} + # release_name: Release v${{ steps.branch-name.outputs.tag }} + # draft: false + # prerelease: false - name: Sync NpmMirror env: From 002347646d28fd15ba27d3cd5636256e53d579ba Mon Sep 17 00:00:00 2001 From: Byran Date: Tue, 10 Oct 2023 02:49:33 +0000 Subject: [PATCH 27/32] =?UTF-8?q?[Bug]:=20=E5=8D=8E=E4=B8=BA=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E6=B6=88=E6=81=AF=E8=A7=A6=E5=8F=91=E9=A2=91=E6=8E=A7?= =?UTF-8?q?=20#5299(2.5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/huaweiProvider.js | 53 +++++++----------- .../programs/server/packages/modules.js | 26 ++++----- .../server/packages/steedos_huaweipush.js | 54 +++++++------------ .../server/packages/steedos_huaweipush.js.map | 2 +- ...f372170ee952f1ff72451eb1632c94a7763f93.js} | 2 +- ...e952f1ff72451eb1632c94a7763f93.stats.json} | 2 +- .../programs/web.browser.legacy/program.json | 16 +++--- ...f372170ee952f1ff72451eb1632c94a7763f93.js} | 2 +- ...e952f1ff72451eb1632c94a7763f93.stats.json} | 2 +- .../bundle/programs/web.browser/program.json | 16 +++--- ...fc952814ef7f8ddde79c44d60aae0c7d6c7d76.js} | 2 +- ...ef7f8ddde79c44d60aae0c7d6c7d76.stats.json} | 2 +- .../bundle/programs/web.cordova/program.json | 16 +++--- server/bundle/star.json | 2 +- 14 files changed, 81 insertions(+), 116 deletions(-) rename server/bundle/programs/web.browser.legacy/{a295cec1971530e01efde31e17b7abedc91f0ccc.js => d5f372170ee952f1ff72451eb1632c94a7763f93.js} (99%) rename server/bundle/programs/web.browser.legacy/{a295cec1971530e01efde31e17b7abedc91f0ccc.stats.json => d5f372170ee952f1ff72451eb1632c94a7763f93.stats.json} (99%) rename server/bundle/programs/web.browser/{a295cec1971530e01efde31e17b7abedc91f0ccc.js => d5f372170ee952f1ff72451eb1632c94a7763f93.js} (99%) rename server/bundle/programs/web.browser/{a295cec1971530e01efde31e17b7abedc91f0ccc.stats.json => d5f372170ee952f1ff72451eb1632c94a7763f93.stats.json} (99%) rename server/bundle/programs/web.cordova/{e7beb1dfd71e2de82e55a2456aa966c89fce16f8.js => dbfc952814ef7f8ddde79c44d60aae0c7d6c7d76.js} (99%) rename server/bundle/programs/web.cordova/{e7beb1dfd71e2de82e55a2456aa966c89fce16f8.stats.json => dbfc952814ef7f8ddde79c44d60aae0c7d6c7d76.stats.json} (99%) diff --git a/creator/packages/steedos-huaweipush/server/huaweiProvider.js b/creator/packages/steedos-huaweipush/server/huaweiProvider.js index 5884851655..90d80e20b3 100644 --- a/creator/packages/steedos-huaweipush/server/huaweiProvider.js +++ b/creator/packages/steedos-huaweipush/server/huaweiProvider.js @@ -1,6 +1,6 @@ const request = require('requestretry'); -const tokenUrl = "https://login.vmall.com/oauth2/token"; -const apiUrl = "https://api.push.hicloud.com/pushsend.do"; +const tokenUrl = "https://oauth-login.cloud.huawei.com/oauth2/v3/token"; +const apiUrl = "https://push-api.cloud.huawei.com/v1/[clientid]/messages:send"; const timeout = 5000; HuaweiPush = { @@ -50,11 +50,11 @@ HuaweiPush.doSendMany = function(notification, package_name, tokens, timeToLive) console.log("sendMany ", notification, timeToLive); const postData = this.getPostData(notification, package_name, tokens, timeToLive); request.post({ - url: apiUrl, - qs: { - nsp_ctx: `{"ver":1,"appId":"${this.authInfo[package_name].client_id}"}` + url: apiUrl.replace('[clientid]', this.authInfo[package_name].client_id), + body: JSON.stringify(postData), + 'headers': { + 'Authorization': 'Bearer '+ this.authInfo[package_name].access_token }, - form: postData, timeout: timeout, maxAttempts: 2, retryDelay: 5000, @@ -76,39 +76,22 @@ HuaweiPush.doSendMany = function(notification, package_name, tokens, timeToLive) HuaweiPush.getPostData = function(notification, package_name, tokens, timeToLive) { const postData = { - access_token: this.authInfo[package_name].access_token, - nsp_svc: "openpush.message.api.send", - nsp_ts: Math.floor(Date.now() / 1000) - }; - postData.payload = { - hps: { - msg: { - type: 3, - body: { - content: notification.android.message, - title: notification.android.title - }, - action: { - type: 3, - param: { - appPkgName: package_name + "validate_only": false, + "message": { + "android": { + "notification": { + "title": notification.android.title, + "body": notification.android.message, + "click_action": { + "type": 3 } }, - category: 'WORK' // 工作事项提醒 + "category": "WORK" }, - ext: { - customize: this.extras(notification.extras) - } + "token": tokens, + "data": JSON.stringify(notification.extras) } - }; - postData.payload = JSON.stringify(postData.payload); - postData.device_token_list = JSON.stringify(tokens); - - if (timeToLive > 0) { - postData.expire_time = this.formatHuaweiDate(new Date(Date.now() + timeToLive)); - if (HuaweiPush.debug) - console.log("postData.expire_time ", postData.expire_time); - } + } return postData; } diff --git a/server/bundle/programs/server/packages/modules.js b/server/bundle/programs/server/packages/modules.js index 8b744778ba..d75d9fc4f9 100644 --- a/server/bundle/programs/server/packages/modules.js +++ b/server/bundle/programs/server/packages/modules.js @@ -463,7 +463,7 @@ module.useNode(); // module.exports = { "name": "@steedos/objectql", - "version": "2.5.15-beta.10", + "version": "2.5.15-beta.12", "main": "lib/index.js" }; @@ -490,7 +490,7 @@ module.useNode(); // module.exports = { "name": "@steedos/i18n", - "version": "2.5.15-beta.10", + "version": "2.5.15-beta.12", "main": "lib/index.js" }; @@ -517,7 +517,7 @@ module.useNode(); // module.exports = { "name": "@steedos/core", - "version": "2.5.15-beta.10", + "version": "2.5.15-beta.12", "main": "lib/index.js" }; @@ -544,7 +544,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-meteor-package-loader", - "version": "2.5.15-beta.10", + "version": "2.5.15-beta.12", "main": "index.js" }; @@ -571,7 +571,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-api", - "version": "2.5.15-beta.10", + "version": "2.5.15-beta.12", "main": "index.js" }; @@ -598,7 +598,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-metadata-server", - "version": "2.5.15-beta.10", + "version": "2.5.15-beta.12", "main": "index.js" }; @@ -625,7 +625,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-package-registry", - "version": "2.5.15-beta.10", + "version": "2.5.15-beta.12", "main": "package.service.js" }; @@ -652,7 +652,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-objectql", - "version": "2.5.15-beta.10", + "version": "2.5.15-beta.12", "main": "package.service.js" }; @@ -679,7 +679,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-ui", - "version": "2.5.15-beta.10", + "version": "2.5.15-beta.12", "main": "package.service.js" }; @@ -706,7 +706,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-pages", - "version": "2.5.15-beta.10", + "version": "2.5.15-beta.12", "main": "package.service.js" }; @@ -733,7 +733,7 @@ module.useNode(); // module.exports = { "name": "@steedos/router", - "version": "2.5.15-beta.10", + "version": "2.5.15-beta.12", "main": "lib/index.js" }; @@ -760,7 +760,7 @@ module.useNode(); // module.exports = { "name": "@steedos/auth", - "version": "2.5.15-beta.10", + "version": "2.5.15-beta.12", "main": "lib/index.js" }; @@ -787,7 +787,7 @@ module.useNode(); // module.exports = { "name": "@steedos/workflow", - "version": "2.5.15-beta.10", + "version": "2.5.15-beta.12", "main": "index.js" }; diff --git a/server/bundle/programs/server/packages/steedos_huaweipush.js b/server/bundle/programs/server/packages/steedos_huaweipush.js index 61829f5d68..757152e316 100644 --- a/server/bundle/programs/server/packages/steedos_huaweipush.js +++ b/server/bundle/programs/server/packages/steedos_huaweipush.js @@ -42,8 +42,8 @@ module.link("meteor/tmeasday:check-npm-versions", { // const request = require('requestretry'); -const tokenUrl = "https://login.vmall.com/oauth2/token"; -const apiUrl = "https://api.push.hicloud.com/pushsend.do"; +const tokenUrl = "https://oauth-login.cloud.huawei.com/oauth2/v3/token"; +const apiUrl = "https://push-api.cloud.huawei.com/v1/[clientid]/messages:send"; const timeout = 5000; HuaweiPush = { authInfo: {}, @@ -93,11 +93,11 @@ HuaweiPush.doSendMany = function (notification, package_name, tokens, timeToLive if (HuaweiPush.debug) console.log("sendMany ", notification, timeToLive); const postData = this.getPostData(notification, package_name, tokens, timeToLive); request.post({ - url: apiUrl, - qs: { - nsp_ctx: "{\"ver\":1,\"appId\":\"".concat(this.authInfo[package_name].client_id, "\"}") + url: apiUrl.replace('[clientid]', this.authInfo[package_name].client_id), + body: JSON.stringify(postData), + 'headers': { + 'Authorization': 'Bearer ' + this.authInfo[package_name].access_token }, - form: postData, timeout: timeout, maxAttempts: 2, retryDelay: 5000, @@ -118,40 +118,22 @@ HuaweiPush.doSendMany = function (notification, package_name, tokens, timeToLive HuaweiPush.getPostData = function (notification, package_name, tokens, timeToLive) { const postData = { - access_token: this.authInfo[package_name].access_token, - nsp_svc: "openpush.message.api.send", - nsp_ts: Math.floor(Date.now() / 1000) - }; - postData.payload = { - hps: { - msg: { - type: 3, - body: { - content: notification.android.message, - title: notification.android.title - }, - action: { - type: 3, - param: { - appPkgName: package_name + "validate_only": false, + "message": { + "android": { + "notification": { + "title": notification.android.title, + "body": notification.android.message, + "click_action": { + "type": 3 } }, - category: 'WORK' // 工作事项提醒 - + "category": "WORK" }, - ext: { - customize: this.extras(notification.extras) - } + "token": tokens, + "data": JSON.stringify(notification.extras) } }; - postData.payload = JSON.stringify(postData.payload); - postData.device_token_list = JSON.stringify(tokens); - - if (timeToLive > 0) { - postData.expire_time = this.formatHuaweiDate(new Date(Date.now() + timeToLive)); - if (HuaweiPush.debug) console.log("postData.expire_time ", postData.expire_time); - } - return postData; }; @@ -241,4 +223,4 @@ Package._define("steedos:huaweipush", { })(); //# sourceURL=meteor://💻app/packages/steedos_huaweipush.js -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1ldGVvcjovL/CfkrthcHAvcGFja2FnZXMvc3RlZWRvczpodWF3ZWlwdXNoL2NoZWNrTnBtLmpzIiwibWV0ZW9yOi8v8J+Su2FwcC9wYWNrYWdlcy9zdGVlZG9zOmh1YXdlaXB1c2gvc2VydmVyL2h1YXdlaVByb3ZpZGVyLmpzIl0sIm5hbWVzIjpbImNoZWNrTnBtVmVyc2lvbnMiLCJtb2R1bGUiLCJsaW5rIiwidiIsInJlcXVlc3QiLCJyZXF1aXJlIiwidG9rZW5VcmwiLCJhcGlVcmwiLCJ0aW1lb3V0IiwiSHVhd2VpUHVzaCIsImF1dGhJbmZvIiwiZGVmYXVsdF9wYWNrYWdlX25hbWUiLCJ1bmRlZmluZWQiLCJkZWJ1ZyIsIk1ldGVvciIsInNldHRpbmdzIiwicHVzaCIsImh1YXdlaSIsImNvbmZpZyIsImZvckVhY2giLCJ2YWwiLCJwYWNrYWdlX25hbWUiLCJhY2Nlc3NfdG9rZW5fZXhwaXJlIiwiY29uc29sZSIsImluZm8iLCJzZW5kTWFueSIsIm5vdGlmaWNhdGlvbiIsInRva2VuRGF0YUxpc3QiLCJ0aW1lVG9MaXZlIiwiYW5kcm9pZCIsInRpdGxlIiwibWFwVG9rZW5EYXRhIiwidG9rZW5EYXRhIiwiZXJyb3IiLCJ0b2tlbkxpc3QiLCJ0b2tlbiIsImRvU2VuZE1hbnkiLCJ0b2tlbnMiLCJjaGVja1Rva2VuIiwidG9rZW5FcnJvciIsImxvZyIsInBvc3REYXRhIiwiZ2V0UG9zdERhdGEiLCJwb3N0IiwidXJsIiwicXMiLCJuc3BfY3R4IiwiY2xpZW50X2lkIiwiZm9ybSIsIm1heEF0dGVtcHRzIiwicmV0cnlEZWxheSIsInRpbWUiLCJyZXRyeVN0cmF0ZWd5IiwiUmV0cnlTdHJhdGVnaWVzIiwiTmV0d29ya0Vycm9yIiwicmVzcG9uc2UiLCJib2R5Iiwic3RhdHVzQ29kZSIsImFjY2Vzc190b2tlbiIsIm5zcF9zdmMiLCJuc3BfdHMiLCJNYXRoIiwiZmxvb3IiLCJEYXRlIiwibm93IiwicGF5bG9hZCIsImhwcyIsIm1zZyIsInR5cGUiLCJjb250ZW50IiwibWVzc2FnZSIsImFjdGlvbiIsInBhcmFtIiwiYXBwUGtnTmFtZSIsImNhdGVnb3J5IiwiZXh0IiwiY3VzdG9taXplIiwiZXh0cmFzIiwiSlNPTiIsInN0cmluZ2lmeSIsImRldmljZV90b2tlbl9saXN0IiwiZXhwaXJlX3RpbWUiLCJmb3JtYXRIdWF3ZWlEYXRlIiwic2VuZEFsbCIsImNhbGxiYWNrIiwiZ3JhbnRfdHlwZSIsImNsaWVudF9zZWNyZXQiLCJkYXRhIiwicGFyc2UiLCJleHBpcmVzX2luIiwiZGF0ZSIsIm1vbWVudCIsImZvcm1hdCIsIkFycmF5IiwiaXNBcnJheSIsImV4dHJhQXJyYXkiLCJrZXlzIiwiT2JqZWN0Iiwia2V5Il0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsSUFBSUEsZ0JBQUo7QUFBcUJDLE1BQU0sQ0FBQ0MsSUFBUCxDQUFZLG9DQUFaLEVBQWlEO0FBQUNGLGtCQUFnQixDQUFDRyxDQUFELEVBQUc7QUFBQ0gsb0JBQWdCLEdBQUNHLENBQWpCO0FBQW1COztBQUF4QyxDQUFqRCxFQUEyRixDQUEzRixFOzs7Ozs7Ozs7OztBQ0FyQixNQUFNQyxPQUFPLEdBQUdDLE9BQU8sQ0FBQyxjQUFELENBQXZCOztBQUNBLE1BQU1DLFFBQVEsR0FBRyxzQ0FBakI7QUFDQSxNQUFNQyxNQUFNLEdBQUcsMENBQWY7QUFDQSxNQUFNQyxPQUFPLEdBQUcsSUFBaEI7QUFFQUMsVUFBVSxHQUFHO0FBQ1pDLFVBQVEsRUFBRSxFQURFO0FBRVpDLHNCQUFvQixFQUFFQyxTQUZWO0FBR1pDLE9BQUssRUFBRUMsTUFBTSxDQUFDQyxRQUFQLENBQWdCQyxJQUFoQixJQUF3QkYsTUFBTSxDQUFDQyxRQUFQLENBQWdCQyxJQUFoQixDQUFxQkMsTUFBN0MsSUFBdURILE1BQU0sQ0FBQ0MsUUFBUCxDQUFnQkMsSUFBaEIsQ0FBcUJDLE1BQXJCLENBQTRCSjtBQUg5RSxDQUFiOztBQU1BSixVQUFVLENBQUNTLE1BQVgsR0FBb0IsVUFBU0EsTUFBVCxFQUFpQjtBQUNwQ0EsUUFBTSxDQUFDQyxPQUFQLENBQWdCQyxHQUFELElBQVM7QUFDdkIsUUFBSSxLQUFLVixRQUFMLENBQWNVLEdBQUcsQ0FBQ0MsWUFBbEIsQ0FBSixFQUNDO0FBQ0QsU0FBS1gsUUFBTCxDQUFjVSxHQUFHLENBQUNDLFlBQWxCLElBQWtDRCxHQUFsQztBQUNBQSxPQUFHLENBQUNFLG1CQUFKLEdBQTBCLENBQTFCOztBQUNBLFFBQUksQ0FBQyxLQUFLWCxvQkFBVixFQUFnQztBQUMvQixXQUFLQSxvQkFBTCxHQUE0QlMsR0FBRyxDQUFDQyxZQUFoQztBQUNBLFVBQUlaLFVBQVUsQ0FBQ0ksS0FBZixFQUNDVSxPQUFPLENBQUNDLElBQVIsQ0FBYSw4QkFBYixFQUE2QyxLQUFLYixvQkFBbEQ7QUFDRDtBQUNELEdBVkQ7QUFXQSxDQVpEOztBQWNBRixVQUFVLENBQUNnQixRQUFYLEdBQXNCLFVBQVNDLFlBQVQsRUFBdUJDLGFBQXZCLEVBQXNDQyxVQUF0QyxFQUFrRDtBQUN2RSxNQUFJRixZQUFZLENBQUNHLE9BQWIsQ0FBcUJDLEtBQXpCLEVBQWdDO0FBQy9CLFVBQU1DLFlBQVksR0FBRyxFQUFyQjs7QUFDQSxTQUFLLE1BQU1DLFNBQVgsSUFBd0JMLGFBQXhCLEVBQXVDO0FBQ3RDLFlBQU1OLFlBQVksR0FBR1csU0FBUyxDQUFDWCxZQUFWLElBQTBCLEtBQUtWLG9CQUFwRDs7QUFDQSxVQUFJLENBQUMsS0FBS0QsUUFBTCxDQUFjVyxZQUFkLENBQUwsRUFBa0M7QUFDakNFLGVBQU8sQ0FBQ1UsS0FBUixDQUFjLHFDQUFkLEVBQXFEWixZQUFyRDtBQUNBO0FBQ0E7O0FBQ0QsWUFBTWEsU0FBUyxHQUFHSCxZQUFZLENBQUNWLFlBQUQsQ0FBWixJQUE4QixFQUFoRDtBQUNBYSxlQUFTLENBQUNsQixJQUFWLENBQWVnQixTQUFTLENBQUNHLEtBQXpCO0FBQ0FKLGtCQUFZLENBQUNWLFlBQUQsQ0FBWixHQUE2QmEsU0FBN0I7QUFDQTs7QUFFRCxTQUFLLE1BQU1iLFlBQVgsSUFBMkJVLFlBQTNCLEVBQXlDO0FBQ3hDLFdBQUtLLFVBQUwsQ0FBZ0JWLFlBQWhCLEVBQThCTCxZQUE5QixFQUE0Q1UsWUFBWSxDQUFDVixZQUFELENBQXhELEVBQXdFTyxVQUF4RTtBQUNBO0FBQ0Q7QUFDRCxDQWxCRDs7QUFvQkFuQixVQUFVLENBQUMyQixVQUFYLEdBQXdCLFVBQVNWLFlBQVQsRUFBdUJMLFlBQXZCLEVBQXFDZ0IsTUFBckMsRUFBNkNULFVBQTdDLEVBQXlEO0FBQ2hGLE9BQUtVLFVBQUwsQ0FBZ0JqQixZQUFoQixFQUErQmtCLFVBQUQsSUFBZ0I7QUFDN0MsUUFBSSxDQUFDQSxVQUFMLEVBQWlCO0FBQ2hCLFVBQUk5QixVQUFVLENBQUNJLEtBQWYsRUFDQ1UsT0FBTyxDQUFDaUIsR0FBUixDQUFZLFdBQVosRUFBeUJkLFlBQXpCLEVBQXVDRSxVQUF2QztBQUNELFlBQU1hLFFBQVEsR0FBRyxLQUFLQyxXQUFMLENBQWlCaEIsWUFBakIsRUFBK0JMLFlBQS9CLEVBQTZDZ0IsTUFBN0MsRUFBcURULFVBQXJELENBQWpCO0FBQ0F4QixhQUFPLENBQUN1QyxJQUFSLENBQWE7QUFDWkMsV0FBRyxFQUFFckMsTUFETztBQUVac0MsVUFBRSxFQUFFO0FBQ0hDLGlCQUFPLG1DQUF1QixLQUFLcEMsUUFBTCxDQUFjVyxZQUFkLEVBQTRCMEIsU0FBbkQ7QUFESixTQUZRO0FBS1pDLFlBQUksRUFBRVAsUUFMTTtBQU1aakMsZUFBTyxFQUFFQSxPQU5HO0FBT1p5QyxtQkFBVyxFQUFFLENBUEQ7QUFRWkMsa0JBQVUsRUFBRSxJQVJBO0FBU1pDLFlBQUksRUFBRSxJQVRNO0FBVVpDLHFCQUFhLEVBQUVoRCxPQUFPLENBQUNpRCxlQUFSLENBQXdCQztBQVYzQixPQUFiLEVBV0csQ0FBQ3JCLEtBQUQsRUFBUXNCLFFBQVIsRUFBa0JDLElBQWxCLEtBQTJCO0FBQzdCLFlBQUkvQyxVQUFVLENBQUNJLEtBQWYsRUFDQ1UsT0FBTyxDQUFDaUIsR0FBUixDQUFZLGlCQUFaLEVBQStCUCxLQUEvQixFQUFzQ3VCLElBQXRDOztBQUNELFlBQUksQ0FBQ3ZCLEtBQUQsSUFBVXNCLFFBQVYsSUFBc0JBLFFBQVEsQ0FBQ0UsVUFBVCxJQUF1QixHQUFqRCxFQUFzRDtBQUNyRCxjQUFJaEQsVUFBVSxDQUFDSSxLQUFmLEVBQ0NVLE9BQU8sQ0FBQ2lCLEdBQVIsQ0FBWSxnQkFBWjtBQUNELFNBSEQsTUFHTztBQUNOUCxlQUFLLEdBQUdBLEtBQUssSUFBSSxlQUFqQjtBQUNBO0FBQ0QsT0FwQkQ7QUFxQkE7QUFDRCxHQTNCRDtBQTRCQSxDQTdCRDs7QUErQkF4QixVQUFVLENBQUNpQyxXQUFYLEdBQXlCLFVBQVNoQixZQUFULEVBQXVCTCxZQUF2QixFQUFxQ2dCLE1BQXJDLEVBQTZDVCxVQUE3QyxFQUF5RDtBQUNqRixRQUFNYSxRQUFRLEdBQUc7QUFDaEJpQixnQkFBWSxFQUFFLEtBQUtoRCxRQUFMLENBQWNXLFlBQWQsRUFBNEJxQyxZQUQxQjtBQUVoQkMsV0FBTyxFQUFFLDJCQUZPO0FBR2hCQyxVQUFNLEVBQUVDLElBQUksQ0FBQ0MsS0FBTCxDQUFXQyxJQUFJLENBQUNDLEdBQUwsS0FBYSxJQUF4QjtBQUhRLEdBQWpCO0FBS0F2QixVQUFRLENBQUN3QixPQUFULEdBQW1CO0FBQ2xCQyxPQUFHLEVBQUU7QUFDSkMsU0FBRyxFQUFFO0FBQ0pDLFlBQUksRUFBRSxDQURGO0FBRUpaLFlBQUksRUFBRTtBQUNMYSxpQkFBTyxFQUFFM0MsWUFBWSxDQUFDRyxPQUFiLENBQXFCeUMsT0FEekI7QUFFTHhDLGVBQUssRUFBRUosWUFBWSxDQUFDRyxPQUFiLENBQXFCQztBQUZ2QixTQUZGO0FBTUp5QyxjQUFNLEVBQUU7QUFDUEgsY0FBSSxFQUFFLENBREM7QUFFUEksZUFBSyxFQUFFO0FBQ05DLHNCQUFVLEVBQUVwRDtBQUROO0FBRkEsU0FOSjtBQVlKcUQsZ0JBQVEsRUFBRSxNQVpOLENBWWE7O0FBWmIsT0FERDtBQWVKQyxTQUFHLEVBQUU7QUFDSkMsaUJBQVMsRUFBRSxLQUFLQyxNQUFMLENBQVluRCxZQUFZLENBQUNtRCxNQUF6QjtBQURQO0FBZkQ7QUFEYSxHQUFuQjtBQXFCQXBDLFVBQVEsQ0FBQ3dCLE9BQVQsR0FBbUJhLElBQUksQ0FBQ0MsU0FBTCxDQUFldEMsUUFBUSxDQUFDd0IsT0FBeEIsQ0FBbkI7QUFDQXhCLFVBQVEsQ0FBQ3VDLGlCQUFULEdBQTZCRixJQUFJLENBQUNDLFNBQUwsQ0FBZTFDLE1BQWYsQ0FBN0I7O0FBRUEsTUFBSVQsVUFBVSxHQUFHLENBQWpCLEVBQW9CO0FBQ25CYSxZQUFRLENBQUN3QyxXQUFULEdBQXVCLEtBQUtDLGdCQUFMLENBQXNCLElBQUluQixJQUFKLENBQVNBLElBQUksQ0FBQ0MsR0FBTCxLQUFhcEMsVUFBdEIsQ0FBdEIsQ0FBdkI7QUFDQSxRQUFJbkIsVUFBVSxDQUFDSSxLQUFmLEVBQ0NVLE9BQU8sQ0FBQ2lCLEdBQVIsQ0FBWSx1QkFBWixFQUFxQ0MsUUFBUSxDQUFDd0MsV0FBOUM7QUFDRDs7QUFDRCxTQUFPeEMsUUFBUDtBQUNBLENBcENEOztBQXNDQWhDLFVBQVUsQ0FBQzBFLE9BQVgsR0FBcUIsVUFBU3pELFlBQVQsRUFBdUJFLFVBQXZCLEVBQW1DO0FBQ3ZELE1BQUlGLFlBQVksQ0FBQ0csT0FBYixDQUFxQkMsS0FBekIsRUFBZ0M7QUFDL0IsU0FBSyxNQUFNVCxZQUFYLElBQTJCLEtBQUtYLFFBQWhDLEVBQTBDO0FBQ3pDYSxhQUFPLENBQUNpQixHQUFSLENBQVksZUFBWjtBQUNBO0FBQ0Q7QUFDRCxDQU5EOztBQVFBL0IsVUFBVSxDQUFDNkIsVUFBWCxHQUF3QixVQUFTakIsWUFBVCxFQUF1QitELFFBQXZCLEVBQWlDO0FBQ3hELFFBQU0xRSxRQUFRLEdBQUcsS0FBS0EsUUFBTCxDQUFjVyxZQUFkLENBQWpCOztBQUNBLE1BQUlYLFFBQVEsQ0FBQ2dELFlBQVQsSUFBeUJLLElBQUksQ0FBQ0MsR0FBTCxLQUFhdEQsUUFBUSxDQUFDWSxtQkFBbkQsRUFBd0U7QUFDdkU4RCxZQUFRO0FBQ1IsR0FGRCxNQUVPO0FBQ04sUUFBSTNFLFVBQVUsQ0FBQ0ksS0FBZixFQUNDVSxPQUFPLENBQUNDLElBQVIsQ0FBYSxnQkFBYixFQUErQkgsWUFBL0IsRUFBNkMsS0FBS1gsUUFBTCxDQUFjVyxZQUFkLENBQTdDO0FBQ0RqQixXQUFPLENBQUN1QyxJQUFSLENBQWE7QUFDWkMsU0FBRyxFQUFFdEMsUUFETztBQUVaMEMsVUFBSSxFQUFFO0FBQ0xxQyxrQkFBVSxFQUFFLG9CQURQO0FBRUx0QyxpQkFBUyxFQUFFckMsUUFBUSxDQUFDcUMsU0FGZjtBQUdMdUMscUJBQWEsRUFBRTVFLFFBQVEsQ0FBQzRFO0FBSG5CLE9BRk07QUFPWjlFLGFBQU8sRUFBRUEsT0FQRztBQVFaeUMsaUJBQVcsRUFBRSxDQVJEO0FBU1pDLGdCQUFVLEVBQUUsSUFUQTtBQVVaRSxtQkFBYSxFQUFFaEQsT0FBTyxDQUFDaUQsZUFBUixDQUF3QkM7QUFWM0IsS0FBYixFQVdHLENBQUNyQixLQUFELEVBQVFzQixRQUFSLEVBQWtCQyxJQUFsQixLQUEyQjtBQUM3QixVQUFJLENBQUN2QixLQUFMLEVBQVk7QUFDWCxjQUFNc0QsSUFBSSxHQUFHVCxJQUFJLENBQUNVLEtBQUwsQ0FBV2hDLElBQVgsQ0FBYjtBQUNBOUMsZ0JBQVEsQ0FBQ2dELFlBQVQsR0FBd0I2QixJQUFJLENBQUM3QixZQUE3QjtBQUNBaEQsZ0JBQVEsQ0FBQ1ksbUJBQVQsR0FBK0J5QyxJQUFJLENBQUNDLEdBQUwsS0FBYXVCLElBQUksQ0FBQ0UsVUFBTCxHQUFrQixJQUEvQixHQUFzQyxLQUFLLElBQTFFO0FBQ0EsWUFBSWhGLFVBQVUsQ0FBQ0ksS0FBZixFQUNDVSxPQUFPLENBQUNDLElBQVIsQ0FBYSwwQkFBYixFQUF5QytELElBQXpDO0FBQ0RILGdCQUFRO0FBQ1IsT0FQRCxNQU9PO0FBQ043RCxlQUFPLENBQUNVLEtBQVIsQ0FBYyx3QkFBZCxFQUF3Q3VCLElBQXhDO0FBQ0E0QixnQkFBUSxDQUFDbkQsS0FBRCxDQUFSO0FBQ0E7QUFDRCxLQXZCRDtBQXdCQTtBQUNELENBaENEOztBQWtDQXhCLFVBQVUsQ0FBQ3lFLGdCQUFYLEdBQThCLFVBQVNRLElBQVQsRUFBZTtBQUM1QyxTQUFPQyxNQUFNLENBQUNELElBQUQsQ0FBTixDQUFhRSxNQUFiLENBQW9CLGtCQUFwQixDQUFQO0FBQ0EsQ0FGRDtBQUlBOzs7Ozs7QUFJQW5GLFVBQVUsQ0FBQ29FLE1BQVgsR0FBb0IsVUFBU0EsTUFBVCxFQUFpQjtBQUNwQyxNQUFJZ0IsS0FBSyxDQUFDQyxPQUFOLENBQWNqQixNQUFkLENBQUosRUFDQyxPQUFPQSxNQUFQO0FBRUQsTUFBSWtCLFVBQVUsR0FBRyxFQUFqQjs7QUFDQSxNQUFJbEIsTUFBSixFQUFZO0FBQ1gsUUFBSW1CLElBQUksR0FBR0MsTUFBTSxDQUFDRCxJQUFQLENBQVluQixNQUFaLENBQVg7QUFDQW1CLFFBQUksQ0FBQzdFLE9BQUwsQ0FBYSxVQUFTK0UsR0FBVCxFQUFjO0FBQzFCLFVBQUkvRixDQUFDLEdBQUcsRUFBUjtBQUNBQSxPQUFDLENBQUMrRixHQUFELENBQUQsR0FBU3JCLE1BQU0sQ0FBQ3FCLEdBQUQsQ0FBZjtBQUNBSCxnQkFBVSxDQUFDL0UsSUFBWCxDQUFnQmIsQ0FBaEI7QUFDQSxLQUpEO0FBS0EwRSxVQUFNLEdBQUdrQixVQUFUO0FBQ0E7O0FBQ0QsU0FBT0EsVUFBUDtBQUNBLENBZkQsQyIsImZpbGUiOiIvcGFja2FnZXMvc3RlZWRvc19odWF3ZWlwdXNoLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY2hlY2tOcG1WZXJzaW9ucyB9IGZyb20gJ21ldGVvci90bWVhc2RheTpjaGVjay1ucG0tdmVyc2lvbnMnO1xuIiwiY29uc3QgcmVxdWVzdCA9IHJlcXVpcmUoJ3JlcXVlc3RyZXRyeScpO1xuY29uc3QgdG9rZW5VcmwgPSBcImh0dHBzOi8vbG9naW4udm1hbGwuY29tL29hdXRoMi90b2tlblwiO1xuY29uc3QgYXBpVXJsID0gXCJodHRwczovL2FwaS5wdXNoLmhpY2xvdWQuY29tL3B1c2hzZW5kLmRvXCI7XG5jb25zdCB0aW1lb3V0ID0gNTAwMDtcblxuSHVhd2VpUHVzaCA9IHtcblx0YXV0aEluZm86IHt9LFxuXHRkZWZhdWx0X3BhY2thZ2VfbmFtZTogdW5kZWZpbmVkLFxuXHRkZWJ1ZzogTWV0ZW9yLnNldHRpbmdzLnB1c2ggJiYgTWV0ZW9yLnNldHRpbmdzLnB1c2guaHVhd2VpICYmIE1ldGVvci5zZXR0aW5ncy5wdXNoLmh1YXdlaS5kZWJ1Z1xufTtcblxuSHVhd2VpUHVzaC5jb25maWcgPSBmdW5jdGlvbihjb25maWcpIHtcblx0Y29uZmlnLmZvckVhY2goKHZhbCkgPT4ge1xuXHRcdGlmICh0aGlzLmF1dGhJbmZvW3ZhbC5wYWNrYWdlX25hbWVdKVxuXHRcdFx0cmV0dXJuXG5cdFx0dGhpcy5hdXRoSW5mb1t2YWwucGFja2FnZV9uYW1lXSA9IHZhbDtcblx0XHR2YWwuYWNjZXNzX3Rva2VuX2V4cGlyZSA9IDA7XG5cdFx0aWYgKCF0aGlzLmRlZmF1bHRfcGFja2FnZV9uYW1lKSB7XG5cdFx0XHR0aGlzLmRlZmF1bHRfcGFja2FnZV9uYW1lID0gdmFsLnBhY2thZ2VfbmFtZTtcblx0XHRcdGlmIChIdWF3ZWlQdXNoLmRlYnVnKVxuXHRcdFx0XHRjb25zb2xlLmluZm8oJ2h1YXdlaSBkZWZhdWx0IHBhY2thZ2UgbmFtZSAnLCB0aGlzLmRlZmF1bHRfcGFja2FnZV9uYW1lKTtcblx0XHR9XG5cdH0pO1xufVxuXG5IdWF3ZWlQdXNoLnNlbmRNYW55ID0gZnVuY3Rpb24obm90aWZpY2F0aW9uLCB0b2tlbkRhdGFMaXN0LCB0aW1lVG9MaXZlKSB7XG5cdGlmIChub3RpZmljYXRpb24uYW5kcm9pZC50aXRsZSkge1xuXHRcdGNvbnN0IG1hcFRva2VuRGF0YSA9IHt9O1xuXHRcdGZvciAoY29uc3QgdG9rZW5EYXRhIG9mIHRva2VuRGF0YUxpc3QpIHtcblx0XHRcdGNvbnN0IHBhY2thZ2VfbmFtZSA9IHRva2VuRGF0YS5wYWNrYWdlX25hbWUgfHwgdGhpcy5kZWZhdWx0X3BhY2thZ2VfbmFtZTtcblx0XHRcdGlmICghdGhpcy5hdXRoSW5mb1twYWNrYWdlX25hbWVdKSB7XG5cdFx0XHRcdGNvbnNvbGUuZXJyb3IoJ2h1YXdlaSBwYWNrYWdlIG5hbWUgbm90IHN1cHBvcnRlZDogJywgcGFja2FnZV9uYW1lKTtcblx0XHRcdFx0Y29udGludWU7XG5cdFx0XHR9XG5cdFx0XHRjb25zdCB0b2tlbkxpc3QgPSBtYXBUb2tlbkRhdGFbcGFja2FnZV9uYW1lXSB8fCBbXTtcblx0XHRcdHRva2VuTGlzdC5wdXNoKHRva2VuRGF0YS50b2tlbik7XG5cdFx0XHRtYXBUb2tlbkRhdGFbcGFja2FnZV9uYW1lXSA9IHRva2VuTGlzdDtcblx0XHR9XG5cblx0XHRmb3IgKGNvbnN0IHBhY2thZ2VfbmFtZSBpbiBtYXBUb2tlbkRhdGEpIHtcblx0XHRcdHRoaXMuZG9TZW5kTWFueShub3RpZmljYXRpb24sIHBhY2thZ2VfbmFtZSwgbWFwVG9rZW5EYXRhW3BhY2thZ2VfbmFtZV0sIHRpbWVUb0xpdmUpO1xuXHRcdH1cblx0fVxufVxuXG5IdWF3ZWlQdXNoLmRvU2VuZE1hbnkgPSBmdW5jdGlvbihub3RpZmljYXRpb24sIHBhY2thZ2VfbmFtZSwgdG9rZW5zLCB0aW1lVG9MaXZlKSB7XG5cdHRoaXMuY2hlY2tUb2tlbihwYWNrYWdlX25hbWUsICh0b2tlbkVycm9yKSA9PiB7XG5cdFx0aWYgKCF0b2tlbkVycm9yKSB7XG5cdFx0XHRpZiAoSHVhd2VpUHVzaC5kZWJ1Zylcblx0XHRcdFx0Y29uc29sZS5sb2coXCJzZW5kTWFueSBcIiwgbm90aWZpY2F0aW9uLCB0aW1lVG9MaXZlKTtcblx0XHRcdGNvbnN0IHBvc3REYXRhID0gdGhpcy5nZXRQb3N0RGF0YShub3RpZmljYXRpb24sIHBhY2thZ2VfbmFtZSwgdG9rZW5zLCB0aW1lVG9MaXZlKTtcblx0XHRcdHJlcXVlc3QucG9zdCh7XG5cdFx0XHRcdHVybDogYXBpVXJsLFxuXHRcdFx0XHRxczoge1xuXHRcdFx0XHRcdG5zcF9jdHg6IGB7XCJ2ZXJcIjoxLFwiYXBwSWRcIjpcIiR7dGhpcy5hdXRoSW5mb1twYWNrYWdlX25hbWVdLmNsaWVudF9pZH1cIn1gXG5cdFx0XHRcdH0sXG5cdFx0XHRcdGZvcm06IHBvc3REYXRhLFxuXHRcdFx0XHR0aW1lb3V0OiB0aW1lb3V0LFxuXHRcdFx0XHRtYXhBdHRlbXB0czogMixcblx0XHRcdFx0cmV0cnlEZWxheTogNTAwMCxcblx0XHRcdFx0dGltZTogdHJ1ZSxcblx0XHRcdFx0cmV0cnlTdHJhdGVneTogcmVxdWVzdC5SZXRyeVN0cmF0ZWdpZXMuTmV0d29ya0Vycm9yXG5cdFx0XHR9LCAoZXJyb3IsIHJlc3BvbnNlLCBib2R5KSA9PiB7XG5cdFx0XHRcdGlmIChIdWF3ZWlQdXNoLmRlYnVnKVxuXHRcdFx0XHRcdGNvbnNvbGUubG9nKFwic2VuZE1hbnkgcmVzdWx0XCIsIGVycm9yLCBib2R5KTtcblx0XHRcdFx0aWYgKCFlcnJvciAmJiByZXNwb25zZSAmJiByZXNwb25zZS5zdGF0dXNDb2RlID09IDIwMCkge1xuXHRcdFx0XHRcdGlmIChIdWF3ZWlQdXNoLmRlYnVnKVxuXHRcdFx0XHRcdFx0Y29uc29sZS5sb2coXCJUT0RPOiBjYWxsYmFja1wiKTtcblx0XHRcdFx0fSBlbHNlIHtcblx0XHRcdFx0XHRlcnJvciA9IGVycm9yIHx8ICd1bmtub3duIGVycm9yJztcblx0XHRcdFx0fVxuXHRcdFx0fSk7XG5cdFx0fVxuXHR9KTtcbn1cblxuSHVhd2VpUHVzaC5nZXRQb3N0RGF0YSA9IGZ1bmN0aW9uKG5vdGlmaWNhdGlvbiwgcGFja2FnZV9uYW1lLCB0b2tlbnMsIHRpbWVUb0xpdmUpIHtcblx0Y29uc3QgcG9zdERhdGEgPSB7XG5cdFx0YWNjZXNzX3Rva2VuOiB0aGlzLmF1dGhJbmZvW3BhY2thZ2VfbmFtZV0uYWNjZXNzX3Rva2VuLFxuXHRcdG5zcF9zdmM6IFwib3BlbnB1c2gubWVzc2FnZS5hcGkuc2VuZFwiLFxuXHRcdG5zcF90czogTWF0aC5mbG9vcihEYXRlLm5vdygpIC8gMTAwMClcblx0fTtcblx0cG9zdERhdGEucGF5bG9hZCA9IHtcblx0XHRocHM6IHtcblx0XHRcdG1zZzoge1xuXHRcdFx0XHR0eXBlOiAzLFxuXHRcdFx0XHRib2R5OiB7XG5cdFx0XHRcdFx0Y29udGVudDogbm90aWZpY2F0aW9uLmFuZHJvaWQubWVzc2FnZSxcblx0XHRcdFx0XHR0aXRsZTogbm90aWZpY2F0aW9uLmFuZHJvaWQudGl0bGVcblx0XHRcdFx0fSxcblx0XHRcdFx0YWN0aW9uOiB7XG5cdFx0XHRcdFx0dHlwZTogMyxcblx0XHRcdFx0XHRwYXJhbToge1xuXHRcdFx0XHRcdFx0YXBwUGtnTmFtZTogcGFja2FnZV9uYW1lXG5cdFx0XHRcdFx0fVxuXHRcdFx0XHR9LFxuXHRcdFx0XHRjYXRlZ29yeTogJ1dPUksnIC8vIOW3peS9nOS6i+mhueaPkOmGklxuXHRcdFx0fSxcblx0XHRcdGV4dDoge1xuXHRcdFx0XHRjdXN0b21pemU6IHRoaXMuZXh0cmFzKG5vdGlmaWNhdGlvbi5leHRyYXMpXG5cdFx0XHR9XG5cdFx0fVxuXHR9O1xuXHRwb3N0RGF0YS5wYXlsb2FkID0gSlNPTi5zdHJpbmdpZnkocG9zdERhdGEucGF5bG9hZCk7XG5cdHBvc3REYXRhLmRldmljZV90b2tlbl9saXN0ID0gSlNPTi5zdHJpbmdpZnkodG9rZW5zKTtcblxuXHRpZiAodGltZVRvTGl2ZSA+IDApIHtcblx0XHRwb3N0RGF0YS5leHBpcmVfdGltZSA9IHRoaXMuZm9ybWF0SHVhd2VpRGF0ZShuZXcgRGF0ZShEYXRlLm5vdygpICsgdGltZVRvTGl2ZSkpO1xuXHRcdGlmIChIdWF3ZWlQdXNoLmRlYnVnKVxuXHRcdFx0Y29uc29sZS5sb2coXCJwb3N0RGF0YS5leHBpcmVfdGltZSBcIiwgcG9zdERhdGEuZXhwaXJlX3RpbWUpO1xuXHR9XG5cdHJldHVybiBwb3N0RGF0YTtcbn1cblxuSHVhd2VpUHVzaC5zZW5kQWxsID0gZnVuY3Rpb24obm90aWZpY2F0aW9uLCB0aW1lVG9MaXZlKSB7XG5cdGlmIChub3RpZmljYXRpb24uYW5kcm9pZC50aXRsZSkge1xuXHRcdGZvciAoY29uc3QgcGFja2FnZV9uYW1lIGluIHRoaXMuYXV0aEluZm8pIHtcblx0XHRcdGNvbnNvbGUubG9nKFwiVE9ETzogc2VuZEFsbFwiKTtcblx0XHR9XG5cdH1cbn1cblxuSHVhd2VpUHVzaC5jaGVja1Rva2VuID0gZnVuY3Rpb24ocGFja2FnZV9uYW1lLCBjYWxsYmFjaykge1xuXHRjb25zdCBhdXRoSW5mbyA9IHRoaXMuYXV0aEluZm9bcGFja2FnZV9uYW1lXTtcblx0aWYgKGF1dGhJbmZvLmFjY2Vzc190b2tlbiAmJiBEYXRlLm5vdygpIDwgYXV0aEluZm8uYWNjZXNzX3Rva2VuX2V4cGlyZSkge1xuXHRcdGNhbGxiYWNrKCk7XG5cdH0gZWxzZSB7XG5cdFx0aWYgKEh1YXdlaVB1c2guZGVidWcpXG5cdFx0XHRjb25zb2xlLmluZm8oXCJyZXF1ZXN0IHRva2VuIFwiLCBwYWNrYWdlX25hbWUsIHRoaXMuYXV0aEluZm9bcGFja2FnZV9uYW1lXSk7XG5cdFx0cmVxdWVzdC5wb3N0KHtcblx0XHRcdHVybDogdG9rZW5VcmwsXG5cdFx0XHRmb3JtOiB7XG5cdFx0XHRcdGdyYW50X3R5cGU6IFwiY2xpZW50X2NyZWRlbnRpYWxzXCIsXG5cdFx0XHRcdGNsaWVudF9pZDogYXV0aEluZm8uY2xpZW50X2lkLFxuXHRcdFx0XHRjbGllbnRfc2VjcmV0OiBhdXRoSW5mby5jbGllbnRfc2VjcmV0XG5cdFx0XHR9LFxuXHRcdFx0dGltZW91dDogdGltZW91dCxcblx0XHRcdG1heEF0dGVtcHRzOiAyLFxuXHRcdFx0cmV0cnlEZWxheTogNTAwMCxcblx0XHRcdHJldHJ5U3RyYXRlZ3k6IHJlcXVlc3QuUmV0cnlTdHJhdGVnaWVzLk5ldHdvcmtFcnJvclxuXHRcdH0sIChlcnJvciwgcmVzcG9uc2UsIGJvZHkpID0+IHtcblx0XHRcdGlmICghZXJyb3IpIHtcblx0XHRcdFx0Y29uc3QgZGF0YSA9IEpTT04ucGFyc2UoYm9keSk7XG5cdFx0XHRcdGF1dGhJbmZvLmFjY2Vzc190b2tlbiA9IGRhdGEuYWNjZXNzX3Rva2VuO1xuXHRcdFx0XHRhdXRoSW5mby5hY2Nlc3NfdG9rZW5fZXhwaXJlID0gRGF0ZS5ub3coKSArIGRhdGEuZXhwaXJlc19pbiAqIDEwMDAgLSA2MCAqIDEwMDA7XG5cdFx0XHRcdGlmIChIdWF3ZWlQdXNoLmRlYnVnKVxuXHRcdFx0XHRcdGNvbnNvbGUuaW5mbyhcImdldCBhY2Nlc3MgdG9rZW4gc3VjY2Vzc1wiLCBkYXRhKTtcblx0XHRcdFx0Y2FsbGJhY2soKTtcblx0XHRcdH0gZWxzZSB7XG5cdFx0XHRcdGNvbnNvbGUuZXJyb3IoXCJnZXQgYWNjZXNzIHRva2VuIGVycm9yXCIsIGJvZHkpO1xuXHRcdFx0XHRjYWxsYmFjayhlcnJvcik7XG5cdFx0XHR9XG5cdFx0fSk7XG5cdH1cbn1cblxuSHVhd2VpUHVzaC5mb3JtYXRIdWF3ZWlEYXRlID0gZnVuY3Rpb24oZGF0ZSkge1xuXHRyZXR1cm4gbW9tZW50KGRhdGUpLmZvcm1hdChcIllZWVktTU0tRERUSEg6bW1cIik7XG59XG5cbi8qXG4gKiDnlKjmiLfoh6rlrprkuYkgZGljdFxuICogXCJleHRyYXNcIjp7XCJzZWFzb25cIjpcIlNwcmluZ1wiLCBcIndlYXRoZXJcIjpcInJhaW5pbmdcIn1dXG4gKi9cbkh1YXdlaVB1c2guZXh0cmFzID0gZnVuY3Rpb24oZXh0cmFzKSB7XG5cdGlmIChBcnJheS5pc0FycmF5KGV4dHJhcykpXG5cdFx0cmV0dXJuIGV4dHJhcztcblxuXHR2YXIgZXh0cmFBcnJheSA9IFtdO1xuXHRpZiAoZXh0cmFzKSB7XG5cdFx0dmFyIGtleXMgPSBPYmplY3Qua2V5cyhleHRyYXMpO1xuXHRcdGtleXMuZm9yRWFjaChmdW5jdGlvbihrZXkpIHtcblx0XHRcdHZhciB2ID0ge307XG5cdFx0XHR2W2tleV0gPSBleHRyYXNba2V5XTtcblx0XHRcdGV4dHJhQXJyYXkucHVzaCh2KVxuXHRcdH0pXG5cdFx0ZXh0cmFzID0gZXh0cmFBcnJheVxuXHR9XG5cdHJldHVybiBleHRyYUFycmF5O1xufTsiXX0= +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1ldGVvcjovL/CfkrthcHAvcGFja2FnZXMvc3RlZWRvczpodWF3ZWlwdXNoL2NoZWNrTnBtLmpzIiwibWV0ZW9yOi8v8J+Su2FwcC9wYWNrYWdlcy9zdGVlZG9zOmh1YXdlaXB1c2gvc2VydmVyL2h1YXdlaVByb3ZpZGVyLmpzIl0sIm5hbWVzIjpbImNoZWNrTnBtVmVyc2lvbnMiLCJtb2R1bGUiLCJsaW5rIiwidiIsInJlcXVlc3QiLCJyZXF1aXJlIiwidG9rZW5VcmwiLCJhcGlVcmwiLCJ0aW1lb3V0IiwiSHVhd2VpUHVzaCIsImF1dGhJbmZvIiwiZGVmYXVsdF9wYWNrYWdlX25hbWUiLCJ1bmRlZmluZWQiLCJkZWJ1ZyIsIk1ldGVvciIsInNldHRpbmdzIiwicHVzaCIsImh1YXdlaSIsImNvbmZpZyIsImZvckVhY2giLCJ2YWwiLCJwYWNrYWdlX25hbWUiLCJhY2Nlc3NfdG9rZW5fZXhwaXJlIiwiY29uc29sZSIsImluZm8iLCJzZW5kTWFueSIsIm5vdGlmaWNhdGlvbiIsInRva2VuRGF0YUxpc3QiLCJ0aW1lVG9MaXZlIiwiYW5kcm9pZCIsInRpdGxlIiwibWFwVG9rZW5EYXRhIiwidG9rZW5EYXRhIiwiZXJyb3IiLCJ0b2tlbkxpc3QiLCJ0b2tlbiIsImRvU2VuZE1hbnkiLCJ0b2tlbnMiLCJjaGVja1Rva2VuIiwidG9rZW5FcnJvciIsImxvZyIsInBvc3REYXRhIiwiZ2V0UG9zdERhdGEiLCJwb3N0IiwidXJsIiwicmVwbGFjZSIsImNsaWVudF9pZCIsImJvZHkiLCJKU09OIiwic3RyaW5naWZ5IiwiYWNjZXNzX3Rva2VuIiwibWF4QXR0ZW1wdHMiLCJyZXRyeURlbGF5IiwidGltZSIsInJldHJ5U3RyYXRlZ3kiLCJSZXRyeVN0cmF0ZWdpZXMiLCJOZXR3b3JrRXJyb3IiLCJyZXNwb25zZSIsInN0YXR1c0NvZGUiLCJtZXNzYWdlIiwiZXh0cmFzIiwic2VuZEFsbCIsImNhbGxiYWNrIiwiRGF0ZSIsIm5vdyIsImZvcm0iLCJncmFudF90eXBlIiwiY2xpZW50X3NlY3JldCIsImRhdGEiLCJwYXJzZSIsImV4cGlyZXNfaW4iLCJmb3JtYXRIdWF3ZWlEYXRlIiwiZGF0ZSIsIm1vbWVudCIsImZvcm1hdCIsIkFycmF5IiwiaXNBcnJheSIsImV4dHJhQXJyYXkiLCJrZXlzIiwiT2JqZWN0Iiwia2V5Il0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsSUFBSUEsZ0JBQUo7QUFBcUJDLE1BQU0sQ0FBQ0MsSUFBUCxDQUFZLG9DQUFaLEVBQWlEO0FBQUNGLGtCQUFnQixDQUFDRyxDQUFELEVBQUc7QUFBQ0gsb0JBQWdCLEdBQUNHLENBQWpCO0FBQW1COztBQUF4QyxDQUFqRCxFQUEyRixDQUEzRixFOzs7Ozs7Ozs7OztBQ0FyQixNQUFNQyxPQUFPLEdBQUdDLE9BQU8sQ0FBQyxjQUFELENBQXZCOztBQUNBLE1BQU1DLFFBQVEsR0FBRyxzREFBakI7QUFDQSxNQUFNQyxNQUFNLEdBQUcsK0RBQWY7QUFDQSxNQUFNQyxPQUFPLEdBQUcsSUFBaEI7QUFFQUMsVUFBVSxHQUFHO0FBQ1pDLFVBQVEsRUFBRSxFQURFO0FBRVpDLHNCQUFvQixFQUFFQyxTQUZWO0FBR1pDLE9BQUssRUFBRUMsTUFBTSxDQUFDQyxRQUFQLENBQWdCQyxJQUFoQixJQUF3QkYsTUFBTSxDQUFDQyxRQUFQLENBQWdCQyxJQUFoQixDQUFxQkMsTUFBN0MsSUFBdURILE1BQU0sQ0FBQ0MsUUFBUCxDQUFnQkMsSUFBaEIsQ0FBcUJDLE1BQXJCLENBQTRCSjtBQUg5RSxDQUFiOztBQU1BSixVQUFVLENBQUNTLE1BQVgsR0FBb0IsVUFBU0EsTUFBVCxFQUFpQjtBQUNwQ0EsUUFBTSxDQUFDQyxPQUFQLENBQWdCQyxHQUFELElBQVM7QUFDdkIsUUFBSSxLQUFLVixRQUFMLENBQWNVLEdBQUcsQ0FBQ0MsWUFBbEIsQ0FBSixFQUNDO0FBQ0QsU0FBS1gsUUFBTCxDQUFjVSxHQUFHLENBQUNDLFlBQWxCLElBQWtDRCxHQUFsQztBQUNBQSxPQUFHLENBQUNFLG1CQUFKLEdBQTBCLENBQTFCOztBQUNBLFFBQUksQ0FBQyxLQUFLWCxvQkFBVixFQUFnQztBQUMvQixXQUFLQSxvQkFBTCxHQUE0QlMsR0FBRyxDQUFDQyxZQUFoQztBQUNBLFVBQUlaLFVBQVUsQ0FBQ0ksS0FBZixFQUNDVSxPQUFPLENBQUNDLElBQVIsQ0FBYSw4QkFBYixFQUE2QyxLQUFLYixvQkFBbEQ7QUFDRDtBQUNELEdBVkQ7QUFXQSxDQVpEOztBQWNBRixVQUFVLENBQUNnQixRQUFYLEdBQXNCLFVBQVNDLFlBQVQsRUFBdUJDLGFBQXZCLEVBQXNDQyxVQUF0QyxFQUFrRDtBQUN2RSxNQUFJRixZQUFZLENBQUNHLE9BQWIsQ0FBcUJDLEtBQXpCLEVBQWdDO0FBQy9CLFVBQU1DLFlBQVksR0FBRyxFQUFyQjs7QUFDQSxTQUFLLE1BQU1DLFNBQVgsSUFBd0JMLGFBQXhCLEVBQXVDO0FBQ3RDLFlBQU1OLFlBQVksR0FBR1csU0FBUyxDQUFDWCxZQUFWLElBQTBCLEtBQUtWLG9CQUFwRDs7QUFDQSxVQUFJLENBQUMsS0FBS0QsUUFBTCxDQUFjVyxZQUFkLENBQUwsRUFBa0M7QUFDakNFLGVBQU8sQ0FBQ1UsS0FBUixDQUFjLHFDQUFkLEVBQXFEWixZQUFyRDtBQUNBO0FBQ0E7O0FBQ0QsWUFBTWEsU0FBUyxHQUFHSCxZQUFZLENBQUNWLFlBQUQsQ0FBWixJQUE4QixFQUFoRDtBQUNBYSxlQUFTLENBQUNsQixJQUFWLENBQWVnQixTQUFTLENBQUNHLEtBQXpCO0FBQ0FKLGtCQUFZLENBQUNWLFlBQUQsQ0FBWixHQUE2QmEsU0FBN0I7QUFDQTs7QUFFRCxTQUFLLE1BQU1iLFlBQVgsSUFBMkJVLFlBQTNCLEVBQXlDO0FBQ3hDLFdBQUtLLFVBQUwsQ0FBZ0JWLFlBQWhCLEVBQThCTCxZQUE5QixFQUE0Q1UsWUFBWSxDQUFDVixZQUFELENBQXhELEVBQXdFTyxVQUF4RTtBQUNBO0FBQ0Q7QUFDRCxDQWxCRDs7QUFvQkFuQixVQUFVLENBQUMyQixVQUFYLEdBQXdCLFVBQVNWLFlBQVQsRUFBdUJMLFlBQXZCLEVBQXFDZ0IsTUFBckMsRUFBNkNULFVBQTdDLEVBQXlEO0FBQ2hGLE9BQUtVLFVBQUwsQ0FBZ0JqQixZQUFoQixFQUErQmtCLFVBQUQsSUFBZ0I7QUFDN0MsUUFBSSxDQUFDQSxVQUFMLEVBQWlCO0FBQ2hCLFVBQUk5QixVQUFVLENBQUNJLEtBQWYsRUFDQ1UsT0FBTyxDQUFDaUIsR0FBUixDQUFZLFdBQVosRUFBeUJkLFlBQXpCLEVBQXVDRSxVQUF2QztBQUNELFlBQU1hLFFBQVEsR0FBRyxLQUFLQyxXQUFMLENBQWlCaEIsWUFBakIsRUFBK0JMLFlBQS9CLEVBQTZDZ0IsTUFBN0MsRUFBcURULFVBQXJELENBQWpCO0FBQ0F4QixhQUFPLENBQUN1QyxJQUFSLENBQWE7QUFDWkMsV0FBRyxFQUFFckMsTUFBTSxDQUFDc0MsT0FBUCxDQUFlLFlBQWYsRUFBNkIsS0FBS25DLFFBQUwsQ0FBY1csWUFBZCxFQUE0QnlCLFNBQXpELENBRE87QUFFWkMsWUFBSSxFQUFFQyxJQUFJLENBQUNDLFNBQUwsQ0FBZVIsUUFBZixDQUZNO0FBR1osbUJBQVc7QUFDViwyQkFBaUIsWUFBVyxLQUFLL0IsUUFBTCxDQUFjVyxZQUFkLEVBQTRCNkI7QUFEOUMsU0FIQztBQU1aMUMsZUFBTyxFQUFFQSxPQU5HO0FBT1oyQyxtQkFBVyxFQUFFLENBUEQ7QUFRWkMsa0JBQVUsRUFBRSxJQVJBO0FBU1pDLFlBQUksRUFBRSxJQVRNO0FBVVpDLHFCQUFhLEVBQUVsRCxPQUFPLENBQUNtRCxlQUFSLENBQXdCQztBQVYzQixPQUFiLEVBV0csQ0FBQ3ZCLEtBQUQsRUFBUXdCLFFBQVIsRUFBa0JWLElBQWxCLEtBQTJCO0FBQzdCLFlBQUl0QyxVQUFVLENBQUNJLEtBQWYsRUFDQ1UsT0FBTyxDQUFDaUIsR0FBUixDQUFZLGlCQUFaLEVBQStCUCxLQUEvQixFQUFzQ2MsSUFBdEM7O0FBQ0QsWUFBSSxDQUFDZCxLQUFELElBQVV3QixRQUFWLElBQXNCQSxRQUFRLENBQUNDLFVBQVQsSUFBdUIsR0FBakQsRUFBc0Q7QUFDckQsY0FBSWpELFVBQVUsQ0FBQ0ksS0FBZixFQUNDVSxPQUFPLENBQUNpQixHQUFSLENBQVksZ0JBQVo7QUFDRCxTQUhELE1BR087QUFDTlAsZUFBSyxHQUFHQSxLQUFLLElBQUksZUFBakI7QUFDQTtBQUNELE9BcEJEO0FBcUJBO0FBQ0QsR0EzQkQ7QUE0QkEsQ0E3QkQ7O0FBK0JBeEIsVUFBVSxDQUFDaUMsV0FBWCxHQUF5QixVQUFTaEIsWUFBVCxFQUF1QkwsWUFBdkIsRUFBcUNnQixNQUFyQyxFQUE2Q1QsVUFBN0MsRUFBeUQ7QUFDakYsUUFBTWEsUUFBUSxHQUFHO0FBQ2hCLHFCQUFpQixLQUREO0FBRWhCLGVBQVc7QUFDVixpQkFBVztBQUNWLHdCQUFnQjtBQUNmLG1CQUFTZixZQUFZLENBQUNHLE9BQWIsQ0FBcUJDLEtBRGY7QUFFZixrQkFBUUosWUFBWSxDQUFDRyxPQUFiLENBQXFCOEIsT0FGZDtBQUdmLDBCQUFnQjtBQUNmLG9CQUFRO0FBRE87QUFIRCxTQUROO0FBUVYsb0JBQVk7QUFSRixPQUREO0FBV1YsZUFBU3RCLE1BWEM7QUFZVixjQUFRVyxJQUFJLENBQUNDLFNBQUwsQ0FBZXZCLFlBQVksQ0FBQ2tDLE1BQTVCO0FBWkU7QUFGSyxHQUFqQjtBQWlCQSxTQUFPbkIsUUFBUDtBQUNBLENBbkJEOztBQXFCQWhDLFVBQVUsQ0FBQ29ELE9BQVgsR0FBcUIsVUFBU25DLFlBQVQsRUFBdUJFLFVBQXZCLEVBQW1DO0FBQ3ZELE1BQUlGLFlBQVksQ0FBQ0csT0FBYixDQUFxQkMsS0FBekIsRUFBZ0M7QUFDL0IsU0FBSyxNQUFNVCxZQUFYLElBQTJCLEtBQUtYLFFBQWhDLEVBQTBDO0FBQ3pDYSxhQUFPLENBQUNpQixHQUFSLENBQVksZUFBWjtBQUNBO0FBQ0Q7QUFDRCxDQU5EOztBQVFBL0IsVUFBVSxDQUFDNkIsVUFBWCxHQUF3QixVQUFTakIsWUFBVCxFQUF1QnlDLFFBQXZCLEVBQWlDO0FBQ3hELFFBQU1wRCxRQUFRLEdBQUcsS0FBS0EsUUFBTCxDQUFjVyxZQUFkLENBQWpCOztBQUNBLE1BQUlYLFFBQVEsQ0FBQ3dDLFlBQVQsSUFBeUJhLElBQUksQ0FBQ0MsR0FBTCxLQUFhdEQsUUFBUSxDQUFDWSxtQkFBbkQsRUFBd0U7QUFDdkV3QyxZQUFRO0FBQ1IsR0FGRCxNQUVPO0FBQ04sUUFBSXJELFVBQVUsQ0FBQ0ksS0FBZixFQUNDVSxPQUFPLENBQUNDLElBQVIsQ0FBYSxnQkFBYixFQUErQkgsWUFBL0IsRUFBNkMsS0FBS1gsUUFBTCxDQUFjVyxZQUFkLENBQTdDO0FBQ0RqQixXQUFPLENBQUN1QyxJQUFSLENBQWE7QUFDWkMsU0FBRyxFQUFFdEMsUUFETztBQUVaMkQsVUFBSSxFQUFFO0FBQ0xDLGtCQUFVLEVBQUUsb0JBRFA7QUFFTHBCLGlCQUFTLEVBQUVwQyxRQUFRLENBQUNvQyxTQUZmO0FBR0xxQixxQkFBYSxFQUFFekQsUUFBUSxDQUFDeUQ7QUFIbkIsT0FGTTtBQU9aM0QsYUFBTyxFQUFFQSxPQVBHO0FBUVoyQyxpQkFBVyxFQUFFLENBUkQ7QUFTWkMsZ0JBQVUsRUFBRSxJQVRBO0FBVVpFLG1CQUFhLEVBQUVsRCxPQUFPLENBQUNtRCxlQUFSLENBQXdCQztBQVYzQixLQUFiLEVBV0csQ0FBQ3ZCLEtBQUQsRUFBUXdCLFFBQVIsRUFBa0JWLElBQWxCLEtBQTJCO0FBQzdCLFVBQUksQ0FBQ2QsS0FBTCxFQUFZO0FBQ1gsY0FBTW1DLElBQUksR0FBR3BCLElBQUksQ0FBQ3FCLEtBQUwsQ0FBV3RCLElBQVgsQ0FBYjtBQUNBckMsZ0JBQVEsQ0FBQ3dDLFlBQVQsR0FBd0JrQixJQUFJLENBQUNsQixZQUE3QjtBQUNBeEMsZ0JBQVEsQ0FBQ1ksbUJBQVQsR0FBK0J5QyxJQUFJLENBQUNDLEdBQUwsS0FBYUksSUFBSSxDQUFDRSxVQUFMLEdBQWtCLElBQS9CLEdBQXNDLEtBQUssSUFBMUU7QUFDQSxZQUFJN0QsVUFBVSxDQUFDSSxLQUFmLEVBQ0NVLE9BQU8sQ0FBQ0MsSUFBUixDQUFhLDBCQUFiLEVBQXlDNEMsSUFBekM7QUFDRE4sZ0JBQVE7QUFDUixPQVBELE1BT087QUFDTnZDLGVBQU8sQ0FBQ1UsS0FBUixDQUFjLHdCQUFkLEVBQXdDYyxJQUF4QztBQUNBZSxnQkFBUSxDQUFDN0IsS0FBRCxDQUFSO0FBQ0E7QUFDRCxLQXZCRDtBQXdCQTtBQUNELENBaENEOztBQWtDQXhCLFVBQVUsQ0FBQzhELGdCQUFYLEdBQThCLFVBQVNDLElBQVQsRUFBZTtBQUM1QyxTQUFPQyxNQUFNLENBQUNELElBQUQsQ0FBTixDQUFhRSxNQUFiLENBQW9CLGtCQUFwQixDQUFQO0FBQ0EsQ0FGRDtBQUlBOzs7Ozs7QUFJQWpFLFVBQVUsQ0FBQ21ELE1BQVgsR0FBb0IsVUFBU0EsTUFBVCxFQUFpQjtBQUNwQyxNQUFJZSxLQUFLLENBQUNDLE9BQU4sQ0FBY2hCLE1BQWQsQ0FBSixFQUNDLE9BQU9BLE1BQVA7QUFFRCxNQUFJaUIsVUFBVSxHQUFHLEVBQWpCOztBQUNBLE1BQUlqQixNQUFKLEVBQVk7QUFDWCxRQUFJa0IsSUFBSSxHQUFHQyxNQUFNLENBQUNELElBQVAsQ0FBWWxCLE1BQVosQ0FBWDtBQUNBa0IsUUFBSSxDQUFDM0QsT0FBTCxDQUFhLFVBQVM2RCxHQUFULEVBQWM7QUFDMUIsVUFBSTdFLENBQUMsR0FBRyxFQUFSO0FBQ0FBLE9BQUMsQ0FBQzZFLEdBQUQsQ0FBRCxHQUFTcEIsTUFBTSxDQUFDb0IsR0FBRCxDQUFmO0FBQ0FILGdCQUFVLENBQUM3RCxJQUFYLENBQWdCYixDQUFoQjtBQUNBLEtBSkQ7QUFLQXlELFVBQU0sR0FBR2lCLFVBQVQ7QUFDQTs7QUFDRCxTQUFPQSxVQUFQO0FBQ0EsQ0FmRCxDIiwiZmlsZSI6Ii9wYWNrYWdlcy9zdGVlZG9zX2h1YXdlaXB1c2guanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjaGVja05wbVZlcnNpb25zIH0gZnJvbSAnbWV0ZW9yL3RtZWFzZGF5OmNoZWNrLW5wbS12ZXJzaW9ucyc7XG4iLCJjb25zdCByZXF1ZXN0ID0gcmVxdWlyZSgncmVxdWVzdHJldHJ5Jyk7XG5jb25zdCB0b2tlblVybCA9IFwiaHR0cHM6Ly9vYXV0aC1sb2dpbi5jbG91ZC5odWF3ZWkuY29tL29hdXRoMi92My90b2tlblwiO1xuY29uc3QgYXBpVXJsID0gXCJodHRwczovL3B1c2gtYXBpLmNsb3VkLmh1YXdlaS5jb20vdjEvW2NsaWVudGlkXS9tZXNzYWdlczpzZW5kXCI7XG5jb25zdCB0aW1lb3V0ID0gNTAwMDtcblxuSHVhd2VpUHVzaCA9IHtcblx0YXV0aEluZm86IHt9LFxuXHRkZWZhdWx0X3BhY2thZ2VfbmFtZTogdW5kZWZpbmVkLFxuXHRkZWJ1ZzogTWV0ZW9yLnNldHRpbmdzLnB1c2ggJiYgTWV0ZW9yLnNldHRpbmdzLnB1c2guaHVhd2VpICYmIE1ldGVvci5zZXR0aW5ncy5wdXNoLmh1YXdlaS5kZWJ1Z1xufTtcblxuSHVhd2VpUHVzaC5jb25maWcgPSBmdW5jdGlvbihjb25maWcpIHtcblx0Y29uZmlnLmZvckVhY2goKHZhbCkgPT4ge1xuXHRcdGlmICh0aGlzLmF1dGhJbmZvW3ZhbC5wYWNrYWdlX25hbWVdKVxuXHRcdFx0cmV0dXJuXG5cdFx0dGhpcy5hdXRoSW5mb1t2YWwucGFja2FnZV9uYW1lXSA9IHZhbDtcblx0XHR2YWwuYWNjZXNzX3Rva2VuX2V4cGlyZSA9IDA7XG5cdFx0aWYgKCF0aGlzLmRlZmF1bHRfcGFja2FnZV9uYW1lKSB7XG5cdFx0XHR0aGlzLmRlZmF1bHRfcGFja2FnZV9uYW1lID0gdmFsLnBhY2thZ2VfbmFtZTtcblx0XHRcdGlmIChIdWF3ZWlQdXNoLmRlYnVnKVxuXHRcdFx0XHRjb25zb2xlLmluZm8oJ2h1YXdlaSBkZWZhdWx0IHBhY2thZ2UgbmFtZSAnLCB0aGlzLmRlZmF1bHRfcGFja2FnZV9uYW1lKTtcblx0XHR9XG5cdH0pO1xufVxuXG5IdWF3ZWlQdXNoLnNlbmRNYW55ID0gZnVuY3Rpb24obm90aWZpY2F0aW9uLCB0b2tlbkRhdGFMaXN0LCB0aW1lVG9MaXZlKSB7XG5cdGlmIChub3RpZmljYXRpb24uYW5kcm9pZC50aXRsZSkge1xuXHRcdGNvbnN0IG1hcFRva2VuRGF0YSA9IHt9O1xuXHRcdGZvciAoY29uc3QgdG9rZW5EYXRhIG9mIHRva2VuRGF0YUxpc3QpIHtcblx0XHRcdGNvbnN0IHBhY2thZ2VfbmFtZSA9IHRva2VuRGF0YS5wYWNrYWdlX25hbWUgfHwgdGhpcy5kZWZhdWx0X3BhY2thZ2VfbmFtZTtcblx0XHRcdGlmICghdGhpcy5hdXRoSW5mb1twYWNrYWdlX25hbWVdKSB7XG5cdFx0XHRcdGNvbnNvbGUuZXJyb3IoJ2h1YXdlaSBwYWNrYWdlIG5hbWUgbm90IHN1cHBvcnRlZDogJywgcGFja2FnZV9uYW1lKTtcblx0XHRcdFx0Y29udGludWU7XG5cdFx0XHR9XG5cdFx0XHRjb25zdCB0b2tlbkxpc3QgPSBtYXBUb2tlbkRhdGFbcGFja2FnZV9uYW1lXSB8fCBbXTtcblx0XHRcdHRva2VuTGlzdC5wdXNoKHRva2VuRGF0YS50b2tlbik7XG5cdFx0XHRtYXBUb2tlbkRhdGFbcGFja2FnZV9uYW1lXSA9IHRva2VuTGlzdDtcblx0XHR9XG5cblx0XHRmb3IgKGNvbnN0IHBhY2thZ2VfbmFtZSBpbiBtYXBUb2tlbkRhdGEpIHtcblx0XHRcdHRoaXMuZG9TZW5kTWFueShub3RpZmljYXRpb24sIHBhY2thZ2VfbmFtZSwgbWFwVG9rZW5EYXRhW3BhY2thZ2VfbmFtZV0sIHRpbWVUb0xpdmUpO1xuXHRcdH1cblx0fVxufVxuXG5IdWF3ZWlQdXNoLmRvU2VuZE1hbnkgPSBmdW5jdGlvbihub3RpZmljYXRpb24sIHBhY2thZ2VfbmFtZSwgdG9rZW5zLCB0aW1lVG9MaXZlKSB7XG5cdHRoaXMuY2hlY2tUb2tlbihwYWNrYWdlX25hbWUsICh0b2tlbkVycm9yKSA9PiB7XG5cdFx0aWYgKCF0b2tlbkVycm9yKSB7XG5cdFx0XHRpZiAoSHVhd2VpUHVzaC5kZWJ1Zylcblx0XHRcdFx0Y29uc29sZS5sb2coXCJzZW5kTWFueSBcIiwgbm90aWZpY2F0aW9uLCB0aW1lVG9MaXZlKTtcblx0XHRcdGNvbnN0IHBvc3REYXRhID0gdGhpcy5nZXRQb3N0RGF0YShub3RpZmljYXRpb24sIHBhY2thZ2VfbmFtZSwgdG9rZW5zLCB0aW1lVG9MaXZlKTtcblx0XHRcdHJlcXVlc3QucG9zdCh7XG5cdFx0XHRcdHVybDogYXBpVXJsLnJlcGxhY2UoJ1tjbGllbnRpZF0nLCB0aGlzLmF1dGhJbmZvW3BhY2thZ2VfbmFtZV0uY2xpZW50X2lkKSxcblx0XHRcdFx0Ym9keTogSlNPTi5zdHJpbmdpZnkocG9zdERhdGEpLFxuXHRcdFx0XHQnaGVhZGVycyc6IHtcblx0XHRcdFx0XHQnQXV0aG9yaXphdGlvbic6ICdCZWFyZXIgJysgdGhpcy5hdXRoSW5mb1twYWNrYWdlX25hbWVdLmFjY2Vzc190b2tlblxuXHRcdFx0XHR9LFxuXHRcdFx0XHR0aW1lb3V0OiB0aW1lb3V0LFxuXHRcdFx0XHRtYXhBdHRlbXB0czogMixcblx0XHRcdFx0cmV0cnlEZWxheTogNTAwMCxcblx0XHRcdFx0dGltZTogdHJ1ZSxcblx0XHRcdFx0cmV0cnlTdHJhdGVneTogcmVxdWVzdC5SZXRyeVN0cmF0ZWdpZXMuTmV0d29ya0Vycm9yXG5cdFx0XHR9LCAoZXJyb3IsIHJlc3BvbnNlLCBib2R5KSA9PiB7XG5cdFx0XHRcdGlmIChIdWF3ZWlQdXNoLmRlYnVnKVxuXHRcdFx0XHRcdGNvbnNvbGUubG9nKFwic2VuZE1hbnkgcmVzdWx0XCIsIGVycm9yLCBib2R5KTtcblx0XHRcdFx0aWYgKCFlcnJvciAmJiByZXNwb25zZSAmJiByZXNwb25zZS5zdGF0dXNDb2RlID09IDIwMCkge1xuXHRcdFx0XHRcdGlmIChIdWF3ZWlQdXNoLmRlYnVnKVxuXHRcdFx0XHRcdFx0Y29uc29sZS5sb2coXCJUT0RPOiBjYWxsYmFja1wiKTtcblx0XHRcdFx0fSBlbHNlIHtcblx0XHRcdFx0XHRlcnJvciA9IGVycm9yIHx8ICd1bmtub3duIGVycm9yJztcblx0XHRcdFx0fVxuXHRcdFx0fSk7XG5cdFx0fVxuXHR9KTtcbn1cblxuSHVhd2VpUHVzaC5nZXRQb3N0RGF0YSA9IGZ1bmN0aW9uKG5vdGlmaWNhdGlvbiwgcGFja2FnZV9uYW1lLCB0b2tlbnMsIHRpbWVUb0xpdmUpIHtcblx0Y29uc3QgcG9zdERhdGEgPSB7XG5cdFx0XCJ2YWxpZGF0ZV9vbmx5XCI6IGZhbHNlLFxuXHRcdFwibWVzc2FnZVwiOiB7XG5cdFx0XHRcImFuZHJvaWRcIjoge1xuXHRcdFx0XHRcIm5vdGlmaWNhdGlvblwiOiB7XG5cdFx0XHRcdFx0XCJ0aXRsZVwiOiBub3RpZmljYXRpb24uYW5kcm9pZC50aXRsZSxcblx0XHRcdFx0XHRcImJvZHlcIjogbm90aWZpY2F0aW9uLmFuZHJvaWQubWVzc2FnZSxcblx0XHRcdFx0XHRcImNsaWNrX2FjdGlvblwiOiB7XG5cdFx0XHRcdFx0XHRcInR5cGVcIjogM1xuXHRcdFx0XHRcdH1cblx0XHRcdFx0fSxcblx0XHRcdFx0XCJjYXRlZ29yeVwiOiBcIldPUktcIlxuXHRcdFx0fSxcblx0XHRcdFwidG9rZW5cIjogdG9rZW5zLFxuXHRcdFx0XCJkYXRhXCI6IEpTT04uc3RyaW5naWZ5KG5vdGlmaWNhdGlvbi5leHRyYXMpXG5cdFx0fVxuXHQgIH1cblx0cmV0dXJuIHBvc3REYXRhO1xufVxuXG5IdWF3ZWlQdXNoLnNlbmRBbGwgPSBmdW5jdGlvbihub3RpZmljYXRpb24sIHRpbWVUb0xpdmUpIHtcblx0aWYgKG5vdGlmaWNhdGlvbi5hbmRyb2lkLnRpdGxlKSB7XG5cdFx0Zm9yIChjb25zdCBwYWNrYWdlX25hbWUgaW4gdGhpcy5hdXRoSW5mbykge1xuXHRcdFx0Y29uc29sZS5sb2coXCJUT0RPOiBzZW5kQWxsXCIpO1xuXHRcdH1cblx0fVxufVxuXG5IdWF3ZWlQdXNoLmNoZWNrVG9rZW4gPSBmdW5jdGlvbihwYWNrYWdlX25hbWUsIGNhbGxiYWNrKSB7XG5cdGNvbnN0IGF1dGhJbmZvID0gdGhpcy5hdXRoSW5mb1twYWNrYWdlX25hbWVdO1xuXHRpZiAoYXV0aEluZm8uYWNjZXNzX3Rva2VuICYmIERhdGUubm93KCkgPCBhdXRoSW5mby5hY2Nlc3NfdG9rZW5fZXhwaXJlKSB7XG5cdFx0Y2FsbGJhY2soKTtcblx0fSBlbHNlIHtcblx0XHRpZiAoSHVhd2VpUHVzaC5kZWJ1Zylcblx0XHRcdGNvbnNvbGUuaW5mbyhcInJlcXVlc3QgdG9rZW4gXCIsIHBhY2thZ2VfbmFtZSwgdGhpcy5hdXRoSW5mb1twYWNrYWdlX25hbWVdKTtcblx0XHRyZXF1ZXN0LnBvc3Qoe1xuXHRcdFx0dXJsOiB0b2tlblVybCxcblx0XHRcdGZvcm06IHtcblx0XHRcdFx0Z3JhbnRfdHlwZTogXCJjbGllbnRfY3JlZGVudGlhbHNcIixcblx0XHRcdFx0Y2xpZW50X2lkOiBhdXRoSW5mby5jbGllbnRfaWQsXG5cdFx0XHRcdGNsaWVudF9zZWNyZXQ6IGF1dGhJbmZvLmNsaWVudF9zZWNyZXRcblx0XHRcdH0sXG5cdFx0XHR0aW1lb3V0OiB0aW1lb3V0LFxuXHRcdFx0bWF4QXR0ZW1wdHM6IDIsXG5cdFx0XHRyZXRyeURlbGF5OiA1MDAwLFxuXHRcdFx0cmV0cnlTdHJhdGVneTogcmVxdWVzdC5SZXRyeVN0cmF0ZWdpZXMuTmV0d29ya0Vycm9yXG5cdFx0fSwgKGVycm9yLCByZXNwb25zZSwgYm9keSkgPT4ge1xuXHRcdFx0aWYgKCFlcnJvcikge1xuXHRcdFx0XHRjb25zdCBkYXRhID0gSlNPTi5wYXJzZShib2R5KTtcblx0XHRcdFx0YXV0aEluZm8uYWNjZXNzX3Rva2VuID0gZGF0YS5hY2Nlc3NfdG9rZW47XG5cdFx0XHRcdGF1dGhJbmZvLmFjY2Vzc190b2tlbl9leHBpcmUgPSBEYXRlLm5vdygpICsgZGF0YS5leHBpcmVzX2luICogMTAwMCAtIDYwICogMTAwMDtcblx0XHRcdFx0aWYgKEh1YXdlaVB1c2guZGVidWcpXG5cdFx0XHRcdFx0Y29uc29sZS5pbmZvKFwiZ2V0IGFjY2VzcyB0b2tlbiBzdWNjZXNzXCIsIGRhdGEpO1xuXHRcdFx0XHRjYWxsYmFjaygpO1xuXHRcdFx0fSBlbHNlIHtcblx0XHRcdFx0Y29uc29sZS5lcnJvcihcImdldCBhY2Nlc3MgdG9rZW4gZXJyb3JcIiwgYm9keSk7XG5cdFx0XHRcdGNhbGxiYWNrKGVycm9yKTtcblx0XHRcdH1cblx0XHR9KTtcblx0fVxufVxuXG5IdWF3ZWlQdXNoLmZvcm1hdEh1YXdlaURhdGUgPSBmdW5jdGlvbihkYXRlKSB7XG5cdHJldHVybiBtb21lbnQoZGF0ZSkuZm9ybWF0KFwiWVlZWS1NTS1ERFRISDptbVwiKTtcbn1cblxuLypcbiAqIOeUqOaIt+iHquWumuS5iSBkaWN0XG4gKiBcImV4dHJhc1wiOntcInNlYXNvblwiOlwiU3ByaW5nXCIsIFwid2VhdGhlclwiOlwicmFpbmluZ1wifV1cbiAqL1xuSHVhd2VpUHVzaC5leHRyYXMgPSBmdW5jdGlvbihleHRyYXMpIHtcblx0aWYgKEFycmF5LmlzQXJyYXkoZXh0cmFzKSlcblx0XHRyZXR1cm4gZXh0cmFzO1xuXG5cdHZhciBleHRyYUFycmF5ID0gW107XG5cdGlmIChleHRyYXMpIHtcblx0XHR2YXIga2V5cyA9IE9iamVjdC5rZXlzKGV4dHJhcyk7XG5cdFx0a2V5cy5mb3JFYWNoKGZ1bmN0aW9uKGtleSkge1xuXHRcdFx0dmFyIHYgPSB7fTtcblx0XHRcdHZba2V5XSA9IGV4dHJhc1trZXldO1xuXHRcdFx0ZXh0cmFBcnJheS5wdXNoKHYpXG5cdFx0fSlcblx0XHRleHRyYXMgPSBleHRyYUFycmF5XG5cdH1cblx0cmV0dXJuIGV4dHJhQXJyYXk7XG59OyJdfQ== diff --git a/server/bundle/programs/server/packages/steedos_huaweipush.js.map b/server/bundle/programs/server/packages/steedos_huaweipush.js.map index 516ee9c22d..57fd5ebfb7 100644 --- a/server/bundle/programs/server/packages/steedos_huaweipush.js.map +++ b/server/bundle/programs/server/packages/steedos_huaweipush.js.map @@ -1 +1 @@ -{"version":3,"sources":["meteor://💻app/packages/steedos:huaweipush/checkNpm.js","meteor://💻app/packages/steedos:huaweipush/server/huaweiProvider.js"],"names":["checkNpmVersions","module","link","v","request","require","tokenUrl","apiUrl","timeout","HuaweiPush","authInfo","default_package_name","undefined","debug","Meteor","settings","push","huawei","config","forEach","val","package_name","access_token_expire","console","info","sendMany","notification","tokenDataList","timeToLive","android","title","mapTokenData","tokenData","error","tokenList","token","doSendMany","tokens","checkToken","tokenError","log","postData","getPostData","post","url","qs","nsp_ctx","client_id","form","maxAttempts","retryDelay","time","retryStrategy","RetryStrategies","NetworkError","response","body","statusCode","access_token","nsp_svc","nsp_ts","Math","floor","Date","now","payload","hps","msg","type","content","message","action","param","appPkgName","category","ext","customize","extras","JSON","stringify","device_token_list","expire_time","formatHuaweiDate","sendAll","callback","grant_type","client_secret","data","parse","expires_in","date","moment","format","Array","isArray","extraArray","keys","Object","key"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAIA,gBAAJ;AAAqBC,MAAM,CAACC,IAAP,CAAY,oCAAZ,EAAiD;AAACF,kBAAgB,CAACG,CAAD,EAAG;AAACH,oBAAgB,GAACG,CAAjB;AAAmB;;AAAxC,CAAjD,EAA2F,CAA3F,E;;;;;;;;;;;ACArB,MAAMC,OAAO,GAAGC,OAAO,CAAC,cAAD,CAAvB;;AACA,MAAMC,QAAQ,GAAG,sCAAjB;AACA,MAAMC,MAAM,GAAG,0CAAf;AACA,MAAMC,OAAO,GAAG,IAAhB;AAEAC,UAAU,GAAG;AACZC,UAAQ,EAAE,EADE;AAEZC,sBAAoB,EAAEC,SAFV;AAGZC,OAAK,EAAEC,MAAM,CAACC,QAAP,CAAgBC,IAAhB,IAAwBF,MAAM,CAACC,QAAP,CAAgBC,IAAhB,CAAqBC,MAA7C,IAAuDH,MAAM,CAACC,QAAP,CAAgBC,IAAhB,CAAqBC,MAArB,CAA4BJ;AAH9E,CAAb;;AAMAJ,UAAU,CAACS,MAAX,GAAoB,UAASA,MAAT,EAAiB;AACpCA,QAAM,CAACC,OAAP,CAAgBC,GAAD,IAAS;AACvB,QAAI,KAAKV,QAAL,CAAcU,GAAG,CAACC,YAAlB,CAAJ,EACC;AACD,SAAKX,QAAL,CAAcU,GAAG,CAACC,YAAlB,IAAkCD,GAAlC;AACAA,OAAG,CAACE,mBAAJ,GAA0B,CAA1B;;AACA,QAAI,CAAC,KAAKX,oBAAV,EAAgC;AAC/B,WAAKA,oBAAL,GAA4BS,GAAG,CAACC,YAAhC;AACA,UAAIZ,UAAU,CAACI,KAAf,EACCU,OAAO,CAACC,IAAR,CAAa,8BAAb,EAA6C,KAAKb,oBAAlD;AACD;AACD,GAVD;AAWA,CAZD;;AAcAF,UAAU,CAACgB,QAAX,GAAsB,UAASC,YAAT,EAAuBC,aAAvB,EAAsCC,UAAtC,EAAkD;AACvE,MAAIF,YAAY,CAACG,OAAb,CAAqBC,KAAzB,EAAgC;AAC/B,UAAMC,YAAY,GAAG,EAArB;;AACA,SAAK,MAAMC,SAAX,IAAwBL,aAAxB,EAAuC;AACtC,YAAMN,YAAY,GAAGW,SAAS,CAACX,YAAV,IAA0B,KAAKV,oBAApD;;AACA,UAAI,CAAC,KAAKD,QAAL,CAAcW,YAAd,CAAL,EAAkC;AACjCE,eAAO,CAACU,KAAR,CAAc,qCAAd,EAAqDZ,YAArD;AACA;AACA;;AACD,YAAMa,SAAS,GAAGH,YAAY,CAACV,YAAD,CAAZ,IAA8B,EAAhD;AACAa,eAAS,CAAClB,IAAV,CAAegB,SAAS,CAACG,KAAzB;AACAJ,kBAAY,CAACV,YAAD,CAAZ,GAA6Ba,SAA7B;AACA;;AAED,SAAK,MAAMb,YAAX,IAA2BU,YAA3B,EAAyC;AACxC,WAAKK,UAAL,CAAgBV,YAAhB,EAA8BL,YAA9B,EAA4CU,YAAY,CAACV,YAAD,CAAxD,EAAwEO,UAAxE;AACA;AACD;AACD,CAlBD;;AAoBAnB,UAAU,CAAC2B,UAAX,GAAwB,UAASV,YAAT,EAAuBL,YAAvB,EAAqCgB,MAArC,EAA6CT,UAA7C,EAAyD;AAChF,OAAKU,UAAL,CAAgBjB,YAAhB,EAA+BkB,UAAD,IAAgB;AAC7C,QAAI,CAACA,UAAL,EAAiB;AAChB,UAAI9B,UAAU,CAACI,KAAf,EACCU,OAAO,CAACiB,GAAR,CAAY,WAAZ,EAAyBd,YAAzB,EAAuCE,UAAvC;AACD,YAAMa,QAAQ,GAAG,KAAKC,WAAL,CAAiBhB,YAAjB,EAA+BL,YAA/B,EAA6CgB,MAA7C,EAAqDT,UAArD,CAAjB;AACAxB,aAAO,CAACuC,IAAR,CAAa;AACZC,WAAG,EAAErC,MADO;AAEZsC,UAAE,EAAE;AACHC,iBAAO,mCAAuB,KAAKpC,QAAL,CAAcW,YAAd,EAA4B0B,SAAnD;AADJ,SAFQ;AAKZC,YAAI,EAAEP,QALM;AAMZjC,eAAO,EAAEA,OANG;AAOZyC,mBAAW,EAAE,CAPD;AAQZC,kBAAU,EAAE,IARA;AASZC,YAAI,EAAE,IATM;AAUZC,qBAAa,EAAEhD,OAAO,CAACiD,eAAR,CAAwBC;AAV3B,OAAb,EAWG,CAACrB,KAAD,EAAQsB,QAAR,EAAkBC,IAAlB,KAA2B;AAC7B,YAAI/C,UAAU,CAACI,KAAf,EACCU,OAAO,CAACiB,GAAR,CAAY,iBAAZ,EAA+BP,KAA/B,EAAsCuB,IAAtC;;AACD,YAAI,CAACvB,KAAD,IAAUsB,QAAV,IAAsBA,QAAQ,CAACE,UAAT,IAAuB,GAAjD,EAAsD;AACrD,cAAIhD,UAAU,CAACI,KAAf,EACCU,OAAO,CAACiB,GAAR,CAAY,gBAAZ;AACD,SAHD,MAGO;AACNP,eAAK,GAAGA,KAAK,IAAI,eAAjB;AACA;AACD,OApBD;AAqBA;AACD,GA3BD;AA4BA,CA7BD;;AA+BAxB,UAAU,CAACiC,WAAX,GAAyB,UAAShB,YAAT,EAAuBL,YAAvB,EAAqCgB,MAArC,EAA6CT,UAA7C,EAAyD;AACjF,QAAMa,QAAQ,GAAG;AAChBiB,gBAAY,EAAE,KAAKhD,QAAL,CAAcW,YAAd,EAA4BqC,YAD1B;AAEhBC,WAAO,EAAE,2BAFO;AAGhBC,UAAM,EAAEC,IAAI,CAACC,KAAL,CAAWC,IAAI,CAACC,GAAL,KAAa,IAAxB;AAHQ,GAAjB;AAKAvB,UAAQ,CAACwB,OAAT,GAAmB;AAClBC,OAAG,EAAE;AACJC,SAAG,EAAE;AACJC,YAAI,EAAE,CADF;AAEJZ,YAAI,EAAE;AACLa,iBAAO,EAAE3C,YAAY,CAACG,OAAb,CAAqByC,OADzB;AAELxC,eAAK,EAAEJ,YAAY,CAACG,OAAb,CAAqBC;AAFvB,SAFF;AAMJyC,cAAM,EAAE;AACPH,cAAI,EAAE,CADC;AAEPI,eAAK,EAAE;AACNC,sBAAU,EAAEpD;AADN;AAFA,SANJ;AAYJqD,gBAAQ,EAAE,MAZN,CAYa;;AAZb,OADD;AAeJC,SAAG,EAAE;AACJC,iBAAS,EAAE,KAAKC,MAAL,CAAYnD,YAAY,CAACmD,MAAzB;AADP;AAfD;AADa,GAAnB;AAqBApC,UAAQ,CAACwB,OAAT,GAAmBa,IAAI,CAACC,SAAL,CAAetC,QAAQ,CAACwB,OAAxB,CAAnB;AACAxB,UAAQ,CAACuC,iBAAT,GAA6BF,IAAI,CAACC,SAAL,CAAe1C,MAAf,CAA7B;;AAEA,MAAIT,UAAU,GAAG,CAAjB,EAAoB;AACnBa,YAAQ,CAACwC,WAAT,GAAuB,KAAKC,gBAAL,CAAsB,IAAInB,IAAJ,CAASA,IAAI,CAACC,GAAL,KAAapC,UAAtB,CAAtB,CAAvB;AACA,QAAInB,UAAU,CAACI,KAAf,EACCU,OAAO,CAACiB,GAAR,CAAY,uBAAZ,EAAqCC,QAAQ,CAACwC,WAA9C;AACD;;AACD,SAAOxC,QAAP;AACA,CApCD;;AAsCAhC,UAAU,CAAC0E,OAAX,GAAqB,UAASzD,YAAT,EAAuBE,UAAvB,EAAmC;AACvD,MAAIF,YAAY,CAACG,OAAb,CAAqBC,KAAzB,EAAgC;AAC/B,SAAK,MAAMT,YAAX,IAA2B,KAAKX,QAAhC,EAA0C;AACzCa,aAAO,CAACiB,GAAR,CAAY,eAAZ;AACA;AACD;AACD,CAND;;AAQA/B,UAAU,CAAC6B,UAAX,GAAwB,UAASjB,YAAT,EAAuB+D,QAAvB,EAAiC;AACxD,QAAM1E,QAAQ,GAAG,KAAKA,QAAL,CAAcW,YAAd,CAAjB;;AACA,MAAIX,QAAQ,CAACgD,YAAT,IAAyBK,IAAI,CAACC,GAAL,KAAatD,QAAQ,CAACY,mBAAnD,EAAwE;AACvE8D,YAAQ;AACR,GAFD,MAEO;AACN,QAAI3E,UAAU,CAACI,KAAf,EACCU,OAAO,CAACC,IAAR,CAAa,gBAAb,EAA+BH,YAA/B,EAA6C,KAAKX,QAAL,CAAcW,YAAd,CAA7C;AACDjB,WAAO,CAACuC,IAAR,CAAa;AACZC,SAAG,EAAEtC,QADO;AAEZ0C,UAAI,EAAE;AACLqC,kBAAU,EAAE,oBADP;AAELtC,iBAAS,EAAErC,QAAQ,CAACqC,SAFf;AAGLuC,qBAAa,EAAE5E,QAAQ,CAAC4E;AAHnB,OAFM;AAOZ9E,aAAO,EAAEA,OAPG;AAQZyC,iBAAW,EAAE,CARD;AASZC,gBAAU,EAAE,IATA;AAUZE,mBAAa,EAAEhD,OAAO,CAACiD,eAAR,CAAwBC;AAV3B,KAAb,EAWG,CAACrB,KAAD,EAAQsB,QAAR,EAAkBC,IAAlB,KAA2B;AAC7B,UAAI,CAACvB,KAAL,EAAY;AACX,cAAMsD,IAAI,GAAGT,IAAI,CAACU,KAAL,CAAWhC,IAAX,CAAb;AACA9C,gBAAQ,CAACgD,YAAT,GAAwB6B,IAAI,CAAC7B,YAA7B;AACAhD,gBAAQ,CAACY,mBAAT,GAA+ByC,IAAI,CAACC,GAAL,KAAauB,IAAI,CAACE,UAAL,GAAkB,IAA/B,GAAsC,KAAK,IAA1E;AACA,YAAIhF,UAAU,CAACI,KAAf,EACCU,OAAO,CAACC,IAAR,CAAa,0BAAb,EAAyC+D,IAAzC;AACDH,gBAAQ;AACR,OAPD,MAOO;AACN7D,eAAO,CAACU,KAAR,CAAc,wBAAd,EAAwCuB,IAAxC;AACA4B,gBAAQ,CAACnD,KAAD,CAAR;AACA;AACD,KAvBD;AAwBA;AACD,CAhCD;;AAkCAxB,UAAU,CAACyE,gBAAX,GAA8B,UAASQ,IAAT,EAAe;AAC5C,SAAOC,MAAM,CAACD,IAAD,CAAN,CAAaE,MAAb,CAAoB,kBAApB,CAAP;AACA,CAFD;AAIA;;;;;;AAIAnF,UAAU,CAACoE,MAAX,GAAoB,UAASA,MAAT,EAAiB;AACpC,MAAIgB,KAAK,CAACC,OAAN,CAAcjB,MAAd,CAAJ,EACC,OAAOA,MAAP;AAED,MAAIkB,UAAU,GAAG,EAAjB;;AACA,MAAIlB,MAAJ,EAAY;AACX,QAAImB,IAAI,GAAGC,MAAM,CAACD,IAAP,CAAYnB,MAAZ,CAAX;AACAmB,QAAI,CAAC7E,OAAL,CAAa,UAAS+E,GAAT,EAAc;AAC1B,UAAI/F,CAAC,GAAG,EAAR;AACAA,OAAC,CAAC+F,GAAD,CAAD,GAASrB,MAAM,CAACqB,GAAD,CAAf;AACAH,gBAAU,CAAC/E,IAAX,CAAgBb,CAAhB;AACA,KAJD;AAKA0E,UAAM,GAAGkB,UAAT;AACA;;AACD,SAAOA,UAAP;AACA,CAfD,C","file":"/packages/steedos_huaweipush.js","sourcesContent":["import { checkNpmVersions } from 'meteor/tmeasday:check-npm-versions';\n","const request = require('requestretry');\nconst tokenUrl = \"https://login.vmall.com/oauth2/token\";\nconst apiUrl = \"https://api.push.hicloud.com/pushsend.do\";\nconst timeout = 5000;\n\nHuaweiPush = {\n\tauthInfo: {},\n\tdefault_package_name: undefined,\n\tdebug: Meteor.settings.push && Meteor.settings.push.huawei && Meteor.settings.push.huawei.debug\n};\n\nHuaweiPush.config = function(config) {\n\tconfig.forEach((val) => {\n\t\tif (this.authInfo[val.package_name])\n\t\t\treturn\n\t\tthis.authInfo[val.package_name] = val;\n\t\tval.access_token_expire = 0;\n\t\tif (!this.default_package_name) {\n\t\t\tthis.default_package_name = val.package_name;\n\t\t\tif (HuaweiPush.debug)\n\t\t\t\tconsole.info('huawei default package name ', this.default_package_name);\n\t\t}\n\t});\n}\n\nHuaweiPush.sendMany = function(notification, tokenDataList, timeToLive) {\n\tif (notification.android.title) {\n\t\tconst mapTokenData = {};\n\t\tfor (const tokenData of tokenDataList) {\n\t\t\tconst package_name = tokenData.package_name || this.default_package_name;\n\t\t\tif (!this.authInfo[package_name]) {\n\t\t\t\tconsole.error('huawei package name not supported: ', package_name);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst tokenList = mapTokenData[package_name] || [];\n\t\t\ttokenList.push(tokenData.token);\n\t\t\tmapTokenData[package_name] = tokenList;\n\t\t}\n\n\t\tfor (const package_name in mapTokenData) {\n\t\t\tthis.doSendMany(notification, package_name, mapTokenData[package_name], timeToLive);\n\t\t}\n\t}\n}\n\nHuaweiPush.doSendMany = function(notification, package_name, tokens, timeToLive) {\n\tthis.checkToken(package_name, (tokenError) => {\n\t\tif (!tokenError) {\n\t\t\tif (HuaweiPush.debug)\n\t\t\t\tconsole.log(\"sendMany \", notification, timeToLive);\n\t\t\tconst postData = this.getPostData(notification, package_name, tokens, timeToLive);\n\t\t\trequest.post({\n\t\t\t\turl: apiUrl,\n\t\t\t\tqs: {\n\t\t\t\t\tnsp_ctx: `{\"ver\":1,\"appId\":\"${this.authInfo[package_name].client_id}\"}`\n\t\t\t\t},\n\t\t\t\tform: postData,\n\t\t\t\ttimeout: timeout,\n\t\t\t\tmaxAttempts: 2,\n\t\t\t\tretryDelay: 5000,\n\t\t\t\ttime: true,\n\t\t\t\tretryStrategy: request.RetryStrategies.NetworkError\n\t\t\t}, (error, response, body) => {\n\t\t\t\tif (HuaweiPush.debug)\n\t\t\t\t\tconsole.log(\"sendMany result\", error, body);\n\t\t\t\tif (!error && response && response.statusCode == 200) {\n\t\t\t\t\tif (HuaweiPush.debug)\n\t\t\t\t\t\tconsole.log(\"TODO: callback\");\n\t\t\t\t} else {\n\t\t\t\t\terror = error || 'unknown error';\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n}\n\nHuaweiPush.getPostData = function(notification, package_name, tokens, timeToLive) {\n\tconst postData = {\n\t\taccess_token: this.authInfo[package_name].access_token,\n\t\tnsp_svc: \"openpush.message.api.send\",\n\t\tnsp_ts: Math.floor(Date.now() / 1000)\n\t};\n\tpostData.payload = {\n\t\thps: {\n\t\t\tmsg: {\n\t\t\t\ttype: 3,\n\t\t\t\tbody: {\n\t\t\t\t\tcontent: notification.android.message,\n\t\t\t\t\ttitle: notification.android.title\n\t\t\t\t},\n\t\t\t\taction: {\n\t\t\t\t\ttype: 3,\n\t\t\t\t\tparam: {\n\t\t\t\t\t\tappPkgName: package_name\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tcategory: 'WORK' // 工作事项提醒\n\t\t\t},\n\t\t\text: {\n\t\t\t\tcustomize: this.extras(notification.extras)\n\t\t\t}\n\t\t}\n\t};\n\tpostData.payload = JSON.stringify(postData.payload);\n\tpostData.device_token_list = JSON.stringify(tokens);\n\n\tif (timeToLive > 0) {\n\t\tpostData.expire_time = this.formatHuaweiDate(new Date(Date.now() + timeToLive));\n\t\tif (HuaweiPush.debug)\n\t\t\tconsole.log(\"postData.expire_time \", postData.expire_time);\n\t}\n\treturn postData;\n}\n\nHuaweiPush.sendAll = function(notification, timeToLive) {\n\tif (notification.android.title) {\n\t\tfor (const package_name in this.authInfo) {\n\t\t\tconsole.log(\"TODO: sendAll\");\n\t\t}\n\t}\n}\n\nHuaweiPush.checkToken = function(package_name, callback) {\n\tconst authInfo = this.authInfo[package_name];\n\tif (authInfo.access_token && Date.now() < authInfo.access_token_expire) {\n\t\tcallback();\n\t} else {\n\t\tif (HuaweiPush.debug)\n\t\t\tconsole.info(\"request token \", package_name, this.authInfo[package_name]);\n\t\trequest.post({\n\t\t\turl: tokenUrl,\n\t\t\tform: {\n\t\t\t\tgrant_type: \"client_credentials\",\n\t\t\t\tclient_id: authInfo.client_id,\n\t\t\t\tclient_secret: authInfo.client_secret\n\t\t\t},\n\t\t\ttimeout: timeout,\n\t\t\tmaxAttempts: 2,\n\t\t\tretryDelay: 5000,\n\t\t\tretryStrategy: request.RetryStrategies.NetworkError\n\t\t}, (error, response, body) => {\n\t\t\tif (!error) {\n\t\t\t\tconst data = JSON.parse(body);\n\t\t\t\tauthInfo.access_token = data.access_token;\n\t\t\t\tauthInfo.access_token_expire = Date.now() + data.expires_in * 1000 - 60 * 1000;\n\t\t\t\tif (HuaweiPush.debug)\n\t\t\t\t\tconsole.info(\"get access token success\", data);\n\t\t\t\tcallback();\n\t\t\t} else {\n\t\t\t\tconsole.error(\"get access token error\", body);\n\t\t\t\tcallback(error);\n\t\t\t}\n\t\t});\n\t}\n}\n\nHuaweiPush.formatHuaweiDate = function(date) {\n\treturn moment(date).format(\"YYYY-MM-DDTHH:mm\");\n}\n\n/*\n * 用户自定义 dict\n * \"extras\":{\"season\":\"Spring\", \"weather\":\"raining\"}]\n */\nHuaweiPush.extras = function(extras) {\n\tif (Array.isArray(extras))\n\t\treturn extras;\n\n\tvar extraArray = [];\n\tif (extras) {\n\t\tvar keys = Object.keys(extras);\n\t\tkeys.forEach(function(key) {\n\t\t\tvar v = {};\n\t\t\tv[key] = extras[key];\n\t\t\textraArray.push(v)\n\t\t})\n\t\textras = extraArray\n\t}\n\treturn extraArray;\n};"]} \ No newline at end of file +{"version":3,"sources":["meteor://💻app/packages/steedos:huaweipush/checkNpm.js","meteor://💻app/packages/steedos:huaweipush/server/huaweiProvider.js"],"names":["checkNpmVersions","module","link","v","request","require","tokenUrl","apiUrl","timeout","HuaweiPush","authInfo","default_package_name","undefined","debug","Meteor","settings","push","huawei","config","forEach","val","package_name","access_token_expire","console","info","sendMany","notification","tokenDataList","timeToLive","android","title","mapTokenData","tokenData","error","tokenList","token","doSendMany","tokens","checkToken","tokenError","log","postData","getPostData","post","url","replace","client_id","body","JSON","stringify","access_token","maxAttempts","retryDelay","time","retryStrategy","RetryStrategies","NetworkError","response","statusCode","message","extras","sendAll","callback","Date","now","form","grant_type","client_secret","data","parse","expires_in","formatHuaweiDate","date","moment","format","Array","isArray","extraArray","keys","Object","key"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAIA,gBAAJ;AAAqBC,MAAM,CAACC,IAAP,CAAY,oCAAZ,EAAiD;AAACF,kBAAgB,CAACG,CAAD,EAAG;AAACH,oBAAgB,GAACG,CAAjB;AAAmB;;AAAxC,CAAjD,EAA2F,CAA3F,E;;;;;;;;;;;ACArB,MAAMC,OAAO,GAAGC,OAAO,CAAC,cAAD,CAAvB;;AACA,MAAMC,QAAQ,GAAG,sDAAjB;AACA,MAAMC,MAAM,GAAG,+DAAf;AACA,MAAMC,OAAO,GAAG,IAAhB;AAEAC,UAAU,GAAG;AACZC,UAAQ,EAAE,EADE;AAEZC,sBAAoB,EAAEC,SAFV;AAGZC,OAAK,EAAEC,MAAM,CAACC,QAAP,CAAgBC,IAAhB,IAAwBF,MAAM,CAACC,QAAP,CAAgBC,IAAhB,CAAqBC,MAA7C,IAAuDH,MAAM,CAACC,QAAP,CAAgBC,IAAhB,CAAqBC,MAArB,CAA4BJ;AAH9E,CAAb;;AAMAJ,UAAU,CAACS,MAAX,GAAoB,UAASA,MAAT,EAAiB;AACpCA,QAAM,CAACC,OAAP,CAAgBC,GAAD,IAAS;AACvB,QAAI,KAAKV,QAAL,CAAcU,GAAG,CAACC,YAAlB,CAAJ,EACC;AACD,SAAKX,QAAL,CAAcU,GAAG,CAACC,YAAlB,IAAkCD,GAAlC;AACAA,OAAG,CAACE,mBAAJ,GAA0B,CAA1B;;AACA,QAAI,CAAC,KAAKX,oBAAV,EAAgC;AAC/B,WAAKA,oBAAL,GAA4BS,GAAG,CAACC,YAAhC;AACA,UAAIZ,UAAU,CAACI,KAAf,EACCU,OAAO,CAACC,IAAR,CAAa,8BAAb,EAA6C,KAAKb,oBAAlD;AACD;AACD,GAVD;AAWA,CAZD;;AAcAF,UAAU,CAACgB,QAAX,GAAsB,UAASC,YAAT,EAAuBC,aAAvB,EAAsCC,UAAtC,EAAkD;AACvE,MAAIF,YAAY,CAACG,OAAb,CAAqBC,KAAzB,EAAgC;AAC/B,UAAMC,YAAY,GAAG,EAArB;;AACA,SAAK,MAAMC,SAAX,IAAwBL,aAAxB,EAAuC;AACtC,YAAMN,YAAY,GAAGW,SAAS,CAACX,YAAV,IAA0B,KAAKV,oBAApD;;AACA,UAAI,CAAC,KAAKD,QAAL,CAAcW,YAAd,CAAL,EAAkC;AACjCE,eAAO,CAACU,KAAR,CAAc,qCAAd,EAAqDZ,YAArD;AACA;AACA;;AACD,YAAMa,SAAS,GAAGH,YAAY,CAACV,YAAD,CAAZ,IAA8B,EAAhD;AACAa,eAAS,CAAClB,IAAV,CAAegB,SAAS,CAACG,KAAzB;AACAJ,kBAAY,CAACV,YAAD,CAAZ,GAA6Ba,SAA7B;AACA;;AAED,SAAK,MAAMb,YAAX,IAA2BU,YAA3B,EAAyC;AACxC,WAAKK,UAAL,CAAgBV,YAAhB,EAA8BL,YAA9B,EAA4CU,YAAY,CAACV,YAAD,CAAxD,EAAwEO,UAAxE;AACA;AACD;AACD,CAlBD;;AAoBAnB,UAAU,CAAC2B,UAAX,GAAwB,UAASV,YAAT,EAAuBL,YAAvB,EAAqCgB,MAArC,EAA6CT,UAA7C,EAAyD;AAChF,OAAKU,UAAL,CAAgBjB,YAAhB,EAA+BkB,UAAD,IAAgB;AAC7C,QAAI,CAACA,UAAL,EAAiB;AAChB,UAAI9B,UAAU,CAACI,KAAf,EACCU,OAAO,CAACiB,GAAR,CAAY,WAAZ,EAAyBd,YAAzB,EAAuCE,UAAvC;AACD,YAAMa,QAAQ,GAAG,KAAKC,WAAL,CAAiBhB,YAAjB,EAA+BL,YAA/B,EAA6CgB,MAA7C,EAAqDT,UAArD,CAAjB;AACAxB,aAAO,CAACuC,IAAR,CAAa;AACZC,WAAG,EAAErC,MAAM,CAACsC,OAAP,CAAe,YAAf,EAA6B,KAAKnC,QAAL,CAAcW,YAAd,EAA4ByB,SAAzD,CADO;AAEZC,YAAI,EAAEC,IAAI,CAACC,SAAL,CAAeR,QAAf,CAFM;AAGZ,mBAAW;AACV,2BAAiB,YAAW,KAAK/B,QAAL,CAAcW,YAAd,EAA4B6B;AAD9C,SAHC;AAMZ1C,eAAO,EAAEA,OANG;AAOZ2C,mBAAW,EAAE,CAPD;AAQZC,kBAAU,EAAE,IARA;AASZC,YAAI,EAAE,IATM;AAUZC,qBAAa,EAAElD,OAAO,CAACmD,eAAR,CAAwBC;AAV3B,OAAb,EAWG,CAACvB,KAAD,EAAQwB,QAAR,EAAkBV,IAAlB,KAA2B;AAC7B,YAAItC,UAAU,CAACI,KAAf,EACCU,OAAO,CAACiB,GAAR,CAAY,iBAAZ,EAA+BP,KAA/B,EAAsCc,IAAtC;;AACD,YAAI,CAACd,KAAD,IAAUwB,QAAV,IAAsBA,QAAQ,CAACC,UAAT,IAAuB,GAAjD,EAAsD;AACrD,cAAIjD,UAAU,CAACI,KAAf,EACCU,OAAO,CAACiB,GAAR,CAAY,gBAAZ;AACD,SAHD,MAGO;AACNP,eAAK,GAAGA,KAAK,IAAI,eAAjB;AACA;AACD,OApBD;AAqBA;AACD,GA3BD;AA4BA,CA7BD;;AA+BAxB,UAAU,CAACiC,WAAX,GAAyB,UAAShB,YAAT,EAAuBL,YAAvB,EAAqCgB,MAArC,EAA6CT,UAA7C,EAAyD;AACjF,QAAMa,QAAQ,GAAG;AAChB,qBAAiB,KADD;AAEhB,eAAW;AACV,iBAAW;AACV,wBAAgB;AACf,mBAASf,YAAY,CAACG,OAAb,CAAqBC,KADf;AAEf,kBAAQJ,YAAY,CAACG,OAAb,CAAqB8B,OAFd;AAGf,0BAAgB;AACf,oBAAQ;AADO;AAHD,SADN;AAQV,oBAAY;AARF,OADD;AAWV,eAAStB,MAXC;AAYV,cAAQW,IAAI,CAACC,SAAL,CAAevB,YAAY,CAACkC,MAA5B;AAZE;AAFK,GAAjB;AAiBA,SAAOnB,QAAP;AACA,CAnBD;;AAqBAhC,UAAU,CAACoD,OAAX,GAAqB,UAASnC,YAAT,EAAuBE,UAAvB,EAAmC;AACvD,MAAIF,YAAY,CAACG,OAAb,CAAqBC,KAAzB,EAAgC;AAC/B,SAAK,MAAMT,YAAX,IAA2B,KAAKX,QAAhC,EAA0C;AACzCa,aAAO,CAACiB,GAAR,CAAY,eAAZ;AACA;AACD;AACD,CAND;;AAQA/B,UAAU,CAAC6B,UAAX,GAAwB,UAASjB,YAAT,EAAuByC,QAAvB,EAAiC;AACxD,QAAMpD,QAAQ,GAAG,KAAKA,QAAL,CAAcW,YAAd,CAAjB;;AACA,MAAIX,QAAQ,CAACwC,YAAT,IAAyBa,IAAI,CAACC,GAAL,KAAatD,QAAQ,CAACY,mBAAnD,EAAwE;AACvEwC,YAAQ;AACR,GAFD,MAEO;AACN,QAAIrD,UAAU,CAACI,KAAf,EACCU,OAAO,CAACC,IAAR,CAAa,gBAAb,EAA+BH,YAA/B,EAA6C,KAAKX,QAAL,CAAcW,YAAd,CAA7C;AACDjB,WAAO,CAACuC,IAAR,CAAa;AACZC,SAAG,EAAEtC,QADO;AAEZ2D,UAAI,EAAE;AACLC,kBAAU,EAAE,oBADP;AAELpB,iBAAS,EAAEpC,QAAQ,CAACoC,SAFf;AAGLqB,qBAAa,EAAEzD,QAAQ,CAACyD;AAHnB,OAFM;AAOZ3D,aAAO,EAAEA,OAPG;AAQZ2C,iBAAW,EAAE,CARD;AASZC,gBAAU,EAAE,IATA;AAUZE,mBAAa,EAAElD,OAAO,CAACmD,eAAR,CAAwBC;AAV3B,KAAb,EAWG,CAACvB,KAAD,EAAQwB,QAAR,EAAkBV,IAAlB,KAA2B;AAC7B,UAAI,CAACd,KAAL,EAAY;AACX,cAAMmC,IAAI,GAAGpB,IAAI,CAACqB,KAAL,CAAWtB,IAAX,CAAb;AACArC,gBAAQ,CAACwC,YAAT,GAAwBkB,IAAI,CAAClB,YAA7B;AACAxC,gBAAQ,CAACY,mBAAT,GAA+ByC,IAAI,CAACC,GAAL,KAAaI,IAAI,CAACE,UAAL,GAAkB,IAA/B,GAAsC,KAAK,IAA1E;AACA,YAAI7D,UAAU,CAACI,KAAf,EACCU,OAAO,CAACC,IAAR,CAAa,0BAAb,EAAyC4C,IAAzC;AACDN,gBAAQ;AACR,OAPD,MAOO;AACNvC,eAAO,CAACU,KAAR,CAAc,wBAAd,EAAwCc,IAAxC;AACAe,gBAAQ,CAAC7B,KAAD,CAAR;AACA;AACD,KAvBD;AAwBA;AACD,CAhCD;;AAkCAxB,UAAU,CAAC8D,gBAAX,GAA8B,UAASC,IAAT,EAAe;AAC5C,SAAOC,MAAM,CAACD,IAAD,CAAN,CAAaE,MAAb,CAAoB,kBAApB,CAAP;AACA,CAFD;AAIA;;;;;;AAIAjE,UAAU,CAACmD,MAAX,GAAoB,UAASA,MAAT,EAAiB;AACpC,MAAIe,KAAK,CAACC,OAAN,CAAchB,MAAd,CAAJ,EACC,OAAOA,MAAP;AAED,MAAIiB,UAAU,GAAG,EAAjB;;AACA,MAAIjB,MAAJ,EAAY;AACX,QAAIkB,IAAI,GAAGC,MAAM,CAACD,IAAP,CAAYlB,MAAZ,CAAX;AACAkB,QAAI,CAAC3D,OAAL,CAAa,UAAS6D,GAAT,EAAc;AAC1B,UAAI7E,CAAC,GAAG,EAAR;AACAA,OAAC,CAAC6E,GAAD,CAAD,GAASpB,MAAM,CAACoB,GAAD,CAAf;AACAH,gBAAU,CAAC7D,IAAX,CAAgBb,CAAhB;AACA,KAJD;AAKAyD,UAAM,GAAGiB,UAAT;AACA;;AACD,SAAOA,UAAP;AACA,CAfD,C","file":"/packages/steedos_huaweipush.js","sourcesContent":["import { checkNpmVersions } from 'meteor/tmeasday:check-npm-versions';\n","const request = require('requestretry');\nconst tokenUrl = \"https://oauth-login.cloud.huawei.com/oauth2/v3/token\";\nconst apiUrl = \"https://push-api.cloud.huawei.com/v1/[clientid]/messages:send\";\nconst timeout = 5000;\n\nHuaweiPush = {\n\tauthInfo: {},\n\tdefault_package_name: undefined,\n\tdebug: Meteor.settings.push && Meteor.settings.push.huawei && Meteor.settings.push.huawei.debug\n};\n\nHuaweiPush.config = function(config) {\n\tconfig.forEach((val) => {\n\t\tif (this.authInfo[val.package_name])\n\t\t\treturn\n\t\tthis.authInfo[val.package_name] = val;\n\t\tval.access_token_expire = 0;\n\t\tif (!this.default_package_name) {\n\t\t\tthis.default_package_name = val.package_name;\n\t\t\tif (HuaweiPush.debug)\n\t\t\t\tconsole.info('huawei default package name ', this.default_package_name);\n\t\t}\n\t});\n}\n\nHuaweiPush.sendMany = function(notification, tokenDataList, timeToLive) {\n\tif (notification.android.title) {\n\t\tconst mapTokenData = {};\n\t\tfor (const tokenData of tokenDataList) {\n\t\t\tconst package_name = tokenData.package_name || this.default_package_name;\n\t\t\tif (!this.authInfo[package_name]) {\n\t\t\t\tconsole.error('huawei package name not supported: ', package_name);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst tokenList = mapTokenData[package_name] || [];\n\t\t\ttokenList.push(tokenData.token);\n\t\t\tmapTokenData[package_name] = tokenList;\n\t\t}\n\n\t\tfor (const package_name in mapTokenData) {\n\t\t\tthis.doSendMany(notification, package_name, mapTokenData[package_name], timeToLive);\n\t\t}\n\t}\n}\n\nHuaweiPush.doSendMany = function(notification, package_name, tokens, timeToLive) {\n\tthis.checkToken(package_name, (tokenError) => {\n\t\tif (!tokenError) {\n\t\t\tif (HuaweiPush.debug)\n\t\t\t\tconsole.log(\"sendMany \", notification, timeToLive);\n\t\t\tconst postData = this.getPostData(notification, package_name, tokens, timeToLive);\n\t\t\trequest.post({\n\t\t\t\turl: apiUrl.replace('[clientid]', this.authInfo[package_name].client_id),\n\t\t\t\tbody: JSON.stringify(postData),\n\t\t\t\t'headers': {\n\t\t\t\t\t'Authorization': 'Bearer '+ this.authInfo[package_name].access_token\n\t\t\t\t},\n\t\t\t\ttimeout: timeout,\n\t\t\t\tmaxAttempts: 2,\n\t\t\t\tretryDelay: 5000,\n\t\t\t\ttime: true,\n\t\t\t\tretryStrategy: request.RetryStrategies.NetworkError\n\t\t\t}, (error, response, body) => {\n\t\t\t\tif (HuaweiPush.debug)\n\t\t\t\t\tconsole.log(\"sendMany result\", error, body);\n\t\t\t\tif (!error && response && response.statusCode == 200) {\n\t\t\t\t\tif (HuaweiPush.debug)\n\t\t\t\t\t\tconsole.log(\"TODO: callback\");\n\t\t\t\t} else {\n\t\t\t\t\terror = error || 'unknown error';\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n}\n\nHuaweiPush.getPostData = function(notification, package_name, tokens, timeToLive) {\n\tconst postData = {\n\t\t\"validate_only\": false,\n\t\t\"message\": {\n\t\t\t\"android\": {\n\t\t\t\t\"notification\": {\n\t\t\t\t\t\"title\": notification.android.title,\n\t\t\t\t\t\"body\": notification.android.message,\n\t\t\t\t\t\"click_action\": {\n\t\t\t\t\t\t\"type\": 3\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"category\": \"WORK\"\n\t\t\t},\n\t\t\t\"token\": tokens,\n\t\t\t\"data\": JSON.stringify(notification.extras)\n\t\t}\n\t }\n\treturn postData;\n}\n\nHuaweiPush.sendAll = function(notification, timeToLive) {\n\tif (notification.android.title) {\n\t\tfor (const package_name in this.authInfo) {\n\t\t\tconsole.log(\"TODO: sendAll\");\n\t\t}\n\t}\n}\n\nHuaweiPush.checkToken = function(package_name, callback) {\n\tconst authInfo = this.authInfo[package_name];\n\tif (authInfo.access_token && Date.now() < authInfo.access_token_expire) {\n\t\tcallback();\n\t} else {\n\t\tif (HuaweiPush.debug)\n\t\t\tconsole.info(\"request token \", package_name, this.authInfo[package_name]);\n\t\trequest.post({\n\t\t\turl: tokenUrl,\n\t\t\tform: {\n\t\t\t\tgrant_type: \"client_credentials\",\n\t\t\t\tclient_id: authInfo.client_id,\n\t\t\t\tclient_secret: authInfo.client_secret\n\t\t\t},\n\t\t\ttimeout: timeout,\n\t\t\tmaxAttempts: 2,\n\t\t\tretryDelay: 5000,\n\t\t\tretryStrategy: request.RetryStrategies.NetworkError\n\t\t}, (error, response, body) => {\n\t\t\tif (!error) {\n\t\t\t\tconst data = JSON.parse(body);\n\t\t\t\tauthInfo.access_token = data.access_token;\n\t\t\t\tauthInfo.access_token_expire = Date.now() + data.expires_in * 1000 - 60 * 1000;\n\t\t\t\tif (HuaweiPush.debug)\n\t\t\t\t\tconsole.info(\"get access token success\", data);\n\t\t\t\tcallback();\n\t\t\t} else {\n\t\t\t\tconsole.error(\"get access token error\", body);\n\t\t\t\tcallback(error);\n\t\t\t}\n\t\t});\n\t}\n}\n\nHuaweiPush.formatHuaweiDate = function(date) {\n\treturn moment(date).format(\"YYYY-MM-DDTHH:mm\");\n}\n\n/*\n * 用户自定义 dict\n * \"extras\":{\"season\":\"Spring\", \"weather\":\"raining\"}]\n */\nHuaweiPush.extras = function(extras) {\n\tif (Array.isArray(extras))\n\t\treturn extras;\n\n\tvar extraArray = [];\n\tif (extras) {\n\t\tvar keys = Object.keys(extras);\n\t\tkeys.forEach(function(key) {\n\t\t\tvar v = {};\n\t\t\tv[key] = extras[key];\n\t\t\textraArray.push(v)\n\t\t})\n\t\textras = extraArray\n\t}\n\treturn extraArray;\n};"]} \ No newline at end of file diff --git a/server/bundle/programs/web.browser.legacy/a295cec1971530e01efde31e17b7abedc91f0ccc.js b/server/bundle/programs/web.browser.legacy/d5f372170ee952f1ff72451eb1632c94a7763f93.js similarity index 99% rename from server/bundle/programs/web.browser.legacy/a295cec1971530e01efde31e17b7abedc91f0ccc.js rename to server/bundle/programs/web.browser.legacy/d5f372170ee952f1ff72451eb1632c94a7763f93.js index 8ab4a5bfb2..13fbad54bf 100644 --- a/server/bundle/programs/web.browser.legacy/a295cec1971530e01efde31e17b7abedc91f0ccc.js +++ b/server/bundle/programs/web.browser.legacy/d5f372170ee952f1ff72451eb1632c94a7763f93.js @@ -68,7 +68,7 @@ object-assign * Copyright 2011-2019 Twitter, Inc. * Licensed under the MIT license */ -if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,r=this,i;return e(this).one("bsTransitionEnd",(function(){n=!0})),setTimeout((function(){n||e(r).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};function r(t){return this.each((function(){var r=e(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),"string"==typeof t&&i[t].call(r)}))}n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.close=function(t){var r=e(this),i=r.attr("data-target");i||(i=(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var o=e(document).find(i);function s(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=r.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",s).emulateTransitionEnd(n.TRANSITION_DURATION):s())};var i=e.fn.alert;e.fn.alert=r,e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.isLoading=!1};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.button"),o="object"==typeof n&&n;i||r.data("bs.button",i=new t(this,o)),"toggle"==n?i.toggle():n&&i.setState(n)}))}t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var n="disabled",r=this.$element,i=r.is("input")?"val":"html",o=r.data();t+="Text",null==o.resetText&&r.data("resetText",r[i]()),setTimeout(e.proxy((function(){r[i](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n).prop(n,!1))}),this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var r=e.fn.button;e.fn.button=n,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=r,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var r=e(t.target).closest(".btn");n.call(r,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(jQuery),function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.carousel"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n),s="string"==typeof n?n:o.slide;i||r.data("bs.carousel",i=new t(this,o)),"number"==typeof n?i.to(n):s?i[s]():o.interval&&i.pause().cycle()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),r;if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var i,o=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(o)},t.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(n,r){var i=this.$element.find(".item.active"),o=r||this.getItemForDirection(n,i),s=this.interval,a="next"==n?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var f=o[0],c=e.Event("slide.bs.carousel",{relatedTarget:f,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=e(this.$indicators.children()[this.getItemIndex(o)]);l&&l.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:f,direction:a});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(n),"object"==typeof o&&o.length&&o[0].offsetWidth,i.addClass(a),o.addClass(a),i.one("bsTransitionEnd",(function(){o.removeClass([n,a].join(" ")).addClass("active"),i.removeClass(["active",a].join(" ")),u.sliding=!1,setTimeout((function(){u.$element.trigger(h)}),0)})).emulateTransitionEnd(t.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}};var r=e.fn.carousel;e.fn.carousel=n,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=r,this};var i=function(t){var r=e(this),i=r.attr("href");i&&(i=i.replace(/.*(?=#[^\s]+$)/,""));var o=r.attr("data-target")||i,s=e(document).find(o);if(s.hasClass("carousel")){var a=e.extend({},s.data(),r.data()),u=r.attr("data-slide-to");u&&(a.interval=!1),n.call(s,a),u&&s.data("bs.carousel").to(u),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var t=e(this);n.call(t,t.data())}))}))}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.$trigger=e('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var n,r=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(r)}function r(n){return this.each((function(){var r=e(this),i=r.data("bs.collapse"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n);!i&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),i||r.data("bs.collapse",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e;return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(n=i.data("bs.collapse"))&&n.transitioning)){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(r.call(i,"hide"),n||i.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var u=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[s](this.$element[0][u])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=e.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return i.call(this);this.$element[r](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,r){var i=e(r);this.addAriaAndCollapsedClass(n(i),i)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var i=e.fn.collapse;e.fn.collapse=r,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var i=e(this);i.attr("data-target")||t.preventDefault();var o=n(i),s,a=o.data("bs.collapse")?"toggle":i.data();r.call(o,a)}))}(jQuery),function(e){"use strict";var t=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(t){e(t).on("click.bs.dropdown",this.toggle)};function i(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r="#"!==n?e(document).find(n):null;return r&&r.length?r:t.parent()}function o(r){r&&3===r.which||(e(t).remove(),e(n).each((function(){var t=e(this),n=i(t),o={relatedTarget:this};n.hasClass("open")&&(r&&"click"==r.type&&/input|textarea/i.test(r.target.tagName)&&e.contains(n[0],r.target)||(n.trigger(r=e.Event("hide.bs.dropdown",o)),r.isDefaultPrevented()||(t.attr("aria-expanded","false"),n.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))})))}function s(t){return this.each((function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof t&&i[t].call(n)}))}r.VERSION="3.4.1",r.prototype.toggle=function(t){var n=e(this);if(!n.is(".disabled, :disabled")){var r=i(n),s=r.hasClass("open");if(o(),!s){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",o);var a={relatedTarget:this};if(r.trigger(t=e.Event("show.bs.dropdown",a)),t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(e.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var r=e(this);if(t.preventDefault(),t.stopPropagation(),!r.is(".disabled, :disabled")){var o=i(r),s=o.hasClass("open");if(!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(n).trigger("focus"),r.trigger("click");var a=" li:not(.disabled):visible a",u=o.find(".dropdown-menu"+a);if(u.length){var f=u.index(t.target);38==t.which&&f>0&&f--,40==t.which&&fdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},f.prototype.init=function(t,n,r){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var s=i[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",u="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},f.prototype.getDefaults=function(){return f.DEFAULTS},f.prototype.getOptions=function(n){var r=this.$element.data();for(var i in r)r.hasOwnProperty(i)&&-1!==e.inArray(i,t)&&delete r[i];return(n=e.extend({},this.getDefaults(),r,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=u(n.template,n.whiteList,n.sanitizeFn)),n},f.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,(function(e,r){n[e]!=r&&(t[e]=r)})),t},f.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout((function(){"in"==n.hoverState&&n.show()}),n.options.delay.show)}},f.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},f.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout((function(){"out"==n.hoverState&&n.hide()}),n.options.delay.hide)}},f.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var r=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,u=a.test(s);u&&(s=s.replace(a,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?i.appendTo(e(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),l=i[0].offsetWidth,h=i[0].offsetHeight;if(u){var d=s,p=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+h>p.bottom?"top":"top"==s&&c.top-hp.width?"left":"left"==s&&c.left-ls.top+s.height&&(i.top=s.top+s.height-u)}else{var f=t.left-o,c=t.left+o+n;fs.right&&(i.left=s.left+s.width-c)}return i},f.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},f.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},f.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},f.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},f.prototype.enable=function(){this.enabled=!0},f.prototype.disable=function(){this.enabled=!1},f.prototype.toggleEnabled=function(){this.enabled=!this.enabled},f.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},f.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},f.prototype.sanitizeHtml=function(e){return u(e,this.options.whiteList,this.options.sanitizeFn)};var l=e.fn.tooltip;e.fn.tooltip=c,e.fn.tooltip.Constructor=f,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=l,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");function n(n){return this.each((function(){var r=e(this),i=r.data("bs.popover"),o="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.popover",i=new t(this,o)),"string"==typeof n&&i[n]())}))}t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();if(this.options.html){var r=typeof n;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===r&&(n=this.sanitizeHtml(n))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===r?"html":"append"](n)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(n);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var r=e.fn.popover;e.fn.popover=n,e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=r,this}}(jQuery),function(e){"use strict";function t(n,r){this.$body=e(document.body),this.$scrollElement=e(n).is(document.body)?e(window):e(n),this.options=e.extend({},t.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each((function(){var r=e(this),i=r.data("bs.scrollspy"),o="object"==typeof n&&n;i||r.data("bs.scrollspy",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),i=t.data("target")||t.attr("href"),o=/^#./.test(i)&&e(i);return o&&o.length&&o.is(":visible")&&[[o[n]().top+r,i]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.getScrollHeight(),n=this.options.offset+t-this.$scrollElement.height(),r=this.offsets,i=this.targets,o=this.activeTarget,s;if(this.scrollHeight!=t&&this.refresh(),e>=n)return o!=(s=i[i.length-1])&&this.activate(s);if(o&&e=r[s]&&(void 0===r[s+1]||e .active"),s=i&&e.support.transition&&(o.length&&o.hasClass("fade")||!!r.find("> .fade").length);function a(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&s?o.one("bsTransitionEnd",a).emulateTransitionEnd(t.TRANSITION_DURATION):a(),o.removeClass("in")};var r=e.fn.tab;e.fn.tab=n,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=r,this};var i=function(t){t.preventDefault(),n.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(e){"use strict";var t=function(n,r){this.options=e.extend({},t.DEFAULTS,r);var i=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.affix"),o="object"==typeof n&&n;i||r.data("bs.affix",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,n,r){var i=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return i=e-r&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),r=this.options.offset,i=r.top,o=r.bottom,s=Math.max(e(document).height(),e(document.body).height());"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var a=this.getState(s,n,i,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var u="affix"+(a?"-"+a:""),f=e.Event(u+".bs.affix");if(this.$element.trigger(f),f.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-n-o})}};var r=e.fn.affix;e.fn.affix=n,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=r,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var t=e(this),r=t.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),n.call(t,r)}))}))}(jQuery)}}}},fibers:{"package.json":function e(t,n,e){e.exports={name:"fibers",version:"5.0.3",main:"fibers"}},"fibers.js":function e(t,n,e,r,i){if(process.fiberLib)e.exports=process.fiberLib;else{var o=t("fs"),s=t("path"),a=t("detect-libc");Math.random();var u=s.join(i,"bin",process.platform+"-"+process.arch+"-"+process.versions.modules+("linux"===process.platform?"-"+a.family:""),"fibers");try{process.fiberLib=e.exports=t(u).Fiber}catch(c){throw console.error("## There is an issue with `node-fibers` ##\n`"+u+".node` is missing.\n\nTry running this to fix the issue: "+process.execPath+" "+i.replace(" ","\\ ")+"/build"),console.error(c.stack||c.message||c),new Error("Missing binary. See message above.")}f(e.exports)}function f(e){try{var t=process.binding("async_wrap"),n;if(t.asyncIdStackSize instanceof Function)n=t.asyncIdStackSize;else{if(void 0===t.constants.kStackLength)throw new Error("Couldn't figure out how to get async stack size");l=t.constants.kStackLength,n=function(){return t.async_hook_fields[l]}}var r=t.popAsyncContext||t.popAsyncIds,i=t.pushAsyncContext||t.pushAsyncIds,o,s;if(!r||!i)throw new Error("Push/pop do not exist");o=void 0===t.constants.kExecutionAsyncId?t.constants.kCurrentAsyncId:t.constants.kExecutionAsyncId,s=void 0===t.constants.kTriggerAsyncId?t.constants.kCurrentTriggerId:t.constants.kTriggerAsyncId;var a=t.async_id_fields||t.async_uid_fields;function u(){for(var e=n(),t=new Array(e);e>0;--e){var i=a[o];t[e-1]={asyncId:i,triggerId:a[s]},r(i)}return t}function f(e){for(var t=0;t0)i.changeLanguage(e,r);else if(0!=a[u]){a[u]=0;var f=new XMLHttpRequest;f.overrideMimeType("application/json"),f.open("GET",u,!1),f.send(null),200===f.status?a[u]=1:a[u]=-1,n.addResourceBundle(e,s,JSON.parse(f.response)||{}),i.changeLanguage(e,r)}};n.changeLanguage=p;var g=function(e,t,n){return i.format(e,t,n)};n.format=g;var b=function(){return i.languages};n.getLanguages=b;var m=function(e,t){return i.loadLanguages(e,t)};n.loadLanguages=m;var v=function(e,t){return i.loadNamespaces(e,t)};n.loadNamespaces=v;var y=function(e,t){return i.on(e,t)};n.on=y;var _=function(e,t){return i.off(e,t)};n.off=_,r.__exportStar(t("./i18n/i18n"),n),r.__exportStar(t("./i18n/i18n.app"),n),r.__exportStar(t("./translations"),n)},i18n:{"i18n.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fallbackKeys=n.getObjectI18nTemplate=n.translationI18nObjects=n.addObjectsI18n=n.translationI18nObject=void 0;var r=t("../index"),i=t("underscore"),o=t("clone"),s="_",a="base",u="core",f="translation",c=function(e,t){var n={lng:t,ns:f};if((0,r.exists)(e,n))return(0,r._t)(e,n)},l=function(e){return"".concat(e,"__object")},h=function(e,t){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t)},d=function(e,t){var n=h(e,t);return"".concat(n).concat("_","inlineHelpText")},p=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","group").concat("_").concat(n)},g=function(e,t,n){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t).concat("_","options").concat("_").concat(n)},b=function(e,t){return"".concat(e).concat("_","action").concat("_").concat(t)},m=function(e,t){return"".concat(e).concat("_","listview").concat("_").concat(t)},v=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},y=function(e,t,n){var r=l(t);return c(r,e)||n||""},_=function(e,t,n,r,i){var o=h(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=_(e,a,n,r,i))}return s||r||""},w=function(e,t,n,r,i){var o=d(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=w(e,a,n,r,i))}return s||r||""},k=function(e,t,n,r){var i=p(t,n);return c(i,e)||r||""},j=function(e,t,n,r,i,o){var s=g(t,n,r),a=c(s,e);if(!a){var u=v(o);u&&"base"!=t&&"core"!=t&&(a=j(e,u,n,r,i,o))}return a||i||""},x=function(e,t,n,r,i){var o=b(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=x(e,a,n,r,i))}return s||r||""},S=function(e,t,n,r,i){var o=m(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=S(e,a,n,r,i))}return s||r||""},D=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},E=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;return e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(D(e))}))):n.push(D(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},A=function(e,t,n){n.label=y(e,t,n.label),i.each(n.fields,(function(r,o){if(r.label=_(e,t,o,r.label,n.datasource),r.inlineHelpText&&(r.inlineHelpText=w(e,t,o,r.inlineHelpText,n.datasource)),r.group&&(r.group=k(e,t,r.group,r.group)),r.options){var s=[];i.each(r.options,(function(r){if(i.has(r,"value")){var a=j(e,t,o,r.value,r.label,n.datasource);s.push(i.extend({},r,{label:a}))}else s.push(r)})),r.options=s}})),i.each(n.actions,(function(r,i){r.label=x(e,t,i,r.label,n.datasource)})),i.each(n.list_views,(function(r,i){r.label=S(e,t,i,r.label,n.datasource)}))};n.translationI18nObject=A;var C=function(e){i.each(e,(function(e){(0,r.addResourceBundle)(e.lng,f,e.data,!0,!0)}))};n.addObjectsI18n=C;var M=function(e,t){i.each(t,(function(t,r){(0,n.translationI18nObject)(e,r,t)}))};n.translationI18nObjects=M;var O=function(e,t,n){var r=o(n);E(r);var s={};return s[l(t)]=y(e,t,r.label),i.each(r.fields,(function(n,o){s[h(t,o)]=_(e,t,o,n.label),n.inlineHelpText&&(s[d(t,o)]=w(e,t,o,n.inlineHelpText,r.datasource)),n.group&&(s[p(t,n.group)]=k(e,t,n.group,n.group)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(s[g(t,o,n.value)]=j(e,t,o,n.value,n.label))}))})),i.each(r.actions,(function(n,r){s[b(t,r)]=x(e,t,r,n.label)})),i.each(r.list_views,(function(n,r){s[m(t,r)]=S(e,t,r,n.label)})),s};n.getObjectI18nTemplate=O,n.fallbackKeys={getObjectLabelKey:l,getObjectFieldLabelKey:h,getObjectFieldInlineHelpTextLabelKey:d,getObjectFieldGroupKey:p,getObjectFieldOptionsLabelKey:g,getObjectActionLabelKey:b,getObjectListviewLabelKey:m}},"i18n.app.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.appFallbackKeys=n.getAppI18nTemplate=n.translationI18nApps=n.translationI18nMenus=void 0;var r=t("../index"),i=t("underscore"),o=t("clone"),s="translation",a="_",u=function(e,t){var n={lng:t,ns:s};if((0,r.exists)(e,n))return(0,r._t)(e,n)},f=function(e){return"app".concat("_").concat(e).concat("_","name")},c=function(e){return"app".concat("_").concat(e).concat("_","description")},l=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","tab_group").concat("_").concat(n)},h=function(e){return"menu".concat("_").concat(e)},d=function(e){return"tab".concat("_").concat(e)},p=function(e,t,n){var r=f(t);return u(r,e)||n||""},g=function(e,t,n){var r=c(t);return u(r,e)||n||""},b=function(e,t,n){var r=h(t);return u(r,e)||n||""},m=function(e,t,r){r.label=p(e,t,r.label||r.name),r.description=g(e,t,r.description),(0,n.translationI18nMenus)(e,r.admin_menus)},v=function(e,t){i.each(t,(function(t){var n=b(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationI18nMenus=v;var y=function(e,t){i.each(t,(function(t,n){m(e,n,t)}))};n.translationI18nApps=y;var _=function(e,t,n){var r=o(n),s={};return s[f(t)]=p(e,t,r.label||r.name),s[c(t)]=g(e,t,r.description),i.each(r.admin_menus,(function(t){s[h(t._id)]=b(e,t._id,t.label||t.name)})),s};n.getAppI18nTemplate=_,n.appFallbackKeys={getAppLabelKey:f,getAppDescriptionKey:c,getAppGroupKey:l,getMenuLabelKey:h,getTabKey:d}}},translations:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SteedosTranslationPrefixKeys=n.convertObject=void 0;var r=t("tslib"),i=t("underscore");r.__exportStar(t("./objectTranslation"),n),r.__exportStar(t("./translation"),n),r.__exportStar(t("./templates/objectTranslation"),n),r.__exportStar(t("./templates/translation"),n);var o=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},s=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(o(e))}))):n.push(o(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else if(e.options&&i.isArray(e.options))try{i.forEach(e.options,(function(e){i.isString(e)?n.push(o(e)):n.push(e)})),e.options=n}catch(r){console.error("Creator.convertFieldsOptions",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},a;n.convertObject=s,function(e){e.Object="CustomObject",e.Field="CustomField",e.Action="CustomAction",e.Listview="CustomListview",e.Permission="CustomPermission",e.ValidationRule="CustomValidationRule",e.Application="CustomApplication",e.Tab="CustomTabs",e.Permissionset="CustomPermissionset",e.Profile="CustomProfile",e.Report="CustomReport",e.Workflow="Workflow",e.Layout="Layout",e.Client="Client",e.Server="Server",e.Function="Function",e.Router="Router",e.Trigger="Trigger"}(a=n.SteedosTranslationPrefixKeys||(n.SteedosTranslationPrefixKeys={}))},"objectTranslation.js":function e(t,n,e,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addObjectsTranslation=n.getObjectTranslationTemplate=n.translationObjects=n.translationObject=n.translationObjectLabel=void 0;var i=t("underscore"),o=t("./"),s=t("../index"),a=t("./index"),u=t("../i18n/i18n"),f=t("lodash"),c=t("crypto"),l,h=(0,t("@steedos/cachers").getCacher)("lru.translations.objects");function d(e){var t;return c.createHash("md5").update(e).digest("hex")}var p=function(e,t){return"".concat(e,"_").concat(t.name,"_").concat(d(JSON.stringify(t)))},g=t("clone"),b=".",m="base",v="core",y="translation",_="object",w="field",k="listview",j="action",x=function(e,t){var n={lng:t,ns:y,keySeparator:!1};if((0,s.exists)(e,n))return(0,s._t)(e,n)},S=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},D=function(e){switch(e){case"object":return o.SteedosTranslationPrefixKeys.Object;case"field":return o.SteedosTranslationPrefixKeys.Field;case"listview":return o.SteedosTranslationPrefixKeys.Listview;case"action":return o.SteedosTranslationPrefixKeys.Action;default:return"CustomLabels"}},E=function(e){var t;return[D(),e].join(".")},A=function(e){var t;return[D("object"),e,"label"].join(".")},C=function(e){var t;return[D("object"),e,"description"].join(".")},M=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"label"].join(".")},O=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"help"].join(".")},T=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"description"].join(".")},B=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_"),r;return[D("field"),e,"group",n].join(".")},I=function(e,t,n){var r;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"options",n].join(".")},R=function(e,t){var n;return[D("action"),e,t].join(".")},F=function(e,t){var n;return[D("listview"),e,t].join(".")},P=function(e,t,n){var r,i=[A(t)],o=u.fallbackKeys.getObjectLabelKey(t);return o&&i.push(o),x(i,e)||n||""};n.translationObjectLabel=P;var N=function(e,t,n){var r=C(t);return x(r,e)||n||""},L=function(e,t,n,r,i,o){var s,a=[M(t,n)],f=u.fallbackKeys.getObjectFieldLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=L(e,l,n,r,i))}return c||r||""},z=function(e,t,n,r,i,o){var s,a=[O(t,n)],f=u.fallbackKeys.getObjectFieldInlineHelpTextLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=z(e,l,n,r,i))}return c||r||""},U=function(e,t,n,r,i,o){var s=T(t,n),a,u=x([s],e);if(1!=o&&!u){var f=S(i);f&&"base"!=t&&"core"!=t&&(u=U(e,f,n,r,i))}return u||r||""},q=function(e,t,n,r,i,o){var s,a=[B(t,n)],f=u.fallbackKeys.getObjectFieldGroupKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=q(e,l,n,r,i))}return c||r||""},$=function(e,t,n,r,i,o,s){var a,f=[I(t,n,r)],c=u.fallbackKeys.getObjectFieldOptionsLabelKey(t,n,r);c&&f.push(c);var l=x(f,e);if(1!=s&&!l){var h=S(o);h&&"base"!=t&&"core"!=t&&(l=$(e,h,n,r,i,o))}return l||i||""},H=function(e,t,n,r,i,o){var s,a=[R(t,n)],f=u.fallbackKeys.getObjectActionLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=H(e,l,n,r,i))}return c||r||""},W=function(e,t,n,r,i,o){var s,a=[F(t,n)],f=u.fallbackKeys.getObjectListviewLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=W(e,l,n,r,i))}return c||r||""},Y=function(e,t,r,o,s){void 0===s&&(s=!1);var u=p(e,r);"test_obj_layout1"===t&&console.log("translationObject",t,u);var c=h.get(u);if(c)return Object.assign(r,(0,f.cloneDeep)(c));o&&(0,a.convertObject)(r),r.label=(0,n.translationObjectLabel)(e,t,r.label),r.description=N(e,t,r.description),i.each(r.fields,(function(n,o){if(n.label=L(e,t,o,n.label,r.datasource,s),n.inlineHelpText&&(n.inlineHelpText=z(e,t,o,n.inlineHelpText,r.datasource,s)),n.group&&(n.group=q(e,t,n.group,n.group,r.datasource,s)),n.options){var a=[];i.each(n.options,(function(n){if(i.has(n,"value")){var u=$(e,t,o,n.value,n.label,r.datasource,s);a.push(i.extend({},n,{label:u}))}else a.push(n)})),n.options=a}})),i.each(r.actions,(function(n,i){n.label=H(e,t,i,n.label,r.datasource,s)})),i.each(r.list_views,(function(n,i){n.label=W(e,t,i,n.label,r.datasource,s)})),h.set(u,(0,f.cloneDeep)(r))};n.translationObject=Y;var V=function(e,t){i.each(t,(function(t,r){(0,n.translationObject)(e,r,t)}))};n.translationObjects=V;var K=function(e,t,r){var o=g(r);(0,a.convertObject)(o);var s={};return s[A(t)]=(0,n.translationObjectLabel)(e,t,o.label),s[C(t)]=N(e,t,o.description),i.each(o.fields,(function(n,r){s[M(t,r)]=L(e,t,r,n.label),n.inlineHelpText&&(s[O(t,r)]=z(e,t,r,n.inlineHelpText,o.datasource)),n.description&&(s[T(t,r)]=U(e,t,r,n.description,o.datasource)),n.group&&(s[B(t,n.group)]=q(e,t,n.group,n.group,o.datasource)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(s[I(t,r,n.value)]=$(e,t,r,n.value,n.label))}))})),i.each(o.actions,(function(n,r){s[R(t,r)]=H(e,t,r,n.label)})),i.each(o.list_views,(function(n,r){s[F(t,r)]=W(e,t,r,n.label)})),s};function G(e,t){var n=g(e);(0,a.convertObject)(n);var r={},o=n.name;return o||console.error("Error: Invalid objectTranslation:"+t),r[A(o)]=n.label,r[C(o)]=n.description,i.each(n.fields,(function(e,t){r[M(o,t)]=e.label,e.help&&(r[O(o,t)]=e.help),e.description&&(r[T(o,t)]=e.description),e.options&&i.each(e.options,(function(e){i.has(e,"value")&&(r[I(o,t,e.value)]=e.label)}))})),i.each(n.groups,(function(e,t){r[B(o,t)]=e})),i.each(n.actions,(function(e,t){r[R(o,t)]=e.label})),i.each(n.listviews,(function(e,t){r[F(o,t)]=e.label})),i.each(n.CustomLabels,(function(e,t){r[E(t)]=e})),r}n.getObjectTranslationTemplate=K;var X=function(e){i.each(e,(function(e){var t=G(e.data,e.__filename);(0,s.addResourceBundle)(e.lng,y,t,!0,!0)}))};n.addObjectsTranslation=X},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addTranslations=n.convertTranslation=n.convertTranslationData=n.getAppTranslationTemplate=n.translationApps=n.translationMenus=n.translationApp=n.translationTabLabel=n.translationTabGroup=void 0;var r=t("../index"),i=t("underscore"),o=t("./"),s=t("../i18n/i18n.app"),a=t("clone"),u="translation",f=".",c="app",l="menu",h="tab",d=function(e){switch(e){case"app":return o.SteedosTranslationPrefixKeys.Application;case"tab":return o.SteedosTranslationPrefixKeys.Tab;default:return"CustomLabels"}},p=function(e){var t;return[d(),e].join(".")},g=function(e,t){var n={lng:t,ns:u,keySeparator:!1};if((0,r.exists)(e,n))return(0,r._t)(e,n)},b=function(e){var t;return[d("app"),e,"name"].join(".")},m=function(e){var t;return[d("app"),e,"description"].join(".")},v=function(e,t){var n,r;return[d("app"),e,"groups",t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_")].join(".")},y=function(e){var t;return[d("menu"),"menu_".concat(e)].join(".")},_=function(e){var t;return[d("tab"),e].join(".")},w=function(e,t,n){var r,i=[b(t)],o=s.appFallbackKeys.getAppLabelKey(t);return o&&i.push(o),g(i,e)||n||""},k=function(e,t,n){var r,i=[m(t)],o=s.appFallbackKeys.getAppDescriptionKey(t);return o&&i.push(o),g(i,e)||n||""},j=function(e,t,n,r){var i,o=[v(t,n)],a=s.appFallbackKeys.getAppGroupKey(t,n);return a&&o.push(a),g(o,e)||r||""};n.translationTabGroup=j;var x=function(e,t,n){var r,i=[y(t)],o=s.appFallbackKeys.getMenuLabelKey(t);return o&&i.push(o),g(i,e)||n||""},S=function(e,t,n){var r,i=[_(t)],o=s.appFallbackKeys.getTabKey(t);return o&&i.push(o),g(i,e)||n||""};n.translationTabLabel=S;var D=function(e,t,r){r.label=w(e,t,r.label||r.name),r.description=k(e,t,r.description),i.each(r.tab_groups,(function(i,o){r.tab_groups[o].id=i.id||i.group_name,r.tab_groups[o].group_name=(0,n.translationTabGroup)(e,t,i.group_name,i.group_name)})),(0,n.translationMenus)(e,r.admin_menus)};n.translationApp=D;var E=function(e,t){i.each(t,(function(t){var n=x(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationMenus=E;var A=function(e,t){i.each(t,(function(t,r){(0,n.translationApp)(e,r,t)}))};n.translationApps=A;var C=function(e,t,n){var r=a(n),o={};return o[b(t)]=w(e,t,r.label||r.name),o[m(t)]=k(e,t,r.description),i.each(r.admin_menus,(function(t){o[y(t._id)]=x(e,t._id,t.label||t.name)})),o};n.getAppTranslationTemplate=C;var M=function(e,t,n){i.isArray(n)?i.each(n,(function(e){M(e,"",e)})):n&&i.each(i.keys(n),(function(r){var o=t?"".concat(t,".").concat(r):r,s=n[r];"object"==typeof s?i.isArray(s)?i.each(s,(function(e){M(e,o,s)})):M(e,o,s):e[o]=s}))};function O(e){for(var t in e)"object"==typeof e[t]&&M(e,t,e[t]);return e}n.convertTranslationData=O;var T=function(e){var t=a(e),n={};return i.each(t.CustomApplications,(function(e,t){n[b(t)]=e.name,n[m(t)]=e.description,i.each(e.groups,(function(e,r){n[v(t,r)]=e}))})),i.each(t.CustomTabs,(function(e,t){n[_(t)]=e})),i.each(t.CustomLabels,(function(e,t){var r;if("simpleschema"!=t&&i.isObject(e)){var o=O(((r={})[t]=e,r));i.each(o,(function(e,t){i.isObject(e)||(n[p(t)]=e)}))}else n[p(t)]=e})),n};n.convertTranslation=T;var B=function(e){i.each(e,(function(e){var t=(0,n.convertTranslation)(e.data);(0,r.addResourceBundle)(e.lng,u,t,!0,!0)}))};n.addTranslations=B},templates:{"objectTranslation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getObjectMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),o=t("clone");function s(e,t){var n={};return r.each(e,(function(e){n[e]="help"===e?t.inlineHelpText||"":t[e]||""})),n}function a(e){return s(["label","description"],e)}function u(e){switch(e.type){case"select":return s(["label","help","options","description"],e);default:return s(["label","help","description"],e)}}function f(e){return s(["label"],e)}function c(e){return s(["label"],e)}function l(e){var t={};return r.each(e,(function(e,n){t[n]=u(e)})),t}function h(e){var t={};return r.each(e,(function(e,n){t[n]=c(e)})),t}function d(e){var t={};return r.each(e,(function(e,n){t[n]=f(e)})),t}function p(e,t){var n={};return r.each(e,(function(e,r){if(e.group){var i=e.group.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");n[i]=t[r].group}})),n}var g=function(e,t,n,s){void 0===s&&(s=!1);var u=o(n);1!=s&&(0,i.translationObject)(e,t,u,!0,s);var f=Object.assign({},a(u));f=Object.assign({},f,{fields:l(u.fields)});var c=p(n.fields,u.fields);r.isEmpty(c)||(f=Object.assign({},f,{groups:c}));var g=d(u.list_views);r.isEmpty(g)||(f=Object.assign({},f,{listviews:g}));var b=h(u.actions);return r.isEmpty(b)||(f=Object.assign({},f,{actions:b})),Object.assign({name:t},f)};n.getObjectMetadataTranslationTemplate=g},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getAppMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),o=t("clone");function s(e,t){var n={};return r.each(e,(function(e){n[e]=t[e]||""})),n}function a(e){var t={groups:{}};return e?(r.each(e,(function(e){var n=e.group_name.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t.groups[n]=e.group_name})),t):{}}var u=function(e){return Object.assign({},s(["name","description"],e),a(e.tab_groups))},f=function(e){var t={};return r.each(e,(function(e,n){t[n]=n})),t},c=function(e){var t={};return r.each(e,(function(e){var n=e.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t[n]=e})),t},l=function(e,t,n){var r,s=o(n);(0,i.translationApp)(e,t,s);var a={},l;return s.tab_items?a=f(s.tab_items):s.tabs&&(a=c(s.tabs)),Object.assign({},{CustomApplications:(r={},r[t]=u(s),r)},{CustomTabs:a})};n.getAppMetadataTranslationTemplate=l}}}},node_modules:{i18next:{"package.json":function e(t,n,e){e.exports={name:"i18next",version:"19.9.2",module:"./dist/esm/i18next.js",main:"./dist/cjs/i18next.js"}},dist:{esm:{"i18next.js":function e(t,n,e){let r,i,o,s,a,u,f,c;e.link("@babel/runtime/helpers/esm/typeof",{default(e){r=e}},0),e.link("@babel/runtime/helpers/esm/objectSpread",{default(e){i=e}},1),e.link("@babel/runtime/helpers/esm/classCallCheck",{default(e){o=e}},2),e.link("@babel/runtime/helpers/esm/createClass",{default(e){s=e}},3),e.link("@babel/runtime/helpers/esm/possibleConstructorReturn",{default(e){a=e}},4),e.link("@babel/runtime/helpers/esm/getPrototypeOf",{default(e){u=e}},5),e.link("@babel/runtime/helpers/esm/assertThisInitialized",{default(e){f=e}},6),e.link("@babel/runtime/helpers/esm/inherits",{default(e){c=e}},7);var l={type:"logger",log:function e(t){this.output("log",t)},warn:function e(t){this.output("warn",t)},error:function e(t){this.output("error",t)},output:function e(t,n){console&&console[t]&&console[t].apply(console,n)}},h,d=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.init(t,n)}return s(e,[{key:"init",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||l,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function e(t){this.debug=t}},{key:"log",value:function e(){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function y(e,t,n){var r=v(e,t,Object),i,o;r.obj[r.k]=n}function _(e,t,n,r){var i=v(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}function w(e,t){var n=v(e,t),r=n.obj,i=n.k;if(r)return r[i]}function k(e,t,n){var r=w(e,n);return void 0!==r?r:w(t,n)}function j(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):j(e[r],t[r],n):e[r]=t[r]);return e}function x(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var S={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function D(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return S[e]})):e}var E="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,A=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return o(this,t),n=a(this,u(t).call(this)),E&&p.call(f(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return c(t,e),s(t,[{key:"addNamespaces",value:function e(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function e(t){var n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=[t,n];return r&&"string"!=typeof r&&(s=s.concat(r)),r&&"string"==typeof r&&(s=s.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(s=t.split(".")),w(this.data,s)}},{key:"addResource",value:function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},s=this.options.keySeparator;void 0===s&&(s=".");var a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(i=n,n=(a=t.split("."))[1]),this.addNamespaces(n),y(this.data,a,i),o.silent||this.emit("added",t,n,r,i)}},{key:"addResources",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in r)"string"!=typeof r[o]&&"[object Array]"!==Object.prototype.toString.apply(r[o])||this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}},{key:"addResourceBundle",value:function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},u=[t,n];t.indexOf(".")>-1&&(o=r,r=n,n=(u=t.split("."))[1]),this.addNamespaces(n);var f=w(this.data,u)||{};o?j(f,r,s):f=i({},f,r),y(this.data,u,f),a.silent||this.emit("added",t,n,r)}},{key:"removeResourceBundle",value:function e(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}},{key:"hasResourceBundle",value:function e(t,n){return void 0!==this.getResource(t,n)}},{key:"getResourceBundle",value:function e(t,n){return n||(n=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(t,n)):this.getResource(t,n)}},{key:"getDataByLanguage",value:function e(t){return this.data[t]}},{key:"toJSON",value:function e(){return this.data}}]),t}(p),C={processors:{},addPostProcessor:function e(t){this.processors[t.name]=t},handle:function e(t,n,r,i,o){var s=this;return t.forEach((function(e){s.processors[e]&&(n=s.processors[e].process(n,r,i,o))})),n}},M={},O=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,t),n=a(this,u(t).call(this)),E&&p.call(f(n)),m(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,f(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=d.create("translator"),n}return c(t,e),s(t,[{key:"changeLanguage",value:function e(t){t&&(this.language=t)}},{key:"exists",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(t,n);return r&&void 0!==r.res}},{key:"extractFromKey",value:function e(t,n){var r=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=n.ns||this.options.defaultNS;if(r&&t.indexOf(r)>-1){var s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:o};var a=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),t=a.join(i)}return"string"==typeof o&&(o=[o]),{key:t,namespaces:o}}},{key:"translate",value:function e(n,o,s){var a=this;if("object"!==r(o)&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),null==n)return"";Array.isArray(n)||(n=[String(n)]);var u=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,f=this.extractFromKey(n[n.length-1],o),c=f.key,l=f.namespaces,h=l[l.length-1],d=o.lng||this.language,p=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var g=o.nsSeparator||this.options.nsSeparator;return h+g+c}return c}var b=this.resolve(n,o),m=b&&b.res,v=b&&b.usedKey||c,y=b&&b.exactUsedKey||c,_=Object.prototype.toString.apply(m),w=["[object Number]","[object Function]","[object RegExp]"],k=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(j&&m&&x&&w.indexOf(_)<0&&("string"!=typeof k||"[object Array]"!==_)){if(!o.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,o):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(u){var S="[object Array]"===_,D=S?[]:{},E=S?y:v;for(var A in m)if(Object.prototype.hasOwnProperty.call(m,A)){var C="".concat(E).concat(u).concat(A);D[A]=this.translate(C,i({},o,{joinArrays:!1,ns:l})),D[A]===C&&(D[A]=m[A])}m=D}}else if(j&&"string"==typeof k&&"[object Array]"===_)(m=m.join(k))&&(m=this.extendTranslation(m,n,o,s));else{var M=!1,O=!1,T=void 0!==o.count&&"string"!=typeof o.count,B=t.hasDefaultValue(o),I=T?this.pluralResolver.getSuffix(d,o.count):"",R=o["defaultValue".concat(I)]||o.defaultValue;!this.isValidLookup(m)&&B&&(M=!0,m=R),this.isValidLookup(m)||(O=!0,m=c);var F=B&&R!==m&&this.options.updateMissing;if(O||M||F){if(this.logger.log(F?"updateKey":"missingKey",d,h,c,F?R:m),u){var P=this.resolve(c,i({},o,{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var z=0;z1&&void 0!==arguments[1]?arguments[1]:{},i,o,s,a,u;return"string"==typeof t&&(t=[t]),t.forEach((function(e){if(!n.isValidLookup(i)){var t=n.extractFromKey(e,r),f=t.key;o=f;var c=t.namespaces;n.options.fallbackNS&&(c=c.concat(n.options.fallbackNS));var l=void 0!==r.count&&"string"!=typeof r.count,h=void 0!==r.context&&"string"==typeof r.context&&""!==r.context,d=r.lngs?r.lngs:n.languageUtils.toResolveHierarchy(r.lng||n.language,r.fallbackLng);c.forEach((function(e){n.isValidLookup(i)||(u=e,!M["".concat(d[0],"-").concat(e)]&&n.utils&&n.utils.hasLoadedNamespace&&!n.utils.hasLoadedNamespace(u)&&(M["".concat(d[0],"-").concat(e)]=!0,n.logger.warn('key "'.concat(o,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(t){if(!n.isValidLookup(i)){a=t;var o=f,u=[o],c,d;if(n.i18nFormat&&n.i18nFormat.addLookupKeys)n.i18nFormat.addLookupKeys(u,f,t,e,r);else l&&(c=n.pluralResolver.getSuffix(t,r.count)),l&&h&&u.push(o+c),h&&u.push(o+="".concat(n.options.contextSeparator).concat(r.context)),l&&u.push(o+=c);for(;d=u.pop();)n.isValidLookup(i)||(s=d,i=n.getResource(t,e,d,r))}})))}))}})),{res:i,usedKey:o,exactUsedKey:s,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function e(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}}],[{key:"hasDefaultValue",value:function e(t){var n="defaultValue";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&void 0!==t[r])return!0;return!1}}]),t}(p);function T(e){return e.charAt(0).toUpperCase()+e.slice(1)}var B=function(){function e(t){o(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=d.create("languageUtils")}return s(e,[{key:"getScriptPartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase()?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function e(t){if("string"==typeof t&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=T(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function e(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function e(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function e(t){var n=this,r;return t?(t.forEach((function(e){if(!r){var t=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(t)||(r=t)}})),!r&&this.options.supportedLngs&&t.forEach((function(e){if(!r){var t=n.getLanguagePartFromCode(e);if(n.isSupportedCode(t))return r=t;r=n.options.supportedLngs.find((function(e){if(0===e.indexOf(t))return e}))}})),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function e(t,n){if(!t)return[];if("function"==typeof t&&(t=t(n)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function e(t,n){var r=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],s=function e(t){t&&(r.isSupportedCode(t)?o.push(t):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(t))):"string"==typeof t&&s(this.formatLanguageCode(t)),i.forEach((function(e){o.indexOf(e)<0&&s(r.formatLanguageCode(e))})),o}}]),e}(),I=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],R={1:function e(t){return Number(t>1)},2:function e(t){return Number(1!=t)},3:function e(t){return 0},4:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function e(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function e(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function e(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function e(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function e(t){return Number(t>=2)},10:function e(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function e(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function e(t){return Number(t%10!=1||t%100==11)},13:function e(t){return Number(0!==t)},14:function e(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function e(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function e(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function e(t){return Number(0==t?0:1==t?1:2)},19:function e(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function e(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function e(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function e(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function F(){var e={};return I.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:R[t.fc]}}))})),e}var P=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.languageUtils=t,this.options=n,this.logger=d.create("pluralResolver"),this.rules=F()}return s(e,[{key:"addRule",value:function e(t,n){this.rules[t]=n}},{key:"getRule",value:function e(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function e(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function e(t,n){return this.getSuffixes(t).map((function(e){return n+e}))}},{key:"getSuffixes",value:function e(t){var n=this,r=this.getRule(t);return r?r.numbers.map((function(e){return n.getSuffix(t,e)})):[]}},{key:"getSuffix",value:function e(t,n){var r=this,i=this.getRule(t);if(i){var o=i.noAbs?i.plurals(n):i.plurals(Math.abs(n)),s=i.numbers[o];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===s?s="plural":1===s&&(s=""));var a=function e(){return r.options.prepend&&s.toString()?r.options.prepend+s.toString():s.toString()};return"v1"===this.options.compatibilityJSON?1===s?"":"number"==typeof s?"_plural_".concat(s.toString()):a():"v2"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),N=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.logger=d.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return s(e,[{key:"init",value:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=void 0!==n.escape?n.escape:D,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?x(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?x(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?x(n.nestingPrefix):n.nestingPrefixEscaped||x("$t("),this.nestingSuffix=n.nestingSuffix?x(n.nestingSuffix):n.nestingSuffixEscaped||x(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function e(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function e(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function e(t,n,r,i){var o=this,s,a,u,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function e(t){if(t.indexOf(o.formatSeparator)<0){var s=k(n,f,t);return o.alwaysFormat?o.format(s,void 0,r):s}var a=t.split(o.formatSeparator),u=a.shift().trim(),c=a.join(o.formatSeparator).trim();return o.format(k(n,f,u),c,r,i)};this.resetRegExp();var h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p;return[{regex:this.regexpUnescape,safeValue:function e(t){return c(t)}},{regex:this.regexp,safeValue:function e(t){return o.escapeValue?c(o.escape(t)):c(t)}}].forEach((function(e){for(u=0;s=e.regex.exec(t);){if(void 0===(a=l(s[1].trim())))if("function"==typeof h){var n=h(t,s,i);a="string"==typeof n?n:""}else{if(d){a=s[0];continue}o.logger.warn("missed to pass in variable ".concat(s[1]," for interpolating ").concat(t)),a=""}else"string"==typeof a||o.useRawValueToEscape||(a=b(a));if(t=t.replace(s[0],e.safeValue(a)),e.regex.lastIndex=0,++u>=o.maxReplaces)break}})),t}},{key:"nest",value:function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s,a,u=i({},o);function f(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,u)).replace(/'/g,'"');try{u=JSON.parse(o),t&&(u=i({},t,u))}catch(s){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),s),"".concat(e).concat(n).concat(o)}return delete u.defaultValue,e}for(u.applyPostProcessor=!1,delete u.defaultValue;s=this.nestingRegexp.exec(t);){var c=[],l=!1;if(s[0].includes(this.formatSeparator)&&!/{.*}/.test(s[1])){var h=s[1].split(this.formatSeparator).map((function(e){return e.trim()}));s[1]=h.shift(),c=h,l=!0}if((a=n(f.call(this,s[1].trim(),u),u))&&s[0]===t&&"string"!=typeof a)return a;"string"!=typeof a&&(a=b(a)),a||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(t)),a=""),l&&(a=c.reduce((function(e,t){return r.format(e,t,o.lng,o)}),a.trim())),t=t.replace(s[0],a),this.regexp.lastIndex=0}return t}}]),e}();function L(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}var z=function(e){function t(e,n,r){var i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o(this,t),i=a(this,u(t).call(this)),E&&p.call(f(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=s,i.logger=d.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,s.backend,s),i}return c(t,e),s(t,[{key:"queueLoad",value:function e(t,n,r,i){var o=this,s=[],a=[],u=[],f=[];return t.forEach((function(e){var t=!0;n.forEach((function(n){var i="".concat(e,"|").concat(n);!r.reload&&o.store.hasResourceBundle(e,n)?o.state[i]=2:o.state[i]<0||(1===o.state[i]?a.indexOf(i)<0&&a.push(i):(o.state[i]=1,t=!1,a.indexOf(i)<0&&a.push(i),s.indexOf(i)<0&&s.push(i),f.indexOf(n)<0&&f.push(n)))})),t||u.push(e)})),(s.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:i}),{toLoad:s,pending:a,toLoadLanguages:u,toLoadNamespaces:f}}},{key:"loaded",value:function e(t,n,r){var i=t.split("|"),o=i[0],s=i[1];n&&this.emit("failedLoading",o,s,n),r&&this.store.addResourceBundle(o,s,r),this.state[t]=n?-1:2;var e={};this.queue.forEach((function(r){_(r.loaded,[o],s),L(r.pending,t),n&&r.errors.push(n),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(t){e[t]||(e[t]=[]),r.loaded[t].length&&r.loaded[t].forEach((function(n){e[t].indexOf(n)<0&&e[t].push(n)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",e),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[r](t,n,(function(e,u){e&&u&&o<5?setTimeout((function(){i.read.call(i,t,n,r,o+1,2*s,a)}),s):a(e,u)})):a(null,{})}},{key:"prepareLoading",value:function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof n&&(n=[n]);var s=this.queueLoad(t,n,i,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function e(t,n,r){this.prepareLoading(t,n,{},r)}},{key:"reload",value:function e(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}},{key:"loadOne",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t.split("|"),o=i[0],s=i[1];this.read(o,s,"read",void 0,void 0,(function(e,i){e&&n.logger.warn("".concat(r,"loading namespace ").concat(s," for language ").concat(o," failed"),e),!e&&i&&n.logger.log("".concat(r,"loaded namespace ").concat(s," for language ").concat(o),i),n.loaded(t,e,i)}))}},{key:"saveMissing",value:function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(t,n,r,o,null,i({},a,{isUpdate:s})),t&&t[0]&&this.store.addResource(t[0],n,r,o))}}]),t}(p);function U(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function e(t){var n={};if("object"===r(t[1])&&(n=t[1]),"string"==typeof t[1]&&(n.defaultValue=t[1]),"string"==typeof t[2]&&(n.tDescription=t[2]),"object"===r(t[2])||"object"===r(t[3])){var i=t[3]||t[2];Object.keys(i).forEach((function(e){n[e]=i[e]}))}return n},interpolation:{escapeValue:!0,format:function e(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function q(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $(){}var H,W=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(o(this,t),e=a(this,u(t).call(this)),E&&p.call(f(e)),e.options=q(n),e.services={},e.logger=d,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),a(e,f(e));setTimeout((function(){e.init(n,r)}),0)}return e}return c(t,e),s(t,[{key:"init",value:function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function o(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof n&&(r=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},U(),this.options,q(n)),this.format=this.options.interpolation.format,r||(r=$),!this.options.isClone){this.modules.logger?d.init(o(this.modules.logger),this.options):d.init(null,this.options);var s=new B(this.options);this.store=new A(this.options.resources,this.options);var a=this.services;a.logger=d,a.resourceStore=this.store,a.languageUtils=s,a.pluralResolver=new P(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new N(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new z(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var f=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];f.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}}));var l=g(),h=function e(){var n=function e(n,i){t.isInitialized&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),l.resolve(i),r(n,i)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return n(null,t.t.bind(t));t.changeLanguage(t.options.lng,n)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),l}},{key:"loadResources",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,i=r,o="string"==typeof t?t:this.language;if("function"==typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return i();var s=[],a=function e(t){var r;t&&n.services.languageUtils.toResolveHierarchy(t).forEach((function(e){s.indexOf(e)<0&&s.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(s,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function e(t,n,r){var i=g();return t||(t=this.languages),n||(n=this.options.ns),r||(r=$),this.services.backendConnector.reload(t,n,(function(e){i.resolve(),r(e)})),i}},{key:"use",value:function e(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&C.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function e(t,n){var r=this;this.isLanguageChangingTo=t;var i=g();this.emit("languageChanging",t);var o=function e(t,o){o?(r.language=o,r.languages=r.services.languageUtils.toResolveHierarchy(o),r.translator.changeLanguage(o),r.isLanguageChangingTo=void 0,r.emit("languageChanged",o),r.logger.log("languageChanged",o)):r.isLanguageChangingTo=void 0,i.resolve((function(){return r.t.apply(r,arguments)})),n&&n(t,(function(){return r.t.apply(r,arguments)}))},s=function e(t){var n="string"==typeof t?t:r.services.languageUtils.getBestMatchFromCodes(t);n&&(r.language||(r.language=n,r.languages=r.services.languageUtils.toResolveHierarchy(n)),r.translator.language||r.translator.changeLanguage(n),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(n)),r.loadResources(n,(function(e){o(e,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(s):s(t):s(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function e(t,n){var o=this,s=function e(t,n){var s;if("object"!==r(n)){for(var a=arguments.length,u=new Array(a>2?a-2:0),f=2;f1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],o=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function e(t,r){var i=n.services.backendConnector.state["".concat(t,"|").concat(r)];return-1===i||2===i};if(r.precheck){var u=r.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(i,t)||(!this.services.backendConnector.backend||!(!a(i,t)||o&&!a(s,t)))}},{key:"loadNamespaces",value:function e(t,n){var r=this,i=g();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),n&&n(e)})),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function e(t,n){var r=g();"string"==typeof t&&(t=[t]);var i=this.options.preload||[],o=t.filter((function(e){return i.indexOf(e)<0}));return o.length?(this.options.preload=i.concat(o),this.loadResources((function(e){r.resolve(),n&&n(e)})),r):(n&&n(),Promise.resolve())}},{key:"dir",value:function e(t){return t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),t?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr":"rtl";var n}},{key:"createInstance",value:function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function e(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,s=i({},this.options,r,{isClone:!0}),a=new t(s),u=["store","services","language"];return u.forEach((function(e){a[e]=n[e]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new O(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rr,root:()=>i,ArrayProto:()=>o,ObjProto:()=>s,SymbolProto:()=>a,push:()=>u,slice:()=>f,toString:()=>c,hasOwnProperty:()=>l,supportsArrayBuffer:()=>h,supportsDataView:()=>d,nativeIsArray:()=>p,nativeKeys:()=>g,nativeCreate:()=>b,nativeIsView:()=>m,_isNaN:()=>v,_isFinite:()=>y,hasEnumBug:()=>_,nonEnumerableProps:()=>w,MAX_ARRAY_INDEX:()=>k});var r="1.13.4",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},o=Array.prototype,s=Object.prototype,a="undefined"!=typeof Symbol?Symbol.prototype:null,u=o.push,f=o.slice,c=s.toString,l=s.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,d="undefined"!=typeof DataView,p=Array.isArray,g=Object.keys,b=Object.create,m=h&&ArrayBuffer.isView,v=isNaN,y=isFinite,_=!{toString:null}.propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=Math.pow(2,53)-1},"restArguments.js":function e(t,n,e){function r(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;ir})},"isObject.js":function e(t,n,e){function r(e){var t=typeof e;return"function"===t||"object"===t&&!!e}e.export({default:()=>r})},"isNull.js":function e(t,n,e){function r(e){return null===e}e.export({default:()=>r})},"isUndefined.js":function e(t,n,e){function r(e){return void 0===e}e.export({default:()=>r})},"isBoolean.js":function e(t,n,e){let r;function i(e){return!0===e||!1===e||"[object Boolean]"===r.call(e)}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isElement.js":function e(t,n,e){function r(e){return!(!e||1!==e.nodeType)}e.export({default:()=>r})},"isString.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("String"))},"_tagTester.js":function e(t,n,e){let r;function i(e){var t="[object "+e+"]";return function(e){return r.call(e)===t}}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isNumber.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Number"))},"isDate.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Date"))},"isRegExp.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("RegExp"))},"isError.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Error"))},"isSymbol.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Symbol"))},"isArrayBuffer.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("ArrayBuffer"))},"isDataView.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isArrayBuffer.js",{default(e){o=e}},2),e.link("./_stringTagBug.js",{hasStringTagBug(e){s=e}},3);var a=r("DataView");function u(e){return null!=e&&i(e.getInt8)&&o(e.buffer)}e.exportDefault(s?u:a)},"isFunction.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_setup.js",{root(e){i=e}},1);var o=r("Function"),s=i.document&&i.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof s&&(o=function(e){return"function"==typeof e||!1}),e.exportDefault(o)},"_stringTagBug.js":function e(t,n,e){let r,i;e.export({hasStringTagBug:()=>o,isIE11:()=>s}),e.link("./_setup.js",{supportsDataView(e){r=e}},0),e.link("./_hasObjectTag.js",{default(e){i=e}},1);var o=r&&i(new DataView(new ArrayBuffer(8))),s="undefined"!=typeof Map&&i(new Map)},"_hasObjectTag.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Object"))},"isArray.js":function e(t,n,e){let r,i;e.link("./_setup.js",{nativeIsArray(e){r=e}},0),e.link("./_tagTester.js",{default(e){i=e}},1),e.exportDefault(r||i("Array"))},"isArguments.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1);var o=r("Arguments");!function(){o(arguments)||(o=function(e){return i(e,"callee")})}(),e.exportDefault(o)},"_has.js":function e(t,n,e){let r;function i(e,t){return null!=e&&r.call(e,t)}e.export({default:()=>i}),e.link("./_setup.js",{hasOwnProperty(e){r=e}},0)},"isFinite.js":function e(t,n,e){let r,i;function o(e){return!i(e)&&r(e)&&!isNaN(parseFloat(e))}e.export({default:()=>o}),e.link("./_setup.js",{_isFinite(e){r=e}},0),e.link("./isSymbol.js",{default(e){i=e}},1)},"isNaN.js":function e(t,n,e){let r,i;function o(e){return i(e)&&r(e)}e.export({default:()=>o}),e.link("./_setup.js",{_isNaN(e){r=e}},0),e.link("./isNumber.js",{default(e){i=e}},1)},"isTypedArray.js":function e(t,n,e){let r,i,o,s,a,u;e.link("./_setup.js",{supportsArrayBuffer(e){r=e},nativeIsView(e){i=e},toString(e){o=e}},0),e.link("./isDataView.js",{default(e){s=e}},1),e.link("./constant.js",{default(e){a=e}},2),e.link("./_isBufferLike.js",{default(e){u=e}},3);var f=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function c(e){return i?i(e)&&!s(e):u(e)&&f.test(o.call(e))}e.exportDefault(r?c:a(!1))},"constant.js":function e(t,n,e){function r(e){return function(){return e}}e.export({default:()=>r})},"_isBufferLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getByteLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createSizePropertyCheck.js":function e(t,n,e){let r;function i(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=r}}e.export({default:()=>i}),e.link("./_setup.js",{MAX_ARRAY_INDEX(e){r=e}},0)},"_getByteLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("byteLength"))},"_shallowProperty.js":function e(t,n,e){function r(e){return function(t){return null==t?void 0:t[e]}}e.export({default:()=>r})},"isEmpty.js":function e(t,n,e){let r,i,o,s,a;function u(e){if(null==e)return!0;var t=r(e);return"number"==typeof t&&(i(e)||o(e)||s(e))?0===t:0===r(a(e))}e.export({default:()=>u}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./isString.js",{default(e){o=e}},2),e.link("./isArguments.js",{default(e){s=e}},3),e.link("./keys.js",{default(e){a=e}},4)},"_getLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("length"))},"keys.js":function e(t,n,e){let r,i,o,s,a;function u(e){if(!r(e))return[];if(i)return i(e);var t=[];for(var n in e)s(e,n)&&t.push(n);return o&&a(e,t),t}e.export({default:()=>u}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeKeys(e){i=e},hasEnumBug(e){o=e}},1),e.link("./_has.js",{default(e){s=e}},2),e.link("./_collectNonEnumProps.js",{default(e){a=e}},3)},"_collectNonEnumProps.js":function e(t,n,e){let r,i,o,s;function a(e){for(var t={},n=e.length,r=0;ru}),e.link("./_setup.js",{nonEnumerableProps(e){r=e},ObjProto(e){i=e}},0),e.link("./isFunction.js",{default(e){o=e}},1),e.link("./_has.js",{default(e){s=e}},2)},"isMatch.js":function e(t,n,e){let r;function i(e,t){var n=r(t),i=n.length;if(null==e)return!i;for(var o=Object(e),s=0;si}),e.link("./keys.js",{default(e){r=e}},0)},"isEqual.js":function e(t,n,e){let r,i,o,s,a,u,f,c,l,h,d;e.export({default:()=>m}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_setup.js",{toString(e){i=e},SymbolProto(e){o=e}},1),e.link("./_getByteLength.js",{default(e){s=e}},2),e.link("./isTypedArray.js",{default(e){a=e}},3),e.link("./isFunction.js",{default(e){u=e}},4),e.link("./_stringTagBug.js",{hasStringTagBug(e){f=e}},5),e.link("./isDataView.js",{default(e){c=e}},6),e.link("./keys.js",{default(e){l=e}},7),e.link("./_has.js",{default(e){h=e}},8),e.link("./_toBufferView.js",{default(e){d=e}},9);var p="[object DataView]";function g(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&b(e,t,n,r)}function b(e,t,n,m){e instanceof r&&(e=e._wrapped),t instanceof r&&(t=t._wrapped);var v=i.call(e);if(v!==i.call(t))return!1;if(f&&"[object Object]"==v&&c(e)){if(!c(t))return!1;v=p}switch(v){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return o.valueOf.call(e)===o.valueOf.call(t);case"[object ArrayBuffer]":case p:return b(d(e),d(t),n,m)}var y="[object Array]"===v;if(!y&&a(e)){var _;if(s(e)!==s(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;y=!0}if(!y){if("object"!=typeof e||"object"!=typeof t)return!1;var w=e.constructor,k=t.constructor;if(w!==k&&!(u(w)&&w instanceof w&&u(k)&&k instanceof k)&&"constructor"in e&&"constructor"in t)return!1}m=m||[];for(var j=(n=n||[]).length;j--;)if(n[j]===e)return m[j]===t;if(n.push(e),m.push(t),y){if((j=e.length)!==t.length)return!1;for(;j--;)if(!g(e[j],t[j],n,m))return!1}else{var x=l(e),S;if(j=x.length,l(t).length!==j)return!1;for(;j--;)if(S=x[j],!h(t,S)||!g(e[S],t[S],n,m))return!1}return n.pop(),m.pop(),!0}function m(e,t){return g(e,t)}},"underscore.js":function e(t,n,e){let r;function i(e){return e instanceof i?e:this instanceof i?void(this._wrapped=e):new i(e)}e.export({default:()=>i}),e.link("./_setup.js",{VERSION(e){r=e}},0),i.VERSION=r,i.prototype.value=function(){return this._wrapped},i.prototype.valueOf=i.prototype.toJSON=i.prototype.value,i.prototype.toString=function(){return String(this._wrapped)}},"_toBufferView.js":function e(t,n,e){let r;function i(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,r(e))}e.export({default:()=>i}),e.link("./_getByteLength.js",{default(e){r=e}},0)},"isMap.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},mapMethods(e){s=e}},2),e.exportDefault(i?o(s):r("Map"))},"_methodFingerprint.js":function e(t,n,e){let r,i,o;function s(e){var t=r(e);return function(n){if(null==n)return!1;var s=o(n);if(r(s))return!1;for(var u=0;us,mapMethods:()=>l,weakMapMethods:()=>h,setMethods:()=>d}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./allKeys.js",{default(e){o=e}},2);var a="forEach",u="has",f=["clear","delete"],c=["get","has","set"],l=f.concat(a,c),h=f.concat(c),d=["add"].concat(f,a,"has")},"allKeys.js":function e(t,n,e){let r,i,o;function s(e){if(!r(e))return[];var t=[];for(var n in e)t.push(n);return i&&o(e,t),t}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{hasEnumBug(e){i=e}},1),e.link("./_collectNonEnumProps.js",{default(e){o=e}},2)},"isWeakMap.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},weakMapMethods(e){s=e}},2),e.exportDefault(i?o(s):r("WeakMap"))},"isSet.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},setMethods(e){s=e}},2),e.exportDefault(i?o(s):r("Set"))},"isWeakSet.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("WeakSet"))},"values.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"pairs.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"invert.js":function e(t,n,e){let r;function i(e){for(var t={},n=r(e),i=0,o=n.length;ii}),e.link("./keys.js",{default(e){r=e}},0)},"functions.js":function e(t,n,e){let r;function i(e){var t=[];for(var n in e)r(e[n])&&t.push(n);return t.sort()}e.export({default:()=>i}),e.link("./isFunction.js",{default(e){r=e}},0)},"extend.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createAssigner.js":function e(t,n,e){function r(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;ir})},"extendOwn.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"defaults.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i,!0))},"create.js":function e(t,n,e){let r,i;function o(e,t){var n=r(e);return t&&i(n,t),n}e.export({default:()=>o}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./extendOwn.js",{default(e){i=e}},1)},"_baseCreate.js":function e(t,n,e){let r,i;function o(){return function(){}}function s(e){if(!r(e))return{};if(i)return i(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeCreate(e){i=e}},1)},"clone.js":function e(t,n,e){let r,i,o;function s(e){return r(e)?i(e)?e.slice():o({},e):e}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./extend.js",{default(e){o=e}},2)},"tap.js":function e(t,n,e){function r(e,t){return t(e),e}e.export({default:()=>r})},"get.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s=i(e,r(t));return o(s)?n:s}e.export({default:()=>s}),e.link("./_toPath.js",{default(e){r=e}},0),e.link("./_deepGet.js",{default(e){i=e}},1),e.link("./isUndefined.js",{default(e){o=e}},2)},"_toPath.js":function e(t,n,e){let r;function i(e){return r.toPath(e)}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./toPath.js")},"toPath.js":function e(t,n,e){let r,i;function o(e){return i(e)?e:[e]}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),r.toPath=o},"_deepGet.js":function e(t,n,e){function r(e,t){for(var n=t.length,r=0;rr})},"has.js":function e(t,n,e){let r,i;function o(e,t){for(var n=(t=i(t)).length,o=0;oo}),e.link("./_has.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"mapObject.js":function e(t,n,e){let r,i;function o(e,t,n){t=r(t,n);for(var o=i(e),s=o.length,a={},u=0;uo}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"_cb.js":function e(t,n,e){let r,i,o;function s(e,t,n){return r.iteratee!==o?r.iteratee(e,t):i(e,t,n)}e.export({default:()=>s}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),e.link("./iteratee.js",{default(e){o=e}},2)},"_baseIteratee.js":function e(t,n,e){let r,i,o,s,a,u,f;function c(e,t,n){return null==e?r:i(e)?f(e,t,n):o(e)&&!s(e)?a(e):u(e)}e.export({default:()=>c}),e.link("./identity.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isObject.js",{default(e){o=e}},2),e.link("./isArray.js",{default(e){s=e}},3),e.link("./matcher.js",{default(e){a=e}},4),e.link("./property.js",{default(e){u=e}},5),e.link("./_optimizeCb.js",{default(e){f=e}},6)},"identity.js":function e(t,n,e){function r(e){return e}e.export({default:()=>r})},"matcher.js":function e(t,n,e){let r,i;function o(e){return e=r({},e),function(t){return i(t,e)}}e.export({default:()=>o}),e.link("./extendOwn.js",{default(e){r=e}},0),e.link("./isMatch.js",{default(e){i=e}},1)},"property.js":function e(t,n,e){let r,i;function o(e){return e=i(e),function(t){return r(t,e)}}e.export({default:()=>o}),e.link("./_deepGet.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"_optimizeCb.js":function e(t,n,e){function r(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}e.export({default:()=>r})},"iteratee.js":function e(t,n,e){let r,i;function o(e,t){return i(e,t,1/0)}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),r.iteratee=o},"noop.js":function e(t,n,e){function r(){}e.export({default:()=>r})},"propertyOf.js":function e(t,n,e){let r,i;function o(e){return null==e?r:function(t){return i(e,t)}}e.export({default:()=>o}),e.link("./noop.js",{default(e){r=e}},0),e.link("./get.js",{default(e){i=e}},1)},"times.js":function e(t,n,e){let r;function i(e,t,n){var i=Array(Math.max(0,e));t=r(t,n,1);for(var o=0;oi}),e.link("./_optimizeCb.js",{default(e){r=e}},0)},"random.js":function e(t,n,e){function r(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}e.export({default:()=>r})},"now.js":function e(t,n,e){e.exportDefault(Date.now||function(){return(new Date).getTime()})},"escape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createEscaper.js":function e(t,n,e){let r;function i(e){var t=function(t){return e[t]},n="(?:"+r(e).join("|")+")",i=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(o,t):e}}e.export({default:()=>i}),e.link("./keys.js",{default(e){r=e}},0)},"_escapeMap.js":function e(t,n,e){e.exportDefault({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"})},"unescape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_unescapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_unescapeMap.js":function e(t,n,e){let r,i;e.link("./invert.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"templateSettings.js":function e(t,n,e){let r;e.link("./underscore.js",{default(e){r=e}},0),e.exportDefault(r.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g})},"template.js":function e(t,n,e){let r,i;e.export({default:()=>c}),e.link("./defaults.js",{default(e){r=e}},0),e.link("./underscore.js",{default(e){i=e}},1),e.link("./templateSettings.js");var o=/(.)^/,s={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},a=/\\|'|\r|\n|\u2028|\u2029/g;function u(e){return"\\"+s[e]}var f=/^\s*(\w|\$)+\s*$/;function c(e,t,n){!t&&n&&(t=n),t=r({},t,i.templateSettings);var s=RegExp([(t.escape||o).source,(t.interpolate||o).source,(t.evaluate||o).source].join("|")+"|$","g"),c=0,l="__p+='";e.replace(s,(function(t,n,r,i,o){return l+=e.slice(c,o).replace(a,u),c=o+t.length,n?l+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?l+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(l+="';\n"+i+"\n__p+='"),t})),l+="';\n";var h=t.variable,d;if(h){if(!f.test(h))throw new Error("variable is not a bare identifier: "+h)}else l="with(obj||{}){\n"+l+"}\n",h="obj";l="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+l+"return __p;\n";try{d=new Function(h,"_",l)}catch(g){throw g.source=l,g}var p=function(e){return d.call(this,e,i)};return p.source="function("+h+"){\n"+l+"}",p}},"result.js":function e(t,n,e){let r,i;function o(e,t,n){var o=(t=i(t)).length;if(!o)return r(n)?n.call(e):n;for(var s=0;so}),e.link("./isFunction.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"uniqueId.js":function e(t,n,e){e.export({default:()=>i});var r=0;function i(e){var t=++r+"";return e?e+t:t}},"chain.js":function e(t,n,e){let r;function i(e){var t=r(e);return t._chain=!0,t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"partial.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_executeBound.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){o=e}},2);var s=r((function(e,t){var n=s.placeholder,r=function(){for(var o=0,s=t.length,a=Array(s),u=0;uo}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./isObject.js",{default(e){i=e}},1)},"bind.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_executeBound.js",{default(e){o=e}},2),e.exportDefault(r((function(e,t,n){if(!i(e))throw new TypeError("Bind must be called on a function");var s=r((function(r){return o(e,s,t,this,n.concat(r))}));return s})))},"bindAll.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./bind.js",{default(e){o=e}},2),e.exportDefault(r((function(e,t){var n=(t=i(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=o(e[r],e)}return e})))},"_flatten.js":function e(t,n,e){let r,i,o,s;function a(e,t,n,u){if(u=u||[],t||0===t){if(t<=0)return u.concat(e)}else t=1/0;for(var f=u.length,c=0,l=r(e);c1)a(h,t-1,n,u),f=u.length;else for(var d=0,p=h.length;da}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./isArray.js",{default(e){o=e}},2),e.link("./isArguments.js",{default(e){s=e}},3)},"_isArrayLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"memoize.js":function e(t,n,e){let r;function i(e,t){var n=function(i){var o=n.cache,s=""+(t?t.apply(this,arguments):i);return r(o,s)||(o[s]=e.apply(this,arguments)),o[s]};return n.cache={},n}e.export({default:()=>i}),e.link("./_has.js",{default(e){r=e}},0)},"delay.js":function e(t,n,e){let r;e.link("./restArguments.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})))},"defer.js":function e(t,n,e){let r,i,o;e.link("./partial.js",{default(e){r=e}},0),e.link("./delay.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){o=e}},2),e.exportDefault(r(i,o,1))},"throttle.js":function e(t,n,e){let r;function i(e,t,n){var i,o,s,a,u=0;n||(n={});var f=function(){u=!1===n.leading?0:r(),i=null,a=e.apply(o,s),i||(o=s=null)},c=function(){var c=r();u||!1!==n.leading||(u=c);var l=t-(c-u);return o=this,s=arguments,l<=0||l>t?(i&&(clearTimeout(i),i=null),u=c,a=e.apply(o,s),i||(o=s=null)):i||!1===n.trailing||(i=setTimeout(f,l)),a};return c.cancel=function(){clearTimeout(i),u=0,i=o=s=null},c}e.export({default:()=>i}),e.link("./now.js",{default(e){r=e}},0)},"debounce.js":function e(t,n,e){let r,i;function o(e,t,n){var o,s,a,u,f,c=function(){var r=i()-s;t>r?o=setTimeout(c,t-r):(o=null,n||(u=e.apply(f,a)),o||(a=f=null))},l=r((function(r){return f=this,a=r,s=i(),o||(o=setTimeout(c,t),n&&(u=e.apply(f,a))),u}));return l.cancel=function(){clearTimeout(o),o=a=f=null},l}e.export({default:()=>o}),e.link("./restArguments.js",{default(e){r=e}},0),e.link("./now.js",{default(e){i=e}},1)},"wrap.js":function e(t,n,e){let r;function i(e,t){return r(t,e)}e.export({default:()=>i}),e.link("./partial.js",{default(e){r=e}},0)},"negate.js":function e(t,n,e){function r(e){return function(){return!e.apply(this,arguments)}}e.export({default:()=>r})},"compose.js":function e(t,n,e){function r(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}e.export({default:()=>r})},"after.js":function e(t,n,e){function r(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}e.export({default:()=>r})},"before.js":function e(t,n,e){function r(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}e.export({default:()=>r})},"once.js":function e(t,n,e){let r,i;e.link("./partial.js",{default(e){r=e}},0),e.link("./before.js",{default(e){i=e}},1),e.exportDefault(r(i,2))},"findKey.js":function e(t,n,e){let r,i;function o(e,t,n){t=r(t,n);for(var o=i(e),s,a=0,u=o.length;ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"findIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createPredicateIndexFinder.js":function e(t,n,e){let r,i;function o(e){return function(t,n,o){n=r(n,o);for(var s=i(t),a=e>0?0:s-1;a>=0&&ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"findLastIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"sortedIndex.js":function e(t,n,e){let r,i;function o(e,t,n,o){for(var s=(n=r(n,o,1))(t),a=0,u=i(e);ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"indexOf.js":function e(t,n,e){let r,i,o;e.link("./sortedIndex.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./_createIndexFinder.js",{default(e){o=e}},2),e.exportDefault(o(1,i,r))},"_createIndexFinder.js":function e(t,n,e){let r,i,o;function s(e,t,n){return function(s,a,u){var f=0,c=r(s);if("number"==typeof u)e>0?f=u>=0?u:Math.max(u+c,f):c=u>=0?Math.min(u+1,c):u+c+1;else if(n&&u&&c)return s[u=n(s,a)]===a?u:-1;if(a!=a)return(u=t(i.call(s,f,c),o))>=0?u+f:-1;for(u=e>0?f:c-1;u>=0&&us}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isNaN.js",{default(e){o=e}},2)},"lastIndexOf.js":function e(t,n,e){let r,i;e.link("./findLastIndex.js",{default(e){r=e}},0),e.link("./_createIndexFinder.js",{default(e){i=e}},1),e.exportDefault(i(-1,r))},"find.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s,a=(r(e)?i:o)(e,t,n);if(void 0!==a&&-1!==a)return e[a]}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./findKey.js",{default(e){o=e}},2)},"findWhere.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./find.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"each.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s,a;if(t=r(t,n),i(e))for(s=0,a=e.length;ss}),e.link("./_optimizeCb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"map.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=Array(a),f=0;fs}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"reduce.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createReduce.js":function e(t,n,e){let r,i,o;function s(e){var t=function(t,n,o,s){var a=!r(t)&&i(t),u=(a||t).length,f=e>0?0:u-1;for(s||(o=t[a?a[f]:f],f+=e);f>=0&&f=3;return t(e,o(n,i,4),r,s)}}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){o=e}},2)},"reduceRight.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"filter.js":function e(t,n,e){let r,i;function o(e,t,n){var o=[];return t=r(t,n),i(e,(function(e,n,r){t(e,n,r)&&o.push(e)})),o}e.export({default:()=>o}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"reject.js":function e(t,n,e){let r,i,o;function s(e,t,n){return r(e,i(o(t)),n)}e.export({default:()=>s}),e.link("./filter.js",{default(e){r=e}},0),e.link("./negate.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2)},"every.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"some.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"contains.js":function e(t,n,e){let r,i,o;function s(e,t,n,s){return r(e)||(e=i(e)),("number"!=typeof n||s)&&(n=0),o(e,t,n)>=0}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./indexOf.js",{default(e){o=e}},2)},"invoke.js":function e(t,n,e){let r,i,o,s,a;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./map.js",{default(e){o=e}},2),e.link("./_deepGet.js",{default(e){s=e}},3),e.link("./_toPath.js",{default(e){a=e}},4),e.exportDefault(r((function(e,t,n){var r,u;return i(t)?u=t:(t=a(t),r=t.slice(0,-1),t=t[t.length-1]),o(e,(function(e){var i=u;if(!i){if(r&&r.length&&(e=s(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))})))},"pluck.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./map.js",{default(e){r=e}},0),e.link("./property.js",{default(e){i=e}},1)},"where.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./filter.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"max.js":function e(t,n,e){let r,i,o,s;function a(e,t,n){var a=-1/0,u=-1/0,f,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,h=(e=r(e)?e:i(e)).length;la&&(a=f);else t=o(t,n),s(e,(function(e,n,r){((c=t(e,n,r))>u||c===-1/0&&a===-1/0)&&(a=e,u=c)}));return a}e.export({default:()=>a}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2),e.link("./each.js",{default(e){s=e}},3)},"min.js":function e(t,n,e){let r,i,o,s;function a(e,t,n){var a=1/0,u=1/0,f,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,h=(e=r(e)?e:i(e)).length;la}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2),e.link("./each.js",{default(e){s=e}},3)},"shuffle.js":function e(t,n,e){let r;function i(e){return r(e,1/0)}e.export({default:()=>i}),e.link("./sample.js",{default(e){r=e}},0)},"sample.js":function e(t,n,e){let r,i,o,s,a;function u(e,t,n){if(null==t||n)return r(e)||(e=i(e)),e[s(e.length-1)];var u=a(e),f=o(u);t=Math.max(Math.min(t,f),0);for(var c=f-1,l=0;lu}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){o=e}},2),e.link("./random.js",{default(e){s=e}},3),e.link("./toArray.js",{default(e){a=e}},4)},"toArray.js":function e(t,n,e){let r,i,o,s,a,u,f;e.export({default:()=>l}),e.link("./isArray.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isString.js",{default(e){o=e}},2),e.link("./_isArrayLike.js",{default(e){s=e}},3),e.link("./map.js",{default(e){a=e}},4),e.link("./identity.js",{default(e){u=e}},5),e.link("./values.js",{default(e){f=e}},6);var c=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function l(e){return e?r(e)?i.call(e):o(e)?e.match(c):s(e)?a(e,u):f(e):[]}},"sortBy.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s=0;return t=r(t,n),i(o(e,(function(e,n,r){return{value:e,index:s++,criteria:t(e,n,r)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(ns}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./pluck.js",{default(e){i=e}},1),e.link("./map.js",{default(e){o=e}},2)},"groupBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n].push(t):e[n]=[t]})))},"_group.js":function e(t,n,e){let r,i;function o(e,t){return function(n,o,s){var a=t?[[],[]]:{};return o=r(o,s),i(n,(function(t,r){var i=o(t,r,n);e(a,t,i)})),a}}e.export({default:()=>o}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"indexBy.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n]=t})))},"countBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n]++:e[n]=1})))},"partition.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n?0:1].push(t)}),!0))},"size.js":function e(t,n,e){let r,i;function o(e){return null==e?0:r(e)?e.length:i(e).length}e.export({default:()=>o}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"pick.js":function e(t,n,e){let r,i,o,s,a,u;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){o=e}},2),e.link("./allKeys.js",{default(e){s=e}},3),e.link("./_keyInObj.js",{default(e){a=e}},4),e.link("./_flatten.js",{default(e){u=e}},5),e.exportDefault(r((function(e,t){var n={},r=t[0];if(null==e)return n;i(r)?(t.length>1&&(r=o(r,t[1])),t=s(e)):(r=a,t=u(t,!1,!1),e=Object(e));for(var f=0,c=t.length;fr})},"omit.js":function e(t,n,e){let r,i,o,s,a,u,f;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./negate.js",{default(e){o=e}},2),e.link("./map.js",{default(e){s=e}},3),e.link("./_flatten.js",{default(e){a=e}},4),e.link("./contains.js",{default(e){u=e}},5),e.link("./pick.js",{default(e){f=e}},6),e.exportDefault(r((function(e,t){var n=t[0],r;return i(n)?(n=o(n),t.length>1&&(r=t[1])):(t=s(a(t,!1,!1),String),n=function(e,n){return!u(t,n)}),f(e,n,r)})))},"first.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:r(e,e.length-t)}e.export({default:()=>i}),e.link("./initial.js",{default(e){r=e}},0)},"initial.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"last.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:r(e,Math.max(0,e.length-t))}e.export({default:()=>i}),e.link("./rest.js",{default(e){r=e}},0)},"rest.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,null==t||n?1:t)}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"compact.js":function e(t,n,e){let r;function i(e){return r(e,Boolean)}e.export({default:()=>i}),e.link("./filter.js",{default(e){r=e}},0)},"flatten.js":function e(t,n,e){let r;function i(e,t){return r(e,t,!1)}e.export({default:()=>i}),e.link("./_flatten.js",{default(e){r=e}},0)},"without.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./difference.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t){return i(e,t)})))},"difference.js":function e(t,n,e){let r,i,o,s;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./filter.js",{default(e){o=e}},2),e.link("./contains.js",{default(e){s=e}},3),e.exportDefault(r((function(e,t){return t=i(t,!0,!0),o(e,(function(e){return!s(t,e)}))})))},"uniq.js":function e(t,n,e){let r,i,o,s;function a(e,t,n,a){r(t)||(a=n,n=t,t=!1),null!=n&&(n=i(n,a));for(var u=[],f=[],c=0,l=o(e);ca}),e.link("./isBoolean.js",{default(e){r=e}},0),e.link("./_cb.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){o=e}},2),e.link("./contains.js",{default(e){s=e}},3)},"union.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./uniq.js",{default(e){i=e}},1),e.link("./_flatten.js",{default(e){o=e}},2),e.exportDefault(r((function(e){return i(o(e,!0,!0))})))},"intersection.js":function e(t,n,e){let r,i;function o(e){for(var t=[],n=arguments.length,o=0,s=r(e);oo}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./contains.js",{default(e){i=e}},1)},"unzip.js":function e(t,n,e){let r,i,o;function s(e){for(var t=e&&r(e,i).length||0,n=Array(t),s=0;ss}),e.link("./max.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.link("./pluck.js",{default(e){o=e}},2)},"zip.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./unzip.js",{default(e){i=e}},1),e.exportDefault(r(i))},"object.js":function e(t,n,e){let r;function i(e,t){for(var n={},i=0,o=r(e);ii}),e.link("./_getLength.js",{default(e){r=e}},0)},"range.js":function e(t,n,e){function r(e,t,n){null==t&&(t=e||0,e=0),n||(n=tr})},"chunk.js":function e(t,n,e){let r;function i(e,t){if(null==t||t<1)return[];for(var n=[],i=0,o=e.length;ii}),e.link("./_setup.js",{slice(e){r=e}},0)},"mixin.js":function e(t,n,e){let r,i,o,s,a;function u(e){return i(o(e),(function(t){var n=r[t]=e[t];r.prototype[t]=function(){var e=[this._wrapped];return s.apply(e,arguments),a(this,n.apply(r,e))}})),r}e.export({default:()=>u}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./functions.js",{default(e){o=e}},2),e.link("./_setup.js",{push(e){s=e}},3),e.link("./_chainResult.js",{default(e){a=e}},4)},"_chainResult.js":function e(t,n,e){let r;function i(e,t){return e._chain?r(t).chain():t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"underscore-array-methods.js":function e(t,n,e){let r,i,o,s;e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./_setup.js",{ArrayProto(e){o=e}},2),e.link("./_chainResult.js",{default(e){s=e}},3),i(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=o[e];r.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),s(this,n)}})),i(["concat","join","slice"],(function(e){var t=o[e];r.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),s(this,e)}})),e.exportDefault(r)}}}}},cachers:{"package.json":function e(t,n,e){e.exports={name:"@steedos/cachers",version:"2.5.15-beta.10",main:"lib/index.js"}},lib:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getCacherNames=n.clearCacher=n.getCacher=void 0;var r={},i=t("./memory"),o=t("./memory-lru"),s=function(e,t){return r[e]||(e.startsWith("lru.")?r[e]=new o.MemoryLRUCacher(t):r[e]=new i.MemoryCacher),r[e]};n.getCacher=s;var a=function(e){r[e]&&r[e].clear()};n.clearCacher=a;var u=function(){return Object.keys(r)};n.getCacherNames=u},"memory.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryCacher=void 0;var r=t("lodash"),i=function(){function e(){this.cache={}}return e.prototype.get=function(e){return this.cache[e]},e.prototype.delete=function(e){delete this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.clear=function(){this.cache={}},e.prototype.keys=function(){return(0,r.keys)(this.cache)},e.prototype.values=function(){return(0,r.values)(this.cache)},e}();n.MemoryCacher=i},"memory-lru.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryLRUCacher=void 0;var r=t("lodash"),i=t("lru-cache"),o={max:5e3,ttl:null,keygen:null,maxParamsLength:null},s=function(){function e(e){this.opts=(0,r.defaultsDeep)(e,o),this.cache=new i({max:this.opts.max,maxAge:this.opts.ttl?1e3*this.opts.ttl:null,updateAgeOnGet:!!this.opts.ttl})}return e.prototype.get=function(e){return this.cache.get(e)},e.prototype.set=function(e,t,n){return this.cache.set(e,t,n)},e.prototype.delete=function(e){return this.cache.delete(e)},e.prototype.clear=function(){return this.cache.clear()},e.prototype.keys=function(){return this.cache.keys()},e.prototype.values=function(){return this.cache.values()},e}();n.MemoryLRUCacher=s}},node_modules:{"lru-cache":{"package.json":function e(t,n,e){e.exports={name:"lru-cache",version:"7.14.1",main:"index.js"}},"index.js":function e(t,n,e){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,i="function"==typeof AbortController,o=i?AbortController:class e{constructor(){this.signal=new u}abort(){this.signal.dispatchEvent("abort")}},s="function"==typeof AbortSignal,a="function"==typeof o.AbortSignal,u=s?AbortSignal:a?o.AbortController:class e{constructor(){this.aborted=!1,this._listeners=[]}dispatchEvent(e){if("abort"===e){this.aborted=!0;const t={type:e,target:this};this.onabort(t),this._listeners.forEach(e=>e(t),this)}}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},f=new Set,c=(e,t)=>{const n=`LRU_CACHE_OPTION_${e}`;p(n)&&g(n,`${e} option`,`options.${t}`,_)},l=(e,t)=>{const n=`LRU_CACHE_METHOD_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} method`,`cache.${t}()`,i)}},h=(e,t)=>{const n=`LRU_CACHE_PROPERTY_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} property`,`cache.${t}`,i)}},d=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},p=e=>!f.has(e),g=(e,t,n,r)=>{f.add(e);const i=`The ${t} is deprecated. Please use ${n} instead.`;d(i,"DeprecationWarning",e,r)},b=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),m=e=>b(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?v:null:null;class v extends Array{constructor(e){super(e),this.fill(0)}}class y{constructor(e){if(0===e)return[];const t=m(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class _{constructor(e={}){const{max:t=0,ttl:n,ttlResolution:r=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:s,allowStale:a,dispose:u,disposeAfter:l,noDisposeOnSet:h,noUpdateTTL:g,maxSize:v=0,maxEntrySize:w=0,sizeCalculation:k,fetchMethod:j,fetchContext:x,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:D}=e,{length:E,maxAge:A,stale:C}=e instanceof _?{}:e;if(0!==t&&!b(t))throw new TypeError("max option must be a nonnegative integer");const M=t?m(t):Array;if(!M)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=v,this.maxEntrySize=w||this.maxSize,this.sizeCalculation=k||E,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=j||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=x,!this.fetchMethod&&void 0!==x)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new M(t),this.prev=new M(t),this.head=0,this.tail=0,this.free=new y(t),this.initialFill=1,this.size=0,"function"==typeof u&&(this.dispose=u),"function"==typeof l?(this.disposeAfter=l,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!S,0!==this.maxEntrySize){if(0!==this.maxSize&&!b(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!b(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!a||!!C,this.noDeleteOnStaleGet=!!D,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!s,this.ttlResolution=b(r)||0===r?r:1,this.ttlAutopurge=!!i,this.ttl=n||A||0,this.ttl){if(!b(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";if(p(e)){f.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";d(t,"UnboundedCacheWarning",e,_)}}C&&c("stale","allowStale"),A&&c("maxAge","ttl"),E&&c("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new v(this.max),this.starts=new v(this.max),this.setItemTTL=(e,t,n=r.now())=>{if(this.starts[e]=0!==t?n:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const n=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);n.unref&&n.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0};let e=0;const t=()=>{const t=r.now();if(this.ttlResolution>0){e=t;const n=setTimeout(()=>e=0,this.ttlResolution);n.unref&&n.unref()}return t};this.getRemainingTTL=n=>{const r=this.keyMap.get(n);return void 0===r?0:0===this.ttls[r]||0===this.starts[r]?1/0:this.starts[r]+this.ttls[r]-(e||t())},this.isStale=n=>0!==this.ttls[n]&&0!==this.starts[n]&&(e||t())-this.starts[n]>this.ttls[n]}updateItemAge(e){}setItemTTL(e,t,n){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new v(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,n,r)=>{if(this.isBackgroundFetch(t))return 0;if(!b(n)){if(!r)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!b(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.addItemSize=(e,t)=>{if(this.sizes[e]=t,this.maxSize){const t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e]}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,n,r){if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const n of this.indexes())if(e(this.valList[n],this.keyList[n],this))return this.get(this.keyList[n],t)}forEach(e,t=this){for(const n of this.indexes())e.call(t,this.valList[n],this.keyList[n],this)}rforEach(e,t=this){for(const n of this.rindexes())e.call(t,this.valList[n],this.keyList[n],this)}get prune(){return l("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes({allowStale:!0})){const n=this.keyList[t],i=this.valList[t],o=this.isBackgroundFetch(i)?i.__staleWhileFetching:i,s={value:o};if(this.ttls){s.ttl=this.ttls[t];const e=r.now()-this.starts[t];s.start=Math.floor(Date.now()-e)}this.sizes&&(s.size=this.sizes[t]),e.unshift([n,s])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}dispose(e,t,n){}set(e,t,{ttl:n=this.ttl,start:r,noDisposeOnSet:i=this.noDisposeOnSet,size:o=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(o=this.requireSize(e,t,o,s),this.maxEntrySize&&o>this.maxEntrySize)return this.delete(e),this;let u=0===this.size?void 0:this.keyMap.get(e);if(void 0===u)u=this.newIndex(),this.keyList[u]=e,this.valList[u]=t,this.keyMap.set(e,u),this.next[this.tail]=u,this.prev[u]=this.tail,this.tail=u,this.size++,this.addItemSize(u,o),a=!1;else{const n=this.valList[u];t!==n&&(this.isBackgroundFetch(n)?n.__abortController.abort():i||(this.dispose(n,e,"set"),this.disposeAfter&&this.disposed.push([n,e,"set"])),this.removeItemSize(u),this.valList[u]=t,this.addItemSize(u,o)),this.moveToTail(u)}if(0===n||0!==this.ttl||this.ttls||this.initializeTTLTracking(),a||this.setItemTTL(u,n,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,n=this.keyList[t],r=this.valList[t];return this.isBackgroundFetch(r)?r.__abortController.abort():(this.dispose(r,n,"evict"),this.disposeAfter&&this.disposed.push([r,n,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(n),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const n=this.keyMap.get(e);return void 0!==n&&!this.isStale(n)&&(t&&this.updateItemAge(n),!0)}peek(e,{allowStale:t=this.allowStale}={}){const n=this.keyMap.get(e);if(void 0!==n&&(t||!this.isStale(n))){const e=this.valList[n];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,n,r){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const s=new o,a={signal:s.signal,options:n,context:r},u=t=>(s.signal.aborted||this.set(e,t,a.options),t),f=r=>{if(this.valList[t]===l){const r=!n.noDeleteOnFetchRejection||void 0===l.__staleWhileFetching;r?this.delete(e):this.valList[t]=l.__staleWhileFetching}if(l.__returned===l)throw r},c=t=>t(this.fetchMethod(e,i,a)),l=new Promise(c).then(u,f);return l.__abortController=s,l.__staleWhileFetching=i,l.__returned=null,void 0===t?(this.set(e,l,a.options),t=this.keyMap.get(e)):this.valList[t]=l,l}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,fetchContext:c=this.fetchContext,forceRefresh:l=!1}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r});const h={allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:i,noDisposeOnSet:o,size:s,sizeCalculation:a,noUpdateTTL:u,noDeleteOnFetchRejection:f};let d=this.keyMap.get(e);if(void 0===d){const t=this.backgroundFetch(e,d,h,c);return t.__returned=t}{const r=this.valList[d];if(this.isBackgroundFetch(r))return t&&void 0!==r.__staleWhileFetching?r.__staleWhileFetching:r.__returned=r;if(!l&&!this.isStale(d))return this.moveToTail(d),n&&this.updateItemAge(d),r;const i=this.backgroundFetch(e,d,h,c);return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i.__returned=i}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet}={}){const i=this.keyMap.get(e);if(void 0!==i){const o=this.valList[i],s=this.isBackgroundFetch(o);if(this.isStale(i))return s?t?o.__staleWhileFetching:void 0:(r||this.delete(e),t?o:void 0);if(s)return;return this.moveToTail(i),n&&this.updateItemAge(i),o}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return l("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const n=this.keyMap.get(e);if(void 0!==n)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(n);const t=this.valList[n];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const n=this.keyList[e];this.dispose(t,n,"delete"),this.disposeAfter&&this.disposed.push([t,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return l("reset","clear"),this.clear}get length(){return h("length","size"),this.size}static get AbortController(){return o}static get AbortSignal(){return u}}e.exports=_}}}}},tslib:{"package.json":function e(t,n,e){e.exports={name:"tslib",version:"2.3.1",module:"tslib.es6.js",main:"tslib.js"}},"tslib.es6.js":function e(t,n,e){e.export({__extends:()=>i,__assign:()=>o,__rest:()=>s,__decorate:()=>a,__param:()=>u,__metadata:()=>f,__awaiter:()=>c,__generator:()=>l,__createBinding:()=>h,__exportStar:()=>d,__values:()=>p,__read:()=>g,__spread:()=>b,__spreadArrays:()=>m,__spreadArray:()=>v,__await:()=>y,__asyncGenerator:()=>_,__asyncDelegator:()=>w,__asyncValues:()=>k,__makeTemplateObject:()=>j,__importStar:()=>S,__importDefault:()=>D,__classPrivateFieldGet:()=>E,__classPrivateFieldSet:()=>A}); +if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,r=this,i;return e(this).one("bsTransitionEnd",(function(){n=!0})),setTimeout((function(){n||e(r).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};function r(t){return this.each((function(){var r=e(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),"string"==typeof t&&i[t].call(r)}))}n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.close=function(t){var r=e(this),i=r.attr("data-target");i||(i=(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var o=e(document).find(i);function s(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=r.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",s).emulateTransitionEnd(n.TRANSITION_DURATION):s())};var i=e.fn.alert;e.fn.alert=r,e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.isLoading=!1};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.button"),o="object"==typeof n&&n;i||r.data("bs.button",i=new t(this,o)),"toggle"==n?i.toggle():n&&i.setState(n)}))}t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var n="disabled",r=this.$element,i=r.is("input")?"val":"html",o=r.data();t+="Text",null==o.resetText&&r.data("resetText",r[i]()),setTimeout(e.proxy((function(){r[i](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n).prop(n,!1))}),this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var r=e.fn.button;e.fn.button=n,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=r,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var r=e(t.target).closest(".btn");n.call(r,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(jQuery),function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.carousel"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n),s="string"==typeof n?n:o.slide;i||r.data("bs.carousel",i=new t(this,o)),"number"==typeof n?i.to(n):s?i[s]():o.interval&&i.pause().cycle()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),r;if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var i,o=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(o)},t.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(n,r){var i=this.$element.find(".item.active"),o=r||this.getItemForDirection(n,i),s=this.interval,a="next"==n?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var f=o[0],c=e.Event("slide.bs.carousel",{relatedTarget:f,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=e(this.$indicators.children()[this.getItemIndex(o)]);l&&l.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:f,direction:a});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(n),"object"==typeof o&&o.length&&o[0].offsetWidth,i.addClass(a),o.addClass(a),i.one("bsTransitionEnd",(function(){o.removeClass([n,a].join(" ")).addClass("active"),i.removeClass(["active",a].join(" ")),u.sliding=!1,setTimeout((function(){u.$element.trigger(h)}),0)})).emulateTransitionEnd(t.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}};var r=e.fn.carousel;e.fn.carousel=n,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=r,this};var i=function(t){var r=e(this),i=r.attr("href");i&&(i=i.replace(/.*(?=#[^\s]+$)/,""));var o=r.attr("data-target")||i,s=e(document).find(o);if(s.hasClass("carousel")){var a=e.extend({},s.data(),r.data()),u=r.attr("data-slide-to");u&&(a.interval=!1),n.call(s,a),u&&s.data("bs.carousel").to(u),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var t=e(this);n.call(t,t.data())}))}))}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.$trigger=e('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var n,r=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(r)}function r(n){return this.each((function(){var r=e(this),i=r.data("bs.collapse"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n);!i&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),i||r.data("bs.collapse",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e;return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(n=i.data("bs.collapse"))&&n.transitioning)){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(r.call(i,"hide"),n||i.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var u=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[s](this.$element[0][u])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=e.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return i.call(this);this.$element[r](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,r){var i=e(r);this.addAriaAndCollapsedClass(n(i),i)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var i=e.fn.collapse;e.fn.collapse=r,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var i=e(this);i.attr("data-target")||t.preventDefault();var o=n(i),s,a=o.data("bs.collapse")?"toggle":i.data();r.call(o,a)}))}(jQuery),function(e){"use strict";var t=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(t){e(t).on("click.bs.dropdown",this.toggle)};function i(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r="#"!==n?e(document).find(n):null;return r&&r.length?r:t.parent()}function o(r){r&&3===r.which||(e(t).remove(),e(n).each((function(){var t=e(this),n=i(t),o={relatedTarget:this};n.hasClass("open")&&(r&&"click"==r.type&&/input|textarea/i.test(r.target.tagName)&&e.contains(n[0],r.target)||(n.trigger(r=e.Event("hide.bs.dropdown",o)),r.isDefaultPrevented()||(t.attr("aria-expanded","false"),n.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))})))}function s(t){return this.each((function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof t&&i[t].call(n)}))}r.VERSION="3.4.1",r.prototype.toggle=function(t){var n=e(this);if(!n.is(".disabled, :disabled")){var r=i(n),s=r.hasClass("open");if(o(),!s){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",o);var a={relatedTarget:this};if(r.trigger(t=e.Event("show.bs.dropdown",a)),t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(e.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var r=e(this);if(t.preventDefault(),t.stopPropagation(),!r.is(".disabled, :disabled")){var o=i(r),s=o.hasClass("open");if(!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(n).trigger("focus"),r.trigger("click");var a=" li:not(.disabled):visible a",u=o.find(".dropdown-menu"+a);if(u.length){var f=u.index(t.target);38==t.which&&f>0&&f--,40==t.which&&fdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},f.prototype.init=function(t,n,r){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var s=i[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",u="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},f.prototype.getDefaults=function(){return f.DEFAULTS},f.prototype.getOptions=function(n){var r=this.$element.data();for(var i in r)r.hasOwnProperty(i)&&-1!==e.inArray(i,t)&&delete r[i];return(n=e.extend({},this.getDefaults(),r,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=u(n.template,n.whiteList,n.sanitizeFn)),n},f.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,(function(e,r){n[e]!=r&&(t[e]=r)})),t},f.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout((function(){"in"==n.hoverState&&n.show()}),n.options.delay.show)}},f.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},f.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout((function(){"out"==n.hoverState&&n.hide()}),n.options.delay.hide)}},f.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var r=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,u=a.test(s);u&&(s=s.replace(a,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?i.appendTo(e(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),l=i[0].offsetWidth,h=i[0].offsetHeight;if(u){var d=s,p=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+h>p.bottom?"top":"top"==s&&c.top-hp.width?"left":"left"==s&&c.left-ls.top+s.height&&(i.top=s.top+s.height-u)}else{var f=t.left-o,c=t.left+o+n;fs.right&&(i.left=s.left+s.width-c)}return i},f.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},f.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},f.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},f.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},f.prototype.enable=function(){this.enabled=!0},f.prototype.disable=function(){this.enabled=!1},f.prototype.toggleEnabled=function(){this.enabled=!this.enabled},f.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},f.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},f.prototype.sanitizeHtml=function(e){return u(e,this.options.whiteList,this.options.sanitizeFn)};var l=e.fn.tooltip;e.fn.tooltip=c,e.fn.tooltip.Constructor=f,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=l,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");function n(n){return this.each((function(){var r=e(this),i=r.data("bs.popover"),o="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.popover",i=new t(this,o)),"string"==typeof n&&i[n]())}))}t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();if(this.options.html){var r=typeof n;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===r&&(n=this.sanitizeHtml(n))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===r?"html":"append"](n)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(n);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var r=e.fn.popover;e.fn.popover=n,e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=r,this}}(jQuery),function(e){"use strict";function t(n,r){this.$body=e(document.body),this.$scrollElement=e(n).is(document.body)?e(window):e(n),this.options=e.extend({},t.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each((function(){var r=e(this),i=r.data("bs.scrollspy"),o="object"==typeof n&&n;i||r.data("bs.scrollspy",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),i=t.data("target")||t.attr("href"),o=/^#./.test(i)&&e(i);return o&&o.length&&o.is(":visible")&&[[o[n]().top+r,i]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.getScrollHeight(),n=this.options.offset+t-this.$scrollElement.height(),r=this.offsets,i=this.targets,o=this.activeTarget,s;if(this.scrollHeight!=t&&this.refresh(),e>=n)return o!=(s=i[i.length-1])&&this.activate(s);if(o&&e=r[s]&&(void 0===r[s+1]||e .active"),s=i&&e.support.transition&&(o.length&&o.hasClass("fade")||!!r.find("> .fade").length);function a(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&s?o.one("bsTransitionEnd",a).emulateTransitionEnd(t.TRANSITION_DURATION):a(),o.removeClass("in")};var r=e.fn.tab;e.fn.tab=n,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=r,this};var i=function(t){t.preventDefault(),n.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(e){"use strict";var t=function(n,r){this.options=e.extend({},t.DEFAULTS,r);var i=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.affix"),o="object"==typeof n&&n;i||r.data("bs.affix",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,n,r){var i=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return i=e-r&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),r=this.options.offset,i=r.top,o=r.bottom,s=Math.max(e(document).height(),e(document.body).height());"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var a=this.getState(s,n,i,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var u="affix"+(a?"-"+a:""),f=e.Event(u+".bs.affix");if(this.$element.trigger(f),f.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-n-o})}};var r=e.fn.affix;e.fn.affix=n,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=r,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var t=e(this),r=t.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),n.call(t,r)}))}))}(jQuery)}}}},fibers:{"package.json":function e(t,n,e){e.exports={name:"fibers",version:"5.0.3",main:"fibers"}},"fibers.js":function e(t,n,e,r,i){if(process.fiberLib)e.exports=process.fiberLib;else{var o=t("fs"),s=t("path"),a=t("detect-libc");Math.random();var u=s.join(i,"bin",process.platform+"-"+process.arch+"-"+process.versions.modules+("linux"===process.platform?"-"+a.family:""),"fibers");try{process.fiberLib=e.exports=t(u).Fiber}catch(c){throw console.error("## There is an issue with `node-fibers` ##\n`"+u+".node` is missing.\n\nTry running this to fix the issue: "+process.execPath+" "+i.replace(" ","\\ ")+"/build"),console.error(c.stack||c.message||c),new Error("Missing binary. See message above.")}f(e.exports)}function f(e){try{var t=process.binding("async_wrap"),n;if(t.asyncIdStackSize instanceof Function)n=t.asyncIdStackSize;else{if(void 0===t.constants.kStackLength)throw new Error("Couldn't figure out how to get async stack size");l=t.constants.kStackLength,n=function(){return t.async_hook_fields[l]}}var r=t.popAsyncContext||t.popAsyncIds,i=t.pushAsyncContext||t.pushAsyncIds,o,s;if(!r||!i)throw new Error("Push/pop do not exist");o=void 0===t.constants.kExecutionAsyncId?t.constants.kCurrentAsyncId:t.constants.kExecutionAsyncId,s=void 0===t.constants.kTriggerAsyncId?t.constants.kCurrentTriggerId:t.constants.kTriggerAsyncId;var a=t.async_id_fields||t.async_uid_fields;function u(){for(var e=n(),t=new Array(e);e>0;--e){var i=a[o];t[e-1]={asyncId:i,triggerId:a[s]},r(i)}return t}function f(e){for(var t=0;t0)i.changeLanguage(e,r);else if(0!=a[u]){a[u]=0;var f=new XMLHttpRequest;f.overrideMimeType("application/json"),f.open("GET",u,!1),f.send(null),200===f.status?a[u]=1:a[u]=-1,n.addResourceBundle(e,s,JSON.parse(f.response)||{}),i.changeLanguage(e,r)}};n.changeLanguage=p;var g=function(e,t,n){return i.format(e,t,n)};n.format=g;var b=function(){return i.languages};n.getLanguages=b;var m=function(e,t){return i.loadLanguages(e,t)};n.loadLanguages=m;var v=function(e,t){return i.loadNamespaces(e,t)};n.loadNamespaces=v;var y=function(e,t){return i.on(e,t)};n.on=y;var _=function(e,t){return i.off(e,t)};n.off=_,r.__exportStar(t("./i18n/i18n"),n),r.__exportStar(t("./i18n/i18n.app"),n),r.__exportStar(t("./translations"),n)},i18n:{"i18n.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fallbackKeys=n.getObjectI18nTemplate=n.translationI18nObjects=n.addObjectsI18n=n.translationI18nObject=void 0;var r=t("../index"),i=t("underscore"),o=t("clone"),s="_",a="base",u="core",f="translation",c=function(e,t){var n={lng:t,ns:f};if((0,r.exists)(e,n))return(0,r._t)(e,n)},l=function(e){return"".concat(e,"__object")},h=function(e,t){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t)},d=function(e,t){var n=h(e,t);return"".concat(n).concat("_","inlineHelpText")},p=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","group").concat("_").concat(n)},g=function(e,t,n){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t).concat("_","options").concat("_").concat(n)},b=function(e,t){return"".concat(e).concat("_","action").concat("_").concat(t)},m=function(e,t){return"".concat(e).concat("_","listview").concat("_").concat(t)},v=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},y=function(e,t,n){var r=l(t);return c(r,e)||n||""},_=function(e,t,n,r,i){var o=h(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=_(e,a,n,r,i))}return s||r||""},w=function(e,t,n,r,i){var o=d(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=w(e,a,n,r,i))}return s||r||""},k=function(e,t,n,r){var i=p(t,n);return c(i,e)||r||""},j=function(e,t,n,r,i,o){var s=g(t,n,r),a=c(s,e);if(!a){var u=v(o);u&&"base"!=t&&"core"!=t&&(a=j(e,u,n,r,i,o))}return a||i||""},x=function(e,t,n,r,i){var o=b(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=x(e,a,n,r,i))}return s||r||""},S=function(e,t,n,r,i){var o=m(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=S(e,a,n,r,i))}return s||r||""},D=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},E=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;return e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(D(e))}))):n.push(D(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},A=function(e,t,n){n.label=y(e,t,n.label),i.each(n.fields,(function(r,o){if(r.label=_(e,t,o,r.label,n.datasource),r.inlineHelpText&&(r.inlineHelpText=w(e,t,o,r.inlineHelpText,n.datasource)),r.group&&(r.group=k(e,t,r.group,r.group)),r.options){var s=[];i.each(r.options,(function(r){if(i.has(r,"value")){var a=j(e,t,o,r.value,r.label,n.datasource);s.push(i.extend({},r,{label:a}))}else s.push(r)})),r.options=s}})),i.each(n.actions,(function(r,i){r.label=x(e,t,i,r.label,n.datasource)})),i.each(n.list_views,(function(r,i){r.label=S(e,t,i,r.label,n.datasource)}))};n.translationI18nObject=A;var C=function(e){i.each(e,(function(e){(0,r.addResourceBundle)(e.lng,f,e.data,!0,!0)}))};n.addObjectsI18n=C;var M=function(e,t){i.each(t,(function(t,r){(0,n.translationI18nObject)(e,r,t)}))};n.translationI18nObjects=M;var O=function(e,t,n){var r=o(n);E(r);var s={};return s[l(t)]=y(e,t,r.label),i.each(r.fields,(function(n,o){s[h(t,o)]=_(e,t,o,n.label),n.inlineHelpText&&(s[d(t,o)]=w(e,t,o,n.inlineHelpText,r.datasource)),n.group&&(s[p(t,n.group)]=k(e,t,n.group,n.group)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(s[g(t,o,n.value)]=j(e,t,o,n.value,n.label))}))})),i.each(r.actions,(function(n,r){s[b(t,r)]=x(e,t,r,n.label)})),i.each(r.list_views,(function(n,r){s[m(t,r)]=S(e,t,r,n.label)})),s};n.getObjectI18nTemplate=O,n.fallbackKeys={getObjectLabelKey:l,getObjectFieldLabelKey:h,getObjectFieldInlineHelpTextLabelKey:d,getObjectFieldGroupKey:p,getObjectFieldOptionsLabelKey:g,getObjectActionLabelKey:b,getObjectListviewLabelKey:m}},"i18n.app.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.appFallbackKeys=n.getAppI18nTemplate=n.translationI18nApps=n.translationI18nMenus=void 0;var r=t("../index"),i=t("underscore"),o=t("clone"),s="translation",a="_",u=function(e,t){var n={lng:t,ns:s};if((0,r.exists)(e,n))return(0,r._t)(e,n)},f=function(e){return"app".concat("_").concat(e).concat("_","name")},c=function(e){return"app".concat("_").concat(e).concat("_","description")},l=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","tab_group").concat("_").concat(n)},h=function(e){return"menu".concat("_").concat(e)},d=function(e){return"tab".concat("_").concat(e)},p=function(e,t,n){var r=f(t);return u(r,e)||n||""},g=function(e,t,n){var r=c(t);return u(r,e)||n||""},b=function(e,t,n){var r=h(t);return u(r,e)||n||""},m=function(e,t,r){r.label=p(e,t,r.label||r.name),r.description=g(e,t,r.description),(0,n.translationI18nMenus)(e,r.admin_menus)},v=function(e,t){i.each(t,(function(t){var n=b(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationI18nMenus=v;var y=function(e,t){i.each(t,(function(t,n){m(e,n,t)}))};n.translationI18nApps=y;var _=function(e,t,n){var r=o(n),s={};return s[f(t)]=p(e,t,r.label||r.name),s[c(t)]=g(e,t,r.description),i.each(r.admin_menus,(function(t){s[h(t._id)]=b(e,t._id,t.label||t.name)})),s};n.getAppI18nTemplate=_,n.appFallbackKeys={getAppLabelKey:f,getAppDescriptionKey:c,getAppGroupKey:l,getMenuLabelKey:h,getTabKey:d}}},translations:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SteedosTranslationPrefixKeys=n.convertObject=void 0;var r=t("tslib"),i=t("underscore");r.__exportStar(t("./objectTranslation"),n),r.__exportStar(t("./translation"),n),r.__exportStar(t("./templates/objectTranslation"),n),r.__exportStar(t("./templates/translation"),n);var o=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},s=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(o(e))}))):n.push(o(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else if(e.options&&i.isArray(e.options))try{i.forEach(e.options,(function(e){i.isString(e)?n.push(o(e)):n.push(e)})),e.options=n}catch(r){console.error("Creator.convertFieldsOptions",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},a;n.convertObject=s,function(e){e.Object="CustomObject",e.Field="CustomField",e.Action="CustomAction",e.Listview="CustomListview",e.Permission="CustomPermission",e.ValidationRule="CustomValidationRule",e.Application="CustomApplication",e.Tab="CustomTabs",e.Permissionset="CustomPermissionset",e.Profile="CustomProfile",e.Report="CustomReport",e.Workflow="Workflow",e.Layout="Layout",e.Client="Client",e.Server="Server",e.Function="Function",e.Router="Router",e.Trigger="Trigger"}(a=n.SteedosTranslationPrefixKeys||(n.SteedosTranslationPrefixKeys={}))},"objectTranslation.js":function e(t,n,e,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addObjectsTranslation=n.getObjectTranslationTemplate=n.translationObjects=n.translationObject=n.translationObjectLabel=void 0;var i=t("underscore"),o=t("./"),s=t("../index"),a=t("./index"),u=t("../i18n/i18n"),f=t("lodash"),c=t("crypto"),l,h=(0,t("@steedos/cachers").getCacher)("lru.translations.objects");function d(e){var t;return c.createHash("md5").update(e).digest("hex")}var p=function(e,t){return"".concat(e,"_").concat(t.name,"_").concat(d(JSON.stringify(t)))},g=t("clone"),b=".",m="base",v="core",y="translation",_="object",w="field",k="listview",j="action",x=function(e,t){var n={lng:t,ns:y,keySeparator:!1};if((0,s.exists)(e,n))return(0,s._t)(e,n)},S=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},D=function(e){switch(e){case"object":return o.SteedosTranslationPrefixKeys.Object;case"field":return o.SteedosTranslationPrefixKeys.Field;case"listview":return o.SteedosTranslationPrefixKeys.Listview;case"action":return o.SteedosTranslationPrefixKeys.Action;default:return"CustomLabels"}},E=function(e){var t;return[D(),e].join(".")},A=function(e){var t;return[D("object"),e,"label"].join(".")},C=function(e){var t;return[D("object"),e,"description"].join(".")},M=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"label"].join(".")},O=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"help"].join(".")},T=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"description"].join(".")},B=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_"),r;return[D("field"),e,"group",n].join(".")},I=function(e,t,n){var r;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"options",n].join(".")},R=function(e,t){var n;return[D("action"),e,t].join(".")},F=function(e,t){var n;return[D("listview"),e,t].join(".")},P=function(e,t,n){var r,i=[A(t)],o=u.fallbackKeys.getObjectLabelKey(t);return o&&i.push(o),x(i,e)||n||""};n.translationObjectLabel=P;var N=function(e,t,n){var r=C(t);return x(r,e)||n||""},L=function(e,t,n,r,i,o){var s,a=[M(t,n)],f=u.fallbackKeys.getObjectFieldLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=L(e,l,n,r,i))}return c||r||""},z=function(e,t,n,r,i,o){var s,a=[O(t,n)],f=u.fallbackKeys.getObjectFieldInlineHelpTextLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=z(e,l,n,r,i))}return c||r||""},U=function(e,t,n,r,i,o){var s=T(t,n),a,u=x([s],e);if(1!=o&&!u){var f=S(i);f&&"base"!=t&&"core"!=t&&(u=U(e,f,n,r,i))}return u||r||""},q=function(e,t,n,r,i,o){var s,a=[B(t,n)],f=u.fallbackKeys.getObjectFieldGroupKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=q(e,l,n,r,i))}return c||r||""},$=function(e,t,n,r,i,o,s){var a,f=[I(t,n,r)],c=u.fallbackKeys.getObjectFieldOptionsLabelKey(t,n,r);c&&f.push(c);var l=x(f,e);if(1!=s&&!l){var h=S(o);h&&"base"!=t&&"core"!=t&&(l=$(e,h,n,r,i,o))}return l||i||""},H=function(e,t,n,r,i,o){var s,a=[R(t,n)],f=u.fallbackKeys.getObjectActionLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=H(e,l,n,r,i))}return c||r||""},W=function(e,t,n,r,i,o){var s,a=[F(t,n)],f=u.fallbackKeys.getObjectListviewLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=W(e,l,n,r,i))}return c||r||""},Y=function(e,t,r,o,s){void 0===s&&(s=!1);var u=p(e,r);"test_obj_layout1"===t&&console.log("translationObject",t,u);var c=h.get(u);if(c)return Object.assign(r,(0,f.cloneDeep)(c));o&&(0,a.convertObject)(r),r.label=(0,n.translationObjectLabel)(e,t,r.label),r.description=N(e,t,r.description),i.each(r.fields,(function(n,o){if(n.label=L(e,t,o,n.label,r.datasource,s),n.inlineHelpText&&(n.inlineHelpText=z(e,t,o,n.inlineHelpText,r.datasource,s)),n.group&&(n.group=q(e,t,n.group,n.group,r.datasource,s)),n.options){var a=[];i.each(n.options,(function(n){if(i.has(n,"value")){var u=$(e,t,o,n.value,n.label,r.datasource,s);a.push(i.extend({},n,{label:u}))}else a.push(n)})),n.options=a}})),i.each(r.actions,(function(n,i){n.label=H(e,t,i,n.label,r.datasource,s)})),i.each(r.list_views,(function(n,i){n.label=W(e,t,i,n.label,r.datasource,s)})),h.set(u,(0,f.cloneDeep)(r))};n.translationObject=Y;var V=function(e,t){i.each(t,(function(t,r){(0,n.translationObject)(e,r,t)}))};n.translationObjects=V;var K=function(e,t,r){var o=g(r);(0,a.convertObject)(o);var s={};return s[A(t)]=(0,n.translationObjectLabel)(e,t,o.label),s[C(t)]=N(e,t,o.description),i.each(o.fields,(function(n,r){s[M(t,r)]=L(e,t,r,n.label),n.inlineHelpText&&(s[O(t,r)]=z(e,t,r,n.inlineHelpText,o.datasource)),n.description&&(s[T(t,r)]=U(e,t,r,n.description,o.datasource)),n.group&&(s[B(t,n.group)]=q(e,t,n.group,n.group,o.datasource)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(s[I(t,r,n.value)]=$(e,t,r,n.value,n.label))}))})),i.each(o.actions,(function(n,r){s[R(t,r)]=H(e,t,r,n.label)})),i.each(o.list_views,(function(n,r){s[F(t,r)]=W(e,t,r,n.label)})),s};function G(e,t){var n=g(e);(0,a.convertObject)(n);var r={},o=n.name;return o||console.error("Error: Invalid objectTranslation:"+t),r[A(o)]=n.label,r[C(o)]=n.description,i.each(n.fields,(function(e,t){r[M(o,t)]=e.label,e.help&&(r[O(o,t)]=e.help),e.description&&(r[T(o,t)]=e.description),e.options&&i.each(e.options,(function(e){i.has(e,"value")&&(r[I(o,t,e.value)]=e.label)}))})),i.each(n.groups,(function(e,t){r[B(o,t)]=e})),i.each(n.actions,(function(e,t){r[R(o,t)]=e.label})),i.each(n.listviews,(function(e,t){r[F(o,t)]=e.label})),i.each(n.CustomLabels,(function(e,t){r[E(t)]=e})),r}n.getObjectTranslationTemplate=K;var X=function(e){i.each(e,(function(e){var t=G(e.data,e.__filename);(0,s.addResourceBundle)(e.lng,y,t,!0,!0)}))};n.addObjectsTranslation=X},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addTranslations=n.convertTranslation=n.convertTranslationData=n.getAppTranslationTemplate=n.translationApps=n.translationMenus=n.translationApp=n.translationTabLabel=n.translationTabGroup=void 0;var r=t("../index"),i=t("underscore"),o=t("./"),s=t("../i18n/i18n.app"),a=t("clone"),u="translation",f=".",c="app",l="menu",h="tab",d=function(e){switch(e){case"app":return o.SteedosTranslationPrefixKeys.Application;case"tab":return o.SteedosTranslationPrefixKeys.Tab;default:return"CustomLabels"}},p=function(e){var t;return[d(),e].join(".")},g=function(e,t){var n={lng:t,ns:u,keySeparator:!1};if((0,r.exists)(e,n))return(0,r._t)(e,n)},b=function(e){var t;return[d("app"),e,"name"].join(".")},m=function(e){var t;return[d("app"),e,"description"].join(".")},v=function(e,t){var n,r;return[d("app"),e,"groups",t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_")].join(".")},y=function(e){var t;return[d("menu"),"menu_".concat(e)].join(".")},_=function(e){var t;return[d("tab"),e].join(".")},w=function(e,t,n){var r,i=[b(t)],o=s.appFallbackKeys.getAppLabelKey(t);return o&&i.push(o),g(i,e)||n||""},k=function(e,t,n){var r,i=[m(t)],o=s.appFallbackKeys.getAppDescriptionKey(t);return o&&i.push(o),g(i,e)||n||""},j=function(e,t,n,r){var i,o=[v(t,n)],a=s.appFallbackKeys.getAppGroupKey(t,n);return a&&o.push(a),g(o,e)||r||""};n.translationTabGroup=j;var x=function(e,t,n){var r,i=[y(t)],o=s.appFallbackKeys.getMenuLabelKey(t);return o&&i.push(o),g(i,e)||n||""},S=function(e,t,n){var r,i=[_(t)],o=s.appFallbackKeys.getTabKey(t);return o&&i.push(o),g(i,e)||n||""};n.translationTabLabel=S;var D=function(e,t,r){r.label=w(e,t,r.label||r.name),r.description=k(e,t,r.description),i.each(r.tab_groups,(function(i,o){r.tab_groups[o].id=i.id||i.group_name,r.tab_groups[o].group_name=(0,n.translationTabGroup)(e,t,i.group_name,i.group_name)})),(0,n.translationMenus)(e,r.admin_menus)};n.translationApp=D;var E=function(e,t){i.each(t,(function(t){var n=x(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationMenus=E;var A=function(e,t){i.each(t,(function(t,r){(0,n.translationApp)(e,r,t)}))};n.translationApps=A;var C=function(e,t,n){var r=a(n),o={};return o[b(t)]=w(e,t,r.label||r.name),o[m(t)]=k(e,t,r.description),i.each(r.admin_menus,(function(t){o[y(t._id)]=x(e,t._id,t.label||t.name)})),o};n.getAppTranslationTemplate=C;var M=function(e,t,n){i.isArray(n)?i.each(n,(function(e){M(e,"",e)})):n&&i.each(i.keys(n),(function(r){var o=t?"".concat(t,".").concat(r):r,s=n[r];"object"==typeof s?i.isArray(s)?i.each(s,(function(e){M(e,o,s)})):M(e,o,s):e[o]=s}))};function O(e){for(var t in e)"object"==typeof e[t]&&M(e,t,e[t]);return e}n.convertTranslationData=O;var T=function(e){var t=a(e),n={};return i.each(t.CustomApplications,(function(e,t){n[b(t)]=e.name,n[m(t)]=e.description,i.each(e.groups,(function(e,r){n[v(t,r)]=e}))})),i.each(t.CustomTabs,(function(e,t){n[_(t)]=e})),i.each(t.CustomLabels,(function(e,t){var r;if("simpleschema"!=t&&i.isObject(e)){var o=O(((r={})[t]=e,r));i.each(o,(function(e,t){i.isObject(e)||(n[p(t)]=e)}))}else n[p(t)]=e})),n};n.convertTranslation=T;var B=function(e){i.each(e,(function(e){var t=(0,n.convertTranslation)(e.data);(0,r.addResourceBundle)(e.lng,u,t,!0,!0)}))};n.addTranslations=B},templates:{"objectTranslation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getObjectMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),o=t("clone");function s(e,t){var n={};return r.each(e,(function(e){n[e]="help"===e?t.inlineHelpText||"":t[e]||""})),n}function a(e){return s(["label","description"],e)}function u(e){switch(e.type){case"select":return s(["label","help","options","description"],e);default:return s(["label","help","description"],e)}}function f(e){return s(["label"],e)}function c(e){return s(["label"],e)}function l(e){var t={};return r.each(e,(function(e,n){t[n]=u(e)})),t}function h(e){var t={};return r.each(e,(function(e,n){t[n]=c(e)})),t}function d(e){var t={};return r.each(e,(function(e,n){t[n]=f(e)})),t}function p(e,t){var n={};return r.each(e,(function(e,r){if(e.group){var i=e.group.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");n[i]=t[r].group}})),n}var g=function(e,t,n,s){void 0===s&&(s=!1);var u=o(n);1!=s&&(0,i.translationObject)(e,t,u,!0,s);var f=Object.assign({},a(u));f=Object.assign({},f,{fields:l(u.fields)});var c=p(n.fields,u.fields);r.isEmpty(c)||(f=Object.assign({},f,{groups:c}));var g=d(u.list_views);r.isEmpty(g)||(f=Object.assign({},f,{listviews:g}));var b=h(u.actions);return r.isEmpty(b)||(f=Object.assign({},f,{actions:b})),Object.assign({name:t},f)};n.getObjectMetadataTranslationTemplate=g},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getAppMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),o=t("clone");function s(e,t){var n={};return r.each(e,(function(e){n[e]=t[e]||""})),n}function a(e){var t={groups:{}};return e?(r.each(e,(function(e){var n=e.group_name.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t.groups[n]=e.group_name})),t):{}}var u=function(e){return Object.assign({},s(["name","description"],e),a(e.tab_groups))},f=function(e){var t={};return r.each(e,(function(e,n){t[n]=n})),t},c=function(e){var t={};return r.each(e,(function(e){var n=e.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t[n]=e})),t},l=function(e,t,n){var r,s=o(n);(0,i.translationApp)(e,t,s);var a={},l;return s.tab_items?a=f(s.tab_items):s.tabs&&(a=c(s.tabs)),Object.assign({},{CustomApplications:(r={},r[t]=u(s),r)},{CustomTabs:a})};n.getAppMetadataTranslationTemplate=l}}}},node_modules:{i18next:{"package.json":function e(t,n,e){e.exports={name:"i18next",version:"19.9.2",module:"./dist/esm/i18next.js",main:"./dist/cjs/i18next.js"}},dist:{esm:{"i18next.js":function e(t,n,e){let r,i,o,s,a,u,f,c;e.link("@babel/runtime/helpers/esm/typeof",{default(e){r=e}},0),e.link("@babel/runtime/helpers/esm/objectSpread",{default(e){i=e}},1),e.link("@babel/runtime/helpers/esm/classCallCheck",{default(e){o=e}},2),e.link("@babel/runtime/helpers/esm/createClass",{default(e){s=e}},3),e.link("@babel/runtime/helpers/esm/possibleConstructorReturn",{default(e){a=e}},4),e.link("@babel/runtime/helpers/esm/getPrototypeOf",{default(e){u=e}},5),e.link("@babel/runtime/helpers/esm/assertThisInitialized",{default(e){f=e}},6),e.link("@babel/runtime/helpers/esm/inherits",{default(e){c=e}},7);var l={type:"logger",log:function e(t){this.output("log",t)},warn:function e(t){this.output("warn",t)},error:function e(t){this.output("error",t)},output:function e(t,n){console&&console[t]&&console[t].apply(console,n)}},h,d=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.init(t,n)}return s(e,[{key:"init",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||l,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function e(t){this.debug=t}},{key:"log",value:function e(){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function y(e,t,n){var r=v(e,t,Object),i,o;r.obj[r.k]=n}function _(e,t,n,r){var i=v(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}function w(e,t){var n=v(e,t),r=n.obj,i=n.k;if(r)return r[i]}function k(e,t,n){var r=w(e,n);return void 0!==r?r:w(t,n)}function j(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):j(e[r],t[r],n):e[r]=t[r]);return e}function x(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var S={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function D(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return S[e]})):e}var E="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,A=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return o(this,t),n=a(this,u(t).call(this)),E&&p.call(f(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return c(t,e),s(t,[{key:"addNamespaces",value:function e(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function e(t){var n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=[t,n];return r&&"string"!=typeof r&&(s=s.concat(r)),r&&"string"==typeof r&&(s=s.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(s=t.split(".")),w(this.data,s)}},{key:"addResource",value:function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},s=this.options.keySeparator;void 0===s&&(s=".");var a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(i=n,n=(a=t.split("."))[1]),this.addNamespaces(n),y(this.data,a,i),o.silent||this.emit("added",t,n,r,i)}},{key:"addResources",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in r)"string"!=typeof r[o]&&"[object Array]"!==Object.prototype.toString.apply(r[o])||this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}},{key:"addResourceBundle",value:function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},u=[t,n];t.indexOf(".")>-1&&(o=r,r=n,n=(u=t.split("."))[1]),this.addNamespaces(n);var f=w(this.data,u)||{};o?j(f,r,s):f=i({},f,r),y(this.data,u,f),a.silent||this.emit("added",t,n,r)}},{key:"removeResourceBundle",value:function e(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}},{key:"hasResourceBundle",value:function e(t,n){return void 0!==this.getResource(t,n)}},{key:"getResourceBundle",value:function e(t,n){return n||(n=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(t,n)):this.getResource(t,n)}},{key:"getDataByLanguage",value:function e(t){return this.data[t]}},{key:"toJSON",value:function e(){return this.data}}]),t}(p),C={processors:{},addPostProcessor:function e(t){this.processors[t.name]=t},handle:function e(t,n,r,i,o){var s=this;return t.forEach((function(e){s.processors[e]&&(n=s.processors[e].process(n,r,i,o))})),n}},M={},O=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,t),n=a(this,u(t).call(this)),E&&p.call(f(n)),m(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,f(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=d.create("translator"),n}return c(t,e),s(t,[{key:"changeLanguage",value:function e(t){t&&(this.language=t)}},{key:"exists",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(t,n);return r&&void 0!==r.res}},{key:"extractFromKey",value:function e(t,n){var r=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=n.ns||this.options.defaultNS;if(r&&t.indexOf(r)>-1){var s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:o};var a=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),t=a.join(i)}return"string"==typeof o&&(o=[o]),{key:t,namespaces:o}}},{key:"translate",value:function e(n,o,s){var a=this;if("object"!==r(o)&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),null==n)return"";Array.isArray(n)||(n=[String(n)]);var u=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,f=this.extractFromKey(n[n.length-1],o),c=f.key,l=f.namespaces,h=l[l.length-1],d=o.lng||this.language,p=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var g=o.nsSeparator||this.options.nsSeparator;return h+g+c}return c}var b=this.resolve(n,o),m=b&&b.res,v=b&&b.usedKey||c,y=b&&b.exactUsedKey||c,_=Object.prototype.toString.apply(m),w=["[object Number]","[object Function]","[object RegExp]"],k=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(j&&m&&x&&w.indexOf(_)<0&&("string"!=typeof k||"[object Array]"!==_)){if(!o.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,o):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(u){var S="[object Array]"===_,D=S?[]:{},E=S?y:v;for(var A in m)if(Object.prototype.hasOwnProperty.call(m,A)){var C="".concat(E).concat(u).concat(A);D[A]=this.translate(C,i({},o,{joinArrays:!1,ns:l})),D[A]===C&&(D[A]=m[A])}m=D}}else if(j&&"string"==typeof k&&"[object Array]"===_)(m=m.join(k))&&(m=this.extendTranslation(m,n,o,s));else{var M=!1,O=!1,T=void 0!==o.count&&"string"!=typeof o.count,B=t.hasDefaultValue(o),I=T?this.pluralResolver.getSuffix(d,o.count):"",R=o["defaultValue".concat(I)]||o.defaultValue;!this.isValidLookup(m)&&B&&(M=!0,m=R),this.isValidLookup(m)||(O=!0,m=c);var F=B&&R!==m&&this.options.updateMissing;if(O||M||F){if(this.logger.log(F?"updateKey":"missingKey",d,h,c,F?R:m),u){var P=this.resolve(c,i({},o,{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var z=0;z1&&void 0!==arguments[1]?arguments[1]:{},i,o,s,a,u;return"string"==typeof t&&(t=[t]),t.forEach((function(e){if(!n.isValidLookup(i)){var t=n.extractFromKey(e,r),f=t.key;o=f;var c=t.namespaces;n.options.fallbackNS&&(c=c.concat(n.options.fallbackNS));var l=void 0!==r.count&&"string"!=typeof r.count,h=void 0!==r.context&&"string"==typeof r.context&&""!==r.context,d=r.lngs?r.lngs:n.languageUtils.toResolveHierarchy(r.lng||n.language,r.fallbackLng);c.forEach((function(e){n.isValidLookup(i)||(u=e,!M["".concat(d[0],"-").concat(e)]&&n.utils&&n.utils.hasLoadedNamespace&&!n.utils.hasLoadedNamespace(u)&&(M["".concat(d[0],"-").concat(e)]=!0,n.logger.warn('key "'.concat(o,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(t){if(!n.isValidLookup(i)){a=t;var o=f,u=[o],c,d;if(n.i18nFormat&&n.i18nFormat.addLookupKeys)n.i18nFormat.addLookupKeys(u,f,t,e,r);else l&&(c=n.pluralResolver.getSuffix(t,r.count)),l&&h&&u.push(o+c),h&&u.push(o+="".concat(n.options.contextSeparator).concat(r.context)),l&&u.push(o+=c);for(;d=u.pop();)n.isValidLookup(i)||(s=d,i=n.getResource(t,e,d,r))}})))}))}})),{res:i,usedKey:o,exactUsedKey:s,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function e(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}}],[{key:"hasDefaultValue",value:function e(t){var n="defaultValue";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&void 0!==t[r])return!0;return!1}}]),t}(p);function T(e){return e.charAt(0).toUpperCase()+e.slice(1)}var B=function(){function e(t){o(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=d.create("languageUtils")}return s(e,[{key:"getScriptPartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase()?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function e(t){if("string"==typeof t&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=T(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function e(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function e(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function e(t){var n=this,r;return t?(t.forEach((function(e){if(!r){var t=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(t)||(r=t)}})),!r&&this.options.supportedLngs&&t.forEach((function(e){if(!r){var t=n.getLanguagePartFromCode(e);if(n.isSupportedCode(t))return r=t;r=n.options.supportedLngs.find((function(e){if(0===e.indexOf(t))return e}))}})),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function e(t,n){if(!t)return[];if("function"==typeof t&&(t=t(n)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function e(t,n){var r=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],s=function e(t){t&&(r.isSupportedCode(t)?o.push(t):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(t))):"string"==typeof t&&s(this.formatLanguageCode(t)),i.forEach((function(e){o.indexOf(e)<0&&s(r.formatLanguageCode(e))})),o}}]),e}(),I=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],R={1:function e(t){return Number(t>1)},2:function e(t){return Number(1!=t)},3:function e(t){return 0},4:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function e(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function e(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function e(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function e(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function e(t){return Number(t>=2)},10:function e(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function e(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function e(t){return Number(t%10!=1||t%100==11)},13:function e(t){return Number(0!==t)},14:function e(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function e(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function e(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function e(t){return Number(0==t?0:1==t?1:2)},19:function e(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function e(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function e(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function e(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function F(){var e={};return I.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:R[t.fc]}}))})),e}var P=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.languageUtils=t,this.options=n,this.logger=d.create("pluralResolver"),this.rules=F()}return s(e,[{key:"addRule",value:function e(t,n){this.rules[t]=n}},{key:"getRule",value:function e(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function e(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function e(t,n){return this.getSuffixes(t).map((function(e){return n+e}))}},{key:"getSuffixes",value:function e(t){var n=this,r=this.getRule(t);return r?r.numbers.map((function(e){return n.getSuffix(t,e)})):[]}},{key:"getSuffix",value:function e(t,n){var r=this,i=this.getRule(t);if(i){var o=i.noAbs?i.plurals(n):i.plurals(Math.abs(n)),s=i.numbers[o];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===s?s="plural":1===s&&(s=""));var a=function e(){return r.options.prepend&&s.toString()?r.options.prepend+s.toString():s.toString()};return"v1"===this.options.compatibilityJSON?1===s?"":"number"==typeof s?"_plural_".concat(s.toString()):a():"v2"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),N=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.logger=d.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return s(e,[{key:"init",value:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=void 0!==n.escape?n.escape:D,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?x(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?x(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?x(n.nestingPrefix):n.nestingPrefixEscaped||x("$t("),this.nestingSuffix=n.nestingSuffix?x(n.nestingSuffix):n.nestingSuffixEscaped||x(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function e(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function e(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function e(t,n,r,i){var o=this,s,a,u,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function e(t){if(t.indexOf(o.formatSeparator)<0){var s=k(n,f,t);return o.alwaysFormat?o.format(s,void 0,r):s}var a=t.split(o.formatSeparator),u=a.shift().trim(),c=a.join(o.formatSeparator).trim();return o.format(k(n,f,u),c,r,i)};this.resetRegExp();var h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p;return[{regex:this.regexpUnescape,safeValue:function e(t){return c(t)}},{regex:this.regexp,safeValue:function e(t){return o.escapeValue?c(o.escape(t)):c(t)}}].forEach((function(e){for(u=0;s=e.regex.exec(t);){if(void 0===(a=l(s[1].trim())))if("function"==typeof h){var n=h(t,s,i);a="string"==typeof n?n:""}else{if(d){a=s[0];continue}o.logger.warn("missed to pass in variable ".concat(s[1]," for interpolating ").concat(t)),a=""}else"string"==typeof a||o.useRawValueToEscape||(a=b(a));if(t=t.replace(s[0],e.safeValue(a)),e.regex.lastIndex=0,++u>=o.maxReplaces)break}})),t}},{key:"nest",value:function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s,a,u=i({},o);function f(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,u)).replace(/'/g,'"');try{u=JSON.parse(o),t&&(u=i({},t,u))}catch(s){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),s),"".concat(e).concat(n).concat(o)}return delete u.defaultValue,e}for(u.applyPostProcessor=!1,delete u.defaultValue;s=this.nestingRegexp.exec(t);){var c=[],l=!1;if(s[0].includes(this.formatSeparator)&&!/{.*}/.test(s[1])){var h=s[1].split(this.formatSeparator).map((function(e){return e.trim()}));s[1]=h.shift(),c=h,l=!0}if((a=n(f.call(this,s[1].trim(),u),u))&&s[0]===t&&"string"!=typeof a)return a;"string"!=typeof a&&(a=b(a)),a||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(t)),a=""),l&&(a=c.reduce((function(e,t){return r.format(e,t,o.lng,o)}),a.trim())),t=t.replace(s[0],a),this.regexp.lastIndex=0}return t}}]),e}();function L(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}var z=function(e){function t(e,n,r){var i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o(this,t),i=a(this,u(t).call(this)),E&&p.call(f(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=s,i.logger=d.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,s.backend,s),i}return c(t,e),s(t,[{key:"queueLoad",value:function e(t,n,r,i){var o=this,s=[],a=[],u=[],f=[];return t.forEach((function(e){var t=!0;n.forEach((function(n){var i="".concat(e,"|").concat(n);!r.reload&&o.store.hasResourceBundle(e,n)?o.state[i]=2:o.state[i]<0||(1===o.state[i]?a.indexOf(i)<0&&a.push(i):(o.state[i]=1,t=!1,a.indexOf(i)<0&&a.push(i),s.indexOf(i)<0&&s.push(i),f.indexOf(n)<0&&f.push(n)))})),t||u.push(e)})),(s.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:i}),{toLoad:s,pending:a,toLoadLanguages:u,toLoadNamespaces:f}}},{key:"loaded",value:function e(t,n,r){var i=t.split("|"),o=i[0],s=i[1];n&&this.emit("failedLoading",o,s,n),r&&this.store.addResourceBundle(o,s,r),this.state[t]=n?-1:2;var e={};this.queue.forEach((function(r){_(r.loaded,[o],s),L(r.pending,t),n&&r.errors.push(n),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(t){e[t]||(e[t]=[]),r.loaded[t].length&&r.loaded[t].forEach((function(n){e[t].indexOf(n)<0&&e[t].push(n)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",e),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[r](t,n,(function(e,u){e&&u&&o<5?setTimeout((function(){i.read.call(i,t,n,r,o+1,2*s,a)}),s):a(e,u)})):a(null,{})}},{key:"prepareLoading",value:function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof n&&(n=[n]);var s=this.queueLoad(t,n,i,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function e(t,n,r){this.prepareLoading(t,n,{},r)}},{key:"reload",value:function e(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}},{key:"loadOne",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t.split("|"),o=i[0],s=i[1];this.read(o,s,"read",void 0,void 0,(function(e,i){e&&n.logger.warn("".concat(r,"loading namespace ").concat(s," for language ").concat(o," failed"),e),!e&&i&&n.logger.log("".concat(r,"loaded namespace ").concat(s," for language ").concat(o),i),n.loaded(t,e,i)}))}},{key:"saveMissing",value:function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(t,n,r,o,null,i({},a,{isUpdate:s})),t&&t[0]&&this.store.addResource(t[0],n,r,o))}}]),t}(p);function U(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function e(t){var n={};if("object"===r(t[1])&&(n=t[1]),"string"==typeof t[1]&&(n.defaultValue=t[1]),"string"==typeof t[2]&&(n.tDescription=t[2]),"object"===r(t[2])||"object"===r(t[3])){var i=t[3]||t[2];Object.keys(i).forEach((function(e){n[e]=i[e]}))}return n},interpolation:{escapeValue:!0,format:function e(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function q(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $(){}var H,W=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(o(this,t),e=a(this,u(t).call(this)),E&&p.call(f(e)),e.options=q(n),e.services={},e.logger=d,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),a(e,f(e));setTimeout((function(){e.init(n,r)}),0)}return e}return c(t,e),s(t,[{key:"init",value:function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function o(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof n&&(r=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},U(),this.options,q(n)),this.format=this.options.interpolation.format,r||(r=$),!this.options.isClone){this.modules.logger?d.init(o(this.modules.logger),this.options):d.init(null,this.options);var s=new B(this.options);this.store=new A(this.options.resources,this.options);var a=this.services;a.logger=d,a.resourceStore=this.store,a.languageUtils=s,a.pluralResolver=new P(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new N(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new z(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var f=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];f.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}}));var l=g(),h=function e(){var n=function e(n,i){t.isInitialized&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),l.resolve(i),r(n,i)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return n(null,t.t.bind(t));t.changeLanguage(t.options.lng,n)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),l}},{key:"loadResources",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,i=r,o="string"==typeof t?t:this.language;if("function"==typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return i();var s=[],a=function e(t){var r;t&&n.services.languageUtils.toResolveHierarchy(t).forEach((function(e){s.indexOf(e)<0&&s.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(s,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function e(t,n,r){var i=g();return t||(t=this.languages),n||(n=this.options.ns),r||(r=$),this.services.backendConnector.reload(t,n,(function(e){i.resolve(),r(e)})),i}},{key:"use",value:function e(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&C.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function e(t,n){var r=this;this.isLanguageChangingTo=t;var i=g();this.emit("languageChanging",t);var o=function e(t,o){o?(r.language=o,r.languages=r.services.languageUtils.toResolveHierarchy(o),r.translator.changeLanguage(o),r.isLanguageChangingTo=void 0,r.emit("languageChanged",o),r.logger.log("languageChanged",o)):r.isLanguageChangingTo=void 0,i.resolve((function(){return r.t.apply(r,arguments)})),n&&n(t,(function(){return r.t.apply(r,arguments)}))},s=function e(t){var n="string"==typeof t?t:r.services.languageUtils.getBestMatchFromCodes(t);n&&(r.language||(r.language=n,r.languages=r.services.languageUtils.toResolveHierarchy(n)),r.translator.language||r.translator.changeLanguage(n),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(n)),r.loadResources(n,(function(e){o(e,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(s):s(t):s(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function e(t,n){var o=this,s=function e(t,n){var s;if("object"!==r(n)){for(var a=arguments.length,u=new Array(a>2?a-2:0),f=2;f1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],o=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function e(t,r){var i=n.services.backendConnector.state["".concat(t,"|").concat(r)];return-1===i||2===i};if(r.precheck){var u=r.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(i,t)||(!this.services.backendConnector.backend||!(!a(i,t)||o&&!a(s,t)))}},{key:"loadNamespaces",value:function e(t,n){var r=this,i=g();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),n&&n(e)})),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function e(t,n){var r=g();"string"==typeof t&&(t=[t]);var i=this.options.preload||[],o=t.filter((function(e){return i.indexOf(e)<0}));return o.length?(this.options.preload=i.concat(o),this.loadResources((function(e){r.resolve(),n&&n(e)})),r):(n&&n(),Promise.resolve())}},{key:"dir",value:function e(t){return t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),t?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr":"rtl";var n}},{key:"createInstance",value:function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function e(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,s=i({},this.options,r,{isClone:!0}),a=new t(s),u=["store","services","language"];return u.forEach((function(e){a[e]=n[e]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new O(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rr,root:()=>i,ArrayProto:()=>o,ObjProto:()=>s,SymbolProto:()=>a,push:()=>u,slice:()=>f,toString:()=>c,hasOwnProperty:()=>l,supportsArrayBuffer:()=>h,supportsDataView:()=>d,nativeIsArray:()=>p,nativeKeys:()=>g,nativeCreate:()=>b,nativeIsView:()=>m,_isNaN:()=>v,_isFinite:()=>y,hasEnumBug:()=>_,nonEnumerableProps:()=>w,MAX_ARRAY_INDEX:()=>k});var r="1.13.4",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},o=Array.prototype,s=Object.prototype,a="undefined"!=typeof Symbol?Symbol.prototype:null,u=o.push,f=o.slice,c=s.toString,l=s.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,d="undefined"!=typeof DataView,p=Array.isArray,g=Object.keys,b=Object.create,m=h&&ArrayBuffer.isView,v=isNaN,y=isFinite,_=!{toString:null}.propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=Math.pow(2,53)-1},"restArguments.js":function e(t,n,e){function r(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;ir})},"isObject.js":function e(t,n,e){function r(e){var t=typeof e;return"function"===t||"object"===t&&!!e}e.export({default:()=>r})},"isNull.js":function e(t,n,e){function r(e){return null===e}e.export({default:()=>r})},"isUndefined.js":function e(t,n,e){function r(e){return void 0===e}e.export({default:()=>r})},"isBoolean.js":function e(t,n,e){let r;function i(e){return!0===e||!1===e||"[object Boolean]"===r.call(e)}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isElement.js":function e(t,n,e){function r(e){return!(!e||1!==e.nodeType)}e.export({default:()=>r})},"isString.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("String"))},"_tagTester.js":function e(t,n,e){let r;function i(e){var t="[object "+e+"]";return function(e){return r.call(e)===t}}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isNumber.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Number"))},"isDate.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Date"))},"isRegExp.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("RegExp"))},"isError.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Error"))},"isSymbol.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Symbol"))},"isArrayBuffer.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("ArrayBuffer"))},"isDataView.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isArrayBuffer.js",{default(e){o=e}},2),e.link("./_stringTagBug.js",{hasStringTagBug(e){s=e}},3);var a=r("DataView");function u(e){return null!=e&&i(e.getInt8)&&o(e.buffer)}e.exportDefault(s?u:a)},"isFunction.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_setup.js",{root(e){i=e}},1);var o=r("Function"),s=i.document&&i.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof s&&(o=function(e){return"function"==typeof e||!1}),e.exportDefault(o)},"_stringTagBug.js":function e(t,n,e){let r,i;e.export({hasStringTagBug:()=>o,isIE11:()=>s}),e.link("./_setup.js",{supportsDataView(e){r=e}},0),e.link("./_hasObjectTag.js",{default(e){i=e}},1);var o=r&&i(new DataView(new ArrayBuffer(8))),s="undefined"!=typeof Map&&i(new Map)},"_hasObjectTag.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Object"))},"isArray.js":function e(t,n,e){let r,i;e.link("./_setup.js",{nativeIsArray(e){r=e}},0),e.link("./_tagTester.js",{default(e){i=e}},1),e.exportDefault(r||i("Array"))},"isArguments.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1);var o=r("Arguments");!function(){o(arguments)||(o=function(e){return i(e,"callee")})}(),e.exportDefault(o)},"_has.js":function e(t,n,e){let r;function i(e,t){return null!=e&&r.call(e,t)}e.export({default:()=>i}),e.link("./_setup.js",{hasOwnProperty(e){r=e}},0)},"isFinite.js":function e(t,n,e){let r,i;function o(e){return!i(e)&&r(e)&&!isNaN(parseFloat(e))}e.export({default:()=>o}),e.link("./_setup.js",{_isFinite(e){r=e}},0),e.link("./isSymbol.js",{default(e){i=e}},1)},"isNaN.js":function e(t,n,e){let r,i;function o(e){return i(e)&&r(e)}e.export({default:()=>o}),e.link("./_setup.js",{_isNaN(e){r=e}},0),e.link("./isNumber.js",{default(e){i=e}},1)},"isTypedArray.js":function e(t,n,e){let r,i,o,s,a,u;e.link("./_setup.js",{supportsArrayBuffer(e){r=e},nativeIsView(e){i=e},toString(e){o=e}},0),e.link("./isDataView.js",{default(e){s=e}},1),e.link("./constant.js",{default(e){a=e}},2),e.link("./_isBufferLike.js",{default(e){u=e}},3);var f=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function c(e){return i?i(e)&&!s(e):u(e)&&f.test(o.call(e))}e.exportDefault(r?c:a(!1))},"constant.js":function e(t,n,e){function r(e){return function(){return e}}e.export({default:()=>r})},"_isBufferLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getByteLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createSizePropertyCheck.js":function e(t,n,e){let r;function i(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=r}}e.export({default:()=>i}),e.link("./_setup.js",{MAX_ARRAY_INDEX(e){r=e}},0)},"_getByteLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("byteLength"))},"_shallowProperty.js":function e(t,n,e){function r(e){return function(t){return null==t?void 0:t[e]}}e.export({default:()=>r})},"isEmpty.js":function e(t,n,e){let r,i,o,s,a;function u(e){if(null==e)return!0;var t=r(e);return"number"==typeof t&&(i(e)||o(e)||s(e))?0===t:0===r(a(e))}e.export({default:()=>u}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./isString.js",{default(e){o=e}},2),e.link("./isArguments.js",{default(e){s=e}},3),e.link("./keys.js",{default(e){a=e}},4)},"_getLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("length"))},"keys.js":function e(t,n,e){let r,i,o,s,a;function u(e){if(!r(e))return[];if(i)return i(e);var t=[];for(var n in e)s(e,n)&&t.push(n);return o&&a(e,t),t}e.export({default:()=>u}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeKeys(e){i=e},hasEnumBug(e){o=e}},1),e.link("./_has.js",{default(e){s=e}},2),e.link("./_collectNonEnumProps.js",{default(e){a=e}},3)},"_collectNonEnumProps.js":function e(t,n,e){let r,i,o,s;function a(e){for(var t={},n=e.length,r=0;ru}),e.link("./_setup.js",{nonEnumerableProps(e){r=e},ObjProto(e){i=e}},0),e.link("./isFunction.js",{default(e){o=e}},1),e.link("./_has.js",{default(e){s=e}},2)},"isMatch.js":function e(t,n,e){let r;function i(e,t){var n=r(t),i=n.length;if(null==e)return!i;for(var o=Object(e),s=0;si}),e.link("./keys.js",{default(e){r=e}},0)},"isEqual.js":function e(t,n,e){let r,i,o,s,a,u,f,c,l,h,d;e.export({default:()=>m}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_setup.js",{toString(e){i=e},SymbolProto(e){o=e}},1),e.link("./_getByteLength.js",{default(e){s=e}},2),e.link("./isTypedArray.js",{default(e){a=e}},3),e.link("./isFunction.js",{default(e){u=e}},4),e.link("./_stringTagBug.js",{hasStringTagBug(e){f=e}},5),e.link("./isDataView.js",{default(e){c=e}},6),e.link("./keys.js",{default(e){l=e}},7),e.link("./_has.js",{default(e){h=e}},8),e.link("./_toBufferView.js",{default(e){d=e}},9);var p="[object DataView]";function g(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&b(e,t,n,r)}function b(e,t,n,m){e instanceof r&&(e=e._wrapped),t instanceof r&&(t=t._wrapped);var v=i.call(e);if(v!==i.call(t))return!1;if(f&&"[object Object]"==v&&c(e)){if(!c(t))return!1;v=p}switch(v){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return o.valueOf.call(e)===o.valueOf.call(t);case"[object ArrayBuffer]":case p:return b(d(e),d(t),n,m)}var y="[object Array]"===v;if(!y&&a(e)){var _;if(s(e)!==s(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;y=!0}if(!y){if("object"!=typeof e||"object"!=typeof t)return!1;var w=e.constructor,k=t.constructor;if(w!==k&&!(u(w)&&w instanceof w&&u(k)&&k instanceof k)&&"constructor"in e&&"constructor"in t)return!1}m=m||[];for(var j=(n=n||[]).length;j--;)if(n[j]===e)return m[j]===t;if(n.push(e),m.push(t),y){if((j=e.length)!==t.length)return!1;for(;j--;)if(!g(e[j],t[j],n,m))return!1}else{var x=l(e),S;if(j=x.length,l(t).length!==j)return!1;for(;j--;)if(S=x[j],!h(t,S)||!g(e[S],t[S],n,m))return!1}return n.pop(),m.pop(),!0}function m(e,t){return g(e,t)}},"underscore.js":function e(t,n,e){let r;function i(e){return e instanceof i?e:this instanceof i?void(this._wrapped=e):new i(e)}e.export({default:()=>i}),e.link("./_setup.js",{VERSION(e){r=e}},0),i.VERSION=r,i.prototype.value=function(){return this._wrapped},i.prototype.valueOf=i.prototype.toJSON=i.prototype.value,i.prototype.toString=function(){return String(this._wrapped)}},"_toBufferView.js":function e(t,n,e){let r;function i(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,r(e))}e.export({default:()=>i}),e.link("./_getByteLength.js",{default(e){r=e}},0)},"isMap.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},mapMethods(e){s=e}},2),e.exportDefault(i?o(s):r("Map"))},"_methodFingerprint.js":function e(t,n,e){let r,i,o;function s(e){var t=r(e);return function(n){if(null==n)return!1;var s=o(n);if(r(s))return!1;for(var u=0;us,mapMethods:()=>l,weakMapMethods:()=>h,setMethods:()=>d}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./allKeys.js",{default(e){o=e}},2);var a="forEach",u="has",f=["clear","delete"],c=["get","has","set"],l=f.concat(a,c),h=f.concat(c),d=["add"].concat(f,a,"has")},"allKeys.js":function e(t,n,e){let r,i,o;function s(e){if(!r(e))return[];var t=[];for(var n in e)t.push(n);return i&&o(e,t),t}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{hasEnumBug(e){i=e}},1),e.link("./_collectNonEnumProps.js",{default(e){o=e}},2)},"isWeakMap.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},weakMapMethods(e){s=e}},2),e.exportDefault(i?o(s):r("WeakMap"))},"isSet.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},setMethods(e){s=e}},2),e.exportDefault(i?o(s):r("Set"))},"isWeakSet.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("WeakSet"))},"values.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"pairs.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"invert.js":function e(t,n,e){let r;function i(e){for(var t={},n=r(e),i=0,o=n.length;ii}),e.link("./keys.js",{default(e){r=e}},0)},"functions.js":function e(t,n,e){let r;function i(e){var t=[];for(var n in e)r(e[n])&&t.push(n);return t.sort()}e.export({default:()=>i}),e.link("./isFunction.js",{default(e){r=e}},0)},"extend.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createAssigner.js":function e(t,n,e){function r(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;ir})},"extendOwn.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"defaults.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i,!0))},"create.js":function e(t,n,e){let r,i;function o(e,t){var n=r(e);return t&&i(n,t),n}e.export({default:()=>o}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./extendOwn.js",{default(e){i=e}},1)},"_baseCreate.js":function e(t,n,e){let r,i;function o(){return function(){}}function s(e){if(!r(e))return{};if(i)return i(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeCreate(e){i=e}},1)},"clone.js":function e(t,n,e){let r,i,o;function s(e){return r(e)?i(e)?e.slice():o({},e):e}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./extend.js",{default(e){o=e}},2)},"tap.js":function e(t,n,e){function r(e,t){return t(e),e}e.export({default:()=>r})},"get.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s=i(e,r(t));return o(s)?n:s}e.export({default:()=>s}),e.link("./_toPath.js",{default(e){r=e}},0),e.link("./_deepGet.js",{default(e){i=e}},1),e.link("./isUndefined.js",{default(e){o=e}},2)},"_toPath.js":function e(t,n,e){let r;function i(e){return r.toPath(e)}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./toPath.js")},"toPath.js":function e(t,n,e){let r,i;function o(e){return i(e)?e:[e]}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),r.toPath=o},"_deepGet.js":function e(t,n,e){function r(e,t){for(var n=t.length,r=0;rr})},"has.js":function e(t,n,e){let r,i;function o(e,t){for(var n=(t=i(t)).length,o=0;oo}),e.link("./_has.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"mapObject.js":function e(t,n,e){let r,i;function o(e,t,n){t=r(t,n);for(var o=i(e),s=o.length,a={},u=0;uo}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"_cb.js":function e(t,n,e){let r,i,o;function s(e,t,n){return r.iteratee!==o?r.iteratee(e,t):i(e,t,n)}e.export({default:()=>s}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),e.link("./iteratee.js",{default(e){o=e}},2)},"_baseIteratee.js":function e(t,n,e){let r,i,o,s,a,u,f;function c(e,t,n){return null==e?r:i(e)?f(e,t,n):o(e)&&!s(e)?a(e):u(e)}e.export({default:()=>c}),e.link("./identity.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isObject.js",{default(e){o=e}},2),e.link("./isArray.js",{default(e){s=e}},3),e.link("./matcher.js",{default(e){a=e}},4),e.link("./property.js",{default(e){u=e}},5),e.link("./_optimizeCb.js",{default(e){f=e}},6)},"identity.js":function e(t,n,e){function r(e){return e}e.export({default:()=>r})},"matcher.js":function e(t,n,e){let r,i;function o(e){return e=r({},e),function(t){return i(t,e)}}e.export({default:()=>o}),e.link("./extendOwn.js",{default(e){r=e}},0),e.link("./isMatch.js",{default(e){i=e}},1)},"property.js":function e(t,n,e){let r,i;function o(e){return e=i(e),function(t){return r(t,e)}}e.export({default:()=>o}),e.link("./_deepGet.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"_optimizeCb.js":function e(t,n,e){function r(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}e.export({default:()=>r})},"iteratee.js":function e(t,n,e){let r,i;function o(e,t){return i(e,t,1/0)}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),r.iteratee=o},"noop.js":function e(t,n,e){function r(){}e.export({default:()=>r})},"propertyOf.js":function e(t,n,e){let r,i;function o(e){return null==e?r:function(t){return i(e,t)}}e.export({default:()=>o}),e.link("./noop.js",{default(e){r=e}},0),e.link("./get.js",{default(e){i=e}},1)},"times.js":function e(t,n,e){let r;function i(e,t,n){var i=Array(Math.max(0,e));t=r(t,n,1);for(var o=0;oi}),e.link("./_optimizeCb.js",{default(e){r=e}},0)},"random.js":function e(t,n,e){function r(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}e.export({default:()=>r})},"now.js":function e(t,n,e){e.exportDefault(Date.now||function(){return(new Date).getTime()})},"escape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createEscaper.js":function e(t,n,e){let r;function i(e){var t=function(t){return e[t]},n="(?:"+r(e).join("|")+")",i=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(o,t):e}}e.export({default:()=>i}),e.link("./keys.js",{default(e){r=e}},0)},"_escapeMap.js":function e(t,n,e){e.exportDefault({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"})},"unescape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_unescapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_unescapeMap.js":function e(t,n,e){let r,i;e.link("./invert.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"templateSettings.js":function e(t,n,e){let r;e.link("./underscore.js",{default(e){r=e}},0),e.exportDefault(r.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g})},"template.js":function e(t,n,e){let r,i;e.export({default:()=>c}),e.link("./defaults.js",{default(e){r=e}},0),e.link("./underscore.js",{default(e){i=e}},1),e.link("./templateSettings.js");var o=/(.)^/,s={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},a=/\\|'|\r|\n|\u2028|\u2029/g;function u(e){return"\\"+s[e]}var f=/^\s*(\w|\$)+\s*$/;function c(e,t,n){!t&&n&&(t=n),t=r({},t,i.templateSettings);var s=RegExp([(t.escape||o).source,(t.interpolate||o).source,(t.evaluate||o).source].join("|")+"|$","g"),c=0,l="__p+='";e.replace(s,(function(t,n,r,i,o){return l+=e.slice(c,o).replace(a,u),c=o+t.length,n?l+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?l+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(l+="';\n"+i+"\n__p+='"),t})),l+="';\n";var h=t.variable,d;if(h){if(!f.test(h))throw new Error("variable is not a bare identifier: "+h)}else l="with(obj||{}){\n"+l+"}\n",h="obj";l="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+l+"return __p;\n";try{d=new Function(h,"_",l)}catch(g){throw g.source=l,g}var p=function(e){return d.call(this,e,i)};return p.source="function("+h+"){\n"+l+"}",p}},"result.js":function e(t,n,e){let r,i;function o(e,t,n){var o=(t=i(t)).length;if(!o)return r(n)?n.call(e):n;for(var s=0;so}),e.link("./isFunction.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"uniqueId.js":function e(t,n,e){e.export({default:()=>i});var r=0;function i(e){var t=++r+"";return e?e+t:t}},"chain.js":function e(t,n,e){let r;function i(e){var t=r(e);return t._chain=!0,t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"partial.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_executeBound.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){o=e}},2);var s=r((function(e,t){var n=s.placeholder,r=function(){for(var o=0,s=t.length,a=Array(s),u=0;uo}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./isObject.js",{default(e){i=e}},1)},"bind.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_executeBound.js",{default(e){o=e}},2),e.exportDefault(r((function(e,t,n){if(!i(e))throw new TypeError("Bind must be called on a function");var s=r((function(r){return o(e,s,t,this,n.concat(r))}));return s})))},"bindAll.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./bind.js",{default(e){o=e}},2),e.exportDefault(r((function(e,t){var n=(t=i(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=o(e[r],e)}return e})))},"_flatten.js":function e(t,n,e){let r,i,o,s;function a(e,t,n,u){if(u=u||[],t||0===t){if(t<=0)return u.concat(e)}else t=1/0;for(var f=u.length,c=0,l=r(e);c1)a(h,t-1,n,u),f=u.length;else for(var d=0,p=h.length;da}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./isArray.js",{default(e){o=e}},2),e.link("./isArguments.js",{default(e){s=e}},3)},"_isArrayLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"memoize.js":function e(t,n,e){let r;function i(e,t){var n=function(i){var o=n.cache,s=""+(t?t.apply(this,arguments):i);return r(o,s)||(o[s]=e.apply(this,arguments)),o[s]};return n.cache={},n}e.export({default:()=>i}),e.link("./_has.js",{default(e){r=e}},0)},"delay.js":function e(t,n,e){let r;e.link("./restArguments.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})))},"defer.js":function e(t,n,e){let r,i,o;e.link("./partial.js",{default(e){r=e}},0),e.link("./delay.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){o=e}},2),e.exportDefault(r(i,o,1))},"throttle.js":function e(t,n,e){let r;function i(e,t,n){var i,o,s,a,u=0;n||(n={});var f=function(){u=!1===n.leading?0:r(),i=null,a=e.apply(o,s),i||(o=s=null)},c=function(){var c=r();u||!1!==n.leading||(u=c);var l=t-(c-u);return o=this,s=arguments,l<=0||l>t?(i&&(clearTimeout(i),i=null),u=c,a=e.apply(o,s),i||(o=s=null)):i||!1===n.trailing||(i=setTimeout(f,l)),a};return c.cancel=function(){clearTimeout(i),u=0,i=o=s=null},c}e.export({default:()=>i}),e.link("./now.js",{default(e){r=e}},0)},"debounce.js":function e(t,n,e){let r,i;function o(e,t,n){var o,s,a,u,f,c=function(){var r=i()-s;t>r?o=setTimeout(c,t-r):(o=null,n||(u=e.apply(f,a)),o||(a=f=null))},l=r((function(r){return f=this,a=r,s=i(),o||(o=setTimeout(c,t),n&&(u=e.apply(f,a))),u}));return l.cancel=function(){clearTimeout(o),o=a=f=null},l}e.export({default:()=>o}),e.link("./restArguments.js",{default(e){r=e}},0),e.link("./now.js",{default(e){i=e}},1)},"wrap.js":function e(t,n,e){let r;function i(e,t){return r(t,e)}e.export({default:()=>i}),e.link("./partial.js",{default(e){r=e}},0)},"negate.js":function e(t,n,e){function r(e){return function(){return!e.apply(this,arguments)}}e.export({default:()=>r})},"compose.js":function e(t,n,e){function r(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}e.export({default:()=>r})},"after.js":function e(t,n,e){function r(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}e.export({default:()=>r})},"before.js":function e(t,n,e){function r(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}e.export({default:()=>r})},"once.js":function e(t,n,e){let r,i;e.link("./partial.js",{default(e){r=e}},0),e.link("./before.js",{default(e){i=e}},1),e.exportDefault(r(i,2))},"findKey.js":function e(t,n,e){let r,i;function o(e,t,n){t=r(t,n);for(var o=i(e),s,a=0,u=o.length;ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"findIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createPredicateIndexFinder.js":function e(t,n,e){let r,i;function o(e){return function(t,n,o){n=r(n,o);for(var s=i(t),a=e>0?0:s-1;a>=0&&ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"findLastIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"sortedIndex.js":function e(t,n,e){let r,i;function o(e,t,n,o){for(var s=(n=r(n,o,1))(t),a=0,u=i(e);ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"indexOf.js":function e(t,n,e){let r,i,o;e.link("./sortedIndex.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./_createIndexFinder.js",{default(e){o=e}},2),e.exportDefault(o(1,i,r))},"_createIndexFinder.js":function e(t,n,e){let r,i,o;function s(e,t,n){return function(s,a,u){var f=0,c=r(s);if("number"==typeof u)e>0?f=u>=0?u:Math.max(u+c,f):c=u>=0?Math.min(u+1,c):u+c+1;else if(n&&u&&c)return s[u=n(s,a)]===a?u:-1;if(a!=a)return(u=t(i.call(s,f,c),o))>=0?u+f:-1;for(u=e>0?f:c-1;u>=0&&us}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isNaN.js",{default(e){o=e}},2)},"lastIndexOf.js":function e(t,n,e){let r,i;e.link("./findLastIndex.js",{default(e){r=e}},0),e.link("./_createIndexFinder.js",{default(e){i=e}},1),e.exportDefault(i(-1,r))},"find.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s,a=(r(e)?i:o)(e,t,n);if(void 0!==a&&-1!==a)return e[a]}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./findKey.js",{default(e){o=e}},2)},"findWhere.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./find.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"each.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s,a;if(t=r(t,n),i(e))for(s=0,a=e.length;ss}),e.link("./_optimizeCb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"map.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=Array(a),f=0;fs}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"reduce.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createReduce.js":function e(t,n,e){let r,i,o;function s(e){var t=function(t,n,o,s){var a=!r(t)&&i(t),u=(a||t).length,f=e>0?0:u-1;for(s||(o=t[a?a[f]:f],f+=e);f>=0&&f=3;return t(e,o(n,i,4),r,s)}}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){o=e}},2)},"reduceRight.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"filter.js":function e(t,n,e){let r,i;function o(e,t,n){var o=[];return t=r(t,n),i(e,(function(e,n,r){t(e,n,r)&&o.push(e)})),o}e.export({default:()=>o}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"reject.js":function e(t,n,e){let r,i,o;function s(e,t,n){return r(e,i(o(t)),n)}e.export({default:()=>s}),e.link("./filter.js",{default(e){r=e}},0),e.link("./negate.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2)},"every.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"some.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"contains.js":function e(t,n,e){let r,i,o;function s(e,t,n,s){return r(e)||(e=i(e)),("number"!=typeof n||s)&&(n=0),o(e,t,n)>=0}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./indexOf.js",{default(e){o=e}},2)},"invoke.js":function e(t,n,e){let r,i,o,s,a;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./map.js",{default(e){o=e}},2),e.link("./_deepGet.js",{default(e){s=e}},3),e.link("./_toPath.js",{default(e){a=e}},4),e.exportDefault(r((function(e,t,n){var r,u;return i(t)?u=t:(t=a(t),r=t.slice(0,-1),t=t[t.length-1]),o(e,(function(e){var i=u;if(!i){if(r&&r.length&&(e=s(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))})))},"pluck.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./map.js",{default(e){r=e}},0),e.link("./property.js",{default(e){i=e}},1)},"where.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./filter.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"max.js":function e(t,n,e){let r,i,o,s;function a(e,t,n){var a=-1/0,u=-1/0,f,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,h=(e=r(e)?e:i(e)).length;la&&(a=f);else t=o(t,n),s(e,(function(e,n,r){((c=t(e,n,r))>u||c===-1/0&&a===-1/0)&&(a=e,u=c)}));return a}e.export({default:()=>a}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2),e.link("./each.js",{default(e){s=e}},3)},"min.js":function e(t,n,e){let r,i,o,s;function a(e,t,n){var a=1/0,u=1/0,f,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,h=(e=r(e)?e:i(e)).length;la}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2),e.link("./each.js",{default(e){s=e}},3)},"shuffle.js":function e(t,n,e){let r;function i(e){return r(e,1/0)}e.export({default:()=>i}),e.link("./sample.js",{default(e){r=e}},0)},"sample.js":function e(t,n,e){let r,i,o,s,a;function u(e,t,n){if(null==t||n)return r(e)||(e=i(e)),e[s(e.length-1)];var u=a(e),f=o(u);t=Math.max(Math.min(t,f),0);for(var c=f-1,l=0;lu}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){o=e}},2),e.link("./random.js",{default(e){s=e}},3),e.link("./toArray.js",{default(e){a=e}},4)},"toArray.js":function e(t,n,e){let r,i,o,s,a,u,f;e.export({default:()=>l}),e.link("./isArray.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isString.js",{default(e){o=e}},2),e.link("./_isArrayLike.js",{default(e){s=e}},3),e.link("./map.js",{default(e){a=e}},4),e.link("./identity.js",{default(e){u=e}},5),e.link("./values.js",{default(e){f=e}},6);var c=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function l(e){return e?r(e)?i.call(e):o(e)?e.match(c):s(e)?a(e,u):f(e):[]}},"sortBy.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s=0;return t=r(t,n),i(o(e,(function(e,n,r){return{value:e,index:s++,criteria:t(e,n,r)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(ns}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./pluck.js",{default(e){i=e}},1),e.link("./map.js",{default(e){o=e}},2)},"groupBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n].push(t):e[n]=[t]})))},"_group.js":function e(t,n,e){let r,i;function o(e,t){return function(n,o,s){var a=t?[[],[]]:{};return o=r(o,s),i(n,(function(t,r){var i=o(t,r,n);e(a,t,i)})),a}}e.export({default:()=>o}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"indexBy.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n]=t})))},"countBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n]++:e[n]=1})))},"partition.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n?0:1].push(t)}),!0))},"size.js":function e(t,n,e){let r,i;function o(e){return null==e?0:r(e)?e.length:i(e).length}e.export({default:()=>o}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"pick.js":function e(t,n,e){let r,i,o,s,a,u;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){o=e}},2),e.link("./allKeys.js",{default(e){s=e}},3),e.link("./_keyInObj.js",{default(e){a=e}},4),e.link("./_flatten.js",{default(e){u=e}},5),e.exportDefault(r((function(e,t){var n={},r=t[0];if(null==e)return n;i(r)?(t.length>1&&(r=o(r,t[1])),t=s(e)):(r=a,t=u(t,!1,!1),e=Object(e));for(var f=0,c=t.length;fr})},"omit.js":function e(t,n,e){let r,i,o,s,a,u,f;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./negate.js",{default(e){o=e}},2),e.link("./map.js",{default(e){s=e}},3),e.link("./_flatten.js",{default(e){a=e}},4),e.link("./contains.js",{default(e){u=e}},5),e.link("./pick.js",{default(e){f=e}},6),e.exportDefault(r((function(e,t){var n=t[0],r;return i(n)?(n=o(n),t.length>1&&(r=t[1])):(t=s(a(t,!1,!1),String),n=function(e,n){return!u(t,n)}),f(e,n,r)})))},"first.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:r(e,e.length-t)}e.export({default:()=>i}),e.link("./initial.js",{default(e){r=e}},0)},"initial.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"last.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:r(e,Math.max(0,e.length-t))}e.export({default:()=>i}),e.link("./rest.js",{default(e){r=e}},0)},"rest.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,null==t||n?1:t)}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"compact.js":function e(t,n,e){let r;function i(e){return r(e,Boolean)}e.export({default:()=>i}),e.link("./filter.js",{default(e){r=e}},0)},"flatten.js":function e(t,n,e){let r;function i(e,t){return r(e,t,!1)}e.export({default:()=>i}),e.link("./_flatten.js",{default(e){r=e}},0)},"without.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./difference.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t){return i(e,t)})))},"difference.js":function e(t,n,e){let r,i,o,s;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./filter.js",{default(e){o=e}},2),e.link("./contains.js",{default(e){s=e}},3),e.exportDefault(r((function(e,t){return t=i(t,!0,!0),o(e,(function(e){return!s(t,e)}))})))},"uniq.js":function e(t,n,e){let r,i,o,s;function a(e,t,n,a){r(t)||(a=n,n=t,t=!1),null!=n&&(n=i(n,a));for(var u=[],f=[],c=0,l=o(e);ca}),e.link("./isBoolean.js",{default(e){r=e}},0),e.link("./_cb.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){o=e}},2),e.link("./contains.js",{default(e){s=e}},3)},"union.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./uniq.js",{default(e){i=e}},1),e.link("./_flatten.js",{default(e){o=e}},2),e.exportDefault(r((function(e){return i(o(e,!0,!0))})))},"intersection.js":function e(t,n,e){let r,i;function o(e){for(var t=[],n=arguments.length,o=0,s=r(e);oo}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./contains.js",{default(e){i=e}},1)},"unzip.js":function e(t,n,e){let r,i,o;function s(e){for(var t=e&&r(e,i).length||0,n=Array(t),s=0;ss}),e.link("./max.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.link("./pluck.js",{default(e){o=e}},2)},"zip.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./unzip.js",{default(e){i=e}},1),e.exportDefault(r(i))},"object.js":function e(t,n,e){let r;function i(e,t){for(var n={},i=0,o=r(e);ii}),e.link("./_getLength.js",{default(e){r=e}},0)},"range.js":function e(t,n,e){function r(e,t,n){null==t&&(t=e||0,e=0),n||(n=tr})},"chunk.js":function e(t,n,e){let r;function i(e,t){if(null==t||t<1)return[];for(var n=[],i=0,o=e.length;ii}),e.link("./_setup.js",{slice(e){r=e}},0)},"mixin.js":function e(t,n,e){let r,i,o,s,a;function u(e){return i(o(e),(function(t){var n=r[t]=e[t];r.prototype[t]=function(){var e=[this._wrapped];return s.apply(e,arguments),a(this,n.apply(r,e))}})),r}e.export({default:()=>u}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./functions.js",{default(e){o=e}},2),e.link("./_setup.js",{push(e){s=e}},3),e.link("./_chainResult.js",{default(e){a=e}},4)},"_chainResult.js":function e(t,n,e){let r;function i(e,t){return e._chain?r(t).chain():t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"underscore-array-methods.js":function e(t,n,e){let r,i,o,s;e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./_setup.js",{ArrayProto(e){o=e}},2),e.link("./_chainResult.js",{default(e){s=e}},3),i(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=o[e];r.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),s(this,n)}})),i(["concat","join","slice"],(function(e){var t=o[e];r.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),s(this,e)}})),e.exportDefault(r)}}}}},cachers:{"package.json":function e(t,n,e){e.exports={name:"@steedos/cachers",version:"2.5.15-beta.12",main:"lib/index.js"}},lib:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getCacherNames=n.clearCacher=n.getCacher=void 0;var r={},i=t("./memory"),o=t("./memory-lru"),s=function(e,t){return r[e]||(e.startsWith("lru.")?r[e]=new o.MemoryLRUCacher(t):r[e]=new i.MemoryCacher),r[e]};n.getCacher=s;var a=function(e){r[e]&&r[e].clear()};n.clearCacher=a;var u=function(){return Object.keys(r)};n.getCacherNames=u},"memory.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryCacher=void 0;var r=t("lodash"),i=function(){function e(){this.cache={}}return e.prototype.get=function(e){return this.cache[e]},e.prototype.delete=function(e){delete this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.clear=function(){this.cache={}},e.prototype.keys=function(){return(0,r.keys)(this.cache)},e.prototype.values=function(){return(0,r.values)(this.cache)},e}();n.MemoryCacher=i},"memory-lru.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryLRUCacher=void 0;var r=t("lodash"),i=t("lru-cache"),o={max:5e3,ttl:null,keygen:null,maxParamsLength:null},s=function(){function e(e){this.opts=(0,r.defaultsDeep)(e,o),this.cache=new i({max:this.opts.max,maxAge:this.opts.ttl?1e3*this.opts.ttl:null,updateAgeOnGet:!!this.opts.ttl})}return e.prototype.get=function(e){return this.cache.get(e)},e.prototype.set=function(e,t,n){return this.cache.set(e,t,n)},e.prototype.delete=function(e){return this.cache.delete(e)},e.prototype.clear=function(){return this.cache.clear()},e.prototype.keys=function(){return this.cache.keys()},e.prototype.values=function(){return this.cache.values()},e}();n.MemoryLRUCacher=s}},node_modules:{"lru-cache":{"package.json":function e(t,n,e){e.exports={name:"lru-cache",version:"7.14.1",main:"index.js"}},"index.js":function e(t,n,e){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,i="function"==typeof AbortController,o=i?AbortController:class e{constructor(){this.signal=new u}abort(){this.signal.dispatchEvent("abort")}},s="function"==typeof AbortSignal,a="function"==typeof o.AbortSignal,u=s?AbortSignal:a?o.AbortController:class e{constructor(){this.aborted=!1,this._listeners=[]}dispatchEvent(e){if("abort"===e){this.aborted=!0;const t={type:e,target:this};this.onabort(t),this._listeners.forEach(e=>e(t),this)}}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},f=new Set,c=(e,t)=>{const n=`LRU_CACHE_OPTION_${e}`;p(n)&&g(n,`${e} option`,`options.${t}`,_)},l=(e,t)=>{const n=`LRU_CACHE_METHOD_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} method`,`cache.${t}()`,i)}},h=(e,t)=>{const n=`LRU_CACHE_PROPERTY_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} property`,`cache.${t}`,i)}},d=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},p=e=>!f.has(e),g=(e,t,n,r)=>{f.add(e);const i=`The ${t} is deprecated. Please use ${n} instead.`;d(i,"DeprecationWarning",e,r)},b=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),m=e=>b(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?v:null:null;class v extends Array{constructor(e){super(e),this.fill(0)}}class y{constructor(e){if(0===e)return[];const t=m(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class _{constructor(e={}){const{max:t=0,ttl:n,ttlResolution:r=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:s,allowStale:a,dispose:u,disposeAfter:l,noDisposeOnSet:h,noUpdateTTL:g,maxSize:v=0,maxEntrySize:w=0,sizeCalculation:k,fetchMethod:j,fetchContext:x,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:D}=e,{length:E,maxAge:A,stale:C}=e instanceof _?{}:e;if(0!==t&&!b(t))throw new TypeError("max option must be a nonnegative integer");const M=t?m(t):Array;if(!M)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=v,this.maxEntrySize=w||this.maxSize,this.sizeCalculation=k||E,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=j||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=x,!this.fetchMethod&&void 0!==x)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new M(t),this.prev=new M(t),this.head=0,this.tail=0,this.free=new y(t),this.initialFill=1,this.size=0,"function"==typeof u&&(this.dispose=u),"function"==typeof l?(this.disposeAfter=l,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!S,0!==this.maxEntrySize){if(0!==this.maxSize&&!b(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!b(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!a||!!C,this.noDeleteOnStaleGet=!!D,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!s,this.ttlResolution=b(r)||0===r?r:1,this.ttlAutopurge=!!i,this.ttl=n||A||0,this.ttl){if(!b(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";if(p(e)){f.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";d(t,"UnboundedCacheWarning",e,_)}}C&&c("stale","allowStale"),A&&c("maxAge","ttl"),E&&c("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new v(this.max),this.starts=new v(this.max),this.setItemTTL=(e,t,n=r.now())=>{if(this.starts[e]=0!==t?n:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const n=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);n.unref&&n.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0};let e=0;const t=()=>{const t=r.now();if(this.ttlResolution>0){e=t;const n=setTimeout(()=>e=0,this.ttlResolution);n.unref&&n.unref()}return t};this.getRemainingTTL=n=>{const r=this.keyMap.get(n);return void 0===r?0:0===this.ttls[r]||0===this.starts[r]?1/0:this.starts[r]+this.ttls[r]-(e||t())},this.isStale=n=>0!==this.ttls[n]&&0!==this.starts[n]&&(e||t())-this.starts[n]>this.ttls[n]}updateItemAge(e){}setItemTTL(e,t,n){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new v(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,n,r)=>{if(this.isBackgroundFetch(t))return 0;if(!b(n)){if(!r)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!b(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.addItemSize=(e,t)=>{if(this.sizes[e]=t,this.maxSize){const t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e]}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,n,r){if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const n of this.indexes())if(e(this.valList[n],this.keyList[n],this))return this.get(this.keyList[n],t)}forEach(e,t=this){for(const n of this.indexes())e.call(t,this.valList[n],this.keyList[n],this)}rforEach(e,t=this){for(const n of this.rindexes())e.call(t,this.valList[n],this.keyList[n],this)}get prune(){return l("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes({allowStale:!0})){const n=this.keyList[t],i=this.valList[t],o=this.isBackgroundFetch(i)?i.__staleWhileFetching:i,s={value:o};if(this.ttls){s.ttl=this.ttls[t];const e=r.now()-this.starts[t];s.start=Math.floor(Date.now()-e)}this.sizes&&(s.size=this.sizes[t]),e.unshift([n,s])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}dispose(e,t,n){}set(e,t,{ttl:n=this.ttl,start:r,noDisposeOnSet:i=this.noDisposeOnSet,size:o=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(o=this.requireSize(e,t,o,s),this.maxEntrySize&&o>this.maxEntrySize)return this.delete(e),this;let u=0===this.size?void 0:this.keyMap.get(e);if(void 0===u)u=this.newIndex(),this.keyList[u]=e,this.valList[u]=t,this.keyMap.set(e,u),this.next[this.tail]=u,this.prev[u]=this.tail,this.tail=u,this.size++,this.addItemSize(u,o),a=!1;else{const n=this.valList[u];t!==n&&(this.isBackgroundFetch(n)?n.__abortController.abort():i||(this.dispose(n,e,"set"),this.disposeAfter&&this.disposed.push([n,e,"set"])),this.removeItemSize(u),this.valList[u]=t,this.addItemSize(u,o)),this.moveToTail(u)}if(0===n||0!==this.ttl||this.ttls||this.initializeTTLTracking(),a||this.setItemTTL(u,n,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,n=this.keyList[t],r=this.valList[t];return this.isBackgroundFetch(r)?r.__abortController.abort():(this.dispose(r,n,"evict"),this.disposeAfter&&this.disposed.push([r,n,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(n),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const n=this.keyMap.get(e);return void 0!==n&&!this.isStale(n)&&(t&&this.updateItemAge(n),!0)}peek(e,{allowStale:t=this.allowStale}={}){const n=this.keyMap.get(e);if(void 0!==n&&(t||!this.isStale(n))){const e=this.valList[n];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,n,r){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const s=new o,a={signal:s.signal,options:n,context:r},u=t=>(s.signal.aborted||this.set(e,t,a.options),t),f=r=>{if(this.valList[t]===l){const r=!n.noDeleteOnFetchRejection||void 0===l.__staleWhileFetching;r?this.delete(e):this.valList[t]=l.__staleWhileFetching}if(l.__returned===l)throw r},c=t=>t(this.fetchMethod(e,i,a)),l=new Promise(c).then(u,f);return l.__abortController=s,l.__staleWhileFetching=i,l.__returned=null,void 0===t?(this.set(e,l,a.options),t=this.keyMap.get(e)):this.valList[t]=l,l}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,fetchContext:c=this.fetchContext,forceRefresh:l=!1}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r});const h={allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:i,noDisposeOnSet:o,size:s,sizeCalculation:a,noUpdateTTL:u,noDeleteOnFetchRejection:f};let d=this.keyMap.get(e);if(void 0===d){const t=this.backgroundFetch(e,d,h,c);return t.__returned=t}{const r=this.valList[d];if(this.isBackgroundFetch(r))return t&&void 0!==r.__staleWhileFetching?r.__staleWhileFetching:r.__returned=r;if(!l&&!this.isStale(d))return this.moveToTail(d),n&&this.updateItemAge(d),r;const i=this.backgroundFetch(e,d,h,c);return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i.__returned=i}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet}={}){const i=this.keyMap.get(e);if(void 0!==i){const o=this.valList[i],s=this.isBackgroundFetch(o);if(this.isStale(i))return s?t?o.__staleWhileFetching:void 0:(r||this.delete(e),t?o:void 0);if(s)return;return this.moveToTail(i),n&&this.updateItemAge(i),o}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return l("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const n=this.keyMap.get(e);if(void 0!==n)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(n);const t=this.valList[n];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const n=this.keyList[e];this.dispose(t,n,"delete"),this.disposeAfter&&this.disposed.push([t,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return l("reset","clear"),this.clear}get length(){return h("length","size"),this.size}static get AbortController(){return o}static get AbortSignal(){return u}}e.exports=_}}}}},tslib:{"package.json":function e(t,n,e){e.exports={name:"tslib",version:"2.3.1",module:"tslib.es6.js",main:"tslib.js"}},"tslib.es6.js":function e(t,n,e){e.export({__extends:()=>i,__assign:()=>o,__rest:()=>s,__decorate:()=>a,__param:()=>u,__metadata:()=>f,__awaiter:()=>c,__generator:()=>l,__createBinding:()=>h,__exportStar:()=>d,__values:()=>p,__read:()=>g,__spread:()=>b,__spreadArrays:()=>m,__spreadArray:()=>v,__await:()=>y,__asyncGenerator:()=>_,__asyncDelegator:()=>w,__asyncValues:()=>k,__makeTemplateObject:()=>j,__importStar:()=>S,__importDefault:()=>D,__classPrivateFieldGet:()=>E,__classPrivateFieldSet:()=>A}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. diff --git a/server/bundle/programs/web.browser.legacy/a295cec1971530e01efde31e17b7abedc91f0ccc.stats.json b/server/bundle/programs/web.browser.legacy/d5f372170ee952f1ff72451eb1632c94a7763f93.stats.json similarity index 99% rename from server/bundle/programs/web.browser.legacy/a295cec1971530e01efde31e17b7abedc91f0ccc.stats.json rename to server/bundle/programs/web.browser.legacy/d5f372170ee952f1ff72451eb1632c94a7763f93.stats.json index 8dca700bf6..dbedfffd57 100644 --- a/server/bundle/programs/web.browser.legacy/a295cec1971530e01efde31e17b7abedc91f0ccc.stats.json +++ b/server/bundle/programs/web.browser.legacy/d5f372170ee952f1ff72451eb1632c94a7763f93.stats.json @@ -4,7 +4,7 @@ "version": "2.6.0" }, "totalMinifiedBytes": 4282901, - "totalMinifiedGzipBytes": 1079253, + "totalMinifiedGzipBytes": 1079250, "minifiedBytesByPackage": { "packages/meteor.js": 9504, "packages/coffeescript.js": 32, diff --git a/server/bundle/programs/web.browser.legacy/program.json b/server/bundle/programs/web.browser.legacy/program.json index 28452e5b27..2e5ee4a9a6 100644 --- a/server/bundle/programs/web.browser.legacy/program.json +++ b/server/bundle/programs/web.browser.legacy/program.json @@ -2,24 +2,24 @@ "format": "web-program-pre1", "manifest": [ { - "path": "a295cec1971530e01efde31e17b7abedc91f0ccc.js", + "path": "d5f372170ee952f1ff72451eb1632c94a7763f93.js", "where": "client", "type": "js", "cacheable": true, - "url": "/a295cec1971530e01efde31e17b7abedc91f0ccc.js?meteor_js_resource=true", + "url": "/d5f372170ee952f1ff72451eb1632c94a7763f93.js?meteor_js_resource=true", "size": 4282901, - "hash": "a295cec1971530e01efde31e17b7abedc91f0ccc", - "sri": "YDgu77Shu403tNwxCFkodCkuum9vyd/sA0rmR9JlY3HKfCFZshvzYpnjy27Q78MVSdqLAd6sijMLh+mIaLLhtQ==" + "hash": "d5f372170ee952f1ff72451eb1632c94a7763f93", + "sri": "vT/ysKtF2HlHqkVCrapn1azq8uznRozqp/IF1Nhe20erDpLs5KbWd+jJzWfNO8Og+89mjIuCz4Q39HsVB2/DLA==" }, { - "path": "a295cec1971530e01efde31e17b7abedc91f0ccc.stats.json", + "path": "d5f372170ee952f1ff72451eb1632c94a7763f93.stats.json", "where": "client", "type": "json", "cacheable": true, - "url": "/a295cec1971530e01efde31e17b7abedc91f0ccc.stats.json?meteor_js_resource=true", + "url": "/d5f372170ee952f1ff72451eb1632c94a7763f93.stats.json?meteor_js_resource=true", "size": 92296, - "hash": "1a8a85ddb625b712be7a166cb5523c851420a81d", - "sri": "qhAOnFhJWcSl67s+2u5unMGSf06A+s70mWGWZccPamOL4MLCNHzOdrhA3tsCMrqq/NMMFP6L/Rb9nyZXqzQsNg==" + "hash": "787a1e57ea24f18f68b02394f1e00c2120ac15ca", + "sri": "tVwekOle0r56jJQoXw7edGlfjIHX+FYYsi4fdJUex6FpEXK027cVF0wVYVtxoKjYPrvhUSnyacaM/DUzAMh1UQ==" }, { "path": "dynamic/node_modules/formBuilder/dist/form-builder.min.js", diff --git a/server/bundle/programs/web.browser/a295cec1971530e01efde31e17b7abedc91f0ccc.js b/server/bundle/programs/web.browser/d5f372170ee952f1ff72451eb1632c94a7763f93.js similarity index 99% rename from server/bundle/programs/web.browser/a295cec1971530e01efde31e17b7abedc91f0ccc.js rename to server/bundle/programs/web.browser/d5f372170ee952f1ff72451eb1632c94a7763f93.js index 8ab4a5bfb2..13fbad54bf 100644 --- a/server/bundle/programs/web.browser/a295cec1971530e01efde31e17b7abedc91f0ccc.js +++ b/server/bundle/programs/web.browser/d5f372170ee952f1ff72451eb1632c94a7763f93.js @@ -68,7 +68,7 @@ object-assign * Copyright 2011-2019 Twitter, Inc. * Licensed under the MIT license */ -if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,r=this,i;return e(this).one("bsTransitionEnd",(function(){n=!0})),setTimeout((function(){n||e(r).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};function r(t){return this.each((function(){var r=e(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),"string"==typeof t&&i[t].call(r)}))}n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.close=function(t){var r=e(this),i=r.attr("data-target");i||(i=(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var o=e(document).find(i);function s(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=r.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",s).emulateTransitionEnd(n.TRANSITION_DURATION):s())};var i=e.fn.alert;e.fn.alert=r,e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.isLoading=!1};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.button"),o="object"==typeof n&&n;i||r.data("bs.button",i=new t(this,o)),"toggle"==n?i.toggle():n&&i.setState(n)}))}t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var n="disabled",r=this.$element,i=r.is("input")?"val":"html",o=r.data();t+="Text",null==o.resetText&&r.data("resetText",r[i]()),setTimeout(e.proxy((function(){r[i](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n).prop(n,!1))}),this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var r=e.fn.button;e.fn.button=n,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=r,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var r=e(t.target).closest(".btn");n.call(r,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(jQuery),function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.carousel"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n),s="string"==typeof n?n:o.slide;i||r.data("bs.carousel",i=new t(this,o)),"number"==typeof n?i.to(n):s?i[s]():o.interval&&i.pause().cycle()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),r;if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var i,o=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(o)},t.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(n,r){var i=this.$element.find(".item.active"),o=r||this.getItemForDirection(n,i),s=this.interval,a="next"==n?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var f=o[0],c=e.Event("slide.bs.carousel",{relatedTarget:f,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=e(this.$indicators.children()[this.getItemIndex(o)]);l&&l.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:f,direction:a});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(n),"object"==typeof o&&o.length&&o[0].offsetWidth,i.addClass(a),o.addClass(a),i.one("bsTransitionEnd",(function(){o.removeClass([n,a].join(" ")).addClass("active"),i.removeClass(["active",a].join(" ")),u.sliding=!1,setTimeout((function(){u.$element.trigger(h)}),0)})).emulateTransitionEnd(t.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}};var r=e.fn.carousel;e.fn.carousel=n,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=r,this};var i=function(t){var r=e(this),i=r.attr("href");i&&(i=i.replace(/.*(?=#[^\s]+$)/,""));var o=r.attr("data-target")||i,s=e(document).find(o);if(s.hasClass("carousel")){var a=e.extend({},s.data(),r.data()),u=r.attr("data-slide-to");u&&(a.interval=!1),n.call(s,a),u&&s.data("bs.carousel").to(u),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var t=e(this);n.call(t,t.data())}))}))}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.$trigger=e('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var n,r=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(r)}function r(n){return this.each((function(){var r=e(this),i=r.data("bs.collapse"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n);!i&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),i||r.data("bs.collapse",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e;return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(n=i.data("bs.collapse"))&&n.transitioning)){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(r.call(i,"hide"),n||i.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var u=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[s](this.$element[0][u])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=e.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return i.call(this);this.$element[r](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,r){var i=e(r);this.addAriaAndCollapsedClass(n(i),i)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var i=e.fn.collapse;e.fn.collapse=r,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var i=e(this);i.attr("data-target")||t.preventDefault();var o=n(i),s,a=o.data("bs.collapse")?"toggle":i.data();r.call(o,a)}))}(jQuery),function(e){"use strict";var t=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(t){e(t).on("click.bs.dropdown",this.toggle)};function i(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r="#"!==n?e(document).find(n):null;return r&&r.length?r:t.parent()}function o(r){r&&3===r.which||(e(t).remove(),e(n).each((function(){var t=e(this),n=i(t),o={relatedTarget:this};n.hasClass("open")&&(r&&"click"==r.type&&/input|textarea/i.test(r.target.tagName)&&e.contains(n[0],r.target)||(n.trigger(r=e.Event("hide.bs.dropdown",o)),r.isDefaultPrevented()||(t.attr("aria-expanded","false"),n.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))})))}function s(t){return this.each((function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof t&&i[t].call(n)}))}r.VERSION="3.4.1",r.prototype.toggle=function(t){var n=e(this);if(!n.is(".disabled, :disabled")){var r=i(n),s=r.hasClass("open");if(o(),!s){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",o);var a={relatedTarget:this};if(r.trigger(t=e.Event("show.bs.dropdown",a)),t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(e.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var r=e(this);if(t.preventDefault(),t.stopPropagation(),!r.is(".disabled, :disabled")){var o=i(r),s=o.hasClass("open");if(!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(n).trigger("focus"),r.trigger("click");var a=" li:not(.disabled):visible a",u=o.find(".dropdown-menu"+a);if(u.length){var f=u.index(t.target);38==t.which&&f>0&&f--,40==t.which&&fdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},f.prototype.init=function(t,n,r){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var s=i[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",u="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},f.prototype.getDefaults=function(){return f.DEFAULTS},f.prototype.getOptions=function(n){var r=this.$element.data();for(var i in r)r.hasOwnProperty(i)&&-1!==e.inArray(i,t)&&delete r[i];return(n=e.extend({},this.getDefaults(),r,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=u(n.template,n.whiteList,n.sanitizeFn)),n},f.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,(function(e,r){n[e]!=r&&(t[e]=r)})),t},f.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout((function(){"in"==n.hoverState&&n.show()}),n.options.delay.show)}},f.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},f.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout((function(){"out"==n.hoverState&&n.hide()}),n.options.delay.hide)}},f.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var r=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,u=a.test(s);u&&(s=s.replace(a,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?i.appendTo(e(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),l=i[0].offsetWidth,h=i[0].offsetHeight;if(u){var d=s,p=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+h>p.bottom?"top":"top"==s&&c.top-hp.width?"left":"left"==s&&c.left-ls.top+s.height&&(i.top=s.top+s.height-u)}else{var f=t.left-o,c=t.left+o+n;fs.right&&(i.left=s.left+s.width-c)}return i},f.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},f.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},f.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},f.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},f.prototype.enable=function(){this.enabled=!0},f.prototype.disable=function(){this.enabled=!1},f.prototype.toggleEnabled=function(){this.enabled=!this.enabled},f.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},f.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},f.prototype.sanitizeHtml=function(e){return u(e,this.options.whiteList,this.options.sanitizeFn)};var l=e.fn.tooltip;e.fn.tooltip=c,e.fn.tooltip.Constructor=f,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=l,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");function n(n){return this.each((function(){var r=e(this),i=r.data("bs.popover"),o="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.popover",i=new t(this,o)),"string"==typeof n&&i[n]())}))}t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();if(this.options.html){var r=typeof n;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===r&&(n=this.sanitizeHtml(n))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===r?"html":"append"](n)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(n);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var r=e.fn.popover;e.fn.popover=n,e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=r,this}}(jQuery),function(e){"use strict";function t(n,r){this.$body=e(document.body),this.$scrollElement=e(n).is(document.body)?e(window):e(n),this.options=e.extend({},t.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each((function(){var r=e(this),i=r.data("bs.scrollspy"),o="object"==typeof n&&n;i||r.data("bs.scrollspy",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),i=t.data("target")||t.attr("href"),o=/^#./.test(i)&&e(i);return o&&o.length&&o.is(":visible")&&[[o[n]().top+r,i]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.getScrollHeight(),n=this.options.offset+t-this.$scrollElement.height(),r=this.offsets,i=this.targets,o=this.activeTarget,s;if(this.scrollHeight!=t&&this.refresh(),e>=n)return o!=(s=i[i.length-1])&&this.activate(s);if(o&&e=r[s]&&(void 0===r[s+1]||e .active"),s=i&&e.support.transition&&(o.length&&o.hasClass("fade")||!!r.find("> .fade").length);function a(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&s?o.one("bsTransitionEnd",a).emulateTransitionEnd(t.TRANSITION_DURATION):a(),o.removeClass("in")};var r=e.fn.tab;e.fn.tab=n,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=r,this};var i=function(t){t.preventDefault(),n.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(e){"use strict";var t=function(n,r){this.options=e.extend({},t.DEFAULTS,r);var i=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.affix"),o="object"==typeof n&&n;i||r.data("bs.affix",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,n,r){var i=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return i=e-r&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),r=this.options.offset,i=r.top,o=r.bottom,s=Math.max(e(document).height(),e(document.body).height());"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var a=this.getState(s,n,i,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var u="affix"+(a?"-"+a:""),f=e.Event(u+".bs.affix");if(this.$element.trigger(f),f.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-n-o})}};var r=e.fn.affix;e.fn.affix=n,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=r,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var t=e(this),r=t.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),n.call(t,r)}))}))}(jQuery)}}}},fibers:{"package.json":function e(t,n,e){e.exports={name:"fibers",version:"5.0.3",main:"fibers"}},"fibers.js":function e(t,n,e,r,i){if(process.fiberLib)e.exports=process.fiberLib;else{var o=t("fs"),s=t("path"),a=t("detect-libc");Math.random();var u=s.join(i,"bin",process.platform+"-"+process.arch+"-"+process.versions.modules+("linux"===process.platform?"-"+a.family:""),"fibers");try{process.fiberLib=e.exports=t(u).Fiber}catch(c){throw console.error("## There is an issue with `node-fibers` ##\n`"+u+".node` is missing.\n\nTry running this to fix the issue: "+process.execPath+" "+i.replace(" ","\\ ")+"/build"),console.error(c.stack||c.message||c),new Error("Missing binary. See message above.")}f(e.exports)}function f(e){try{var t=process.binding("async_wrap"),n;if(t.asyncIdStackSize instanceof Function)n=t.asyncIdStackSize;else{if(void 0===t.constants.kStackLength)throw new Error("Couldn't figure out how to get async stack size");l=t.constants.kStackLength,n=function(){return t.async_hook_fields[l]}}var r=t.popAsyncContext||t.popAsyncIds,i=t.pushAsyncContext||t.pushAsyncIds,o,s;if(!r||!i)throw new Error("Push/pop do not exist");o=void 0===t.constants.kExecutionAsyncId?t.constants.kCurrentAsyncId:t.constants.kExecutionAsyncId,s=void 0===t.constants.kTriggerAsyncId?t.constants.kCurrentTriggerId:t.constants.kTriggerAsyncId;var a=t.async_id_fields||t.async_uid_fields;function u(){for(var e=n(),t=new Array(e);e>0;--e){var i=a[o];t[e-1]={asyncId:i,triggerId:a[s]},r(i)}return t}function f(e){for(var t=0;t0)i.changeLanguage(e,r);else if(0!=a[u]){a[u]=0;var f=new XMLHttpRequest;f.overrideMimeType("application/json"),f.open("GET",u,!1),f.send(null),200===f.status?a[u]=1:a[u]=-1,n.addResourceBundle(e,s,JSON.parse(f.response)||{}),i.changeLanguage(e,r)}};n.changeLanguage=p;var g=function(e,t,n){return i.format(e,t,n)};n.format=g;var b=function(){return i.languages};n.getLanguages=b;var m=function(e,t){return i.loadLanguages(e,t)};n.loadLanguages=m;var v=function(e,t){return i.loadNamespaces(e,t)};n.loadNamespaces=v;var y=function(e,t){return i.on(e,t)};n.on=y;var _=function(e,t){return i.off(e,t)};n.off=_,r.__exportStar(t("./i18n/i18n"),n),r.__exportStar(t("./i18n/i18n.app"),n),r.__exportStar(t("./translations"),n)},i18n:{"i18n.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fallbackKeys=n.getObjectI18nTemplate=n.translationI18nObjects=n.addObjectsI18n=n.translationI18nObject=void 0;var r=t("../index"),i=t("underscore"),o=t("clone"),s="_",a="base",u="core",f="translation",c=function(e,t){var n={lng:t,ns:f};if((0,r.exists)(e,n))return(0,r._t)(e,n)},l=function(e){return"".concat(e,"__object")},h=function(e,t){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t)},d=function(e,t){var n=h(e,t);return"".concat(n).concat("_","inlineHelpText")},p=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","group").concat("_").concat(n)},g=function(e,t,n){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t).concat("_","options").concat("_").concat(n)},b=function(e,t){return"".concat(e).concat("_","action").concat("_").concat(t)},m=function(e,t){return"".concat(e).concat("_","listview").concat("_").concat(t)},v=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},y=function(e,t,n){var r=l(t);return c(r,e)||n||""},_=function(e,t,n,r,i){var o=h(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=_(e,a,n,r,i))}return s||r||""},w=function(e,t,n,r,i){var o=d(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=w(e,a,n,r,i))}return s||r||""},k=function(e,t,n,r){var i=p(t,n);return c(i,e)||r||""},j=function(e,t,n,r,i,o){var s=g(t,n,r),a=c(s,e);if(!a){var u=v(o);u&&"base"!=t&&"core"!=t&&(a=j(e,u,n,r,i,o))}return a||i||""},x=function(e,t,n,r,i){var o=b(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=x(e,a,n,r,i))}return s||r||""},S=function(e,t,n,r,i){var o=m(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=S(e,a,n,r,i))}return s||r||""},D=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},E=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;return e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(D(e))}))):n.push(D(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},A=function(e,t,n){n.label=y(e,t,n.label),i.each(n.fields,(function(r,o){if(r.label=_(e,t,o,r.label,n.datasource),r.inlineHelpText&&(r.inlineHelpText=w(e,t,o,r.inlineHelpText,n.datasource)),r.group&&(r.group=k(e,t,r.group,r.group)),r.options){var s=[];i.each(r.options,(function(r){if(i.has(r,"value")){var a=j(e,t,o,r.value,r.label,n.datasource);s.push(i.extend({},r,{label:a}))}else s.push(r)})),r.options=s}})),i.each(n.actions,(function(r,i){r.label=x(e,t,i,r.label,n.datasource)})),i.each(n.list_views,(function(r,i){r.label=S(e,t,i,r.label,n.datasource)}))};n.translationI18nObject=A;var C=function(e){i.each(e,(function(e){(0,r.addResourceBundle)(e.lng,f,e.data,!0,!0)}))};n.addObjectsI18n=C;var M=function(e,t){i.each(t,(function(t,r){(0,n.translationI18nObject)(e,r,t)}))};n.translationI18nObjects=M;var O=function(e,t,n){var r=o(n);E(r);var s={};return s[l(t)]=y(e,t,r.label),i.each(r.fields,(function(n,o){s[h(t,o)]=_(e,t,o,n.label),n.inlineHelpText&&(s[d(t,o)]=w(e,t,o,n.inlineHelpText,r.datasource)),n.group&&(s[p(t,n.group)]=k(e,t,n.group,n.group)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(s[g(t,o,n.value)]=j(e,t,o,n.value,n.label))}))})),i.each(r.actions,(function(n,r){s[b(t,r)]=x(e,t,r,n.label)})),i.each(r.list_views,(function(n,r){s[m(t,r)]=S(e,t,r,n.label)})),s};n.getObjectI18nTemplate=O,n.fallbackKeys={getObjectLabelKey:l,getObjectFieldLabelKey:h,getObjectFieldInlineHelpTextLabelKey:d,getObjectFieldGroupKey:p,getObjectFieldOptionsLabelKey:g,getObjectActionLabelKey:b,getObjectListviewLabelKey:m}},"i18n.app.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.appFallbackKeys=n.getAppI18nTemplate=n.translationI18nApps=n.translationI18nMenus=void 0;var r=t("../index"),i=t("underscore"),o=t("clone"),s="translation",a="_",u=function(e,t){var n={lng:t,ns:s};if((0,r.exists)(e,n))return(0,r._t)(e,n)},f=function(e){return"app".concat("_").concat(e).concat("_","name")},c=function(e){return"app".concat("_").concat(e).concat("_","description")},l=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","tab_group").concat("_").concat(n)},h=function(e){return"menu".concat("_").concat(e)},d=function(e){return"tab".concat("_").concat(e)},p=function(e,t,n){var r=f(t);return u(r,e)||n||""},g=function(e,t,n){var r=c(t);return u(r,e)||n||""},b=function(e,t,n){var r=h(t);return u(r,e)||n||""},m=function(e,t,r){r.label=p(e,t,r.label||r.name),r.description=g(e,t,r.description),(0,n.translationI18nMenus)(e,r.admin_menus)},v=function(e,t){i.each(t,(function(t){var n=b(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationI18nMenus=v;var y=function(e,t){i.each(t,(function(t,n){m(e,n,t)}))};n.translationI18nApps=y;var _=function(e,t,n){var r=o(n),s={};return s[f(t)]=p(e,t,r.label||r.name),s[c(t)]=g(e,t,r.description),i.each(r.admin_menus,(function(t){s[h(t._id)]=b(e,t._id,t.label||t.name)})),s};n.getAppI18nTemplate=_,n.appFallbackKeys={getAppLabelKey:f,getAppDescriptionKey:c,getAppGroupKey:l,getMenuLabelKey:h,getTabKey:d}}},translations:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SteedosTranslationPrefixKeys=n.convertObject=void 0;var r=t("tslib"),i=t("underscore");r.__exportStar(t("./objectTranslation"),n),r.__exportStar(t("./translation"),n),r.__exportStar(t("./templates/objectTranslation"),n),r.__exportStar(t("./templates/translation"),n);var o=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},s=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(o(e))}))):n.push(o(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else if(e.options&&i.isArray(e.options))try{i.forEach(e.options,(function(e){i.isString(e)?n.push(o(e)):n.push(e)})),e.options=n}catch(r){console.error("Creator.convertFieldsOptions",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},a;n.convertObject=s,function(e){e.Object="CustomObject",e.Field="CustomField",e.Action="CustomAction",e.Listview="CustomListview",e.Permission="CustomPermission",e.ValidationRule="CustomValidationRule",e.Application="CustomApplication",e.Tab="CustomTabs",e.Permissionset="CustomPermissionset",e.Profile="CustomProfile",e.Report="CustomReport",e.Workflow="Workflow",e.Layout="Layout",e.Client="Client",e.Server="Server",e.Function="Function",e.Router="Router",e.Trigger="Trigger"}(a=n.SteedosTranslationPrefixKeys||(n.SteedosTranslationPrefixKeys={}))},"objectTranslation.js":function e(t,n,e,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addObjectsTranslation=n.getObjectTranslationTemplate=n.translationObjects=n.translationObject=n.translationObjectLabel=void 0;var i=t("underscore"),o=t("./"),s=t("../index"),a=t("./index"),u=t("../i18n/i18n"),f=t("lodash"),c=t("crypto"),l,h=(0,t("@steedos/cachers").getCacher)("lru.translations.objects");function d(e){var t;return c.createHash("md5").update(e).digest("hex")}var p=function(e,t){return"".concat(e,"_").concat(t.name,"_").concat(d(JSON.stringify(t)))},g=t("clone"),b=".",m="base",v="core",y="translation",_="object",w="field",k="listview",j="action",x=function(e,t){var n={lng:t,ns:y,keySeparator:!1};if((0,s.exists)(e,n))return(0,s._t)(e,n)},S=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},D=function(e){switch(e){case"object":return o.SteedosTranslationPrefixKeys.Object;case"field":return o.SteedosTranslationPrefixKeys.Field;case"listview":return o.SteedosTranslationPrefixKeys.Listview;case"action":return o.SteedosTranslationPrefixKeys.Action;default:return"CustomLabels"}},E=function(e){var t;return[D(),e].join(".")},A=function(e){var t;return[D("object"),e,"label"].join(".")},C=function(e){var t;return[D("object"),e,"description"].join(".")},M=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"label"].join(".")},O=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"help"].join(".")},T=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"description"].join(".")},B=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_"),r;return[D("field"),e,"group",n].join(".")},I=function(e,t,n){var r;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"options",n].join(".")},R=function(e,t){var n;return[D("action"),e,t].join(".")},F=function(e,t){var n;return[D("listview"),e,t].join(".")},P=function(e,t,n){var r,i=[A(t)],o=u.fallbackKeys.getObjectLabelKey(t);return o&&i.push(o),x(i,e)||n||""};n.translationObjectLabel=P;var N=function(e,t,n){var r=C(t);return x(r,e)||n||""},L=function(e,t,n,r,i,o){var s,a=[M(t,n)],f=u.fallbackKeys.getObjectFieldLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=L(e,l,n,r,i))}return c||r||""},z=function(e,t,n,r,i,o){var s,a=[O(t,n)],f=u.fallbackKeys.getObjectFieldInlineHelpTextLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=z(e,l,n,r,i))}return c||r||""},U=function(e,t,n,r,i,o){var s=T(t,n),a,u=x([s],e);if(1!=o&&!u){var f=S(i);f&&"base"!=t&&"core"!=t&&(u=U(e,f,n,r,i))}return u||r||""},q=function(e,t,n,r,i,o){var s,a=[B(t,n)],f=u.fallbackKeys.getObjectFieldGroupKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=q(e,l,n,r,i))}return c||r||""},$=function(e,t,n,r,i,o,s){var a,f=[I(t,n,r)],c=u.fallbackKeys.getObjectFieldOptionsLabelKey(t,n,r);c&&f.push(c);var l=x(f,e);if(1!=s&&!l){var h=S(o);h&&"base"!=t&&"core"!=t&&(l=$(e,h,n,r,i,o))}return l||i||""},H=function(e,t,n,r,i,o){var s,a=[R(t,n)],f=u.fallbackKeys.getObjectActionLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=H(e,l,n,r,i))}return c||r||""},W=function(e,t,n,r,i,o){var s,a=[F(t,n)],f=u.fallbackKeys.getObjectListviewLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=W(e,l,n,r,i))}return c||r||""},Y=function(e,t,r,o,s){void 0===s&&(s=!1);var u=p(e,r);"test_obj_layout1"===t&&console.log("translationObject",t,u);var c=h.get(u);if(c)return Object.assign(r,(0,f.cloneDeep)(c));o&&(0,a.convertObject)(r),r.label=(0,n.translationObjectLabel)(e,t,r.label),r.description=N(e,t,r.description),i.each(r.fields,(function(n,o){if(n.label=L(e,t,o,n.label,r.datasource,s),n.inlineHelpText&&(n.inlineHelpText=z(e,t,o,n.inlineHelpText,r.datasource,s)),n.group&&(n.group=q(e,t,n.group,n.group,r.datasource,s)),n.options){var a=[];i.each(n.options,(function(n){if(i.has(n,"value")){var u=$(e,t,o,n.value,n.label,r.datasource,s);a.push(i.extend({},n,{label:u}))}else a.push(n)})),n.options=a}})),i.each(r.actions,(function(n,i){n.label=H(e,t,i,n.label,r.datasource,s)})),i.each(r.list_views,(function(n,i){n.label=W(e,t,i,n.label,r.datasource,s)})),h.set(u,(0,f.cloneDeep)(r))};n.translationObject=Y;var V=function(e,t){i.each(t,(function(t,r){(0,n.translationObject)(e,r,t)}))};n.translationObjects=V;var K=function(e,t,r){var o=g(r);(0,a.convertObject)(o);var s={};return s[A(t)]=(0,n.translationObjectLabel)(e,t,o.label),s[C(t)]=N(e,t,o.description),i.each(o.fields,(function(n,r){s[M(t,r)]=L(e,t,r,n.label),n.inlineHelpText&&(s[O(t,r)]=z(e,t,r,n.inlineHelpText,o.datasource)),n.description&&(s[T(t,r)]=U(e,t,r,n.description,o.datasource)),n.group&&(s[B(t,n.group)]=q(e,t,n.group,n.group,o.datasource)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(s[I(t,r,n.value)]=$(e,t,r,n.value,n.label))}))})),i.each(o.actions,(function(n,r){s[R(t,r)]=H(e,t,r,n.label)})),i.each(o.list_views,(function(n,r){s[F(t,r)]=W(e,t,r,n.label)})),s};function G(e,t){var n=g(e);(0,a.convertObject)(n);var r={},o=n.name;return o||console.error("Error: Invalid objectTranslation:"+t),r[A(o)]=n.label,r[C(o)]=n.description,i.each(n.fields,(function(e,t){r[M(o,t)]=e.label,e.help&&(r[O(o,t)]=e.help),e.description&&(r[T(o,t)]=e.description),e.options&&i.each(e.options,(function(e){i.has(e,"value")&&(r[I(o,t,e.value)]=e.label)}))})),i.each(n.groups,(function(e,t){r[B(o,t)]=e})),i.each(n.actions,(function(e,t){r[R(o,t)]=e.label})),i.each(n.listviews,(function(e,t){r[F(o,t)]=e.label})),i.each(n.CustomLabels,(function(e,t){r[E(t)]=e})),r}n.getObjectTranslationTemplate=K;var X=function(e){i.each(e,(function(e){var t=G(e.data,e.__filename);(0,s.addResourceBundle)(e.lng,y,t,!0,!0)}))};n.addObjectsTranslation=X},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addTranslations=n.convertTranslation=n.convertTranslationData=n.getAppTranslationTemplate=n.translationApps=n.translationMenus=n.translationApp=n.translationTabLabel=n.translationTabGroup=void 0;var r=t("../index"),i=t("underscore"),o=t("./"),s=t("../i18n/i18n.app"),a=t("clone"),u="translation",f=".",c="app",l="menu",h="tab",d=function(e){switch(e){case"app":return o.SteedosTranslationPrefixKeys.Application;case"tab":return o.SteedosTranslationPrefixKeys.Tab;default:return"CustomLabels"}},p=function(e){var t;return[d(),e].join(".")},g=function(e,t){var n={lng:t,ns:u,keySeparator:!1};if((0,r.exists)(e,n))return(0,r._t)(e,n)},b=function(e){var t;return[d("app"),e,"name"].join(".")},m=function(e){var t;return[d("app"),e,"description"].join(".")},v=function(e,t){var n,r;return[d("app"),e,"groups",t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_")].join(".")},y=function(e){var t;return[d("menu"),"menu_".concat(e)].join(".")},_=function(e){var t;return[d("tab"),e].join(".")},w=function(e,t,n){var r,i=[b(t)],o=s.appFallbackKeys.getAppLabelKey(t);return o&&i.push(o),g(i,e)||n||""},k=function(e,t,n){var r,i=[m(t)],o=s.appFallbackKeys.getAppDescriptionKey(t);return o&&i.push(o),g(i,e)||n||""},j=function(e,t,n,r){var i,o=[v(t,n)],a=s.appFallbackKeys.getAppGroupKey(t,n);return a&&o.push(a),g(o,e)||r||""};n.translationTabGroup=j;var x=function(e,t,n){var r,i=[y(t)],o=s.appFallbackKeys.getMenuLabelKey(t);return o&&i.push(o),g(i,e)||n||""},S=function(e,t,n){var r,i=[_(t)],o=s.appFallbackKeys.getTabKey(t);return o&&i.push(o),g(i,e)||n||""};n.translationTabLabel=S;var D=function(e,t,r){r.label=w(e,t,r.label||r.name),r.description=k(e,t,r.description),i.each(r.tab_groups,(function(i,o){r.tab_groups[o].id=i.id||i.group_name,r.tab_groups[o].group_name=(0,n.translationTabGroup)(e,t,i.group_name,i.group_name)})),(0,n.translationMenus)(e,r.admin_menus)};n.translationApp=D;var E=function(e,t){i.each(t,(function(t){var n=x(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationMenus=E;var A=function(e,t){i.each(t,(function(t,r){(0,n.translationApp)(e,r,t)}))};n.translationApps=A;var C=function(e,t,n){var r=a(n),o={};return o[b(t)]=w(e,t,r.label||r.name),o[m(t)]=k(e,t,r.description),i.each(r.admin_menus,(function(t){o[y(t._id)]=x(e,t._id,t.label||t.name)})),o};n.getAppTranslationTemplate=C;var M=function(e,t,n){i.isArray(n)?i.each(n,(function(e){M(e,"",e)})):n&&i.each(i.keys(n),(function(r){var o=t?"".concat(t,".").concat(r):r,s=n[r];"object"==typeof s?i.isArray(s)?i.each(s,(function(e){M(e,o,s)})):M(e,o,s):e[o]=s}))};function O(e){for(var t in e)"object"==typeof e[t]&&M(e,t,e[t]);return e}n.convertTranslationData=O;var T=function(e){var t=a(e),n={};return i.each(t.CustomApplications,(function(e,t){n[b(t)]=e.name,n[m(t)]=e.description,i.each(e.groups,(function(e,r){n[v(t,r)]=e}))})),i.each(t.CustomTabs,(function(e,t){n[_(t)]=e})),i.each(t.CustomLabels,(function(e,t){var r;if("simpleschema"!=t&&i.isObject(e)){var o=O(((r={})[t]=e,r));i.each(o,(function(e,t){i.isObject(e)||(n[p(t)]=e)}))}else n[p(t)]=e})),n};n.convertTranslation=T;var B=function(e){i.each(e,(function(e){var t=(0,n.convertTranslation)(e.data);(0,r.addResourceBundle)(e.lng,u,t,!0,!0)}))};n.addTranslations=B},templates:{"objectTranslation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getObjectMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),o=t("clone");function s(e,t){var n={};return r.each(e,(function(e){n[e]="help"===e?t.inlineHelpText||"":t[e]||""})),n}function a(e){return s(["label","description"],e)}function u(e){switch(e.type){case"select":return s(["label","help","options","description"],e);default:return s(["label","help","description"],e)}}function f(e){return s(["label"],e)}function c(e){return s(["label"],e)}function l(e){var t={};return r.each(e,(function(e,n){t[n]=u(e)})),t}function h(e){var t={};return r.each(e,(function(e,n){t[n]=c(e)})),t}function d(e){var t={};return r.each(e,(function(e,n){t[n]=f(e)})),t}function p(e,t){var n={};return r.each(e,(function(e,r){if(e.group){var i=e.group.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");n[i]=t[r].group}})),n}var g=function(e,t,n,s){void 0===s&&(s=!1);var u=o(n);1!=s&&(0,i.translationObject)(e,t,u,!0,s);var f=Object.assign({},a(u));f=Object.assign({},f,{fields:l(u.fields)});var c=p(n.fields,u.fields);r.isEmpty(c)||(f=Object.assign({},f,{groups:c}));var g=d(u.list_views);r.isEmpty(g)||(f=Object.assign({},f,{listviews:g}));var b=h(u.actions);return r.isEmpty(b)||(f=Object.assign({},f,{actions:b})),Object.assign({name:t},f)};n.getObjectMetadataTranslationTemplate=g},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getAppMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),o=t("clone");function s(e,t){var n={};return r.each(e,(function(e){n[e]=t[e]||""})),n}function a(e){var t={groups:{}};return e?(r.each(e,(function(e){var n=e.group_name.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t.groups[n]=e.group_name})),t):{}}var u=function(e){return Object.assign({},s(["name","description"],e),a(e.tab_groups))},f=function(e){var t={};return r.each(e,(function(e,n){t[n]=n})),t},c=function(e){var t={};return r.each(e,(function(e){var n=e.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t[n]=e})),t},l=function(e,t,n){var r,s=o(n);(0,i.translationApp)(e,t,s);var a={},l;return s.tab_items?a=f(s.tab_items):s.tabs&&(a=c(s.tabs)),Object.assign({},{CustomApplications:(r={},r[t]=u(s),r)},{CustomTabs:a})};n.getAppMetadataTranslationTemplate=l}}}},node_modules:{i18next:{"package.json":function e(t,n,e){e.exports={name:"i18next",version:"19.9.2",module:"./dist/esm/i18next.js",main:"./dist/cjs/i18next.js"}},dist:{esm:{"i18next.js":function e(t,n,e){let r,i,o,s,a,u,f,c;e.link("@babel/runtime/helpers/esm/typeof",{default(e){r=e}},0),e.link("@babel/runtime/helpers/esm/objectSpread",{default(e){i=e}},1),e.link("@babel/runtime/helpers/esm/classCallCheck",{default(e){o=e}},2),e.link("@babel/runtime/helpers/esm/createClass",{default(e){s=e}},3),e.link("@babel/runtime/helpers/esm/possibleConstructorReturn",{default(e){a=e}},4),e.link("@babel/runtime/helpers/esm/getPrototypeOf",{default(e){u=e}},5),e.link("@babel/runtime/helpers/esm/assertThisInitialized",{default(e){f=e}},6),e.link("@babel/runtime/helpers/esm/inherits",{default(e){c=e}},7);var l={type:"logger",log:function e(t){this.output("log",t)},warn:function e(t){this.output("warn",t)},error:function e(t){this.output("error",t)},output:function e(t,n){console&&console[t]&&console[t].apply(console,n)}},h,d=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.init(t,n)}return s(e,[{key:"init",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||l,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function e(t){this.debug=t}},{key:"log",value:function e(){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function y(e,t,n){var r=v(e,t,Object),i,o;r.obj[r.k]=n}function _(e,t,n,r){var i=v(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}function w(e,t){var n=v(e,t),r=n.obj,i=n.k;if(r)return r[i]}function k(e,t,n){var r=w(e,n);return void 0!==r?r:w(t,n)}function j(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):j(e[r],t[r],n):e[r]=t[r]);return e}function x(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var S={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function D(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return S[e]})):e}var E="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,A=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return o(this,t),n=a(this,u(t).call(this)),E&&p.call(f(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return c(t,e),s(t,[{key:"addNamespaces",value:function e(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function e(t){var n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=[t,n];return r&&"string"!=typeof r&&(s=s.concat(r)),r&&"string"==typeof r&&(s=s.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(s=t.split(".")),w(this.data,s)}},{key:"addResource",value:function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},s=this.options.keySeparator;void 0===s&&(s=".");var a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(i=n,n=(a=t.split("."))[1]),this.addNamespaces(n),y(this.data,a,i),o.silent||this.emit("added",t,n,r,i)}},{key:"addResources",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in r)"string"!=typeof r[o]&&"[object Array]"!==Object.prototype.toString.apply(r[o])||this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}},{key:"addResourceBundle",value:function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},u=[t,n];t.indexOf(".")>-1&&(o=r,r=n,n=(u=t.split("."))[1]),this.addNamespaces(n);var f=w(this.data,u)||{};o?j(f,r,s):f=i({},f,r),y(this.data,u,f),a.silent||this.emit("added",t,n,r)}},{key:"removeResourceBundle",value:function e(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}},{key:"hasResourceBundle",value:function e(t,n){return void 0!==this.getResource(t,n)}},{key:"getResourceBundle",value:function e(t,n){return n||(n=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(t,n)):this.getResource(t,n)}},{key:"getDataByLanguage",value:function e(t){return this.data[t]}},{key:"toJSON",value:function e(){return this.data}}]),t}(p),C={processors:{},addPostProcessor:function e(t){this.processors[t.name]=t},handle:function e(t,n,r,i,o){var s=this;return t.forEach((function(e){s.processors[e]&&(n=s.processors[e].process(n,r,i,o))})),n}},M={},O=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,t),n=a(this,u(t).call(this)),E&&p.call(f(n)),m(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,f(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=d.create("translator"),n}return c(t,e),s(t,[{key:"changeLanguage",value:function e(t){t&&(this.language=t)}},{key:"exists",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(t,n);return r&&void 0!==r.res}},{key:"extractFromKey",value:function e(t,n){var r=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=n.ns||this.options.defaultNS;if(r&&t.indexOf(r)>-1){var s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:o};var a=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),t=a.join(i)}return"string"==typeof o&&(o=[o]),{key:t,namespaces:o}}},{key:"translate",value:function e(n,o,s){var a=this;if("object"!==r(o)&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),null==n)return"";Array.isArray(n)||(n=[String(n)]);var u=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,f=this.extractFromKey(n[n.length-1],o),c=f.key,l=f.namespaces,h=l[l.length-1],d=o.lng||this.language,p=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var g=o.nsSeparator||this.options.nsSeparator;return h+g+c}return c}var b=this.resolve(n,o),m=b&&b.res,v=b&&b.usedKey||c,y=b&&b.exactUsedKey||c,_=Object.prototype.toString.apply(m),w=["[object Number]","[object Function]","[object RegExp]"],k=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(j&&m&&x&&w.indexOf(_)<0&&("string"!=typeof k||"[object Array]"!==_)){if(!o.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,o):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(u){var S="[object Array]"===_,D=S?[]:{},E=S?y:v;for(var A in m)if(Object.prototype.hasOwnProperty.call(m,A)){var C="".concat(E).concat(u).concat(A);D[A]=this.translate(C,i({},o,{joinArrays:!1,ns:l})),D[A]===C&&(D[A]=m[A])}m=D}}else if(j&&"string"==typeof k&&"[object Array]"===_)(m=m.join(k))&&(m=this.extendTranslation(m,n,o,s));else{var M=!1,O=!1,T=void 0!==o.count&&"string"!=typeof o.count,B=t.hasDefaultValue(o),I=T?this.pluralResolver.getSuffix(d,o.count):"",R=o["defaultValue".concat(I)]||o.defaultValue;!this.isValidLookup(m)&&B&&(M=!0,m=R),this.isValidLookup(m)||(O=!0,m=c);var F=B&&R!==m&&this.options.updateMissing;if(O||M||F){if(this.logger.log(F?"updateKey":"missingKey",d,h,c,F?R:m),u){var P=this.resolve(c,i({},o,{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var z=0;z1&&void 0!==arguments[1]?arguments[1]:{},i,o,s,a,u;return"string"==typeof t&&(t=[t]),t.forEach((function(e){if(!n.isValidLookup(i)){var t=n.extractFromKey(e,r),f=t.key;o=f;var c=t.namespaces;n.options.fallbackNS&&(c=c.concat(n.options.fallbackNS));var l=void 0!==r.count&&"string"!=typeof r.count,h=void 0!==r.context&&"string"==typeof r.context&&""!==r.context,d=r.lngs?r.lngs:n.languageUtils.toResolveHierarchy(r.lng||n.language,r.fallbackLng);c.forEach((function(e){n.isValidLookup(i)||(u=e,!M["".concat(d[0],"-").concat(e)]&&n.utils&&n.utils.hasLoadedNamespace&&!n.utils.hasLoadedNamespace(u)&&(M["".concat(d[0],"-").concat(e)]=!0,n.logger.warn('key "'.concat(o,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(t){if(!n.isValidLookup(i)){a=t;var o=f,u=[o],c,d;if(n.i18nFormat&&n.i18nFormat.addLookupKeys)n.i18nFormat.addLookupKeys(u,f,t,e,r);else l&&(c=n.pluralResolver.getSuffix(t,r.count)),l&&h&&u.push(o+c),h&&u.push(o+="".concat(n.options.contextSeparator).concat(r.context)),l&&u.push(o+=c);for(;d=u.pop();)n.isValidLookup(i)||(s=d,i=n.getResource(t,e,d,r))}})))}))}})),{res:i,usedKey:o,exactUsedKey:s,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function e(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}}],[{key:"hasDefaultValue",value:function e(t){var n="defaultValue";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&void 0!==t[r])return!0;return!1}}]),t}(p);function T(e){return e.charAt(0).toUpperCase()+e.slice(1)}var B=function(){function e(t){o(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=d.create("languageUtils")}return s(e,[{key:"getScriptPartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase()?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function e(t){if("string"==typeof t&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=T(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function e(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function e(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function e(t){var n=this,r;return t?(t.forEach((function(e){if(!r){var t=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(t)||(r=t)}})),!r&&this.options.supportedLngs&&t.forEach((function(e){if(!r){var t=n.getLanguagePartFromCode(e);if(n.isSupportedCode(t))return r=t;r=n.options.supportedLngs.find((function(e){if(0===e.indexOf(t))return e}))}})),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function e(t,n){if(!t)return[];if("function"==typeof t&&(t=t(n)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function e(t,n){var r=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],s=function e(t){t&&(r.isSupportedCode(t)?o.push(t):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(t))):"string"==typeof t&&s(this.formatLanguageCode(t)),i.forEach((function(e){o.indexOf(e)<0&&s(r.formatLanguageCode(e))})),o}}]),e}(),I=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],R={1:function e(t){return Number(t>1)},2:function e(t){return Number(1!=t)},3:function e(t){return 0},4:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function e(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function e(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function e(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function e(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function e(t){return Number(t>=2)},10:function e(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function e(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function e(t){return Number(t%10!=1||t%100==11)},13:function e(t){return Number(0!==t)},14:function e(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function e(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function e(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function e(t){return Number(0==t?0:1==t?1:2)},19:function e(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function e(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function e(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function e(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function F(){var e={};return I.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:R[t.fc]}}))})),e}var P=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.languageUtils=t,this.options=n,this.logger=d.create("pluralResolver"),this.rules=F()}return s(e,[{key:"addRule",value:function e(t,n){this.rules[t]=n}},{key:"getRule",value:function e(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function e(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function e(t,n){return this.getSuffixes(t).map((function(e){return n+e}))}},{key:"getSuffixes",value:function e(t){var n=this,r=this.getRule(t);return r?r.numbers.map((function(e){return n.getSuffix(t,e)})):[]}},{key:"getSuffix",value:function e(t,n){var r=this,i=this.getRule(t);if(i){var o=i.noAbs?i.plurals(n):i.plurals(Math.abs(n)),s=i.numbers[o];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===s?s="plural":1===s&&(s=""));var a=function e(){return r.options.prepend&&s.toString()?r.options.prepend+s.toString():s.toString()};return"v1"===this.options.compatibilityJSON?1===s?"":"number"==typeof s?"_plural_".concat(s.toString()):a():"v2"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),N=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.logger=d.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return s(e,[{key:"init",value:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=void 0!==n.escape?n.escape:D,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?x(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?x(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?x(n.nestingPrefix):n.nestingPrefixEscaped||x("$t("),this.nestingSuffix=n.nestingSuffix?x(n.nestingSuffix):n.nestingSuffixEscaped||x(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function e(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function e(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function e(t,n,r,i){var o=this,s,a,u,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function e(t){if(t.indexOf(o.formatSeparator)<0){var s=k(n,f,t);return o.alwaysFormat?o.format(s,void 0,r):s}var a=t.split(o.formatSeparator),u=a.shift().trim(),c=a.join(o.formatSeparator).trim();return o.format(k(n,f,u),c,r,i)};this.resetRegExp();var h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p;return[{regex:this.regexpUnescape,safeValue:function e(t){return c(t)}},{regex:this.regexp,safeValue:function e(t){return o.escapeValue?c(o.escape(t)):c(t)}}].forEach((function(e){for(u=0;s=e.regex.exec(t);){if(void 0===(a=l(s[1].trim())))if("function"==typeof h){var n=h(t,s,i);a="string"==typeof n?n:""}else{if(d){a=s[0];continue}o.logger.warn("missed to pass in variable ".concat(s[1]," for interpolating ").concat(t)),a=""}else"string"==typeof a||o.useRawValueToEscape||(a=b(a));if(t=t.replace(s[0],e.safeValue(a)),e.regex.lastIndex=0,++u>=o.maxReplaces)break}})),t}},{key:"nest",value:function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s,a,u=i({},o);function f(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,u)).replace(/'/g,'"');try{u=JSON.parse(o),t&&(u=i({},t,u))}catch(s){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),s),"".concat(e).concat(n).concat(o)}return delete u.defaultValue,e}for(u.applyPostProcessor=!1,delete u.defaultValue;s=this.nestingRegexp.exec(t);){var c=[],l=!1;if(s[0].includes(this.formatSeparator)&&!/{.*}/.test(s[1])){var h=s[1].split(this.formatSeparator).map((function(e){return e.trim()}));s[1]=h.shift(),c=h,l=!0}if((a=n(f.call(this,s[1].trim(),u),u))&&s[0]===t&&"string"!=typeof a)return a;"string"!=typeof a&&(a=b(a)),a||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(t)),a=""),l&&(a=c.reduce((function(e,t){return r.format(e,t,o.lng,o)}),a.trim())),t=t.replace(s[0],a),this.regexp.lastIndex=0}return t}}]),e}();function L(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}var z=function(e){function t(e,n,r){var i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o(this,t),i=a(this,u(t).call(this)),E&&p.call(f(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=s,i.logger=d.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,s.backend,s),i}return c(t,e),s(t,[{key:"queueLoad",value:function e(t,n,r,i){var o=this,s=[],a=[],u=[],f=[];return t.forEach((function(e){var t=!0;n.forEach((function(n){var i="".concat(e,"|").concat(n);!r.reload&&o.store.hasResourceBundle(e,n)?o.state[i]=2:o.state[i]<0||(1===o.state[i]?a.indexOf(i)<0&&a.push(i):(o.state[i]=1,t=!1,a.indexOf(i)<0&&a.push(i),s.indexOf(i)<0&&s.push(i),f.indexOf(n)<0&&f.push(n)))})),t||u.push(e)})),(s.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:i}),{toLoad:s,pending:a,toLoadLanguages:u,toLoadNamespaces:f}}},{key:"loaded",value:function e(t,n,r){var i=t.split("|"),o=i[0],s=i[1];n&&this.emit("failedLoading",o,s,n),r&&this.store.addResourceBundle(o,s,r),this.state[t]=n?-1:2;var e={};this.queue.forEach((function(r){_(r.loaded,[o],s),L(r.pending,t),n&&r.errors.push(n),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(t){e[t]||(e[t]=[]),r.loaded[t].length&&r.loaded[t].forEach((function(n){e[t].indexOf(n)<0&&e[t].push(n)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",e),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[r](t,n,(function(e,u){e&&u&&o<5?setTimeout((function(){i.read.call(i,t,n,r,o+1,2*s,a)}),s):a(e,u)})):a(null,{})}},{key:"prepareLoading",value:function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof n&&(n=[n]);var s=this.queueLoad(t,n,i,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function e(t,n,r){this.prepareLoading(t,n,{},r)}},{key:"reload",value:function e(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}},{key:"loadOne",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t.split("|"),o=i[0],s=i[1];this.read(o,s,"read",void 0,void 0,(function(e,i){e&&n.logger.warn("".concat(r,"loading namespace ").concat(s," for language ").concat(o," failed"),e),!e&&i&&n.logger.log("".concat(r,"loaded namespace ").concat(s," for language ").concat(o),i),n.loaded(t,e,i)}))}},{key:"saveMissing",value:function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(t,n,r,o,null,i({},a,{isUpdate:s})),t&&t[0]&&this.store.addResource(t[0],n,r,o))}}]),t}(p);function U(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function e(t){var n={};if("object"===r(t[1])&&(n=t[1]),"string"==typeof t[1]&&(n.defaultValue=t[1]),"string"==typeof t[2]&&(n.tDescription=t[2]),"object"===r(t[2])||"object"===r(t[3])){var i=t[3]||t[2];Object.keys(i).forEach((function(e){n[e]=i[e]}))}return n},interpolation:{escapeValue:!0,format:function e(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function q(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $(){}var H,W=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(o(this,t),e=a(this,u(t).call(this)),E&&p.call(f(e)),e.options=q(n),e.services={},e.logger=d,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),a(e,f(e));setTimeout((function(){e.init(n,r)}),0)}return e}return c(t,e),s(t,[{key:"init",value:function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function o(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof n&&(r=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},U(),this.options,q(n)),this.format=this.options.interpolation.format,r||(r=$),!this.options.isClone){this.modules.logger?d.init(o(this.modules.logger),this.options):d.init(null,this.options);var s=new B(this.options);this.store=new A(this.options.resources,this.options);var a=this.services;a.logger=d,a.resourceStore=this.store,a.languageUtils=s,a.pluralResolver=new P(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new N(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new z(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var f=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];f.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}}));var l=g(),h=function e(){var n=function e(n,i){t.isInitialized&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),l.resolve(i),r(n,i)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return n(null,t.t.bind(t));t.changeLanguage(t.options.lng,n)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),l}},{key:"loadResources",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,i=r,o="string"==typeof t?t:this.language;if("function"==typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return i();var s=[],a=function e(t){var r;t&&n.services.languageUtils.toResolveHierarchy(t).forEach((function(e){s.indexOf(e)<0&&s.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(s,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function e(t,n,r){var i=g();return t||(t=this.languages),n||(n=this.options.ns),r||(r=$),this.services.backendConnector.reload(t,n,(function(e){i.resolve(),r(e)})),i}},{key:"use",value:function e(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&C.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function e(t,n){var r=this;this.isLanguageChangingTo=t;var i=g();this.emit("languageChanging",t);var o=function e(t,o){o?(r.language=o,r.languages=r.services.languageUtils.toResolveHierarchy(o),r.translator.changeLanguage(o),r.isLanguageChangingTo=void 0,r.emit("languageChanged",o),r.logger.log("languageChanged",o)):r.isLanguageChangingTo=void 0,i.resolve((function(){return r.t.apply(r,arguments)})),n&&n(t,(function(){return r.t.apply(r,arguments)}))},s=function e(t){var n="string"==typeof t?t:r.services.languageUtils.getBestMatchFromCodes(t);n&&(r.language||(r.language=n,r.languages=r.services.languageUtils.toResolveHierarchy(n)),r.translator.language||r.translator.changeLanguage(n),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(n)),r.loadResources(n,(function(e){o(e,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(s):s(t):s(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function e(t,n){var o=this,s=function e(t,n){var s;if("object"!==r(n)){for(var a=arguments.length,u=new Array(a>2?a-2:0),f=2;f1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],o=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function e(t,r){var i=n.services.backendConnector.state["".concat(t,"|").concat(r)];return-1===i||2===i};if(r.precheck){var u=r.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(i,t)||(!this.services.backendConnector.backend||!(!a(i,t)||o&&!a(s,t)))}},{key:"loadNamespaces",value:function e(t,n){var r=this,i=g();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),n&&n(e)})),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function e(t,n){var r=g();"string"==typeof t&&(t=[t]);var i=this.options.preload||[],o=t.filter((function(e){return i.indexOf(e)<0}));return o.length?(this.options.preload=i.concat(o),this.loadResources((function(e){r.resolve(),n&&n(e)})),r):(n&&n(),Promise.resolve())}},{key:"dir",value:function e(t){return t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),t?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr":"rtl";var n}},{key:"createInstance",value:function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function e(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,s=i({},this.options,r,{isClone:!0}),a=new t(s),u=["store","services","language"];return u.forEach((function(e){a[e]=n[e]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new O(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rr,root:()=>i,ArrayProto:()=>o,ObjProto:()=>s,SymbolProto:()=>a,push:()=>u,slice:()=>f,toString:()=>c,hasOwnProperty:()=>l,supportsArrayBuffer:()=>h,supportsDataView:()=>d,nativeIsArray:()=>p,nativeKeys:()=>g,nativeCreate:()=>b,nativeIsView:()=>m,_isNaN:()=>v,_isFinite:()=>y,hasEnumBug:()=>_,nonEnumerableProps:()=>w,MAX_ARRAY_INDEX:()=>k});var r="1.13.4",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},o=Array.prototype,s=Object.prototype,a="undefined"!=typeof Symbol?Symbol.prototype:null,u=o.push,f=o.slice,c=s.toString,l=s.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,d="undefined"!=typeof DataView,p=Array.isArray,g=Object.keys,b=Object.create,m=h&&ArrayBuffer.isView,v=isNaN,y=isFinite,_=!{toString:null}.propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=Math.pow(2,53)-1},"restArguments.js":function e(t,n,e){function r(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;ir})},"isObject.js":function e(t,n,e){function r(e){var t=typeof e;return"function"===t||"object"===t&&!!e}e.export({default:()=>r})},"isNull.js":function e(t,n,e){function r(e){return null===e}e.export({default:()=>r})},"isUndefined.js":function e(t,n,e){function r(e){return void 0===e}e.export({default:()=>r})},"isBoolean.js":function e(t,n,e){let r;function i(e){return!0===e||!1===e||"[object Boolean]"===r.call(e)}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isElement.js":function e(t,n,e){function r(e){return!(!e||1!==e.nodeType)}e.export({default:()=>r})},"isString.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("String"))},"_tagTester.js":function e(t,n,e){let r;function i(e){var t="[object "+e+"]";return function(e){return r.call(e)===t}}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isNumber.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Number"))},"isDate.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Date"))},"isRegExp.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("RegExp"))},"isError.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Error"))},"isSymbol.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Symbol"))},"isArrayBuffer.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("ArrayBuffer"))},"isDataView.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isArrayBuffer.js",{default(e){o=e}},2),e.link("./_stringTagBug.js",{hasStringTagBug(e){s=e}},3);var a=r("DataView");function u(e){return null!=e&&i(e.getInt8)&&o(e.buffer)}e.exportDefault(s?u:a)},"isFunction.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_setup.js",{root(e){i=e}},1);var o=r("Function"),s=i.document&&i.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof s&&(o=function(e){return"function"==typeof e||!1}),e.exportDefault(o)},"_stringTagBug.js":function e(t,n,e){let r,i;e.export({hasStringTagBug:()=>o,isIE11:()=>s}),e.link("./_setup.js",{supportsDataView(e){r=e}},0),e.link("./_hasObjectTag.js",{default(e){i=e}},1);var o=r&&i(new DataView(new ArrayBuffer(8))),s="undefined"!=typeof Map&&i(new Map)},"_hasObjectTag.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Object"))},"isArray.js":function e(t,n,e){let r,i;e.link("./_setup.js",{nativeIsArray(e){r=e}},0),e.link("./_tagTester.js",{default(e){i=e}},1),e.exportDefault(r||i("Array"))},"isArguments.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1);var o=r("Arguments");!function(){o(arguments)||(o=function(e){return i(e,"callee")})}(),e.exportDefault(o)},"_has.js":function e(t,n,e){let r;function i(e,t){return null!=e&&r.call(e,t)}e.export({default:()=>i}),e.link("./_setup.js",{hasOwnProperty(e){r=e}},0)},"isFinite.js":function e(t,n,e){let r,i;function o(e){return!i(e)&&r(e)&&!isNaN(parseFloat(e))}e.export({default:()=>o}),e.link("./_setup.js",{_isFinite(e){r=e}},0),e.link("./isSymbol.js",{default(e){i=e}},1)},"isNaN.js":function e(t,n,e){let r,i;function o(e){return i(e)&&r(e)}e.export({default:()=>o}),e.link("./_setup.js",{_isNaN(e){r=e}},0),e.link("./isNumber.js",{default(e){i=e}},1)},"isTypedArray.js":function e(t,n,e){let r,i,o,s,a,u;e.link("./_setup.js",{supportsArrayBuffer(e){r=e},nativeIsView(e){i=e},toString(e){o=e}},0),e.link("./isDataView.js",{default(e){s=e}},1),e.link("./constant.js",{default(e){a=e}},2),e.link("./_isBufferLike.js",{default(e){u=e}},3);var f=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function c(e){return i?i(e)&&!s(e):u(e)&&f.test(o.call(e))}e.exportDefault(r?c:a(!1))},"constant.js":function e(t,n,e){function r(e){return function(){return e}}e.export({default:()=>r})},"_isBufferLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getByteLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createSizePropertyCheck.js":function e(t,n,e){let r;function i(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=r}}e.export({default:()=>i}),e.link("./_setup.js",{MAX_ARRAY_INDEX(e){r=e}},0)},"_getByteLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("byteLength"))},"_shallowProperty.js":function e(t,n,e){function r(e){return function(t){return null==t?void 0:t[e]}}e.export({default:()=>r})},"isEmpty.js":function e(t,n,e){let r,i,o,s,a;function u(e){if(null==e)return!0;var t=r(e);return"number"==typeof t&&(i(e)||o(e)||s(e))?0===t:0===r(a(e))}e.export({default:()=>u}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./isString.js",{default(e){o=e}},2),e.link("./isArguments.js",{default(e){s=e}},3),e.link("./keys.js",{default(e){a=e}},4)},"_getLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("length"))},"keys.js":function e(t,n,e){let r,i,o,s,a;function u(e){if(!r(e))return[];if(i)return i(e);var t=[];for(var n in e)s(e,n)&&t.push(n);return o&&a(e,t),t}e.export({default:()=>u}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeKeys(e){i=e},hasEnumBug(e){o=e}},1),e.link("./_has.js",{default(e){s=e}},2),e.link("./_collectNonEnumProps.js",{default(e){a=e}},3)},"_collectNonEnumProps.js":function e(t,n,e){let r,i,o,s;function a(e){for(var t={},n=e.length,r=0;ru}),e.link("./_setup.js",{nonEnumerableProps(e){r=e},ObjProto(e){i=e}},0),e.link("./isFunction.js",{default(e){o=e}},1),e.link("./_has.js",{default(e){s=e}},2)},"isMatch.js":function e(t,n,e){let r;function i(e,t){var n=r(t),i=n.length;if(null==e)return!i;for(var o=Object(e),s=0;si}),e.link("./keys.js",{default(e){r=e}},0)},"isEqual.js":function e(t,n,e){let r,i,o,s,a,u,f,c,l,h,d;e.export({default:()=>m}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_setup.js",{toString(e){i=e},SymbolProto(e){o=e}},1),e.link("./_getByteLength.js",{default(e){s=e}},2),e.link("./isTypedArray.js",{default(e){a=e}},3),e.link("./isFunction.js",{default(e){u=e}},4),e.link("./_stringTagBug.js",{hasStringTagBug(e){f=e}},5),e.link("./isDataView.js",{default(e){c=e}},6),e.link("./keys.js",{default(e){l=e}},7),e.link("./_has.js",{default(e){h=e}},8),e.link("./_toBufferView.js",{default(e){d=e}},9);var p="[object DataView]";function g(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&b(e,t,n,r)}function b(e,t,n,m){e instanceof r&&(e=e._wrapped),t instanceof r&&(t=t._wrapped);var v=i.call(e);if(v!==i.call(t))return!1;if(f&&"[object Object]"==v&&c(e)){if(!c(t))return!1;v=p}switch(v){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return o.valueOf.call(e)===o.valueOf.call(t);case"[object ArrayBuffer]":case p:return b(d(e),d(t),n,m)}var y="[object Array]"===v;if(!y&&a(e)){var _;if(s(e)!==s(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;y=!0}if(!y){if("object"!=typeof e||"object"!=typeof t)return!1;var w=e.constructor,k=t.constructor;if(w!==k&&!(u(w)&&w instanceof w&&u(k)&&k instanceof k)&&"constructor"in e&&"constructor"in t)return!1}m=m||[];for(var j=(n=n||[]).length;j--;)if(n[j]===e)return m[j]===t;if(n.push(e),m.push(t),y){if((j=e.length)!==t.length)return!1;for(;j--;)if(!g(e[j],t[j],n,m))return!1}else{var x=l(e),S;if(j=x.length,l(t).length!==j)return!1;for(;j--;)if(S=x[j],!h(t,S)||!g(e[S],t[S],n,m))return!1}return n.pop(),m.pop(),!0}function m(e,t){return g(e,t)}},"underscore.js":function e(t,n,e){let r;function i(e){return e instanceof i?e:this instanceof i?void(this._wrapped=e):new i(e)}e.export({default:()=>i}),e.link("./_setup.js",{VERSION(e){r=e}},0),i.VERSION=r,i.prototype.value=function(){return this._wrapped},i.prototype.valueOf=i.prototype.toJSON=i.prototype.value,i.prototype.toString=function(){return String(this._wrapped)}},"_toBufferView.js":function e(t,n,e){let r;function i(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,r(e))}e.export({default:()=>i}),e.link("./_getByteLength.js",{default(e){r=e}},0)},"isMap.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},mapMethods(e){s=e}},2),e.exportDefault(i?o(s):r("Map"))},"_methodFingerprint.js":function e(t,n,e){let r,i,o;function s(e){var t=r(e);return function(n){if(null==n)return!1;var s=o(n);if(r(s))return!1;for(var u=0;us,mapMethods:()=>l,weakMapMethods:()=>h,setMethods:()=>d}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./allKeys.js",{default(e){o=e}},2);var a="forEach",u="has",f=["clear","delete"],c=["get","has","set"],l=f.concat(a,c),h=f.concat(c),d=["add"].concat(f,a,"has")},"allKeys.js":function e(t,n,e){let r,i,o;function s(e){if(!r(e))return[];var t=[];for(var n in e)t.push(n);return i&&o(e,t),t}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{hasEnumBug(e){i=e}},1),e.link("./_collectNonEnumProps.js",{default(e){o=e}},2)},"isWeakMap.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},weakMapMethods(e){s=e}},2),e.exportDefault(i?o(s):r("WeakMap"))},"isSet.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},setMethods(e){s=e}},2),e.exportDefault(i?o(s):r("Set"))},"isWeakSet.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("WeakSet"))},"values.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"pairs.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"invert.js":function e(t,n,e){let r;function i(e){for(var t={},n=r(e),i=0,o=n.length;ii}),e.link("./keys.js",{default(e){r=e}},0)},"functions.js":function e(t,n,e){let r;function i(e){var t=[];for(var n in e)r(e[n])&&t.push(n);return t.sort()}e.export({default:()=>i}),e.link("./isFunction.js",{default(e){r=e}},0)},"extend.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createAssigner.js":function e(t,n,e){function r(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;ir})},"extendOwn.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"defaults.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i,!0))},"create.js":function e(t,n,e){let r,i;function o(e,t){var n=r(e);return t&&i(n,t),n}e.export({default:()=>o}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./extendOwn.js",{default(e){i=e}},1)},"_baseCreate.js":function e(t,n,e){let r,i;function o(){return function(){}}function s(e){if(!r(e))return{};if(i)return i(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeCreate(e){i=e}},1)},"clone.js":function e(t,n,e){let r,i,o;function s(e){return r(e)?i(e)?e.slice():o({},e):e}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./extend.js",{default(e){o=e}},2)},"tap.js":function e(t,n,e){function r(e,t){return t(e),e}e.export({default:()=>r})},"get.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s=i(e,r(t));return o(s)?n:s}e.export({default:()=>s}),e.link("./_toPath.js",{default(e){r=e}},0),e.link("./_deepGet.js",{default(e){i=e}},1),e.link("./isUndefined.js",{default(e){o=e}},2)},"_toPath.js":function e(t,n,e){let r;function i(e){return r.toPath(e)}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./toPath.js")},"toPath.js":function e(t,n,e){let r,i;function o(e){return i(e)?e:[e]}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),r.toPath=o},"_deepGet.js":function e(t,n,e){function r(e,t){for(var n=t.length,r=0;rr})},"has.js":function e(t,n,e){let r,i;function o(e,t){for(var n=(t=i(t)).length,o=0;oo}),e.link("./_has.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"mapObject.js":function e(t,n,e){let r,i;function o(e,t,n){t=r(t,n);for(var o=i(e),s=o.length,a={},u=0;uo}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"_cb.js":function e(t,n,e){let r,i,o;function s(e,t,n){return r.iteratee!==o?r.iteratee(e,t):i(e,t,n)}e.export({default:()=>s}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),e.link("./iteratee.js",{default(e){o=e}},2)},"_baseIteratee.js":function e(t,n,e){let r,i,o,s,a,u,f;function c(e,t,n){return null==e?r:i(e)?f(e,t,n):o(e)&&!s(e)?a(e):u(e)}e.export({default:()=>c}),e.link("./identity.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isObject.js",{default(e){o=e}},2),e.link("./isArray.js",{default(e){s=e}},3),e.link("./matcher.js",{default(e){a=e}},4),e.link("./property.js",{default(e){u=e}},5),e.link("./_optimizeCb.js",{default(e){f=e}},6)},"identity.js":function e(t,n,e){function r(e){return e}e.export({default:()=>r})},"matcher.js":function e(t,n,e){let r,i;function o(e){return e=r({},e),function(t){return i(t,e)}}e.export({default:()=>o}),e.link("./extendOwn.js",{default(e){r=e}},0),e.link("./isMatch.js",{default(e){i=e}},1)},"property.js":function e(t,n,e){let r,i;function o(e){return e=i(e),function(t){return r(t,e)}}e.export({default:()=>o}),e.link("./_deepGet.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"_optimizeCb.js":function e(t,n,e){function r(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}e.export({default:()=>r})},"iteratee.js":function e(t,n,e){let r,i;function o(e,t){return i(e,t,1/0)}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),r.iteratee=o},"noop.js":function e(t,n,e){function r(){}e.export({default:()=>r})},"propertyOf.js":function e(t,n,e){let r,i;function o(e){return null==e?r:function(t){return i(e,t)}}e.export({default:()=>o}),e.link("./noop.js",{default(e){r=e}},0),e.link("./get.js",{default(e){i=e}},1)},"times.js":function e(t,n,e){let r;function i(e,t,n){var i=Array(Math.max(0,e));t=r(t,n,1);for(var o=0;oi}),e.link("./_optimizeCb.js",{default(e){r=e}},0)},"random.js":function e(t,n,e){function r(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}e.export({default:()=>r})},"now.js":function e(t,n,e){e.exportDefault(Date.now||function(){return(new Date).getTime()})},"escape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createEscaper.js":function e(t,n,e){let r;function i(e){var t=function(t){return e[t]},n="(?:"+r(e).join("|")+")",i=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(o,t):e}}e.export({default:()=>i}),e.link("./keys.js",{default(e){r=e}},0)},"_escapeMap.js":function e(t,n,e){e.exportDefault({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"})},"unescape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_unescapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_unescapeMap.js":function e(t,n,e){let r,i;e.link("./invert.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"templateSettings.js":function e(t,n,e){let r;e.link("./underscore.js",{default(e){r=e}},0),e.exportDefault(r.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g})},"template.js":function e(t,n,e){let r,i;e.export({default:()=>c}),e.link("./defaults.js",{default(e){r=e}},0),e.link("./underscore.js",{default(e){i=e}},1),e.link("./templateSettings.js");var o=/(.)^/,s={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},a=/\\|'|\r|\n|\u2028|\u2029/g;function u(e){return"\\"+s[e]}var f=/^\s*(\w|\$)+\s*$/;function c(e,t,n){!t&&n&&(t=n),t=r({},t,i.templateSettings);var s=RegExp([(t.escape||o).source,(t.interpolate||o).source,(t.evaluate||o).source].join("|")+"|$","g"),c=0,l="__p+='";e.replace(s,(function(t,n,r,i,o){return l+=e.slice(c,o).replace(a,u),c=o+t.length,n?l+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?l+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(l+="';\n"+i+"\n__p+='"),t})),l+="';\n";var h=t.variable,d;if(h){if(!f.test(h))throw new Error("variable is not a bare identifier: "+h)}else l="with(obj||{}){\n"+l+"}\n",h="obj";l="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+l+"return __p;\n";try{d=new Function(h,"_",l)}catch(g){throw g.source=l,g}var p=function(e){return d.call(this,e,i)};return p.source="function("+h+"){\n"+l+"}",p}},"result.js":function e(t,n,e){let r,i;function o(e,t,n){var o=(t=i(t)).length;if(!o)return r(n)?n.call(e):n;for(var s=0;so}),e.link("./isFunction.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"uniqueId.js":function e(t,n,e){e.export({default:()=>i});var r=0;function i(e){var t=++r+"";return e?e+t:t}},"chain.js":function e(t,n,e){let r;function i(e){var t=r(e);return t._chain=!0,t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"partial.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_executeBound.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){o=e}},2);var s=r((function(e,t){var n=s.placeholder,r=function(){for(var o=0,s=t.length,a=Array(s),u=0;uo}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./isObject.js",{default(e){i=e}},1)},"bind.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_executeBound.js",{default(e){o=e}},2),e.exportDefault(r((function(e,t,n){if(!i(e))throw new TypeError("Bind must be called on a function");var s=r((function(r){return o(e,s,t,this,n.concat(r))}));return s})))},"bindAll.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./bind.js",{default(e){o=e}},2),e.exportDefault(r((function(e,t){var n=(t=i(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=o(e[r],e)}return e})))},"_flatten.js":function e(t,n,e){let r,i,o,s;function a(e,t,n,u){if(u=u||[],t||0===t){if(t<=0)return u.concat(e)}else t=1/0;for(var f=u.length,c=0,l=r(e);c1)a(h,t-1,n,u),f=u.length;else for(var d=0,p=h.length;da}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./isArray.js",{default(e){o=e}},2),e.link("./isArguments.js",{default(e){s=e}},3)},"_isArrayLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"memoize.js":function e(t,n,e){let r;function i(e,t){var n=function(i){var o=n.cache,s=""+(t?t.apply(this,arguments):i);return r(o,s)||(o[s]=e.apply(this,arguments)),o[s]};return n.cache={},n}e.export({default:()=>i}),e.link("./_has.js",{default(e){r=e}},0)},"delay.js":function e(t,n,e){let r;e.link("./restArguments.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})))},"defer.js":function e(t,n,e){let r,i,o;e.link("./partial.js",{default(e){r=e}},0),e.link("./delay.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){o=e}},2),e.exportDefault(r(i,o,1))},"throttle.js":function e(t,n,e){let r;function i(e,t,n){var i,o,s,a,u=0;n||(n={});var f=function(){u=!1===n.leading?0:r(),i=null,a=e.apply(o,s),i||(o=s=null)},c=function(){var c=r();u||!1!==n.leading||(u=c);var l=t-(c-u);return o=this,s=arguments,l<=0||l>t?(i&&(clearTimeout(i),i=null),u=c,a=e.apply(o,s),i||(o=s=null)):i||!1===n.trailing||(i=setTimeout(f,l)),a};return c.cancel=function(){clearTimeout(i),u=0,i=o=s=null},c}e.export({default:()=>i}),e.link("./now.js",{default(e){r=e}},0)},"debounce.js":function e(t,n,e){let r,i;function o(e,t,n){var o,s,a,u,f,c=function(){var r=i()-s;t>r?o=setTimeout(c,t-r):(o=null,n||(u=e.apply(f,a)),o||(a=f=null))},l=r((function(r){return f=this,a=r,s=i(),o||(o=setTimeout(c,t),n&&(u=e.apply(f,a))),u}));return l.cancel=function(){clearTimeout(o),o=a=f=null},l}e.export({default:()=>o}),e.link("./restArguments.js",{default(e){r=e}},0),e.link("./now.js",{default(e){i=e}},1)},"wrap.js":function e(t,n,e){let r;function i(e,t){return r(t,e)}e.export({default:()=>i}),e.link("./partial.js",{default(e){r=e}},0)},"negate.js":function e(t,n,e){function r(e){return function(){return!e.apply(this,arguments)}}e.export({default:()=>r})},"compose.js":function e(t,n,e){function r(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}e.export({default:()=>r})},"after.js":function e(t,n,e){function r(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}e.export({default:()=>r})},"before.js":function e(t,n,e){function r(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}e.export({default:()=>r})},"once.js":function e(t,n,e){let r,i;e.link("./partial.js",{default(e){r=e}},0),e.link("./before.js",{default(e){i=e}},1),e.exportDefault(r(i,2))},"findKey.js":function e(t,n,e){let r,i;function o(e,t,n){t=r(t,n);for(var o=i(e),s,a=0,u=o.length;ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"findIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createPredicateIndexFinder.js":function e(t,n,e){let r,i;function o(e){return function(t,n,o){n=r(n,o);for(var s=i(t),a=e>0?0:s-1;a>=0&&ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"findLastIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"sortedIndex.js":function e(t,n,e){let r,i;function o(e,t,n,o){for(var s=(n=r(n,o,1))(t),a=0,u=i(e);ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"indexOf.js":function e(t,n,e){let r,i,o;e.link("./sortedIndex.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./_createIndexFinder.js",{default(e){o=e}},2),e.exportDefault(o(1,i,r))},"_createIndexFinder.js":function e(t,n,e){let r,i,o;function s(e,t,n){return function(s,a,u){var f=0,c=r(s);if("number"==typeof u)e>0?f=u>=0?u:Math.max(u+c,f):c=u>=0?Math.min(u+1,c):u+c+1;else if(n&&u&&c)return s[u=n(s,a)]===a?u:-1;if(a!=a)return(u=t(i.call(s,f,c),o))>=0?u+f:-1;for(u=e>0?f:c-1;u>=0&&us}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isNaN.js",{default(e){o=e}},2)},"lastIndexOf.js":function e(t,n,e){let r,i;e.link("./findLastIndex.js",{default(e){r=e}},0),e.link("./_createIndexFinder.js",{default(e){i=e}},1),e.exportDefault(i(-1,r))},"find.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s,a=(r(e)?i:o)(e,t,n);if(void 0!==a&&-1!==a)return e[a]}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./findKey.js",{default(e){o=e}},2)},"findWhere.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./find.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"each.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s,a;if(t=r(t,n),i(e))for(s=0,a=e.length;ss}),e.link("./_optimizeCb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"map.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=Array(a),f=0;fs}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"reduce.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createReduce.js":function e(t,n,e){let r,i,o;function s(e){var t=function(t,n,o,s){var a=!r(t)&&i(t),u=(a||t).length,f=e>0?0:u-1;for(s||(o=t[a?a[f]:f],f+=e);f>=0&&f=3;return t(e,o(n,i,4),r,s)}}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){o=e}},2)},"reduceRight.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"filter.js":function e(t,n,e){let r,i;function o(e,t,n){var o=[];return t=r(t,n),i(e,(function(e,n,r){t(e,n,r)&&o.push(e)})),o}e.export({default:()=>o}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"reject.js":function e(t,n,e){let r,i,o;function s(e,t,n){return r(e,i(o(t)),n)}e.export({default:()=>s}),e.link("./filter.js",{default(e){r=e}},0),e.link("./negate.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2)},"every.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"some.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"contains.js":function e(t,n,e){let r,i,o;function s(e,t,n,s){return r(e)||(e=i(e)),("number"!=typeof n||s)&&(n=0),o(e,t,n)>=0}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./indexOf.js",{default(e){o=e}},2)},"invoke.js":function e(t,n,e){let r,i,o,s,a;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./map.js",{default(e){o=e}},2),e.link("./_deepGet.js",{default(e){s=e}},3),e.link("./_toPath.js",{default(e){a=e}},4),e.exportDefault(r((function(e,t,n){var r,u;return i(t)?u=t:(t=a(t),r=t.slice(0,-1),t=t[t.length-1]),o(e,(function(e){var i=u;if(!i){if(r&&r.length&&(e=s(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))})))},"pluck.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./map.js",{default(e){r=e}},0),e.link("./property.js",{default(e){i=e}},1)},"where.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./filter.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"max.js":function e(t,n,e){let r,i,o,s;function a(e,t,n){var a=-1/0,u=-1/0,f,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,h=(e=r(e)?e:i(e)).length;la&&(a=f);else t=o(t,n),s(e,(function(e,n,r){((c=t(e,n,r))>u||c===-1/0&&a===-1/0)&&(a=e,u=c)}));return a}e.export({default:()=>a}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2),e.link("./each.js",{default(e){s=e}},3)},"min.js":function e(t,n,e){let r,i,o,s;function a(e,t,n){var a=1/0,u=1/0,f,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,h=(e=r(e)?e:i(e)).length;la}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2),e.link("./each.js",{default(e){s=e}},3)},"shuffle.js":function e(t,n,e){let r;function i(e){return r(e,1/0)}e.export({default:()=>i}),e.link("./sample.js",{default(e){r=e}},0)},"sample.js":function e(t,n,e){let r,i,o,s,a;function u(e,t,n){if(null==t||n)return r(e)||(e=i(e)),e[s(e.length-1)];var u=a(e),f=o(u);t=Math.max(Math.min(t,f),0);for(var c=f-1,l=0;lu}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){o=e}},2),e.link("./random.js",{default(e){s=e}},3),e.link("./toArray.js",{default(e){a=e}},4)},"toArray.js":function e(t,n,e){let r,i,o,s,a,u,f;e.export({default:()=>l}),e.link("./isArray.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isString.js",{default(e){o=e}},2),e.link("./_isArrayLike.js",{default(e){s=e}},3),e.link("./map.js",{default(e){a=e}},4),e.link("./identity.js",{default(e){u=e}},5),e.link("./values.js",{default(e){f=e}},6);var c=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function l(e){return e?r(e)?i.call(e):o(e)?e.match(c):s(e)?a(e,u):f(e):[]}},"sortBy.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s=0;return t=r(t,n),i(o(e,(function(e,n,r){return{value:e,index:s++,criteria:t(e,n,r)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(ns}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./pluck.js",{default(e){i=e}},1),e.link("./map.js",{default(e){o=e}},2)},"groupBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n].push(t):e[n]=[t]})))},"_group.js":function e(t,n,e){let r,i;function o(e,t){return function(n,o,s){var a=t?[[],[]]:{};return o=r(o,s),i(n,(function(t,r){var i=o(t,r,n);e(a,t,i)})),a}}e.export({default:()=>o}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"indexBy.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n]=t})))},"countBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n]++:e[n]=1})))},"partition.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n?0:1].push(t)}),!0))},"size.js":function e(t,n,e){let r,i;function o(e){return null==e?0:r(e)?e.length:i(e).length}e.export({default:()=>o}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"pick.js":function e(t,n,e){let r,i,o,s,a,u;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){o=e}},2),e.link("./allKeys.js",{default(e){s=e}},3),e.link("./_keyInObj.js",{default(e){a=e}},4),e.link("./_flatten.js",{default(e){u=e}},5),e.exportDefault(r((function(e,t){var n={},r=t[0];if(null==e)return n;i(r)?(t.length>1&&(r=o(r,t[1])),t=s(e)):(r=a,t=u(t,!1,!1),e=Object(e));for(var f=0,c=t.length;fr})},"omit.js":function e(t,n,e){let r,i,o,s,a,u,f;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./negate.js",{default(e){o=e}},2),e.link("./map.js",{default(e){s=e}},3),e.link("./_flatten.js",{default(e){a=e}},4),e.link("./contains.js",{default(e){u=e}},5),e.link("./pick.js",{default(e){f=e}},6),e.exportDefault(r((function(e,t){var n=t[0],r;return i(n)?(n=o(n),t.length>1&&(r=t[1])):(t=s(a(t,!1,!1),String),n=function(e,n){return!u(t,n)}),f(e,n,r)})))},"first.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:r(e,e.length-t)}e.export({default:()=>i}),e.link("./initial.js",{default(e){r=e}},0)},"initial.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"last.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:r(e,Math.max(0,e.length-t))}e.export({default:()=>i}),e.link("./rest.js",{default(e){r=e}},0)},"rest.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,null==t||n?1:t)}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"compact.js":function e(t,n,e){let r;function i(e){return r(e,Boolean)}e.export({default:()=>i}),e.link("./filter.js",{default(e){r=e}},0)},"flatten.js":function e(t,n,e){let r;function i(e,t){return r(e,t,!1)}e.export({default:()=>i}),e.link("./_flatten.js",{default(e){r=e}},0)},"without.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./difference.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t){return i(e,t)})))},"difference.js":function e(t,n,e){let r,i,o,s;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./filter.js",{default(e){o=e}},2),e.link("./contains.js",{default(e){s=e}},3),e.exportDefault(r((function(e,t){return t=i(t,!0,!0),o(e,(function(e){return!s(t,e)}))})))},"uniq.js":function e(t,n,e){let r,i,o,s;function a(e,t,n,a){r(t)||(a=n,n=t,t=!1),null!=n&&(n=i(n,a));for(var u=[],f=[],c=0,l=o(e);ca}),e.link("./isBoolean.js",{default(e){r=e}},0),e.link("./_cb.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){o=e}},2),e.link("./contains.js",{default(e){s=e}},3)},"union.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./uniq.js",{default(e){i=e}},1),e.link("./_flatten.js",{default(e){o=e}},2),e.exportDefault(r((function(e){return i(o(e,!0,!0))})))},"intersection.js":function e(t,n,e){let r,i;function o(e){for(var t=[],n=arguments.length,o=0,s=r(e);oo}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./contains.js",{default(e){i=e}},1)},"unzip.js":function e(t,n,e){let r,i,o;function s(e){for(var t=e&&r(e,i).length||0,n=Array(t),s=0;ss}),e.link("./max.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.link("./pluck.js",{default(e){o=e}},2)},"zip.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./unzip.js",{default(e){i=e}},1),e.exportDefault(r(i))},"object.js":function e(t,n,e){let r;function i(e,t){for(var n={},i=0,o=r(e);ii}),e.link("./_getLength.js",{default(e){r=e}},0)},"range.js":function e(t,n,e){function r(e,t,n){null==t&&(t=e||0,e=0),n||(n=tr})},"chunk.js":function e(t,n,e){let r;function i(e,t){if(null==t||t<1)return[];for(var n=[],i=0,o=e.length;ii}),e.link("./_setup.js",{slice(e){r=e}},0)},"mixin.js":function e(t,n,e){let r,i,o,s,a;function u(e){return i(o(e),(function(t){var n=r[t]=e[t];r.prototype[t]=function(){var e=[this._wrapped];return s.apply(e,arguments),a(this,n.apply(r,e))}})),r}e.export({default:()=>u}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./functions.js",{default(e){o=e}},2),e.link("./_setup.js",{push(e){s=e}},3),e.link("./_chainResult.js",{default(e){a=e}},4)},"_chainResult.js":function e(t,n,e){let r;function i(e,t){return e._chain?r(t).chain():t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"underscore-array-methods.js":function e(t,n,e){let r,i,o,s;e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./_setup.js",{ArrayProto(e){o=e}},2),e.link("./_chainResult.js",{default(e){s=e}},3),i(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=o[e];r.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),s(this,n)}})),i(["concat","join","slice"],(function(e){var t=o[e];r.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),s(this,e)}})),e.exportDefault(r)}}}}},cachers:{"package.json":function e(t,n,e){e.exports={name:"@steedos/cachers",version:"2.5.15-beta.10",main:"lib/index.js"}},lib:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getCacherNames=n.clearCacher=n.getCacher=void 0;var r={},i=t("./memory"),o=t("./memory-lru"),s=function(e,t){return r[e]||(e.startsWith("lru.")?r[e]=new o.MemoryLRUCacher(t):r[e]=new i.MemoryCacher),r[e]};n.getCacher=s;var a=function(e){r[e]&&r[e].clear()};n.clearCacher=a;var u=function(){return Object.keys(r)};n.getCacherNames=u},"memory.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryCacher=void 0;var r=t("lodash"),i=function(){function e(){this.cache={}}return e.prototype.get=function(e){return this.cache[e]},e.prototype.delete=function(e){delete this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.clear=function(){this.cache={}},e.prototype.keys=function(){return(0,r.keys)(this.cache)},e.prototype.values=function(){return(0,r.values)(this.cache)},e}();n.MemoryCacher=i},"memory-lru.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryLRUCacher=void 0;var r=t("lodash"),i=t("lru-cache"),o={max:5e3,ttl:null,keygen:null,maxParamsLength:null},s=function(){function e(e){this.opts=(0,r.defaultsDeep)(e,o),this.cache=new i({max:this.opts.max,maxAge:this.opts.ttl?1e3*this.opts.ttl:null,updateAgeOnGet:!!this.opts.ttl})}return e.prototype.get=function(e){return this.cache.get(e)},e.prototype.set=function(e,t,n){return this.cache.set(e,t,n)},e.prototype.delete=function(e){return this.cache.delete(e)},e.prototype.clear=function(){return this.cache.clear()},e.prototype.keys=function(){return this.cache.keys()},e.prototype.values=function(){return this.cache.values()},e}();n.MemoryLRUCacher=s}},node_modules:{"lru-cache":{"package.json":function e(t,n,e){e.exports={name:"lru-cache",version:"7.14.1",main:"index.js"}},"index.js":function e(t,n,e){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,i="function"==typeof AbortController,o=i?AbortController:class e{constructor(){this.signal=new u}abort(){this.signal.dispatchEvent("abort")}},s="function"==typeof AbortSignal,a="function"==typeof o.AbortSignal,u=s?AbortSignal:a?o.AbortController:class e{constructor(){this.aborted=!1,this._listeners=[]}dispatchEvent(e){if("abort"===e){this.aborted=!0;const t={type:e,target:this};this.onabort(t),this._listeners.forEach(e=>e(t),this)}}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},f=new Set,c=(e,t)=>{const n=`LRU_CACHE_OPTION_${e}`;p(n)&&g(n,`${e} option`,`options.${t}`,_)},l=(e,t)=>{const n=`LRU_CACHE_METHOD_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} method`,`cache.${t}()`,i)}},h=(e,t)=>{const n=`LRU_CACHE_PROPERTY_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} property`,`cache.${t}`,i)}},d=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},p=e=>!f.has(e),g=(e,t,n,r)=>{f.add(e);const i=`The ${t} is deprecated. Please use ${n} instead.`;d(i,"DeprecationWarning",e,r)},b=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),m=e=>b(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?v:null:null;class v extends Array{constructor(e){super(e),this.fill(0)}}class y{constructor(e){if(0===e)return[];const t=m(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class _{constructor(e={}){const{max:t=0,ttl:n,ttlResolution:r=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:s,allowStale:a,dispose:u,disposeAfter:l,noDisposeOnSet:h,noUpdateTTL:g,maxSize:v=0,maxEntrySize:w=0,sizeCalculation:k,fetchMethod:j,fetchContext:x,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:D}=e,{length:E,maxAge:A,stale:C}=e instanceof _?{}:e;if(0!==t&&!b(t))throw new TypeError("max option must be a nonnegative integer");const M=t?m(t):Array;if(!M)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=v,this.maxEntrySize=w||this.maxSize,this.sizeCalculation=k||E,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=j||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=x,!this.fetchMethod&&void 0!==x)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new M(t),this.prev=new M(t),this.head=0,this.tail=0,this.free=new y(t),this.initialFill=1,this.size=0,"function"==typeof u&&(this.dispose=u),"function"==typeof l?(this.disposeAfter=l,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!S,0!==this.maxEntrySize){if(0!==this.maxSize&&!b(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!b(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!a||!!C,this.noDeleteOnStaleGet=!!D,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!s,this.ttlResolution=b(r)||0===r?r:1,this.ttlAutopurge=!!i,this.ttl=n||A||0,this.ttl){if(!b(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";if(p(e)){f.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";d(t,"UnboundedCacheWarning",e,_)}}C&&c("stale","allowStale"),A&&c("maxAge","ttl"),E&&c("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new v(this.max),this.starts=new v(this.max),this.setItemTTL=(e,t,n=r.now())=>{if(this.starts[e]=0!==t?n:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const n=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);n.unref&&n.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0};let e=0;const t=()=>{const t=r.now();if(this.ttlResolution>0){e=t;const n=setTimeout(()=>e=0,this.ttlResolution);n.unref&&n.unref()}return t};this.getRemainingTTL=n=>{const r=this.keyMap.get(n);return void 0===r?0:0===this.ttls[r]||0===this.starts[r]?1/0:this.starts[r]+this.ttls[r]-(e||t())},this.isStale=n=>0!==this.ttls[n]&&0!==this.starts[n]&&(e||t())-this.starts[n]>this.ttls[n]}updateItemAge(e){}setItemTTL(e,t,n){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new v(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,n,r)=>{if(this.isBackgroundFetch(t))return 0;if(!b(n)){if(!r)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!b(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.addItemSize=(e,t)=>{if(this.sizes[e]=t,this.maxSize){const t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e]}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,n,r){if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const n of this.indexes())if(e(this.valList[n],this.keyList[n],this))return this.get(this.keyList[n],t)}forEach(e,t=this){for(const n of this.indexes())e.call(t,this.valList[n],this.keyList[n],this)}rforEach(e,t=this){for(const n of this.rindexes())e.call(t,this.valList[n],this.keyList[n],this)}get prune(){return l("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes({allowStale:!0})){const n=this.keyList[t],i=this.valList[t],o=this.isBackgroundFetch(i)?i.__staleWhileFetching:i,s={value:o};if(this.ttls){s.ttl=this.ttls[t];const e=r.now()-this.starts[t];s.start=Math.floor(Date.now()-e)}this.sizes&&(s.size=this.sizes[t]),e.unshift([n,s])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}dispose(e,t,n){}set(e,t,{ttl:n=this.ttl,start:r,noDisposeOnSet:i=this.noDisposeOnSet,size:o=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(o=this.requireSize(e,t,o,s),this.maxEntrySize&&o>this.maxEntrySize)return this.delete(e),this;let u=0===this.size?void 0:this.keyMap.get(e);if(void 0===u)u=this.newIndex(),this.keyList[u]=e,this.valList[u]=t,this.keyMap.set(e,u),this.next[this.tail]=u,this.prev[u]=this.tail,this.tail=u,this.size++,this.addItemSize(u,o),a=!1;else{const n=this.valList[u];t!==n&&(this.isBackgroundFetch(n)?n.__abortController.abort():i||(this.dispose(n,e,"set"),this.disposeAfter&&this.disposed.push([n,e,"set"])),this.removeItemSize(u),this.valList[u]=t,this.addItemSize(u,o)),this.moveToTail(u)}if(0===n||0!==this.ttl||this.ttls||this.initializeTTLTracking(),a||this.setItemTTL(u,n,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,n=this.keyList[t],r=this.valList[t];return this.isBackgroundFetch(r)?r.__abortController.abort():(this.dispose(r,n,"evict"),this.disposeAfter&&this.disposed.push([r,n,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(n),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const n=this.keyMap.get(e);return void 0!==n&&!this.isStale(n)&&(t&&this.updateItemAge(n),!0)}peek(e,{allowStale:t=this.allowStale}={}){const n=this.keyMap.get(e);if(void 0!==n&&(t||!this.isStale(n))){const e=this.valList[n];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,n,r){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const s=new o,a={signal:s.signal,options:n,context:r},u=t=>(s.signal.aborted||this.set(e,t,a.options),t),f=r=>{if(this.valList[t]===l){const r=!n.noDeleteOnFetchRejection||void 0===l.__staleWhileFetching;r?this.delete(e):this.valList[t]=l.__staleWhileFetching}if(l.__returned===l)throw r},c=t=>t(this.fetchMethod(e,i,a)),l=new Promise(c).then(u,f);return l.__abortController=s,l.__staleWhileFetching=i,l.__returned=null,void 0===t?(this.set(e,l,a.options),t=this.keyMap.get(e)):this.valList[t]=l,l}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,fetchContext:c=this.fetchContext,forceRefresh:l=!1}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r});const h={allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:i,noDisposeOnSet:o,size:s,sizeCalculation:a,noUpdateTTL:u,noDeleteOnFetchRejection:f};let d=this.keyMap.get(e);if(void 0===d){const t=this.backgroundFetch(e,d,h,c);return t.__returned=t}{const r=this.valList[d];if(this.isBackgroundFetch(r))return t&&void 0!==r.__staleWhileFetching?r.__staleWhileFetching:r.__returned=r;if(!l&&!this.isStale(d))return this.moveToTail(d),n&&this.updateItemAge(d),r;const i=this.backgroundFetch(e,d,h,c);return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i.__returned=i}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet}={}){const i=this.keyMap.get(e);if(void 0!==i){const o=this.valList[i],s=this.isBackgroundFetch(o);if(this.isStale(i))return s?t?o.__staleWhileFetching:void 0:(r||this.delete(e),t?o:void 0);if(s)return;return this.moveToTail(i),n&&this.updateItemAge(i),o}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return l("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const n=this.keyMap.get(e);if(void 0!==n)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(n);const t=this.valList[n];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const n=this.keyList[e];this.dispose(t,n,"delete"),this.disposeAfter&&this.disposed.push([t,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return l("reset","clear"),this.clear}get length(){return h("length","size"),this.size}static get AbortController(){return o}static get AbortSignal(){return u}}e.exports=_}}}}},tslib:{"package.json":function e(t,n,e){e.exports={name:"tslib",version:"2.3.1",module:"tslib.es6.js",main:"tslib.js"}},"tslib.es6.js":function e(t,n,e){e.export({__extends:()=>i,__assign:()=>o,__rest:()=>s,__decorate:()=>a,__param:()=>u,__metadata:()=>f,__awaiter:()=>c,__generator:()=>l,__createBinding:()=>h,__exportStar:()=>d,__values:()=>p,__read:()=>g,__spread:()=>b,__spreadArrays:()=>m,__spreadArray:()=>v,__await:()=>y,__asyncGenerator:()=>_,__asyncDelegator:()=>w,__asyncValues:()=>k,__makeTemplateObject:()=>j,__importStar:()=>S,__importDefault:()=>D,__classPrivateFieldGet:()=>E,__classPrivateFieldSet:()=>A}); +if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,r=this,i;return e(this).one("bsTransitionEnd",(function(){n=!0})),setTimeout((function(){n||e(r).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};function r(t){return this.each((function(){var r=e(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),"string"==typeof t&&i[t].call(r)}))}n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.close=function(t){var r=e(this),i=r.attr("data-target");i||(i=(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var o=e(document).find(i);function s(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=r.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",s).emulateTransitionEnd(n.TRANSITION_DURATION):s())};var i=e.fn.alert;e.fn.alert=r,e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.isLoading=!1};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.button"),o="object"==typeof n&&n;i||r.data("bs.button",i=new t(this,o)),"toggle"==n?i.toggle():n&&i.setState(n)}))}t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var n="disabled",r=this.$element,i=r.is("input")?"val":"html",o=r.data();t+="Text",null==o.resetText&&r.data("resetText",r[i]()),setTimeout(e.proxy((function(){r[i](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n).prop(n,!1))}),this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var r=e.fn.button;e.fn.button=n,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=r,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var r=e(t.target).closest(".btn");n.call(r,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(jQuery),function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.carousel"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n),s="string"==typeof n?n:o.slide;i||r.data("bs.carousel",i=new t(this,o)),"number"==typeof n?i.to(n):s?i[s]():o.interval&&i.pause().cycle()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),r;if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var i,o=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(o)},t.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(n,r){var i=this.$element.find(".item.active"),o=r||this.getItemForDirection(n,i),s=this.interval,a="next"==n?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var f=o[0],c=e.Event("slide.bs.carousel",{relatedTarget:f,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=e(this.$indicators.children()[this.getItemIndex(o)]);l&&l.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:f,direction:a});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(n),"object"==typeof o&&o.length&&o[0].offsetWidth,i.addClass(a),o.addClass(a),i.one("bsTransitionEnd",(function(){o.removeClass([n,a].join(" ")).addClass("active"),i.removeClass(["active",a].join(" ")),u.sliding=!1,setTimeout((function(){u.$element.trigger(h)}),0)})).emulateTransitionEnd(t.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}};var r=e.fn.carousel;e.fn.carousel=n,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=r,this};var i=function(t){var r=e(this),i=r.attr("href");i&&(i=i.replace(/.*(?=#[^\s]+$)/,""));var o=r.attr("data-target")||i,s=e(document).find(o);if(s.hasClass("carousel")){var a=e.extend({},s.data(),r.data()),u=r.attr("data-slide-to");u&&(a.interval=!1),n.call(s,a),u&&s.data("bs.carousel").to(u),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var t=e(this);n.call(t,t.data())}))}))}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.$trigger=e('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var n,r=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(r)}function r(n){return this.each((function(){var r=e(this),i=r.data("bs.collapse"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n);!i&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),i||r.data("bs.collapse",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e;return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(n=i.data("bs.collapse"))&&n.transitioning)){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(r.call(i,"hide"),n||i.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var u=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[s](this.$element[0][u])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=e.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return i.call(this);this.$element[r](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,r){var i=e(r);this.addAriaAndCollapsedClass(n(i),i)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var i=e.fn.collapse;e.fn.collapse=r,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var i=e(this);i.attr("data-target")||t.preventDefault();var o=n(i),s,a=o.data("bs.collapse")?"toggle":i.data();r.call(o,a)}))}(jQuery),function(e){"use strict";var t=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(t){e(t).on("click.bs.dropdown",this.toggle)};function i(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r="#"!==n?e(document).find(n):null;return r&&r.length?r:t.parent()}function o(r){r&&3===r.which||(e(t).remove(),e(n).each((function(){var t=e(this),n=i(t),o={relatedTarget:this};n.hasClass("open")&&(r&&"click"==r.type&&/input|textarea/i.test(r.target.tagName)&&e.contains(n[0],r.target)||(n.trigger(r=e.Event("hide.bs.dropdown",o)),r.isDefaultPrevented()||(t.attr("aria-expanded","false"),n.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))})))}function s(t){return this.each((function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof t&&i[t].call(n)}))}r.VERSION="3.4.1",r.prototype.toggle=function(t){var n=e(this);if(!n.is(".disabled, :disabled")){var r=i(n),s=r.hasClass("open");if(o(),!s){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",o);var a={relatedTarget:this};if(r.trigger(t=e.Event("show.bs.dropdown",a)),t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(e.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var r=e(this);if(t.preventDefault(),t.stopPropagation(),!r.is(".disabled, :disabled")){var o=i(r),s=o.hasClass("open");if(!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(n).trigger("focus"),r.trigger("click");var a=" li:not(.disabled):visible a",u=o.find(".dropdown-menu"+a);if(u.length){var f=u.index(t.target);38==t.which&&f>0&&f--,40==t.which&&fdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},f.prototype.init=function(t,n,r){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var s=i[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",u="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},f.prototype.getDefaults=function(){return f.DEFAULTS},f.prototype.getOptions=function(n){var r=this.$element.data();for(var i in r)r.hasOwnProperty(i)&&-1!==e.inArray(i,t)&&delete r[i];return(n=e.extend({},this.getDefaults(),r,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=u(n.template,n.whiteList,n.sanitizeFn)),n},f.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,(function(e,r){n[e]!=r&&(t[e]=r)})),t},f.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout((function(){"in"==n.hoverState&&n.show()}),n.options.delay.show)}},f.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},f.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout((function(){"out"==n.hoverState&&n.hide()}),n.options.delay.hide)}},f.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var r=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,u=a.test(s);u&&(s=s.replace(a,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?i.appendTo(e(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),l=i[0].offsetWidth,h=i[0].offsetHeight;if(u){var d=s,p=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+h>p.bottom?"top":"top"==s&&c.top-hp.width?"left":"left"==s&&c.left-ls.top+s.height&&(i.top=s.top+s.height-u)}else{var f=t.left-o,c=t.left+o+n;fs.right&&(i.left=s.left+s.width-c)}return i},f.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},f.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},f.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},f.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},f.prototype.enable=function(){this.enabled=!0},f.prototype.disable=function(){this.enabled=!1},f.prototype.toggleEnabled=function(){this.enabled=!this.enabled},f.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},f.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},f.prototype.sanitizeHtml=function(e){return u(e,this.options.whiteList,this.options.sanitizeFn)};var l=e.fn.tooltip;e.fn.tooltip=c,e.fn.tooltip.Constructor=f,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=l,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");function n(n){return this.each((function(){var r=e(this),i=r.data("bs.popover"),o="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.popover",i=new t(this,o)),"string"==typeof n&&i[n]())}))}t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();if(this.options.html){var r=typeof n;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===r&&(n=this.sanitizeHtml(n))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===r?"html":"append"](n)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(n);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var r=e.fn.popover;e.fn.popover=n,e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=r,this}}(jQuery),function(e){"use strict";function t(n,r){this.$body=e(document.body),this.$scrollElement=e(n).is(document.body)?e(window):e(n),this.options=e.extend({},t.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each((function(){var r=e(this),i=r.data("bs.scrollspy"),o="object"==typeof n&&n;i||r.data("bs.scrollspy",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),i=t.data("target")||t.attr("href"),o=/^#./.test(i)&&e(i);return o&&o.length&&o.is(":visible")&&[[o[n]().top+r,i]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.getScrollHeight(),n=this.options.offset+t-this.$scrollElement.height(),r=this.offsets,i=this.targets,o=this.activeTarget,s;if(this.scrollHeight!=t&&this.refresh(),e>=n)return o!=(s=i[i.length-1])&&this.activate(s);if(o&&e=r[s]&&(void 0===r[s+1]||e .active"),s=i&&e.support.transition&&(o.length&&o.hasClass("fade")||!!r.find("> .fade").length);function a(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&s?o.one("bsTransitionEnd",a).emulateTransitionEnd(t.TRANSITION_DURATION):a(),o.removeClass("in")};var r=e.fn.tab;e.fn.tab=n,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=r,this};var i=function(t){t.preventDefault(),n.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(e){"use strict";var t=function(n,r){this.options=e.extend({},t.DEFAULTS,r);var i=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.affix"),o="object"==typeof n&&n;i||r.data("bs.affix",i=new t(this,o)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,n,r){var i=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return i=e-r&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),r=this.options.offset,i=r.top,o=r.bottom,s=Math.max(e(document).height(),e(document.body).height());"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var a=this.getState(s,n,i,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var u="affix"+(a?"-"+a:""),f=e.Event(u+".bs.affix");if(this.$element.trigger(f),f.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-n-o})}};var r=e.fn.affix;e.fn.affix=n,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=r,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var t=e(this),r=t.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),n.call(t,r)}))}))}(jQuery)}}}},fibers:{"package.json":function e(t,n,e){e.exports={name:"fibers",version:"5.0.3",main:"fibers"}},"fibers.js":function e(t,n,e,r,i){if(process.fiberLib)e.exports=process.fiberLib;else{var o=t("fs"),s=t("path"),a=t("detect-libc");Math.random();var u=s.join(i,"bin",process.platform+"-"+process.arch+"-"+process.versions.modules+("linux"===process.platform?"-"+a.family:""),"fibers");try{process.fiberLib=e.exports=t(u).Fiber}catch(c){throw console.error("## There is an issue with `node-fibers` ##\n`"+u+".node` is missing.\n\nTry running this to fix the issue: "+process.execPath+" "+i.replace(" ","\\ ")+"/build"),console.error(c.stack||c.message||c),new Error("Missing binary. See message above.")}f(e.exports)}function f(e){try{var t=process.binding("async_wrap"),n;if(t.asyncIdStackSize instanceof Function)n=t.asyncIdStackSize;else{if(void 0===t.constants.kStackLength)throw new Error("Couldn't figure out how to get async stack size");l=t.constants.kStackLength,n=function(){return t.async_hook_fields[l]}}var r=t.popAsyncContext||t.popAsyncIds,i=t.pushAsyncContext||t.pushAsyncIds,o,s;if(!r||!i)throw new Error("Push/pop do not exist");o=void 0===t.constants.kExecutionAsyncId?t.constants.kCurrentAsyncId:t.constants.kExecutionAsyncId,s=void 0===t.constants.kTriggerAsyncId?t.constants.kCurrentTriggerId:t.constants.kTriggerAsyncId;var a=t.async_id_fields||t.async_uid_fields;function u(){for(var e=n(),t=new Array(e);e>0;--e){var i=a[o];t[e-1]={asyncId:i,triggerId:a[s]},r(i)}return t}function f(e){for(var t=0;t0)i.changeLanguage(e,r);else if(0!=a[u]){a[u]=0;var f=new XMLHttpRequest;f.overrideMimeType("application/json"),f.open("GET",u,!1),f.send(null),200===f.status?a[u]=1:a[u]=-1,n.addResourceBundle(e,s,JSON.parse(f.response)||{}),i.changeLanguage(e,r)}};n.changeLanguage=p;var g=function(e,t,n){return i.format(e,t,n)};n.format=g;var b=function(){return i.languages};n.getLanguages=b;var m=function(e,t){return i.loadLanguages(e,t)};n.loadLanguages=m;var v=function(e,t){return i.loadNamespaces(e,t)};n.loadNamespaces=v;var y=function(e,t){return i.on(e,t)};n.on=y;var _=function(e,t){return i.off(e,t)};n.off=_,r.__exportStar(t("./i18n/i18n"),n),r.__exportStar(t("./i18n/i18n.app"),n),r.__exportStar(t("./translations"),n)},i18n:{"i18n.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fallbackKeys=n.getObjectI18nTemplate=n.translationI18nObjects=n.addObjectsI18n=n.translationI18nObject=void 0;var r=t("../index"),i=t("underscore"),o=t("clone"),s="_",a="base",u="core",f="translation",c=function(e,t){var n={lng:t,ns:f};if((0,r.exists)(e,n))return(0,r._t)(e,n)},l=function(e){return"".concat(e,"__object")},h=function(e,t){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t)},d=function(e,t){var n=h(e,t);return"".concat(n).concat("_","inlineHelpText")},p=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","group").concat("_").concat(n)},g=function(e,t,n){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t).concat("_","options").concat("_").concat(n)},b=function(e,t){return"".concat(e).concat("_","action").concat("_").concat(t)},m=function(e,t){return"".concat(e).concat("_","listview").concat("_").concat(t)},v=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},y=function(e,t,n){var r=l(t);return c(r,e)||n||""},_=function(e,t,n,r,i){var o=h(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=_(e,a,n,r,i))}return s||r||""},w=function(e,t,n,r,i){var o=d(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=w(e,a,n,r,i))}return s||r||""},k=function(e,t,n,r){var i=p(t,n);return c(i,e)||r||""},j=function(e,t,n,r,i,o){var s=g(t,n,r),a=c(s,e);if(!a){var u=v(o);u&&"base"!=t&&"core"!=t&&(a=j(e,u,n,r,i,o))}return a||i||""},x=function(e,t,n,r,i){var o=b(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=x(e,a,n,r,i))}return s||r||""},S=function(e,t,n,r,i){var o=m(t,n),s=c(o,e);if(!s){var a=v(i);a&&"base"!=t&&"core"!=t&&(s=S(e,a,n,r,i))}return s||r||""},D=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},E=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;return e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(D(e))}))):n.push(D(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},A=function(e,t,n){n.label=y(e,t,n.label),i.each(n.fields,(function(r,o){if(r.label=_(e,t,o,r.label,n.datasource),r.inlineHelpText&&(r.inlineHelpText=w(e,t,o,r.inlineHelpText,n.datasource)),r.group&&(r.group=k(e,t,r.group,r.group)),r.options){var s=[];i.each(r.options,(function(r){if(i.has(r,"value")){var a=j(e,t,o,r.value,r.label,n.datasource);s.push(i.extend({},r,{label:a}))}else s.push(r)})),r.options=s}})),i.each(n.actions,(function(r,i){r.label=x(e,t,i,r.label,n.datasource)})),i.each(n.list_views,(function(r,i){r.label=S(e,t,i,r.label,n.datasource)}))};n.translationI18nObject=A;var C=function(e){i.each(e,(function(e){(0,r.addResourceBundle)(e.lng,f,e.data,!0,!0)}))};n.addObjectsI18n=C;var M=function(e,t){i.each(t,(function(t,r){(0,n.translationI18nObject)(e,r,t)}))};n.translationI18nObjects=M;var O=function(e,t,n){var r=o(n);E(r);var s={};return s[l(t)]=y(e,t,r.label),i.each(r.fields,(function(n,o){s[h(t,o)]=_(e,t,o,n.label),n.inlineHelpText&&(s[d(t,o)]=w(e,t,o,n.inlineHelpText,r.datasource)),n.group&&(s[p(t,n.group)]=k(e,t,n.group,n.group)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(s[g(t,o,n.value)]=j(e,t,o,n.value,n.label))}))})),i.each(r.actions,(function(n,r){s[b(t,r)]=x(e,t,r,n.label)})),i.each(r.list_views,(function(n,r){s[m(t,r)]=S(e,t,r,n.label)})),s};n.getObjectI18nTemplate=O,n.fallbackKeys={getObjectLabelKey:l,getObjectFieldLabelKey:h,getObjectFieldInlineHelpTextLabelKey:d,getObjectFieldGroupKey:p,getObjectFieldOptionsLabelKey:g,getObjectActionLabelKey:b,getObjectListviewLabelKey:m}},"i18n.app.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.appFallbackKeys=n.getAppI18nTemplate=n.translationI18nApps=n.translationI18nMenus=void 0;var r=t("../index"),i=t("underscore"),o=t("clone"),s="translation",a="_",u=function(e,t){var n={lng:t,ns:s};if((0,r.exists)(e,n))return(0,r._t)(e,n)},f=function(e){return"app".concat("_").concat(e).concat("_","name")},c=function(e){return"app".concat("_").concat(e).concat("_","description")},l=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","tab_group").concat("_").concat(n)},h=function(e){return"menu".concat("_").concat(e)},d=function(e){return"tab".concat("_").concat(e)},p=function(e,t,n){var r=f(t);return u(r,e)||n||""},g=function(e,t,n){var r=c(t);return u(r,e)||n||""},b=function(e,t,n){var r=h(t);return u(r,e)||n||""},m=function(e,t,r){r.label=p(e,t,r.label||r.name),r.description=g(e,t,r.description),(0,n.translationI18nMenus)(e,r.admin_menus)},v=function(e,t){i.each(t,(function(t){var n=b(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationI18nMenus=v;var y=function(e,t){i.each(t,(function(t,n){m(e,n,t)}))};n.translationI18nApps=y;var _=function(e,t,n){var r=o(n),s={};return s[f(t)]=p(e,t,r.label||r.name),s[c(t)]=g(e,t,r.description),i.each(r.admin_menus,(function(t){s[h(t._id)]=b(e,t._id,t.label||t.name)})),s};n.getAppI18nTemplate=_,n.appFallbackKeys={getAppLabelKey:f,getAppDescriptionKey:c,getAppGroupKey:l,getMenuLabelKey:h,getTabKey:d}}},translations:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SteedosTranslationPrefixKeys=n.convertObject=void 0;var r=t("tslib"),i=t("underscore");r.__exportStar(t("./objectTranslation"),n),r.__exportStar(t("./translation"),n),r.__exportStar(t("./templates/objectTranslation"),n),r.__exportStar(t("./templates/translation"),n);var o=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},s=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(o(e))}))):n.push(o(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else if(e.options&&i.isArray(e.options))try{i.forEach(e.options,(function(e){i.isString(e)?n.push(o(e)):n.push(e)})),e.options=n}catch(r){console.error("Creator.convertFieldsOptions",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},a;n.convertObject=s,function(e){e.Object="CustomObject",e.Field="CustomField",e.Action="CustomAction",e.Listview="CustomListview",e.Permission="CustomPermission",e.ValidationRule="CustomValidationRule",e.Application="CustomApplication",e.Tab="CustomTabs",e.Permissionset="CustomPermissionset",e.Profile="CustomProfile",e.Report="CustomReport",e.Workflow="Workflow",e.Layout="Layout",e.Client="Client",e.Server="Server",e.Function="Function",e.Router="Router",e.Trigger="Trigger"}(a=n.SteedosTranslationPrefixKeys||(n.SteedosTranslationPrefixKeys={}))},"objectTranslation.js":function e(t,n,e,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addObjectsTranslation=n.getObjectTranslationTemplate=n.translationObjects=n.translationObject=n.translationObjectLabel=void 0;var i=t("underscore"),o=t("./"),s=t("../index"),a=t("./index"),u=t("../i18n/i18n"),f=t("lodash"),c=t("crypto"),l,h=(0,t("@steedos/cachers").getCacher)("lru.translations.objects");function d(e){var t;return c.createHash("md5").update(e).digest("hex")}var p=function(e,t){return"".concat(e,"_").concat(t.name,"_").concat(d(JSON.stringify(t)))},g=t("clone"),b=".",m="base",v="core",y="translation",_="object",w="field",k="listview",j="action",x=function(e,t){var n={lng:t,ns:y,keySeparator:!1};if((0,s.exists)(e,n))return(0,s._t)(e,n)},S=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},D=function(e){switch(e){case"object":return o.SteedosTranslationPrefixKeys.Object;case"field":return o.SteedosTranslationPrefixKeys.Field;case"listview":return o.SteedosTranslationPrefixKeys.Listview;case"action":return o.SteedosTranslationPrefixKeys.Action;default:return"CustomLabels"}},E=function(e){var t;return[D(),e].join(".")},A=function(e){var t;return[D("object"),e,"label"].join(".")},C=function(e){var t;return[D("object"),e,"description"].join(".")},M=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"label"].join(".")},O=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"help"].join(".")},T=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"description"].join(".")},B=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_"),r;return[D("field"),e,"group",n].join(".")},I=function(e,t,n){var r;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"options",n].join(".")},R=function(e,t){var n;return[D("action"),e,t].join(".")},F=function(e,t){var n;return[D("listview"),e,t].join(".")},P=function(e,t,n){var r,i=[A(t)],o=u.fallbackKeys.getObjectLabelKey(t);return o&&i.push(o),x(i,e)||n||""};n.translationObjectLabel=P;var N=function(e,t,n){var r=C(t);return x(r,e)||n||""},L=function(e,t,n,r,i,o){var s,a=[M(t,n)],f=u.fallbackKeys.getObjectFieldLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=L(e,l,n,r,i))}return c||r||""},z=function(e,t,n,r,i,o){var s,a=[O(t,n)],f=u.fallbackKeys.getObjectFieldInlineHelpTextLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=z(e,l,n,r,i))}return c||r||""},U=function(e,t,n,r,i,o){var s=T(t,n),a,u=x([s],e);if(1!=o&&!u){var f=S(i);f&&"base"!=t&&"core"!=t&&(u=U(e,f,n,r,i))}return u||r||""},q=function(e,t,n,r,i,o){var s,a=[B(t,n)],f=u.fallbackKeys.getObjectFieldGroupKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=q(e,l,n,r,i))}return c||r||""},$=function(e,t,n,r,i,o,s){var a,f=[I(t,n,r)],c=u.fallbackKeys.getObjectFieldOptionsLabelKey(t,n,r);c&&f.push(c);var l=x(f,e);if(1!=s&&!l){var h=S(o);h&&"base"!=t&&"core"!=t&&(l=$(e,h,n,r,i,o))}return l||i||""},H=function(e,t,n,r,i,o){var s,a=[R(t,n)],f=u.fallbackKeys.getObjectActionLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=H(e,l,n,r,i))}return c||r||""},W=function(e,t,n,r,i,o){var s,a=[F(t,n)],f=u.fallbackKeys.getObjectListviewLabelKey(t,n);f&&a.push(f);var c=x(a,e);if(1!=o&&!c){var l=S(i);l&&"base"!=t&&"core"!=t&&(c=W(e,l,n,r,i))}return c||r||""},Y=function(e,t,r,o,s){void 0===s&&(s=!1);var u=p(e,r);"test_obj_layout1"===t&&console.log("translationObject",t,u);var c=h.get(u);if(c)return Object.assign(r,(0,f.cloneDeep)(c));o&&(0,a.convertObject)(r),r.label=(0,n.translationObjectLabel)(e,t,r.label),r.description=N(e,t,r.description),i.each(r.fields,(function(n,o){if(n.label=L(e,t,o,n.label,r.datasource,s),n.inlineHelpText&&(n.inlineHelpText=z(e,t,o,n.inlineHelpText,r.datasource,s)),n.group&&(n.group=q(e,t,n.group,n.group,r.datasource,s)),n.options){var a=[];i.each(n.options,(function(n){if(i.has(n,"value")){var u=$(e,t,o,n.value,n.label,r.datasource,s);a.push(i.extend({},n,{label:u}))}else a.push(n)})),n.options=a}})),i.each(r.actions,(function(n,i){n.label=H(e,t,i,n.label,r.datasource,s)})),i.each(r.list_views,(function(n,i){n.label=W(e,t,i,n.label,r.datasource,s)})),h.set(u,(0,f.cloneDeep)(r))};n.translationObject=Y;var V=function(e,t){i.each(t,(function(t,r){(0,n.translationObject)(e,r,t)}))};n.translationObjects=V;var K=function(e,t,r){var o=g(r);(0,a.convertObject)(o);var s={};return s[A(t)]=(0,n.translationObjectLabel)(e,t,o.label),s[C(t)]=N(e,t,o.description),i.each(o.fields,(function(n,r){s[M(t,r)]=L(e,t,r,n.label),n.inlineHelpText&&(s[O(t,r)]=z(e,t,r,n.inlineHelpText,o.datasource)),n.description&&(s[T(t,r)]=U(e,t,r,n.description,o.datasource)),n.group&&(s[B(t,n.group)]=q(e,t,n.group,n.group,o.datasource)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(s[I(t,r,n.value)]=$(e,t,r,n.value,n.label))}))})),i.each(o.actions,(function(n,r){s[R(t,r)]=H(e,t,r,n.label)})),i.each(o.list_views,(function(n,r){s[F(t,r)]=W(e,t,r,n.label)})),s};function G(e,t){var n=g(e);(0,a.convertObject)(n);var r={},o=n.name;return o||console.error("Error: Invalid objectTranslation:"+t),r[A(o)]=n.label,r[C(o)]=n.description,i.each(n.fields,(function(e,t){r[M(o,t)]=e.label,e.help&&(r[O(o,t)]=e.help),e.description&&(r[T(o,t)]=e.description),e.options&&i.each(e.options,(function(e){i.has(e,"value")&&(r[I(o,t,e.value)]=e.label)}))})),i.each(n.groups,(function(e,t){r[B(o,t)]=e})),i.each(n.actions,(function(e,t){r[R(o,t)]=e.label})),i.each(n.listviews,(function(e,t){r[F(o,t)]=e.label})),i.each(n.CustomLabels,(function(e,t){r[E(t)]=e})),r}n.getObjectTranslationTemplate=K;var X=function(e){i.each(e,(function(e){var t=G(e.data,e.__filename);(0,s.addResourceBundle)(e.lng,y,t,!0,!0)}))};n.addObjectsTranslation=X},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addTranslations=n.convertTranslation=n.convertTranslationData=n.getAppTranslationTemplate=n.translationApps=n.translationMenus=n.translationApp=n.translationTabLabel=n.translationTabGroup=void 0;var r=t("../index"),i=t("underscore"),o=t("./"),s=t("../i18n/i18n.app"),a=t("clone"),u="translation",f=".",c="app",l="menu",h="tab",d=function(e){switch(e){case"app":return o.SteedosTranslationPrefixKeys.Application;case"tab":return o.SteedosTranslationPrefixKeys.Tab;default:return"CustomLabels"}},p=function(e){var t;return[d(),e].join(".")},g=function(e,t){var n={lng:t,ns:u,keySeparator:!1};if((0,r.exists)(e,n))return(0,r._t)(e,n)},b=function(e){var t;return[d("app"),e,"name"].join(".")},m=function(e){var t;return[d("app"),e,"description"].join(".")},v=function(e,t){var n,r;return[d("app"),e,"groups",t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_")].join(".")},y=function(e){var t;return[d("menu"),"menu_".concat(e)].join(".")},_=function(e){var t;return[d("tab"),e].join(".")},w=function(e,t,n){var r,i=[b(t)],o=s.appFallbackKeys.getAppLabelKey(t);return o&&i.push(o),g(i,e)||n||""},k=function(e,t,n){var r,i=[m(t)],o=s.appFallbackKeys.getAppDescriptionKey(t);return o&&i.push(o),g(i,e)||n||""},j=function(e,t,n,r){var i,o=[v(t,n)],a=s.appFallbackKeys.getAppGroupKey(t,n);return a&&o.push(a),g(o,e)||r||""};n.translationTabGroup=j;var x=function(e,t,n){var r,i=[y(t)],o=s.appFallbackKeys.getMenuLabelKey(t);return o&&i.push(o),g(i,e)||n||""},S=function(e,t,n){var r,i=[_(t)],o=s.appFallbackKeys.getTabKey(t);return o&&i.push(o),g(i,e)||n||""};n.translationTabLabel=S;var D=function(e,t,r){r.label=w(e,t,r.label||r.name),r.description=k(e,t,r.description),i.each(r.tab_groups,(function(i,o){r.tab_groups[o].id=i.id||i.group_name,r.tab_groups[o].group_name=(0,n.translationTabGroup)(e,t,i.group_name,i.group_name)})),(0,n.translationMenus)(e,r.admin_menus)};n.translationApp=D;var E=function(e,t){i.each(t,(function(t){var n=x(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationMenus=E;var A=function(e,t){i.each(t,(function(t,r){(0,n.translationApp)(e,r,t)}))};n.translationApps=A;var C=function(e,t,n){var r=a(n),o={};return o[b(t)]=w(e,t,r.label||r.name),o[m(t)]=k(e,t,r.description),i.each(r.admin_menus,(function(t){o[y(t._id)]=x(e,t._id,t.label||t.name)})),o};n.getAppTranslationTemplate=C;var M=function(e,t,n){i.isArray(n)?i.each(n,(function(e){M(e,"",e)})):n&&i.each(i.keys(n),(function(r){var o=t?"".concat(t,".").concat(r):r,s=n[r];"object"==typeof s?i.isArray(s)?i.each(s,(function(e){M(e,o,s)})):M(e,o,s):e[o]=s}))};function O(e){for(var t in e)"object"==typeof e[t]&&M(e,t,e[t]);return e}n.convertTranslationData=O;var T=function(e){var t=a(e),n={};return i.each(t.CustomApplications,(function(e,t){n[b(t)]=e.name,n[m(t)]=e.description,i.each(e.groups,(function(e,r){n[v(t,r)]=e}))})),i.each(t.CustomTabs,(function(e,t){n[_(t)]=e})),i.each(t.CustomLabels,(function(e,t){var r;if("simpleschema"!=t&&i.isObject(e)){var o=O(((r={})[t]=e,r));i.each(o,(function(e,t){i.isObject(e)||(n[p(t)]=e)}))}else n[p(t)]=e})),n};n.convertTranslation=T;var B=function(e){i.each(e,(function(e){var t=(0,n.convertTranslation)(e.data);(0,r.addResourceBundle)(e.lng,u,t,!0,!0)}))};n.addTranslations=B},templates:{"objectTranslation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getObjectMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),o=t("clone");function s(e,t){var n={};return r.each(e,(function(e){n[e]="help"===e?t.inlineHelpText||"":t[e]||""})),n}function a(e){return s(["label","description"],e)}function u(e){switch(e.type){case"select":return s(["label","help","options","description"],e);default:return s(["label","help","description"],e)}}function f(e){return s(["label"],e)}function c(e){return s(["label"],e)}function l(e){var t={};return r.each(e,(function(e,n){t[n]=u(e)})),t}function h(e){var t={};return r.each(e,(function(e,n){t[n]=c(e)})),t}function d(e){var t={};return r.each(e,(function(e,n){t[n]=f(e)})),t}function p(e,t){var n={};return r.each(e,(function(e,r){if(e.group){var i=e.group.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");n[i]=t[r].group}})),n}var g=function(e,t,n,s){void 0===s&&(s=!1);var u=o(n);1!=s&&(0,i.translationObject)(e,t,u,!0,s);var f=Object.assign({},a(u));f=Object.assign({},f,{fields:l(u.fields)});var c=p(n.fields,u.fields);r.isEmpty(c)||(f=Object.assign({},f,{groups:c}));var g=d(u.list_views);r.isEmpty(g)||(f=Object.assign({},f,{listviews:g}));var b=h(u.actions);return r.isEmpty(b)||(f=Object.assign({},f,{actions:b})),Object.assign({name:t},f)};n.getObjectMetadataTranslationTemplate=g},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getAppMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),o=t("clone");function s(e,t){var n={};return r.each(e,(function(e){n[e]=t[e]||""})),n}function a(e){var t={groups:{}};return e?(r.each(e,(function(e){var n=e.group_name.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t.groups[n]=e.group_name})),t):{}}var u=function(e){return Object.assign({},s(["name","description"],e),a(e.tab_groups))},f=function(e){var t={};return r.each(e,(function(e,n){t[n]=n})),t},c=function(e){var t={};return r.each(e,(function(e){var n=e.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t[n]=e})),t},l=function(e,t,n){var r,s=o(n);(0,i.translationApp)(e,t,s);var a={},l;return s.tab_items?a=f(s.tab_items):s.tabs&&(a=c(s.tabs)),Object.assign({},{CustomApplications:(r={},r[t]=u(s),r)},{CustomTabs:a})};n.getAppMetadataTranslationTemplate=l}}}},node_modules:{i18next:{"package.json":function e(t,n,e){e.exports={name:"i18next",version:"19.9.2",module:"./dist/esm/i18next.js",main:"./dist/cjs/i18next.js"}},dist:{esm:{"i18next.js":function e(t,n,e){let r,i,o,s,a,u,f,c;e.link("@babel/runtime/helpers/esm/typeof",{default(e){r=e}},0),e.link("@babel/runtime/helpers/esm/objectSpread",{default(e){i=e}},1),e.link("@babel/runtime/helpers/esm/classCallCheck",{default(e){o=e}},2),e.link("@babel/runtime/helpers/esm/createClass",{default(e){s=e}},3),e.link("@babel/runtime/helpers/esm/possibleConstructorReturn",{default(e){a=e}},4),e.link("@babel/runtime/helpers/esm/getPrototypeOf",{default(e){u=e}},5),e.link("@babel/runtime/helpers/esm/assertThisInitialized",{default(e){f=e}},6),e.link("@babel/runtime/helpers/esm/inherits",{default(e){c=e}},7);var l={type:"logger",log:function e(t){this.output("log",t)},warn:function e(t){this.output("warn",t)},error:function e(t){this.output("error",t)},output:function e(t,n){console&&console[t]&&console[t].apply(console,n)}},h,d=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.init(t,n)}return s(e,[{key:"init",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||l,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function e(t){this.debug=t}},{key:"log",value:function e(){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function y(e,t,n){var r=v(e,t,Object),i,o;r.obj[r.k]=n}function _(e,t,n,r){var i=v(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}function w(e,t){var n=v(e,t),r=n.obj,i=n.k;if(r)return r[i]}function k(e,t,n){var r=w(e,n);return void 0!==r?r:w(t,n)}function j(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):j(e[r],t[r],n):e[r]=t[r]);return e}function x(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var S={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function D(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return S[e]})):e}var E="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,A=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return o(this,t),n=a(this,u(t).call(this)),E&&p.call(f(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return c(t,e),s(t,[{key:"addNamespaces",value:function e(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function e(t){var n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=[t,n];return r&&"string"!=typeof r&&(s=s.concat(r)),r&&"string"==typeof r&&(s=s.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(s=t.split(".")),w(this.data,s)}},{key:"addResource",value:function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},s=this.options.keySeparator;void 0===s&&(s=".");var a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(i=n,n=(a=t.split("."))[1]),this.addNamespaces(n),y(this.data,a,i),o.silent||this.emit("added",t,n,r,i)}},{key:"addResources",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in r)"string"!=typeof r[o]&&"[object Array]"!==Object.prototype.toString.apply(r[o])||this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}},{key:"addResourceBundle",value:function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},u=[t,n];t.indexOf(".")>-1&&(o=r,r=n,n=(u=t.split("."))[1]),this.addNamespaces(n);var f=w(this.data,u)||{};o?j(f,r,s):f=i({},f,r),y(this.data,u,f),a.silent||this.emit("added",t,n,r)}},{key:"removeResourceBundle",value:function e(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}},{key:"hasResourceBundle",value:function e(t,n){return void 0!==this.getResource(t,n)}},{key:"getResourceBundle",value:function e(t,n){return n||(n=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(t,n)):this.getResource(t,n)}},{key:"getDataByLanguage",value:function e(t){return this.data[t]}},{key:"toJSON",value:function e(){return this.data}}]),t}(p),C={processors:{},addPostProcessor:function e(t){this.processors[t.name]=t},handle:function e(t,n,r,i,o){var s=this;return t.forEach((function(e){s.processors[e]&&(n=s.processors[e].process(n,r,i,o))})),n}},M={},O=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,t),n=a(this,u(t).call(this)),E&&p.call(f(n)),m(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,f(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=d.create("translator"),n}return c(t,e),s(t,[{key:"changeLanguage",value:function e(t){t&&(this.language=t)}},{key:"exists",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(t,n);return r&&void 0!==r.res}},{key:"extractFromKey",value:function e(t,n){var r=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=n.ns||this.options.defaultNS;if(r&&t.indexOf(r)>-1){var s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:o};var a=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),t=a.join(i)}return"string"==typeof o&&(o=[o]),{key:t,namespaces:o}}},{key:"translate",value:function e(n,o,s){var a=this;if("object"!==r(o)&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),null==n)return"";Array.isArray(n)||(n=[String(n)]);var u=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,f=this.extractFromKey(n[n.length-1],o),c=f.key,l=f.namespaces,h=l[l.length-1],d=o.lng||this.language,p=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var g=o.nsSeparator||this.options.nsSeparator;return h+g+c}return c}var b=this.resolve(n,o),m=b&&b.res,v=b&&b.usedKey||c,y=b&&b.exactUsedKey||c,_=Object.prototype.toString.apply(m),w=["[object Number]","[object Function]","[object RegExp]"],k=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(j&&m&&x&&w.indexOf(_)<0&&("string"!=typeof k||"[object Array]"!==_)){if(!o.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,o):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(u){var S="[object Array]"===_,D=S?[]:{},E=S?y:v;for(var A in m)if(Object.prototype.hasOwnProperty.call(m,A)){var C="".concat(E).concat(u).concat(A);D[A]=this.translate(C,i({},o,{joinArrays:!1,ns:l})),D[A]===C&&(D[A]=m[A])}m=D}}else if(j&&"string"==typeof k&&"[object Array]"===_)(m=m.join(k))&&(m=this.extendTranslation(m,n,o,s));else{var M=!1,O=!1,T=void 0!==o.count&&"string"!=typeof o.count,B=t.hasDefaultValue(o),I=T?this.pluralResolver.getSuffix(d,o.count):"",R=o["defaultValue".concat(I)]||o.defaultValue;!this.isValidLookup(m)&&B&&(M=!0,m=R),this.isValidLookup(m)||(O=!0,m=c);var F=B&&R!==m&&this.options.updateMissing;if(O||M||F){if(this.logger.log(F?"updateKey":"missingKey",d,h,c,F?R:m),u){var P=this.resolve(c,i({},o,{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var z=0;z1&&void 0!==arguments[1]?arguments[1]:{},i,o,s,a,u;return"string"==typeof t&&(t=[t]),t.forEach((function(e){if(!n.isValidLookup(i)){var t=n.extractFromKey(e,r),f=t.key;o=f;var c=t.namespaces;n.options.fallbackNS&&(c=c.concat(n.options.fallbackNS));var l=void 0!==r.count&&"string"!=typeof r.count,h=void 0!==r.context&&"string"==typeof r.context&&""!==r.context,d=r.lngs?r.lngs:n.languageUtils.toResolveHierarchy(r.lng||n.language,r.fallbackLng);c.forEach((function(e){n.isValidLookup(i)||(u=e,!M["".concat(d[0],"-").concat(e)]&&n.utils&&n.utils.hasLoadedNamespace&&!n.utils.hasLoadedNamespace(u)&&(M["".concat(d[0],"-").concat(e)]=!0,n.logger.warn('key "'.concat(o,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(t){if(!n.isValidLookup(i)){a=t;var o=f,u=[o],c,d;if(n.i18nFormat&&n.i18nFormat.addLookupKeys)n.i18nFormat.addLookupKeys(u,f,t,e,r);else l&&(c=n.pluralResolver.getSuffix(t,r.count)),l&&h&&u.push(o+c),h&&u.push(o+="".concat(n.options.contextSeparator).concat(r.context)),l&&u.push(o+=c);for(;d=u.pop();)n.isValidLookup(i)||(s=d,i=n.getResource(t,e,d,r))}})))}))}})),{res:i,usedKey:o,exactUsedKey:s,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function e(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}}],[{key:"hasDefaultValue",value:function e(t){var n="defaultValue";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&void 0!==t[r])return!0;return!1}}]),t}(p);function T(e){return e.charAt(0).toUpperCase()+e.slice(1)}var B=function(){function e(t){o(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=d.create("languageUtils")}return s(e,[{key:"getScriptPartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase()?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function e(t){if("string"==typeof t&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=T(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function e(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function e(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function e(t){var n=this,r;return t?(t.forEach((function(e){if(!r){var t=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(t)||(r=t)}})),!r&&this.options.supportedLngs&&t.forEach((function(e){if(!r){var t=n.getLanguagePartFromCode(e);if(n.isSupportedCode(t))return r=t;r=n.options.supportedLngs.find((function(e){if(0===e.indexOf(t))return e}))}})),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function e(t,n){if(!t)return[];if("function"==typeof t&&(t=t(n)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function e(t,n){var r=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],s=function e(t){t&&(r.isSupportedCode(t)?o.push(t):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(t))):"string"==typeof t&&s(this.formatLanguageCode(t)),i.forEach((function(e){o.indexOf(e)<0&&s(r.formatLanguageCode(e))})),o}}]),e}(),I=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],R={1:function e(t){return Number(t>1)},2:function e(t){return Number(1!=t)},3:function e(t){return 0},4:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function e(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function e(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function e(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function e(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function e(t){return Number(t>=2)},10:function e(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function e(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function e(t){return Number(t%10!=1||t%100==11)},13:function e(t){return Number(0!==t)},14:function e(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function e(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function e(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function e(t){return Number(0==t?0:1==t?1:2)},19:function e(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function e(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function e(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function e(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function F(){var e={};return I.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:R[t.fc]}}))})),e}var P=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.languageUtils=t,this.options=n,this.logger=d.create("pluralResolver"),this.rules=F()}return s(e,[{key:"addRule",value:function e(t,n){this.rules[t]=n}},{key:"getRule",value:function e(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function e(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function e(t,n){return this.getSuffixes(t).map((function(e){return n+e}))}},{key:"getSuffixes",value:function e(t){var n=this,r=this.getRule(t);return r?r.numbers.map((function(e){return n.getSuffix(t,e)})):[]}},{key:"getSuffix",value:function e(t,n){var r=this,i=this.getRule(t);if(i){var o=i.noAbs?i.plurals(n):i.plurals(Math.abs(n)),s=i.numbers[o];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===s?s="plural":1===s&&(s=""));var a=function e(){return r.options.prepend&&s.toString()?r.options.prepend+s.toString():s.toString()};return"v1"===this.options.compatibilityJSON?1===s?"":"number"==typeof s?"_plural_".concat(s.toString()):a():"v2"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),N=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.logger=d.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return s(e,[{key:"init",value:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=void 0!==n.escape?n.escape:D,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?x(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?x(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?x(n.nestingPrefix):n.nestingPrefixEscaped||x("$t("),this.nestingSuffix=n.nestingSuffix?x(n.nestingSuffix):n.nestingSuffixEscaped||x(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function e(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function e(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function e(t,n,r,i){var o=this,s,a,u,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function e(t){if(t.indexOf(o.formatSeparator)<0){var s=k(n,f,t);return o.alwaysFormat?o.format(s,void 0,r):s}var a=t.split(o.formatSeparator),u=a.shift().trim(),c=a.join(o.formatSeparator).trim();return o.format(k(n,f,u),c,r,i)};this.resetRegExp();var h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p;return[{regex:this.regexpUnescape,safeValue:function e(t){return c(t)}},{regex:this.regexp,safeValue:function e(t){return o.escapeValue?c(o.escape(t)):c(t)}}].forEach((function(e){for(u=0;s=e.regex.exec(t);){if(void 0===(a=l(s[1].trim())))if("function"==typeof h){var n=h(t,s,i);a="string"==typeof n?n:""}else{if(d){a=s[0];continue}o.logger.warn("missed to pass in variable ".concat(s[1]," for interpolating ").concat(t)),a=""}else"string"==typeof a||o.useRawValueToEscape||(a=b(a));if(t=t.replace(s[0],e.safeValue(a)),e.regex.lastIndex=0,++u>=o.maxReplaces)break}})),t}},{key:"nest",value:function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s,a,u=i({},o);function f(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,u)).replace(/'/g,'"');try{u=JSON.parse(o),t&&(u=i({},t,u))}catch(s){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),s),"".concat(e).concat(n).concat(o)}return delete u.defaultValue,e}for(u.applyPostProcessor=!1,delete u.defaultValue;s=this.nestingRegexp.exec(t);){var c=[],l=!1;if(s[0].includes(this.formatSeparator)&&!/{.*}/.test(s[1])){var h=s[1].split(this.formatSeparator).map((function(e){return e.trim()}));s[1]=h.shift(),c=h,l=!0}if((a=n(f.call(this,s[1].trim(),u),u))&&s[0]===t&&"string"!=typeof a)return a;"string"!=typeof a&&(a=b(a)),a||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(t)),a=""),l&&(a=c.reduce((function(e,t){return r.format(e,t,o.lng,o)}),a.trim())),t=t.replace(s[0],a),this.regexp.lastIndex=0}return t}}]),e}();function L(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}var z=function(e){function t(e,n,r){var i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o(this,t),i=a(this,u(t).call(this)),E&&p.call(f(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=s,i.logger=d.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,s.backend,s),i}return c(t,e),s(t,[{key:"queueLoad",value:function e(t,n,r,i){var o=this,s=[],a=[],u=[],f=[];return t.forEach((function(e){var t=!0;n.forEach((function(n){var i="".concat(e,"|").concat(n);!r.reload&&o.store.hasResourceBundle(e,n)?o.state[i]=2:o.state[i]<0||(1===o.state[i]?a.indexOf(i)<0&&a.push(i):(o.state[i]=1,t=!1,a.indexOf(i)<0&&a.push(i),s.indexOf(i)<0&&s.push(i),f.indexOf(n)<0&&f.push(n)))})),t||u.push(e)})),(s.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:i}),{toLoad:s,pending:a,toLoadLanguages:u,toLoadNamespaces:f}}},{key:"loaded",value:function e(t,n,r){var i=t.split("|"),o=i[0],s=i[1];n&&this.emit("failedLoading",o,s,n),r&&this.store.addResourceBundle(o,s,r),this.state[t]=n?-1:2;var e={};this.queue.forEach((function(r){_(r.loaded,[o],s),L(r.pending,t),n&&r.errors.push(n),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(t){e[t]||(e[t]=[]),r.loaded[t].length&&r.loaded[t].forEach((function(n){e[t].indexOf(n)<0&&e[t].push(n)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",e),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[r](t,n,(function(e,u){e&&u&&o<5?setTimeout((function(){i.read.call(i,t,n,r,o+1,2*s,a)}),s):a(e,u)})):a(null,{})}},{key:"prepareLoading",value:function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof n&&(n=[n]);var s=this.queueLoad(t,n,i,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function e(t,n,r){this.prepareLoading(t,n,{},r)}},{key:"reload",value:function e(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}},{key:"loadOne",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t.split("|"),o=i[0],s=i[1];this.read(o,s,"read",void 0,void 0,(function(e,i){e&&n.logger.warn("".concat(r,"loading namespace ").concat(s," for language ").concat(o," failed"),e),!e&&i&&n.logger.log("".concat(r,"loaded namespace ").concat(s," for language ").concat(o),i),n.loaded(t,e,i)}))}},{key:"saveMissing",value:function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(t,n,r,o,null,i({},a,{isUpdate:s})),t&&t[0]&&this.store.addResource(t[0],n,r,o))}}]),t}(p);function U(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function e(t){var n={};if("object"===r(t[1])&&(n=t[1]),"string"==typeof t[1]&&(n.defaultValue=t[1]),"string"==typeof t[2]&&(n.tDescription=t[2]),"object"===r(t[2])||"object"===r(t[3])){var i=t[3]||t[2];Object.keys(i).forEach((function(e){n[e]=i[e]}))}return n},interpolation:{escapeValue:!0,format:function e(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function q(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $(){}var H,W=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(o(this,t),e=a(this,u(t).call(this)),E&&p.call(f(e)),e.options=q(n),e.services={},e.logger=d,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),a(e,f(e));setTimeout((function(){e.init(n,r)}),0)}return e}return c(t,e),s(t,[{key:"init",value:function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function o(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof n&&(r=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},U(),this.options,q(n)),this.format=this.options.interpolation.format,r||(r=$),!this.options.isClone){this.modules.logger?d.init(o(this.modules.logger),this.options):d.init(null,this.options);var s=new B(this.options);this.store=new A(this.options.resources,this.options);var a=this.services;a.logger=d,a.resourceStore=this.store,a.languageUtils=s,a.pluralResolver=new P(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new N(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new z(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var f=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];f.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}}));var l=g(),h=function e(){var n=function e(n,i){t.isInitialized&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),l.resolve(i),r(n,i)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return n(null,t.t.bind(t));t.changeLanguage(t.options.lng,n)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),l}},{key:"loadResources",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,i=r,o="string"==typeof t?t:this.language;if("function"==typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return i();var s=[],a=function e(t){var r;t&&n.services.languageUtils.toResolveHierarchy(t).forEach((function(e){s.indexOf(e)<0&&s.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(s,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function e(t,n,r){var i=g();return t||(t=this.languages),n||(n=this.options.ns),r||(r=$),this.services.backendConnector.reload(t,n,(function(e){i.resolve(),r(e)})),i}},{key:"use",value:function e(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&C.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function e(t,n){var r=this;this.isLanguageChangingTo=t;var i=g();this.emit("languageChanging",t);var o=function e(t,o){o?(r.language=o,r.languages=r.services.languageUtils.toResolveHierarchy(o),r.translator.changeLanguage(o),r.isLanguageChangingTo=void 0,r.emit("languageChanged",o),r.logger.log("languageChanged",o)):r.isLanguageChangingTo=void 0,i.resolve((function(){return r.t.apply(r,arguments)})),n&&n(t,(function(){return r.t.apply(r,arguments)}))},s=function e(t){var n="string"==typeof t?t:r.services.languageUtils.getBestMatchFromCodes(t);n&&(r.language||(r.language=n,r.languages=r.services.languageUtils.toResolveHierarchy(n)),r.translator.language||r.translator.changeLanguage(n),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(n)),r.loadResources(n,(function(e){o(e,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(s):s(t):s(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function e(t,n){var o=this,s=function e(t,n){var s;if("object"!==r(n)){for(var a=arguments.length,u=new Array(a>2?a-2:0),f=2;f1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],o=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function e(t,r){var i=n.services.backendConnector.state["".concat(t,"|").concat(r)];return-1===i||2===i};if(r.precheck){var u=r.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(i,t)||(!this.services.backendConnector.backend||!(!a(i,t)||o&&!a(s,t)))}},{key:"loadNamespaces",value:function e(t,n){var r=this,i=g();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),n&&n(e)})),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function e(t,n){var r=g();"string"==typeof t&&(t=[t]);var i=this.options.preload||[],o=t.filter((function(e){return i.indexOf(e)<0}));return o.length?(this.options.preload=i.concat(o),this.loadResources((function(e){r.resolve(),n&&n(e)})),r):(n&&n(),Promise.resolve())}},{key:"dir",value:function e(t){return t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),t?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr":"rtl";var n}},{key:"createInstance",value:function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function e(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,s=i({},this.options,r,{isClone:!0}),a=new t(s),u=["store","services","language"];return u.forEach((function(e){a[e]=n[e]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new O(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rr,root:()=>i,ArrayProto:()=>o,ObjProto:()=>s,SymbolProto:()=>a,push:()=>u,slice:()=>f,toString:()=>c,hasOwnProperty:()=>l,supportsArrayBuffer:()=>h,supportsDataView:()=>d,nativeIsArray:()=>p,nativeKeys:()=>g,nativeCreate:()=>b,nativeIsView:()=>m,_isNaN:()=>v,_isFinite:()=>y,hasEnumBug:()=>_,nonEnumerableProps:()=>w,MAX_ARRAY_INDEX:()=>k});var r="1.13.4",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},o=Array.prototype,s=Object.prototype,a="undefined"!=typeof Symbol?Symbol.prototype:null,u=o.push,f=o.slice,c=s.toString,l=s.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,d="undefined"!=typeof DataView,p=Array.isArray,g=Object.keys,b=Object.create,m=h&&ArrayBuffer.isView,v=isNaN,y=isFinite,_=!{toString:null}.propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=Math.pow(2,53)-1},"restArguments.js":function e(t,n,e){function r(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;ir})},"isObject.js":function e(t,n,e){function r(e){var t=typeof e;return"function"===t||"object"===t&&!!e}e.export({default:()=>r})},"isNull.js":function e(t,n,e){function r(e){return null===e}e.export({default:()=>r})},"isUndefined.js":function e(t,n,e){function r(e){return void 0===e}e.export({default:()=>r})},"isBoolean.js":function e(t,n,e){let r;function i(e){return!0===e||!1===e||"[object Boolean]"===r.call(e)}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isElement.js":function e(t,n,e){function r(e){return!(!e||1!==e.nodeType)}e.export({default:()=>r})},"isString.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("String"))},"_tagTester.js":function e(t,n,e){let r;function i(e){var t="[object "+e+"]";return function(e){return r.call(e)===t}}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isNumber.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Number"))},"isDate.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Date"))},"isRegExp.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("RegExp"))},"isError.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Error"))},"isSymbol.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Symbol"))},"isArrayBuffer.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("ArrayBuffer"))},"isDataView.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isArrayBuffer.js",{default(e){o=e}},2),e.link("./_stringTagBug.js",{hasStringTagBug(e){s=e}},3);var a=r("DataView");function u(e){return null!=e&&i(e.getInt8)&&o(e.buffer)}e.exportDefault(s?u:a)},"isFunction.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_setup.js",{root(e){i=e}},1);var o=r("Function"),s=i.document&&i.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof s&&(o=function(e){return"function"==typeof e||!1}),e.exportDefault(o)},"_stringTagBug.js":function e(t,n,e){let r,i;e.export({hasStringTagBug:()=>o,isIE11:()=>s}),e.link("./_setup.js",{supportsDataView(e){r=e}},0),e.link("./_hasObjectTag.js",{default(e){i=e}},1);var o=r&&i(new DataView(new ArrayBuffer(8))),s="undefined"!=typeof Map&&i(new Map)},"_hasObjectTag.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Object"))},"isArray.js":function e(t,n,e){let r,i;e.link("./_setup.js",{nativeIsArray(e){r=e}},0),e.link("./_tagTester.js",{default(e){i=e}},1),e.exportDefault(r||i("Array"))},"isArguments.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1);var o=r("Arguments");!function(){o(arguments)||(o=function(e){return i(e,"callee")})}(),e.exportDefault(o)},"_has.js":function e(t,n,e){let r;function i(e,t){return null!=e&&r.call(e,t)}e.export({default:()=>i}),e.link("./_setup.js",{hasOwnProperty(e){r=e}},0)},"isFinite.js":function e(t,n,e){let r,i;function o(e){return!i(e)&&r(e)&&!isNaN(parseFloat(e))}e.export({default:()=>o}),e.link("./_setup.js",{_isFinite(e){r=e}},0),e.link("./isSymbol.js",{default(e){i=e}},1)},"isNaN.js":function e(t,n,e){let r,i;function o(e){return i(e)&&r(e)}e.export({default:()=>o}),e.link("./_setup.js",{_isNaN(e){r=e}},0),e.link("./isNumber.js",{default(e){i=e}},1)},"isTypedArray.js":function e(t,n,e){let r,i,o,s,a,u;e.link("./_setup.js",{supportsArrayBuffer(e){r=e},nativeIsView(e){i=e},toString(e){o=e}},0),e.link("./isDataView.js",{default(e){s=e}},1),e.link("./constant.js",{default(e){a=e}},2),e.link("./_isBufferLike.js",{default(e){u=e}},3);var f=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function c(e){return i?i(e)&&!s(e):u(e)&&f.test(o.call(e))}e.exportDefault(r?c:a(!1))},"constant.js":function e(t,n,e){function r(e){return function(){return e}}e.export({default:()=>r})},"_isBufferLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getByteLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createSizePropertyCheck.js":function e(t,n,e){let r;function i(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=r}}e.export({default:()=>i}),e.link("./_setup.js",{MAX_ARRAY_INDEX(e){r=e}},0)},"_getByteLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("byteLength"))},"_shallowProperty.js":function e(t,n,e){function r(e){return function(t){return null==t?void 0:t[e]}}e.export({default:()=>r})},"isEmpty.js":function e(t,n,e){let r,i,o,s,a;function u(e){if(null==e)return!0;var t=r(e);return"number"==typeof t&&(i(e)||o(e)||s(e))?0===t:0===r(a(e))}e.export({default:()=>u}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./isString.js",{default(e){o=e}},2),e.link("./isArguments.js",{default(e){s=e}},3),e.link("./keys.js",{default(e){a=e}},4)},"_getLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("length"))},"keys.js":function e(t,n,e){let r,i,o,s,a;function u(e){if(!r(e))return[];if(i)return i(e);var t=[];for(var n in e)s(e,n)&&t.push(n);return o&&a(e,t),t}e.export({default:()=>u}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeKeys(e){i=e},hasEnumBug(e){o=e}},1),e.link("./_has.js",{default(e){s=e}},2),e.link("./_collectNonEnumProps.js",{default(e){a=e}},3)},"_collectNonEnumProps.js":function e(t,n,e){let r,i,o,s;function a(e){for(var t={},n=e.length,r=0;ru}),e.link("./_setup.js",{nonEnumerableProps(e){r=e},ObjProto(e){i=e}},0),e.link("./isFunction.js",{default(e){o=e}},1),e.link("./_has.js",{default(e){s=e}},2)},"isMatch.js":function e(t,n,e){let r;function i(e,t){var n=r(t),i=n.length;if(null==e)return!i;for(var o=Object(e),s=0;si}),e.link("./keys.js",{default(e){r=e}},0)},"isEqual.js":function e(t,n,e){let r,i,o,s,a,u,f,c,l,h,d;e.export({default:()=>m}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_setup.js",{toString(e){i=e},SymbolProto(e){o=e}},1),e.link("./_getByteLength.js",{default(e){s=e}},2),e.link("./isTypedArray.js",{default(e){a=e}},3),e.link("./isFunction.js",{default(e){u=e}},4),e.link("./_stringTagBug.js",{hasStringTagBug(e){f=e}},5),e.link("./isDataView.js",{default(e){c=e}},6),e.link("./keys.js",{default(e){l=e}},7),e.link("./_has.js",{default(e){h=e}},8),e.link("./_toBufferView.js",{default(e){d=e}},9);var p="[object DataView]";function g(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&b(e,t,n,r)}function b(e,t,n,m){e instanceof r&&(e=e._wrapped),t instanceof r&&(t=t._wrapped);var v=i.call(e);if(v!==i.call(t))return!1;if(f&&"[object Object]"==v&&c(e)){if(!c(t))return!1;v=p}switch(v){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return o.valueOf.call(e)===o.valueOf.call(t);case"[object ArrayBuffer]":case p:return b(d(e),d(t),n,m)}var y="[object Array]"===v;if(!y&&a(e)){var _;if(s(e)!==s(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;y=!0}if(!y){if("object"!=typeof e||"object"!=typeof t)return!1;var w=e.constructor,k=t.constructor;if(w!==k&&!(u(w)&&w instanceof w&&u(k)&&k instanceof k)&&"constructor"in e&&"constructor"in t)return!1}m=m||[];for(var j=(n=n||[]).length;j--;)if(n[j]===e)return m[j]===t;if(n.push(e),m.push(t),y){if((j=e.length)!==t.length)return!1;for(;j--;)if(!g(e[j],t[j],n,m))return!1}else{var x=l(e),S;if(j=x.length,l(t).length!==j)return!1;for(;j--;)if(S=x[j],!h(t,S)||!g(e[S],t[S],n,m))return!1}return n.pop(),m.pop(),!0}function m(e,t){return g(e,t)}},"underscore.js":function e(t,n,e){let r;function i(e){return e instanceof i?e:this instanceof i?void(this._wrapped=e):new i(e)}e.export({default:()=>i}),e.link("./_setup.js",{VERSION(e){r=e}},0),i.VERSION=r,i.prototype.value=function(){return this._wrapped},i.prototype.valueOf=i.prototype.toJSON=i.prototype.value,i.prototype.toString=function(){return String(this._wrapped)}},"_toBufferView.js":function e(t,n,e){let r;function i(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,r(e))}e.export({default:()=>i}),e.link("./_getByteLength.js",{default(e){r=e}},0)},"isMap.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},mapMethods(e){s=e}},2),e.exportDefault(i?o(s):r("Map"))},"_methodFingerprint.js":function e(t,n,e){let r,i,o;function s(e){var t=r(e);return function(n){if(null==n)return!1;var s=o(n);if(r(s))return!1;for(var u=0;us,mapMethods:()=>l,weakMapMethods:()=>h,setMethods:()=>d}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./allKeys.js",{default(e){o=e}},2);var a="forEach",u="has",f=["clear","delete"],c=["get","has","set"],l=f.concat(a,c),h=f.concat(c),d=["add"].concat(f,a,"has")},"allKeys.js":function e(t,n,e){let r,i,o;function s(e){if(!r(e))return[];var t=[];for(var n in e)t.push(n);return i&&o(e,t),t}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{hasEnumBug(e){i=e}},1),e.link("./_collectNonEnumProps.js",{default(e){o=e}},2)},"isWeakMap.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},weakMapMethods(e){s=e}},2),e.exportDefault(i?o(s):r("WeakMap"))},"isSet.js":function e(t,n,e){let r,i,o,s;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){o=e},setMethods(e){s=e}},2),e.exportDefault(i?o(s):r("Set"))},"isWeakSet.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("WeakSet"))},"values.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"pairs.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"invert.js":function e(t,n,e){let r;function i(e){for(var t={},n=r(e),i=0,o=n.length;ii}),e.link("./keys.js",{default(e){r=e}},0)},"functions.js":function e(t,n,e){let r;function i(e){var t=[];for(var n in e)r(e[n])&&t.push(n);return t.sort()}e.export({default:()=>i}),e.link("./isFunction.js",{default(e){r=e}},0)},"extend.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createAssigner.js":function e(t,n,e){function r(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;ir})},"extendOwn.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"defaults.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i,!0))},"create.js":function e(t,n,e){let r,i;function o(e,t){var n=r(e);return t&&i(n,t),n}e.export({default:()=>o}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./extendOwn.js",{default(e){i=e}},1)},"_baseCreate.js":function e(t,n,e){let r,i;function o(){return function(){}}function s(e){if(!r(e))return{};if(i)return i(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeCreate(e){i=e}},1)},"clone.js":function e(t,n,e){let r,i,o;function s(e){return r(e)?i(e)?e.slice():o({},e):e}e.export({default:()=>s}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./extend.js",{default(e){o=e}},2)},"tap.js":function e(t,n,e){function r(e,t){return t(e),e}e.export({default:()=>r})},"get.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s=i(e,r(t));return o(s)?n:s}e.export({default:()=>s}),e.link("./_toPath.js",{default(e){r=e}},0),e.link("./_deepGet.js",{default(e){i=e}},1),e.link("./isUndefined.js",{default(e){o=e}},2)},"_toPath.js":function e(t,n,e){let r;function i(e){return r.toPath(e)}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./toPath.js")},"toPath.js":function e(t,n,e){let r,i;function o(e){return i(e)?e:[e]}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),r.toPath=o},"_deepGet.js":function e(t,n,e){function r(e,t){for(var n=t.length,r=0;rr})},"has.js":function e(t,n,e){let r,i;function o(e,t){for(var n=(t=i(t)).length,o=0;oo}),e.link("./_has.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"mapObject.js":function e(t,n,e){let r,i;function o(e,t,n){t=r(t,n);for(var o=i(e),s=o.length,a={},u=0;uo}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"_cb.js":function e(t,n,e){let r,i,o;function s(e,t,n){return r.iteratee!==o?r.iteratee(e,t):i(e,t,n)}e.export({default:()=>s}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),e.link("./iteratee.js",{default(e){o=e}},2)},"_baseIteratee.js":function e(t,n,e){let r,i,o,s,a,u,f;function c(e,t,n){return null==e?r:i(e)?f(e,t,n):o(e)&&!s(e)?a(e):u(e)}e.export({default:()=>c}),e.link("./identity.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isObject.js",{default(e){o=e}},2),e.link("./isArray.js",{default(e){s=e}},3),e.link("./matcher.js",{default(e){a=e}},4),e.link("./property.js",{default(e){u=e}},5),e.link("./_optimizeCb.js",{default(e){f=e}},6)},"identity.js":function e(t,n,e){function r(e){return e}e.export({default:()=>r})},"matcher.js":function e(t,n,e){let r,i;function o(e){return e=r({},e),function(t){return i(t,e)}}e.export({default:()=>o}),e.link("./extendOwn.js",{default(e){r=e}},0),e.link("./isMatch.js",{default(e){i=e}},1)},"property.js":function e(t,n,e){let r,i;function o(e){return e=i(e),function(t){return r(t,e)}}e.export({default:()=>o}),e.link("./_deepGet.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"_optimizeCb.js":function e(t,n,e){function r(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}e.export({default:()=>r})},"iteratee.js":function e(t,n,e){let r,i;function o(e,t){return i(e,t,1/0)}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),r.iteratee=o},"noop.js":function e(t,n,e){function r(){}e.export({default:()=>r})},"propertyOf.js":function e(t,n,e){let r,i;function o(e){return null==e?r:function(t){return i(e,t)}}e.export({default:()=>o}),e.link("./noop.js",{default(e){r=e}},0),e.link("./get.js",{default(e){i=e}},1)},"times.js":function e(t,n,e){let r;function i(e,t,n){var i=Array(Math.max(0,e));t=r(t,n,1);for(var o=0;oi}),e.link("./_optimizeCb.js",{default(e){r=e}},0)},"random.js":function e(t,n,e){function r(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}e.export({default:()=>r})},"now.js":function e(t,n,e){e.exportDefault(Date.now||function(){return(new Date).getTime()})},"escape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createEscaper.js":function e(t,n,e){let r;function i(e){var t=function(t){return e[t]},n="(?:"+r(e).join("|")+")",i=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(o,t):e}}e.export({default:()=>i}),e.link("./keys.js",{default(e){r=e}},0)},"_escapeMap.js":function e(t,n,e){e.exportDefault({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"})},"unescape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_unescapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_unescapeMap.js":function e(t,n,e){let r,i;e.link("./invert.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"templateSettings.js":function e(t,n,e){let r;e.link("./underscore.js",{default(e){r=e}},0),e.exportDefault(r.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g})},"template.js":function e(t,n,e){let r,i;e.export({default:()=>c}),e.link("./defaults.js",{default(e){r=e}},0),e.link("./underscore.js",{default(e){i=e}},1),e.link("./templateSettings.js");var o=/(.)^/,s={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},a=/\\|'|\r|\n|\u2028|\u2029/g;function u(e){return"\\"+s[e]}var f=/^\s*(\w|\$)+\s*$/;function c(e,t,n){!t&&n&&(t=n),t=r({},t,i.templateSettings);var s=RegExp([(t.escape||o).source,(t.interpolate||o).source,(t.evaluate||o).source].join("|")+"|$","g"),c=0,l="__p+='";e.replace(s,(function(t,n,r,i,o){return l+=e.slice(c,o).replace(a,u),c=o+t.length,n?l+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?l+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(l+="';\n"+i+"\n__p+='"),t})),l+="';\n";var h=t.variable,d;if(h){if(!f.test(h))throw new Error("variable is not a bare identifier: "+h)}else l="with(obj||{}){\n"+l+"}\n",h="obj";l="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+l+"return __p;\n";try{d=new Function(h,"_",l)}catch(g){throw g.source=l,g}var p=function(e){return d.call(this,e,i)};return p.source="function("+h+"){\n"+l+"}",p}},"result.js":function e(t,n,e){let r,i;function o(e,t,n){var o=(t=i(t)).length;if(!o)return r(n)?n.call(e):n;for(var s=0;so}),e.link("./isFunction.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"uniqueId.js":function e(t,n,e){e.export({default:()=>i});var r=0;function i(e){var t=++r+"";return e?e+t:t}},"chain.js":function e(t,n,e){let r;function i(e){var t=r(e);return t._chain=!0,t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"partial.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_executeBound.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){o=e}},2);var s=r((function(e,t){var n=s.placeholder,r=function(){for(var o=0,s=t.length,a=Array(s),u=0;uo}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./isObject.js",{default(e){i=e}},1)},"bind.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_executeBound.js",{default(e){o=e}},2),e.exportDefault(r((function(e,t,n){if(!i(e))throw new TypeError("Bind must be called on a function");var s=r((function(r){return o(e,s,t,this,n.concat(r))}));return s})))},"bindAll.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./bind.js",{default(e){o=e}},2),e.exportDefault(r((function(e,t){var n=(t=i(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=o(e[r],e)}return e})))},"_flatten.js":function e(t,n,e){let r,i,o,s;function a(e,t,n,u){if(u=u||[],t||0===t){if(t<=0)return u.concat(e)}else t=1/0;for(var f=u.length,c=0,l=r(e);c1)a(h,t-1,n,u),f=u.length;else for(var d=0,p=h.length;da}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./isArray.js",{default(e){o=e}},2),e.link("./isArguments.js",{default(e){s=e}},3)},"_isArrayLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"memoize.js":function e(t,n,e){let r;function i(e,t){var n=function(i){var o=n.cache,s=""+(t?t.apply(this,arguments):i);return r(o,s)||(o[s]=e.apply(this,arguments)),o[s]};return n.cache={},n}e.export({default:()=>i}),e.link("./_has.js",{default(e){r=e}},0)},"delay.js":function e(t,n,e){let r;e.link("./restArguments.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})))},"defer.js":function e(t,n,e){let r,i,o;e.link("./partial.js",{default(e){r=e}},0),e.link("./delay.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){o=e}},2),e.exportDefault(r(i,o,1))},"throttle.js":function e(t,n,e){let r;function i(e,t,n){var i,o,s,a,u=0;n||(n={});var f=function(){u=!1===n.leading?0:r(),i=null,a=e.apply(o,s),i||(o=s=null)},c=function(){var c=r();u||!1!==n.leading||(u=c);var l=t-(c-u);return o=this,s=arguments,l<=0||l>t?(i&&(clearTimeout(i),i=null),u=c,a=e.apply(o,s),i||(o=s=null)):i||!1===n.trailing||(i=setTimeout(f,l)),a};return c.cancel=function(){clearTimeout(i),u=0,i=o=s=null},c}e.export({default:()=>i}),e.link("./now.js",{default(e){r=e}},0)},"debounce.js":function e(t,n,e){let r,i;function o(e,t,n){var o,s,a,u,f,c=function(){var r=i()-s;t>r?o=setTimeout(c,t-r):(o=null,n||(u=e.apply(f,a)),o||(a=f=null))},l=r((function(r){return f=this,a=r,s=i(),o||(o=setTimeout(c,t),n&&(u=e.apply(f,a))),u}));return l.cancel=function(){clearTimeout(o),o=a=f=null},l}e.export({default:()=>o}),e.link("./restArguments.js",{default(e){r=e}},0),e.link("./now.js",{default(e){i=e}},1)},"wrap.js":function e(t,n,e){let r;function i(e,t){return r(t,e)}e.export({default:()=>i}),e.link("./partial.js",{default(e){r=e}},0)},"negate.js":function e(t,n,e){function r(e){return function(){return!e.apply(this,arguments)}}e.export({default:()=>r})},"compose.js":function e(t,n,e){function r(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}e.export({default:()=>r})},"after.js":function e(t,n,e){function r(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}e.export({default:()=>r})},"before.js":function e(t,n,e){function r(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}e.export({default:()=>r})},"once.js":function e(t,n,e){let r,i;e.link("./partial.js",{default(e){r=e}},0),e.link("./before.js",{default(e){i=e}},1),e.exportDefault(r(i,2))},"findKey.js":function e(t,n,e){let r,i;function o(e,t,n){t=r(t,n);for(var o=i(e),s,a=0,u=o.length;ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"findIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createPredicateIndexFinder.js":function e(t,n,e){let r,i;function o(e){return function(t,n,o){n=r(n,o);for(var s=i(t),a=e>0?0:s-1;a>=0&&ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"findLastIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"sortedIndex.js":function e(t,n,e){let r,i;function o(e,t,n,o){for(var s=(n=r(n,o,1))(t),a=0,u=i(e);ao}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"indexOf.js":function e(t,n,e){let r,i,o;e.link("./sortedIndex.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./_createIndexFinder.js",{default(e){o=e}},2),e.exportDefault(o(1,i,r))},"_createIndexFinder.js":function e(t,n,e){let r,i,o;function s(e,t,n){return function(s,a,u){var f=0,c=r(s);if("number"==typeof u)e>0?f=u>=0?u:Math.max(u+c,f):c=u>=0?Math.min(u+1,c):u+c+1;else if(n&&u&&c)return s[u=n(s,a)]===a?u:-1;if(a!=a)return(u=t(i.call(s,f,c),o))>=0?u+f:-1;for(u=e>0?f:c-1;u>=0&&us}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isNaN.js",{default(e){o=e}},2)},"lastIndexOf.js":function e(t,n,e){let r,i;e.link("./findLastIndex.js",{default(e){r=e}},0),e.link("./_createIndexFinder.js",{default(e){i=e}},1),e.exportDefault(i(-1,r))},"find.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s,a=(r(e)?i:o)(e,t,n);if(void 0!==a&&-1!==a)return e[a]}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./findKey.js",{default(e){o=e}},2)},"findWhere.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./find.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"each.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s,a;if(t=r(t,n),i(e))for(s=0,a=e.length;ss}),e.link("./_optimizeCb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"map.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=Array(a),f=0;fs}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"reduce.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createReduce.js":function e(t,n,e){let r,i,o;function s(e){var t=function(t,n,o,s){var a=!r(t)&&i(t),u=(a||t).length,f=e>0?0:u-1;for(s||(o=t[a?a[f]:f],f+=e);f>=0&&f=3;return t(e,o(n,i,4),r,s)}}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){o=e}},2)},"reduceRight.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"filter.js":function e(t,n,e){let r,i;function o(e,t,n){var o=[];return t=r(t,n),i(e,(function(e,n,r){t(e,n,r)&&o.push(e)})),o}e.export({default:()=>o}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"reject.js":function e(t,n,e){let r,i,o;function s(e,t,n){return r(e,i(o(t)),n)}e.export({default:()=>s}),e.link("./filter.js",{default(e){r=e}},0),e.link("./negate.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2)},"every.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"some.js":function e(t,n,e){let r,i,o;function s(e,t,n){t=r(t,n);for(var s=!i(e)&&o(e),a=(s||e).length,u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){o=e}},2)},"contains.js":function e(t,n,e){let r,i,o;function s(e,t,n,s){return r(e)||(e=i(e)),("number"!=typeof n||s)&&(n=0),o(e,t,n)>=0}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./indexOf.js",{default(e){o=e}},2)},"invoke.js":function e(t,n,e){let r,i,o,s,a;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./map.js",{default(e){o=e}},2),e.link("./_deepGet.js",{default(e){s=e}},3),e.link("./_toPath.js",{default(e){a=e}},4),e.exportDefault(r((function(e,t,n){var r,u;return i(t)?u=t:(t=a(t),r=t.slice(0,-1),t=t[t.length-1]),o(e,(function(e){var i=u;if(!i){if(r&&r.length&&(e=s(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))})))},"pluck.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./map.js",{default(e){r=e}},0),e.link("./property.js",{default(e){i=e}},1)},"where.js":function e(t,n,e){let r,i;function o(e,t){return r(e,i(t))}e.export({default:()=>o}),e.link("./filter.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"max.js":function e(t,n,e){let r,i,o,s;function a(e,t,n){var a=-1/0,u=-1/0,f,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,h=(e=r(e)?e:i(e)).length;la&&(a=f);else t=o(t,n),s(e,(function(e,n,r){((c=t(e,n,r))>u||c===-1/0&&a===-1/0)&&(a=e,u=c)}));return a}e.export({default:()=>a}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2),e.link("./each.js",{default(e){s=e}},3)},"min.js":function e(t,n,e){let r,i,o,s;function a(e,t,n){var a=1/0,u=1/0,f,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,h=(e=r(e)?e:i(e)).length;la}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){o=e}},2),e.link("./each.js",{default(e){s=e}},3)},"shuffle.js":function e(t,n,e){let r;function i(e){return r(e,1/0)}e.export({default:()=>i}),e.link("./sample.js",{default(e){r=e}},0)},"sample.js":function e(t,n,e){let r,i,o,s,a;function u(e,t,n){if(null==t||n)return r(e)||(e=i(e)),e[s(e.length-1)];var u=a(e),f=o(u);t=Math.max(Math.min(t,f),0);for(var c=f-1,l=0;lu}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){o=e}},2),e.link("./random.js",{default(e){s=e}},3),e.link("./toArray.js",{default(e){a=e}},4)},"toArray.js":function e(t,n,e){let r,i,o,s,a,u,f;e.export({default:()=>l}),e.link("./isArray.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isString.js",{default(e){o=e}},2),e.link("./_isArrayLike.js",{default(e){s=e}},3),e.link("./map.js",{default(e){a=e}},4),e.link("./identity.js",{default(e){u=e}},5),e.link("./values.js",{default(e){f=e}},6);var c=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function l(e){return e?r(e)?i.call(e):o(e)?e.match(c):s(e)?a(e,u):f(e):[]}},"sortBy.js":function e(t,n,e){let r,i,o;function s(e,t,n){var s=0;return t=r(t,n),i(o(e,(function(e,n,r){return{value:e,index:s++,criteria:t(e,n,r)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(ns}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./pluck.js",{default(e){i=e}},1),e.link("./map.js",{default(e){o=e}},2)},"groupBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n].push(t):e[n]=[t]})))},"_group.js":function e(t,n,e){let r,i;function o(e,t){return function(n,o,s){var a=t?[[],[]]:{};return o=r(o,s),i(n,(function(t,r){var i=o(t,r,n);e(a,t,i)})),a}}e.export({default:()=>o}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"indexBy.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n]=t})))},"countBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n]++:e[n]=1})))},"partition.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n?0:1].push(t)}),!0))},"size.js":function e(t,n,e){let r,i;function o(e){return null==e?0:r(e)?e.length:i(e).length}e.export({default:()=>o}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"pick.js":function e(t,n,e){let r,i,o,s,a,u;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){o=e}},2),e.link("./allKeys.js",{default(e){s=e}},3),e.link("./_keyInObj.js",{default(e){a=e}},4),e.link("./_flatten.js",{default(e){u=e}},5),e.exportDefault(r((function(e,t){var n={},r=t[0];if(null==e)return n;i(r)?(t.length>1&&(r=o(r,t[1])),t=s(e)):(r=a,t=u(t,!1,!1),e=Object(e));for(var f=0,c=t.length;fr})},"omit.js":function e(t,n,e){let r,i,o,s,a,u,f;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./negate.js",{default(e){o=e}},2),e.link("./map.js",{default(e){s=e}},3),e.link("./_flatten.js",{default(e){a=e}},4),e.link("./contains.js",{default(e){u=e}},5),e.link("./pick.js",{default(e){f=e}},6),e.exportDefault(r((function(e,t){var n=t[0],r;return i(n)?(n=o(n),t.length>1&&(r=t[1])):(t=s(a(t,!1,!1),String),n=function(e,n){return!u(t,n)}),f(e,n,r)})))},"first.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:r(e,e.length-t)}e.export({default:()=>i}),e.link("./initial.js",{default(e){r=e}},0)},"initial.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"last.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:r(e,Math.max(0,e.length-t))}e.export({default:()=>i}),e.link("./rest.js",{default(e){r=e}},0)},"rest.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,null==t||n?1:t)}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"compact.js":function e(t,n,e){let r;function i(e){return r(e,Boolean)}e.export({default:()=>i}),e.link("./filter.js",{default(e){r=e}},0)},"flatten.js":function e(t,n,e){let r;function i(e,t){return r(e,t,!1)}e.export({default:()=>i}),e.link("./_flatten.js",{default(e){r=e}},0)},"without.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./difference.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t){return i(e,t)})))},"difference.js":function e(t,n,e){let r,i,o,s;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./filter.js",{default(e){o=e}},2),e.link("./contains.js",{default(e){s=e}},3),e.exportDefault(r((function(e,t){return t=i(t,!0,!0),o(e,(function(e){return!s(t,e)}))})))},"uniq.js":function e(t,n,e){let r,i,o,s;function a(e,t,n,a){r(t)||(a=n,n=t,t=!1),null!=n&&(n=i(n,a));for(var u=[],f=[],c=0,l=o(e);ca}),e.link("./isBoolean.js",{default(e){r=e}},0),e.link("./_cb.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){o=e}},2),e.link("./contains.js",{default(e){s=e}},3)},"union.js":function e(t,n,e){let r,i,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./uniq.js",{default(e){i=e}},1),e.link("./_flatten.js",{default(e){o=e}},2),e.exportDefault(r((function(e){return i(o(e,!0,!0))})))},"intersection.js":function e(t,n,e){let r,i;function o(e){for(var t=[],n=arguments.length,o=0,s=r(e);oo}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./contains.js",{default(e){i=e}},1)},"unzip.js":function e(t,n,e){let r,i,o;function s(e){for(var t=e&&r(e,i).length||0,n=Array(t),s=0;ss}),e.link("./max.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.link("./pluck.js",{default(e){o=e}},2)},"zip.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./unzip.js",{default(e){i=e}},1),e.exportDefault(r(i))},"object.js":function e(t,n,e){let r;function i(e,t){for(var n={},i=0,o=r(e);ii}),e.link("./_getLength.js",{default(e){r=e}},0)},"range.js":function e(t,n,e){function r(e,t,n){null==t&&(t=e||0,e=0),n||(n=tr})},"chunk.js":function e(t,n,e){let r;function i(e,t){if(null==t||t<1)return[];for(var n=[],i=0,o=e.length;ii}),e.link("./_setup.js",{slice(e){r=e}},0)},"mixin.js":function e(t,n,e){let r,i,o,s,a;function u(e){return i(o(e),(function(t){var n=r[t]=e[t];r.prototype[t]=function(){var e=[this._wrapped];return s.apply(e,arguments),a(this,n.apply(r,e))}})),r}e.export({default:()=>u}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./functions.js",{default(e){o=e}},2),e.link("./_setup.js",{push(e){s=e}},3),e.link("./_chainResult.js",{default(e){a=e}},4)},"_chainResult.js":function e(t,n,e){let r;function i(e,t){return e._chain?r(t).chain():t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"underscore-array-methods.js":function e(t,n,e){let r,i,o,s;e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./_setup.js",{ArrayProto(e){o=e}},2),e.link("./_chainResult.js",{default(e){s=e}},3),i(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=o[e];r.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),s(this,n)}})),i(["concat","join","slice"],(function(e){var t=o[e];r.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),s(this,e)}})),e.exportDefault(r)}}}}},cachers:{"package.json":function e(t,n,e){e.exports={name:"@steedos/cachers",version:"2.5.15-beta.12",main:"lib/index.js"}},lib:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getCacherNames=n.clearCacher=n.getCacher=void 0;var r={},i=t("./memory"),o=t("./memory-lru"),s=function(e,t){return r[e]||(e.startsWith("lru.")?r[e]=new o.MemoryLRUCacher(t):r[e]=new i.MemoryCacher),r[e]};n.getCacher=s;var a=function(e){r[e]&&r[e].clear()};n.clearCacher=a;var u=function(){return Object.keys(r)};n.getCacherNames=u},"memory.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryCacher=void 0;var r=t("lodash"),i=function(){function e(){this.cache={}}return e.prototype.get=function(e){return this.cache[e]},e.prototype.delete=function(e){delete this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.clear=function(){this.cache={}},e.prototype.keys=function(){return(0,r.keys)(this.cache)},e.prototype.values=function(){return(0,r.values)(this.cache)},e}();n.MemoryCacher=i},"memory-lru.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryLRUCacher=void 0;var r=t("lodash"),i=t("lru-cache"),o={max:5e3,ttl:null,keygen:null,maxParamsLength:null},s=function(){function e(e){this.opts=(0,r.defaultsDeep)(e,o),this.cache=new i({max:this.opts.max,maxAge:this.opts.ttl?1e3*this.opts.ttl:null,updateAgeOnGet:!!this.opts.ttl})}return e.prototype.get=function(e){return this.cache.get(e)},e.prototype.set=function(e,t,n){return this.cache.set(e,t,n)},e.prototype.delete=function(e){return this.cache.delete(e)},e.prototype.clear=function(){return this.cache.clear()},e.prototype.keys=function(){return this.cache.keys()},e.prototype.values=function(){return this.cache.values()},e}();n.MemoryLRUCacher=s}},node_modules:{"lru-cache":{"package.json":function e(t,n,e){e.exports={name:"lru-cache",version:"7.14.1",main:"index.js"}},"index.js":function e(t,n,e){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,i="function"==typeof AbortController,o=i?AbortController:class e{constructor(){this.signal=new u}abort(){this.signal.dispatchEvent("abort")}},s="function"==typeof AbortSignal,a="function"==typeof o.AbortSignal,u=s?AbortSignal:a?o.AbortController:class e{constructor(){this.aborted=!1,this._listeners=[]}dispatchEvent(e){if("abort"===e){this.aborted=!0;const t={type:e,target:this};this.onabort(t),this._listeners.forEach(e=>e(t),this)}}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},f=new Set,c=(e,t)=>{const n=`LRU_CACHE_OPTION_${e}`;p(n)&&g(n,`${e} option`,`options.${t}`,_)},l=(e,t)=>{const n=`LRU_CACHE_METHOD_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} method`,`cache.${t}()`,i)}},h=(e,t)=>{const n=`LRU_CACHE_PROPERTY_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} property`,`cache.${t}`,i)}},d=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},p=e=>!f.has(e),g=(e,t,n,r)=>{f.add(e);const i=`The ${t} is deprecated. Please use ${n} instead.`;d(i,"DeprecationWarning",e,r)},b=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),m=e=>b(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?v:null:null;class v extends Array{constructor(e){super(e),this.fill(0)}}class y{constructor(e){if(0===e)return[];const t=m(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class _{constructor(e={}){const{max:t=0,ttl:n,ttlResolution:r=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:s,allowStale:a,dispose:u,disposeAfter:l,noDisposeOnSet:h,noUpdateTTL:g,maxSize:v=0,maxEntrySize:w=0,sizeCalculation:k,fetchMethod:j,fetchContext:x,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:D}=e,{length:E,maxAge:A,stale:C}=e instanceof _?{}:e;if(0!==t&&!b(t))throw new TypeError("max option must be a nonnegative integer");const M=t?m(t):Array;if(!M)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=v,this.maxEntrySize=w||this.maxSize,this.sizeCalculation=k||E,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=j||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=x,!this.fetchMethod&&void 0!==x)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new M(t),this.prev=new M(t),this.head=0,this.tail=0,this.free=new y(t),this.initialFill=1,this.size=0,"function"==typeof u&&(this.dispose=u),"function"==typeof l?(this.disposeAfter=l,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!S,0!==this.maxEntrySize){if(0!==this.maxSize&&!b(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!b(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!a||!!C,this.noDeleteOnStaleGet=!!D,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!s,this.ttlResolution=b(r)||0===r?r:1,this.ttlAutopurge=!!i,this.ttl=n||A||0,this.ttl){if(!b(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";if(p(e)){f.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";d(t,"UnboundedCacheWarning",e,_)}}C&&c("stale","allowStale"),A&&c("maxAge","ttl"),E&&c("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new v(this.max),this.starts=new v(this.max),this.setItemTTL=(e,t,n=r.now())=>{if(this.starts[e]=0!==t?n:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const n=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);n.unref&&n.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0};let e=0;const t=()=>{const t=r.now();if(this.ttlResolution>0){e=t;const n=setTimeout(()=>e=0,this.ttlResolution);n.unref&&n.unref()}return t};this.getRemainingTTL=n=>{const r=this.keyMap.get(n);return void 0===r?0:0===this.ttls[r]||0===this.starts[r]?1/0:this.starts[r]+this.ttls[r]-(e||t())},this.isStale=n=>0!==this.ttls[n]&&0!==this.starts[n]&&(e||t())-this.starts[n]>this.ttls[n]}updateItemAge(e){}setItemTTL(e,t,n){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new v(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,n,r)=>{if(this.isBackgroundFetch(t))return 0;if(!b(n)){if(!r)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!b(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.addItemSize=(e,t)=>{if(this.sizes[e]=t,this.maxSize){const t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e]}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,n,r){if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const n of this.indexes())if(e(this.valList[n],this.keyList[n],this))return this.get(this.keyList[n],t)}forEach(e,t=this){for(const n of this.indexes())e.call(t,this.valList[n],this.keyList[n],this)}rforEach(e,t=this){for(const n of this.rindexes())e.call(t,this.valList[n],this.keyList[n],this)}get prune(){return l("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes({allowStale:!0})){const n=this.keyList[t],i=this.valList[t],o=this.isBackgroundFetch(i)?i.__staleWhileFetching:i,s={value:o};if(this.ttls){s.ttl=this.ttls[t];const e=r.now()-this.starts[t];s.start=Math.floor(Date.now()-e)}this.sizes&&(s.size=this.sizes[t]),e.unshift([n,s])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}dispose(e,t,n){}set(e,t,{ttl:n=this.ttl,start:r,noDisposeOnSet:i=this.noDisposeOnSet,size:o=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(o=this.requireSize(e,t,o,s),this.maxEntrySize&&o>this.maxEntrySize)return this.delete(e),this;let u=0===this.size?void 0:this.keyMap.get(e);if(void 0===u)u=this.newIndex(),this.keyList[u]=e,this.valList[u]=t,this.keyMap.set(e,u),this.next[this.tail]=u,this.prev[u]=this.tail,this.tail=u,this.size++,this.addItemSize(u,o),a=!1;else{const n=this.valList[u];t!==n&&(this.isBackgroundFetch(n)?n.__abortController.abort():i||(this.dispose(n,e,"set"),this.disposeAfter&&this.disposed.push([n,e,"set"])),this.removeItemSize(u),this.valList[u]=t,this.addItemSize(u,o)),this.moveToTail(u)}if(0===n||0!==this.ttl||this.ttls||this.initializeTTLTracking(),a||this.setItemTTL(u,n,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,n=this.keyList[t],r=this.valList[t];return this.isBackgroundFetch(r)?r.__abortController.abort():(this.dispose(r,n,"evict"),this.disposeAfter&&this.disposed.push([r,n,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(n),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const n=this.keyMap.get(e);return void 0!==n&&!this.isStale(n)&&(t&&this.updateItemAge(n),!0)}peek(e,{allowStale:t=this.allowStale}={}){const n=this.keyMap.get(e);if(void 0!==n&&(t||!this.isStale(n))){const e=this.valList[n];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,n,r){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const s=new o,a={signal:s.signal,options:n,context:r},u=t=>(s.signal.aborted||this.set(e,t,a.options),t),f=r=>{if(this.valList[t]===l){const r=!n.noDeleteOnFetchRejection||void 0===l.__staleWhileFetching;r?this.delete(e):this.valList[t]=l.__staleWhileFetching}if(l.__returned===l)throw r},c=t=>t(this.fetchMethod(e,i,a)),l=new Promise(c).then(u,f);return l.__abortController=s,l.__staleWhileFetching=i,l.__returned=null,void 0===t?(this.set(e,l,a.options),t=this.keyMap.get(e)):this.valList[t]=l,l}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,fetchContext:c=this.fetchContext,forceRefresh:l=!1}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r});const h={allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:i,noDisposeOnSet:o,size:s,sizeCalculation:a,noUpdateTTL:u,noDeleteOnFetchRejection:f};let d=this.keyMap.get(e);if(void 0===d){const t=this.backgroundFetch(e,d,h,c);return t.__returned=t}{const r=this.valList[d];if(this.isBackgroundFetch(r))return t&&void 0!==r.__staleWhileFetching?r.__staleWhileFetching:r.__returned=r;if(!l&&!this.isStale(d))return this.moveToTail(d),n&&this.updateItemAge(d),r;const i=this.backgroundFetch(e,d,h,c);return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i.__returned=i}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet}={}){const i=this.keyMap.get(e);if(void 0!==i){const o=this.valList[i],s=this.isBackgroundFetch(o);if(this.isStale(i))return s?t?o.__staleWhileFetching:void 0:(r||this.delete(e),t?o:void 0);if(s)return;return this.moveToTail(i),n&&this.updateItemAge(i),o}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return l("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const n=this.keyMap.get(e);if(void 0!==n)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(n);const t=this.valList[n];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const n=this.keyList[e];this.dispose(t,n,"delete"),this.disposeAfter&&this.disposed.push([t,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return l("reset","clear"),this.clear}get length(){return h("length","size"),this.size}static get AbortController(){return o}static get AbortSignal(){return u}}e.exports=_}}}}},tslib:{"package.json":function e(t,n,e){e.exports={name:"tslib",version:"2.3.1",module:"tslib.es6.js",main:"tslib.js"}},"tslib.es6.js":function e(t,n,e){e.export({__extends:()=>i,__assign:()=>o,__rest:()=>s,__decorate:()=>a,__param:()=>u,__metadata:()=>f,__awaiter:()=>c,__generator:()=>l,__createBinding:()=>h,__exportStar:()=>d,__values:()=>p,__read:()=>g,__spread:()=>b,__spreadArrays:()=>m,__spreadArray:()=>v,__await:()=>y,__asyncGenerator:()=>_,__asyncDelegator:()=>w,__asyncValues:()=>k,__makeTemplateObject:()=>j,__importStar:()=>S,__importDefault:()=>D,__classPrivateFieldGet:()=>E,__classPrivateFieldSet:()=>A}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. diff --git a/server/bundle/programs/web.browser/a295cec1971530e01efde31e17b7abedc91f0ccc.stats.json b/server/bundle/programs/web.browser/d5f372170ee952f1ff72451eb1632c94a7763f93.stats.json similarity index 99% rename from server/bundle/programs/web.browser/a295cec1971530e01efde31e17b7abedc91f0ccc.stats.json rename to server/bundle/programs/web.browser/d5f372170ee952f1ff72451eb1632c94a7763f93.stats.json index 8dca700bf6..dbedfffd57 100644 --- a/server/bundle/programs/web.browser/a295cec1971530e01efde31e17b7abedc91f0ccc.stats.json +++ b/server/bundle/programs/web.browser/d5f372170ee952f1ff72451eb1632c94a7763f93.stats.json @@ -4,7 +4,7 @@ "version": "2.6.0" }, "totalMinifiedBytes": 4282901, - "totalMinifiedGzipBytes": 1079253, + "totalMinifiedGzipBytes": 1079250, "minifiedBytesByPackage": { "packages/meteor.js": 9504, "packages/coffeescript.js": 32, diff --git a/server/bundle/programs/web.browser/program.json b/server/bundle/programs/web.browser/program.json index 28452e5b27..2e5ee4a9a6 100644 --- a/server/bundle/programs/web.browser/program.json +++ b/server/bundle/programs/web.browser/program.json @@ -2,24 +2,24 @@ "format": "web-program-pre1", "manifest": [ { - "path": "a295cec1971530e01efde31e17b7abedc91f0ccc.js", + "path": "d5f372170ee952f1ff72451eb1632c94a7763f93.js", "where": "client", "type": "js", "cacheable": true, - "url": "/a295cec1971530e01efde31e17b7abedc91f0ccc.js?meteor_js_resource=true", + "url": "/d5f372170ee952f1ff72451eb1632c94a7763f93.js?meteor_js_resource=true", "size": 4282901, - "hash": "a295cec1971530e01efde31e17b7abedc91f0ccc", - "sri": "YDgu77Shu403tNwxCFkodCkuum9vyd/sA0rmR9JlY3HKfCFZshvzYpnjy27Q78MVSdqLAd6sijMLh+mIaLLhtQ==" + "hash": "d5f372170ee952f1ff72451eb1632c94a7763f93", + "sri": "vT/ysKtF2HlHqkVCrapn1azq8uznRozqp/IF1Nhe20erDpLs5KbWd+jJzWfNO8Og+89mjIuCz4Q39HsVB2/DLA==" }, { - "path": "a295cec1971530e01efde31e17b7abedc91f0ccc.stats.json", + "path": "d5f372170ee952f1ff72451eb1632c94a7763f93.stats.json", "where": "client", "type": "json", "cacheable": true, - "url": "/a295cec1971530e01efde31e17b7abedc91f0ccc.stats.json?meteor_js_resource=true", + "url": "/d5f372170ee952f1ff72451eb1632c94a7763f93.stats.json?meteor_js_resource=true", "size": 92296, - "hash": "1a8a85ddb625b712be7a166cb5523c851420a81d", - "sri": "qhAOnFhJWcSl67s+2u5unMGSf06A+s70mWGWZccPamOL4MLCNHzOdrhA3tsCMrqq/NMMFP6L/Rb9nyZXqzQsNg==" + "hash": "787a1e57ea24f18f68b02394f1e00c2120ac15ca", + "sri": "tVwekOle0r56jJQoXw7edGlfjIHX+FYYsi4fdJUex6FpEXK027cVF0wVYVtxoKjYPrvhUSnyacaM/DUzAMh1UQ==" }, { "path": "dynamic/node_modules/formBuilder/dist/form-builder.min.js", diff --git a/server/bundle/programs/web.cordova/e7beb1dfd71e2de82e55a2456aa966c89fce16f8.js b/server/bundle/programs/web.cordova/dbfc952814ef7f8ddde79c44d60aae0c7d6c7d76.js similarity index 99% rename from server/bundle/programs/web.cordova/e7beb1dfd71e2de82e55a2456aa966c89fce16f8.js rename to server/bundle/programs/web.cordova/dbfc952814ef7f8ddde79c44d60aae0c7d6c7d76.js index e01861c80f..d23f667c22 100644 --- a/server/bundle/programs/web.cordova/e7beb1dfd71e2de82e55a2456aa966c89fce16f8.js +++ b/server/bundle/programs/web.cordova/dbfc952814ef7f8ddde79c44d60aae0c7d6c7d76.js @@ -68,7 +68,7 @@ object-assign * Copyright 2011-2019 Twitter, Inc. * Licensed under the MIT license */ -if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var r in t)if(void 0!==e.style[r])return{end:t[r]};return!1}e.fn.emulateTransitionEnd=function(t){var r=!1,n=this,i;return e(this).one("bsTransitionEnd",(function(){r=!0})),setTimeout((function(){r||e(n).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',r=function(r){e(r).on("click",t,this.close)};function n(t){return this.each((function(){var n=e(this),i=n.data("bs.alert");i||n.data("bs.alert",i=new r(this)),"string"==typeof t&&i[t].call(n)}))}r.VERSION="3.4.1",r.TRANSITION_DURATION=150,r.prototype.close=function(t){var n=e(this),i=n.attr("data-target");i||(i=(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var o=e(document).find(i);function a(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=n.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",a).emulateTransitionEnd(r.TRANSITION_DURATION):a())};var i=e.fn.alert;e.fn.alert=n,e.fn.alert.Constructor=r,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,r.prototype.close)}(jQuery),function(e){"use strict";var t=function(r,n){this.$element=e(r),this.options=e.extend({},t.DEFAULTS,n),this.isLoading=!1};function r(r){return this.each((function(){var n=e(this),i=n.data("bs.button"),o="object"==typeof r&&r;i||n.data("bs.button",i=new t(this,o)),"toggle"==r?i.toggle():r&&i.setState(r)}))}t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var r="disabled",n=this.$element,i=n.is("input")?"val":"html",o=n.data();t+="Text",null==o.resetText&&n.data("resetText",n[i]()),setTimeout(e.proxy((function(){n[i](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(r).attr(r,r).prop(r,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(r).removeAttr(r).prop(r,!1))}),this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var r=this.$element.find("input");"radio"==r.prop("type")?(r.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==r.prop("type")&&(r.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),r.prop("checked",this.$element.hasClass("active")),e&&r.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=r,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var n=e(t.target).closest(".btn");r.call(n,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),n.is("input,button")?n.trigger("focus"):n.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(jQuery),function(e){"use strict";var t=function(t,r){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=r,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function r(r){return this.each((function(){var n=e(this),i=n.data("bs.carousel"),o=e.extend({},t.DEFAULTS,n.data(),"object"==typeof r&&r),a="string"==typeof r?r:o.slide;i||n.data("bs.carousel",i=new t(this,o)),"number"==typeof r?i.to(r):a?i[a]():o.interval&&i.pause().cycle()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var r=this.getItemIndex(t),n;if(("prev"==e&&0===r||"next"==e&&r==this.$items.length-1)&&!this.options.wrap)return t;var i,o=(r+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(o)},t.prototype.to=function(e){var t=this,r=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):r==e?this.pause().cycle():this.slide(e>r?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(r,n){var i=this.$element.find(".item.active"),o=n||this.getItemForDirection(r,i),a=this.interval,s="next"==r?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var c=o[0],l=e.Event("slide.bs.carousel",{relatedTarget:c,direction:s});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var f=e(this.$indicators.children()[this.getItemIndex(o)]);f&&f.addClass("active")}var d=e.Event("slid.bs.carousel",{relatedTarget:c,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(r),"object"==typeof o&&o.length&&o[0].offsetWidth,i.addClass(s),o.addClass(s),i.one("bsTransitionEnd",(function(){o.removeClass([r,s].join(" ")).addClass("active"),i.removeClass(["active",s].join(" ")),u.sliding=!1,setTimeout((function(){u.$element.trigger(d)}),0)})).emulateTransitionEnd(t.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),a&&this.cycle(),this}};var n=e.fn.carousel;e.fn.carousel=r,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this};var i=function(t){var n=e(this),i=n.attr("href");i&&(i=i.replace(/.*(?=#[^\s]+$)/,""));var o=n.attr("data-target")||i,a=e(document).find(o);if(a.hasClass("carousel")){var s=e.extend({},a.data(),n.data()),u=n.attr("data-slide-to");u&&(s.interval=!1),r.call(a,s),u&&a.data("bs.carousel").to(u),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var t=e(this);r.call(t,t.data())}))}))}(jQuery),function(e){"use strict";var t=function(r,n){this.$element=e(r),this.options=e.extend({},t.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+r.id+'"],[data-toggle="collapse"][data-target="#'+r.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function r(t){var r,n=t.attr("data-target")||(r=t.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(n)}function n(r){return this.each((function(){var n=e(this),i=n.data("bs.collapse"),o=e.extend({},t.DEFAULTS,n.data(),"object"==typeof r&&r);!i&&o.toggle&&/show|hide/.test(r)&&(o.toggle=!1),i||n.data("bs.collapse",i=new t(this,o)),"string"==typeof r&&i[r]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e;return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var r,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(r=i.data("bs.collapse"))&&r.transitioning)){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(n.call(i,"hide"),r||i.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var u=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[a](this.$element[0][u])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var r=e.Event("hide.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return i.call(this);this.$element[n](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,n){var i=e(n);this.addAriaAndCollapsedClass(r(i),i)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var r=e.hasClass("in");e.attr("aria-expanded",r),t.toggleClass("collapsed",!r).attr("aria-expanded",r)};var i=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var i=e(this);i.attr("data-target")||t.preventDefault();var o=r(i),a,s=o.data("bs.collapse")?"toggle":i.data();n.call(o,s)}))}(jQuery),function(e){"use strict";var t=".dropdown-backdrop",r='[data-toggle="dropdown"]',n=function(t){e(t).on("click.bs.dropdown",this.toggle)};function i(t){var r=t.attr("data-target");r||(r=(r=t.attr("href"))&&/#[A-Za-z]/.test(r)&&r.replace(/.*(?=#[^\s]*$)/,""));var n="#"!==r?e(document).find(r):null;return n&&n.length?n:t.parent()}function o(n){n&&3===n.which||(e(t).remove(),e(r).each((function(){var t=e(this),r=i(t),o={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(r[0],n.target)||(r.trigger(n=e.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(t.attr("aria-expanded","false"),r.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))})))}function a(t){return this.each((function(){var r=e(this),i=r.data("bs.dropdown");i||r.data("bs.dropdown",i=new n(this)),"string"==typeof t&&i[t].call(r)}))}n.VERSION="3.4.1",n.prototype.toggle=function(t){var r=e(this);if(!r.is(".disabled, :disabled")){var n=i(r),a=n.hasClass("open");if(o(),!a){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",o);var s={relatedTarget:this};if(n.trigger(t=e.Event("show.bs.dropdown",s)),t.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},n.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var n=e(this);if(t.preventDefault(),t.stopPropagation(),!n.is(".disabled, :disabled")){var o=i(n),a=o.hasClass("open");if(!a&&27!=t.which||a&&27==t.which)return 27==t.which&&o.find(r).trigger("focus"),n.trigger("click");var s=" li:not(.disabled):visible a",u=o.find(".dropdown-menu"+s);if(u.length){var c=u.index(t.target);38==t.which&&c>0&&c--,40==t.which&&cdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},c.prototype.init=function(t,r,n){if(this.enabled=!0,this.type=t,this.$element=e(r),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var a=i[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",u="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(r){var n=this.$element.data();for(var i in n)n.hasOwnProperty(i)&&-1!==e.inArray(i,t)&&delete n[i];return(r=e.extend({},this.getDefaults(),n,r)).delay&&"number"==typeof r.delay&&(r.delay={show:r.delay,hide:r.delay}),r.sanitize&&(r.template=u(r.template,r.whiteList,r.sanitizeFn)),r},c.prototype.getDelegateOptions=function(){var t={},r=this.getDefaults();return this._options&&e.each(this._options,(function(e,n){r[e]!=n&&(t[e]=n)})),t},c.prototype.enter=function(t){var r=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(r||(r=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,r)),t instanceof e.Event&&(r.inState["focusin"==t.type?"focus":"hover"]=!0),r.tip().hasClass("in")||"in"==r.hoverState)r.hoverState="in";else{if(clearTimeout(r.timeout),r.hoverState="in",!r.options.delay||!r.options.delay.show)return r.show();r.timeout=setTimeout((function(){"in"==r.hoverState&&r.show()}),r.options.delay.show)}},c.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},c.prototype.leave=function(t){var r=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(r||(r=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,r)),t instanceof e.Event&&(r.inState["focusout"==t.type?"focus":"hover"]=!1),!r.isInStateTrue()){if(clearTimeout(r.timeout),r.hoverState="out",!r.options.delay||!r.options.delay.hide)return r.hide();r.timeout=setTimeout((function(){"out"==r.hoverState&&r.hide()}),r.options.delay.hide)}},c.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var r=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!r)return;var n=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,u=s.test(a);u&&(a=a.replace(s,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?i.appendTo(e(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),f=i[0].offsetWidth,d=i[0].offsetHeight;if(u){var h=a,p=this.getPosition(this.$viewport);a="bottom"==a&&l.bottom+d>p.bottom?"top":"top"==a&&l.top-dp.width?"left":"left"==a&&l.left-fa.top+a.height&&(i.top=a.top+a.height-u)}else{var c=t.left-o,l=t.left+o+r;ca.right&&(i.left=a.left+a.width-l)}return i},c.prototype.getTitle=function(){var e,t=this.$element,r=this.options;return e=t.attr("data-original-title")||("function"==typeof r.title?r.title.call(t[0]):r.title)},c.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(t){var r=this;t&&((r=e(t.currentTarget).data("bs."+this.type))||(r=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,r))),t?(r.inState.click=!r.inState.click,r.isInStateTrue()?r.enter(r):r.leave(r)):r.tip().hasClass("in")?r.leave(r):r.enter(r)},c.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},c.prototype.sanitizeHtml=function(e){return u(e,this.options.whiteList,this.options.sanitizeFn)};var f=e.fn.tooltip;e.fn.tooltip=l,e.fn.tooltip.Constructor=c,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=f,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");function r(r){return this.each((function(){var n=e(this),i=n.data("bs.popover"),o="object"==typeof r&&r;!i&&/destroy|hide/.test(r)||(i||n.data("bs.popover",i=new t(this,o)),"string"==typeof r&&i[r]())}))}t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),r=this.getContent();if(this.options.html){var n=typeof r;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===n&&(r=this.sanitizeHtml(r))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===n?"html":"append"](r)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(r);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=e.fn.popover;e.fn.popover=r,e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(jQuery),function(e){"use strict";function t(r,n){this.$body=e(document.body),this.$scrollElement=e(r).is(document.body)?e(window):e(r),this.options=e.extend({},t.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function r(r){return this.each((function(){var n=e(this),i=n.data("bs.scrollspy"),o="object"==typeof r&&r;i||n.data("bs.scrollspy",i=new t(this,o)),"string"==typeof r&&i[r]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,r="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(r="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),i=t.data("target")||t.attr("href"),o=/^#./.test(i)&&e(i);return o&&o.length&&o.is(":visible")&&[[o[r]().top+n,i]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.getScrollHeight(),r=this.options.offset+t-this.$scrollElement.height(),n=this.offsets,i=this.targets,o=this.activeTarget,a;if(this.scrollHeight!=t&&this.refresh(),e>=r)return o!=(a=i[i.length-1])&&this.activate(a);if(o&&e=n[a]&&(void 0===n[a+1]||e .active"),a=i&&e.support.transition&&(o.length&&o.hasClass("fade")||!!n.find("> .fade").length);function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),r.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(r[0].offsetWidth,r.addClass("in")):r.removeClass("fade"),r.parent(".dropdown-menu").length&&r.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&a?o.one("bsTransitionEnd",s).emulateTransitionEnd(t.TRANSITION_DURATION):s(),o.removeClass("in")};var n=e.fn.tab;e.fn.tab=r,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=n,this};var i=function(t){t.preventDefault(),r.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(e){"use strict";var t=function(r,n){this.options=e.extend({},t.DEFAULTS,n);var i=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(r),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function r(r){return this.each((function(){var n=e(this),i=n.data("bs.affix"),o="object"==typeof r&&r;i||n.data("bs.affix",i=new t(this,o)),"string"==typeof r&&i[r]()}))}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,r,n){var i=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=r&&"top"==this.affixed)return i=e-n&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),r=this.$element.offset();return this.pinnedOffset=r.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var r=this.$element.height(),n=this.options.offset,i=n.top,o=n.bottom,a=Math.max(e(document).height(),e(document.body).height());"object"!=typeof n&&(o=i=n),"function"==typeof i&&(i=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var s=this.getState(a,r,i,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var u="affix"+(s?"-"+s:""),c=e.Event(u+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-r-o})}};var n=e.fn.affix;e.fn.affix=r,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var t=e(this),n=t.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),r.call(t,n)}))}))}(jQuery)}}}},fibers:{"package.json":function e(t,r,e){e.exports={name:"fibers",version:"5.0.3",main:"fibers"}},"fibers.js":function e(t,r,e,n,i){if(process.fiberLib)e.exports=process.fiberLib;else{var o=t("fs"),a=t("path"),s=t("detect-libc");Math.random();var u=a.join(i,"bin",process.platform+"-"+process.arch+"-"+process.versions.modules+("linux"===process.platform?"-"+s.family:""),"fibers");try{process.fiberLib=e.exports=t(u).Fiber}catch(l){throw console.error("## There is an issue with `node-fibers` ##\n`"+u+".node` is missing.\n\nTry running this to fix the issue: "+process.execPath+" "+i.replace(" ","\\ ")+"/build"),console.error(l.stack||l.message||l),new Error("Missing binary. See message above.")}c(e.exports)}function c(e){try{var t=process.binding("async_wrap"),r;if(t.asyncIdStackSize instanceof Function)r=t.asyncIdStackSize;else{if(void 0===t.constants.kStackLength)throw new Error("Couldn't figure out how to get async stack size");f=t.constants.kStackLength,r=function(){return t.async_hook_fields[f]}}var n=t.popAsyncContext||t.popAsyncIds,i=t.pushAsyncContext||t.pushAsyncIds,o,a;if(!n||!i)throw new Error("Push/pop do not exist");o=void 0===t.constants.kExecutionAsyncId?t.constants.kCurrentAsyncId:t.constants.kExecutionAsyncId,a=void 0===t.constants.kTriggerAsyncId?t.constants.kCurrentTriggerId:t.constants.kTriggerAsyncId;var s=t.async_id_fields||t.async_uid_fields;function u(){for(var e=r(),t=new Array(e);e>0;--e){var i=s[o];t[e-1]={asyncId:i,triggerId:s[a]},n(i)}return t}function c(e){for(var t=0;t0)i.changeLanguage(e,n);else if(0!=s[u]){s[u]=0;var c=new XMLHttpRequest;c.overrideMimeType("application/json"),c.open("GET",u,!1),c.send(null),200===c.status?s[u]=1:s[u]=-1,r.addResourceBundle(e,a,JSON.parse(c.response)||{}),i.changeLanguage(e,n)}};r.changeLanguage=p;var b=function(e,t,r){return i.format(e,t,r)};r.format=b;var m=function(){return i.languages};r.getLanguages=m;var g=function(e,t){return i.loadLanguages(e,t)};r.loadLanguages=g;var v=function(e,t){return i.loadNamespaces(e,t)};r.loadNamespaces=v;var y=function(e,t){return i.on(e,t)};r.on=y;var w=function(e,t){return i.off(e,t)};r.off=w,n.__exportStar(t("./i18n/i18n"),r),n.__exportStar(t("./i18n/i18n.app"),r),n.__exportStar(t("./translations"),r)},i18n:{"i18n.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.fallbackKeys=r.getObjectI18nTemplate=r.translationI18nObjects=r.addObjectsI18n=r.translationI18nObject=void 0;var n=t("../index"),i=t("underscore"),o=t("clone"),a="_",s="base",u="core",c="translation",l=function(e,t){var r={lng:t,ns:c};if((0,n.exists)(e,r))return(0,n._t)(e,r)},f=function(e){return"".concat(e,"__object")},d=function(e,t){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t)},h=function(e,t){var r=d(e,t);return"".concat(r).concat("_","inlineHelpText")},p=function(e,t){var r=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","group").concat("_").concat(r)},b=function(e,t,r){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t).concat("_","options").concat("_").concat(r)},m=function(e,t){return"".concat(e).concat("_","action").concat("_").concat(t)},g=function(e,t){return"".concat(e).concat("_","listview").concat("_").concat(t)},v=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},y=function(e,t,r){var n=f(t);return l(n,e)||r||""},w=function(e,t,r,n,i){var o=d(t,r),a=l(o,e);if(!a){var s=v(i);s&&"base"!=t&&"core"!=t&&(a=w(e,s,r,n,i))}return a||n||""},_=function(e,t,r,n,i){var o=h(t,r),a=l(o,e);if(!a){var s=v(i);s&&"base"!=t&&"core"!=t&&(a=_(e,s,r,n,i))}return a||n||""},x=function(e,t,r,n){var i=p(t,r);return l(i,e)||n||""},k=function(e,t,r,n,i,o){var a=b(t,r,n),s=l(a,e);if(!s){var u=v(o);u&&"base"!=t&&"core"!=t&&(s=k(e,u,r,n,i,o))}return s||i||""},S=function(e,t,r,n,i){var o=m(t,r),a=l(o,e);if(!a){var s=v(i);s&&"base"!=t&&"core"!=t&&(a=S(e,s,r,n,i))}return a||n||""},j=function(e,t,r,n,i){var o=g(t,r),a=l(o,e);if(!a){var s=v(i);s&&"base"!=t&&"core"!=t&&(a=j(e,s,r,n,i))}return a||n||""},A=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},D=function(e){i.forEach(e.fields,(function(e,t){var r=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;return e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return r.push(A(e))}))):r.push(A(e))})),e.options=r}catch(n){console.error("convertFieldsOptions error: ",e.options,n)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return r.push({label:e,value:t})})),e.options=r)}))},E=function(e,t,r){r.label=y(e,t,r.label),i.each(r.fields,(function(n,o){if(n.label=w(e,t,o,n.label,r.datasource),n.inlineHelpText&&(n.inlineHelpText=_(e,t,o,n.inlineHelpText,r.datasource)),n.group&&(n.group=x(e,t,n.group,n.group)),n.options){var a=[];i.each(n.options,(function(n){if(i.has(n,"value")){var s=k(e,t,o,n.value,n.label,r.datasource);a.push(i.extend({},n,{label:s}))}else a.push(n)})),n.options=a}})),i.each(r.actions,(function(n,i){n.label=S(e,t,i,n.label,r.datasource)})),i.each(r.list_views,(function(n,i){n.label=j(e,t,i,n.label,r.datasource)}))};r.translationI18nObject=E;var C=function(e){i.each(e,(function(e){(0,n.addResourceBundle)(e.lng,c,e.data,!0,!0)}))};r.addObjectsI18n=C;var O=function(e,t){i.each(t,(function(t,n){(0,r.translationI18nObject)(e,n,t)}))};r.translationI18nObjects=O;var T=function(e,t,r){var n=o(r);D(n);var a={};return a[f(t)]=y(e,t,n.label),i.each(n.fields,(function(r,o){a[d(t,o)]=w(e,t,o,r.label),r.inlineHelpText&&(a[h(t,o)]=_(e,t,o,r.inlineHelpText,n.datasource)),r.group&&(a[p(t,r.group)]=x(e,t,r.group,r.group)),r.options&&i.each(r.options,(function(r){i.has(r,"value")&&(a[b(t,o,r.value)]=k(e,t,o,r.value,r.label))}))})),i.each(n.actions,(function(r,n){a[m(t,n)]=S(e,t,n,r.label)})),i.each(n.list_views,(function(r,n){a[g(t,n)]=j(e,t,n,r.label)})),a};r.getObjectI18nTemplate=T,r.fallbackKeys={getObjectLabelKey:f,getObjectFieldLabelKey:d,getObjectFieldInlineHelpTextLabelKey:h,getObjectFieldGroupKey:p,getObjectFieldOptionsLabelKey:b,getObjectActionLabelKey:m,getObjectListviewLabelKey:g}},"i18n.app.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.appFallbackKeys=r.getAppI18nTemplate=r.translationI18nApps=r.translationI18nMenus=void 0;var n=t("../index"),i=t("underscore"),o=t("clone"),a="translation",s="_",u=function(e,t){var r={lng:t,ns:a};if((0,n.exists)(e,r))return(0,n._t)(e,r)},c=function(e){return"app".concat("_").concat(e).concat("_","name")},l=function(e){return"app".concat("_").concat(e).concat("_","description")},f=function(e,t){var r=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","tab_group").concat("_").concat(r)},d=function(e){return"menu".concat("_").concat(e)},h=function(e){return"tab".concat("_").concat(e)},p=function(e,t,r){var n=c(t);return u(n,e)||r||""},b=function(e,t,r){var n=l(t);return u(n,e)||r||""},m=function(e,t,r){var n=d(t);return u(n,e)||r||""},g=function(e,t,n){n.label=p(e,t,n.label||n.name),n.description=b(e,t,n.description),(0,r.translationI18nMenus)(e,n.admin_menus)},v=function(e,t){i.each(t,(function(t){var r=m(e,t._id,t.label||t.name);t.label=r,t.name=r}))};r.translationI18nMenus=v;var y=function(e,t){i.each(t,(function(t,r){g(e,r,t)}))};r.translationI18nApps=y;var w=function(e,t,r){var n=o(r),a={};return a[c(t)]=p(e,t,n.label||n.name),a[l(t)]=b(e,t,n.description),i.each(n.admin_menus,(function(t){a[d(t._id)]=m(e,t._id,t.label||t.name)})),a};r.getAppI18nTemplate=w,r.appFallbackKeys={getAppLabelKey:c,getAppDescriptionKey:l,getAppGroupKey:f,getMenuLabelKey:d,getTabKey:h}}},translations:{"index.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SteedosTranslationPrefixKeys=r.convertObject=void 0;var n=t("tslib"),i=t("underscore");n.__exportStar(t("./objectTranslation"),r),n.__exportStar(t("./translation"),r),n.__exportStar(t("./templates/objectTranslation"),r),n.__exportStar(t("./templates/translation"),r);var o=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},a=function(e){i.forEach(e.fields,(function(e,t){var r=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return r.push(o(e))}))):r.push(o(e))})),e.options=r}catch(n){console.error("convertFieldsOptions error: ",e.options,n)}else if(e.options&&i.isArray(e.options))try{i.forEach(e.options,(function(e){i.isString(e)?r.push(o(e)):r.push(e)})),e.options=r}catch(n){console.error("Creator.convertFieldsOptions",e.options,n)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return r.push({label:e,value:t})})),e.options=r)}))},s;r.convertObject=a,function(e){e.Object="CustomObject",e.Field="CustomField",e.Action="CustomAction",e.Listview="CustomListview",e.Permission="CustomPermission",e.ValidationRule="CustomValidationRule",e.Application="CustomApplication",e.Tab="CustomTabs",e.Permissionset="CustomPermissionset",e.Profile="CustomProfile",e.Report="CustomReport",e.Workflow="Workflow",e.Layout="Layout",e.Client="Client",e.Server="Server",e.Function="Function",e.Router="Router",e.Trigger="Trigger"}(s=r.SteedosTranslationPrefixKeys||(r.SteedosTranslationPrefixKeys={}))},"objectTranslation.js":function e(t,r,e,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.addObjectsTranslation=r.getObjectTranslationTemplate=r.translationObjects=r.translationObject=r.translationObjectLabel=void 0;var i=t("underscore"),o=t("./"),a=t("../index"),s=t("./index"),u=t("../i18n/i18n"),c=t("lodash"),l=t("crypto"),f,d=(0,t("@steedos/cachers").getCacher)("lru.translations.objects");function h(e){var t;return l.createHash("md5").update(e).digest("hex")}var p=function(e,t){return"".concat(e,"_").concat(t.name,"_").concat(h(JSON.stringify(t)))},b=t("clone"),m=".",g="base",v="core",y="translation",w="object",_="field",x="listview",k="action",S=function(e,t){var r={lng:t,ns:y,keySeparator:!1};if((0,a.exists)(e,r))return(0,a._t)(e,r)},j=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},A=function(e){switch(e){case"object":return o.SteedosTranslationPrefixKeys.Object;case"field":return o.SteedosTranslationPrefixKeys.Field;case"listview":return o.SteedosTranslationPrefixKeys.Listview;case"action":return o.SteedosTranslationPrefixKeys.Action;default:return"CustomLabels"}},D=function(e){var t;return[A(),e].join(".")},E=function(e){var t;return[A("object"),e,"label"].join(".")},C=function(e){var t;return[A("object"),e,"description"].join(".")},O=function(e,t){var r;return t&&(t=t.replace(/\./g,"_")),[A("field"),e,t,"label"].join(".")},T=function(e,t){var r;return t&&(t=t.replace(/\./g,"_")),[A("field"),e,t,"help"].join(".")},M=function(e,t){var r;return t&&(t=t.replace(/\./g,"_")),[A("field"),e,t,"description"].join(".")},B=function(e,t){var r=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_"),n;return[A("field"),e,"group",r].join(".")},I=function(e,t,r){var n;return t&&(t=t.replace(/\./g,"_")),[A("field"),e,t,"options",r].join(".")},R=function(e,t){var r;return[A("action"),e,t].join(".")},N=function(e,t){var r;return[A("listview"),e,t].join(".")},F=function(e,t,r){var n,i=[E(t)],o=u.fallbackKeys.getObjectLabelKey(t);return o&&i.push(o),S(i,e)||r||""};r.translationObjectLabel=F;var P=function(e,t,r){var n=C(t);return S(n,e)||r||""},L=function(e,t,r,n,i,o){var a,s=[O(t,r)],c=u.fallbackKeys.getObjectFieldLabelKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=L(e,f,r,n,i))}return l||n||""},q=function(e,t,r,n,i,o){var a,s=[T(t,r)],c=u.fallbackKeys.getObjectFieldInlineHelpTextLabelKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=q(e,f,r,n,i))}return l||n||""},z=function(e,t,r,n,i,o){var a=M(t,r),s,u=S([a],e);if(1!=o&&!u){var c=j(i);c&&"base"!=t&&"core"!=t&&(u=z(e,c,r,n,i))}return u||n||""},U=function(e,t,r,n,i,o){var a,s=[B(t,r)],c=u.fallbackKeys.getObjectFieldGroupKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=U(e,f,r,n,i))}return l||n||""},H=function(e,t,r,n,i,o,a){var s,c=[I(t,r,n)],l=u.fallbackKeys.getObjectFieldOptionsLabelKey(t,r,n);l&&c.push(l);var f=S(c,e);if(1!=a&&!f){var d=j(o);d&&"base"!=t&&"core"!=t&&(f=H(e,d,r,n,i,o))}return f||i||""},W=function(e,t,r,n,i,o){var a,s=[R(t,r)],c=u.fallbackKeys.getObjectActionLabelKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=W(e,f,r,n,i))}return l||n||""},$=function(e,t,r,n,i,o){var a,s=[N(t,r)],c=u.fallbackKeys.getObjectListviewLabelKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=$(e,f,r,n,i))}return l||n||""},Y=function(e,t,n,o,a){void 0===a&&(a=!1);var u=p(e,n);"test_obj_layout1"===t&&console.log("translationObject",t,u);var l=d.get(u);if(l)return Object.assign(n,(0,c.cloneDeep)(l));o&&(0,s.convertObject)(n),n.label=(0,r.translationObjectLabel)(e,t,n.label),n.description=P(e,t,n.description),i.each(n.fields,(function(r,o){if(r.label=L(e,t,o,r.label,n.datasource,a),r.inlineHelpText&&(r.inlineHelpText=q(e,t,o,r.inlineHelpText,n.datasource,a)),r.group&&(r.group=U(e,t,r.group,r.group,n.datasource,a)),r.options){var s=[];i.each(r.options,(function(r){if(i.has(r,"value")){var u=H(e,t,o,r.value,r.label,n.datasource,a);s.push(i.extend({},r,{label:u}))}else s.push(r)})),r.options=s}})),i.each(n.actions,(function(r,i){r.label=W(e,t,i,r.label,n.datasource,a)})),i.each(n.list_views,(function(r,i){r.label=$(e,t,i,r.label,n.datasource,a)})),d.set(u,(0,c.cloneDeep)(n))};r.translationObject=Y;var V=function(e,t){i.each(t,(function(t,n){(0,r.translationObject)(e,n,t)}))};r.translationObjects=V;var K=function(e,t,n){var o=b(n);(0,s.convertObject)(o);var a={};return a[E(t)]=(0,r.translationObjectLabel)(e,t,o.label),a[C(t)]=P(e,t,o.description),i.each(o.fields,(function(r,n){a[O(t,n)]=L(e,t,n,r.label),r.inlineHelpText&&(a[T(t,n)]=q(e,t,n,r.inlineHelpText,o.datasource)),r.description&&(a[M(t,n)]=z(e,t,n,r.description,o.datasource)),r.group&&(a[B(t,r.group)]=U(e,t,r.group,r.group,o.datasource)),r.options&&i.each(r.options,(function(r){i.has(r,"value")&&(a[I(t,n,r.value)]=H(e,t,n,r.value,r.label))}))})),i.each(o.actions,(function(r,n){a[R(t,n)]=W(e,t,n,r.label)})),i.each(o.list_views,(function(r,n){a[N(t,n)]=$(e,t,n,r.label)})),a};function G(e,t){var r=b(e);(0,s.convertObject)(r);var n={},o=r.name;return o||console.error("Error: Invalid objectTranslation:"+t),n[E(o)]=r.label,n[C(o)]=r.description,i.each(r.fields,(function(e,t){n[O(o,t)]=e.label,e.help&&(n[T(o,t)]=e.help),e.description&&(n[M(o,t)]=e.description),e.options&&i.each(e.options,(function(e){i.has(e,"value")&&(n[I(o,t,e.value)]=e.label)}))})),i.each(r.groups,(function(e,t){n[B(o,t)]=e})),i.each(r.actions,(function(e,t){n[R(o,t)]=e.label})),i.each(r.listviews,(function(e,t){n[N(o,t)]=e.label})),i.each(r.CustomLabels,(function(e,t){n[D(t)]=e})),n}r.getObjectTranslationTemplate=K;var X=function(e){i.each(e,(function(e){var t=G(e.data,e.__filename);(0,a.addResourceBundle)(e.lng,y,t,!0,!0)}))};r.addObjectsTranslation=X},"translation.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.addTranslations=r.convertTranslation=r.convertTranslationData=r.getAppTranslationTemplate=r.translationApps=r.translationMenus=r.translationApp=r.translationTabLabel=r.translationTabGroup=void 0;var n=t("../index"),i=t("underscore"),o=t("./"),a=t("../i18n/i18n.app"),s=t("clone"),u="translation",c=".",l="app",f="menu",d="tab",h=function(e){switch(e){case"app":return o.SteedosTranslationPrefixKeys.Application;case"tab":return o.SteedosTranslationPrefixKeys.Tab;default:return"CustomLabels"}},p=function(e){var t;return[h(),e].join(".")},b=function(e,t){var r={lng:t,ns:u,keySeparator:!1};if((0,n.exists)(e,r))return(0,n._t)(e,r)},m=function(e){var t;return[h("app"),e,"name"].join(".")},g=function(e){var t;return[h("app"),e,"description"].join(".")},v=function(e,t){var r,n;return[h("app"),e,"groups",t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_")].join(".")},y=function(e){var t;return[h("menu"),"menu_".concat(e)].join(".")},w=function(e){var t;return[h("tab"),e].join(".")},_=function(e,t,r){var n,i=[m(t)],o=a.appFallbackKeys.getAppLabelKey(t);return o&&i.push(o),b(i,e)||r||""},x=function(e,t,r){var n,i=[g(t)],o=a.appFallbackKeys.getAppDescriptionKey(t);return o&&i.push(o),b(i,e)||r||""},k=function(e,t,r,n){var i,o=[v(t,r)],s=a.appFallbackKeys.getAppGroupKey(t,r);return s&&o.push(s),b(o,e)||n||""};r.translationTabGroup=k;var S=function(e,t,r){var n,i=[y(t)],o=a.appFallbackKeys.getMenuLabelKey(t);return o&&i.push(o),b(i,e)||r||""},j=function(e,t,r){var n,i=[w(t)],o=a.appFallbackKeys.getTabKey(t);return o&&i.push(o),b(i,e)||r||""};r.translationTabLabel=j;var A=function(e,t,n){n.label=_(e,t,n.label||n.name),n.description=x(e,t,n.description),i.each(n.tab_groups,(function(i,o){n.tab_groups[o].id=i.id||i.group_name,n.tab_groups[o].group_name=(0,r.translationTabGroup)(e,t,i.group_name,i.group_name)})),(0,r.translationMenus)(e,n.admin_menus)};r.translationApp=A;var D=function(e,t){i.each(t,(function(t){var r=S(e,t._id,t.label||t.name);t.label=r,t.name=r}))};r.translationMenus=D;var E=function(e,t){i.each(t,(function(t,n){(0,r.translationApp)(e,n,t)}))};r.translationApps=E;var C=function(e,t,r){var n=s(r),o={};return o[m(t)]=_(e,t,n.label||n.name),o[g(t)]=x(e,t,n.description),i.each(n.admin_menus,(function(t){o[y(t._id)]=S(e,t._id,t.label||t.name)})),o};r.getAppTranslationTemplate=C;var O=function(e,t,r){i.isArray(r)?i.each(r,(function(e){O(e,"",e)})):r&&i.each(i.keys(r),(function(n){var o=t?"".concat(t,".").concat(n):n,a=r[n];"object"==typeof a?i.isArray(a)?i.each(a,(function(e){O(e,o,a)})):O(e,o,a):e[o]=a}))};function T(e){for(var t in e)"object"==typeof e[t]&&O(e,t,e[t]);return e}r.convertTranslationData=T;var M=function(e){var t=s(e),r={};return i.each(t.CustomApplications,(function(e,t){r[m(t)]=e.name,r[g(t)]=e.description,i.each(e.groups,(function(e,n){r[v(t,n)]=e}))})),i.each(t.CustomTabs,(function(e,t){r[w(t)]=e})),i.each(t.CustomLabels,(function(e,t){var n;if("simpleschema"!=t&&i.isObject(e)){var o=T(((n={})[t]=e,n));i.each(o,(function(e,t){i.isObject(e)||(r[p(t)]=e)}))}else r[p(t)]=e})),r};r.convertTranslation=M;var B=function(e){i.each(e,(function(e){var t=(0,r.convertTranslation)(e.data);(0,n.addResourceBundle)(e.lng,u,t,!0,!0)}))};r.addTranslations=B},templates:{"objectTranslation.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getObjectMetadataTranslationTemplate=void 0;var n=t("underscore"),i=t("../index"),o=t("clone");function a(e,t){var r={};return n.each(e,(function(e){r[e]="help"===e?t.inlineHelpText||"":t[e]||""})),r}function s(e){return a(["label","description"],e)}function u(e){switch(e.type){case"select":return a(["label","help","options","description"],e);default:return a(["label","help","description"],e)}}function c(e){return a(["label"],e)}function l(e){return a(["label"],e)}function f(e){var t={};return n.each(e,(function(e,r){t[r]=u(e)})),t}function d(e){var t={};return n.each(e,(function(e,r){t[r]=l(e)})),t}function h(e){var t={};return n.each(e,(function(e,r){t[r]=c(e)})),t}function p(e,t){var r={};return n.each(e,(function(e,n){if(e.group){var i=e.group.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");r[i]=t[n].group}})),r}var b=function(e,t,r,a){void 0===a&&(a=!1);var u=o(r);1!=a&&(0,i.translationObject)(e,t,u,!0,a);var c=Object.assign({},s(u));c=Object.assign({},c,{fields:f(u.fields)});var l=p(r.fields,u.fields);n.isEmpty(l)||(c=Object.assign({},c,{groups:l}));var b=h(u.list_views);n.isEmpty(b)||(c=Object.assign({},c,{listviews:b}));var m=d(u.actions);return n.isEmpty(m)||(c=Object.assign({},c,{actions:m})),Object.assign({name:t},c)};r.getObjectMetadataTranslationTemplate=b},"translation.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getAppMetadataTranslationTemplate=void 0;var n=t("underscore"),i=t("../index"),o=t("clone");function a(e,t){var r={};return n.each(e,(function(e){r[e]=t[e]||""})),r}function s(e){var t={groups:{}};return e?(n.each(e,(function(e){var r=e.group_name.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t.groups[r]=e.group_name})),t):{}}var u=function(e){return Object.assign({},a(["name","description"],e),s(e.tab_groups))},c=function(e){var t={};return n.each(e,(function(e,r){t[r]=r})),t},l=function(e){var t={};return n.each(e,(function(e){var r=e.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t[r]=e})),t},f=function(e,t,r){var n,a=o(r);(0,i.translationApp)(e,t,a);var s={},f;return a.tab_items?s=c(a.tab_items):a.tabs&&(s=l(a.tabs)),Object.assign({},{CustomApplications:(n={},n[t]=u(a),n)},{CustomTabs:s})};r.getAppMetadataTranslationTemplate=f}}}},node_modules:{i18next:{"package.json":function e(t,r,e){e.exports={name:"i18next",version:"19.9.2",main:"./dist/cjs/i18next.js",module:"./dist/esm/i18next.js"}},dist:{cjs:{"i18next.js":function e(t,r,e){"use strict";var n=t("@babel/runtime/helpers/typeof"),i=t("@babel/runtime/helpers/objectSpread"),o=t("@babel/runtime/helpers/classCallCheck"),a=t("@babel/runtime/helpers/createClass"),s=t("@babel/runtime/helpers/possibleConstructorReturn"),u=t("@babel/runtime/helpers/getPrototypeOf"),c=t("@babel/runtime/helpers/assertThisInitialized"),l=t("@babel/runtime/helpers/inherits");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=f(n),h=f(i),p=f(o),b=f(a),m=f(s),g=f(u),v=f(c),y=f(l),w={type:"logger",log:function e(t){this.output("log",t)},warn:function e(t){this.output("warn",t)},error:function e(t){this.output("error",t)},output:function e(t,r){console&&console[t]&&console[t].apply(console,r)}},_,x=new(function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p.default(this,e),this.init(t,r)}return b.default(e,[{key:"init",value:function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||w,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function e(t){this.debug=t}},{key:"log",value:function e(){for(var t=arguments.length,r=new Array(t),n=0;n1?r-1:0),i=1;i-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:n(o.shift())}}function E(e,t,r){var n=D(e,t,Object),i,o;n.obj[n.k]=r}function C(e,t,r,n){var i=D(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],n&&(o[a]=o[a].concat(r)),n||o[a].push(r)}function O(e,t){var r=D(e,t),n=r.obj,i=r.k;if(n)return n[i]}function T(e,t,r){var n=O(e,r);return void 0!==n?n:O(t,r)}function M(e,t,r){for(var n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?"string"==typeof e[n]||e[n]instanceof String||"string"==typeof t[n]||t[n]instanceof String?r&&(e[n]=t[n]):M(e[n],t[n],r):e[n]=t[n]);return e}function B(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var I={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function R(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return I[e]})):e}var N="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,F=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return p.default(this,t),r=m.default(this,g.default(t).call(this)),N&&k.call(v.default(r)),r.data=e||{},r.options=n,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r}return y.default(t,e),b.default(t,[{key:"addNamespaces",value:function e(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function e(t){var r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function e(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[t,r];return n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(a=t.split(".")),O(this.data,a)}},{key:"addResource",value:function e(t,r,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var s=[t,r];n&&(s=s.concat(a?n.split(a):n)),t.indexOf(".")>-1&&(i=r,r=(s=t.split("."))[1]),this.addNamespaces(r),E(this.data,s,i),o.silent||this.emit("added",t,r,n,i)}},{key:"addResources",value:function e(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(t,r,o,n[o],{silent:!0});i.silent||this.emit("added",t,r,n)}},{key:"addResourceBundle",value:function e(t,r,n,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[t,r];t.indexOf(".")>-1&&(i=n,n=r,r=(s=t.split("."))[1]),this.addNamespaces(r);var u=O(this.data,s)||{};i?M(u,n,o):u=h.default({},u,n),E(this.data,s,u),a.silent||this.emit("added",t,r,n)}},{key:"removeResourceBundle",value:function e(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}},{key:"hasResourceBundle",value:function e(t,r){return void 0!==this.getResource(t,r)}},{key:"getResourceBundle",value:function e(t,r){return r||(r=this.options.defaultNS),"v1"===this.options.compatibilityAPI?h.default({},{},this.getResource(t,r)):this.getResource(t,r)}},{key:"getDataByLanguage",value:function e(t){return this.data[t]}},{key:"toJSON",value:function e(){return this.data}}]),t}(k),P={processors:{},addPostProcessor:function e(t){this.processors[t.name]=t},handle:function e(t,r,n,i,o){var a=this;return t.forEach((function(e){a.processors[e]&&(r=a.processors[e].process(r,n,i,o))})),r}},L={},q=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p.default(this,t),r=m.default(this,g.default(t).call(this)),N&&k.call(v.default(r)),A(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,v.default(r)),r.options=n,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=x.create("translator"),r}return y.default(t,e),b.default(t,[{key:"changeLanguage",value:function e(t){t&&(this.language=t)}},{key:"exists",value:function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(t,r);return n&&void 0!==n.res}},{key:"extractFromKey",value:function e(t,r){var n=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=r.ns||this.options.defaultNS;if(n&&t.indexOf(n)>-1){var a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:o};var s=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),t=s.join(i)}return"string"==typeof o&&(o=[o]),{key:t,namespaces:o}}},{key:"translate",value:function e(r,n,i){var o=this;if("object"!==d.default(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==r)return"";Array.isArray(r)||(r=[String(r)]);var a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(r[r.length-1],n),u=s.key,c=s.namespaces,l=c[c.length-1],f=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(p){var b=n.nsSeparator||this.options.nsSeparator;return l+b+u}return u}var m=this.resolve(r,n),g=m&&m.res,v=m&&m.usedKey||u,y=m&&m.exactUsedKey||u,w=Object.prototype.toString.apply(g),_=["[object Number]","[object Function]","[object RegExp]"],x=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,S="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(k&&g&&S&&_.indexOf(w)<0&&("string"!=typeof x||"[object Array]"!==w)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,g,n):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(a){var j="[object Array]"===w,A=j?[]:{},D=j?y:v;for(var E in g)if(Object.prototype.hasOwnProperty.call(g,E)){var C="".concat(D).concat(a).concat(E);A[E]=this.translate(C,h.default({},n,{joinArrays:!1,ns:c})),A[E]===C&&(A[E]=g[E])}g=A}}else if(k&&"string"==typeof x&&"[object Array]"===w)(g=g.join(x))&&(g=this.extendTranslation(g,r,n,i));else{var O=!1,T=!1,M=void 0!==n.count&&"string"!=typeof n.count,B=t.hasDefaultValue(n),I=M?this.pluralResolver.getSuffix(f,n.count):"",R=n["defaultValue".concat(I)]||n.defaultValue;!this.isValidLookup(g)&&B&&(O=!0,g=R),this.isValidLookup(g)||(T=!0,g=u);var N=B&&R!==g&&this.options.updateMissing;if(T||O||N){if(this.logger.log(N?"updateKey":"missingKey",f,l,u,N?R:g),a){var F=this.resolve(u,h.default({},n,{keySeparator:!1}));F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var P=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var q=0;q1&&void 0!==arguments[1]?arguments[1]:{},i,o,a,s,u;return"string"==typeof t&&(t=[t]),t.forEach((function(e){if(!r.isValidLookup(i)){var t=r.extractFromKey(e,n),c=t.key;o=c;var l=t.namespaces;r.options.fallbackNS&&(l=l.concat(r.options.fallbackNS));var f=void 0!==n.count&&"string"!=typeof n.count,d=void 0!==n.context&&"string"==typeof n.context&&""!==n.context,h=n.lngs?n.lngs:r.languageUtils.toResolveHierarchy(n.lng||r.language,n.fallbackLng);l.forEach((function(e){r.isValidLookup(i)||(u=e,!L["".concat(h[0],"-").concat(e)]&&r.utils&&r.utils.hasLoadedNamespace&&!r.utils.hasLoadedNamespace(u)&&(L["".concat(h[0],"-").concat(e)]=!0,r.logger.warn('key "'.concat(o,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(t){if(!r.isValidLookup(i)){s=t;var o=c,u=[o],l,h;if(r.i18nFormat&&r.i18nFormat.addLookupKeys)r.i18nFormat.addLookupKeys(u,c,t,e,n);else f&&(l=r.pluralResolver.getSuffix(t,n.count)),f&&d&&u.push(o+l),d&&u.push(o+="".concat(r.options.contextSeparator).concat(n.context)),f&&u.push(o+=l);for(;h=u.pop();)r.isValidLookup(i)||(a=h,i=r.getResource(t,e,h,n))}})))}))}})),{res:i,usedKey:o,exactUsedKey:a,usedLng:s,usedNS:u}}},{key:"isValidLookup",value:function e(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function e(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,i):this.resourceStore.getResource(t,r,n,i)}}],[{key:"hasDefaultValue",value:function e(t){var r="defaultValue";for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&void 0!==t[n])return!0;return!1}}]),t}(k);function z(e){return e.charAt(0).toUpperCase()+e.slice(1)}var U=function(){function e(t){p.default(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=x.create("languageUtils")}return b.default(e,[{key:"getScriptPartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return null;var r=t.split("-");return 2===r.length?null:(r.pop(),"x"===r[r.length-1].toLowerCase()?null:this.formatLanguageCode(r.join("-")))}},{key:"getLanguagePartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return t;var r=t.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function e(t){if("string"==typeof t&&t.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=z(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=z(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=z(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function e(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function e(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function e(t){var r=this,n;return t?(t.forEach((function(e){if(!n){var t=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(t)||(n=t)}})),!n&&this.options.supportedLngs&&t.forEach((function(e){if(!n){var t=r.getLanguagePartFromCode(e);if(r.isSupportedCode(t))return n=t;n=r.options.supportedLngs.find((function(e){if(0===e.indexOf(t))return e}))}})),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function e(t,r){if(!t)return[];if("function"==typeof t&&(t=t(r)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!r)return t.default||[];var n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function e(t,r){var n=this,i=this.getFallbackCodes(r||this.options.fallbackLng||[],t),o=[],a=function e(t){t&&(n.isSupportedCode(t)?o.push(t):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(t))):"string"==typeof t&&a(this.formatLanguageCode(t)),i.forEach((function(e){o.indexOf(e)<0&&a(n.formatLanguageCode(e))})),o}}]),e}(),H=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],W={1:function e(t){return Number(t>1)},2:function e(t){return Number(1!=t)},3:function e(t){return 0},4:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function e(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function e(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function e(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function e(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function e(t){return Number(t>=2)},10:function e(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function e(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function e(t){return Number(t%10!=1||t%100==11)},13:function e(t){return Number(0!==t)},14:function e(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function e(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function e(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function e(t){return Number(0==t?0:1==t?1:2)},19:function e(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function e(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function e(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function e(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function $(){var e={};return H.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:W[t.fc]}}))})),e}var Y=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p.default(this,e),this.languageUtils=t,this.options=r,this.logger=x.create("pluralResolver"),this.rules=$()}return b.default(e,[{key:"addRule",value:function e(t,r){this.rules[t]=r}},{key:"getRule",value:function e(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function e(t){var r=this.getRule(t);return r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function e(t,r){return this.getSuffixes(t).map((function(e){return r+e}))}},{key:"getSuffixes",value:function e(t){var r=this,n=this.getRule(t);return n?n.numbers.map((function(e){return r.getSuffix(t,e)})):[]}},{key:"getSuffix",value:function e(t,r){var n=this,i=this.getRule(t);if(i){var o=i.noAbs?i.plurals(r):i.plurals(Math.abs(r)),a=i.numbers[o];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===a?a="plural":1===a&&(a=""));var s=function e(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return"v1"===this.options.compatibilityJSON?1===a?"":"number"==typeof a?"_plural_".concat(a.toString()):s():"v2"===this.options.compatibilityJSON?s():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),V=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p.default(this,e),this.logger=x.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return b.default(e,[{key:"init",value:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:R,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?B(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?B(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?B(r.nestingPrefix):r.nestingPrefixEscaped||B("$t("),this.nestingSuffix=r.nestingSuffix?B(r.nestingSuffix):r.nestingSuffixEscaped||B(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=void 0!==r.alwaysFormat&&r.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function e(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function e(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function e(t,r,n,i){var o=this,a,s,u,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var f=function e(t){if(t.indexOf(o.formatSeparator)<0){var a=T(r,c,t);return o.alwaysFormat?o.format(a,void 0,n):a}var s=t.split(o.formatSeparator),u=s.shift().trim(),l=s.join(o.formatSeparator).trim();return o.format(T(r,c,u),l,n,i)};this.resetRegExp();var d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p;return[{regex:this.regexpUnescape,safeValue:function e(t){return l(t)}},{regex:this.regexp,safeValue:function e(t){return o.escapeValue?l(o.escape(t)):l(t)}}].forEach((function(e){for(u=0;a=e.regex.exec(t);){if(void 0===(s=f(a[1].trim())))if("function"==typeof d){var r=d(t,a,i);s="string"==typeof r?r:""}else{if(h){s=a[0];continue}o.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(t)),s=""}else"string"==typeof s||o.useRawValueToEscape||(s=j(s));if(t=t.replace(a[0],e.safeValue(s)),e.regex.lastIndex=0,++u>=o.maxReplaces)break}})),t}},{key:"nest",value:function e(t,r){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o,a,s=h.default({},i);function u(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var n=e.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(n[1]);e=n[0],i=(i=this.interpolate(i,s)).replace(/'/g,'"');try{s=JSON.parse(i),t&&(s=h.default({},t,s))}catch(o){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),o),"".concat(e).concat(r).concat(i)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;o=this.nestingRegexp.exec(t);){var c=[],l=!1;if(o[0].includes(this.formatSeparator)&&!/{.*}/.test(o[1])){var f=o[1].split(this.formatSeparator).map((function(e){return e.trim()}));o[1]=f.shift(),c=f,l=!0}if((a=r(u.call(this,o[1].trim(),s),s))&&o[0]===t&&"string"!=typeof a)return a;"string"!=typeof a&&(a=j(a)),a||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(t)),a=""),l&&(a=c.reduce((function(e,t){return n.format(e,t,i.lng,i)}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}]),e}();function K(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}var G=function(e){function t(e,r,n){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return p.default(this,t),i=m.default(this,g.default(t).call(this)),N&&k.call(v.default(i)),i.backend=e,i.store=r,i.services=n,i.languageUtils=n.languageUtils,i.options=o,i.logger=x.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(n,o.backend,o),i}return y.default(t,e),b.default(t,[{key:"queueLoad",value:function e(t,r,n,i){var o=this,a=[],s=[],u=[],c=[];return t.forEach((function(e){var t=!0;r.forEach((function(r){var i="".concat(e,"|").concat(r);!n.reload&&o.store.hasResourceBundle(e,r)?o.state[i]=2:o.state[i]<0||(1===o.state[i]?s.indexOf(i)<0&&s.push(i):(o.state[i]=1,t=!1,s.indexOf(i)<0&&s.push(i),a.indexOf(i)<0&&a.push(i),c.indexOf(r)<0&&c.push(r)))})),t||u.push(e)})),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:a,pending:s,toLoadLanguages:u,toLoadNamespaces:c}}},{key:"loaded",value:function e(t,r,n){var i=t.split("|"),o=i[0],a=i[1];r&&this.emit("failedLoading",o,a,r),n&&this.store.addResourceBundle(o,a,n),this.state[t]=r?-1:2;var e={};this.queue.forEach((function(n){C(n.loaded,[o],a),K(n.pending,t),r&&n.errors.push(r),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(t){e[t]||(e[t]=[]),n.loaded[t].length&&n.loaded[t].forEach((function(r){e[t].indexOf(r)<0&&e[t].push(r)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",e),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function e(t,r,n){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[n](t,r,(function(e,u){e&&u&&o<5?setTimeout((function(){i.read.call(i,t,r,n,o+1,2*a,s)}),a):s(e,u)})):s(null,{})}},{key:"prepareLoading",value:function e(t,r){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof r&&(r=[r]);var a=this.queueLoad(t,r,i,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function e(t,r,n){this.prepareLoading(t,r,{},n)}},{key:"reload",value:function e(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}},{key:"loadOne",value:function e(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t.split("|"),o=i[0],a=i[1];this.read(o,a,"read",void 0,void 0,(function(e,i){e&&r.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(o," failed"),e),!e&&i&&r.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(o),i),r.loaded(t,e,i)}))}},{key:"saveMissing",value:function e(t,r,n,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(t,r,n,i,null,h.default({},a,{isUpdate:o})),t&&t[0]&&this.store.addResource(t[0],r,n,i))}}]),t}(k);function X(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function e(t){var r={};if("object"===d.default(t[1])&&(r=t[1]),"string"==typeof t[1]&&(r.defaultValue=t[1]),"string"==typeof t[2]&&(r.tDescription=t[2]),"object"===d.default(t[2])||"object"===d.default(t[3])){var n=t[3]||t[2];Object.keys(n).forEach((function(e){r[e]=n[e]}))}return r},interpolation:{escapeValue:!0,format:function e(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function Z(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function J(){}var Q,ee=new(function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(p.default(this,t),e=m.default(this,g.default(t).call(this)),N&&k.call(v.default(e)),e.options=Z(r),e.services={},e.logger=x,e.modules={external:[]},n&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,n),m.default(e,v.default(e));setTimeout((function(){e.init(r,n)}),0)}return e}return y.default(t,e),b.default(t,[{key:"init",value:function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function i(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof r&&(n=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=h.default({},X(),this.options,Z(r)),this.format=this.options.interpolation.format,n||(n=J),!this.options.isClone){this.modules.logger?x.init(i(this.modules.logger),this.options):x.init(null,this.options);var o=new U(this.options);this.store=new F(this.options.resources,this.options);var a=this.services;a.logger=x,a.resourceStore=this.store,a.languageUtils=o,a.pluralResolver=new Y(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new V(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new G(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i1?r-1:0),i=1;i0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments),t}}));var l=S(),f=function e(){var r=function e(r,i){t.isInitialized&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),l.resolve(i),n(r,i)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return r(null,t.t.bind(t));t.changeLanguage(t.options.lng,r)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),l}},{key:"loadResources",value:function e(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J,i=n,o="string"==typeof t?t:this.language;if("function"==typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return i();var a=[],s=function e(t){var n;t&&r.services.languageUtils.toResolveHierarchy(t).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};if(o)s(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return s(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return s(e)})),this.services.backendConnector.load(a,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function e(t,r,n){var i=S();return t||(t=this.languages),r||(r=this.options.ns),n||(n=J),this.services.backendConnector.reload(t,r,(function(e){i.resolve(),n(e)})),i}},{key:"use",value:function e(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&P.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function e(t,r){var n=this;this.isLanguageChangingTo=t;var i=S();this.emit("languageChanging",t);var o=function e(t,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,i.resolve((function(){return n.t.apply(n,arguments)})),r&&r(t,(function(){return n.t.apply(n,arguments)}))},a=function e(t){var r="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);r&&(n.language||(n.language=r,n.languages=n.services.languageUtils.toResolveHierarchy(r)),n.translator.language||n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,(function(e){o(e,r)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(t):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function e(t,r){var n=this,i=function e(t,r){var i;if("object"!==d.default(r)){for(var o=arguments.length,a=new Array(o>2?o-2:0),s=2;s1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],o=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var s=function e(t,n){var i=r.services.backendConnector.state["".concat(t,"|").concat(n)];return-1===i||2===i};if(n.precheck){var u=n.precheck(this,s);if(void 0!==u)return u}return!!this.hasResourceBundle(i,t)||(!this.services.backendConnector.backend||!(!s(i,t)||o&&!s(a,t)))}},{key:"loadNamespaces",value:function e(t,r){var n=this,i=S();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),r&&r(e)})),i):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function e(t,r){var n=S();"string"==typeof t&&(t=[t]);var i=this.options.preload||[],o=t.filter((function(e){return i.indexOf(e)<0}));return o.length?(this.options.preload=i.concat(o),this.loadResources((function(e){n.resolve(),r&&r(e)})),n):(r&&r(),Promise.resolve())}},{key:"dir",value:function e(t){return t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),t?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr":"rtl";var r}},{key:"createInstance",value:function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(r,n)}},{key:"cloneInstance",value:function e(){var r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J,o=h.default({},this.options,n,{isClone:!0}),a=new t(o),s=["store","services","language"];return s.forEach((function(e){a[e]=r[e]})),a.services=h.default({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new q(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=0&&r<=y}}function Z(e){return function(t){return null==t?void 0:t[e]}}var J=Z("byteLength"),Q=X(J),ee=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function te(e){return p?p(e)&&!U(e):Q(e)&&ee.test(s.call(e))}var re=c?te:G(!1),ne=Z("length");function ie(e){for(var t={},r=e.length,n=0;n":">",'"':""","'":"'","`":"`"},st=ot(at),ut,ct=ot(Oe(at)),lt=ce.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},ft=/(.)^/,dt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ht=/\\|'|\r|\n|\u2028|\u2029/g;function pt(e){return"\\"+dt[e]}var bt=/^\s*(\w|\$)+\s*$/;function mt(e,t,r){!t&&r&&(t=r),t=Re({},t,ce.templateSettings);var n=RegExp([(t.escape||ft).source,(t.interpolate||ft).source,(t.evaluate||ft).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(n,(function(t,r,n,a,s){return o+=e.slice(i,s).replace(ht,pt),i=s+t.length,r?o+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":n?o+="'+\n((__t=("+n+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t})),o+="';\n";var a=t.variable,s;if(a){if(!bt.test(a))throw new Error("variable is not a bare identifier: "+a)}else o="with(obj||{}){\n"+o+"}\n",a="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{s=new Function(a,"_",o)}catch(c){throw c.source=o,c}var u=function(e){return s.call(this,e,ce)};return u.source="function("+a+"){\n"+o+"}",u}function gt(e,t,r){var n=(t=Ue(t)).length;if(!n)return N(r)?r.call(e):r;for(var i=0;i1)jt(s,t-1,r,n),i=n.length;else for(var u=0,c=s.length;ut?(n&&(clearTimeout(n),n=null),s=c,a=e.apply(i,o),n||(i=o=null)):n||!1===r.trailing||(n=setTimeout(u,l)),a};return c.cancel=function(){clearTimeout(n),s=0,n=i=o=null},c}function Tt(e,t,r){var n,i,o,a,s,u=function(){var c=it()-i;t>c?n=setTimeout(u,t-c):(n=null,r||(a=e.apply(s,o)),n||(o=s=null))},c=w((function(c){return s=this,o=c,i=it(),n||(n=setTimeout(u,t),r&&(a=e.apply(s,o))),a}));return c.cancel=function(){clearTimeout(n),n=o=s=null},c}function Mt(e,t){return xt(t,e)}function Bt(e){return function(){return!e.apply(this,arguments)}}function It(){var e=arguments,t=e.length-1;return function(){for(var r=t,n=e[t].apply(this,arguments);r--;)n=e[r].call(this,n);return n}}function Rt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Nt(e,t){var r;return function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}}var Ft=xt(Nt,2);function Pt(e,t,r){t=Je(t,r);for(var n=ae(e),i,o=0,a=n.length;o0?0:i-1;o>=0&&o0?s=o>=0?o:Math.max(o+u,s):u=o>=0?Math.min(o+1,u):o+u+1;else if(r&&o&&u)return n[o=r(n,i)]===i?o:-1;if(i!=i)return(o=t(a.call(n,s,u),K))>=0?o+s:-1;for(o=e>0?s:u-1;o>=0&&o0?0:a-1;for(i||(n=t[o?o[s]:s],s+=e);s>=0&&s=3;return t(e,Ge(r,i,4),n,o)}}var Zt=Xt(1),Jt=Xt(-1);function Qt(e,t,r){var n=[];return t=Je(t,r),Kt(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function er(e,t,r){return Qt(e,Bt(Je(t)),r)}function tr(e,t,r){t=Je(t,r);for(var n=!St(e)&&ae(e),i=(n||e).length,o=0;o=0}var ir=w((function(e,t,r){var n,i;return N(t)?i=t:(t=Ue(t),n=t.slice(0,-1),t=t[t.length-1]),Gt(e,(function(e){var o=i;if(!o){if(n&&n.length&&(e=He(e,n)),null==e)return;o=e[t]}return null==o?o:o.apply(e,r)}))}));function or(e,t){return Gt(e,Ke(t))}function ar(e,t){return Qt(e,Ve(t))}function sr(e,t,r){var n=-1/0,i=-1/0,o,a;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=St(e)?e:Ee(e)).length;sn&&(n=o);else t=Je(t,r),Kt(e,(function(e,r,o){((a=t(e,r,o))>i||a===-1/0&&n===-1/0)&&(n=e,i=a)}));return n}function ur(e,t,r){var n=1/0,i=1/0,o,a;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=St(e)?e:Ee(e)).length;sn||void 0===r)return 1;if(r1&&(n=Ge(n,t[1])),t=be(e)):(n=wr,t=jt(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i1&&(n=t[1])):(t=Gt(jt(t,!1,!1),String),r=function(e,r){return!nr(t,r)}),_r(e,r,n)}));function kr(e,t,r){return a.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))}function Sr(e,t,r){return null==e||e.length<1?null==t||r?void 0:[]:null==t||r?e[0]:kr(e,e.length-t)}function jr(e,t,r){return a.call(e,null==t||r?1:t)}function Ar(e,t,r){return null==e||e.length<1?null==t||r?void 0:[]:null==t||r?e[e.length-1]:jr(e,Math.max(0,e.length-t))}function Dr(e){return Qt(e,Boolean)}function Er(e,t){return jt(e,t,!1)}var Cr=w((function(e,t){return t=jt(t,!0,!0),Qt(e,(function(e){return!nr(t,e)}))})),Or=w((function(e,t){return Cr(e,t)}));function Tr(e,t,r,n){S(t)||(n=r,r=t,t=!1),null!=r&&(r=Je(r,n));for(var i=[],o=[],a=0,s=ne(e);ae(t),this)}}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},c=new Set,l=(e,t)=>{const r=`LRU_CACHE_OPTION_${e}`;p(r)&&b(r,`${e} option`,`options.${t}`,w)},f=(e,t)=>{const r=`LRU_CACHE_METHOD_${e}`;if(p(r)){const{prototype:n}=w,{get:i}=Object.getOwnPropertyDescriptor(n,e);b(r,`${e} method`,`cache.${t}()`,i)}},d=(e,t)=>{const r=`LRU_CACHE_PROPERTY_${e}`;if(p(r)){const{prototype:n}=w,{get:i}=Object.getOwnPropertyDescriptor(n,e);b(r,`${e} property`,`cache.${t}`,i)}},h=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},p=e=>!c.has(e),b=(e,t,r,n)=>{c.add(e);const i=`The ${t} is deprecated. Please use ${r} instead.`;h(i,"DeprecationWarning",e,n)},m=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),g=e=>m(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?v:null:null;class v extends Array{constructor(e){super(e),this.fill(0)}}class y{constructor(e){if(0===e)return[];const t=g(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class w{constructor(e={}){const{max:t=0,ttl:r,ttlResolution:n=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:s,dispose:u,disposeAfter:f,noDisposeOnSet:d,noUpdateTTL:b,maxSize:v=0,maxEntrySize:_=0,sizeCalculation:x,fetchMethod:k,fetchContext:S,noDeleteOnFetchRejection:j,noDeleteOnStaleGet:A}=e,{length:D,maxAge:E,stale:C}=e instanceof w?{}:e;if(0!==t&&!m(t))throw new TypeError("max option must be a nonnegative integer");const O=t?g(t):Array;if(!O)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=v,this.maxEntrySize=_||this.maxSize,this.sizeCalculation=x||D,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=k||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=S,!this.fetchMethod&&void 0!==S)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new O(t),this.prev=new O(t),this.head=0,this.tail=0,this.free=new y(t),this.initialFill=1,this.size=0,"function"==typeof u&&(this.dispose=u),"function"==typeof f?(this.disposeAfter=f,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!b,this.noDeleteOnFetchRejection=!!j,0!==this.maxEntrySize){if(0!==this.maxSize&&!m(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!m(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!s||!!C,this.noDeleteOnStaleGet=!!A,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=m(n)||0===n?n:1,this.ttlAutopurge=!!i,this.ttl=r||E||0,this.ttl){if(!m(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";if(p(e)){c.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";h(t,"UnboundedCacheWarning",e,w)}}C&&l("stale","allowStale"),E&&l("maxAge","ttl"),D&&l("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new v(this.max),this.starts=new v(this.max),this.setItemTTL=(e,t,r=n.now())=>{if(this.starts[e]=0!==t?r:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const r=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);r.unref&&r.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?n.now():0};let e=0;const t=()=>{const t=n.now();if(this.ttlResolution>0){e=t;const r=setTimeout(()=>e=0,this.ttlResolution);r.unref&&r.unref()}return t};this.getRemainingTTL=r=>{const n=this.keyMap.get(r);return void 0===n?0:0===this.ttls[n]||0===this.starts[n]?1/0:this.starts[n]+this.ttls[n]-(e||t())},this.isStale=r=>0!==this.ttls[r]&&0!==this.starts[r]&&(e||t())-this.starts[r]>this.ttls[r]}updateItemAge(e){}setItemTTL(e,t,r){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new v(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,r,n)=>{if(this.isBackgroundFetch(t))return 0;if(!m(r)){if(!n)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!m(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t)=>{if(this.sizes[e]=t,this.maxSize){const t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e]}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,r,n){if(r||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const r of this.indexes())if(e(this.valList[r],this.keyList[r],this))return this.get(this.keyList[r],t)}forEach(e,t=this){for(const r of this.indexes())e.call(t,this.valList[r],this.keyList[r],this)}rforEach(e,t=this){for(const r of this.rindexes())e.call(t,this.valList[r],this.keyList[r],this)}get prune(){return f("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes({allowStale:!0})){const r=this.keyList[t],i=this.valList[t],o=this.isBackgroundFetch(i)?i.__staleWhileFetching:i,a={value:o};if(this.ttls){a.ttl=this.ttls[t];const e=n.now()-this.starts[t];a.start=Math.floor(Date.now()-e)}this.sizes&&(a.size=this.sizes[t]),e.unshift([r,a])}return e}load(e){this.clear();for(const[t,r]of e){if(r.start){const e=Date.now()-r.start;r.start=n.now()-e}this.set(t,r.value,r)}}dispose(e,t,r){}set(e,t,{ttl:r=this.ttl,start:n,noDisposeOnSet:i=this.noDisposeOnSet,size:o=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:s=this.noUpdateTTL}={}){if(o=this.requireSize(e,t,o,a),this.maxEntrySize&&o>this.maxEntrySize)return this.delete(e),this;let u=0===this.size?void 0:this.keyMap.get(e);if(void 0===u)u=this.newIndex(),this.keyList[u]=e,this.valList[u]=t,this.keyMap.set(e,u),this.next[this.tail]=u,this.prev[u]=this.tail,this.tail=u,this.size++,this.addItemSize(u,o),s=!1;else{const r=this.valList[u];t!==r&&(this.isBackgroundFetch(r)?r.__abortController.abort():i||(this.dispose(r,e,"set"),this.disposeAfter&&this.disposed.push([r,e,"set"])),this.removeItemSize(u),this.valList[u]=t,this.addItemSize(u,o)),this.moveToTail(u)}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),s||this.setItemTTL(u,r,n),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,r=this.keyList[t],n=this.valList[t];return this.isBackgroundFetch(n)?n.__abortController.abort():(this.dispose(n,r,"evict"),this.disposeAfter&&this.disposed.push([n,r,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(r),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const r=this.keyMap.get(e);return void 0!==r&&!this.isStale(r)&&(t&&this.updateItemAge(r),!0)}peek(e,{allowStale:t=this.allowStale}={}){const r=this.keyMap.get(e);if(void 0!==r&&(t||!this.isStale(r))){const e=this.valList[r];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,r,n){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const a=new o,s={signal:a.signal,options:r,context:n},u=t=>(a.signal.aborted||this.set(e,t,s.options),t),c=n=>{if(this.valList[t]===f){const n=!r.noDeleteOnFetchRejection||void 0===f.__staleWhileFetching;n?this.delete(e):this.valList[t]=f.__staleWhileFetching}if(f.__returned===f)throw n},l=t=>t(this.fetchMethod(e,i,s)),f=new Promise(l).then(u,c);return f.__abortController=a,f.__staleWhileFetching=i,f.__returned=null,void 0===t?(this.set(e,f,s.options),t=this.keyMap.get(e)):this.valList[t]=f,f}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,fetchContext:l=this.fetchContext,forceRefresh:f=!1}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:n});const d={allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:n,ttl:i,noDisposeOnSet:o,size:a,sizeCalculation:s,noUpdateTTL:u,noDeleteOnFetchRejection:c};let h=this.keyMap.get(e);if(void 0===h){const t=this.backgroundFetch(e,h,d,l);return t.__returned=t}{const n=this.valList[h];if(this.isBackgroundFetch(n))return t&&void 0!==n.__staleWhileFetching?n.__staleWhileFetching:n.__returned=n;if(!f&&!this.isStale(h))return this.moveToTail(h),r&&this.updateItemAge(h),n;const i=this.backgroundFetch(e,h,d,l);return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i.__returned=i}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet}={}){const i=this.keyMap.get(e);if(void 0!==i){const o=this.valList[i],a=this.isBackgroundFetch(o);if(this.isStale(i))return a?t?o.__staleWhileFetching:void 0:(n||this.delete(e),t?o:void 0);if(a)return;return this.moveToTail(i),r&&this.updateItemAge(i),o}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return f("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const r=this.keyMap.get(e);if(void 0!==r)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(r);const t=this.valList[r];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const r=this.keyList[e];this.dispose(t,r,"delete"),this.disposeAfter&&this.disposed.push([t,r,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return f("reset","clear"),this.clear}get length(){return d("length","size"),this.size}static get AbortController(){return o}static get AbortSignal(){return u}}e.exports=w}}}}},tslib:{"package.json":function e(t,r,e){e.exports={name:"tslib",version:"2.3.1",main:"tslib.js",module:"tslib.es6.js"}},"tslib.js":function e(t,r,e){ +if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var r in t)if(void 0!==e.style[r])return{end:t[r]};return!1}e.fn.emulateTransitionEnd=function(t){var r=!1,n=this,i;return e(this).one("bsTransitionEnd",(function(){r=!0})),setTimeout((function(){r||e(n).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',r=function(r){e(r).on("click",t,this.close)};function n(t){return this.each((function(){var n=e(this),i=n.data("bs.alert");i||n.data("bs.alert",i=new r(this)),"string"==typeof t&&i[t].call(n)}))}r.VERSION="3.4.1",r.TRANSITION_DURATION=150,r.prototype.close=function(t){var n=e(this),i=n.attr("data-target");i||(i=(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var o=e(document).find(i);function a(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=n.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",a).emulateTransitionEnd(r.TRANSITION_DURATION):a())};var i=e.fn.alert;e.fn.alert=n,e.fn.alert.Constructor=r,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,r.prototype.close)}(jQuery),function(e){"use strict";var t=function(r,n){this.$element=e(r),this.options=e.extend({},t.DEFAULTS,n),this.isLoading=!1};function r(r){return this.each((function(){var n=e(this),i=n.data("bs.button"),o="object"==typeof r&&r;i||n.data("bs.button",i=new t(this,o)),"toggle"==r?i.toggle():r&&i.setState(r)}))}t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var r="disabled",n=this.$element,i=n.is("input")?"val":"html",o=n.data();t+="Text",null==o.resetText&&n.data("resetText",n[i]()),setTimeout(e.proxy((function(){n[i](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(r).attr(r,r).prop(r,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(r).removeAttr(r).prop(r,!1))}),this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var r=this.$element.find("input");"radio"==r.prop("type")?(r.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==r.prop("type")&&(r.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),r.prop("checked",this.$element.hasClass("active")),e&&r.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=r,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var n=e(t.target).closest(".btn");r.call(n,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),n.is("input,button")?n.trigger("focus"):n.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(jQuery),function(e){"use strict";var t=function(t,r){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=r,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function r(r){return this.each((function(){var n=e(this),i=n.data("bs.carousel"),o=e.extend({},t.DEFAULTS,n.data(),"object"==typeof r&&r),a="string"==typeof r?r:o.slide;i||n.data("bs.carousel",i=new t(this,o)),"number"==typeof r?i.to(r):a?i[a]():o.interval&&i.pause().cycle()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var r=this.getItemIndex(t),n;if(("prev"==e&&0===r||"next"==e&&r==this.$items.length-1)&&!this.options.wrap)return t;var i,o=(r+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(o)},t.prototype.to=function(e){var t=this,r=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):r==e?this.pause().cycle():this.slide(e>r?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(r,n){var i=this.$element.find(".item.active"),o=n||this.getItemForDirection(r,i),a=this.interval,s="next"==r?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var c=o[0],l=e.Event("slide.bs.carousel",{relatedTarget:c,direction:s});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var f=e(this.$indicators.children()[this.getItemIndex(o)]);f&&f.addClass("active")}var d=e.Event("slid.bs.carousel",{relatedTarget:c,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(r),"object"==typeof o&&o.length&&o[0].offsetWidth,i.addClass(s),o.addClass(s),i.one("bsTransitionEnd",(function(){o.removeClass([r,s].join(" ")).addClass("active"),i.removeClass(["active",s].join(" ")),u.sliding=!1,setTimeout((function(){u.$element.trigger(d)}),0)})).emulateTransitionEnd(t.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),a&&this.cycle(),this}};var n=e.fn.carousel;e.fn.carousel=r,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this};var i=function(t){var n=e(this),i=n.attr("href");i&&(i=i.replace(/.*(?=#[^\s]+$)/,""));var o=n.attr("data-target")||i,a=e(document).find(o);if(a.hasClass("carousel")){var s=e.extend({},a.data(),n.data()),u=n.attr("data-slide-to");u&&(s.interval=!1),r.call(a,s),u&&a.data("bs.carousel").to(u),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var t=e(this);r.call(t,t.data())}))}))}(jQuery),function(e){"use strict";var t=function(r,n){this.$element=e(r),this.options=e.extend({},t.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+r.id+'"],[data-toggle="collapse"][data-target="#'+r.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function r(t){var r,n=t.attr("data-target")||(r=t.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(n)}function n(r){return this.each((function(){var n=e(this),i=n.data("bs.collapse"),o=e.extend({},t.DEFAULTS,n.data(),"object"==typeof r&&r);!i&&o.toggle&&/show|hide/.test(r)&&(o.toggle=!1),i||n.data("bs.collapse",i=new t(this,o)),"string"==typeof r&&i[r]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e;return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var r,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(r=i.data("bs.collapse"))&&r.transitioning)){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(n.call(i,"hide"),r||i.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var u=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[a](this.$element[0][u])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var r=e.Event("hide.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return i.call(this);this.$element[n](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,n){var i=e(n);this.addAriaAndCollapsedClass(r(i),i)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var r=e.hasClass("in");e.attr("aria-expanded",r),t.toggleClass("collapsed",!r).attr("aria-expanded",r)};var i=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var i=e(this);i.attr("data-target")||t.preventDefault();var o=r(i),a,s=o.data("bs.collapse")?"toggle":i.data();n.call(o,s)}))}(jQuery),function(e){"use strict";var t=".dropdown-backdrop",r='[data-toggle="dropdown"]',n=function(t){e(t).on("click.bs.dropdown",this.toggle)};function i(t){var r=t.attr("data-target");r||(r=(r=t.attr("href"))&&/#[A-Za-z]/.test(r)&&r.replace(/.*(?=#[^\s]*$)/,""));var n="#"!==r?e(document).find(r):null;return n&&n.length?n:t.parent()}function o(n){n&&3===n.which||(e(t).remove(),e(r).each((function(){var t=e(this),r=i(t),o={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(r[0],n.target)||(r.trigger(n=e.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(t.attr("aria-expanded","false"),r.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))})))}function a(t){return this.each((function(){var r=e(this),i=r.data("bs.dropdown");i||r.data("bs.dropdown",i=new n(this)),"string"==typeof t&&i[t].call(r)}))}n.VERSION="3.4.1",n.prototype.toggle=function(t){var r=e(this);if(!r.is(".disabled, :disabled")){var n=i(r),a=n.hasClass("open");if(o(),!a){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",o);var s={relatedTarget:this};if(n.trigger(t=e.Event("show.bs.dropdown",s)),t.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},n.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var n=e(this);if(t.preventDefault(),t.stopPropagation(),!n.is(".disabled, :disabled")){var o=i(n),a=o.hasClass("open");if(!a&&27!=t.which||a&&27==t.which)return 27==t.which&&o.find(r).trigger("focus"),n.trigger("click");var s=" li:not(.disabled):visible a",u=o.find(".dropdown-menu"+s);if(u.length){var c=u.index(t.target);38==t.which&&c>0&&c--,40==t.which&&cdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},c.prototype.init=function(t,r,n){if(this.enabled=!0,this.type=t,this.$element=e(r),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var a=i[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",u="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(r){var n=this.$element.data();for(var i in n)n.hasOwnProperty(i)&&-1!==e.inArray(i,t)&&delete n[i];return(r=e.extend({},this.getDefaults(),n,r)).delay&&"number"==typeof r.delay&&(r.delay={show:r.delay,hide:r.delay}),r.sanitize&&(r.template=u(r.template,r.whiteList,r.sanitizeFn)),r},c.prototype.getDelegateOptions=function(){var t={},r=this.getDefaults();return this._options&&e.each(this._options,(function(e,n){r[e]!=n&&(t[e]=n)})),t},c.prototype.enter=function(t){var r=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(r||(r=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,r)),t instanceof e.Event&&(r.inState["focusin"==t.type?"focus":"hover"]=!0),r.tip().hasClass("in")||"in"==r.hoverState)r.hoverState="in";else{if(clearTimeout(r.timeout),r.hoverState="in",!r.options.delay||!r.options.delay.show)return r.show();r.timeout=setTimeout((function(){"in"==r.hoverState&&r.show()}),r.options.delay.show)}},c.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},c.prototype.leave=function(t){var r=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(r||(r=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,r)),t instanceof e.Event&&(r.inState["focusout"==t.type?"focus":"hover"]=!1),!r.isInStateTrue()){if(clearTimeout(r.timeout),r.hoverState="out",!r.options.delay||!r.options.delay.hide)return r.hide();r.timeout=setTimeout((function(){"out"==r.hoverState&&r.hide()}),r.options.delay.hide)}},c.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var r=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!r)return;var n=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,u=s.test(a);u&&(a=a.replace(s,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?i.appendTo(e(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),f=i[0].offsetWidth,d=i[0].offsetHeight;if(u){var h=a,p=this.getPosition(this.$viewport);a="bottom"==a&&l.bottom+d>p.bottom?"top":"top"==a&&l.top-dp.width?"left":"left"==a&&l.left-fa.top+a.height&&(i.top=a.top+a.height-u)}else{var c=t.left-o,l=t.left+o+r;ca.right&&(i.left=a.left+a.width-l)}return i},c.prototype.getTitle=function(){var e,t=this.$element,r=this.options;return e=t.attr("data-original-title")||("function"==typeof r.title?r.title.call(t[0]):r.title)},c.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(t){var r=this;t&&((r=e(t.currentTarget).data("bs."+this.type))||(r=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,r))),t?(r.inState.click=!r.inState.click,r.isInStateTrue()?r.enter(r):r.leave(r)):r.tip().hasClass("in")?r.leave(r):r.enter(r)},c.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},c.prototype.sanitizeHtml=function(e){return u(e,this.options.whiteList,this.options.sanitizeFn)};var f=e.fn.tooltip;e.fn.tooltip=l,e.fn.tooltip.Constructor=c,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=f,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");function r(r){return this.each((function(){var n=e(this),i=n.data("bs.popover"),o="object"==typeof r&&r;!i&&/destroy|hide/.test(r)||(i||n.data("bs.popover",i=new t(this,o)),"string"==typeof r&&i[r]())}))}t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),r=this.getContent();if(this.options.html){var n=typeof r;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===n&&(r=this.sanitizeHtml(r))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===n?"html":"append"](r)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(r);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=e.fn.popover;e.fn.popover=r,e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(jQuery),function(e){"use strict";function t(r,n){this.$body=e(document.body),this.$scrollElement=e(r).is(document.body)?e(window):e(r),this.options=e.extend({},t.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function r(r){return this.each((function(){var n=e(this),i=n.data("bs.scrollspy"),o="object"==typeof r&&r;i||n.data("bs.scrollspy",i=new t(this,o)),"string"==typeof r&&i[r]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,r="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(r="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),i=t.data("target")||t.attr("href"),o=/^#./.test(i)&&e(i);return o&&o.length&&o.is(":visible")&&[[o[r]().top+n,i]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.getScrollHeight(),r=this.options.offset+t-this.$scrollElement.height(),n=this.offsets,i=this.targets,o=this.activeTarget,a;if(this.scrollHeight!=t&&this.refresh(),e>=r)return o!=(a=i[i.length-1])&&this.activate(a);if(o&&e=n[a]&&(void 0===n[a+1]||e .active"),a=i&&e.support.transition&&(o.length&&o.hasClass("fade")||!!n.find("> .fade").length);function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),r.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(r[0].offsetWidth,r.addClass("in")):r.removeClass("fade"),r.parent(".dropdown-menu").length&&r.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&a?o.one("bsTransitionEnd",s).emulateTransitionEnd(t.TRANSITION_DURATION):s(),o.removeClass("in")};var n=e.fn.tab;e.fn.tab=r,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=n,this};var i=function(t){t.preventDefault(),r.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(e){"use strict";var t=function(r,n){this.options=e.extend({},t.DEFAULTS,n);var i=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(r),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function r(r){return this.each((function(){var n=e(this),i=n.data("bs.affix"),o="object"==typeof r&&r;i||n.data("bs.affix",i=new t(this,o)),"string"==typeof r&&i[r]()}))}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,r,n){var i=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=r&&"top"==this.affixed)return i=e-n&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),r=this.$element.offset();return this.pinnedOffset=r.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var r=this.$element.height(),n=this.options.offset,i=n.top,o=n.bottom,a=Math.max(e(document).height(),e(document.body).height());"object"!=typeof n&&(o=i=n),"function"==typeof i&&(i=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var s=this.getState(a,r,i,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var u="affix"+(s?"-"+s:""),c=e.Event(u+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-r-o})}};var n=e.fn.affix;e.fn.affix=r,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var t=e(this),n=t.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),r.call(t,n)}))}))}(jQuery)}}}},fibers:{"package.json":function e(t,r,e){e.exports={name:"fibers",version:"5.0.3",main:"fibers"}},"fibers.js":function e(t,r,e,n,i){if(process.fiberLib)e.exports=process.fiberLib;else{var o=t("fs"),a=t("path"),s=t("detect-libc");Math.random();var u=a.join(i,"bin",process.platform+"-"+process.arch+"-"+process.versions.modules+("linux"===process.platform?"-"+s.family:""),"fibers");try{process.fiberLib=e.exports=t(u).Fiber}catch(l){throw console.error("## There is an issue with `node-fibers` ##\n`"+u+".node` is missing.\n\nTry running this to fix the issue: "+process.execPath+" "+i.replace(" ","\\ ")+"/build"),console.error(l.stack||l.message||l),new Error("Missing binary. See message above.")}c(e.exports)}function c(e){try{var t=process.binding("async_wrap"),r;if(t.asyncIdStackSize instanceof Function)r=t.asyncIdStackSize;else{if(void 0===t.constants.kStackLength)throw new Error("Couldn't figure out how to get async stack size");f=t.constants.kStackLength,r=function(){return t.async_hook_fields[f]}}var n=t.popAsyncContext||t.popAsyncIds,i=t.pushAsyncContext||t.pushAsyncIds,o,a;if(!n||!i)throw new Error("Push/pop do not exist");o=void 0===t.constants.kExecutionAsyncId?t.constants.kCurrentAsyncId:t.constants.kExecutionAsyncId,a=void 0===t.constants.kTriggerAsyncId?t.constants.kCurrentTriggerId:t.constants.kTriggerAsyncId;var s=t.async_id_fields||t.async_uid_fields;function u(){for(var e=r(),t=new Array(e);e>0;--e){var i=s[o];t[e-1]={asyncId:i,triggerId:s[a]},n(i)}return t}function c(e){for(var t=0;t0)i.changeLanguage(e,n);else if(0!=s[u]){s[u]=0;var c=new XMLHttpRequest;c.overrideMimeType("application/json"),c.open("GET",u,!1),c.send(null),200===c.status?s[u]=1:s[u]=-1,r.addResourceBundle(e,a,JSON.parse(c.response)||{}),i.changeLanguage(e,n)}};r.changeLanguage=p;var b=function(e,t,r){return i.format(e,t,r)};r.format=b;var m=function(){return i.languages};r.getLanguages=m;var g=function(e,t){return i.loadLanguages(e,t)};r.loadLanguages=g;var v=function(e,t){return i.loadNamespaces(e,t)};r.loadNamespaces=v;var y=function(e,t){return i.on(e,t)};r.on=y;var w=function(e,t){return i.off(e,t)};r.off=w,n.__exportStar(t("./i18n/i18n"),r),n.__exportStar(t("./i18n/i18n.app"),r),n.__exportStar(t("./translations"),r)},i18n:{"i18n.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.fallbackKeys=r.getObjectI18nTemplate=r.translationI18nObjects=r.addObjectsI18n=r.translationI18nObject=void 0;var n=t("../index"),i=t("underscore"),o=t("clone"),a="_",s="base",u="core",c="translation",l=function(e,t){var r={lng:t,ns:c};if((0,n.exists)(e,r))return(0,n._t)(e,r)},f=function(e){return"".concat(e,"__object")},d=function(e,t){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t)},h=function(e,t){var r=d(e,t);return"".concat(r).concat("_","inlineHelpText")},p=function(e,t){var r=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","group").concat("_").concat(r)},b=function(e,t,r){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t).concat("_","options").concat("_").concat(r)},m=function(e,t){return"".concat(e).concat("_","action").concat("_").concat(t)},g=function(e,t){return"".concat(e).concat("_","listview").concat("_").concat(t)},v=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},y=function(e,t,r){var n=f(t);return l(n,e)||r||""},w=function(e,t,r,n,i){var o=d(t,r),a=l(o,e);if(!a){var s=v(i);s&&"base"!=t&&"core"!=t&&(a=w(e,s,r,n,i))}return a||n||""},_=function(e,t,r,n,i){var o=h(t,r),a=l(o,e);if(!a){var s=v(i);s&&"base"!=t&&"core"!=t&&(a=_(e,s,r,n,i))}return a||n||""},x=function(e,t,r,n){var i=p(t,r);return l(i,e)||n||""},k=function(e,t,r,n,i,o){var a=b(t,r,n),s=l(a,e);if(!s){var u=v(o);u&&"base"!=t&&"core"!=t&&(s=k(e,u,r,n,i,o))}return s||i||""},S=function(e,t,r,n,i){var o=m(t,r),a=l(o,e);if(!a){var s=v(i);s&&"base"!=t&&"core"!=t&&(a=S(e,s,r,n,i))}return a||n||""},j=function(e,t,r,n,i){var o=g(t,r),a=l(o,e);if(!a){var s=v(i);s&&"base"!=t&&"core"!=t&&(a=j(e,s,r,n,i))}return a||n||""},A=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},D=function(e){i.forEach(e.fields,(function(e,t){var r=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;return e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return r.push(A(e))}))):r.push(A(e))})),e.options=r}catch(n){console.error("convertFieldsOptions error: ",e.options,n)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return r.push({label:e,value:t})})),e.options=r)}))},E=function(e,t,r){r.label=y(e,t,r.label),i.each(r.fields,(function(n,o){if(n.label=w(e,t,o,n.label,r.datasource),n.inlineHelpText&&(n.inlineHelpText=_(e,t,o,n.inlineHelpText,r.datasource)),n.group&&(n.group=x(e,t,n.group,n.group)),n.options){var a=[];i.each(n.options,(function(n){if(i.has(n,"value")){var s=k(e,t,o,n.value,n.label,r.datasource);a.push(i.extend({},n,{label:s}))}else a.push(n)})),n.options=a}})),i.each(r.actions,(function(n,i){n.label=S(e,t,i,n.label,r.datasource)})),i.each(r.list_views,(function(n,i){n.label=j(e,t,i,n.label,r.datasource)}))};r.translationI18nObject=E;var C=function(e){i.each(e,(function(e){(0,n.addResourceBundle)(e.lng,c,e.data,!0,!0)}))};r.addObjectsI18n=C;var O=function(e,t){i.each(t,(function(t,n){(0,r.translationI18nObject)(e,n,t)}))};r.translationI18nObjects=O;var T=function(e,t,r){var n=o(r);D(n);var a={};return a[f(t)]=y(e,t,n.label),i.each(n.fields,(function(r,o){a[d(t,o)]=w(e,t,o,r.label),r.inlineHelpText&&(a[h(t,o)]=_(e,t,o,r.inlineHelpText,n.datasource)),r.group&&(a[p(t,r.group)]=x(e,t,r.group,r.group)),r.options&&i.each(r.options,(function(r){i.has(r,"value")&&(a[b(t,o,r.value)]=k(e,t,o,r.value,r.label))}))})),i.each(n.actions,(function(r,n){a[m(t,n)]=S(e,t,n,r.label)})),i.each(n.list_views,(function(r,n){a[g(t,n)]=j(e,t,n,r.label)})),a};r.getObjectI18nTemplate=T,r.fallbackKeys={getObjectLabelKey:f,getObjectFieldLabelKey:d,getObjectFieldInlineHelpTextLabelKey:h,getObjectFieldGroupKey:p,getObjectFieldOptionsLabelKey:b,getObjectActionLabelKey:m,getObjectListviewLabelKey:g}},"i18n.app.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.appFallbackKeys=r.getAppI18nTemplate=r.translationI18nApps=r.translationI18nMenus=void 0;var n=t("../index"),i=t("underscore"),o=t("clone"),a="translation",s="_",u=function(e,t){var r={lng:t,ns:a};if((0,n.exists)(e,r))return(0,n._t)(e,r)},c=function(e){return"app".concat("_").concat(e).concat("_","name")},l=function(e){return"app".concat("_").concat(e).concat("_","description")},f=function(e,t){var r=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","tab_group").concat("_").concat(r)},d=function(e){return"menu".concat("_").concat(e)},h=function(e){return"tab".concat("_").concat(e)},p=function(e,t,r){var n=c(t);return u(n,e)||r||""},b=function(e,t,r){var n=l(t);return u(n,e)||r||""},m=function(e,t,r){var n=d(t);return u(n,e)||r||""},g=function(e,t,n){n.label=p(e,t,n.label||n.name),n.description=b(e,t,n.description),(0,r.translationI18nMenus)(e,n.admin_menus)},v=function(e,t){i.each(t,(function(t){var r=m(e,t._id,t.label||t.name);t.label=r,t.name=r}))};r.translationI18nMenus=v;var y=function(e,t){i.each(t,(function(t,r){g(e,r,t)}))};r.translationI18nApps=y;var w=function(e,t,r){var n=o(r),a={};return a[c(t)]=p(e,t,n.label||n.name),a[l(t)]=b(e,t,n.description),i.each(n.admin_menus,(function(t){a[d(t._id)]=m(e,t._id,t.label||t.name)})),a};r.getAppI18nTemplate=w,r.appFallbackKeys={getAppLabelKey:c,getAppDescriptionKey:l,getAppGroupKey:f,getMenuLabelKey:d,getTabKey:h}}},translations:{"index.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SteedosTranslationPrefixKeys=r.convertObject=void 0;var n=t("tslib"),i=t("underscore");n.__exportStar(t("./objectTranslation"),r),n.__exportStar(t("./translation"),r),n.__exportStar(t("./templates/objectTranslation"),r),n.__exportStar(t("./templates/translation"),r);var o=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},a=function(e){i.forEach(e.fields,(function(e,t){var r=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return r.push(o(e))}))):r.push(o(e))})),e.options=r}catch(n){console.error("convertFieldsOptions error: ",e.options,n)}else if(e.options&&i.isArray(e.options))try{i.forEach(e.options,(function(e){i.isString(e)?r.push(o(e)):r.push(e)})),e.options=r}catch(n){console.error("Creator.convertFieldsOptions",e.options,n)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return r.push({label:e,value:t})})),e.options=r)}))},s;r.convertObject=a,function(e){e.Object="CustomObject",e.Field="CustomField",e.Action="CustomAction",e.Listview="CustomListview",e.Permission="CustomPermission",e.ValidationRule="CustomValidationRule",e.Application="CustomApplication",e.Tab="CustomTabs",e.Permissionset="CustomPermissionset",e.Profile="CustomProfile",e.Report="CustomReport",e.Workflow="Workflow",e.Layout="Layout",e.Client="Client",e.Server="Server",e.Function="Function",e.Router="Router",e.Trigger="Trigger"}(s=r.SteedosTranslationPrefixKeys||(r.SteedosTranslationPrefixKeys={}))},"objectTranslation.js":function e(t,r,e,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.addObjectsTranslation=r.getObjectTranslationTemplate=r.translationObjects=r.translationObject=r.translationObjectLabel=void 0;var i=t("underscore"),o=t("./"),a=t("../index"),s=t("./index"),u=t("../i18n/i18n"),c=t("lodash"),l=t("crypto"),f,d=(0,t("@steedos/cachers").getCacher)("lru.translations.objects");function h(e){var t;return l.createHash("md5").update(e).digest("hex")}var p=function(e,t){return"".concat(e,"_").concat(t.name,"_").concat(h(JSON.stringify(t)))},b=t("clone"),m=".",g="base",v="core",y="translation",w="object",_="field",x="listview",k="action",S=function(e,t){var r={lng:t,ns:y,keySeparator:!1};if((0,a.exists)(e,r))return(0,a._t)(e,r)},j=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},A=function(e){switch(e){case"object":return o.SteedosTranslationPrefixKeys.Object;case"field":return o.SteedosTranslationPrefixKeys.Field;case"listview":return o.SteedosTranslationPrefixKeys.Listview;case"action":return o.SteedosTranslationPrefixKeys.Action;default:return"CustomLabels"}},D=function(e){var t;return[A(),e].join(".")},E=function(e){var t;return[A("object"),e,"label"].join(".")},C=function(e){var t;return[A("object"),e,"description"].join(".")},O=function(e,t){var r;return t&&(t=t.replace(/\./g,"_")),[A("field"),e,t,"label"].join(".")},T=function(e,t){var r;return t&&(t=t.replace(/\./g,"_")),[A("field"),e,t,"help"].join(".")},M=function(e,t){var r;return t&&(t=t.replace(/\./g,"_")),[A("field"),e,t,"description"].join(".")},B=function(e,t){var r=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_"),n;return[A("field"),e,"group",r].join(".")},I=function(e,t,r){var n;return t&&(t=t.replace(/\./g,"_")),[A("field"),e,t,"options",r].join(".")},R=function(e,t){var r;return[A("action"),e,t].join(".")},N=function(e,t){var r;return[A("listview"),e,t].join(".")},F=function(e,t,r){var n,i=[E(t)],o=u.fallbackKeys.getObjectLabelKey(t);return o&&i.push(o),S(i,e)||r||""};r.translationObjectLabel=F;var P=function(e,t,r){var n=C(t);return S(n,e)||r||""},L=function(e,t,r,n,i,o){var a,s=[O(t,r)],c=u.fallbackKeys.getObjectFieldLabelKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=L(e,f,r,n,i))}return l||n||""},q=function(e,t,r,n,i,o){var a,s=[T(t,r)],c=u.fallbackKeys.getObjectFieldInlineHelpTextLabelKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=q(e,f,r,n,i))}return l||n||""},z=function(e,t,r,n,i,o){var a=M(t,r),s,u=S([a],e);if(1!=o&&!u){var c=j(i);c&&"base"!=t&&"core"!=t&&(u=z(e,c,r,n,i))}return u||n||""},U=function(e,t,r,n,i,o){var a,s=[B(t,r)],c=u.fallbackKeys.getObjectFieldGroupKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=U(e,f,r,n,i))}return l||n||""},H=function(e,t,r,n,i,o,a){var s,c=[I(t,r,n)],l=u.fallbackKeys.getObjectFieldOptionsLabelKey(t,r,n);l&&c.push(l);var f=S(c,e);if(1!=a&&!f){var d=j(o);d&&"base"!=t&&"core"!=t&&(f=H(e,d,r,n,i,o))}return f||i||""},W=function(e,t,r,n,i,o){var a,s=[R(t,r)],c=u.fallbackKeys.getObjectActionLabelKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=W(e,f,r,n,i))}return l||n||""},$=function(e,t,r,n,i,o){var a,s=[N(t,r)],c=u.fallbackKeys.getObjectListviewLabelKey(t,r);c&&s.push(c);var l=S(s,e);if(1!=o&&!l){var f=j(i);f&&"base"!=t&&"core"!=t&&(l=$(e,f,r,n,i))}return l||n||""},Y=function(e,t,n,o,a){void 0===a&&(a=!1);var u=p(e,n);"test_obj_layout1"===t&&console.log("translationObject",t,u);var l=d.get(u);if(l)return Object.assign(n,(0,c.cloneDeep)(l));o&&(0,s.convertObject)(n),n.label=(0,r.translationObjectLabel)(e,t,n.label),n.description=P(e,t,n.description),i.each(n.fields,(function(r,o){if(r.label=L(e,t,o,r.label,n.datasource,a),r.inlineHelpText&&(r.inlineHelpText=q(e,t,o,r.inlineHelpText,n.datasource,a)),r.group&&(r.group=U(e,t,r.group,r.group,n.datasource,a)),r.options){var s=[];i.each(r.options,(function(r){if(i.has(r,"value")){var u=H(e,t,o,r.value,r.label,n.datasource,a);s.push(i.extend({},r,{label:u}))}else s.push(r)})),r.options=s}})),i.each(n.actions,(function(r,i){r.label=W(e,t,i,r.label,n.datasource,a)})),i.each(n.list_views,(function(r,i){r.label=$(e,t,i,r.label,n.datasource,a)})),d.set(u,(0,c.cloneDeep)(n))};r.translationObject=Y;var V=function(e,t){i.each(t,(function(t,n){(0,r.translationObject)(e,n,t)}))};r.translationObjects=V;var K=function(e,t,n){var o=b(n);(0,s.convertObject)(o);var a={};return a[E(t)]=(0,r.translationObjectLabel)(e,t,o.label),a[C(t)]=P(e,t,o.description),i.each(o.fields,(function(r,n){a[O(t,n)]=L(e,t,n,r.label),r.inlineHelpText&&(a[T(t,n)]=q(e,t,n,r.inlineHelpText,o.datasource)),r.description&&(a[M(t,n)]=z(e,t,n,r.description,o.datasource)),r.group&&(a[B(t,r.group)]=U(e,t,r.group,r.group,o.datasource)),r.options&&i.each(r.options,(function(r){i.has(r,"value")&&(a[I(t,n,r.value)]=H(e,t,n,r.value,r.label))}))})),i.each(o.actions,(function(r,n){a[R(t,n)]=W(e,t,n,r.label)})),i.each(o.list_views,(function(r,n){a[N(t,n)]=$(e,t,n,r.label)})),a};function G(e,t){var r=b(e);(0,s.convertObject)(r);var n={},o=r.name;return o||console.error("Error: Invalid objectTranslation:"+t),n[E(o)]=r.label,n[C(o)]=r.description,i.each(r.fields,(function(e,t){n[O(o,t)]=e.label,e.help&&(n[T(o,t)]=e.help),e.description&&(n[M(o,t)]=e.description),e.options&&i.each(e.options,(function(e){i.has(e,"value")&&(n[I(o,t,e.value)]=e.label)}))})),i.each(r.groups,(function(e,t){n[B(o,t)]=e})),i.each(r.actions,(function(e,t){n[R(o,t)]=e.label})),i.each(r.listviews,(function(e,t){n[N(o,t)]=e.label})),i.each(r.CustomLabels,(function(e,t){n[D(t)]=e})),n}r.getObjectTranslationTemplate=K;var X=function(e){i.each(e,(function(e){var t=G(e.data,e.__filename);(0,a.addResourceBundle)(e.lng,y,t,!0,!0)}))};r.addObjectsTranslation=X},"translation.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.addTranslations=r.convertTranslation=r.convertTranslationData=r.getAppTranslationTemplate=r.translationApps=r.translationMenus=r.translationApp=r.translationTabLabel=r.translationTabGroup=void 0;var n=t("../index"),i=t("underscore"),o=t("./"),a=t("../i18n/i18n.app"),s=t("clone"),u="translation",c=".",l="app",f="menu",d="tab",h=function(e){switch(e){case"app":return o.SteedosTranslationPrefixKeys.Application;case"tab":return o.SteedosTranslationPrefixKeys.Tab;default:return"CustomLabels"}},p=function(e){var t;return[h(),e].join(".")},b=function(e,t){var r={lng:t,ns:u,keySeparator:!1};if((0,n.exists)(e,r))return(0,n._t)(e,r)},m=function(e){var t;return[h("app"),e,"name"].join(".")},g=function(e){var t;return[h("app"),e,"description"].join(".")},v=function(e,t){var r,n;return[h("app"),e,"groups",t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_")].join(".")},y=function(e){var t;return[h("menu"),"menu_".concat(e)].join(".")},w=function(e){var t;return[h("tab"),e].join(".")},_=function(e,t,r){var n,i=[m(t)],o=a.appFallbackKeys.getAppLabelKey(t);return o&&i.push(o),b(i,e)||r||""},x=function(e,t,r){var n,i=[g(t)],o=a.appFallbackKeys.getAppDescriptionKey(t);return o&&i.push(o),b(i,e)||r||""},k=function(e,t,r,n){var i,o=[v(t,r)],s=a.appFallbackKeys.getAppGroupKey(t,r);return s&&o.push(s),b(o,e)||n||""};r.translationTabGroup=k;var S=function(e,t,r){var n,i=[y(t)],o=a.appFallbackKeys.getMenuLabelKey(t);return o&&i.push(o),b(i,e)||r||""},j=function(e,t,r){var n,i=[w(t)],o=a.appFallbackKeys.getTabKey(t);return o&&i.push(o),b(i,e)||r||""};r.translationTabLabel=j;var A=function(e,t,n){n.label=_(e,t,n.label||n.name),n.description=x(e,t,n.description),i.each(n.tab_groups,(function(i,o){n.tab_groups[o].id=i.id||i.group_name,n.tab_groups[o].group_name=(0,r.translationTabGroup)(e,t,i.group_name,i.group_name)})),(0,r.translationMenus)(e,n.admin_menus)};r.translationApp=A;var D=function(e,t){i.each(t,(function(t){var r=S(e,t._id,t.label||t.name);t.label=r,t.name=r}))};r.translationMenus=D;var E=function(e,t){i.each(t,(function(t,n){(0,r.translationApp)(e,n,t)}))};r.translationApps=E;var C=function(e,t,r){var n=s(r),o={};return o[m(t)]=_(e,t,n.label||n.name),o[g(t)]=x(e,t,n.description),i.each(n.admin_menus,(function(t){o[y(t._id)]=S(e,t._id,t.label||t.name)})),o};r.getAppTranslationTemplate=C;var O=function(e,t,r){i.isArray(r)?i.each(r,(function(e){O(e,"",e)})):r&&i.each(i.keys(r),(function(n){var o=t?"".concat(t,".").concat(n):n,a=r[n];"object"==typeof a?i.isArray(a)?i.each(a,(function(e){O(e,o,a)})):O(e,o,a):e[o]=a}))};function T(e){for(var t in e)"object"==typeof e[t]&&O(e,t,e[t]);return e}r.convertTranslationData=T;var M=function(e){var t=s(e),r={};return i.each(t.CustomApplications,(function(e,t){r[m(t)]=e.name,r[g(t)]=e.description,i.each(e.groups,(function(e,n){r[v(t,n)]=e}))})),i.each(t.CustomTabs,(function(e,t){r[w(t)]=e})),i.each(t.CustomLabels,(function(e,t){var n;if("simpleschema"!=t&&i.isObject(e)){var o=T(((n={})[t]=e,n));i.each(o,(function(e,t){i.isObject(e)||(r[p(t)]=e)}))}else r[p(t)]=e})),r};r.convertTranslation=M;var B=function(e){i.each(e,(function(e){var t=(0,r.convertTranslation)(e.data);(0,n.addResourceBundle)(e.lng,u,t,!0,!0)}))};r.addTranslations=B},templates:{"objectTranslation.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getObjectMetadataTranslationTemplate=void 0;var n=t("underscore"),i=t("../index"),o=t("clone");function a(e,t){var r={};return n.each(e,(function(e){r[e]="help"===e?t.inlineHelpText||"":t[e]||""})),r}function s(e){return a(["label","description"],e)}function u(e){switch(e.type){case"select":return a(["label","help","options","description"],e);default:return a(["label","help","description"],e)}}function c(e){return a(["label"],e)}function l(e){return a(["label"],e)}function f(e){var t={};return n.each(e,(function(e,r){t[r]=u(e)})),t}function d(e){var t={};return n.each(e,(function(e,r){t[r]=l(e)})),t}function h(e){var t={};return n.each(e,(function(e,r){t[r]=c(e)})),t}function p(e,t){var r={};return n.each(e,(function(e,n){if(e.group){var i=e.group.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");r[i]=t[n].group}})),r}var b=function(e,t,r,a){void 0===a&&(a=!1);var u=o(r);1!=a&&(0,i.translationObject)(e,t,u,!0,a);var c=Object.assign({},s(u));c=Object.assign({},c,{fields:f(u.fields)});var l=p(r.fields,u.fields);n.isEmpty(l)||(c=Object.assign({},c,{groups:l}));var b=h(u.list_views);n.isEmpty(b)||(c=Object.assign({},c,{listviews:b}));var m=d(u.actions);return n.isEmpty(m)||(c=Object.assign({},c,{actions:m})),Object.assign({name:t},c)};r.getObjectMetadataTranslationTemplate=b},"translation.js":function e(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getAppMetadataTranslationTemplate=void 0;var n=t("underscore"),i=t("../index"),o=t("clone");function a(e,t){var r={};return n.each(e,(function(e){r[e]=t[e]||""})),r}function s(e){var t={groups:{}};return e?(n.each(e,(function(e){var r=e.group_name.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t.groups[r]=e.group_name})),t):{}}var u=function(e){return Object.assign({},a(["name","description"],e),s(e.tab_groups))},c=function(e){var t={};return n.each(e,(function(e,r){t[r]=r})),t},l=function(e){var t={};return n.each(e,(function(e){var r=e.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t[r]=e})),t},f=function(e,t,r){var n,a=o(r);(0,i.translationApp)(e,t,a);var s={},f;return a.tab_items?s=c(a.tab_items):a.tabs&&(s=l(a.tabs)),Object.assign({},{CustomApplications:(n={},n[t]=u(a),n)},{CustomTabs:s})};r.getAppMetadataTranslationTemplate=f}}}},node_modules:{i18next:{"package.json":function e(t,r,e){e.exports={name:"i18next",version:"19.9.2",main:"./dist/cjs/i18next.js",module:"./dist/esm/i18next.js"}},dist:{cjs:{"i18next.js":function e(t,r,e){"use strict";var n=t("@babel/runtime/helpers/typeof"),i=t("@babel/runtime/helpers/objectSpread"),o=t("@babel/runtime/helpers/classCallCheck"),a=t("@babel/runtime/helpers/createClass"),s=t("@babel/runtime/helpers/possibleConstructorReturn"),u=t("@babel/runtime/helpers/getPrototypeOf"),c=t("@babel/runtime/helpers/assertThisInitialized"),l=t("@babel/runtime/helpers/inherits");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=f(n),h=f(i),p=f(o),b=f(a),m=f(s),g=f(u),v=f(c),y=f(l),w={type:"logger",log:function e(t){this.output("log",t)},warn:function e(t){this.output("warn",t)},error:function e(t){this.output("error",t)},output:function e(t,r){console&&console[t]&&console[t].apply(console,r)}},_,x=new(function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p.default(this,e),this.init(t,r)}return b.default(e,[{key:"init",value:function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||w,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function e(t){this.debug=t}},{key:"log",value:function e(){for(var t=arguments.length,r=new Array(t),n=0;n1?r-1:0),i=1;i-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:n(o.shift())}}function E(e,t,r){var n=D(e,t,Object),i,o;n.obj[n.k]=r}function C(e,t,r,n){var i=D(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],n&&(o[a]=o[a].concat(r)),n||o[a].push(r)}function O(e,t){var r=D(e,t),n=r.obj,i=r.k;if(n)return n[i]}function T(e,t,r){var n=O(e,r);return void 0!==n?n:O(t,r)}function M(e,t,r){for(var n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?"string"==typeof e[n]||e[n]instanceof String||"string"==typeof t[n]||t[n]instanceof String?r&&(e[n]=t[n]):M(e[n],t[n],r):e[n]=t[n]);return e}function B(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var I={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function R(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return I[e]})):e}var N="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,F=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return p.default(this,t),r=m.default(this,g.default(t).call(this)),N&&k.call(v.default(r)),r.data=e||{},r.options=n,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r}return y.default(t,e),b.default(t,[{key:"addNamespaces",value:function e(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function e(t){var r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function e(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[t,r];return n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(a=t.split(".")),O(this.data,a)}},{key:"addResource",value:function e(t,r,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var s=[t,r];n&&(s=s.concat(a?n.split(a):n)),t.indexOf(".")>-1&&(i=r,r=(s=t.split("."))[1]),this.addNamespaces(r),E(this.data,s,i),o.silent||this.emit("added",t,r,n,i)}},{key:"addResources",value:function e(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(t,r,o,n[o],{silent:!0});i.silent||this.emit("added",t,r,n)}},{key:"addResourceBundle",value:function e(t,r,n,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[t,r];t.indexOf(".")>-1&&(i=n,n=r,r=(s=t.split("."))[1]),this.addNamespaces(r);var u=O(this.data,s)||{};i?M(u,n,o):u=h.default({},u,n),E(this.data,s,u),a.silent||this.emit("added",t,r,n)}},{key:"removeResourceBundle",value:function e(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}},{key:"hasResourceBundle",value:function e(t,r){return void 0!==this.getResource(t,r)}},{key:"getResourceBundle",value:function e(t,r){return r||(r=this.options.defaultNS),"v1"===this.options.compatibilityAPI?h.default({},{},this.getResource(t,r)):this.getResource(t,r)}},{key:"getDataByLanguage",value:function e(t){return this.data[t]}},{key:"toJSON",value:function e(){return this.data}}]),t}(k),P={processors:{},addPostProcessor:function e(t){this.processors[t.name]=t},handle:function e(t,r,n,i,o){var a=this;return t.forEach((function(e){a.processors[e]&&(r=a.processors[e].process(r,n,i,o))})),r}},L={},q=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p.default(this,t),r=m.default(this,g.default(t).call(this)),N&&k.call(v.default(r)),A(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,v.default(r)),r.options=n,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=x.create("translator"),r}return y.default(t,e),b.default(t,[{key:"changeLanguage",value:function e(t){t&&(this.language=t)}},{key:"exists",value:function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(t,r);return n&&void 0!==n.res}},{key:"extractFromKey",value:function e(t,r){var n=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=r.ns||this.options.defaultNS;if(n&&t.indexOf(n)>-1){var a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:o};var s=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),t=s.join(i)}return"string"==typeof o&&(o=[o]),{key:t,namespaces:o}}},{key:"translate",value:function e(r,n,i){var o=this;if("object"!==d.default(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==r)return"";Array.isArray(r)||(r=[String(r)]);var a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(r[r.length-1],n),u=s.key,c=s.namespaces,l=c[c.length-1],f=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(p){var b=n.nsSeparator||this.options.nsSeparator;return l+b+u}return u}var m=this.resolve(r,n),g=m&&m.res,v=m&&m.usedKey||u,y=m&&m.exactUsedKey||u,w=Object.prototype.toString.apply(g),_=["[object Number]","[object Function]","[object RegExp]"],x=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,S="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(k&&g&&S&&_.indexOf(w)<0&&("string"!=typeof x||"[object Array]"!==w)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,g,n):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(a){var j="[object Array]"===w,A=j?[]:{},D=j?y:v;for(var E in g)if(Object.prototype.hasOwnProperty.call(g,E)){var C="".concat(D).concat(a).concat(E);A[E]=this.translate(C,h.default({},n,{joinArrays:!1,ns:c})),A[E]===C&&(A[E]=g[E])}g=A}}else if(k&&"string"==typeof x&&"[object Array]"===w)(g=g.join(x))&&(g=this.extendTranslation(g,r,n,i));else{var O=!1,T=!1,M=void 0!==n.count&&"string"!=typeof n.count,B=t.hasDefaultValue(n),I=M?this.pluralResolver.getSuffix(f,n.count):"",R=n["defaultValue".concat(I)]||n.defaultValue;!this.isValidLookup(g)&&B&&(O=!0,g=R),this.isValidLookup(g)||(T=!0,g=u);var N=B&&R!==g&&this.options.updateMissing;if(T||O||N){if(this.logger.log(N?"updateKey":"missingKey",f,l,u,N?R:g),a){var F=this.resolve(u,h.default({},n,{keySeparator:!1}));F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var P=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var q=0;q1&&void 0!==arguments[1]?arguments[1]:{},i,o,a,s,u;return"string"==typeof t&&(t=[t]),t.forEach((function(e){if(!r.isValidLookup(i)){var t=r.extractFromKey(e,n),c=t.key;o=c;var l=t.namespaces;r.options.fallbackNS&&(l=l.concat(r.options.fallbackNS));var f=void 0!==n.count&&"string"!=typeof n.count,d=void 0!==n.context&&"string"==typeof n.context&&""!==n.context,h=n.lngs?n.lngs:r.languageUtils.toResolveHierarchy(n.lng||r.language,n.fallbackLng);l.forEach((function(e){r.isValidLookup(i)||(u=e,!L["".concat(h[0],"-").concat(e)]&&r.utils&&r.utils.hasLoadedNamespace&&!r.utils.hasLoadedNamespace(u)&&(L["".concat(h[0],"-").concat(e)]=!0,r.logger.warn('key "'.concat(o,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(t){if(!r.isValidLookup(i)){s=t;var o=c,u=[o],l,h;if(r.i18nFormat&&r.i18nFormat.addLookupKeys)r.i18nFormat.addLookupKeys(u,c,t,e,n);else f&&(l=r.pluralResolver.getSuffix(t,n.count)),f&&d&&u.push(o+l),d&&u.push(o+="".concat(r.options.contextSeparator).concat(n.context)),f&&u.push(o+=l);for(;h=u.pop();)r.isValidLookup(i)||(a=h,i=r.getResource(t,e,h,n))}})))}))}})),{res:i,usedKey:o,exactUsedKey:a,usedLng:s,usedNS:u}}},{key:"isValidLookup",value:function e(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function e(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,i):this.resourceStore.getResource(t,r,n,i)}}],[{key:"hasDefaultValue",value:function e(t){var r="defaultValue";for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&void 0!==t[n])return!0;return!1}}]),t}(k);function z(e){return e.charAt(0).toUpperCase()+e.slice(1)}var U=function(){function e(t){p.default(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=x.create("languageUtils")}return b.default(e,[{key:"getScriptPartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return null;var r=t.split("-");return 2===r.length?null:(r.pop(),"x"===r[r.length-1].toLowerCase()?null:this.formatLanguageCode(r.join("-")))}},{key:"getLanguagePartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return t;var r=t.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function e(t){if("string"==typeof t&&t.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=z(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=z(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=z(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function e(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function e(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function e(t){var r=this,n;return t?(t.forEach((function(e){if(!n){var t=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(t)||(n=t)}})),!n&&this.options.supportedLngs&&t.forEach((function(e){if(!n){var t=r.getLanguagePartFromCode(e);if(r.isSupportedCode(t))return n=t;n=r.options.supportedLngs.find((function(e){if(0===e.indexOf(t))return e}))}})),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function e(t,r){if(!t)return[];if("function"==typeof t&&(t=t(r)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!r)return t.default||[];var n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function e(t,r){var n=this,i=this.getFallbackCodes(r||this.options.fallbackLng||[],t),o=[],a=function e(t){t&&(n.isSupportedCode(t)?o.push(t):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(t))):"string"==typeof t&&a(this.formatLanguageCode(t)),i.forEach((function(e){o.indexOf(e)<0&&a(n.formatLanguageCode(e))})),o}}]),e}(),H=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],W={1:function e(t){return Number(t>1)},2:function e(t){return Number(1!=t)},3:function e(t){return 0},4:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function e(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function e(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function e(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function e(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function e(t){return Number(t>=2)},10:function e(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function e(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function e(t){return Number(t%10!=1||t%100==11)},13:function e(t){return Number(0!==t)},14:function e(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function e(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function e(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function e(t){return Number(0==t?0:1==t?1:2)},19:function e(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function e(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function e(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function e(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function $(){var e={};return H.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:W[t.fc]}}))})),e}var Y=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p.default(this,e),this.languageUtils=t,this.options=r,this.logger=x.create("pluralResolver"),this.rules=$()}return b.default(e,[{key:"addRule",value:function e(t,r){this.rules[t]=r}},{key:"getRule",value:function e(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function e(t){var r=this.getRule(t);return r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function e(t,r){return this.getSuffixes(t).map((function(e){return r+e}))}},{key:"getSuffixes",value:function e(t){var r=this,n=this.getRule(t);return n?n.numbers.map((function(e){return r.getSuffix(t,e)})):[]}},{key:"getSuffix",value:function e(t,r){var n=this,i=this.getRule(t);if(i){var o=i.noAbs?i.plurals(r):i.plurals(Math.abs(r)),a=i.numbers[o];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===a?a="plural":1===a&&(a=""));var s=function e(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return"v1"===this.options.compatibilityJSON?1===a?"":"number"==typeof a?"_plural_".concat(a.toString()):s():"v2"===this.options.compatibilityJSON?s():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),V=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p.default(this,e),this.logger=x.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return b.default(e,[{key:"init",value:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:R,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?B(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?B(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?B(r.nestingPrefix):r.nestingPrefixEscaped||B("$t("),this.nestingSuffix=r.nestingSuffix?B(r.nestingSuffix):r.nestingSuffixEscaped||B(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=void 0!==r.alwaysFormat&&r.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function e(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function e(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function e(t,r,n,i){var o=this,a,s,u,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var f=function e(t){if(t.indexOf(o.formatSeparator)<0){var a=T(r,c,t);return o.alwaysFormat?o.format(a,void 0,n):a}var s=t.split(o.formatSeparator),u=s.shift().trim(),l=s.join(o.formatSeparator).trim();return o.format(T(r,c,u),l,n,i)};this.resetRegExp();var d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p;return[{regex:this.regexpUnescape,safeValue:function e(t){return l(t)}},{regex:this.regexp,safeValue:function e(t){return o.escapeValue?l(o.escape(t)):l(t)}}].forEach((function(e){for(u=0;a=e.regex.exec(t);){if(void 0===(s=f(a[1].trim())))if("function"==typeof d){var r=d(t,a,i);s="string"==typeof r?r:""}else{if(h){s=a[0];continue}o.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(t)),s=""}else"string"==typeof s||o.useRawValueToEscape||(s=j(s));if(t=t.replace(a[0],e.safeValue(s)),e.regex.lastIndex=0,++u>=o.maxReplaces)break}})),t}},{key:"nest",value:function e(t,r){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o,a,s=h.default({},i);function u(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var n=e.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(n[1]);e=n[0],i=(i=this.interpolate(i,s)).replace(/'/g,'"');try{s=JSON.parse(i),t&&(s=h.default({},t,s))}catch(o){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),o),"".concat(e).concat(r).concat(i)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;o=this.nestingRegexp.exec(t);){var c=[],l=!1;if(o[0].includes(this.formatSeparator)&&!/{.*}/.test(o[1])){var f=o[1].split(this.formatSeparator).map((function(e){return e.trim()}));o[1]=f.shift(),c=f,l=!0}if((a=r(u.call(this,o[1].trim(),s),s))&&o[0]===t&&"string"!=typeof a)return a;"string"!=typeof a&&(a=j(a)),a||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(t)),a=""),l&&(a=c.reduce((function(e,t){return n.format(e,t,i.lng,i)}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}]),e}();function K(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}var G=function(e){function t(e,r,n){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return p.default(this,t),i=m.default(this,g.default(t).call(this)),N&&k.call(v.default(i)),i.backend=e,i.store=r,i.services=n,i.languageUtils=n.languageUtils,i.options=o,i.logger=x.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(n,o.backend,o),i}return y.default(t,e),b.default(t,[{key:"queueLoad",value:function e(t,r,n,i){var o=this,a=[],s=[],u=[],c=[];return t.forEach((function(e){var t=!0;r.forEach((function(r){var i="".concat(e,"|").concat(r);!n.reload&&o.store.hasResourceBundle(e,r)?o.state[i]=2:o.state[i]<0||(1===o.state[i]?s.indexOf(i)<0&&s.push(i):(o.state[i]=1,t=!1,s.indexOf(i)<0&&s.push(i),a.indexOf(i)<0&&a.push(i),c.indexOf(r)<0&&c.push(r)))})),t||u.push(e)})),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:a,pending:s,toLoadLanguages:u,toLoadNamespaces:c}}},{key:"loaded",value:function e(t,r,n){var i=t.split("|"),o=i[0],a=i[1];r&&this.emit("failedLoading",o,a,r),n&&this.store.addResourceBundle(o,a,n),this.state[t]=r?-1:2;var e={};this.queue.forEach((function(n){C(n.loaded,[o],a),K(n.pending,t),r&&n.errors.push(r),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(t){e[t]||(e[t]=[]),n.loaded[t].length&&n.loaded[t].forEach((function(r){e[t].indexOf(r)<0&&e[t].push(r)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",e),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function e(t,r,n){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[n](t,r,(function(e,u){e&&u&&o<5?setTimeout((function(){i.read.call(i,t,r,n,o+1,2*a,s)}),a):s(e,u)})):s(null,{})}},{key:"prepareLoading",value:function e(t,r){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof r&&(r=[r]);var a=this.queueLoad(t,r,i,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function e(t,r,n){this.prepareLoading(t,r,{},n)}},{key:"reload",value:function e(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}},{key:"loadOne",value:function e(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t.split("|"),o=i[0],a=i[1];this.read(o,a,"read",void 0,void 0,(function(e,i){e&&r.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(o," failed"),e),!e&&i&&r.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(o),i),r.loaded(t,e,i)}))}},{key:"saveMissing",value:function e(t,r,n,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(t,r,n,i,null,h.default({},a,{isUpdate:o})),t&&t[0]&&this.store.addResource(t[0],r,n,i))}}]),t}(k);function X(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function e(t){var r={};if("object"===d.default(t[1])&&(r=t[1]),"string"==typeof t[1]&&(r.defaultValue=t[1]),"string"==typeof t[2]&&(r.tDescription=t[2]),"object"===d.default(t[2])||"object"===d.default(t[3])){var n=t[3]||t[2];Object.keys(n).forEach((function(e){r[e]=n[e]}))}return r},interpolation:{escapeValue:!0,format:function e(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function Z(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function J(){}var Q,ee=new(function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(p.default(this,t),e=m.default(this,g.default(t).call(this)),N&&k.call(v.default(e)),e.options=Z(r),e.services={},e.logger=x,e.modules={external:[]},n&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,n),m.default(e,v.default(e));setTimeout((function(){e.init(r,n)}),0)}return e}return y.default(t,e),b.default(t,[{key:"init",value:function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function i(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof r&&(n=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=h.default({},X(),this.options,Z(r)),this.format=this.options.interpolation.format,n||(n=J),!this.options.isClone){this.modules.logger?x.init(i(this.modules.logger),this.options):x.init(null,this.options);var o=new U(this.options);this.store=new F(this.options.resources,this.options);var a=this.services;a.logger=x,a.resourceStore=this.store,a.languageUtils=o,a.pluralResolver=new Y(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new V(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new G(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i1?r-1:0),i=1;i0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments),t}}));var l=S(),f=function e(){var r=function e(r,i){t.isInitialized&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),l.resolve(i),n(r,i)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return r(null,t.t.bind(t));t.changeLanguage(t.options.lng,r)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),l}},{key:"loadResources",value:function e(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J,i=n,o="string"==typeof t?t:this.language;if("function"==typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return i();var a=[],s=function e(t){var n;t&&r.services.languageUtils.toResolveHierarchy(t).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};if(o)s(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return s(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return s(e)})),this.services.backendConnector.load(a,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function e(t,r,n){var i=S();return t||(t=this.languages),r||(r=this.options.ns),n||(n=J),this.services.backendConnector.reload(t,r,(function(e){i.resolve(),n(e)})),i}},{key:"use",value:function e(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&P.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function e(t,r){var n=this;this.isLanguageChangingTo=t;var i=S();this.emit("languageChanging",t);var o=function e(t,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,i.resolve((function(){return n.t.apply(n,arguments)})),r&&r(t,(function(){return n.t.apply(n,arguments)}))},a=function e(t){var r="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);r&&(n.language||(n.language=r,n.languages=n.services.languageUtils.toResolveHierarchy(r)),n.translator.language||n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,(function(e){o(e,r)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(t):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function e(t,r){var n=this,i=function e(t,r){var i;if("object"!==d.default(r)){for(var o=arguments.length,a=new Array(o>2?o-2:0),s=2;s1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],o=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var s=function e(t,n){var i=r.services.backendConnector.state["".concat(t,"|").concat(n)];return-1===i||2===i};if(n.precheck){var u=n.precheck(this,s);if(void 0!==u)return u}return!!this.hasResourceBundle(i,t)||(!this.services.backendConnector.backend||!(!s(i,t)||o&&!s(a,t)))}},{key:"loadNamespaces",value:function e(t,r){var n=this,i=S();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),r&&r(e)})),i):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function e(t,r){var n=S();"string"==typeof t&&(t=[t]);var i=this.options.preload||[],o=t.filter((function(e){return i.indexOf(e)<0}));return o.length?(this.options.preload=i.concat(o),this.loadResources((function(e){n.resolve(),r&&r(e)})),n):(r&&r(),Promise.resolve())}},{key:"dir",value:function e(t){return t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),t?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr":"rtl";var r}},{key:"createInstance",value:function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(r,n)}},{key:"cloneInstance",value:function e(){var r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J,o=h.default({},this.options,n,{isClone:!0}),a=new t(o),s=["store","services","language"];return s.forEach((function(e){a[e]=r[e]})),a.services=h.default({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new q(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=0&&r<=y}}function Z(e){return function(t){return null==t?void 0:t[e]}}var J=Z("byteLength"),Q=X(J),ee=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function te(e){return p?p(e)&&!U(e):Q(e)&&ee.test(s.call(e))}var re=c?te:G(!1),ne=Z("length");function ie(e){for(var t={},r=e.length,n=0;n":">",'"':""","'":"'","`":"`"},st=ot(at),ut,ct=ot(Oe(at)),lt=ce.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},ft=/(.)^/,dt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ht=/\\|'|\r|\n|\u2028|\u2029/g;function pt(e){return"\\"+dt[e]}var bt=/^\s*(\w|\$)+\s*$/;function mt(e,t,r){!t&&r&&(t=r),t=Re({},t,ce.templateSettings);var n=RegExp([(t.escape||ft).source,(t.interpolate||ft).source,(t.evaluate||ft).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(n,(function(t,r,n,a,s){return o+=e.slice(i,s).replace(ht,pt),i=s+t.length,r?o+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":n?o+="'+\n((__t=("+n+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t})),o+="';\n";var a=t.variable,s;if(a){if(!bt.test(a))throw new Error("variable is not a bare identifier: "+a)}else o="with(obj||{}){\n"+o+"}\n",a="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{s=new Function(a,"_",o)}catch(c){throw c.source=o,c}var u=function(e){return s.call(this,e,ce)};return u.source="function("+a+"){\n"+o+"}",u}function gt(e,t,r){var n=(t=Ue(t)).length;if(!n)return N(r)?r.call(e):r;for(var i=0;i1)jt(s,t-1,r,n),i=n.length;else for(var u=0,c=s.length;ut?(n&&(clearTimeout(n),n=null),s=c,a=e.apply(i,o),n||(i=o=null)):n||!1===r.trailing||(n=setTimeout(u,l)),a};return c.cancel=function(){clearTimeout(n),s=0,n=i=o=null},c}function Tt(e,t,r){var n,i,o,a,s,u=function(){var c=it()-i;t>c?n=setTimeout(u,t-c):(n=null,r||(a=e.apply(s,o)),n||(o=s=null))},c=w((function(c){return s=this,o=c,i=it(),n||(n=setTimeout(u,t),r&&(a=e.apply(s,o))),a}));return c.cancel=function(){clearTimeout(n),n=o=s=null},c}function Mt(e,t){return xt(t,e)}function Bt(e){return function(){return!e.apply(this,arguments)}}function It(){var e=arguments,t=e.length-1;return function(){for(var r=t,n=e[t].apply(this,arguments);r--;)n=e[r].call(this,n);return n}}function Rt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Nt(e,t){var r;return function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}}var Ft=xt(Nt,2);function Pt(e,t,r){t=Je(t,r);for(var n=ae(e),i,o=0,a=n.length;o0?0:i-1;o>=0&&o0?s=o>=0?o:Math.max(o+u,s):u=o>=0?Math.min(o+1,u):o+u+1;else if(r&&o&&u)return n[o=r(n,i)]===i?o:-1;if(i!=i)return(o=t(a.call(n,s,u),K))>=0?o+s:-1;for(o=e>0?s:u-1;o>=0&&o0?0:a-1;for(i||(n=t[o?o[s]:s],s+=e);s>=0&&s=3;return t(e,Ge(r,i,4),n,o)}}var Zt=Xt(1),Jt=Xt(-1);function Qt(e,t,r){var n=[];return t=Je(t,r),Kt(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function er(e,t,r){return Qt(e,Bt(Je(t)),r)}function tr(e,t,r){t=Je(t,r);for(var n=!St(e)&&ae(e),i=(n||e).length,o=0;o=0}var ir=w((function(e,t,r){var n,i;return N(t)?i=t:(t=Ue(t),n=t.slice(0,-1),t=t[t.length-1]),Gt(e,(function(e){var o=i;if(!o){if(n&&n.length&&(e=He(e,n)),null==e)return;o=e[t]}return null==o?o:o.apply(e,r)}))}));function or(e,t){return Gt(e,Ke(t))}function ar(e,t){return Qt(e,Ve(t))}function sr(e,t,r){var n=-1/0,i=-1/0,o,a;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=St(e)?e:Ee(e)).length;sn&&(n=o);else t=Je(t,r),Kt(e,(function(e,r,o){((a=t(e,r,o))>i||a===-1/0&&n===-1/0)&&(n=e,i=a)}));return n}function ur(e,t,r){var n=1/0,i=1/0,o,a;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=St(e)?e:Ee(e)).length;sn||void 0===r)return 1;if(r1&&(n=Ge(n,t[1])),t=be(e)):(n=wr,t=jt(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i1&&(n=t[1])):(t=Gt(jt(t,!1,!1),String),r=function(e,r){return!nr(t,r)}),_r(e,r,n)}));function kr(e,t,r){return a.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))}function Sr(e,t,r){return null==e||e.length<1?null==t||r?void 0:[]:null==t||r?e[0]:kr(e,e.length-t)}function jr(e,t,r){return a.call(e,null==t||r?1:t)}function Ar(e,t,r){return null==e||e.length<1?null==t||r?void 0:[]:null==t||r?e[e.length-1]:jr(e,Math.max(0,e.length-t))}function Dr(e){return Qt(e,Boolean)}function Er(e,t){return jt(e,t,!1)}var Cr=w((function(e,t){return t=jt(t,!0,!0),Qt(e,(function(e){return!nr(t,e)}))})),Or=w((function(e,t){return Cr(e,t)}));function Tr(e,t,r,n){S(t)||(n=r,r=t,t=!1),null!=r&&(r=Je(r,n));for(var i=[],o=[],a=0,s=ne(e);ae(t),this)}}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},c=new Set,l=(e,t)=>{const r=`LRU_CACHE_OPTION_${e}`;p(r)&&b(r,`${e} option`,`options.${t}`,w)},f=(e,t)=>{const r=`LRU_CACHE_METHOD_${e}`;if(p(r)){const{prototype:n}=w,{get:i}=Object.getOwnPropertyDescriptor(n,e);b(r,`${e} method`,`cache.${t}()`,i)}},d=(e,t)=>{const r=`LRU_CACHE_PROPERTY_${e}`;if(p(r)){const{prototype:n}=w,{get:i}=Object.getOwnPropertyDescriptor(n,e);b(r,`${e} property`,`cache.${t}`,i)}},h=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},p=e=>!c.has(e),b=(e,t,r,n)=>{c.add(e);const i=`The ${t} is deprecated. Please use ${r} instead.`;h(i,"DeprecationWarning",e,n)},m=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),g=e=>m(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?v:null:null;class v extends Array{constructor(e){super(e),this.fill(0)}}class y{constructor(e){if(0===e)return[];const t=g(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class w{constructor(e={}){const{max:t=0,ttl:r,ttlResolution:n=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:s,dispose:u,disposeAfter:f,noDisposeOnSet:d,noUpdateTTL:b,maxSize:v=0,maxEntrySize:_=0,sizeCalculation:x,fetchMethod:k,fetchContext:S,noDeleteOnFetchRejection:j,noDeleteOnStaleGet:A}=e,{length:D,maxAge:E,stale:C}=e instanceof w?{}:e;if(0!==t&&!m(t))throw new TypeError("max option must be a nonnegative integer");const O=t?g(t):Array;if(!O)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=v,this.maxEntrySize=_||this.maxSize,this.sizeCalculation=x||D,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=k||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=S,!this.fetchMethod&&void 0!==S)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new O(t),this.prev=new O(t),this.head=0,this.tail=0,this.free=new y(t),this.initialFill=1,this.size=0,"function"==typeof u&&(this.dispose=u),"function"==typeof f?(this.disposeAfter=f,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!b,this.noDeleteOnFetchRejection=!!j,0!==this.maxEntrySize){if(0!==this.maxSize&&!m(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!m(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!s||!!C,this.noDeleteOnStaleGet=!!A,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=m(n)||0===n?n:1,this.ttlAutopurge=!!i,this.ttl=r||E||0,this.ttl){if(!m(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";if(p(e)){c.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";h(t,"UnboundedCacheWarning",e,w)}}C&&l("stale","allowStale"),E&&l("maxAge","ttl"),D&&l("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new v(this.max),this.starts=new v(this.max),this.setItemTTL=(e,t,r=n.now())=>{if(this.starts[e]=0!==t?r:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const r=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);r.unref&&r.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?n.now():0};let e=0;const t=()=>{const t=n.now();if(this.ttlResolution>0){e=t;const r=setTimeout(()=>e=0,this.ttlResolution);r.unref&&r.unref()}return t};this.getRemainingTTL=r=>{const n=this.keyMap.get(r);return void 0===n?0:0===this.ttls[n]||0===this.starts[n]?1/0:this.starts[n]+this.ttls[n]-(e||t())},this.isStale=r=>0!==this.ttls[r]&&0!==this.starts[r]&&(e||t())-this.starts[r]>this.ttls[r]}updateItemAge(e){}setItemTTL(e,t,r){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new v(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,r,n)=>{if(this.isBackgroundFetch(t))return 0;if(!m(r)){if(!n)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!m(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t)=>{if(this.sizes[e]=t,this.maxSize){const t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e]}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,r,n){if(r||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const r of this.indexes())if(e(this.valList[r],this.keyList[r],this))return this.get(this.keyList[r],t)}forEach(e,t=this){for(const r of this.indexes())e.call(t,this.valList[r],this.keyList[r],this)}rforEach(e,t=this){for(const r of this.rindexes())e.call(t,this.valList[r],this.keyList[r],this)}get prune(){return f("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes({allowStale:!0})){const r=this.keyList[t],i=this.valList[t],o=this.isBackgroundFetch(i)?i.__staleWhileFetching:i,a={value:o};if(this.ttls){a.ttl=this.ttls[t];const e=n.now()-this.starts[t];a.start=Math.floor(Date.now()-e)}this.sizes&&(a.size=this.sizes[t]),e.unshift([r,a])}return e}load(e){this.clear();for(const[t,r]of e){if(r.start){const e=Date.now()-r.start;r.start=n.now()-e}this.set(t,r.value,r)}}dispose(e,t,r){}set(e,t,{ttl:r=this.ttl,start:n,noDisposeOnSet:i=this.noDisposeOnSet,size:o=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:s=this.noUpdateTTL}={}){if(o=this.requireSize(e,t,o,a),this.maxEntrySize&&o>this.maxEntrySize)return this.delete(e),this;let u=0===this.size?void 0:this.keyMap.get(e);if(void 0===u)u=this.newIndex(),this.keyList[u]=e,this.valList[u]=t,this.keyMap.set(e,u),this.next[this.tail]=u,this.prev[u]=this.tail,this.tail=u,this.size++,this.addItemSize(u,o),s=!1;else{const r=this.valList[u];t!==r&&(this.isBackgroundFetch(r)?r.__abortController.abort():i||(this.dispose(r,e,"set"),this.disposeAfter&&this.disposed.push([r,e,"set"])),this.removeItemSize(u),this.valList[u]=t,this.addItemSize(u,o)),this.moveToTail(u)}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),s||this.setItemTTL(u,r,n),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,r=this.keyList[t],n=this.valList[t];return this.isBackgroundFetch(n)?n.__abortController.abort():(this.dispose(n,r,"evict"),this.disposeAfter&&this.disposed.push([n,r,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(r),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const r=this.keyMap.get(e);return void 0!==r&&!this.isStale(r)&&(t&&this.updateItemAge(r),!0)}peek(e,{allowStale:t=this.allowStale}={}){const r=this.keyMap.get(e);if(void 0!==r&&(t||!this.isStale(r))){const e=this.valList[r];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,r,n){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const a=new o,s={signal:a.signal,options:r,context:n},u=t=>(a.signal.aborted||this.set(e,t,s.options),t),c=n=>{if(this.valList[t]===f){const n=!r.noDeleteOnFetchRejection||void 0===f.__staleWhileFetching;n?this.delete(e):this.valList[t]=f.__staleWhileFetching}if(f.__returned===f)throw n},l=t=>t(this.fetchMethod(e,i,s)),f=new Promise(l).then(u,c);return f.__abortController=a,f.__staleWhileFetching=i,f.__returned=null,void 0===t?(this.set(e,f,s.options),t=this.keyMap.get(e)):this.valList[t]=f,f}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,fetchContext:l=this.fetchContext,forceRefresh:f=!1}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:n});const d={allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:n,ttl:i,noDisposeOnSet:o,size:a,sizeCalculation:s,noUpdateTTL:u,noDeleteOnFetchRejection:c};let h=this.keyMap.get(e);if(void 0===h){const t=this.backgroundFetch(e,h,d,l);return t.__returned=t}{const n=this.valList[h];if(this.isBackgroundFetch(n))return t&&void 0!==n.__staleWhileFetching?n.__staleWhileFetching:n.__returned=n;if(!f&&!this.isStale(h))return this.moveToTail(h),r&&this.updateItemAge(h),n;const i=this.backgroundFetch(e,h,d,l);return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i.__returned=i}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet}={}){const i=this.keyMap.get(e);if(void 0!==i){const o=this.valList[i],a=this.isBackgroundFetch(o);if(this.isStale(i))return a?t?o.__staleWhileFetching:void 0:(n||this.delete(e),t?o:void 0);if(a)return;return this.moveToTail(i),r&&this.updateItemAge(i),o}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return f("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const r=this.keyMap.get(e);if(void 0!==r)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(r);const t=this.valList[r];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const r=this.keyList[e];this.dispose(t,r,"delete"),this.disposeAfter&&this.disposed.push([t,r,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return f("reset","clear"),this.clear}get length(){return d("length","size"),this.size}static get AbortController(){return o}static get AbortSignal(){return u}}e.exports=w}}}}},tslib:{"package.json":function e(t,r,e){e.exports={name:"tslib",version:"2.3.1",main:"tslib.js",module:"tslib.es6.js"}},"tslib.js":function e(t,r,e){ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. diff --git a/server/bundle/programs/web.cordova/e7beb1dfd71e2de82e55a2456aa966c89fce16f8.stats.json b/server/bundle/programs/web.cordova/dbfc952814ef7f8ddde79c44d60aae0c7d6c7d76.stats.json similarity index 99% rename from server/bundle/programs/web.cordova/e7beb1dfd71e2de82e55a2456aa966c89fce16f8.stats.json rename to server/bundle/programs/web.cordova/dbfc952814ef7f8ddde79c44d60aae0c7d6c7d76.stats.json index 5621fc566c..56197862b7 100644 --- a/server/bundle/programs/web.cordova/e7beb1dfd71e2de82e55a2456aa966c89fce16f8.stats.json +++ b/server/bundle/programs/web.cordova/dbfc952814ef7f8ddde79c44d60aae0c7d6c7d76.stats.json @@ -4,7 +4,7 @@ "version": "2.6.0" }, "totalMinifiedBytes": 4559694, - "totalMinifiedGzipBytes": 1160419, + "totalMinifiedGzipBytes": 1160416, "minifiedBytesByPackage": { "packages/meteor.js": 9639, "packages/coffeescript.js": 32, diff --git a/server/bundle/programs/web.cordova/program.json b/server/bundle/programs/web.cordova/program.json index 39fac09ed1..326383a21f 100644 --- a/server/bundle/programs/web.cordova/program.json +++ b/server/bundle/programs/web.cordova/program.json @@ -2,24 +2,24 @@ "format": "web-program-pre1", "manifest": [ { - "path": "e7beb1dfd71e2de82e55a2456aa966c89fce16f8.js", + "path": "dbfc952814ef7f8ddde79c44d60aae0c7d6c7d76.js", "where": "client", "type": "js", "cacheable": true, - "url": "/__cordova/e7beb1dfd71e2de82e55a2456aa966c89fce16f8.js?meteor_js_resource=true", + "url": "/__cordova/dbfc952814ef7f8ddde79c44d60aae0c7d6c7d76.js?meteor_js_resource=true", "size": 4559694, - "hash": "e7beb1dfd71e2de82e55a2456aa966c89fce16f8", - "sri": "RhiqOmWlBd47WkTWv9HlGt4ge3E6a5hB3xXyT9KjGKhVjpY9bknChVafdSuagRPIJS0zsp3G/nU51e8Hf9utlg==" + "hash": "dbfc952814ef7f8ddde79c44d60aae0c7d6c7d76", + "sri": "CQv+BAP+ib+YUoBDjOJevC25NSd1vW0IsptEVvvLqHXG3SR68fT3KWxBH+bci/cgq9+3oZ/vmxWy4B9xMEZweA==" }, { - "path": "e7beb1dfd71e2de82e55a2456aa966c89fce16f8.stats.json", + "path": "dbfc952814ef7f8ddde79c44d60aae0c7d6c7d76.stats.json", "where": "client", "type": "json", "cacheable": true, - "url": "/__cordova/e7beb1dfd71e2de82e55a2456aa966c89fce16f8.stats.json?meteor_js_resource=true", + "url": "/__cordova/dbfc952814ef7f8ddde79c44d60aae0c7d6c7d76.stats.json?meteor_js_resource=true", "size": 92680, - "hash": "c0ca8926f232ebea84435bacdd3a7948a23af016", - "sri": "pfkZXttRfLCHoIGk7Ey9b88Dx1IjQ4KV0Htd5nJpB2Kswmt+c29LdLX7Jq0R9Cgc1x536msRjwRQs5pYu/NfEw==" + "hash": "2dbacef8c30757238f36148565f6b66c7126b90b", + "sri": "wzsgGLo7JBKMPjeNlA2beZdE5+WzHrkIut9w/id2EkIz64v3Mf3+atrxL3xDSmvNZpJg5C5YQHAtmJ/20h7UAg==" }, { "path": "e7d73b0e0bf8437a4be1c523a2f897106779544b.css", diff --git a/server/bundle/star.json b/server/bundle/star.json index e5992c5e80..ccf1729c79 100644 --- a/server/bundle/star.json +++ b/server/bundle/star.json @@ -36,5 +36,5 @@ "meteorRelease": "METEOR@1.9.3", "nodeVersion": "12.16.1", "npmVersion": "6.13.4", - "gitCommitHash": "d1e8792849880b7b2f05ab6d0fc6f8cdfff4a4b9" + "gitCommitHash": "6c429463fab24594572da01647f1985021236ac9" } \ No newline at end of file From 42561c03154aac4722b45c4264086c0c25efa2dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=B7=E4=BA=AE=E8=BE=89?= Date: Tue, 10 Oct 2023 11:13:19 +0800 Subject: [PATCH 28/32] @steedos-widgets/amis-object@1.3.4-beta.11 --- packages/cli/default.steedos.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/default.steedos.config.js b/packages/cli/default.steedos.config.js index 1b2c85e7f7..2a7d6ce46e 100644 --- a/packages/cli/default.steedos.config.js +++ b/packages/cli/default.steedos.config.js @@ -29,7 +29,7 @@ if(_.isEmpty(process.env.STEEDOS_AMIS_URL)) { process.env.STEEDOS_AMIS_URL = process.env.STEEDOS_AMIS_URL.replace(/\/+$/, ""); if(_.isEmpty(process.env.STEEDOS_PUBLIC_PAGE_ASSETURLS)) { - process.env.STEEDOS_PUBLIC_PAGE_ASSETURLS = process.env.STEEDOS_UNPKG_URL + "/@steedos-widgets/amis-object@1.3.4-beta.10/dist/assets.json"; + process.env.STEEDOS_PUBLIC_PAGE_ASSETURLS = process.env.STEEDOS_UNPKG_URL + "/@steedos-widgets/amis-object@1.3.4-beta.11/dist/assets.json"; } if(_.isEmpty(process.env.SERIALIZER)){ From 3c2bc087696a0109077001003825ec9ffe5b2bcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Tue, 10 Oct 2023 03:31:27 +0000 Subject: [PATCH 29/32] https://github.com/steedos/steedos-project-hbport/issues/493 --- creator/packages/steedos-creator/client/theme.less | 2 -- 1 file changed, 2 deletions(-) diff --git a/creator/packages/steedos-creator/client/theme.less b/creator/packages/steedos-creator/client/theme.less index f1daf15da6..693a40df53 100644 --- a/creator/packages/steedos-creator/client/theme.less +++ b/creator/packages/steedos-creator/client/theme.less @@ -17,8 +17,6 @@ body { zoom: 1 !important; - // iOS 上平滑滚动 - -webkit-overflow-scrolling: touch; } .steedos { From 36a4e08522df25b30a6f8aa3806b76dd185140d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Tue, 10 Oct 2023 03:34:57 +0000 Subject: [PATCH 30/32] =?UTF-8?q?iphone=20ios17.03=20=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=8F=B0=E4=B9=9D=E5=AE=AB=E6=A0=BC=E5=BA=94=E7=94=A8=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=9B=BE=E6=A0=87=E6=B2=A1=E6=98=BE=E7=A4=BA=E5=87=BA?= =?UTF-8?q?=E6=9D=A5=20#493?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- steedos-packages/webapp-public/public/customize.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/steedos-packages/webapp-public/public/customize.css b/steedos-packages/webapp-public/public/customize.css index 1601a6a143..98fd2668e1 100644 --- a/steedos-packages/webapp-public/public/customize.css +++ b/steedos-packages/webapp-public/public/customize.css @@ -74,4 +74,9 @@ body { -ms-text-size-adjust: auto; -webkit-text-size-adjust: auto; zoom: 135% !important; +} + +body.steedos { + /*此样式可能造成ios17系统的iphone svg显示不出来,移除就好了*/ + -webkit-overflow-scrolling: unset; } \ No newline at end of file From 7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Tue, 10 Oct 2023 03:44:14 +0000 Subject: [PATCH 31/32] =?UTF-8?q?github=20workflow:=20=E6=8B=86=E5=88=86?= =?UTF-8?q?=20npm=20sync?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{release.yml => npm-release.yml} | 12 +--------- .github/workflows/npm-sync.yml | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+), 11 deletions(-) rename .github/workflows/{release.yml => npm-release.yml} (97%) create mode 100644 .github/workflows/npm-sync.yml diff --git a/.github/workflows/release.yml b/.github/workflows/npm-release.yml similarity index 97% rename from .github/workflows/release.yml rename to .github/workflows/npm-release.yml index 1584325fb3..575c482168 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/npm-release.yml @@ -209,11 +209,7 @@ jobs: target_branch: master github_token: ${{ github.token }} - - name: Sleep 120s, wait for npm cache - uses: juliangruber/sleep-action@v1 - with: - time: 120s - + # - name: Create Docker Release # # if: steps.version.outputs.is_stable == 'true' # id: create_release @@ -228,9 +224,3 @@ jobs: # release_name: Release v${{ steps.branch-name.outputs.tag }} # draft: false # prerelease: false - - - name: Sync NpmMirror - env: - CI: false - run: | - yarn sync diff --git a/.github/workflows/npm-sync.yml b/.github/workflows/npm-sync.yml new file mode 100644 index 0000000000..8350e4ed17 --- /dev/null +++ b/.github/workflows/npm-sync.yml @@ -0,0 +1,22 @@ +on: + workflow_run: + workflows: [Release NPM] + types: + - completed + +jobs: + sync: + runs-on: ubuntu-latest + steps: + + - name: Sleep 120s, wait for npm cache + uses: juliangruber/sleep-action@v1 + with: + time: 120s + + - name: Sync cnpm + env: + CI: true + run: | + yarn sync + From 8f1a5ae986ae2dc03ba045719d674c686963fb8e Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 10 Oct 2023 04:03:00 +0000 Subject: [PATCH 32/32] action: release 2.5.15-beta.14 --- ee/sso-oidc/package.json | 10 +-- examples/project-template/package.json | 4 +- examples/with-datadog/package.json | 4 +- examples/with-k6/package.json | 4 +- examples/with-postgres/package.json | 4 +- examples/with-tracing-jaeger/package.json | 4 +- lerna.json | 2 +- packages/accounts/package.json | 12 ++-- packages/auth/package.json | 8 +-- packages/cachers/package.json | 4 +- packages/cli/package.json | 8 +-- packages/client/package.json | 6 +- packages/core/package.json | 24 +++---- packages/create-steedos-app/package.json | 4 +- packages/create-steedos-package/package.json | 4 +- packages/data-import/package.json | 12 ++-- packages/filters/package.json | 4 +- packages/formula/package.json | 4 +- packages/i18n/package.json | 6 +- packages/metadata-api/package.json | 14 ++--- packages/metadata-core/package.json | 6 +- packages/metadata-registrar/package.json | 8 +-- .../meteor-bundle-dependencies/package.json | 4 +- packages/meteor-bundle-runner/package.json | 4 +- packages/migrate/package.json | 4 +- packages/objectql/package.json | 28 ++++----- packages/odata-v4-mongodb/package.json | 6 +- packages/odata-v4-parser/package.json | 4 +- packages/odata-v4-sql/package.json | 6 +- packages/odata-v4-typeorm/package.json | 8 +-- packages/plugin-company/package.json | 4 +- packages/process/package.json | 8 +-- packages/router/package.json | 4 +- packages/schemas/package.json | 4 +- packages/standard-objects/package.json | 16 ++--- .../package.json | 4 +- packages/workflow/package.json | 14 ++--- server/package.json | 28 ++++----- services/service-accounts/package.json | 4 +- services/service-ancillary/package.json | 4 +- services/service-api/package.json | 12 ++-- services/service-cachers-manager/package.json | 8 +-- services/service-charts/package.json | 10 +-- services/service-community/package.json | 48 +++++++------- services/service-fields-indexs/package.json | 4 +- services/service-files/package.json | 4 +- services/service-i18n/package.json | 4 +- services/service-identity-jwt/package.json | 6 +- services/service-metadata-apps/package.json | 8 +-- .../service-metadata-layouts/package.json | 4 +- .../service-metadata-objects/package.json | 10 +-- .../package.json | 4 +- services/service-metadata-server/package.json | 24 +++---- services/service-metadata-tabs/package.json | 4 +- .../package.json | 6 +- .../service-metadata-triggers/package.json | 4 +- services/service-metadata/package.json | 6 +- .../package.json | 12 ++-- services/service-mongodb-server/package.json | 4 +- services/service-node-red/package.json | 4 +- services/service-object-graphql/package.json | 12 ++-- services/service-object-mixin/package.json | 4 +- services/service-objectql/package.json | 6 +- services/service-package-loader/package.json | 10 +-- .../service-package-registry/package.json | 14 ++--- services/service-package-tool/package.json | 14 ++--- services/service-packages/package.json | 4 +- services/service-pages/package.json | 4 +- services/service-plugin-amis/package.json | 4 +- services/service-push/package.json | 4 +- services/service-rest/package.json | 8 +-- services/service-saas/package.json | 4 +- services/service-sentry/package.json | 4 +- services/service-sidercar/package.json | 4 +- services/service-steedos-server/package.json | 62 +++++++++---------- services/service-ui/package.json | 10 +-- services/service-workflow/package.json | 8 +-- services/standard-cms/package.json | 4 +- services/standard-collaboration/package.json | 4 +- .../standard-object-database/package.json | 4 +- services/standard-permission/package.json | 4 +- .../standard-process-approval/package.json | 6 +- services/standard-space/package.json | 8 +-- services/standard-ui/package.json | 4 +- services/workflow_time_trigger/package.json | 4 +- .../service-analytics/package.json | 4 +- .../standard-process/package.json | 4 +- steedos-packages/unpkg/package.json | 4 +- steedos-packages/webapp-accounts/package.json | 4 +- steedos-packages/webapp-desktop/package.json | 4 +- steedos-packages/webapp-public/package.json | 4 +- 91 files changed, 367 insertions(+), 367 deletions(-) diff --git a/ee/sso-oidc/package.json b/ee/sso-oidc/package.json index 918fc1a66e..f0894f6fa8 100644 --- a/ee/sso-oidc/package.json +++ b/ee/sso-oidc/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/ee_sso-oidc", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "scripts": { "build": "tsc" @@ -11,14 +11,14 @@ "access": "public" }, "dependencies": { - "@steedos/accounts": "2.5.15-beta.12", - "@steedos/objectql": "2.5.15-beta.12", - "@steedos/service-package-loader": "2.5.15-beta.12", + "@steedos/accounts": "2.5.15-beta.14", + "@steedos/objectql": "2.5.15-beta.14", + "@steedos/service-package-loader": "2.5.15-beta.14", "@techpass/passport-openidconnect": "^0.3.2", "express": "4.18.1", "node-fetch": "^2.6.7", "passport": "^0.6.0", "request-ip": "^2.2.0" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/examples/project-template/package.json b/examples/project-template/package.json index 6bc52189dc..0d356c0ea1 100644 --- a/examples/project-template/package.json +++ b/examples/project-template/package.json @@ -1,6 +1,6 @@ { "name": "project-template", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "private": true, "scripts": { "start": "steedos start", @@ -9,6 +9,6 @@ "inspect": "cross-env NODE_OPTIONS='--inspect' steedos start --hot" }, "dependencies": { - "@steedos/service-community": "2.5.15-beta.12" + "@steedos/service-community": "2.5.15-beta.14" } } diff --git a/examples/with-datadog/package.json b/examples/with-datadog/package.json index 296fa64b9f..451fd57ed5 100644 --- a/examples/with-datadog/package.json +++ b/examples/with-datadog/package.json @@ -1,12 +1,12 @@ { "name": "with-datadog", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "private": true, "scripts": { "start": "steedos start" }, "dependencies": { - "@steedos/service-community": "2.5.15-beta.12" + "@steedos/service-community": "2.5.15-beta.14" }, "devDependencies": { "dd-trace": "3.7.1" diff --git a/examples/with-k6/package.json b/examples/with-k6/package.json index 70e2ff799e..f98cc220a5 100644 --- a/examples/with-k6/package.json +++ b/examples/with-k6/package.json @@ -1,6 +1,6 @@ { "name": "with-k6", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "private": true, "scripts": { "start": "steedos start", @@ -8,7 +8,7 @@ "k6:menus": "k6 run -e ROOT_URL=http://127.0.0.1:5100 -e API_KEY=apikey,8FzpeOTInPZcqWeFoCdSEy8s6FDpuITWPz15bIM0kNL ./.script/test.menus.js" }, "dependencies": { - "@steedos/service-community": "2.5.15-beta.12" + "@steedos/service-community": "2.5.15-beta.14" }, "devDependencies": { "dd-trace": "3.7.1" diff --git a/examples/with-postgres/package.json b/examples/with-postgres/package.json index 9fe98716d9..f324bc13d3 100644 --- a/examples/with-postgres/package.json +++ b/examples/with-postgres/package.json @@ -1,11 +1,11 @@ { "name": "@steedos-examples/with-postgres", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "private": true, "scripts": { "start": "steedos start" }, "dependencies": { - "@steedos/service-community": "2.5.15-beta.12" + "@steedos/service-community": "2.5.15-beta.14" } } diff --git a/examples/with-tracing-jaeger/package.json b/examples/with-tracing-jaeger/package.json index 60624d6917..a791523021 100644 --- a/examples/with-tracing-jaeger/package.json +++ b/examples/with-tracing-jaeger/package.json @@ -1,12 +1,12 @@ { "name": "with-tracing-jaeger", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "private": true, "scripts": { "start": "steedos start" }, "dependencies": { - "@steedos/service-community": "2.5.15-beta.12" + "@steedos/service-community": "2.5.15-beta.14" }, "devDependencies": { "jaeger-client": "^3.19.0" diff --git a/lerna.json b/lerna.json index d7785ed8df..6378c224c4 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ ], "useWorkspaces": true, "npmClient": "yarn", - "version": "2.5.15-beta.12" + "version": "2.5.15-beta.14" } diff --git a/packages/accounts/package.json b/packages/accounts/package.json index a5302f2fac..c4e889449c 100644 --- a/packages/accounts/package.json +++ b/packages/accounts/package.json @@ -1,7 +1,7 @@ { "name": "@steedos/accounts", "private": false, - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "lib/index.js", "files": [ "/package.json", @@ -55,20 +55,20 @@ "validator": "^13.6.0" }, "devDependencies": { - "@steedos/auth": "2.5.15-beta.12", - "@steedos/meteor-bundle-runner": "2.5.15-beta.12", - "@steedos/objectql": "2.5.15-beta.12", + "@steedos/auth": "2.5.15-beta.14", + "@steedos/meteor-bundle-runner": "2.5.15-beta.14", + "@steedos/objectql": "2.5.15-beta.14", "@types/dotenv-flow": "^3.0.0", "@types/node": "12.6.8", "cross-env": "^7.0.3", "dotenv": "^8.2.0", "dotenv-flow": "^3.1.0", "nodemon": "^2.0.19", - "steedos-server": "2.5.15-beta.12", + "steedos-server": "2.5.15-beta.14", "typescript": "4.6.3" }, "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/auth/package.json b/packages/auth/package.json index 19dcb89199..8b71983086 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,7 +1,7 @@ { "name": "@steedos/auth", "private": false, - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "lib/index.js", "scripts": { "watch": "tsc --watch", @@ -13,8 +13,8 @@ "access": "public" }, "dependencies": { - "@steedos/cachers": "2.5.15-beta.12", - "@steedos/objectql": "2.5.15-beta.12", + "@steedos/cachers": "2.5.15-beta.14", + "@steedos/objectql": "2.5.15-beta.14", "cookies": "^0.8.0", "express": "^4.16.4", "ismobilejs": "^1.1.1", @@ -25,5 +25,5 @@ "devDependencies": { "typescript": "4.6.3" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/cachers/package.json b/packages/cachers/package.json index ba4de23265..9346746b69 100644 --- a/packages/cachers/package.json +++ b/packages/cachers/package.json @@ -1,7 +1,7 @@ { "name": "@steedos/cachers", "private": false, - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "lib/index.js", "scripts": { @@ -19,5 +19,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/cli/package.json b/packages/cli/package.json index dae0e6d6a9..dc262b4f32 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "steedos-cli", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "Develop and run your enterprise apps in miniutes", "main": "dist/index.js", "scripts": { @@ -38,8 +38,8 @@ "@oclif/command": "^1.8.16", "@oclif/config": "^1.8.3", "@oclif/plugin-help": "^5.1.12", - "@steedos/metadata-core": "2.5.15-beta.12", - "@steedos/metadata-registrar": "2.5.15-beta.12", + "@steedos/metadata-core": "2.5.15-beta.14", + "@steedos/metadata-registrar": "2.5.15-beta.14", "archiver": "^5.0.2", "chalk": "2.4.2", "change-case": "^3.1.0", @@ -82,5 +82,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/client/package.json b/packages/client/package.json index 182af6654b..2508989115 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,7 +1,7 @@ { "private": false, "name": "@steedos/client", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "client lib for steedos", "main": "lib/index.js", "scripts": { @@ -17,8 +17,8 @@ }, "license": "MIT", "dependencies": { - "@steedos/filters": "2.5.15-beta.12", + "@steedos/filters": "2.5.15-beta.14", "node-fetch": "^2.6.7" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/core/package.json b/packages/core/package.json index 0144543055..2572660cc5 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@steedos/core", "private": false, - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "lib/index.js", "scripts": { @@ -14,15 +14,15 @@ "author": "", "license": "ISC", "dependencies": { - "@steedos/auth": "2.5.15-beta.12", - "@steedos/filters": "2.5.15-beta.12", - "@steedos/i18n": "2.5.15-beta.12", - "@steedos/metadata-core": "2.5.15-beta.12", - "@steedos/migrate": "2.5.15-beta.12", - "@steedos/objectql": "2.5.15-beta.12", - "@steedos/odata-v4-mongodb": "2.5.15-beta.12", - "@steedos/process": "2.5.15-beta.12", - "@steedos/standard-objects": "2.5.15-beta.12", + "@steedos/auth": "2.5.15-beta.14", + "@steedos/filters": "2.5.15-beta.14", + "@steedos/i18n": "2.5.15-beta.14", + "@steedos/metadata-core": "2.5.15-beta.14", + "@steedos/migrate": "2.5.15-beta.14", + "@steedos/objectql": "2.5.15-beta.14", + "@steedos/odata-v4-mongodb": "2.5.15-beta.14", + "@steedos/process": "2.5.15-beta.14", + "@steedos/standard-objects": "2.5.15-beta.14", "body-parser": "^1.18.1", "bunyan-sfdx-no-dtrace": "^1.8.2", "clone": "^2.1.2", @@ -45,7 +45,7 @@ "devDependencies": { "@salesforce/kit": "1.0.4", "@salesforce/ts-types": "1.1.2", - "@steedos/meteor-bundle-runner": "2.5.15-beta.12", + "@steedos/meteor-bundle-runner": "2.5.15-beta.14", "@types/express": "^4.16.1", "@types/node": "^11.10.4", "@types/underscore": "^1.8.13", @@ -57,5 +57,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/create-steedos-app/package.json b/packages/create-steedos-app/package.json index 52a74bc8ce..795220769f 100644 --- a/packages/create-steedos-app/package.json +++ b/packages/create-steedos-app/package.json @@ -1,6 +1,6 @@ { "name": "create-steedos-app", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "keywords": [ "react", "steedos" @@ -48,5 +48,5 @@ "engines": { "node": ">=12.22.0" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/create-steedos-package/package.json b/packages/create-steedos-package/package.json index fd86207879..1c038223ba 100644 --- a/packages/create-steedos-package/package.json +++ b/packages/create-steedos-package/package.json @@ -1,6 +1,6 @@ { "name": "create-steedos-package", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "keywords": [ "steedos" ], @@ -39,5 +39,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/data-import/package.json b/packages/data-import/package.json index a500b97d37..f7fce36ac4 100644 --- a/packages/data-import/package.json +++ b/packages/data-import/package.json @@ -1,16 +1,16 @@ { "name": "@steedos/data-import", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "lib/index.js", "license": "MIT", "scripts": { "build": "rm -rf ./lib && tsc" }, "dependencies": { - "@steedos/core": "2.5.15-beta.12", - "@steedos/metadata-api": "2.5.15-beta.12", - "@steedos/metadata-core": "2.5.15-beta.12", - "@steedos/objectql": "2.5.15-beta.12", + "@steedos/core": "2.5.15-beta.14", + "@steedos/metadata-api": "2.5.15-beta.14", + "@steedos/metadata-core": "2.5.15-beta.14", + "@steedos/objectql": "2.5.15-beta.14", "bson": "4.6.4", "csvtojson": "~2.0.10", "dotenv-flow": "^3.1.0", @@ -24,5 +24,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/filters/package.json b/packages/filters/package.json index af35ea3fdf..1eb8819e02 100644 --- a/packages/filters/package.json +++ b/packages/filters/package.json @@ -1,7 +1,7 @@ { "name": "@steedos/filters", "private": false, - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "filters lib for steedos", "main": "lib/index.js", "files": [ @@ -36,5 +36,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/formula/package.json b/packages/formula/package.json index 0ae00160c5..9aa81c3ad6 100644 --- a/packages/formula/package.json +++ b/packages/formula/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/formula", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "Salesforce Formula Parser", "main": "lib/formulon.js", "files": [ @@ -46,5 +46,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/i18n/package.json b/packages/i18n/package.json index d7b5c0085a..c298178744 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -1,7 +1,7 @@ { "name": "@steedos/i18n", "private": false, - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "lib/index.js", "scripts": { @@ -11,7 +11,7 @@ "author": "", "license": "ISC", "dependencies": { - "@steedos/cachers": "2.5.15-beta.12", + "@steedos/cachers": "2.5.15-beta.14", "i18next": "^19.3.4", "i18next-sprintf-postprocessor": "^0.2.2", "underscore": "1.13.4" @@ -22,5 +22,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/metadata-api/package.json b/packages/metadata-api/package.json index 78e1cb6290..e90e9635c5 100644 --- a/packages/metadata-api/package.json +++ b/packages/metadata-api/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/metadata-api", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "lib/index.js", "files": [ @@ -21,10 +21,10 @@ "access": "public" }, "dependencies": { - "@steedos/auth": "2.5.15-beta.12", - "@steedos/core": "2.5.15-beta.12", - "@steedos/metadata-core": "2.5.15-beta.12", - "@steedos/objectql": "2.5.15-beta.12", + "@steedos/auth": "2.5.15-beta.14", + "@steedos/core": "2.5.15-beta.14", + "@steedos/metadata-core": "2.5.15-beta.14", + "@steedos/objectql": "2.5.15-beta.14", "chalk": "^4.1.0", "clone": "2.1.2", "compressing": "^1.5.1", @@ -36,9 +36,9 @@ "underscore": "^1.11.0" }, "devDependencies": { - "@steedos/service-meteor-package-loader": "2.5.15-beta.12", + "@steedos/service-meteor-package-loader": "2.5.15-beta.14", "javascript-obfuscator": "^2.9.1", "typescript": "4.6.3" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/metadata-core/package.json b/packages/metadata-core/package.json index 7c8451e634..aa1b479ef0 100644 --- a/packages/metadata-core/package.json +++ b/packages/metadata-core/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/metadata-core", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "lib/index.js", "files": [ @@ -12,7 +12,7 @@ "build": "tsc" }, "dependencies": { - "@steedos/client": "2.5.15-beta.12", + "@steedos/client": "2.5.15-beta.14", "archiver": "^5.1.0", "chalk": "^4.1.0", "clone": "^2.1.2", @@ -39,5 +39,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/metadata-registrar/package.json b/packages/metadata-registrar/package.json index 003204cac6..4bf8529659 100644 --- a/packages/metadata-registrar/package.json +++ b/packages/metadata-registrar/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/metadata-registrar", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "lib/index.js", "files": [ @@ -13,8 +13,8 @@ }, "dependencies": { "@salesforce/ts-types": "1.1.2", - "@steedos/client": "2.5.15-beta.12", - "@steedos/metadata-core": "2.5.15-beta.12", + "@steedos/client": "2.5.15-beta.14", + "@steedos/metadata-core": "2.5.15-beta.14", "archiver": "^5.1.0", "chalk": "^4.1.0", "clone": "^2.1.2", @@ -42,5 +42,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/meteor-bundle-dependencies/package.json b/packages/meteor-bundle-dependencies/package.json index c18d33ddbe..43608214dc 100644 --- a/packages/meteor-bundle-dependencies/package.json +++ b/packages/meteor-bundle-dependencies/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/meteor-bundle-dependencies", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "index.js", "private": false, @@ -56,5 +56,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/meteor-bundle-runner/package.json b/packages/meteor-bundle-runner/package.json index 0962bc95bb..7eaa16e5a3 100644 --- a/packages/meteor-bundle-runner/package.json +++ b/packages/meteor-bundle-runner/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/meteor-bundle-runner", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "Run meteor bundles and inject your own nodejs code.", "main": "index.js", "private": false, @@ -26,5 +26,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/migrate/package.json b/packages/migrate/package.json index 19bd03e125..0fb369b834 100644 --- a/packages/migrate/package.json +++ b/packages/migrate/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/migrate", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "Migration scripts for steedos", "main": "index.js", "license": "MIT", @@ -12,5 +12,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/objectql/package.json b/packages/objectql/package.json index d44bff599a..06cca0f428 100644 --- a/packages/objectql/package.json +++ b/packages/objectql/package.json @@ -1,7 +1,7 @@ { "name": "@steedos/objectql", "private": false, - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "lib/index.js", "scripts": { @@ -16,17 +16,17 @@ "dependencies": { "@salesforce/kit": "1.0.4", "@salesforce/ts-types": "1.1.1", - "@steedos/cachers": "2.5.15-beta.12", - "@steedos/filters": "2.5.15-beta.12", - "@steedos/formula": "2.5.15-beta.12", - "@steedos/i18n": "2.5.15-beta.12", - "@steedos/metadata-core": "2.5.15-beta.12", - "@steedos/metadata-registrar": "2.5.15-beta.12", - "@steedos/odata-v4-mongodb": "2.5.15-beta.12", - "@steedos/odata-v4-sql": "2.5.15-beta.12", - "@steedos/odata-v4-typeorm": "2.5.15-beta.12", - "@steedos/schemas": "2.5.15-beta.12", - "@steedos/standard-objects": "2.5.15-beta.12", + "@steedos/cachers": "2.5.15-beta.14", + "@steedos/filters": "2.5.15-beta.14", + "@steedos/formula": "2.5.15-beta.14", + "@steedos/i18n": "2.5.15-beta.14", + "@steedos/metadata-core": "2.5.15-beta.14", + "@steedos/metadata-registrar": "2.5.15-beta.14", + "@steedos/odata-v4-mongodb": "2.5.15-beta.14", + "@steedos/odata-v4-sql": "2.5.15-beta.14", + "@steedos/odata-v4-typeorm": "2.5.15-beta.14", + "@steedos/schemas": "2.5.15-beta.14", + "@steedos/standard-objects": "2.5.15-beta.14", "app-root-path": "^2.2.1", "body-parser": "^1.18.1", "bunyan-sfdx-no-dtrace": "^1.8.2", @@ -55,7 +55,7 @@ "vm2": "^3.9.17" }, "devDependencies": { - "@steedos/meteor-bundle-runner": "2.5.15-beta.12", + "@steedos/meteor-bundle-runner": "2.5.15-beta.14", "@types/express": "^4.16.1", "@types/node": "^11.10.4", "@types/underscore": "^1.8.13", @@ -65,5 +65,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/odata-v4-mongodb/package.json b/packages/odata-v4-mongodb/package.json index 75ac09b998..1f5132998d 100644 --- a/packages/odata-v4-mongodb/package.json +++ b/packages/odata-v4-mongodb/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/odata-v4-mongodb", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "Service OData requests from a MongoDB data store", "main": "lib/index.js", "directories": { @@ -26,12 +26,12 @@ }, "homepage": "https://github.com/jaystack/odata-v4-mongodb#readme", "dependencies": { - "@steedos/odata-v4-parser": "2.5.15-beta.12", + "@steedos/odata-v4-parser": "2.5.15-beta.14", "odata-v4-literal": "^0.1.0" }, "private": false, "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/odata-v4-parser/package.json b/packages/odata-v4-parser/package.json index c02346d118..d650543885 100644 --- a/packages/odata-v4-parser/package.json +++ b/packages/odata-v4-parser/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/odata-v4-parser", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "OData v4 Parser", "main": "lib/parser.js", "repository": { @@ -20,5 +20,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/odata-v4-sql/package.json b/packages/odata-v4-sql/package.json index 46d6ddc0d7..3d0e77042c 100644 --- a/packages/odata-v4-sql/package.json +++ b/packages/odata-v4-sql/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/odata-v4-sql", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "OData to SQL query compiler", "main": "lib/index.js", "typings": "lib/index", @@ -27,7 +27,7 @@ }, "homepage": "https://github.com/jaystack/odata-v4-sql#readme", "dependencies": { - "@steedos/odata-v4-parser": "2.5.15-beta.12", + "@steedos/odata-v4-parser": "2.5.15-beta.14", "odata-v4-literal": "^0.1.0" }, "publishConfig": { @@ -36,5 +36,5 @@ "devDependencies": { "typescript": "4.6.3" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/odata-v4-typeorm/package.json b/packages/odata-v4-typeorm/package.json index 5060ba0760..6aad4acc94 100644 --- a/packages/odata-v4-typeorm/package.json +++ b/packages/odata-v4-typeorm/package.json @@ -1,7 +1,7 @@ { "name": "@steedos/odata-v4-typeorm", "private": false, - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "OData to TYPEORM query compiler", "main": "lib/index.js", "typings": "lib/index", @@ -29,12 +29,12 @@ }, "homepage": "https://github.com/steedos/odata-v4-typeorm#readme", "dependencies": { - "@steedos/odata-v4-parser": "2.5.15-beta.12", - "@steedos/odata-v4-sql": "2.5.15-beta.12", + "@steedos/odata-v4-parser": "2.5.15-beta.14", + "@steedos/odata-v4-sql": "2.5.15-beta.14", "odata-v4-literal": "^0.1.0" }, "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/plugin-company/package.json b/packages/plugin-company/package.json index 483bcf6829..7d14bb6237 100644 --- a/packages/plugin-company/package.json +++ b/packages/plugin-company/package.json @@ -1,7 +1,7 @@ { "name": "@steedos/plugin-company", "private": false, - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "Enterprise plugin for steedos", "main": "index.js", "repository": { @@ -17,5 +17,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/process/package.json b/packages/process/package.json index f76ea25fe8..4b0899974f 100644 --- a/packages/process/package.json +++ b/packages/process/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/process", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "lib/index.js", "repository": "https://github.com/steedos/steedos-platform.git", "scripts": { @@ -16,9 +16,9 @@ "typescript": "4.6.3" }, "dependencies": { - "@steedos/auth": "2.5.15-beta.12", - "@steedos/objectql": "2.5.15-beta.12", + "@steedos/auth": "2.5.15-beta.14", + "@steedos/objectql": "2.5.15-beta.14", "express": "4.18.1" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/router/package.json b/packages/router/package.json index cf3437b0bc..7956069bc7 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,7 +1,7 @@ { "name": "@steedos/router", "private": false, - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "lib/index.js", "scripts": { @@ -18,5 +18,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/schemas/package.json b/packages/schemas/package.json index c5ea7e5e8a..ba28dd101a 100644 --- a/packages/schemas/package.json +++ b/packages/schemas/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/schemas", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "index.js", "repository": "https://github.com/steedos/schemas.git", "author": "sunhaolin ", @@ -9,5 +9,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/standard-objects/package.json b/packages/standard-objects/package.json index bc1b9bbd2f..e6a0673499 100644 --- a/packages/standard-objects/package.json +++ b/packages/standard-objects/package.json @@ -1,7 +1,7 @@ { "name": "@steedos/standard-objects", "private": false, - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "Standard objects for steedos", "main": "index.js", "license": "Apache", @@ -9,13 +9,13 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609", + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c", "dependencies": { - "@steedos/auth": "2.5.15-beta.12", - "@steedos/core": "2.5.15-beta.12", - "@steedos/filters": "2.5.15-beta.12", - "@steedos/i18n": "2.5.15-beta.12", - "@steedos/metadata-core": "2.5.15-beta.12", - "@steedos/metadata-registrar": "2.5.15-beta.12" + "@steedos/auth": "2.5.15-beta.14", + "@steedos/core": "2.5.15-beta.14", + "@steedos/filters": "2.5.15-beta.14", + "@steedos/i18n": "2.5.15-beta.14", + "@steedos/metadata-core": "2.5.15-beta.14", + "@steedos/metadata-registrar": "2.5.15-beta.14" } } diff --git a/packages/steedos-plugin-schema-builder/package.json b/packages/steedos-plugin-schema-builder/package.json index 27643e50a2..136ee3f481 100644 --- a/packages/steedos-plugin-schema-builder/package.json +++ b/packages/steedos-plugin-schema-builder/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/steedos-plugin-schema-builder", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "显示对象关系图", "main": "index.js", "author": "", @@ -10,5 +10,5 @@ "access": "public" }, "homepage": "https://www.steedos.com", - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/packages/workflow/package.json b/packages/workflow/package.json index 89f547ba38..83fdca6f58 100644 --- a/packages/workflow/package.json +++ b/packages/workflow/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/workflow", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "index.js", "repository": "https://github.com/steedos/steedos-platform/packages/workflow.git", "author": "sunhaolin ", @@ -10,17 +10,17 @@ "access": "public" }, "dependencies": { - "@steedos/auth": "2.5.15-beta.12", - "@steedos/objectql": "2.5.15-beta.12", + "@steedos/auth": "2.5.15-beta.14", + "@steedos/objectql": "2.5.15-beta.14", "@steedos/steedos-plugin-workflow": "^2.1.3", "body-parser": "^1.19.0", "express": "^4.17.1", "underscore": "^1.9.1" }, "devDependencies": { - "@steedos/core": "2.5.15-beta.12", - "@steedos/meteor-bundle-runner": "2.5.15-beta.12", - "steedos-server": "2.5.15-beta.12" + "@steedos/core": "2.5.15-beta.14", + "@steedos/meteor-bundle-runner": "2.5.15-beta.14", + "steedos-server": "2.5.15-beta.14" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/server/package.json b/server/package.json index e03c14dac0..48c96ffe72 100644 --- a/server/package.json +++ b/server/package.json @@ -1,6 +1,6 @@ { "name": "steedos-server", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "index.js", "files": [ "/bundle/programs/server/app", @@ -19,18 +19,18 @@ }, "dependencies": { "@babel/runtime": "7.12.18", - "@steedos/accounts": "2.5.15-beta.12", - "@steedos/auth": "2.5.15-beta.12", - "@steedos/core": "2.5.15-beta.12", - "@steedos/filters": "2.5.15-beta.12", - "@steedos/i18n": "2.5.15-beta.12", - "@steedos/meteor-bundle-dependencies": "2.5.15-beta.12", - "@steedos/meteor-bundle-runner": "2.5.15-beta.12", - "@steedos/objectql": "2.5.15-beta.12", - "@steedos/odata-v4-mongodb": "2.5.15-beta.12", - "@steedos/odata-v4-parser": "2.5.15-beta.12", - "@steedos/process": "2.5.15-beta.12", - "@steedos/standard-objects": "2.5.15-beta.12", + "@steedos/accounts": "2.5.15-beta.14", + "@steedos/auth": "2.5.15-beta.14", + "@steedos/core": "2.5.15-beta.14", + "@steedos/filters": "2.5.15-beta.14", + "@steedos/i18n": "2.5.15-beta.14", + "@steedos/meteor-bundle-dependencies": "2.5.15-beta.14", + "@steedos/meteor-bundle-runner": "2.5.15-beta.14", + "@steedos/objectql": "2.5.15-beta.14", + "@steedos/odata-v4-mongodb": "2.5.15-beta.14", + "@steedos/odata-v4-parser": "2.5.15-beta.14", + "@steedos/process": "2.5.15-beta.14", + "@steedos/standard-objects": "2.5.15-beta.14", "@steedos/webapp": "2.2.25", "basic-auth": "^2.0.1", "bcryptjs": "^2.4.3", @@ -86,5 +86,5 @@ "xiaomi-push": "^1.0.0", "xml2js": "^0.4.19" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-accounts/package.json b/services/service-accounts/package.json index 43e436b2e8..dffa8b662a 100644 --- a/services/service-accounts/package.json +++ b/services/service-accounts/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-accounts", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "license": "MIT", "dependencies": { @@ -10,5 +10,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-ancillary/package.json b/services/service-ancillary/package.json index dfa50d8347..6626b51a4f 100644 --- a/services/service-ancillary/package.json +++ b/services/service-ancillary/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-ancillary", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "package.service.js", "scripts": { @@ -17,5 +17,5 @@ "express-xml-bodyparser": "0.3.0", "xml2js": "0.4.23" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-api/package.json b/services/service-api/package.json index c08045acc4..fc7bffb4c0 100644 --- a/services/service-api/package.json +++ b/services/service-api/package.json @@ -1,13 +1,13 @@ { "name": "@steedos/service-api", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "index.js", "license": "MIT", "dependencies": { - "@steedos/auth": "2.5.15-beta.12", - "@steedos/router": "2.5.15-beta.12", - "@steedos/service-object-graphql": "2.5.15-beta.12", - "@steedos/service-ui": "2.5.15-beta.12", + "@steedos/auth": "2.5.15-beta.14", + "@steedos/router": "2.5.15-beta.14", + "@steedos/service-object-graphql": "2.5.15-beta.14", + "@steedos/service-ui": "2.5.15-beta.14", "graphql": "^15.8.0", "graphql-iso-date": "^3.6.1", "graphql-type-json": "^0.3.2", @@ -22,7 +22,7 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609", + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c", "devDependencies": { "@types/graphql-iso-date": "^3.4.0", "@types/react-dev-utils": "^9.0.11" diff --git a/services/service-cachers-manager/package.json b/services/service-cachers-manager/package.json index e5cbad3fe6..8dea264ae8 100644 --- a/services/service-cachers-manager/package.json +++ b/services/service-cachers-manager/package.json @@ -1,15 +1,15 @@ { "name": "@steedos/service-cachers-manager", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "license": "MIT", "private": false, "dependencies": { - "@steedos/cachers": "2.5.15-beta.12", - "@steedos/metadata-registrar": "2.5.15-beta.12" + "@steedos/cachers": "2.5.15-beta.14", + "@steedos/metadata-registrar": "2.5.15-beta.14" }, "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-charts/package.json b/services/service-charts/package.json index 2688bfe5ba..90878f885b 100644 --- a/services/service-charts/package.json +++ b/services/service-charts/package.json @@ -1,7 +1,7 @@ { "name": "@steedos/service-charts", "private": false, - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "自定义查询", "main": "package.service.js", "repository": { @@ -17,9 +17,9 @@ "pub_next": "npm publish --tag next --registry https://registry.npmjs.org && start https://npm.taobao.org/sync/@steedos/app-admin" }, "devDependencies": { - "@steedos/service-metadata-server": "2.5.15-beta.12", - "@steedos/service-package-loader": "2.5.15-beta.12", - "@steedos/service-steedos-server": "2.5.15-beta.12", + "@steedos/service-metadata-server": "2.5.15-beta.14", + "@steedos/service-package-loader": "2.5.15-beta.14", + "@steedos/service-steedos-server": "2.5.15-beta.14", "cross-env": "^7.0.3", "dotenv-flow": "^3.2.0", "ioredis": "^4.22.0", @@ -34,7 +34,7 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609", + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c", "dependencies": { "duration": "^0.2.2", "json2csv": "5.0.6", diff --git a/services/service-community/package.json b/services/service-community/package.json index 31db7b437d..92b00b1bbf 100644 --- a/services/service-community/package.json +++ b/services/service-community/package.json @@ -1,7 +1,7 @@ { "name": "@steedos/service-community", "main": "package.service.js", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "private": false, "repository": "https://github.com/steedos/steedos-platform.git", "description": "", @@ -11,27 +11,27 @@ "author": "steedos", "license": "MIT", "dependencies": { - "@steedos/ee_sso-oidc": "2.5.15-beta.12", - "@steedos/service-analytics": "2.5.15-beta.12", - "@steedos/service-ancillary": "2.5.15-beta.12", - "@steedos/service-charts": "2.5.15-beta.12", - "@steedos/service-i18n": "2.5.15-beta.12", - "@steedos/service-identity-jwt": "2.5.15-beta.12", - "@steedos/service-metadata-server": "2.5.15-beta.12", - "@steedos/service-mongodb-server": "2.5.15-beta.12", - "@steedos/service-objectql": "2.5.15-beta.12", - "@steedos/service-package-loader": "2.5.15-beta.12", - "@steedos/service-package-registry": "2.5.15-beta.12", - "@steedos/service-package-tool": "2.5.15-beta.12", - "@steedos/service-pages": "2.5.15-beta.12", - "@steedos/service-rest": "2.5.15-beta.12", - "@steedos/service-saas": "2.5.15-beta.12", - "@steedos/service-sentry": "2.5.15-beta.12", - "@steedos/service-sidecar": "2.5.15-beta.12", - "@steedos/service-steedos-server": "2.5.15-beta.12", - "@steedos/steedos-plugin-schema-builder": "2.5.15-beta.12", - "@steedos/unpkg": "2.5.15-beta.12", - "@steedos/workflow_time_trigger": "2.5.15-beta.12", + "@steedos/ee_sso-oidc": "2.5.15-beta.14", + "@steedos/service-analytics": "2.5.15-beta.14", + "@steedos/service-ancillary": "2.5.15-beta.14", + "@steedos/service-charts": "2.5.15-beta.14", + "@steedos/service-i18n": "2.5.15-beta.14", + "@steedos/service-identity-jwt": "2.5.15-beta.14", + "@steedos/service-metadata-server": "2.5.15-beta.14", + "@steedos/service-mongodb-server": "2.5.15-beta.14", + "@steedos/service-objectql": "2.5.15-beta.14", + "@steedos/service-package-loader": "2.5.15-beta.14", + "@steedos/service-package-registry": "2.5.15-beta.14", + "@steedos/service-package-tool": "2.5.15-beta.14", + "@steedos/service-pages": "2.5.15-beta.14", + "@steedos/service-rest": "2.5.15-beta.14", + "@steedos/service-saas": "2.5.15-beta.14", + "@steedos/service-sentry": "2.5.15-beta.14", + "@steedos/service-sidecar": "2.5.15-beta.14", + "@steedos/service-steedos-server": "2.5.15-beta.14", + "@steedos/steedos-plugin-schema-builder": "2.5.15-beta.14", + "@steedos/unpkg": "2.5.15-beta.14", + "@steedos/workflow_time_trigger": "2.5.15-beta.14", "aliyun-sdk": "1.12.3", "async-retry": "^1.3.1", "axios": "^0.21.1", @@ -64,7 +64,7 @@ "randomcolor": "^0.6.2", "randomstring": "^1.2.1", "redlock": "^4.2.0", - "steedos-cli": "2.5.15-beta.12", + "steedos-cli": "2.5.15-beta.14", "tslib": "^2.4.0", "validator": "^13.6.0" }, @@ -72,5 +72,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-fields-indexs/package.json b/services/service-fields-indexs/package.json index f3bc799dba..03d33e128a 100644 --- a/services/service-fields-indexs/package.json +++ b/services/service-fields-indexs/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-fields-indexs", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "license": "MIT", "dependencies": { @@ -10,5 +10,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-files/package.json b/services/service-files/package.json index d5fb6f9bca..6496b6f6b0 100644 --- a/services/service-files/package.json +++ b/services/service-files/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-files", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "scripts": {}, "license": "MIT", @@ -15,5 +15,5 @@ "mkdirp": "^1.0.4", "moment": "^2.29.1" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-i18n/package.json b/services/service-i18n/package.json index 73b3bced72..1a90fc4826 100644 --- a/services/service-i18n/package.json +++ b/services/service-i18n/package.json @@ -1,7 +1,7 @@ { "name": "@steedos/service-i18n", "main": "package.service.js", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "private": false, "repository": "https://github.com/steedos/steedos-platform.git", "description": "", @@ -14,5 +14,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-identity-jwt/package.json b/services/service-identity-jwt/package.json index 90612238b7..1c9a8180ec 100644 --- a/services/service-identity-jwt/package.json +++ b/services/service-identity-jwt/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-identity-jwt", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "keywords": [ "steedos" @@ -11,7 +11,7 @@ "description": "steedos package", "repository": {}, "dependencies": { - "@steedos/accounts": "2.5.15-beta.12", + "@steedos/accounts": "2.5.15-beta.14", "express": "4.18.1", "jsonwebtoken": "8.5.1", "passport": "^0.6.0", @@ -22,5 +22,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-metadata-apps/package.json b/services/service-metadata-apps/package.json index d9349adbfa..c42925f339 100644 --- a/services/service-metadata-apps/package.json +++ b/services/service-metadata-apps/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-metadata-apps", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "lib/apps.service.js", "scripts": { @@ -19,8 +19,8 @@ "author": "", "license": "MIT", "dependencies": { - "@steedos/i18n": "2.5.15-beta.12", - "@steedos/objectql": "2.5.15-beta.12", + "@steedos/i18n": "2.5.15-beta.14", + "@steedos/objectql": "2.5.15-beta.14", "dotenv-flow": "^3.1.0", "ioredis": "^4.22.0", "lodash": "^4.17.21", @@ -34,5 +34,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-metadata-layouts/package.json b/services/service-metadata-layouts/package.json index b2e4779cff..6a98f25237 100644 --- a/services/service-metadata-layouts/package.json +++ b/services/service-metadata-layouts/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-metadata-layouts", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "lib/layouts.service.js", "scripts": { @@ -33,5 +33,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-metadata-objects/package.json b/services/service-metadata-objects/package.json index 7028fd28d7..c5ce367120 100644 --- a/services/service-metadata-objects/package.json +++ b/services/service-metadata-objects/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-metadata-objects", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "lib/objects.service.js", "scripts": { @@ -20,9 +20,9 @@ "license": "MIT", "dependencies": { "@salesforce/ts-types": "1.1.2", - "@steedos/formula": "2.5.15-beta.12", - "@steedos/i18n": "2.5.15-beta.12", - "@steedos/metadata-registrar": "2.5.15-beta.12", + "@steedos/formula": "2.5.15-beta.14", + "@steedos/i18n": "2.5.15-beta.14", + "@steedos/metadata-registrar": "2.5.15-beta.14", "dotenv-flow": "^3.1.0", "ioredis": "^4.22.0", "lodash": "^4.17.21", @@ -37,5 +37,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-metadata-permissionsets/package.json b/services/service-metadata-permissionsets/package.json index 51d9a273a5..df15e4d5f7 100644 --- a/services/service-metadata-permissionsets/package.json +++ b/services/service-metadata-permissionsets/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-metadata-permissionsets", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "lib/permissionsets.service.js", "scripts": { @@ -32,5 +32,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-metadata-server/package.json b/services/service-metadata-server/package.json index 4b37830634..8c3c751962 100644 --- a/services/service-metadata-server/package.json +++ b/services/service-metadata-server/package.json @@ -1,22 +1,22 @@ { "name": "@steedos/service-metadata-server", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "index.js", "license": "MIT", "scripts": { "build": "rm -rf ./lib && tsc" }, "dependencies": { - "@steedos/objectql": "2.5.15-beta.12", - "@steedos/service-metadata": "2.5.15-beta.12", - "@steedos/service-metadata-apps": "2.5.15-beta.12", - "@steedos/service-metadata-layouts": "2.5.15-beta.12", - "@steedos/service-metadata-objects": "2.5.15-beta.12", - "@steedos/service-metadata-permissionsets": "2.5.15-beta.12", - "@steedos/service-metadata-tabs": "2.5.15-beta.12", - "@steedos/service-metadata-translations": "2.5.15-beta.12", - "@steedos/service-metadata-triggers": "2.5.15-beta.12", - "@steedos/service-packages": "2.5.15-beta.12", + "@steedos/objectql": "2.5.15-beta.14", + "@steedos/service-metadata": "2.5.15-beta.14", + "@steedos/service-metadata-apps": "2.5.15-beta.14", + "@steedos/service-metadata-layouts": "2.5.15-beta.14", + "@steedos/service-metadata-objects": "2.5.15-beta.14", + "@steedos/service-metadata-permissionsets": "2.5.15-beta.14", + "@steedos/service-metadata-tabs": "2.5.15-beta.14", + "@steedos/service-metadata-translations": "2.5.15-beta.14", + "@steedos/service-metadata-triggers": "2.5.15-beta.14", + "@steedos/service-packages": "2.5.15-beta.14", "lodash": "^4.17.21", "underscore": "1.13.4" }, @@ -27,5 +27,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-metadata-tabs/package.json b/services/service-metadata-tabs/package.json index 4ccc0fe165..87e163944f 100644 --- a/services/service-metadata-tabs/package.json +++ b/services/service-metadata-tabs/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-metadata-tabs", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "lib/tabs.service.js", "scripts": { @@ -32,5 +32,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-metadata-translations/package.json b/services/service-metadata-translations/package.json index 7a9c1004d5..e38b4a6c28 100644 --- a/services/service-metadata-translations/package.json +++ b/services/service-metadata-translations/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-metadata-translations", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "lib/translations.service.js", "scripts": { @@ -19,7 +19,7 @@ "author": "", "license": "MIT", "dependencies": { - "@steedos/metadata-registrar": "2.5.15-beta.12", + "@steedos/metadata-registrar": "2.5.15-beta.14", "dotenv-flow": "^3.1.0", "ioredis": "^4.22.0", "lodash": "^4.17.21", @@ -33,5 +33,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-metadata-triggers/package.json b/services/service-metadata-triggers/package.json index 1eadb926b9..65cc4e812a 100644 --- a/services/service-metadata-triggers/package.json +++ b/services/service-metadata-triggers/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-metadata-triggers", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "lib/triggers2.service.js", "scripts": { @@ -33,5 +33,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-metadata/package.json b/services/service-metadata/package.json index ea6713f5bd..9d89a4c559 100644 --- a/services/service-metadata/package.json +++ b/services/service-metadata/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-metadata", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "lib/metadata.service.js", "scripts": { @@ -18,7 +18,7 @@ "author": "", "license": "MIT", "dependencies": { - "@steedos/metadata-registrar": "2.5.15-beta.12", + "@steedos/metadata-registrar": "2.5.15-beta.14", "dotenv-flow": "^3.1.0", "ioredis": "^4.22.0", "lodash": "^4.17.21", @@ -33,5 +33,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-meteor-package-loader/package.json b/services/service-meteor-package-loader/package.json index 12ed1e00e7..84b5a94aea 100644 --- a/services/service-meteor-package-loader/package.json +++ b/services/service-meteor-package-loader/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-meteor-package-loader", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "index.js", "scripts": { @@ -10,10 +10,10 @@ "author": "", "license": "MIT", "dependencies": { - "@steedos/metadata-core": "2.5.15-beta.12", - "@steedos/objectql": "2.5.15-beta.12", - "@steedos/router": "2.5.15-beta.12", - "@steedos/service-package-loader": "2.5.15-beta.12", + "@steedos/metadata-core": "2.5.15-beta.14", + "@steedos/objectql": "2.5.15-beta.14", + "@steedos/router": "2.5.15-beta.14", + "@steedos/service-package-loader": "2.5.15-beta.14", "clone": "^2.1.2", "moleculer": "^0.14.25", "underscore": "^1.12.0" @@ -25,5 +25,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-mongodb-server/package.json b/services/service-mongodb-server/package.json index 17c395c953..e95ea392aa 100644 --- a/services/service-mongodb-server/package.json +++ b/services/service-mongodb-server/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-mongodb-server", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "index.js", "license": "MIT", "dependencies": { @@ -10,5 +10,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-node-red/package.json b/services/service-node-red/package.json index 248955078d..03e37b62f3 100644 --- a/services/service-node-red/package.json +++ b/services/service-node-red/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-node-red", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "index.js", "scripts": { "start": "moleculer-runner --repl --hot ./index.js" @@ -13,5 +13,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-object-graphql/package.json b/services/service-object-graphql/package.json index 2d025c9b55..d13de7bac7 100644 --- a/services/service-object-graphql/package.json +++ b/services/service-object-graphql/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-object-graphql", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "private": false, "publishConfig": { @@ -15,12 +15,12 @@ "description": "steedos package", "repository": {}, "license": "MIT", - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609", + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c", "dependencies": { - "@steedos/filters": "2.5.15-beta.12", - "@steedos/i18n": "2.5.15-beta.12", - "@steedos/objectql": "2.5.15-beta.12", - "@steedos/service-object-mixin": "2.5.15-beta.12", + "@steedos/filters": "2.5.15-beta.14", + "@steedos/i18n": "2.5.15-beta.14", + "@steedos/objectql": "2.5.15-beta.14", + "@steedos/service-object-mixin": "2.5.15-beta.14", "graphql": "^15.8.0", "graphql-parse-resolve-info": "^4.12.3", "moleculer": "^0.14.25", diff --git a/services/service-object-mixin/package.json b/services/service-object-mixin/package.json index 1912d4754e..0b617c845e 100644 --- a/services/service-object-mixin/package.json +++ b/services/service-object-mixin/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-object-mixin", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "private": false, "publishConfig": { @@ -13,5 +13,5 @@ "description": "steedos package", "repository": {}, "license": "MIT", - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-objectql/package.json b/services/service-objectql/package.json index 53288f8034..4c594a6c33 100644 --- a/services/service-objectql/package.json +++ b/services/service-objectql/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-objectql", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "private": false, "publishConfig": { @@ -13,8 +13,8 @@ "description": "steedos package", "repository": {}, "license": "MIT", - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609", + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c", "dependencies": { - "@steedos/objectql": "2.5.15-beta.12" + "@steedos/objectql": "2.5.15-beta.14" } } diff --git a/services/service-package-loader/package.json b/services/service-package-loader/package.json index a78b309fd0..7ab30f884d 100644 --- a/services/service-package-loader/package.json +++ b/services/service-package-loader/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-package-loader", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "index.js", "scripts": { @@ -10,9 +10,9 @@ "author": "", "license": "MIT", "dependencies": { - "@steedos/metadata-core": "2.5.15-beta.12", - "@steedos/metadata-registrar": "2.5.15-beta.12", - "@steedos/router": "2.5.15-beta.12", + "@steedos/metadata-core": "2.5.15-beta.14", + "@steedos/metadata-registrar": "2.5.15-beta.14", + "@steedos/router": "2.5.15-beta.14", "clone": "^2.1.2", "moleculer": "^0.14.25", "underscore": "^1.12.0" @@ -24,5 +24,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-package-registry/package.json b/services/service-package-registry/package.json index ae026a9901..223ced2cec 100644 --- a/services/service-package-registry/package.json +++ b/services/service-package-registry/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-package-registry", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "package.service.js", "scripts": { @@ -9,11 +9,11 @@ "author": "", "license": "ISC", "dependencies": { - "@steedos/auth": "2.5.15-beta.12", - "@steedos/core": "2.5.15-beta.12", - "@steedos/metadata-core": "2.5.15-beta.12", - "@steedos/objectql": "2.5.15-beta.12", - "@steedos/service-package-loader": "2.5.15-beta.12", + "@steedos/auth": "2.5.15-beta.14", + "@steedos/core": "2.5.15-beta.14", + "@steedos/metadata-core": "2.5.15-beta.14", + "@steedos/objectql": "2.5.15-beta.14", + "@steedos/service-package-loader": "2.5.15-beta.14", "fs-extra": "8.1.0", "i18next": "20.3.2", "json-stringify-safe": "5.0.1", @@ -31,5 +31,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-package-tool/package.json b/services/service-package-tool/package.json index 5ae28b4ec2..54ef9d3293 100644 --- a/services/service-package-tool/package.json +++ b/services/service-package-tool/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-package-tool", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "", "main": "package.service.js", "scripts": { @@ -9,11 +9,11 @@ "author": "", "license": "ISC", "dependencies": { - "@steedos/auth": "2.5.15-beta.12", - "@steedos/core": "2.5.15-beta.12", - "@steedos/metadata-core": "2.5.15-beta.12", - "@steedos/objectql": "2.5.15-beta.12", - "@steedos/service-package-loader": "2.5.15-beta.12", + "@steedos/auth": "2.5.15-beta.14", + "@steedos/core": "2.5.15-beta.14", + "@steedos/metadata-core": "2.5.15-beta.14", + "@steedos/objectql": "2.5.15-beta.14", + "@steedos/service-package-loader": "2.5.15-beta.14", "fs-extra": "8.1.0", "i18next": "20.3.2", "json-stringify-safe": "5.0.1", @@ -31,5 +31,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-packages/package.json b/services/service-packages/package.json index b4bae0a9e6..626e7a6f29 100644 --- a/services/service-packages/package.json +++ b/services/service-packages/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-packages", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "index.js", "scripts": {}, "license": "MIT", @@ -8,5 +8,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-pages/package.json b/services/service-pages/package.json index f1e488a210..9931071c3c 100644 --- a/services/service-pages/package.json +++ b/services/service-pages/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-pages", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "scripts": {}, "license": "MIT", @@ -8,7 +8,7 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609", + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c", "dependencies": { "ejs": "^3.1.8" } diff --git a/services/service-plugin-amis/package.json b/services/service-plugin-amis/package.json index bf3937a9ab..925b1101f9 100644 --- a/services/service-plugin-amis/package.json +++ b/services/service-plugin-amis/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-plugin-amis", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "scripts": { "build": "yarn build:tailwind-base && yarn build:tailwind", @@ -13,7 +13,7 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609", + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c", "devDependencies": { "tailwindcss": "3.2.4" } diff --git a/services/service-push/package.json b/services/service-push/package.json index 1de07f8f1d..d73a172341 100644 --- a/services/service-push/package.json +++ b/services/service-push/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-push", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "A Steedos App", "main": "package.service.js", "license": "MIT", @@ -9,5 +9,5 @@ "access": "public" }, "scripts": {}, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-rest/package.json b/services/service-rest/package.json index 0fd44e1c98..16f95ce797 100644 --- a/services/service-rest/package.json +++ b/services/service-rest/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-rest", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "private": false, "publishConfig": { @@ -16,9 +16,9 @@ "repository": {}, "license": "MIT", "dependencies": { - "@steedos/objectql": "2.5.15-beta.12", - "@steedos/service-object-mixin": "2.5.15-beta.12", + "@steedos/objectql": "2.5.15-beta.14", + "@steedos/service-object-mixin": "2.5.15-beta.14", "lodash": "^4.17.21" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-saas/package.json b/services/service-saas/package.json index 5b850f766e..2b8613a741 100644 --- a/services/service-saas/package.json +++ b/services/service-saas/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-saas", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "private": false, "publishConfig": { @@ -12,5 +12,5 @@ "description": "steedos package", "repository": {}, "license": "MIT", - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-sentry/package.json b/services/service-sentry/package.json index e79ee8ed60..f08664fc8e 100644 --- a/services/service-sentry/package.json +++ b/services/service-sentry/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-sentry", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "license": "MIT", "dependencies": { @@ -12,5 +12,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-sidercar/package.json b/services/service-sidercar/package.json index 58ed735bc1..d22e708f84 100644 --- a/services/service-sidercar/package.json +++ b/services/service-sidercar/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-sidecar", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "index.js", "license": "MIT", "dependencies": { @@ -13,5 +13,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-steedos-server/package.json b/services/service-steedos-server/package.json index 9b89638bee..7bcbf2b782 100644 --- a/services/service-steedos-server/package.json +++ b/services/service-steedos-server/package.json @@ -1,46 +1,46 @@ { "name": "@steedos/service-steedos-server", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "index.js", "license": "MIT", "dependencies": { - "@steedos/accounts": "2.5.15-beta.12", - "@steedos/core": "2.5.15-beta.12", - "@steedos/data-import": "2.5.15-beta.12", - "@steedos/metadata-api": "2.5.15-beta.12", - "@steedos/meteor-bundle-runner": "2.5.15-beta.12", - "@steedos/plugin-company": "2.5.15-beta.12", - "@steedos/service-accounts": "2.5.15-beta.12", - "@steedos/service-api": "2.5.15-beta.12", - "@steedos/service-cachers-manager": "2.5.15-beta.12", - "@steedos/service-charts": "2.5.15-beta.12", - "@steedos/service-fields-indexs": "2.5.15-beta.12", - "@steedos/service-files": "2.5.15-beta.12", - "@steedos/service-meteor-package-loader": "2.5.15-beta.12", - "@steedos/service-pages": "2.5.15-beta.12", - "@steedos/service-plugin-amis": "2.5.15-beta.12", - "@steedos/service-ui": "2.5.15-beta.12", - "@steedos/service-workflow": "2.5.15-beta.12", - "@steedos/standard-collaboration": "2.5.15-beta.12", - "@steedos/standard-object-database": "2.5.15-beta.12", - "@steedos/standard-permission": "2.5.15-beta.12", - "@steedos/standard-process": "2.5.15-beta.12", - "@steedos/standard-process-approval": "2.5.15-beta.12", - "@steedos/standard-space": "2.5.15-beta.12", - "@steedos/standard-ui": "2.5.15-beta.12", - "@steedos/unpkg": "2.5.15-beta.12", - "@steedos/webapp-accounts": "2.5.15-beta.12", - "@steedos/webapp-public": "2.5.15-beta.12", - "@steedos/workflow": "2.5.15-beta.12", + "@steedos/accounts": "2.5.15-beta.14", + "@steedos/core": "2.5.15-beta.14", + "@steedos/data-import": "2.5.15-beta.14", + "@steedos/metadata-api": "2.5.15-beta.14", + "@steedos/meteor-bundle-runner": "2.5.15-beta.14", + "@steedos/plugin-company": "2.5.15-beta.14", + "@steedos/service-accounts": "2.5.15-beta.14", + "@steedos/service-api": "2.5.15-beta.14", + "@steedos/service-cachers-manager": "2.5.15-beta.14", + "@steedos/service-charts": "2.5.15-beta.14", + "@steedos/service-fields-indexs": "2.5.15-beta.14", + "@steedos/service-files": "2.5.15-beta.14", + "@steedos/service-meteor-package-loader": "2.5.15-beta.14", + "@steedos/service-pages": "2.5.15-beta.14", + "@steedos/service-plugin-amis": "2.5.15-beta.14", + "@steedos/service-ui": "2.5.15-beta.14", + "@steedos/service-workflow": "2.5.15-beta.14", + "@steedos/standard-collaboration": "2.5.15-beta.14", + "@steedos/standard-object-database": "2.5.15-beta.14", + "@steedos/standard-permission": "2.5.15-beta.14", + "@steedos/standard-process": "2.5.15-beta.14", + "@steedos/standard-process-approval": "2.5.15-beta.14", + "@steedos/standard-space": "2.5.15-beta.14", + "@steedos/standard-ui": "2.5.15-beta.14", + "@steedos/unpkg": "2.5.15-beta.14", + "@steedos/webapp-accounts": "2.5.15-beta.14", + "@steedos/webapp-public": "2.5.15-beta.14", + "@steedos/workflow": "2.5.15-beta.14", "dotenv-flow": "^3.2.0", "moleculer": "^0.14.25", "moleculer-db": "^0.8.4", "moleculer-web": "^0.10.4", - "steedos-server": "2.5.15-beta.12" + "steedos-server": "2.5.15-beta.14" }, "private": false, "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-ui/package.json b/services/service-ui/package.json index 57d00a125e..51965b3f08 100644 --- a/services/service-ui/package.json +++ b/services/service-ui/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-ui", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "keywords": [ "steedos" @@ -11,9 +11,9 @@ "description": "steedos package", "repository": {}, "dependencies": { - "@steedos/core": "2.5.15-beta.12", - "@steedos/i18n": "2.5.15-beta.12", - "@steedos/objectql": "2.5.15-beta.12", + "@steedos/core": "2.5.15-beta.14", + "@steedos/i18n": "2.5.15-beta.14", + "@steedos/objectql": "2.5.15-beta.14", "express": "4.18.1" }, "license": "MIT", @@ -21,5 +21,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/service-workflow/package.json b/services/service-workflow/package.json index 2d671c579c..fe8a1d1529 100644 --- a/services/service-workflow/package.json +++ b/services/service-workflow/package.json @@ -1,11 +1,11 @@ { "name": "@steedos/service-workflow", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "license": "MIT", "dependencies": { - "@steedos/service-object-graphql": "2.5.15-beta.12", - "@steedos/workflow": "2.5.15-beta.12", + "@steedos/service-object-graphql": "2.5.15-beta.14", + "@steedos/workflow": "2.5.15-beta.14", "lodash": "^4.17.21", "node-schedule": "^2.0.0" }, @@ -13,5 +13,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/standard-cms/package.json b/services/standard-cms/package.json index a0b70d4fff..948e4ace33 100644 --- a/services/standard-cms/package.json +++ b/services/standard-cms/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/standard-cms", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "private": false, "publishConfig": { @@ -12,5 +12,5 @@ "description": "steedos package", "repository": {}, "license": "MIT", - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/standard-collaboration/package.json b/services/standard-collaboration/package.json index 5ce4e97590..cbbccbea7c 100644 --- a/services/standard-collaboration/package.json +++ b/services/standard-collaboration/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/standard-collaboration", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "private": false, "publishConfig": { @@ -12,5 +12,5 @@ "description": "steedos package", "repository": {}, "license": "MIT", - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/standard-object-database/package.json b/services/standard-object-database/package.json index f38ee1d2dc..494b790081 100644 --- a/services/standard-object-database/package.json +++ b/services/standard-object-database/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/standard-object-database", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "private": false, "publishConfig": { @@ -15,5 +15,5 @@ }, "repository": {}, "license": "MIT", - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/standard-permission/package.json b/services/standard-permission/package.json index 098a7c8689..330cd356f5 100644 --- a/services/standard-permission/package.json +++ b/services/standard-permission/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/standard-permission", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "private": false, "publishConfig": { @@ -12,5 +12,5 @@ "description": "steedos package", "repository": {}, "license": "MIT", - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/standard-process-approval/package.json b/services/standard-process-approval/package.json index ec74dfc9f1..fbc2d67fc1 100644 --- a/services/standard-process-approval/package.json +++ b/services/standard-process-approval/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/standard-process-approval", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "private": false, "publishConfig": { @@ -10,10 +10,10 @@ "steedos" ], "dependencies": { - "@steedos/process": "2.5.15-beta.12" + "@steedos/process": "2.5.15-beta.14" }, "description": "steedos package", "repository": {}, "license": "MIT", - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/standard-space/package.json b/services/standard-space/package.json index 7e1080e8d2..fc13975a37 100644 --- a/services/standard-space/package.json +++ b/services/standard-space/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/standard-space", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "private": false, "publishConfig": { @@ -10,11 +10,11 @@ "steedos" ], "dependencies": { - "@steedos/objectql": "2.5.15-beta.12", - "@steedos/service-meteor-package-loader": "2.5.15-beta.12" + "@steedos/objectql": "2.5.15-beta.14", + "@steedos/service-meteor-package-loader": "2.5.15-beta.14" }, "description": "steedos package", "repository": {}, "license": "MIT", - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/standard-ui/package.json b/services/standard-ui/package.json index befbbbf8db..82f9db2dd5 100644 --- a/services/standard-ui/package.json +++ b/services/standard-ui/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/standard-ui", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "private": false, "publishConfig": { @@ -12,5 +12,5 @@ "description": "steedos package", "repository": {}, "license": "MIT", - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/services/workflow_time_trigger/package.json b/services/workflow_time_trigger/package.json index d4cefa1040..50b9acc199 100644 --- a/services/workflow_time_trigger/package.json +++ b/services/workflow_time_trigger/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/workflow_time_trigger", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "scripts": {}, "license": "MIT", @@ -12,5 +12,5 @@ "eval": "0.1.8", "node-schedule": "2.1.0" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/steedos-packages/service-analytics/package.json b/steedos-packages/service-analytics/package.json index 04c4fdea46..b920fff5df 100644 --- a/steedos-packages/service-analytics/package.json +++ b/steedos-packages/service-analytics/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/service-analytics", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "description": "Analytics for product", "scripts": {}, @@ -9,5 +9,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/steedos-packages/standard-process/package.json b/steedos-packages/standard-process/package.json index 33e6911a03..82ae97d613 100644 --- a/steedos-packages/standard-process/package.json +++ b/steedos-packages/standard-process/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/standard-process", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "scripts": {}, "license": "MIT", @@ -11,5 +11,5 @@ "dependencies": { "lodash": "^4.17.21" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/steedos-packages/unpkg/package.json b/steedos-packages/unpkg/package.json index 257cf330ea..5ab6598ce8 100644 --- a/steedos-packages/unpkg/package.json +++ b/steedos-packages/unpkg/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/unpkg", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "scripts": {}, "license": "MIT", @@ -8,5 +8,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/steedos-packages/webapp-accounts/package.json b/steedos-packages/webapp-accounts/package.json index 42b2fc095e..19ef9ce542 100644 --- a/steedos-packages/webapp-accounts/package.json +++ b/steedos-packages/webapp-accounts/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/webapp-accounts", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "scripts": {}, "files": [ @@ -15,5 +15,5 @@ "dependencies": { "lodash": "^4.17.21" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/steedos-packages/webapp-desktop/package.json b/steedos-packages/webapp-desktop/package.json index 418b274c76..de8f26940a 100644 --- a/steedos-packages/webapp-desktop/package.json +++ b/steedos-packages/webapp-desktop/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/webapp-desktop", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "description": "A Steedos App", "main": "package.service.js", "license": "MIT", @@ -9,5 +9,5 @@ "access": "public" }, "scripts": {}, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" } diff --git a/steedos-packages/webapp-public/package.json b/steedos-packages/webapp-public/package.json index dbfdda63a7..6f11803f8c 100644 --- a/steedos-packages/webapp-public/package.json +++ b/steedos-packages/webapp-public/package.json @@ -1,6 +1,6 @@ { "name": "@steedos/webapp-public", - "version": "2.5.15-beta.12", + "version": "2.5.15-beta.14", "main": "package.service.js", "description": "public assets for steedos", "scripts": {}, @@ -12,5 +12,5 @@ "dependencies": { "lodash": "^4.17.21" }, - "gitHead": "ecaaf3d634f64221c7f4560a8c523341e993c609" + "gitHead": "7b6dc80eeda6a50f30bbbd3185cfb49c6bdcf32c" }