From d067ee338d0d34cb2e3f70847748aa1115a81861 Mon Sep 17 00:00:00 2001 From: Martin Rode Date: Mon, 22 Feb 2021 09:17:57 +0100 Subject: [PATCH] Compiled code & package.json --- package-lock.json | 490 +++++++++++++++++++++++----------------------- public/cui.js | 151 +++++++------- public/cui.min.js | 2 +- 3 files changed, 318 insertions(+), 325 deletions(-) diff --git a/package-lock.json b/package-lock.json index d34e31e4..94825345 100644 --- a/package-lock.json +++ b/package-lock.json @@ -876,7 +876,7 @@ }, "ansi-escapes": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.1.0.tgz", + "resolved": "http://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.1.0.tgz", "integrity": "sha512-UgAb8H9D41AQnu/PbWlCofQVcnV4Gs2bBJi9eZPxfU/hgglFh3SMDMENRIqdr7H6XFnXdoknctFByVsCOotTVw==", "dev": true }, @@ -968,13 +968,13 @@ "dependencies": { "underscore": { "version": "1.7.0", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", + "resolved": "http://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=", "dev": true }, "underscore.string": { "version": "2.4.0", - "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.4.0.tgz", + "resolved": "http://registry.npmjs.org/underscore.string/-/underscore.string-2.4.0.tgz", "integrity": "sha1-jN2PusTi0uoefi6Al8QvRCKA+Fs=", "dev": true } @@ -1001,7 +1001,7 @@ "arr-flatten": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "integrity": "sha1-NgSLv/TntH4TZkQxbJlmnqWukfE=", "dev": true }, "arr-map": { @@ -1033,7 +1033,7 @@ }, "array-equal": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-equal/-/array-equal-1.0.0.tgz", + "resolved": "http://registry.npmjs.org/array-equal/-/array-equal-1.0.0.tgz", "integrity": "sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM=", "dev": true }, @@ -1134,7 +1134,7 @@ "asn1": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", - "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "integrity": "sha1-jSR136tVO7M+d7VOWeiAu4ziMTY=", "dev": true, "requires": { "safer-buffer": "~2.1.0" @@ -1199,13 +1199,13 @@ "astral-regex": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", - "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", + "integrity": "sha1-bIw/uCfdQ+45GPJ7gngqt2WKb9k=", "dev": true }, "async": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/async/-/async-2.6.1.tgz", - "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==", + "integrity": "sha1-skWiPKcZMAROxT+kaqAKPofGphA=", "dev": true, "requires": { "lodash": "^4.17.10" @@ -1247,7 +1247,7 @@ "atob": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "integrity": "sha1-bZUX654DDSQ2ZmZR6GvZ9vE1M8k=", "dev": true }, "autoprefixer": { @@ -1351,7 +1351,7 @@ "aws4": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", - "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", + "integrity": "sha1-8OAD2cqef1nHpQiUXXsu+aBKVC8=", "dev": true }, "babel-code-frame": { @@ -1368,7 +1368,7 @@ "babel-core": { "version": "6.26.3", "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", - "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", + "integrity": "sha1-suLwnjQtDwyI4vAuBneUEl51wgc=", "dev": true, "requires": { "babel-code-frame": "^6.26.0", @@ -1395,7 +1395,7 @@ "babel-generator": { "version": "6.26.1", "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", - "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", + "integrity": "sha1-GERAjTuPDTWkBOp6wYDwh6YBvZA=", "dev": true, "requires": { "babel-messages": "^6.23.0", @@ -1421,7 +1421,7 @@ "babel-jest": { "version": "21.2.0", "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-21.2.0.tgz", - "integrity": "sha512-O0W2qLoWu1QOoOGgxiR2JID4O6WSpxPiQanrkyi9SSlM0PJ60Ptzlck47lhtnr9YZO3zYOsxHwnyeWJ6AffoBQ==", + "integrity": "sha1-LOBZUZqTdKLEbyRVtvvvWtddhj4=", "dev": true, "requires": { "babel-plugin-istanbul": "^4.0.0", @@ -1439,7 +1439,7 @@ }, "babel-plugin-istanbul": { "version": "4.1.6", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.6.tgz", + "resolved": "http://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.6.tgz", "integrity": "sha512-PWP9FQ1AhZhS01T/4qLSKoHGY/xvkZdVBGlKM/HuxxS3+sC66HhTNR7+MpbO/so/cz/wY94MeSWJuP1hXIPfwQ==", "dev": true, "requires": { @@ -1452,7 +1452,7 @@ "babel-plugin-jest-hoist": { "version": "21.2.0", "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-21.2.0.tgz", - "integrity": "sha512-yi5QuiVyyvhBUDLP4ButAnhYzkdrUwWDtvUJv71hjH3fclhnZg4HkDeqaitcR2dZZx/E67kGkRcPVjtVu+SJfQ==", + "integrity": "sha1-LO9jclm9S2KKbKzgOd5fzRTbsAY=", "dev": true }, "babel-plugin-syntax-object-rest-spread": { @@ -1464,7 +1464,7 @@ "babel-preset-jest": { "version": "21.2.0", "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-21.2.0.tgz", - "integrity": "sha512-hm9cBnr2h3J7yXoTtAVV0zg+3vg0Q/gT2GYuzlreTU0EPkJRtlNgKJJ3tBKEn0+VjAi3JykV6xCJkuUYttEEfA==", + "integrity": "sha1-/50rzgir2Y6KNtmopRibkXO4Vjg=", "dev": true, "requires": { "babel-plugin-jest-hoist": "^21.2.0", @@ -1541,7 +1541,7 @@ "babylon": { "version": "6.18.0", "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", + "integrity": "sha1-ry87iPpvXB5MY00aD46sT1WzleM=", "dev": true }, "bach": { @@ -1576,7 +1576,7 @@ "base": { "version": "0.11.2", "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", - "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "integrity": "sha1-e95c7RRbbVUakNuH+DxVi060io8=", "dev": true, "requires": { "cache-base": "^1.0.1", @@ -1600,7 +1600,7 @@ "is-accessor-descriptor": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "integrity": "sha1-FpwvbT3x+ZJhgHI2XJsOofaHhlY=", "dev": true, "requires": { "kind-of": "^6.0.0" @@ -1609,7 +1609,7 @@ "is-data-descriptor": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "integrity": "sha1-2Eh2Mh0Oet0DmQQGq7u9NrqSaMc=", "dev": true, "requires": { "kind-of": "^6.0.0" @@ -1618,7 +1618,7 @@ "is-descriptor": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "integrity": "sha1-OxWXRqZmBLBPjIFSS6NlxfFNhuw=", "dev": true, "requires": { "is-accessor-descriptor": "^1.0.0", @@ -1635,7 +1635,7 @@ "kind-of": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", "dev": true } } @@ -1736,7 +1736,7 @@ }, "boom": { "version": "0.3.8", - "resolved": "https://registry.npmjs.org/boom/-/boom-0.3.8.tgz", + "resolved": "http://registry.npmjs.org/boom/-/boom-0.3.8.tgz", "integrity": "sha1-yM2wQUNZEnQWKMBE7Mcy0dF8Ceo=", "dev": true, "requires": { @@ -1746,7 +1746,7 @@ "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "integrity": "sha1-PH/L9SnYcibz0vUrlm/1Jx60Qd0=", "dev": true, "requires": { "balanced-match": "^1.0.0", @@ -1773,7 +1773,7 @@ "browser-resolve": { "version": "1.11.3", "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz", - "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==", + "integrity": "sha1-m3y7PQ9RDky4a9vXlhJNKLWJCvY=", "dev": true, "requires": { "resolve": "1.1.7" @@ -1781,7 +1781,7 @@ "dependencies": { "resolve": { "version": "1.1.7", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", + "resolved": "http://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", "dev": true } @@ -2022,7 +2022,7 @@ "cache-base": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", - "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "integrity": "sha1-Cn9GQWgxyLZi7jb+TnxZ129marI=", "dev": true, "requires": { "collection-visit": "^1.0.0", @@ -2064,7 +2064,7 @@ }, "callsites": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", + "resolved": "http://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", "integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=", "dev": true }, @@ -2162,7 +2162,7 @@ }, "cheerio": { "version": "0.22.0", - "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-0.22.0.tgz", + "resolved": "http://registry.npmjs.org/cheerio/-/cheerio-0.22.0.tgz", "integrity": "sha1-qbqoYKP5tZWmuBsahocxIe06Jp4=", "dev": true, "requires": { @@ -2235,7 +2235,7 @@ "clap": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/clap/-/clap-1.2.3.tgz", - "integrity": "sha512-4CoL/A3hf90V3VIEjeuhSvlGFEHKzOz+Wfc2IVZc+FaUgU0ZQafJTP49fvnULipOPcAfqhyI2duwQyns6xqjYA==", + "integrity": "sha1-TzZ0WzIAhJJVf0ZBLWbVDLmbzlE=", "dev": true, "requires": { "chalk": "^1.1.3" @@ -2244,7 +2244,7 @@ "class-utils": { "version": "0.3.6", "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", - "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "integrity": "sha1-+TNprouafOAv1B+q0MqDAzGQxGM=", "dev": true, "requires": { "arr-union": "^3.1.0", @@ -2273,7 +2273,7 @@ "clean-css": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.1.tgz", - "integrity": "sha512-4ZxI6dy4lrY6FHzfiy1aEOXgu4LIsW2MhwG0VBKdcoGoH/XLFgaHSdLTGr4O8Be6A8r3MOphEiI8Gc1n0ecf3g==", + "integrity": "sha1-LUEe92uFabbQyEBo2r6FsKpeXBc=", "dev": true, "requires": { "source-map": "~0.6.0" @@ -2282,7 +2282,7 @@ "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=", "dev": true } } @@ -2314,7 +2314,7 @@ "dependencies": { "colors": { "version": "0.3.0", - "resolved": "https://registry.npmjs.org/colors/-/colors-0.3.0.tgz", + "resolved": "http://registry.npmjs.org/colors/-/colors-0.3.0.tgz", "integrity": "sha1-wkfWTTTbDKTcjkPz7NbamNCvlOc=", "dev": true } @@ -2548,7 +2548,7 @@ "color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "integrity": "sha1-u3GFBpDh8TZWfeYp0tVHHe2kweg=", "dev": true, "requires": { "color-name": "1.1.3" @@ -2573,7 +2573,7 @@ "color-support": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", - "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "integrity": "sha1-k4NDeaHMmgxh+C9S8NBDIiUb1aI=", "dev": true }, "colorette": { @@ -2590,7 +2590,7 @@ }, "combined-stream": { "version": "0.0.7", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-0.0.7.tgz", + "resolved": "http://registry.npmjs.org/combined-stream/-/combined-stream-0.0.7.tgz", "integrity": "sha1-ATfmV7qlp1QcV6w3rF/AfXO03B8=", "dev": true, "requires": { @@ -2600,7 +2600,7 @@ "commander": { "version": "2.17.1", "resolved": "https://registry.npmjs.org/commander/-/commander-2.17.1.tgz", - "integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==", + "integrity": "sha1-vXerfebelCBc6sxy8XFtKfIKd78=", "dev": true }, "commondir": { @@ -2686,13 +2686,13 @@ "content-type-parser": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/content-type-parser/-/content-type-parser-1.0.2.tgz", - "integrity": "sha512-lM4l4CnMEwOLHAHr/P6MEZwZFPJFtAAKgL6pogbXmVZggIqXhdB6RbBtPOTsw2FcXwYhehRGERJmRrjOiIB8pQ==", + "integrity": "sha1-yqvoBiPmNjiyUC/Ux/Ev9M4jUuc=", "dev": true }, "convert-source-map": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", - "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", + "integrity": "sha1-UbU3qMQ+DwTewZk7/83VBOdYrCA=", "dev": true, "requires": { "safe-buffer": "~5.1.1" @@ -2849,7 +2849,7 @@ }, "cryptiles": { "version": "0.1.3", - "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-0.1.3.tgz", + "resolved": "http://registry.npmjs.org/cryptiles/-/cryptiles-0.1.3.tgz", "integrity": "sha1-GlVnNPBtJLo0hirpy55wmjr7/xw=", "dev": true, "requires": { @@ -2877,7 +2877,7 @@ }, "css-color-names": { "version": "0.0.4", - "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz", + "resolved": "http://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz", "integrity": "sha1-gIrcLnnPhHOAabZGyyDsJ762KeA=", "dev": true }, @@ -3070,7 +3070,7 @@ }, "css-select": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-1.2.0.tgz", + "resolved": "http://registry.npmjs.org/css-select/-/css-select-1.2.0.tgz", "integrity": "sha1-KzoRBTnFNV8c2NMUYj6HCxIeyFg=", "dev": true, "requires": { @@ -3467,7 +3467,7 @@ "debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=", "dev": true, "requires": { "ms": "2.0.0" @@ -3545,7 +3545,7 @@ "define-property": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", - "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "integrity": "sha1-1Flono1lS6d+AqgX+HENcCyxbp0=", "dev": true, "requires": { "is-descriptor": "^1.0.2", @@ -3555,7 +3555,7 @@ "is-accessor-descriptor": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "integrity": "sha1-FpwvbT3x+ZJhgHI2XJsOofaHhlY=", "dev": true, "requires": { "kind-of": "^6.0.0" @@ -3564,7 +3564,7 @@ "is-data-descriptor": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "integrity": "sha1-2Eh2Mh0Oet0DmQQGq7u9NrqSaMc=", "dev": true, "requires": { "kind-of": "^6.0.0" @@ -3573,7 +3573,7 @@ "is-descriptor": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "integrity": "sha1-OxWXRqZmBLBPjIFSS6NlxfFNhuw=", "dev": true, "requires": { "is-accessor-descriptor": "^1.0.0", @@ -3590,7 +3590,7 @@ "kind-of": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", "dev": true } } @@ -3661,7 +3661,7 @@ "diff": { "version": "3.5.0", "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "integrity": "sha1-gAwN0eCov7yVg1wgKtIg/jF+WhI=", "dev": true }, "diffie-hellman": { @@ -3704,7 +3704,7 @@ "dependencies": { "domelementtype": { "version": "1.1.3", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz", + "resolved": "http://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz", "integrity": "sha1-vSh3PiZCiBrsUVRJJCmcXNgiGFs=", "dev": true } @@ -3725,7 +3725,7 @@ "domhandler": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz", - "integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==", + "integrity": "sha1-iAUJfpM9ZehVRvcm1g9euItE+AM=", "dev": true, "requires": { "domelementtype": "1" @@ -3959,7 +3959,7 @@ "errno": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.7.tgz", - "integrity": "sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg==", + "integrity": "sha1-RoTXF3mtOa8Xfj8AeZb3xnyFJhg=", "dev": true, "requires": { "prr": "~1.0.1" @@ -3968,7 +3968,7 @@ "error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "integrity": "sha1-tKxAZIEH/c3PriQvQovqihTU8b8=", "dev": true, "requires": { "is-arrayish": "^0.2.1" @@ -4079,7 +4079,7 @@ "escodegen": { "version": "1.11.0", "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.11.0.tgz", - "integrity": "sha512-IeMV45ReixHS53K/OmfKAIztN/igDHzTJUhZM3k1jMhIZWjk45SMwAtBsEXiJp3vSPmTcu6CXn7mDvFHRN66fw==", + "integrity": "sha1-snqTiUgdW/1b7Hb3ux6z+PRVZYk=", "dev": true, "requires": { "esprima": "^3.1.3", @@ -4098,7 +4098,7 @@ "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=", "dev": true, "optional": true } @@ -4160,7 +4160,7 @@ "exec-sh": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.2.2.tgz", - "integrity": "sha512-FIUCJz1RbuS0FKTdaAafAByGS0CPvU3R0MeHxgtl+djzCc//F8HakL8GzmVNZanasTbTAY/3DRFA0KpVqj/eAw==", + "integrity": "sha1-Kl5//L19C6J1W97LFuWkJ9+97DY=", "dev": true, "requires": { "merge": "^1.2.0" @@ -4201,7 +4201,7 @@ }, "expand-range": { "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", + "resolved": "http://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", "dev": true, "requires": { @@ -4220,7 +4220,7 @@ "expect": { "version": "21.2.1", "resolved": "https://registry.npmjs.org/expect/-/expect-21.2.1.tgz", - "integrity": "sha512-orfQQqFRTX0jH7znRIGi8ZMR8kTNpXklTTz8+HGTpmTKZo3Occ6JNB5FXMb8cRuiiC/GyDqsr30zUa66ACYlYw==", + "integrity": "sha1-ADrCrHAFw8Kec7OKJy1K+t1tHXs=", "dev": true, "requires": { "ansi-styles": "^3.2.0", @@ -4234,7 +4234,7 @@ "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", "dev": true, "requires": { "color-convert": "^1.9.0" @@ -4262,7 +4262,7 @@ "extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "integrity": "sha1-+LETa0Bx+9jrFAr/hYsQGewpFfo=", "dev": true }, "extend-shallow": { @@ -4278,7 +4278,7 @@ "is-extendable": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "integrity": "sha1-p0cPnkJnM9gb2B4RVSZOOjUHyrQ=", "dev": true, "requires": { "is-plain-object": "^2.0.4" @@ -4541,7 +4541,7 @@ "fill-range": { "version": "2.2.4", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", - "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", + "integrity": "sha1-6x53OrsFbc2N8r/favWbizqTZWU=", "dev": true, "requires": { "is-number": "^2.1.0", @@ -4905,7 +4905,7 @@ "flagged-respawn": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/flagged-respawn/-/flagged-respawn-1.0.1.tgz", - "integrity": "sha1-595vEnnd2cqarIpZcdYYYGs6q0E=", + "integrity": "sha512-lNaHNVymajmk0OJMBn8fVUAU1BtDeKIqKoVhk4xAALB57aALg6b4W0MfJ/cUE0g9YBXy5XhSlPIpYIJ7HaY/3Q==", "dev": true }, "flat-cache": { @@ -5000,7 +5000,7 @@ }, "form-data": { "version": "0.0.10", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-0.0.10.tgz", + "resolved": "http://registry.npmjs.org/form-data/-/form-data-0.0.10.tgz", "integrity": "sha1-2zRaU3jYau6x7V1VO4aawZLS9e0=", "dev": true, "requires": { @@ -5011,7 +5011,7 @@ "dependencies": { "async": { "version": "0.2.10", - "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz", + "resolved": "http://registry.npmjs.org/async/-/async-0.2.10.tgz", "integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=", "dev": true }, @@ -5141,7 +5141,7 @@ "dependencies": { "async": { "version": "0.2.10", - "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz", + "resolved": "http://registry.npmjs.org/async/-/async-0.2.10.tgz", "integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=", "dev": true }, @@ -5744,12 +5744,12 @@ "get-caller-file": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", + "integrity": "sha1-+Xj6TJDR3+f/LWvtoqUV5xO9z0o=", "dev": true }, "get-stream": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "resolved": "http://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", "dev": true }, @@ -5771,7 +5771,7 @@ "glob": { "version": "7.1.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "integrity": "sha1-OWCDLT8VdBCDQtr9OmezMsCWnfE=", "dev": true, "requires": { "fs.realpath": "^1.0.0", @@ -6271,7 +6271,7 @@ "globals": { "version": "9.18.0", "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", + "integrity": "sha1-qjiWs+abSH8X4x7SFD1pqOMMLYo=", "dev": true }, "globby": { @@ -6443,7 +6443,7 @@ "gulp-cheerio": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/gulp-cheerio/-/gulp-cheerio-0.6.3.tgz", - "integrity": "sha512-ZuRAq48qT9u2E8QUz1pHQZOq9500tQojOfGXzAER91CGYf8a3U5+fHuLWk5wvJ0iwrriaApg5Honvt3r5XMcNg==", + "integrity": "sha1-QCccFwM2jIhAirh1C6m/PhrqnGg=", "dev": true, "requires": { "cheerio": "0.*", @@ -6454,7 +6454,7 @@ "gulp-rename": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/gulp-rename/-/gulp-rename-1.4.0.tgz", - "integrity": "sha512-swzbIGb/arEoFK89tPY58vg3Ok1bw+d35PfUNwWqdo7KM4jkmuGA78JiDNqR+JeZFaeeHnRg9N7aihX3YPmsyg==", + "integrity": "sha1-3hxxjnxAla6GH3KW708ySGSCQL0=", "dev": true }, "gulp-svgmin": { @@ -6517,7 +6517,7 @@ }, "readable-stream": { "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "requires": { @@ -6532,7 +6532,7 @@ }, "string_decoder": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "resolved": "http://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "requires": { @@ -6542,7 +6542,7 @@ "through2": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha1-AcHjnrMdB8t9A6lqcIIyYLIxMs0=", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", "dev": true, "requires": { "readable-stream": "~2.3.6", @@ -6596,7 +6596,7 @@ }, "readable-stream": { "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "requires": { @@ -6611,7 +6611,7 @@ }, "string_decoder": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "resolved": "http://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "requires": { @@ -6899,7 +6899,7 @@ }, "hawk": { "version": "0.10.2", - "resolved": "https://registry.npmjs.org/hawk/-/hawk-0.10.2.tgz", + "resolved": "http://registry.npmjs.org/hawk/-/hawk-0.10.2.tgz", "integrity": "sha1-mzYd7pWpMWQObVBOBWCaj8OsRdI=", "dev": true, "requires": { @@ -6951,7 +6951,7 @@ }, "hoek": { "version": "0.7.6", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-0.7.6.tgz", + "resolved": "http://registry.npmjs.org/hoek/-/hoek-0.7.6.tgz", "integrity": "sha1-YPvZBFV1Qc0rh5Wr8wihs3cOFVo=", "dev": true }, @@ -6977,7 +6977,7 @@ "hosted-git-info": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz", - "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==", + "integrity": "sha1-l/I2l3vW4SVAiTD/bePuxigewEc=", "dev": true }, "hsl-regex": { @@ -6995,13 +6995,13 @@ "html-comment-regex": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/html-comment-regex/-/html-comment-regex-1.1.2.tgz", - "integrity": "sha1-l9RoiutcgYhqNk+qDK0d2hTUM6c=", + "integrity": "sha512-P+M65QY2JQ5Y0G9KKdlDpo0zK+/OHptU5AaBwUfAIDJZk1MYf32Frm84EcOytfJE0t5JvkAnKlmjsXDnWzCJmQ==", "dev": true }, "html-encoding-sniffer": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz", - "integrity": "sha512-71lZziiDnsuabfdYiUeWdCVyKuqwWi23L8YeIgV9jSSZHCtb6wB1BKWooH7L3tn4/FuZJMVWyNaIDr4RGmaSYw==", + "integrity": "sha1-5w2EuU2lOqN14R/jo1G+ZkLKRvg=", "dev": true, "requires": { "whatwg-encoding": "^1.0.1" @@ -7010,7 +7010,7 @@ "html-loader": { "version": "0.5.5", "resolved": "https://registry.npmjs.org/html-loader/-/html-loader-0.5.5.tgz", - "integrity": "sha512-7hIW7YinOYUpo//kSYcPB6dCKoceKLmOwjEMmhIobHuWGDVl0Nwe4l68mdG/Ru0wcUxQjVMEoZpkalZ/SE7zog==", + "integrity": "sha1-Y1bb6wxJdW2OvVyjJ/Fv8Gq1+uo=", "dev": true, "requires": { "es6-templates": "^0.2.3", @@ -7284,7 +7284,7 @@ "ini": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", + "integrity": "sha1-7uJfVtscnsYIXgwid4CD9Zar+Sc=", "dev": true }, "interpret": { @@ -7296,7 +7296,7 @@ "invariant": { "version": "2.2.4", "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "integrity": "sha1-YQ88ksk1nOHbYW5TgAjSP/NRWOY=", "dev": true, "requires": { "loose-envify": "^1.0.0" @@ -7326,7 +7326,7 @@ }, "is-accessor-descriptor": { "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "resolved": "http://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", "dev": true, "requires": { @@ -7373,12 +7373,12 @@ "is-buffer": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "integrity": "sha1-76ouqdqg16suoTqXsritUf776L4=", "dev": true }, "is-builtin-module": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", + "resolved": "http://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", "dev": true, "requires": { @@ -7425,7 +7425,7 @@ }, "is-data-descriptor": { "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "resolved": "http://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", "dev": true, "requires": { @@ -7447,7 +7447,7 @@ "is-descriptor": { "version": "0.1.6", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "integrity": "sha1-Nm2CQN3kh8pRgjsaufB6EKeCUco=", "dev": true, "requires": { "is-accessor-descriptor": "^0.1.6", @@ -7458,7 +7458,7 @@ "kind-of": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "integrity": "sha1-cpyR4thXt6QZofmqZWhcTDP1hF0=", "dev": true } } @@ -7583,7 +7583,7 @@ "is-plain-object": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "integrity": "sha1-LBY7P6+xtgbZ0Xko8FwqHDjgdnc=", "dev": true, "requires": { "isobject": "^3.0.1" @@ -7699,7 +7699,7 @@ "is-windows": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "integrity": "sha1-0YUOuXkezRjmGCzhKjDzlmNLsZ0=", "dev": true }, "is-word-character": { @@ -7744,7 +7744,7 @@ "istanbul-api": { "version": "1.3.7", "resolved": "https://registry.npmjs.org/istanbul-api/-/istanbul-api-1.3.7.tgz", - "integrity": "sha512-4/ApBnMVeEPG3EkSzcw25wDe4N66wxwn+KKn6b47vyek8Xb3NBAcg4xfuQbS7BqcZuTX4wxfD5lVagdggR3gyA==", + "integrity": "sha1-qGx3DSsD4R4/d4zXrt2C0nIgkqo=", "dev": true, "requires": { "async": "^2.1.4", @@ -7763,13 +7763,13 @@ "istanbul-lib-coverage": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.1.tgz", - "integrity": "sha512-PzITeunAgyGbtY1ibVIUiV679EFChHjoMNRibEIobvmrCRaIgwLxNucOSimtNWUhEib/oO7QY2imD75JVgCJWQ==", + "integrity": "sha1-zPftzQoLubj3Kf7rCTBHD5r2ZPA=", "dev": true }, "istanbul-lib-hook": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-1.2.2.tgz", - "integrity": "sha512-/Jmq7Y1VeHnZEQ3TL10VHyb564mn6VrQXHchON9Jf/AEcmQ3ZIiyD1BVzNOKTZf/G3gE+kiGK6SmpF9y3qGPLw==", + "integrity": "sha1-vGvwfxKmQfvxyFOR0Nqo8K6mv4Y=", "dev": true, "requires": { "append-transform": "^0.4.0" @@ -7778,7 +7778,7 @@ "istanbul-lib-instrument": { "version": "1.10.2", "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-1.10.2.tgz", - "integrity": "sha512-aWHxfxDqvh/ZlxR8BBaEPVSWDPUkGD63VjGQn3jcw8jCp7sHEMKcrj4xfJn/ABzdMEHiQNyvDQhqm5o8+SQg7A==", + "integrity": "sha1-H1XtEKw8R/K93dUweTUSZ1TQqco=", "dev": true, "requires": { "babel-generator": "^6.18.0", @@ -7793,7 +7793,7 @@ "istanbul-lib-report": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-1.1.5.tgz", - "integrity": "sha512-UsYfRMoi6QO/doUshYNqcKJqVmFe9w51GZz8BS3WB0lYxAllQYklka2wP9+dGZeHYaWIdcXUx8JGdbqaoXRXzw==", + "integrity": "sha1-8qZX/GKC+WFwqvKB6zCkWPf0Fww=", "dev": true, "requires": { "istanbul-lib-coverage": "^1.2.1", @@ -7816,7 +7816,7 @@ "istanbul-lib-source-maps": { "version": "1.2.6", "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.6.tgz", - "integrity": "sha512-TtbsY5GIHgbMsMiRw35YBHGpZ1DVFEO19vxxeiDMYaeOFOCzfnYVxvl6pOUIZR4dtPhAGpSMup8OyF8ubsaqEg==", + "integrity": "sha1-N7n/ZhWA+PyhEjJ1LuQuCMZnXY8=", "dev": true, "requires": { "debug": "^3.1.0", @@ -7855,7 +7855,7 @@ "istanbul-reports": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-1.5.1.tgz", - "integrity": "sha512-+cfoZ0UXzWjhAdzosCPP3AN8vvef8XDkWtTfgaN+7L3YTpNYITnCaEkceo5SEYy644VkHka/P1FvkWvrG/rrJw==", + "integrity": "sha1-l+Tb87UV6MSEyuoV1lJO69P/Tho=", "dev": true, "requires": { "handlebars": "^4.0.3" @@ -7864,7 +7864,7 @@ "jest": { "version": "21.2.1", "resolved": "https://registry.npmjs.org/jest/-/jest-21.2.1.tgz", - "integrity": "sha512-mXN0ppPvWYoIcC+R+ctKxAJ28xkt/Z5Js875padm4GbgUn6baeR5N4Ng6LjatIRpUQDZVJABT7Y4gucFjPryfw==", + "integrity": "sha1-yWTgtHODdooUOOPM88PUcDJ2BOE=", "dev": true, "requires": { "jest-cli": "^21.2.1" @@ -7879,7 +7879,7 @@ "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", "dev": true, "requires": { "color-convert": "^1.9.0" @@ -7905,7 +7905,7 @@ "jest-cli": { "version": "21.2.1", "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-21.2.1.tgz", - "integrity": "sha512-T1BzrbFxDIW/LLYQqVfo94y/hhaj1NzVQkZgBumAC+sxbjMROI7VkihOdxNR758iYbQykL2ZOWUBurFgkQrzdg==", + "integrity": "sha1-nFKLZinWUZERONIovbAzwVfsjAA=", "dev": true, "requires": { "ansi-escapes": "^3.0.0", @@ -7957,7 +7957,7 @@ "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=", "dev": true, "requires": { "has-flag": "^3.0.0" @@ -7968,7 +7968,7 @@ "jest-changed-files": { "version": "21.2.0", "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-21.2.0.tgz", - "integrity": "sha512-+lCNP1IZLwN1NOIvBcV5zEL6GENK6TXrDj4UxWIeLvIsIDa+gf6J7hkqsW2qVVt/wvH65rVvcPwqXdps5eclTQ==", + "integrity": "sha1-Xb7srUL12ItIIzSQLOHLptl5jSk=", "dev": true, "requires": { "throat": "^4.0.0" @@ -7977,7 +7977,7 @@ "jest-config": { "version": "21.2.1", "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-21.2.1.tgz", - "integrity": "sha512-fJru5HtlD/5l2o25eY9xT0doK3t2dlglrqoGpbktduyoI0T5CwuB++2YfoNZCrgZipTwPuAGonYv0q7+8yDc/A==", + "integrity": "sha1-x1hseerQvMHzjEAeVflk8TvypIA=", "dev": true, "requires": { "chalk": "^2.0.1", @@ -7996,7 +7996,7 @@ "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", "dev": true, "requires": { "color-convert": "^1.9.0" @@ -8022,7 +8022,7 @@ "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=", "dev": true, "requires": { "has-flag": "^3.0.0" @@ -8033,7 +8033,7 @@ "jest-diff": { "version": "21.2.1", "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-21.2.1.tgz", - "integrity": "sha512-E5fu6r7PvvPr5qAWE1RaUwIh/k6Zx/3OOkZ4rk5dBJkEWRrUuSgbMt2EO8IUTPTd6DOqU3LW6uTIwX5FRvXoFA==", + "integrity": "sha1-RszLbKstAs6YvDFAEXZLuVsGW08=", "dev": true, "requires": { "chalk": "^2.0.1", @@ -8045,7 +8045,7 @@ "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", "dev": true, "requires": { "color-convert": "^1.9.0" @@ -8071,7 +8071,7 @@ "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=", "dev": true, "requires": { "has-flag": "^3.0.0" @@ -8082,13 +8082,13 @@ "jest-docblock": { "version": "21.2.0", "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-21.2.0.tgz", - "integrity": "sha512-5IZ7sY9dBAYSV+YjQ0Ovb540Ku7AO9Z5o2Cg789xj167iQuZ2cG+z0f3Uct6WeYLbU6aQiM2pCs7sZ+4dotydw==", + "integrity": "sha1-UVKcOzDV/RWdpgwnzu3Blfr41BQ=", "dev": true }, "jest-environment-jsdom": { "version": "21.2.1", "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-21.2.1.tgz", - "integrity": "sha512-mecaeNh0eWmzNrUNMWARysc0E9R96UPBamNiOCYL28k7mksb1d0q6DD38WKP7ABffjnXyUWJPVaWRgUOivwXwg==", + "integrity": "sha1-ONmYDIJZsqYI7CMt7uYommDZ1bQ=", "dev": true, "requires": { "jest-mock": "^21.2.0", @@ -8099,7 +8099,7 @@ "jest-environment-node": { "version": "21.2.1", "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-21.2.1.tgz", - "integrity": "sha512-R211867wx9mVBVHzrjGRGTy5cd05K7eqzQl/WyZixR/VkJ4FayS8qkKXZyYnwZi6Rxo6WEV81cDbiUx/GfuLNw==", + "integrity": "sha1-mMZ99WY8f74g9ueSrCJyx0DTuMg=", "dev": true, "requires": { "jest-mock": "^21.2.0", @@ -8109,13 +8109,13 @@ "jest-get-type": { "version": "21.2.0", "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-21.2.0.tgz", - "integrity": "sha512-y2fFw3C+D0yjNSDp7ab1kcd6NUYfy3waPTlD8yWkAtiocJdBRQqNoRqVfMNxgj+IjT0V5cBIHJO0z9vuSSZ43Q==", + "integrity": "sha1-9jdqudtLYNgeOfMHScbEZvQNSiM=", "dev": true }, "jest-haste-map": { "version": "21.2.0", "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-21.2.0.tgz", - "integrity": "sha512-5LhsY/loPH7wwOFRMs+PT4aIAORJ2qwgbpMFlbWbxfN0bk3ZCwxJ530vrbSiTstMkYLao6JwBkLhCJ5XbY7ZHw==", + "integrity": "sha1-E2PwqLtDOPJPABgGVx7/eksv89g=", "dev": true, "requires": { "fb-watchman": "^2.0.0", @@ -8129,7 +8129,7 @@ "jest-jasmine2": { "version": "21.2.1", "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-21.2.1.tgz", - "integrity": "sha512-lw8FXXIEekD+jYNlStfgNsUHpfMWhWWCgHV7n0B7mA/vendH7vBFs8xybjQsDzJSduptBZJHqQX9SMssya9+3A==", + "integrity": "sha1-nMb8EIrM+pfv684QxDCFSKTqdZI=", "dev": true, "requires": { "chalk": "^2.0.1", @@ -8145,7 +8145,7 @@ "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", "dev": true, "requires": { "color-convert": "^1.9.0" @@ -8171,7 +8171,7 @@ "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=", "dev": true, "requires": { "has-flag": "^3.0.0" @@ -8182,7 +8182,7 @@ "jest-matcher-utils": { "version": "21.2.1", "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-21.2.1.tgz", - "integrity": "sha512-kn56My+sekD43dwQPrXBl9Zn9tAqwoy25xxe7/iY4u+mG8P3ALj5IK7MLHZ4Mi3xW7uWVCjGY8cm4PqgbsqMCg==", + "integrity": "sha1-csgm6rpBoJOsK0Vl+GXrhHXeD2Q=", "dev": true, "requires": { "chalk": "^2.0.1", @@ -8193,7 +8193,7 @@ "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", "dev": true, "requires": { "color-convert": "^1.9.0" @@ -8219,7 +8219,7 @@ "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=", "dev": true, "requires": { "has-flag": "^3.0.0" @@ -8230,7 +8230,7 @@ "jest-message-util": { "version": "21.2.1", "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-21.2.1.tgz", - "integrity": "sha512-EbC1X2n0t9IdeMECJn2BOg7buOGivCvVNjqKMXTzQOu7uIfLml+keUfCALDh8o4rbtndIeyGU8/BKfoTr/LVDQ==", + "integrity": "sha1-v+XUaSyEyCfR3PQYI3lVWPChrL4=", "dev": true, "requires": { "chalk": "^2.0.1", @@ -8241,7 +8241,7 @@ "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", "dev": true, "requires": { "color-convert": "^1.9.0" @@ -8267,7 +8267,7 @@ "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=", "dev": true, "requires": { "has-flag": "^3.0.0" @@ -8278,19 +8278,19 @@ "jest-mock": { "version": "21.2.0", "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-21.2.0.tgz", - "integrity": "sha512-aZDfyVf0LEoABWiY6N0d+O963dUQSyUa4qgzurHR3TBDPen0YxKCJ6l2i7lQGh1tVdsuvdrCZ4qPj+A7PievCw==", + "integrity": "sha1-frB3DnMXloFl9h6ipygRMVNLPA8=", "dev": true }, "jest-regex-util": { "version": "21.2.0", "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-21.2.0.tgz", - "integrity": "sha512-BKQ1F83EQy0d9Jen/mcVX7D+lUt2tthhK/2gDWRgLDJRNOdRgSp1iVqFxP8EN1ARuypvDflRfPzYT8fQnoBQFQ==", + "integrity": "sha1-Gx4z5jFDurw+Dy5sm1uh6zSy1TA=", "dev": true }, "jest-resolve": { "version": "21.2.0", "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-21.2.0.tgz", - "integrity": "sha512-vefQ/Lr+VdNvHUZFQXWtOqHX3HEdOc2MtSahBO89qXywEbUxGPB9ZLP9+BHinkxb60UT2Q/tTDOS6rYc6Mwigw==", + "integrity": "sha1-BokTrSumogIY5f0yRx84dABd46Y=", "dev": true, "requires": { "browser-resolve": "^1.11.2", @@ -8301,7 +8301,7 @@ "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", "dev": true, "requires": { "color-convert": "^1.9.0" @@ -8327,7 +8327,7 @@ "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=", "dev": true, "requires": { "has-flag": "^3.0.0" @@ -8338,7 +8338,7 @@ "jest-resolve-dependencies": { "version": "21.2.0", "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-21.2.0.tgz", - "integrity": "sha512-ok8ybRFU5ScaAcfufIQrCbdNJSRZ85mkxJ1EhUp8Bhav1W1/jv/rl1Q6QoVQHObNxmKnbHVKrfLZbCbOsXQ+bQ==", + "integrity": "sha1-niMeNx4ac2oa1OS5qEO8cr/gPQk=", "dev": true, "requires": { "jest-regex-util": "^21.2.0" @@ -8347,7 +8347,7 @@ "jest-runner": { "version": "21.2.1", "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-21.2.1.tgz", - "integrity": "sha512-Anb72BOQlHqF/zETqZ2K20dbYsnqW/nZO7jV8BYENl+3c44JhMrA8zd1lt52+N7ErnsQMd2HHKiVwN9GYSXmrg==", + "integrity": "sha1-GUcy4+UYv7PXy/wP1YcSRsfhpGc=", "dev": true, "requires": { "jest-config": "^21.2.1", @@ -8373,7 +8373,7 @@ "jest-runtime": { "version": "21.2.1", "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-21.2.1.tgz", - "integrity": "sha512-6omlpA3+NSE+rHwD0PQjNEjZeb2z+oRmuehMfM1tWQVum+E0WV3pFt26Am0DUfQkkPyTABvxITRjCUclYgSOsA==", + "integrity": "sha1-mdzhUwnGcEQu7i6+H/U6PL27tz4=", "dev": true, "requires": { "babel-core": "^6.0.0", @@ -8398,7 +8398,7 @@ "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", "dev": true, "requires": { "color-convert": "^1.9.0" @@ -8430,7 +8430,7 @@ "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=", "dev": true, "requires": { "has-flag": "^3.0.0" @@ -8441,7 +8441,7 @@ "jest-snapshot": { "version": "21.2.1", "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-21.2.1.tgz", - "integrity": "sha512-bpaeBnDpdqaRTzN8tWg0DqOTo2DvD3StOemxn67CUd1p1Po+BUpvePAp44jdJ7Pxcjfg+42o4NHw1SxdCA2rvg==", + "integrity": "sha1-KeSfFiAkFuRzQ+dX5e/5SMB/17A=", "dev": true, "requires": { "chalk": "^2.0.1", @@ -8455,7 +8455,7 @@ "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", "dev": true, "requires": { "color-convert": "^1.9.0" @@ -8481,7 +8481,7 @@ "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=", "dev": true, "requires": { "has-flag": "^3.0.0" @@ -8492,7 +8492,7 @@ "jest-util": { "version": "21.2.1", "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-21.2.1.tgz", - "integrity": "sha512-r20W91rmHY3fnCoO7aOAlyfC51x2yeV3xF+prGsJAUsYhKeV670ZB8NO88Lwm7ASu8SdH0S+U+eFf498kjhA4g==", + "integrity": "sha1-onSy9yawiXSU1pSmw9amGrgZu3g=", "dev": true, "requires": { "callsites": "^2.0.0", @@ -8507,7 +8507,7 @@ "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", "dev": true, "requires": { "color-convert": "^1.9.0" @@ -8533,7 +8533,7 @@ "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=", "dev": true, "requires": { "has-flag": "^3.0.0" @@ -8544,7 +8544,7 @@ "jest-validate": { "version": "21.2.1", "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-21.2.1.tgz", - "integrity": "sha512-k4HLI1rZQjlU+EC682RlQ6oZvLrE5SCh3brseQc24vbZTxzT/k/3urar5QMCVgjadmSO7lECeGdc6YxnM3yEGg==", + "integrity": "sha1-zAy8plPNVJN7pPKhEXlndFMN08c=", "dev": true, "requires": { "chalk": "^2.0.1", @@ -8556,7 +8556,7 @@ "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", "dev": true, "requires": { "color-convert": "^1.9.0" @@ -8582,7 +8582,7 @@ "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=", "dev": true, "requires": { "has-flag": "^3.0.0" @@ -8817,7 +8817,7 @@ }, "jsesc": { "version": "1.3.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", + "resolved": "http://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", "dev": true }, @@ -8836,7 +8836,7 @@ "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "integrity": "sha1-afaofZUTq4u4/mO9sJecRI5oRmA=", "dev": true }, "json-stable-stringify": { @@ -8862,7 +8862,7 @@ }, "json5": { "version": "0.5.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "resolved": "http://registry.npmjs.org/json5/-/json5-0.5.1.tgz", "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", "dev": true }, @@ -8983,7 +8983,7 @@ "less": { "version": "2.7.3", "resolved": "https://registry.npmjs.org/less/-/less-2.7.3.tgz", - "integrity": "sha512-KPdIJKWcEAb02TuJtaLrhue0krtRLoRoo7x6BNJIBelO00t/CCdJQUnHW5V34OnHMWzIktSalJxRO+FvytQlCQ==", + "integrity": "sha1-zBJg9RyQCp7A2R+2mYE54CUHtjs=", "dev": true, "requires": { "errno": "^0.1.1", @@ -9023,7 +9023,7 @@ }, "boom": { "version": "2.10.1", - "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", + "resolved": "http://registry.npmjs.org/boom/-/boom-2.10.1.tgz", "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", "dev": true, "optional": true, @@ -9043,7 +9043,7 @@ }, "cryptiles": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", + "resolved": "http://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=", "dev": true, "optional": true, @@ -9097,7 +9097,7 @@ }, "hawk": { "version": "3.1.3", - "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", + "resolved": "http://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=", "dev": true, "optional": true, @@ -9110,7 +9110,7 @@ }, "hoek": { "version": "2.16.3", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", + "resolved": "http://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=", "dev": true, "optional": true @@ -9195,7 +9195,7 @@ }, "sntp": { "version": "1.0.9", - "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", + "resolved": "http://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", "dev": true, "optional": true, @@ -9205,7 +9205,7 @@ }, "tough-cookie": { "version": "2.3.4", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", + "resolved": "http://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", "dev": true, "optional": true, @@ -9278,7 +9278,7 @@ }, "load-json-file": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "resolved": "http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", "dev": true, "requires": { @@ -9595,7 +9595,7 @@ "loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "integrity": "sha1-ce5R+nvkyuwaY4OffmgtgTLTDK8=", "dev": true, "requires": { "js-tokens": "^3.0.0 || ^4.0.0" @@ -9609,7 +9609,7 @@ }, "lru-cache": { "version": "2.7.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", + "resolved": "http://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=", "dev": true }, @@ -10176,7 +10176,7 @@ "mimic-fn": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "integrity": "sha1-ggyGo5M0ZA6ZUWkovQP8qIBX0CI=", "dev": true }, "mimoza": { @@ -10208,7 +10208,7 @@ "dependencies": { "async": { "version": "0.2.10", - "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz", + "resolved": "http://registry.npmjs.org/async/-/async-0.2.10.tgz", "integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=", "dev": true }, @@ -10272,7 +10272,7 @@ "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", "dev": true, "requires": { "brace-expansion": "^1.1.7" @@ -10512,7 +10512,7 @@ }, "multipipe": { "version": "0.1.2", - "resolved": "https://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz", + "resolved": "http://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz", "integrity": "sha1-Ko8t33Du1WTf8tV/HhoTfZ8FB4s=", "dev": true, "requires": { @@ -10535,7 +10535,7 @@ "nanomatch": { "version": "1.2.13", "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", - "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "integrity": "sha1-uHqKpPwN6P5r6IiVs4mD/yZb0Rk=", "dev": true, "requires": { "arr-diff": "^4.0.0", @@ -10566,7 +10566,7 @@ "kind-of": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", "dev": true } } @@ -10642,7 +10642,7 @@ "no-case": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/no-case/-/no-case-2.3.2.tgz", - "integrity": "sha512-rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ==", + "integrity": "sha1-YLgTOWvjmz8SiKTB7V0efSi0ZKw=", "dev": true, "requires": { "lower-case": "^1.1.1" @@ -10751,7 +10751,7 @@ "node-object-hash": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/node-object-hash/-/node-object-hash-1.4.1.tgz", - "integrity": "sha512-JQVqSM5/mOaUoUhCYR0t1vgm8RFo7qpJtPvnoFCLeqQh1xrfmr3BCD3nGBnACzpIEF7F7EVgqGD3O4lao/BY/A==", + "integrity": "sha1-3paEkuIMSTuLvCWtLugoJl/WCTQ=", "dev": true }, "node-releases": { @@ -10780,7 +10780,7 @@ "normalize-package-data": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", - "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", + "integrity": "sha1-EvlaMH1YNSB1oEkHuErIvpisAS8=", "dev": true, "requires": { "hosted-git-info": "^2.1.4", @@ -10858,7 +10858,7 @@ "nwmatcher": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/nwmatcher/-/nwmatcher-1.4.4.tgz", - "integrity": "sha512-3iuY4N5dhgMpCUrOVnuAdGrgxVqV2cJpM+XNccjR2DKOB1RUP0aA+wGXEiNziG/UKboFyGBIoKOaNlJxx8bciQ==", + "integrity": "sha1-IoVjHzSpXw0Dlc2QDJbtObWPNG4=", "dev": true }, "oauth-sign": { @@ -11166,14 +11166,14 @@ }, "os-homedir": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "resolved": "http://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", "dev": true }, "os-locale": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", - "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", + "integrity": "sha1-QrwpAKa1uL0XN2yOiCtlr8zyS/I=", "dev": true, "requires": { "execa": "^0.7.0", @@ -11183,14 +11183,14 @@ }, "os-tmpdir": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "resolved": "http://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", "dev": true }, "p-cancelable": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.3.0.tgz", - "integrity": "sha512-RVbZPLso8+jFeq1MfNvgXtCRED2raz/dKpacfTNxsx6pLEpEomM7gah6VeHSYV3+vo0OAi4MkArtQcWWXuQoyw==", + "integrity": "sha1-ueEjgAvOu3rBOkeb4ZW1B7mNMPo=", "dev": true }, "p-finally": { @@ -11202,7 +11202,7 @@ "p-limit": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "integrity": "sha1-uGvV8MJWkJEcdZD8v8IBDVSzzLg=", "dev": true, "requires": { "p-try": "^1.0.0" @@ -11408,7 +11408,7 @@ }, "path-is-absolute": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "resolved": "http://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true }, @@ -11427,7 +11427,7 @@ "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "integrity": "sha1-1i27VnlAXXLEc37FhgDp3c8G0kw=", "dev": true }, "path-root": { @@ -11483,7 +11483,7 @@ }, "pify": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "resolved": "http://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", "dev": true }, @@ -11608,7 +11608,7 @@ }, "kind-of": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-1.1.0.tgz", + "resolved": "http://registry.npmjs.org/kind-of/-/kind-of-1.1.0.tgz", "integrity": "sha1-FAo9LUGjbS78+pN3tiwk+ElaXEQ=", "dev": true } @@ -14178,7 +14178,7 @@ "pretty-format": { "version": "21.2.1", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-21.2.1.tgz", - "integrity": "sha512-ZdWPGYAnYfcVP8yKA3zFjCn8s4/17TeYH28MXuC8vTp0o21eXjbFGcOAXZEaDaOFJjc3h2qa7HQNHNshhvoh2A==", + "integrity": "sha1-rlQH888hBmzQEaobpfzntqLt2zY=", "dev": true, "requires": { "ansi-regex": "^3.0.0", @@ -14194,7 +14194,7 @@ "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", "dev": true, "requires": { "color-convert": "^1.9.0" @@ -14211,7 +14211,7 @@ "private": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", - "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", + "integrity": "sha1-I4Hts2ifelPWUxkAYPz4ItLzaP8=", "dev": true }, "process": { @@ -14223,13 +14223,13 @@ "process-nextick-args": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "integrity": "sha1-o31zL0JxtKsa0HDTVQjoKQeI/6o=", "dev": true }, "promise": { "version": "7.3.1", "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", - "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", + "integrity": "sha1-BktyYCsY+Q8pGSuLG8QY/9Hr078=", "dev": true, "optional": true, "requires": { @@ -14330,7 +14330,7 @@ "punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "integrity": "sha1-tYsBCsQMIsVldhbI0sLALHv0eew=", "dev": true }, "q": { @@ -14341,7 +14341,7 @@ }, "qs": { "version": "0.5.6", - "resolved": "https://registry.npmjs.org/qs/-/qs-0.5.6.tgz", + "resolved": "http://registry.npmjs.org/qs/-/qs-0.5.6.tgz", "integrity": "sha1-MbGtBYVnZRxSaSFQa5qHk5EaA4Q=", "dev": true }, @@ -14539,7 +14539,7 @@ }, "readable-stream": { "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", "dev": true, "requires": { @@ -14844,7 +14844,7 @@ }, "readable-stream": { "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "requires": { @@ -14859,7 +14859,7 @@ }, "string_decoder": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "resolved": "http://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "requires": { @@ -14900,13 +14900,13 @@ "regenerator-runtime": { "version": "0.11.1", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", + "integrity": "sha1-vgWtf5v30i4Fb5cmzuUBf78Z4uk=", "dev": true }, "regex-cache": { "version": "0.4.4", "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", - "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", + "integrity": "sha1-db3FiioUls7EihKDW8VMjVYjNt0=", "dev": true, "requires": { "is-equal-shallow": "^0.1.3" @@ -14915,7 +14915,7 @@ "regex-not": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", - "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "integrity": "sha1-H07OJ+ALC2XgJHpoEOaoXYOldSw=", "dev": true, "requires": { "extend-shallow": "^3.0.2", @@ -15051,7 +15051,7 @@ "repeat-element": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", - "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", + "integrity": "sha1-eC4NglwMWjuzlzH4Tv7mt0Lmsc4=", "dev": true }, "repeat-string": { @@ -15185,7 +15185,7 @@ "ret": { "version": "0.1.15", "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "integrity": "sha1-uKSCXVvbH8P29Twrwz+BOIaBx7w=", "dev": true }, "reusify": { @@ -15228,7 +15228,7 @@ "rsvp": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-3.6.2.tgz", - "integrity": "sha512-OfWGQTb9vnwRjwtA2QwpG2ICclHC3pgXZO5xt8H2EfgDquO0qVdSb5T88L4qJVAEugbS56pAuV4XZM58UX8ulw==", + "integrity": "sha1-LpZJFZmpbN4bUV1WdKj3qRRSkmo=", "dev": true }, "run-parallel": { @@ -15249,12 +15249,12 @@ "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0=", "dev": true }, "safe-regex": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "resolved": "http://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", "dev": true, "requires": { @@ -15264,7 +15264,7 @@ "safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "integrity": "sha1-RPoWGwGHuVSd2Eu5GAL5vYOFzWo=", "dev": true }, "sane": { @@ -15287,7 +15287,7 @@ "anymatch": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", - "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "integrity": "sha1-vLJLTzeTTZqnrBe0ra+J58du8us=", "dev": true, "requires": { "micromatch": "^3.1.4", @@ -15309,7 +15309,7 @@ "braces": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "integrity": "sha1-WXn9PxTNUxVl5fot8av/8d+u5yk=", "dev": true, "requires": { "arr-flatten": "^1.1.0", @@ -15370,7 +15370,7 @@ }, "is-accessor-descriptor": { "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "resolved": "http://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", "dev": true, "requires": { @@ -15390,7 +15390,7 @@ }, "is-data-descriptor": { "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "resolved": "http://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", "dev": true, "requires": { @@ -15422,7 +15422,7 @@ "kind-of": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "integrity": "sha1-cpyR4thXt6QZofmqZWhcTDP1hF0=", "dev": true } } @@ -15430,7 +15430,7 @@ "extglob": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "integrity": "sha1-rQD+TcYSqSMuhxhxHcXLWrAoVUM=", "dev": true, "requires": { "array-unique": "^0.3.2", @@ -15489,7 +15489,7 @@ "is-accessor-descriptor": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "integrity": "sha1-FpwvbT3x+ZJhgHI2XJsOofaHhlY=", "dev": true, "requires": { "kind-of": "^6.0.0" @@ -15498,7 +15498,7 @@ "is-data-descriptor": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "integrity": "sha1-2Eh2Mh0Oet0DmQQGq7u9NrqSaMc=", "dev": true, "requires": { "kind-of": "^6.0.0" @@ -15507,7 +15507,7 @@ "is-descriptor": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "integrity": "sha1-OxWXRqZmBLBPjIFSS6NlxfFNhuw=", "dev": true, "requires": { "is-accessor-descriptor": "^1.0.0", @@ -15544,13 +15544,13 @@ "kind-of": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", "dev": true }, "micromatch": { "version": "3.1.10", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "integrity": "sha1-cIWbyVyYQJUvNZoGij/En57PrCM=", "dev": true, "requires": { "arr-diff": "^4.0.0", @@ -15964,7 +15964,7 @@ "shellwords": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", - "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", + "integrity": "sha1-1rkYHBpI05cyTISHHvvPxz/AZUs=", "dev": true }, "sigmund": { @@ -16033,7 +16033,7 @@ "snapdragon": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", - "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "integrity": "sha1-ZJIufFZbDhQgS6GqfWlkJ40lGC0=", "dev": true, "requires": { "base": "^0.11.1", @@ -16069,7 +16069,7 @@ "snapdragon-node": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", - "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "integrity": "sha1-bBdfhv8UvbByRWPo88GwIaKGhTs=", "dev": true, "requires": { "define-property": "^1.0.0", @@ -16089,7 +16089,7 @@ "is-accessor-descriptor": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "integrity": "sha1-FpwvbT3x+ZJhgHI2XJsOofaHhlY=", "dev": true, "requires": { "kind-of": "^6.0.0" @@ -16098,7 +16098,7 @@ "is-data-descriptor": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "integrity": "sha1-2Eh2Mh0Oet0DmQQGq7u9NrqSaMc=", "dev": true, "requires": { "kind-of": "^6.0.0" @@ -16107,7 +16107,7 @@ "is-descriptor": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "integrity": "sha1-OxWXRqZmBLBPjIFSS6NlxfFNhuw=", "dev": true, "requires": { "is-accessor-descriptor": "^1.0.0", @@ -16124,7 +16124,7 @@ "kind-of": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", "dev": true } } @@ -16132,7 +16132,7 @@ "snapdragon-util": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", - "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "integrity": "sha1-+VZHlIbyrNeXAGk/b3uAXkWrVuI=", "dev": true, "requires": { "kind-of": "^3.2.0" @@ -16140,7 +16140,7 @@ }, "sntp": { "version": "0.1.4", - "resolved": "https://registry.npmjs.org/sntp/-/sntp-0.1.4.tgz", + "resolved": "http://registry.npmjs.org/sntp/-/sntp-0.1.4.tgz", "integrity": "sha1-XvSBuVGnspr/30r9fyaDj8ESD4Q=", "dev": true, "requires": { @@ -16171,7 +16171,7 @@ "source-map-resolve": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", - "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", + "integrity": "sha1-cuLMNAlVQ+Q7LGKyxMENSpBU8lk=", "dev": true, "requires": { "atob": "^2.1.1", @@ -16184,7 +16184,7 @@ "source-map-support": { "version": "0.4.18", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", - "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "integrity": "sha1-Aoam3ovkJkEzhZTpfM6nXwosWF8=", "dev": true, "requires": { "source-map": "^0.5.6" @@ -16199,7 +16199,7 @@ "sparkles": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/sparkles/-/sparkles-1.0.1.tgz", - "integrity": "sha512-dSO0DDYUahUt/0/pD/Is3VIm5TGJjludZ0HVymmhYF6eNA53PVLhnUk0znSYbH8IYBuJdCE+1luR22jNLMaQdw==", + "integrity": "sha1-AI22XtzmxQ7sDF4ijhlFBh3QQ3w=", "dev": true }, "spdx-correct": { @@ -16221,7 +16221,7 @@ "spdx-expression-parse": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", - "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", + "integrity": "sha1-meEZt6XaAOBUkcn6M4t5BII7QdA=", "dev": true, "requires": { "spdx-exceptions": "^2.1.0", @@ -16243,7 +16243,7 @@ "split-string": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", - "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "integrity": "sha1-fLCd2jqGWFcFxks5pkZgOGguj+I=", "dev": true, "requires": { "extend-shallow": "^3.0.0" @@ -16528,7 +16528,7 @@ }, "string_decoder": { "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "resolved": "http://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", "dev": true }, @@ -16548,13 +16548,13 @@ "stringstream": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.6.tgz", - "integrity": "sha512-87GEBAkegbBcweToUrdzf3eLhWNg06FJTebl4BVJz/JgWy8CvEr9dRtX5qWphiynMSQlxxi+QqN0z5T32SLlhA==", + "integrity": "sha1-eIAiWw1K0Q4wkn0Weh1vL9OzOnI=", "dev": true, "optional": true }, "strip-ansi": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "requires": { @@ -16591,7 +16591,7 @@ }, "readable-stream": { "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "requires": { @@ -16606,7 +16606,7 @@ }, "string_decoder": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "resolved": "http://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "requires": { @@ -16617,7 +16617,7 @@ }, "strip-eof": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "resolved": "http://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", "dev": true }, @@ -17602,7 +17602,7 @@ }, "colors": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", + "resolved": "http://registry.npmjs.org/colors/-/colors-1.1.2.tgz", "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", "dev": true }, @@ -17619,7 +17619,7 @@ "sax": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "integrity": "sha1-KBYjTiN4vdxOU1T6tcqold9xANk=", "dev": true }, "sprintf-js": { @@ -17951,7 +17951,7 @@ "test-exclude": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-4.2.3.tgz", - "integrity": "sha512-SYbXgY64PT+4GAL2ocI3HwPa4Q4TBKm0cwAVeKOt/Aoc0gSpNRjJX8w0pA1LMKZ3LBmd8pYBqApFNQLII9kavA==", + "integrity": "sha1-qaXmRHTkOYM5JFoKdprXwvSpfCA=", "dev": true, "requires": { "arrify": "^1.0.1", @@ -17969,7 +17969,7 @@ }, "through": { "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "resolved": "http://registry.npmjs.org/through/-/through-2.3.8.tgz", "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", "dev": true }, @@ -18110,7 +18110,7 @@ "to-regex": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", - "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "integrity": "sha1-E8/dmzNlUvMLUfM6iuG0Knp1mc4=", "dev": true, "requires": { "define-property": "^2.0.2", @@ -18288,7 +18288,7 @@ "uglify-js": { "version": "3.4.9", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.9.tgz", - "integrity": "sha512-8CJsbKOtEbnJsTyv6LE6m6ZKniqMiFWmm9sRbopbkGs3gMPPfd3Fh8iIA4Ykv5MgaTbqHr4BaoGLJLZNhsrW1Q==", + "integrity": "sha1-rwLxgMEgfXZDLkc+0koo9KeCuuM=", "dev": true, "requires": { "commander": "~2.17.1", @@ -18298,7 +18298,7 @@ "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=", "dev": true } } @@ -18312,7 +18312,7 @@ "underscore": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", - "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==", + "integrity": "sha1-BtzjSg5op7q8KbNluOdLiSUgOWE=", "dev": true }, "underscore.string": { @@ -18574,7 +18574,7 @@ "uri-js": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "integrity": "sha1-lMVA4f93KVbiKZUHwBCupsiDjrA=", "dev": true, "requires": { "punycode": "^2.1.0" @@ -18607,7 +18607,7 @@ "use": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", - "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "integrity": "sha1-1QyMrHmhn7wg8pEfVuuXP04QBw8=", "dev": true }, "util": { @@ -18661,7 +18661,7 @@ "validate-npm-package-license": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "integrity": "sha1-/JH2uce6FchX9MssXe/uw51PQQo=", "dev": true, "requires": { "spdx-correct": "^3.0.0", @@ -18923,7 +18923,7 @@ "walkdir": { "version": "0.0.12", "resolved": "https://registry.npmjs.org/walkdir/-/walkdir-0.0.12.tgz", - "integrity": "sha512-HFhaD4mMWPzFSqhpyDG48KDdrjfn409YQuVW7ckZYhW4sE87mYtWifdB/+73RA7+p4s4K18n5Jfx1kHthE1gBw==", + "integrity": "sha1-LyTxreZKqx5FhZHURCyIaDVukoE=", "dev": true }, "walker": { @@ -19891,7 +19891,7 @@ "webidl-conversions": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", - "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", + "integrity": "sha1-qFWYCx8LazWbodXZ+zmulB+qY60=", "dev": true }, "webpack": { @@ -20641,7 +20641,7 @@ "which": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "integrity": "sha1-pFBD1U9YBTFtqNYvn1CRjT2nCwo=", "dev": true, "requires": { "isexe": "^2.0.0" @@ -20676,13 +20676,13 @@ "dependencies": { "async": { "version": "0.2.10", - "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz", + "resolved": "http://registry.npmjs.org/async/-/async-0.2.10.tgz", "integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=", "dev": true }, "colors": { "version": "0.6.2", - "resolved": "https://registry.npmjs.org/colors/-/colors-0.6.2.tgz", + "resolved": "http://registry.npmjs.org/colors/-/colors-0.6.2.tgz", "integrity": "sha1-JCP+ZnisDF2uiFLl0OW+CMmXq8w=", "dev": true } @@ -20697,7 +20697,7 @@ "worker-farm": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.6.0.tgz", - "integrity": "sha512-6w+3tHbM87WnSWnENBUvA2pxJPLhQUg5LKwUQHq3r+XPhIM+Gh2R5ycbwPCyuGbNg+lPgdcnQUhuC02kJCvffQ==", + "integrity": "sha1-rsxAWXb6talVJhgIRvDboojzpKA=", "dev": true, "requires": { "errno": "~0.1.7" @@ -20842,7 +20842,7 @@ "dependencies": { "load-json-file": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", + "resolved": "http://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", "dev": true, "requires": { diff --git a/public/cui.js b/public/cui.js index d8e7ede5..1caf98b1 100644 --- a/public/cui.js +++ b/public/cui.js @@ -14711,7 +14711,7 @@ CUI.Element = (function() { opts: opts }); } else if (v.check === Boolean || v.check === String || v.check === Function || v.check === Array) { - CUI.util.assertInstanceOf.call(this, k, v.check, void 0, value); + CUI.util.assertInstanceOf.call(this, k, v.check, value); } else if (CUI.util.isFunction(v.check) && !v.check.__super__) { CUI.util.assert(CUI.util.isEmpty(v.check.name) || v.check.name === "check", cls, k + ".check is \"" + v.check.name + "\" but has no \"__super__\" method. Use \"extends CUI.Element\" or \"extends CUI.Dummy\" to fix that.", { opts: opts, @@ -14745,7 +14745,7 @@ CUI.Element = (function() { opts: opts }); } else { - CUI.util.assertInstanceOf.call(this, k, v.check, void 0, value); + CUI.util.assertInstanceOf.call(this, k, v.check, value); } } if (map_values) { @@ -17234,8 +17234,10 @@ CUI.Icon = (function(superClass) { svg_cls = ""; cls = ""; if (this._icon) { - cls = CUI.Icon.icon_map[this._icon]; - if (CUI.util.isEmpty(cls)) { + if (!cls) { + cls = CUI.Icon.icon_map[this._icon]; + } + if (!cls) { cls = this._icon; } if (cls.startsWith("svg-")) { @@ -17294,85 +17296,86 @@ CUI.Icon = (function(superClass) { }; Icon.icon_map = { - trash: "svg-trash", - reset: "svg-reset", - spinner: "svg-spinner cui-spin-stepped", - remove: "svg-close", + audio: "fa-music", + bolt: "fa-bolt", + calendar: "fa-calendar-plus-o", + camera: "fa-camera", + check: "fa-check", + clock: "fa-clock-o", close: "svg-close", - folder: "svg-folder", - folder_shared: "svg-folder-shared", - folder_upload: "svg-folder-upload", - folder_shared_upload: "svg-folder-shared-upload", - info_circle: "svg-info-circle", - external_link: "svg-external-link", + cloud: "fa-cloud", + copy: "fa-files-o", crop: "fa-crop", - fullscreen: "fa-arrows-alt", + dive: "fa-angle-right", + down: "fa-caret-down", + download: "fa-download", + east: "fa-angle-right", + edit: "fa-pencil", + ellipsis_h: "fa-ellipsis-h", + ellipsis_v: "fa-ellipsis-v", + email: "fa-envelope-o", + envelope_active: "fa-envelope", + envelope: "fa-envelope-o", + expert_search: "fa-list-ul", + "export": "fa-download", + external_link: "svg-external-link", failed: "fa-warning", - no_right: "fa-slack", + file_text: "fa-file-text-o", + file_text_active: "fa-file-text", file: "fa-file", filter: "fa-filter", - sliders: "fa-sliders", + folder_shared_upload: "svg-folder-shared-upload", + folder_shared: "svg-folder-shared", + folder_upload: "svg-folder-upload", + folder: "svg-folder", + fullscreen: "fa-arrows-alt", + heart: "fa-heart", + help: "fa-question", + image: "fa-picture-o", + info_circle: "svg-info-circle", + info_circle_ng: "svg-info-circle-ng", + info: "fa-info-circle", + left: "fa-angle-left", + legal: "fa-legal", + list: "fa-question", + menu: "fa-bars", + minus: "fa-minus", + no_right: "fa-slack", + north: "fa-angle-up", + play: "fa-play", + plus: "fa-plus", + print: "fa-print", + question: "fa-question", refresh: "fa-refresh", - zip: "fa fa-file-archive-o", - rotate_right: "fa-rotate-right", + remove: "svg-close", + required: "fa-bullhorn", + reset: "svg-reset", + resize_full: "fa-expand", + resize_small: "fa-compress", + right: "fa-angle-right", + rotate_horizontal: "fa-arrows-h", rotate_left: "fa-rotate-left", + rotate_right: "fa-rotate-right", rotate_vertical: "fa-arrows-v", - rotate_horizontal: "fa-arrows-h", - calendar: "fa-calendar-plus-o", - show: "fa-question", - help: "fa-question", - question: "fa-question", - settings: "fa-cog", - download: "fa-download", - "export": "fa-download", - list: "fa-question", - upload: "fa-upload", - envelope: "fa-envelope-o", - envelope_active: "fa-envelope", save: "fa-floppy-o", - heart: "fa-heart", - user: "fa-user", - clock: "fa-clock-o", - plus: "fa-plus", - edit: "fa-pencil", - copy: "fa-files-o", search: "fa-search", + settings: "fa-cog", share: "fa-share", - play: "fa-play", - audio: "fa-music", + show: "fa-question", + sliders: "fa-sliders", + south: "fa-angle-down", + spinner: "svg-spinner cui-spin-stepped", start: "fa-play", stop: "fa-stop", - print: "fa-print", - minus: "fa-minus", - ellipsis_h: "fa-ellipsis-h", - ellipsis_v: "fa-ellipsis-v", - menu: "fa-bars", - info: "fa-info-circle", - bolt: "fa-bolt", - check: "fa-check", + trash: "svg-trash", + up: "fa-caret-up", + upload: "fa-upload", + user: "fa-user", warning: "fa-warning", - legal: "fa-legal", - cloud: "fa-cloud", - left: "fa-angle-left", - right: "fa-angle-right", - dive: "fa-angle-right", - zoom_in: "fa-search-plus", - zoom_out: "fa-search-minus", - resize_small: "fa-compress", - resize_full: "fa-expand", - email: "fa-envelope-o", - file_text_active: "fa-file-text", - file_text: "fa-file-text-o", - required: "fa-bullhorn", west: "fa-angle-left", - east: "fa-angle-right", - south: "fa-angle-down", - north: "fa-angle-up", - up: "fa-caret-up", - down: "fa-caret-down", - camera: "fa-camera", - expert_search: "fa-list-ul", - image: "fa-picture-o" + zip: "fa fa-file-archive-o", + zoom_in: "fa-search-plus", + zoom_out: "fa-search-minus" }; return Icon; @@ -22162,23 +22165,14 @@ CUI.util = (function() { }); }; - util.assertInstanceOf = function(variableName, classClass, opts, value) { + util.assertInstanceOf = function(variableName, classClass, value) { var cn, cond, fn; - if (value == null) { - value = void 0; - } if (!CUI.defaults.asserts) { return; } if (!CUI.util.isFunction(classClass) && !classClass === "PlainObject") { throw "assertInstanceOf: class is not a Function"; } - if (value === void 0) { - value = opts[variableName]; - CUI.util.assert(CUI.util.isPlainObject(opts), "new " + arguments.callee.caller.name, "opts needs to be PlainObject but it is " + (CUI.util.getObjectClass(opts)) + ".", { - opts: opts - }); - } if (classClass === "Array") { cn = "Array"; cond = value instanceof Array; @@ -22206,7 +22200,6 @@ CUI.util = (function() { fn = CUI.util.getObjectClass(this); } CUI.util.assert(false, "new " + fn, "opts." + variableName + " needs to be instance of " + cn + " but it is " + (CUI.util.getObjectClass(value)) + ".", { - opts: opts, value: value, classClass: classClass }); diff --git a/public/cui.min.js b/public/cui.min.js index 26dc3111..24794c2a 100644 --- a/public/cui.min.js +++ b/public/cui.min.js @@ -1,4 +1,4 @@ -!function webpackUniversalModuleDefinition(v,A){"object"==typeof exports&&"object"==typeof module?module.exports=A():"function"==typeof define&&define.amd?define([],A):"object"==typeof exports?exports.CUI=A():v.CUI=A()}(window,(function(){return function(v){var A={};function __webpack_require__(z){if(A[z])return A[z].exports;var L=A[z]={i:z,l:!1,exports:{}};return v[z].call(L.exports,L,L.exports,__webpack_require__),L.l=!0,L.exports}return __webpack_require__.m=v,__webpack_require__.c=A,__webpack_require__.d=function(v,A,z){__webpack_require__.o(v,A)||Object.defineProperty(v,A,{enumerable:!0,get:z})},__webpack_require__.r=function(v){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},__webpack_require__.t=function(v,A){if(1&A&&(v=__webpack_require__(v)),8&A)return v;if(4&A&&"object"==typeof v&&v&&v.__esModule)return v;var z=Object.create(null);if(__webpack_require__.r(z),Object.defineProperty(z,"default",{enumerable:!0,value:v}),2&A&&"string"!=typeof v)for(var L in v)__webpack_require__.d(z,L,function(A){return v[A]}.bind(null,L));return z},__webpack_require__.n=function(v){var A=v&&v.__esModule?function getDefault(){return v.default}:function getModuleExports(){return v};return __webpack_require__.d(A,"a",A),A},__webpack_require__.o=function(v,A){return Object.prototype.hasOwnProperty.call(v,A)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=18)}([function(v,A,z){var L,T;T=z(2),(L=function(){function CUI(){}var v;return CUI.__readyFuncs=[],CUI.__themes=[],CUI.__ng__=!0,CUI.start=function(){var v,A,L;return A=function(){return CUI.Events.trigger({type:"viewport-resize"})},CUI.Events.listen({type:"resize",node:window,call:function(v,z){CUI.browser.ie?CUI.scheduleCallback({ms:500,call:A}):A()}}),CUI.Events.listen({type:"drop",node:document.documentElement,call:function(v){return v.preventDefault()}}),CUI.Events.listen({type:"keyup",node:window,capture:!0,call:function(v){if("C+U+I"===v.getKeyboard())return CUI.toaster({text:"CUI!"})}}),CUI.Events.listen({type:"keydown",node:window,call:function(v){var A,z,L,T,k;if("c+"===v.getKeyboard()&&CUI.toaster({text:"CUI!"}),8===v.keyCode()){for(A=0,z=(T=CUI.dom.elementsUntil(v.getTarget(),null,document.documentElement)).length;A=1}},timeout:{mandatory:!0,default:0,check:function(v){return v>=-1}},call:{mandatory:!0,check:function(v){return v instanceof Function}}}),A=x.chunk_size,S=x.timeout,CUI.util.assert(this!==CUI,"CUI.chunkWork","Cannot call CUI.chunkWork with 'this' not set to the caller."),L=0,T=x.items.length,E=this,k=function(){var v,Y,P;Y=L+1+" - "+Math.min(T,L+A)+" / "+T,z.notify({progress:Y,idx:L,len:T,chunk_size:A}),v=function(){L+A>=T?z.resolve():(L+=A,-1===S?k():CUI.setTimeout({ms:S,call:k}))},!1!==(P=x.call.call(E,x.items.slice(L,L+x.chunk_size),L,T))?CUI.util.isPromise(P)?P.fail(z.reject).done(v):v():z.reject()},z=new CUI.Deferred,CUI.setTimeout({ms:Math.min(0,S),call:function(){return T>0?k():z.resolve()}}),z.promise()},CUI.chunkWorkOLD=function(v,A,z){var L,T,k;return null==A&&(A=10),null==z&&(z=0),L=new CUI.Deferred,k=0,T=function(){var x;for(x=0;k0&&this.__callTimeoutChangeCallbacks(),this.__startTimeout(x)},CUI.__scheduledCallbacks=[],CUI.scheduleCallback=function(v){var A,z,L,T,k,x;return T=CUI.Element.readOpts(v,"CUI.scheduleCallback",{call:{mandatory:!0,check:Function},ms:{default:0,check:function(v){return CUI.util.isInteger(v)&&v>=0}},track:{default:!1,check:Boolean}}),(L=CUI.util.idxInArray(T.call,this.__scheduledCallbacks,(function(v){return v.call===T.call})))>-1&&CUI.isTimeoutRunning(this.__scheduledCallbacks[L].timeoutID)&&(L=-1),-1!==L?(CUI.resetTimeout(this.__scheduledCallbacks[L].timeoutID),this.__scheduledCallbacks[L].promise):(L=this.__scheduledCallbacks.length,z=new CUI.Deferred,k=CUI.setTimeout({ms:T.ms,track:T.track,call:function(){return T.call(),z.resolve()}}),A=this.__scheduledCallbacks[L]={call:T.call,timeoutID:k,promise:z.promise()},z.done((x=this,function(){return CUI.util.removeFromArray(T.call,x.__scheduledCallbacks,(function(v){return v.call===T.call}))})),A.promise)},CUI.scheduleCallbackCancel=function(v){var A,z;return z=CUI.Element.readOpts(v,"CUI.scheduleCallbackCancel",{call:{mandatory:!0,check:Function}}),(A=CUI.util.idxInArray(z.call,this.__scheduledCallbacks,(function(v){return v.call===z.call})))>-1&&!CUI.isTimeoutRunning(this.__scheduledCallbacks[A].timeoutID)&&(CUI.clearTimeout(this.__scheduledCallbacks[A].timeoutID),this.__scheduledCallbacks.splice(A,1),!0)},CUI.utf8ArrayBufferToString=function(v){var A,z,L,T,k,x,S;for(S=[],x=(A=new Uint8Array(v)).length,k=0;k>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:S.push(String.fromCharCode(z));break;case 12:case 13:L=A[k++],S.push(String.fromCharCode((31&z)<<6|63&L));break;case 14:L=A[k++],T=A[k++],S.push(String.fromCharCode((15&z)<<12|(63&L)<<6|(63&T)<<0))}return S.join("")},CUI.__startTimeout=function(v){var A;return A=window.setTimeout(v.call,v.ms),v.id||(v.id=A),v.real_id=A,v.id},CUI.countTimeouts=function(){var v,A,z,L;for(L=0,v=0,A=(z=this.__timeouts).length;v0&&Y.push(","),z=T=0,x=(E=P.split(":")).length;T0&&Y.push(":"),Y.push(encodeURIComponent(q));return Y.join("")},CUI.decodeURIComponentNicely=function(v){return decodeURIComponent(v)},CUI.decodeUrlData=function(v,A,z,L,T){var k,x,S,E,Y,P,q,F,H;for(null==A&&(A=null),null==z&&(z="&"),null==L&&(L="="),null==T&&(T=!1),P={},k=A?CUI.util.isFunction(A)?A:function(v){return CUI.util.stringMapReplace(v+"",A)}:function(v){return decodeURIComponent(v)},x=0,E=(F=v.split(z)).length;x-1?(S=k((Y=q.split(L))[0]),H=k(Y[1])):(S=k(q),H=""),T?(P[S]||(P[S]=[]),P[S].push(H)):P[S]=H);return P},CUI.decodeUrlDataArray=function(v,A,z,L){return null==A&&(A=null),null==z&&(z="&"),null==L&&(L="="),this.decodeUrlData(v,A,z,L,!0)},CUI.mergeMap=function(v,A){var z,L;for(z in A)L=A[z],v.hasOwnProperty(z)?CUI.util.isPlainObject(v[z])&&CUI.util.isPlainObject(L)&&CUI.util.mergeMap(v[z],L):v[z]=L;return v},CUI.revertMap=function(v){var A,z;for(A in z={},v)z[v[A]]=A;return z},CUI.stringMapReplace=function(v,A){var z,L;for(z in L=[],A)CUI.util.isEmpty(z)||L.push(z.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));return L.length>0?v.replace(new RegExp(L.join("|"),"g"),(function(v){return A[v]})):v},CUI.isFunction=function(v){return v&&"function"==typeof v},CUI.isPlainObject=function(v){var A;return v&&"object"==typeof v&&(null!=(A=v.constructor)?A.prototype.hasOwnProperty("isPrototypeOf"):void 0)},CUI.isEmptyObject=function(v){var A;for(A in v)return!1;return!0},CUI.isMap=function(v){return this.isPlainObject(v)},CUI.isArray=function(v){return Array.isArray(v)},CUI.inArray=function(v,A){return A.indexOf(v)},CUI.isString=function(v){return"string"==typeof v},CUI.downloadData=function(v,A){var z,L;return z=new Blob([v],{type:"octet/stream"}),window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(z,A):(L=window.URL.createObjectURL(z),this.__downloadDataElement.href=L,this.__downloadDataElement.download=A,this.__downloadDataElement.click(),window.URL.revokeObjectURL(L))},CUI.urlRegex=new RegExp("^(?:(?:(sftp|ftp|ftps|https|http))://|)(?:(\\S+?)(?::(\\S*))?@)?((?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:[a-z0-9\\u00a1-\\uffff](?:|[a-z\\u00a1-\\uffff0-9-]*[a-z0-9\\u00a1-\\uffff])\\.)*(?:[a-z\\u00a1-\\uffff]{2,})|(?:[a-z0-9\\u00a1-\\uffff][a-z0-9-\\u00a1-\\uffff]*[a-z0-9\\u00a1-\\uffff])))|)(?::(\\d{2,5}))?(?:([/?#]\\S*))?$","i"),CUI.evalCode=function(v){var A;return(A=document.createElement("script")).text=v,document.head.appendChild(A).parentNode.removeChild(A)},CUI.appendToUrl=function(v,A){var z,L;for(z in A)void 0!==(L=A[z])&&(v.match(/\?/)?v+="&":v+="?",v+=encodeURIComponent(z)+"="+encodeURIComponent(L));return v},CUI.parseLocation=function(v){var A,z,L;return CUI.util.isFunction(null!=v?v.match:void 0)&&0!==v.length&&(z=v.match(this.urlRegex))?((L={protocol:z[1]||"",user:z[2]||"",password:z[3]||"",hostname:z[4]||"",port:z[5]||"",path:z[6]||"",origin:""}).hostname?(L.protocol||(L.protocol="http"),L.origin=L.protocol+"://"+L.hostname,L.port&&(L.origin+=":"+L.port),L.url=L.protocol+"://",L.user&&(L.url=L.url+L.user+":"+L.password+"@"),L.url=L.url+L.hostname,L.port&&(L.url=L.url+":"+L.port)):L.url="",L.path.length>0?(A=L.path.match(/(.*?)(|\?.*?)(|\#.*)$/),L.pathname=A[1],L.search=A[2],"?"===L.search&&(L.search=""),L.fragment=A[3]):(L.search="",L.pathname="",L.fragment=""),L.href=L.origin+L.path,L.hash=L.fragment,L.login&&(L.auth=btoa(L.user+":"+L.password)),L.url=L.url+L.path,L):null},CUI.escapeAttribute=function(v){return CUI.util.isNull(v)||!CUI.util.isString(v)?"":v=v.replace(/"/g,""").replace(/\'/g,"'")},CUI.loadScript=function(v){var A,z;return A=new CUI.Deferred,z=CUI.dom.element("script",{charset:"utf-8",src:v}),CUI.Events.listen({type:"load",node:z,instance:z,call:function(v){A.resolve(v)}}),CUI.Events.listen({type:"error",node:z,instance:z,call:function(v){document.head.removeChild(z),A.reject(v)}}),A.always((function(){return CUI.Events.ignore({instance:z})})),document.head.appendChild(z),A.promise()},CUI.browser=((v={opera:!!window.opr&&!!opr.addons||!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0,firefox:"undefined"!=typeof InstallTrigger,safari:Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,ie:!!document.documentMode,chrome:!!window.chrome&&!!window.chrome.webstore}).edge=!v.ie&&!!window.StyleMedia,v.blink=(v.chrome||v.opera)&&!!window.CSS,v),CUI}()).ready((function(){var v,A;for(v in L.browser)L.browser[v]&&document.body.classList.add("cui-browser-"+v);return L.defaults.marked_opts={renderer:new T.Renderer,gfm:!0,tables:!0,breaks:!1,pedantic:!1,smartLists:!0,smartypants:!1},T.setOptions(L.defaults.marked_opts),A=L.dom.htmlToNodes("\x3c!-- CUI.CUI --\x3e\x3c!-- /CUI.CUI --\x3e"),L.__downloadDataElement=A[1],L.dom.append(document.body,A)})),window.addEventListener?window.addEventListener("load",(function(){return L.start()})):alert("Your browser is not supported. Please update to a current version of Google Chrome, Mozilla Firefox or Internet Explorer."),v.exports=L},function(v,A,z){(function(v){v.exports=function(){"use strict";var A,L;function hooks(){return A.apply(null,arguments)}function setHookCallback(v){A=v}function isArray(v){return v instanceof Array||"[object Array]"===Object.prototype.toString.call(v)}function isObject(v){return null!=v&&"[object Object]"===Object.prototype.toString.call(v)}function isObjectEmpty(v){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(v).length;var A;for(A in v)if(v.hasOwnProperty(A))return!1;return!0}function isUndefined(v){return void 0===v}function isNumber(v){return"number"==typeof v||"[object Number]"===Object.prototype.toString.call(v)}function isDate(v){return v instanceof Date||"[object Date]"===Object.prototype.toString.call(v)}function map(v,A){var z,L=[];for(z=0;z>>0,L=0;L0)for(z=0;z0?"future":"past"];return isFunction(z)?z(A):z.replace(/%s/i,A)}var X={};function addUnitAlias(v,A){var z=v.toLowerCase();X[z]=X[z+"s"]=X[A]=v}function normalizeUnits(v){return"string"==typeof v?X[v]||X[v.toLowerCase()]:void 0}function normalizeObjectUnits(v){var A,z,L={};for(z in v)hasOwnProp(v,z)&&(A=normalizeUnits(z))&&(L[A]=v[z]);return L}var V={};function addUnitPriority(v,A){V[v]=A}function getPrioritizedUnits(v){var A=[];for(var z in v)A.push({unit:z,priority:V[z]});return A.sort((function(v,A){return v.priority-A.priority})),A}function zeroFill(v,A,z){var L=""+Math.abs(v),T=A-L.length;return(v>=0?z?"+":"":"-")+Math.pow(10,Math.max(0,T)).toString().substr(1)+L}var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,J=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,tt={},et={};function addFormatToken(v,A,z,L){var T=L;"string"==typeof L&&(T=function(){return this[L]()}),v&&(et[v]=T),A&&(et[A[0]]=function(){return zeroFill(T.apply(this,arguments),A[1],A[2])}),z&&(et[z]=function(){return this.localeData().ordinal(T.apply(this,arguments),v)})}function removeFormattingTokens(v){return v.match(/\[[\s\S]/)?v.replace(/^\[|\]$/g,""):v.replace(/\\/g,"")}function makeFormatFunction(v){var A,z,L=v.match(U);for(A=0,z=L.length;A=0&&J.test(v);)v=v.replace(J,replaceLongDateFormatTokens),J.lastIndex=0,z-=1;return v}var it=/\d/,ot=/\d\d/,nt=/\d{3}/,rt=/\d{4}/,st=/[+-]?\d{6}/,at=/\d\d?/,ct=/\d\d\d\d?/,lt=/\d\d\d\d\d\d?/,ut=/\d{1,3}/,pt=/\d{1,4}/,ht=/[+-]?\d{1,6}/,dt=/\d+/,_t=/[+-]?\d+/,ft=/Z|[+-]\d\d:?\d\d/gi,mt=/Z|[+-]\d\d(?::?\d\d)?/gi,Mt=/[+-]?\d+(\.\d{1,3})?/,gt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,yt={};function addRegexToken(v,A,z){yt[v]=isFunction(A)?A:function(v,L){return v&&z?z:A}}function getParseRegexForToken(v,A){return hasOwnProp(yt,v)?yt[v](A._strict,A._locale):new RegExp(unescapeFormat(v))}function unescapeFormat(v){return regexEscape(v.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(v,A,z,L,T){return A||z||L||T})))}function regexEscape(v){return v.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var bt={};function addParseToken(v,A){var z,L=A;for("string"==typeof v&&(v=[v]),isNumber(A)&&(L=function(v,z){z[A]=toInt(v)}),z=0;z68?1900:2e3)};var xt,St=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(v,A){return function(z){return null!=z?(set$1(this,v,z),hooks.updateOffset(this,A),this):get(this,v)}}function get(v,A){return v.isValid()?v._d["get"+(v._isUTC?"UTC":"")+A]():NaN}function set$1(v,A,z){v.isValid()&&!isNaN(z)&&("FullYear"===A&&isLeapYear(v.year())&&1===v.month()&&29===v.date()?v._d["set"+(v._isUTC?"UTC":"")+A](z,v.month(),daysInMonth(z,v.month())):v._d["set"+(v._isUTC?"UTC":"")+A](z))}function stringGet(v){return isFunction(this[v=normalizeUnits(v)])?this[v]():this}function stringSet(v,A){if("object"==typeof v)for(var z=getPrioritizedUnits(v=normalizeObjectUnits(v)),L=0;L=0?(S=new Date(v+400,A,z,L,T,k,x),isFinite(S.getFullYear())&&S.setFullYear(v)):S=new Date(v,A,z,L,T,k,x),S}function createUTCDate(v){var A;if(v<100&&v>=0){var z=Array.prototype.slice.call(arguments);z[0]=v+400,A=new Date(Date.UTC.apply(null,z)),isFinite(A.getUTCFullYear())&&A.setUTCFullYear(v)}else A=new Date(Date.UTC.apply(null,arguments));return A}function firstWeekOffset(v,A,z){var L=7+A-z;return-(7+createUTCDate(v,0,L).getUTCDay()-A)%7+L-1}function dayOfYearFromWeeks(v,A,z,L,T){var k,x,S=1+7*(A-1)+(7+z-L)%7+firstWeekOffset(v,L,T);return S<=0?x=daysInYear(k=v-1)+S:S>daysInYear(v)?(k=v+1,x=S-daysInYear(v)):(k=v,x=S),{year:k,dayOfYear:x}}function weekOfYear(v,A,z){var L,T,k=firstWeekOffset(v.year(),A,z),x=Math.floor((v.dayOfYear()-k-1)/7)+1;return x<1?L=x+weeksInYear(T=v.year()-1,A,z):x>weeksInYear(v.year(),A,z)?(L=x-weeksInYear(v.year(),A,z),T=v.year()+1):(T=v.year(),L=x),{week:L,year:T}}function weeksInYear(v,A,z){var L=firstWeekOffset(v,A,z),T=firstWeekOffset(v+1,A,z);return(daysInYear(v)-L+T)/7}function localeWeek(v){return weekOfYear(v,this._week.dow,this._week.doy).week}addFormatToken("w",["ww",2],"wo","week"),addFormatToken("W",["WW",2],"Wo","isoWeek"),addUnitAlias("week","w"),addUnitAlias("isoWeek","W"),addUnitPriority("week",5),addUnitPriority("isoWeek",5),addRegexToken("w",at),addRegexToken("ww",at,ot),addRegexToken("W",at),addRegexToken("WW",at,ot),addWeekParseToken(["w","ww","W","WW"],(function(v,A,z,L){A[L.substr(0,1)]=toInt(v)}));var It={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(v){var A=this.localeData().week(this);return null==v?A:this.add(7*(v-A),"d")}function getSetISOWeek(v){var A=weekOfYear(this,1,4).week;return null==v?A:this.add(7*(v-A),"d")}function parseWeekday(v,A){return"string"!=typeof v?v:isNaN(v)?"number"==typeof(v=A.weekdaysParse(v))?v:null:parseInt(v,10)}function parseIsoWeekday(v,A){return"string"==typeof v?A.weekdaysParse(v)%7||7:isNaN(v)?null:v}function shiftWeekdays(v,A){return v.slice(A,7).concat(v.slice(0,A))}addFormatToken("d",0,"do","day"),addFormatToken("dd",0,0,(function(v){return this.localeData().weekdaysMin(this,v)})),addFormatToken("ddd",0,0,(function(v){return this.localeData().weekdaysShort(this,v)})),addFormatToken("dddd",0,0,(function(v){return this.localeData().weekdays(this,v)})),addFormatToken("e",0,0,"weekday"),addFormatToken("E",0,0,"isoWeekday"),addUnitAlias("day","d"),addUnitAlias("weekday","e"),addUnitAlias("isoWeekday","E"),addUnitPriority("day",11),addUnitPriority("weekday",11),addUnitPriority("isoWeekday",11),addRegexToken("d",at),addRegexToken("e",at),addRegexToken("E",at),addRegexToken("dd",(function(v,A){return A.weekdaysMinRegex(v)})),addRegexToken("ddd",(function(v,A){return A.weekdaysShortRegex(v)})),addRegexToken("dddd",(function(v,A){return A.weekdaysRegex(v)})),addWeekParseToken(["dd","ddd","dddd"],(function(v,A,z,L){var T=z._locale.weekdaysParse(v,L,z._strict);null!=T?A.d=T:getParsingFlags(z).invalidWeekday=v})),addWeekParseToken(["d","e","E"],(function(v,A,z,L){A[L]=toInt(v)}));var Pt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function localeWeekdays(v,A){var z=isArray(this._weekdays)?this._weekdays:this._weekdays[v&&!0!==v&&this._weekdays.isFormat.test(A)?"format":"standalone"];return!0===v?shiftWeekdays(z,this._week.dow):v?z[v.day()]:z}var Wt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function localeWeekdaysShort(v){return!0===v?shiftWeekdays(this._weekdaysShort,this._week.dow):v?this._weekdaysShort[v.day()]:this._weekdaysShort}var jt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function localeWeekdaysMin(v){return!0===v?shiftWeekdays(this._weekdaysMin,this._week.dow):v?this._weekdaysMin[v.day()]:this._weekdaysMin}function handleStrictParse$1(v,A,z){var L,T,k,x=v.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],L=0;L<7;++L)k=createUTC([2e3,1]).day(L),this._minWeekdaysParse[L]=this.weekdaysMin(k,"").toLocaleLowerCase(),this._shortWeekdaysParse[L]=this.weekdaysShort(k,"").toLocaleLowerCase(),this._weekdaysParse[L]=this.weekdays(k,"").toLocaleLowerCase();return z?"dddd"===A?-1!==(T=xt.call(this._weekdaysParse,x))?T:null:"ddd"===A?-1!==(T=xt.call(this._shortWeekdaysParse,x))?T:null:-1!==(T=xt.call(this._minWeekdaysParse,x))?T:null:"dddd"===A?-1!==(T=xt.call(this._weekdaysParse,x))||-1!==(T=xt.call(this._shortWeekdaysParse,x))||-1!==(T=xt.call(this._minWeekdaysParse,x))?T:null:"ddd"===A?-1!==(T=xt.call(this._shortWeekdaysParse,x))||-1!==(T=xt.call(this._weekdaysParse,x))||-1!==(T=xt.call(this._minWeekdaysParse,x))?T:null:-1!==(T=xt.call(this._minWeekdaysParse,x))||-1!==(T=xt.call(this._weekdaysParse,x))||-1!==(T=xt.call(this._shortWeekdaysParse,x))?T:null}function localeWeekdaysParse(v,A,z){var L,T,k;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,v,A,z);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),L=0;L<7;L++){if(T=createUTC([2e3,1]).day(L),z&&!this._fullWeekdaysParse[L]&&(this._fullWeekdaysParse[L]=new RegExp("^"+this.weekdays(T,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[L]=new RegExp("^"+this.weekdaysShort(T,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[L]=new RegExp("^"+this.weekdaysMin(T,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[L]||(k="^"+this.weekdays(T,"")+"|^"+this.weekdaysShort(T,"")+"|^"+this.weekdaysMin(T,""),this._weekdaysParse[L]=new RegExp(k.replace(".",""),"i")),z&&"dddd"===A&&this._fullWeekdaysParse[L].test(v))return L;if(z&&"ddd"===A&&this._shortWeekdaysParse[L].test(v))return L;if(z&&"dd"===A&&this._minWeekdaysParse[L].test(v))return L;if(!z&&this._weekdaysParse[L].test(v))return L}}function getSetDayOfWeek(v){if(!this.isValid())return null!=v?this:NaN;var A=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=v?(v=parseWeekday(v,this.localeData()),this.add(v-A,"d")):A}function getSetLocaleDayOfWeek(v){if(!this.isValid())return null!=v?this:NaN;var A=(this.day()+7-this.localeData()._week.dow)%7;return null==v?A:this.add(v-A,"d")}function getSetISODayOfWeek(v){if(!this.isValid())return null!=v?this:NaN;if(null!=v){var A=parseIsoWeekday(v,this.localeData());return this.day(this.day()%7?A:A-7)}return this.day()||7}var Gt=gt;function weekdaysRegex(v){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),v?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=Gt),this._weekdaysStrictRegex&&v?this._weekdaysStrictRegex:this._weekdaysRegex)}var Zt=gt;function weekdaysShortRegex(v){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),v?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Zt),this._weekdaysShortStrictRegex&&v?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}var Kt=gt;function weekdaysMinRegex(v){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),v?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Kt),this._weekdaysMinStrictRegex&&v?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function cmpLenRev(v,A){return A.length-v.length}var v,A,z,L,T,k=[],x=[],S=[],E=[];for(v=0;v<7;v++)A=createUTC([2e3,1]).day(v),z=this.weekdaysMin(A,""),L=this.weekdaysShort(A,""),T=this.weekdays(A,""),k.push(z),x.push(L),S.push(T),E.push(z),E.push(L),E.push(T);for(k.sort(cmpLenRev),x.sort(cmpLenRev),S.sort(cmpLenRev),E.sort(cmpLenRev),v=0;v<7;v++)x[v]=regexEscape(x[v]),S[v]=regexEscape(S[v]),E[v]=regexEscape(E[v]);this._weekdaysRegex=new RegExp("^("+E.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+S.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+x.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+k.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}function meridiem(v,A){addFormatToken(v,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),A)}))}function matchMeridiem(v,A){return A._meridiemParse}function localeIsPM(v){return"p"===(v+"").toLowerCase().charAt(0)}addFormatToken("H",["HH",2],0,"hour"),addFormatToken("h",["hh",2],0,hFormat),addFormatToken("k",["kk",2],0,kFormat),addFormatToken("hmm",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)})),addFormatToken("hmmss",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),addFormatToken("Hmm",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)})),addFormatToken("Hmmss",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),meridiem("a",!0),meridiem("A",!1),addUnitAlias("hour","h"),addUnitPriority("hour",13),addRegexToken("a",matchMeridiem),addRegexToken("A",matchMeridiem),addRegexToken("H",at),addRegexToken("h",at),addRegexToken("k",at),addRegexToken("HH",at,ot),addRegexToken("hh",at,ot),addRegexToken("kk",at,ot),addRegexToken("hmm",ct),addRegexToken("hmmss",lt),addRegexToken("Hmm",ct),addRegexToken("Hmmss",lt),addParseToken(["H","HH"],Ot),addParseToken(["k","kk"],(function(v,A,z){var L=toInt(v);A[Ot]=24===L?0:L})),addParseToken(["a","A"],(function(v,A,z){z._isPm=z._locale.isPM(v),z._meridiem=v})),addParseToken(["h","hh"],(function(v,A,z){A[Ot]=toInt(v),getParsingFlags(z).bigHour=!0})),addParseToken("hmm",(function(v,A,z){var L=v.length-2;A[Ot]=toInt(v.substr(0,L)),A[zt]=toInt(v.substr(L)),getParsingFlags(z).bigHour=!0})),addParseToken("hmmss",(function(v,A,z){var L=v.length-4,T=v.length-2;A[Ot]=toInt(v.substr(0,L)),A[zt]=toInt(v.substr(L,2)),A[Lt]=toInt(v.substr(T)),getParsingFlags(z).bigHour=!0})),addParseToken("Hmm",(function(v,A,z){var L=v.length-2;A[Ot]=toInt(v.substr(0,L)),A[zt]=toInt(v.substr(L))})),addParseToken("Hmmss",(function(v,A,z){var L=v.length-4,T=v.length-2;A[Ot]=toInt(v.substr(0,L)),A[zt]=toInt(v.substr(L,2)),A[Lt]=toInt(v.substr(T))}));var $t=/[ap]\.?m?\.?/i;function localeMeridiem(v,A,z){return v>11?z?"pm":"PM":z?"am":"AM"}var Qt,te=makeGetSet("Hours",!0),ee={calendar:E,longDateFormat:Y,invalidDate:P,ordinal:q,dayOfMonthOrdinalParse:F,relativeTime:H,months:Et,monthsShort:Bt,week:It,weekdays:Pt,weekdaysMin:jt,weekdaysShort:Wt,meridiemParse:$t},ie={},oe={};function normalizeLocale(v){return v?v.toLowerCase().replace("_","-"):v}function chooseLocale(v){for(var A,z,L,T,k=0;k0;){if(L=loadLocale(T.slice(0,A).join("-")))return L;if(z&&z.length>=A&&compareArrays(T,z,!0)>=A-1)break;A--}k++}return Qt}function loadLocale(A){var L=null;if(!ie[A]&&void 0!==v&&v&&v.exports)try{L=Qt._abbr,z(27)("./"+A),getSetGlobalLocale(L)}catch(v){}return ie[A]}function getSetGlobalLocale(v,A){var z;return v&&((z=isUndefined(A)?getLocale(v):defineLocale(v,A))?Qt=z:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+v+" not found. Did you forget to load it?")),Qt._abbr}function defineLocale(v,A){if(null!==A){var z,L=ee;if(A.abbr=v,null!=ie[v])deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),L=ie[v]._config;else if(null!=A.parentLocale)if(null!=ie[A.parentLocale])L=ie[A.parentLocale]._config;else{if(null==(z=loadLocale(A.parentLocale)))return oe[A.parentLocale]||(oe[A.parentLocale]=[]),oe[A.parentLocale].push({name:v,config:A}),null;L=z._config}return ie[v]=new Locale(mergeConfigs(L,A)),oe[v]&&oe[v].forEach((function(v){defineLocale(v.name,v.config)})),getSetGlobalLocale(v),ie[v]}return delete ie[v],null}function updateLocale(v,A){if(null!=A){var z,L,T=ee;null!=(L=loadLocale(v))&&(T=L._config),(z=new Locale(A=mergeConfigs(T,A))).parentLocale=ie[v],ie[v]=z,getSetGlobalLocale(v)}else null!=ie[v]&&(null!=ie[v].parentLocale?ie[v]=ie[v].parentLocale:null!=ie[v]&&delete ie[v]);return ie[v]}function getLocale(v){var A;if(v&&v._locale&&v._locale._abbr&&(v=v._locale._abbr),!v)return Qt;if(!isArray(v)){if(A=loadLocale(v))return A;v=[v]}return chooseLocale(v)}function listLocales(){return x(ie)}function checkOverflow(v){var A,z=v._a;return z&&-2===getParsingFlags(v).overflow&&(A=z[wt]<0||z[wt]>11?wt:z[At]<1||z[At]>daysInMonth(z[vt],z[wt])?At:z[Ot]<0||z[Ot]>24||24===z[Ot]&&(0!==z[zt]||0!==z[Lt]||0!==z[Tt])?Ot:z[zt]<0||z[zt]>59?zt:z[Lt]<0||z[Lt]>59?Lt:z[Tt]<0||z[Tt]>999?Tt:-1,getParsingFlags(v)._overflowDayOfYear&&(AAt)&&(A=At),getParsingFlags(v)._overflowWeeks&&-1===A&&(A=Dt),getParsingFlags(v)._overflowWeekday&&-1===A&&(A=Ct),getParsingFlags(v).overflow=A),v}function defaults(v,A,z){return null!=v?v:null!=A?A:z}function currentDateArray(v){var A=new Date(hooks.now());return v._useUTC?[A.getUTCFullYear(),A.getUTCMonth(),A.getUTCDate()]:[A.getFullYear(),A.getMonth(),A.getDate()]}function configFromArray(v){var A,z,L,T,k,x=[];if(!v._d){for(L=currentDateArray(v),v._w&&null==v._a[At]&&null==v._a[wt]&&dayOfYearFromWeekInfo(v),null!=v._dayOfYear&&(k=defaults(v._a[vt],L[vt]),(v._dayOfYear>daysInYear(k)||0===v._dayOfYear)&&(getParsingFlags(v)._overflowDayOfYear=!0),z=createUTCDate(k,0,v._dayOfYear),v._a[wt]=z.getUTCMonth(),v._a[At]=z.getUTCDate()),A=0;A<3&&null==v._a[A];++A)v._a[A]=x[A]=L[A];for(;A<7;A++)v._a[A]=x[A]=null==v._a[A]?2===A?1:0:v._a[A];24===v._a[Ot]&&0===v._a[zt]&&0===v._a[Lt]&&0===v._a[Tt]&&(v._nextDay=!0,v._a[Ot]=0),v._d=(v._useUTC?createUTCDate:createDate).apply(null,x),T=v._useUTC?v._d.getUTCDay():v._d.getDay(),null!=v._tzm&&v._d.setUTCMinutes(v._d.getUTCMinutes()-v._tzm),v._nextDay&&(v._a[Ot]=24),v._w&&void 0!==v._w.d&&v._w.d!==T&&(getParsingFlags(v).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(v){var A,z,L,T,k,x,S,E;if(null!=(A=v._w).GG||null!=A.W||null!=A.E)k=1,x=4,z=defaults(A.GG,v._a[vt],weekOfYear(createLocal(),1,4).year),L=defaults(A.W,1),((T=defaults(A.E,1))<1||T>7)&&(E=!0);else{k=v._locale._week.dow,x=v._locale._week.doy;var Y=weekOfYear(createLocal(),k,x);z=defaults(A.gg,v._a[vt],Y.year),L=defaults(A.w,Y.week),null!=A.d?((T=A.d)<0||T>6)&&(E=!0):null!=A.e?(T=A.e+k,(A.e<0||A.e>6)&&(E=!0)):T=k}L<1||L>weeksInYear(z,k,x)?getParsingFlags(v)._overflowWeeks=!0:null!=E?getParsingFlags(v)._overflowWeekday=!0:(S=dayOfYearFromWeeks(z,L,T,k,x),v._a[vt]=S.year,v._dayOfYear=S.dayOfYear)}var ne=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,re=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,se=/Z|[+-]\d\d(?::?\d\d)?/,ae=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],le=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ue=/^\/?Date\((\-?\d+)/i;function configFromISO(v){var A,z,L,T,k,x,S=v._i,E=ne.exec(S)||re.exec(S);if(E){for(getParsingFlags(v).iso=!0,A=0,z=ae.length;A0&&getParsingFlags(v).unusedInput.push(k),x=x.slice(x.indexOf(z)+z.length),E+=z.length),et[T]?(z?getParsingFlags(v).empty=!1:getParsingFlags(v).unusedTokens.push(T),addTimeToArrayFromToken(T,z,v)):v._strict&&!z&&getParsingFlags(v).unusedTokens.push(T);getParsingFlags(v).charsLeftOver=S-E,x.length>0&&getParsingFlags(v).unusedInput.push(x),v._a[Ot]<=12&&!0===getParsingFlags(v).bigHour&&v._a[Ot]>0&&(getParsingFlags(v).bigHour=void 0),getParsingFlags(v).parsedDateParts=v._a.slice(0),getParsingFlags(v).meridiem=v._meridiem,v._a[Ot]=meridiemFixWrap(v._locale,v._a[Ot],v._meridiem),configFromArray(v),checkOverflow(v)}else configFromRFC2822(v);else configFromISO(v)}function meridiemFixWrap(v,A,z){var L;return null==z?A:null!=v.meridiemHour?v.meridiemHour(A,z):null!=v.isPM?((L=v.isPM(z))&&A<12&&(A+=12),L||12!==A||(A=0),A):A}function configFromStringAndArray(v){var A,z,L,T,k;if(0===v._f.length)return getParsingFlags(v).invalidFormat=!0,void(v._d=new Date(NaN));for(T=0;Tthis?this:v:createInvalid()}));function pickBy(v,A){var z,L;if(1===A.length&&isArray(A[0])&&(A=A[0]),!A.length)return createLocal();for(z=A[0],L=1;Lthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var v={};if(copyConfig(v,this),(v=prepareConfig(v))._a){var A=v._isUTC?createUTC(v._a):createLocal(v._a);this._isDSTShifted=this.isValid()&&compareArrays(v._a,A.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function isLocal(){return!!this.isValid()&&!this._isUTC}function isUtcOffset(){return!!this.isValid()&&this._isUTC}function isUtc(){return!!this.isValid()&&this._isUTC&&0===this._offset}hooks.updateOffset=function(){};var Oe=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ze=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(v,A){var z,L,T,k=v,x=null;return isDuration(v)?k={ms:v._milliseconds,d:v._days,M:v._months}:isNumber(v)?(k={},A?k[A]=v:k.milliseconds=v):(x=Oe.exec(v))?(z="-"===x[1]?-1:1,k={y:0,d:toInt(x[At])*z,h:toInt(x[Ot])*z,m:toInt(x[zt])*z,s:toInt(x[Lt])*z,ms:toInt(absRound(1e3*x[Tt]))*z}):(x=ze.exec(v))?(z="-"===x[1]?-1:1,k={y:parseIso(x[2],z),M:parseIso(x[3],z),w:parseIso(x[4],z),d:parseIso(x[5],z),h:parseIso(x[6],z),m:parseIso(x[7],z),s:parseIso(x[8],z)}):null==k?k={}:"object"==typeof k&&("from"in k||"to"in k)&&(T=momentsDifference(createLocal(k.from),createLocal(k.to)),(k={}).ms=T.milliseconds,k.M=T.months),L=new Duration(k),isDuration(v)&&hasOwnProp(v,"_locale")&&(L._locale=v._locale),L}function parseIso(v,A){var z=v&&parseFloat(v.replace(",","."));return(isNaN(z)?0:z)*A}function positiveMomentsDifference(v,A){var z={};return z.months=A.month()-v.month()+12*(A.year()-v.year()),v.clone().add(z.months,"M").isAfter(A)&&--z.months,z.milliseconds=+A-+v.clone().add(z.months,"M"),z}function momentsDifference(v,A){var z;return v.isValid()&&A.isValid()?(A=cloneWithOffset(A,v),v.isBefore(A)?z=positiveMomentsDifference(v,A):((z=positiveMomentsDifference(A,v)).milliseconds=-z.milliseconds,z.months=-z.months),z):{milliseconds:0,months:0}}function createAdder(v,A){return function(z,L){var T;return null===L||isNaN(+L)||(deprecateSimple(A,"moment()."+A+"(period, number) is deprecated. Please use moment()."+A+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),T=z,z=L,L=T),addSubtract(this,createDuration(z="string"==typeof z?+z:z,L),v),this}}function addSubtract(v,A,z,L){var T=A._milliseconds,k=absRound(A._days),x=absRound(A._months);v.isValid()&&(L=null==L||L,x&&setMonth(v,get(v,"Month")+x*z),k&&set$1(v,"Date",get(v,"Date")+k*z),T&&v._d.setTime(v._d.valueOf()+T*z),L&&hooks.updateOffset(v,k||x))}createDuration.fn=Duration.prototype,createDuration.invalid=createInvalid$1;var Le=createAdder(1,"add"),Te=createAdder(-1,"subtract");function getCalendarFormat(v,A){var z=v.diff(A,"days",!0);return z<-6?"sameElse":z<-1?"lastWeek":z<0?"lastDay":z<1?"sameDay":z<2?"nextDay":z<7?"nextWeek":"sameElse"}function calendar$1(v,A){var z=v||createLocal(),L=cloneWithOffset(z,this).startOf("day"),T=hooks.calendarFormat(this,L)||"sameElse",k=A&&(isFunction(A[T])?A[T].call(this,z):A[T]);return this.format(k||this.localeData().calendar(T,this,createLocal(z)))}function clone(){return new Moment(this)}function isAfter(v,A){var z=isMoment(v)?v:createLocal(v);return!(!this.isValid()||!z.isValid())&&("millisecond"===(A=normalizeUnits(A)||"millisecond")?this.valueOf()>z.valueOf():z.valueOf()9999?formatMoment(z,A?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?A?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",formatMoment(z,"Z")):formatMoment(z,A?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var v="moment",A="";this.isLocal()||(v=0===this.utcOffset()?"moment.utc":"moment.parseZone",A="Z");var z="["+v+'("]',L=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",T="-MM-DD[T]HH:mm:ss.SSS",k=A+'[")]';return this.format(z+L+T+k)}function format(v){v||(v=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var A=formatMoment(this,v);return this.localeData().postformat(A)}function from(v,A){return this.isValid()&&(isMoment(v)&&v.isValid()||createLocal(v).isValid())?createDuration({to:this,from:v}).locale(this.locale()).humanize(!A):this.localeData().invalidDate()}function fromNow(v){return this.from(createLocal(),v)}function to(v,A){return this.isValid()&&(isMoment(v)&&v.isValid()||createLocal(v).isValid())?createDuration({from:this,to:v}).locale(this.locale()).humanize(!A):this.localeData().invalidDate()}function toNow(v){return this.to(createLocal(),v)}function locale(v){var A;return void 0===v?this._locale._abbr:(null!=(A=getLocale(v))&&(this._locale=A),this)}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var De=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(v){return void 0===v?this.localeData():this.locale(v)}));function localeData(){return this._locale}var ke=1e3,Ce=60*ke,Se=60*Ce,Ne=3506328*Se;function mod$1(v,A){return(v%A+A)%A}function localStartOfDate(v,A,z){return v<100&&v>=0?new Date(v+400,A,z)-Ne:new Date(v,A,z).valueOf()}function utcStartOfDate(v,A,z){return v<100&&v>=0?Date.UTC(v+400,A,z)-Ne:Date.UTC(v,A,z)}function startOf(v){var A;if(void 0===(v=normalizeUnits(v))||"millisecond"===v||!this.isValid())return this;var z=this._isUTC?utcStartOfDate:localStartOfDate;switch(v){case"year":A=z(this.year(),0,1);break;case"quarter":A=z(this.year(),this.month()-this.month()%3,1);break;case"month":A=z(this.year(),this.month(),1);break;case"week":A=z(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":A=z(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":A=z(this.year(),this.month(),this.date());break;case"hour":A=this._d.valueOf(),A-=mod$1(A+(this._isUTC?0:this.utcOffset()*Ce),Se);break;case"minute":A=this._d.valueOf(),A-=mod$1(A,Ce);break;case"second":A=this._d.valueOf(),A-=mod$1(A,ke)}return this._d.setTime(A),hooks.updateOffset(this,!0),this}function endOf(v){var A;if(void 0===(v=normalizeUnits(v))||"millisecond"===v||!this.isValid())return this;var z=this._isUTC?utcStartOfDate:localStartOfDate;switch(v){case"year":A=z(this.year()+1,0,1)-1;break;case"quarter":A=z(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":A=z(this.year(),this.month()+1,1)-1;break;case"week":A=z(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":A=z(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":A=z(this.year(),this.month(),this.date()+1)-1;break;case"hour":A=this._d.valueOf(),A+=Se-mod$1(A+(this._isUTC?0:this.utcOffset()*Ce),Se)-1;break;case"minute":A=this._d.valueOf(),A+=Ce-mod$1(A,Ce)-1;break;case"second":A=this._d.valueOf(),A+=ke-mod$1(A,ke)-1}return this._d.setTime(A),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-6e4*(this._offset||0)}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var v=this;return[v.year(),v.month(),v.date(),v.hour(),v.minute(),v.second(),v.millisecond()]}function toObject(){var v=this;return{years:v.year(),months:v.month(),date:v.date(),hours:v.hours(),minutes:v.minutes(),seconds:v.seconds(),milliseconds:v.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function addWeekYearFormatToken(v,A){addFormatToken(0,[v,v.length],0,A)}function getSetWeekYear(v){return getSetWeekYearHelper.call(this,v,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(v){return getSetWeekYearHelper.call(this,v,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getWeeksInYear(){var v=this.localeData()._week;return weeksInYear(this.year(),v.dow,v.doy)}function getSetWeekYearHelper(v,A,z,L,T){var k;return null==v?weekOfYear(this,L,T).year:(A>(k=weeksInYear(v,L,T))&&(A=k),setWeekAll.call(this,v,A,z,L,T))}function setWeekAll(v,A,z,L,T){var k=dayOfYearFromWeeks(v,A,z,L,T),x=createUTCDate(k.year,0,k.dayOfYear);return this.year(x.getUTCFullYear()),this.month(x.getUTCMonth()),this.date(x.getUTCDate()),this}function getSetQuarter(v){return null==v?Math.ceil((this.month()+1)/3):this.month(3*(v-1)+this.month()%3)}addFormatToken(0,["gg",2],0,(function(){return this.weekYear()%100})),addFormatToken(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),addWeekYearFormatToken("gggg","weekYear"),addWeekYearFormatToken("ggggg","weekYear"),addWeekYearFormatToken("GGGG","isoWeekYear"),addWeekYearFormatToken("GGGGG","isoWeekYear"),addUnitAlias("weekYear","gg"),addUnitAlias("isoWeekYear","GG"),addUnitPriority("weekYear",1),addUnitPriority("isoWeekYear",1),addRegexToken("G",_t),addRegexToken("g",_t),addRegexToken("GG",at,ot),addRegexToken("gg",at,ot),addRegexToken("GGGG",pt,rt),addRegexToken("gggg",pt,rt),addRegexToken("GGGGG",ht,st),addRegexToken("ggggg",ht,st),addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],(function(v,A,z,L){A[L.substr(0,2)]=toInt(v)})),addWeekParseToken(["gg","GG"],(function(v,A,z,L){A[L]=hooks.parseTwoDigitYear(v)})),addFormatToken("Q",0,"Qo","quarter"),addUnitAlias("quarter","Q"),addUnitPriority("quarter",7),addRegexToken("Q",it),addParseToken("Q",(function(v,A){A[wt]=3*(toInt(v)-1)})),addFormatToken("D",["DD",2],"Do","date"),addUnitAlias("date","D"),addUnitPriority("date",9),addRegexToken("D",at),addRegexToken("DD",at,ot),addRegexToken("Do",(function(v,A){return v?A._dayOfMonthOrdinalParse||A._ordinalParse:A._dayOfMonthOrdinalParseLenient})),addParseToken(["D","DD"],At),addParseToken("Do",(function(v,A){A[At]=toInt(v.match(at)[0])}));var Ee=makeGetSet("Date",!0);function getSetDayOfYear(v){var A=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==v?A:this.add(v-A,"d")}addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear"),addUnitAlias("dayOfYear","DDD"),addUnitPriority("dayOfYear",4),addRegexToken("DDD",ut),addRegexToken("DDDD",nt),addParseToken(["DDD","DDDD"],(function(v,A,z){z._dayOfYear=toInt(v)})),addFormatToken("m",["mm",2],0,"minute"),addUnitAlias("minute","m"),addUnitPriority("minute",14),addRegexToken("m",at),addRegexToken("mm",at,ot),addParseToken(["m","mm"],zt);var Be=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second"),addUnitAlias("second","s"),addUnitPriority("second",15),addRegexToken("s",at),addRegexToken("ss",at,ot),addParseToken(["s","ss"],Lt);var Re,Ye=makeGetSet("Seconds",!1);for(addFormatToken("S",0,0,(function(){return~~(this.millisecond()/100)})),addFormatToken(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),addFormatToken(0,["SSS",3],0,"millisecond"),addFormatToken(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),addFormatToken(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),addFormatToken(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),addFormatToken(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),addFormatToken(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),addFormatToken(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),addUnitAlias("millisecond","ms"),addUnitPriority("millisecond",16),addRegexToken("S",ut,it),addRegexToken("SS",ut,ot),addRegexToken("SSS",ut,nt),Re="SSSS";Re.length<=9;Re+="S")addRegexToken(Re,dt);function parseMs(v,A){A[Tt]=toInt(1e3*("0."+v))}for(Re="S";Re.length<=9;Re+="S")addParseToken(Re,parseMs);var Ie=makeGetSet("Milliseconds",!1);function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}addFormatToken("z",0,0,"zoneAbbr"),addFormatToken("zz",0,0,"zoneName");var Pe=Moment.prototype;function createUnix(v){return createLocal(1e3*v)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(v){return v}Pe.add=Le,Pe.calendar=calendar$1,Pe.clone=clone,Pe.diff=diff,Pe.endOf=endOf,Pe.format=format,Pe.from=from,Pe.fromNow=fromNow,Pe.to=to,Pe.toNow=toNow,Pe.get=stringGet,Pe.invalidAt=invalidAt,Pe.isAfter=isAfter,Pe.isBefore=isBefore,Pe.isBetween=isBetween,Pe.isSame=isSame,Pe.isSameOrAfter=isSameOrAfter,Pe.isSameOrBefore=isSameOrBefore,Pe.isValid=isValid$2,Pe.lang=De,Pe.locale=locale,Pe.localeData=localeData,Pe.max=be,Pe.min=ye,Pe.parsingFlags=parsingFlags,Pe.set=stringSet,Pe.startOf=startOf,Pe.subtract=Te,Pe.toArray=toArray,Pe.toObject=toObject,Pe.toDate=toDate,Pe.toISOString=toISOString,Pe.inspect=inspect,Pe.toJSON=toJSON,Pe.toString=toString,Pe.unix=unix,Pe.valueOf=valueOf,Pe.creationData=creationData,Pe.year=St,Pe.isLeapYear=getIsLeapYear,Pe.weekYear=getSetWeekYear,Pe.isoWeekYear=getSetISOWeekYear,Pe.quarter=Pe.quarters=getSetQuarter,Pe.month=getSetMonth,Pe.daysInMonth=getDaysInMonth,Pe.week=Pe.weeks=getSetWeek,Pe.isoWeek=Pe.isoWeeks=getSetISOWeek,Pe.weeksInYear=getWeeksInYear,Pe.isoWeeksInYear=getISOWeeksInYear,Pe.date=Ee,Pe.day=Pe.days=getSetDayOfWeek,Pe.weekday=getSetLocaleDayOfWeek,Pe.isoWeekday=getSetISODayOfWeek,Pe.dayOfYear=getSetDayOfYear,Pe.hour=Pe.hours=te,Pe.minute=Pe.minutes=Be,Pe.second=Pe.seconds=Ye,Pe.millisecond=Pe.milliseconds=Ie,Pe.utcOffset=getSetOffset,Pe.utc=setOffsetToUTC,Pe.local=setOffsetToLocal,Pe.parseZone=setOffsetToParsedOffset,Pe.hasAlignedHourOffset=hasAlignedHourOffset,Pe.isDST=isDaylightSavingTime,Pe.isLocal=isLocal,Pe.isUtcOffset=isUtcOffset,Pe.isUtc=isUtc,Pe.isUTC=isUtc,Pe.zoneAbbr=getZoneAbbr,Pe.zoneName=getZoneName,Pe.dates=deprecate("dates accessor is deprecated. Use date instead.",Ee),Pe.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth),Pe.years=deprecate("years accessor is deprecated. Use year instead",St),Pe.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone),Pe.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);var We=Locale.prototype;function get$1(v,A,z,L){var T=getLocale(),k=createUTC().set(L,A);return T[z](k,v)}function listMonthsImpl(v,A,z){if(isNumber(v)&&(A=v,v=void 0),v=v||"",null!=A)return get$1(v,A,z,"month");var L,T=[];for(L=0;L<12;L++)T[L]=get$1(v,L,z,"month");return T}function listWeekdaysImpl(v,A,z,L){"boolean"==typeof v?(isNumber(A)&&(z=A,A=void 0),A=A||""):(z=A=v,v=!1,isNumber(A)&&(z=A,A=void 0),A=A||"");var T,k=getLocale(),x=v?k._week.dow:0;if(null!=z)return get$1(A,(z+x)%7,L,"day");var S=[];for(T=0;T<7;T++)S[T]=get$1(A,(T+x)%7,L,"day");return S}function listMonths(v,A){return listMonthsImpl(v,A,"months")}function listMonthsShort(v,A){return listMonthsImpl(v,A,"monthsShort")}function listWeekdays(v,A,z){return listWeekdaysImpl(v,A,z,"weekdays")}function listWeekdaysShort(v,A,z){return listWeekdaysImpl(v,A,z,"weekdaysShort")}function listWeekdaysMin(v,A,z){return listWeekdaysImpl(v,A,z,"weekdaysMin")}We.calendar=calendar,We.longDateFormat=longDateFormat,We.invalidDate=invalidDate,We.ordinal=ordinal,We.preparse=preParsePostFormat,We.postformat=preParsePostFormat,We.relativeTime=relativeTime,We.pastFuture=pastFuture,We.set=set,We.months=localeMonths,We.monthsShort=localeMonthsShort,We.monthsParse=localeMonthsParse,We.monthsRegex=monthsRegex,We.monthsShortRegex=monthsShortRegex,We.week=localeWeek,We.firstDayOfYear=localeFirstDayOfYear,We.firstDayOfWeek=localeFirstDayOfWeek,We.weekdays=localeWeekdays,We.weekdaysMin=localeWeekdaysMin,We.weekdaysShort=localeWeekdaysShort,We.weekdaysParse=localeWeekdaysParse,We.weekdaysRegex=weekdaysRegex,We.weekdaysShortRegex=weekdaysShortRegex,We.weekdaysMinRegex=weekdaysMinRegex,We.isPM=localeIsPM,We.meridiem=localeMeridiem,getSetGlobalLocale("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(v){var A=v%10;return v+(1===toInt(v%100/10)?"th":1===A?"st":2===A?"nd":3===A?"rd":"th")}}),hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale),hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var je=Math.abs;function abs(){var v=this._data;return this._milliseconds=je(this._milliseconds),this._days=je(this._days),this._months=je(this._months),v.milliseconds=je(v.milliseconds),v.seconds=je(v.seconds),v.minutes=je(v.minutes),v.hours=je(v.hours),v.months=je(v.months),v.years=je(v.years),this}function addSubtract$1(v,A,z,L){var T=createDuration(A,z);return v._milliseconds+=L*T._milliseconds,v._days+=L*T._days,v._months+=L*T._months,v._bubble()}function add$1(v,A){return addSubtract$1(this,v,A,1)}function subtract$1(v,A){return addSubtract$1(this,v,A,-1)}function absCeil(v){return v<0?Math.floor(v):Math.ceil(v)}function bubble(){var v,A,z,L,T,k=this._milliseconds,x=this._days,S=this._months,E=this._data;return k>=0&&x>=0&&S>=0||k<=0&&x<=0&&S<=0||(k+=864e5*absCeil(monthsToDays(S)+x),x=0,S=0),E.milliseconds=k%1e3,v=absFloor(k/1e3),E.seconds=v%60,A=absFloor(v/60),E.minutes=A%60,z=absFloor(A/60),E.hours=z%24,x+=absFloor(z/24),S+=T=absFloor(daysToMonths(x)),x-=absCeil(monthsToDays(T)),L=absFloor(S/12),S%=12,E.days=x,E.months=S,E.years=L,this}function daysToMonths(v){return 4800*v/146097}function monthsToDays(v){return 146097*v/4800}function as(v){if(!this.isValid())return NaN;var A,z,L=this._milliseconds;if("month"===(v=normalizeUnits(v))||"quarter"===v||"year"===v)switch(A=this._days+L/864e5,z=this._months+daysToMonths(A),v){case"month":return z;case"quarter":return z/3;case"year":return z/12}else switch(A=this._days+Math.round(monthsToDays(this._months)),v){case"week":return A/7+L/6048e5;case"day":return A+L/864e5;case"hour":return 24*A+L/36e5;case"minute":return 1440*A+L/6e4;case"second":return 86400*A+L/1e3;case"millisecond":return Math.floor(864e5*A)+L;default:throw new Error("Unknown unit "+v)}}function valueOf$1(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*toInt(this._months/12):NaN}function makeAs(v){return function(){return this.as(v)}}var Ze=makeAs("ms"),Je=makeAs("s"),$e=makeAs("m"),Qe=makeAs("h"),ti=makeAs("d"),ei=makeAs("w"),ii=makeAs("M"),oi=makeAs("Q"),ni=makeAs("y");function clone$1(){return createDuration(this)}function get$2(v){return v=normalizeUnits(v),this.isValid()?this[v+"s"]():NaN}function makeGetter(v){return function(){return this.isValid()?this._data[v]:NaN}}var si=makeGetter("milliseconds"),bi=makeGetter("seconds"),ki=makeGetter("minutes"),Yi=makeGetter("hours"),Hi=makeGetter("days"),Xi=makeGetter("months"),Vi=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var Ui=Math.round,Zi={ss:44,s:45,m:45,h:22,d:26,M:11};function substituteTimeAgo(v,A,z,L,T){return T.relativeTime(A||1,!!z,v,L)}function relativeTime$1(v,A,z){var L=createDuration(v).abs(),T=Ui(L.as("s")),k=Ui(L.as("m")),x=Ui(L.as("h")),S=Ui(L.as("d")),E=Ui(L.as("M")),Y=Ui(L.as("y")),P=T<=Zi.ss&&["s",T]||T0,P[4]=z,substituteTimeAgo.apply(null,P)}function getSetRelativeTimeRounding(v){return void 0===v?Ui:"function"==typeof v&&(Ui=v,!0)}function getSetRelativeTimeThreshold(v,A){return void 0!==Zi[v]&&(void 0===A?Zi[v]:(Zi[v]=A,"s"===v&&(Zi.ss=A-1),!0))}function humanize(v){if(!this.isValid())return this.localeData().invalidDate();var A=this.localeData(),z=relativeTime$1(this,!v,A);return v&&(z=A.pastFuture(+this,z)),A.postformat(z)}var Ji=Math.abs;function sign(v){return(v>0)-(v<0)||+v}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var v,A,z=Ji(this._milliseconds)/1e3,L=Ji(this._days),T=Ji(this._months);v=absFloor(z/60),A=absFloor(v/60),z%=60,v%=60;var k=absFloor(T/12),x=T%=12,S=L,E=A,Y=v,P=z?z.toFixed(3).replace(/\.?0+$/,""):"",q=this.asSeconds();if(!q)return"P0D";var F=q<0?"-":"",H=sign(this._months)!==sign(q)?"-":"",X=sign(this._days)!==sign(q)?"-":"",V=sign(this._milliseconds)!==sign(q)?"-":"";return F+"P"+(k?H+k+"Y":"")+(x?H+x+"M":"")+(S?X+S+"D":"")+(E||Y||P?"T":"")+(E?V+E+"H":"")+(Y?V+Y+"M":"")+(P?V+P+"S":"")}var Qi=Duration.prototype;return Qi.isValid=isValid$1,Qi.abs=abs,Qi.add=add$1,Qi.subtract=subtract$1,Qi.as=as,Qi.asMilliseconds=Ze,Qi.asSeconds=Je,Qi.asMinutes=$e,Qi.asHours=Qe,Qi.asDays=ti,Qi.asWeeks=ei,Qi.asMonths=ii,Qi.asQuarters=oi,Qi.asYears=ni,Qi.valueOf=valueOf$1,Qi._bubble=bubble,Qi.clone=clone$1,Qi.get=get$2,Qi.milliseconds=si,Qi.seconds=bi,Qi.minutes=ki,Qi.hours=Yi,Qi.days=Hi,Qi.weeks=weeks,Qi.months=Xi,Qi.years=Vi,Qi.humanize=humanize,Qi.toISOString=toISOString$1,Qi.toString=toISOString$1,Qi.toJSON=toISOString$1,Qi.locale=locale,Qi.localeData=localeData,Qi.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1),Qi.lang=De,addFormatToken("X",0,0,"unix"),addFormatToken("x",0,0,"valueOf"),addRegexToken("x",_t),addRegexToken("X",Mt),addParseToken("X",(function(v,A,z){z._d=new Date(1e3*parseFloat(v,10))})),addParseToken("x",(function(v,A,z){z._d=new Date(toInt(v))})),hooks.version="2.24.0",setHookCallback(createLocal),hooks.fn=Pe,hooks.min=min,hooks.max=max,hooks.now=now,hooks.utc=createUTC,hooks.unix=createUnix,hooks.months=listMonths,hooks.isDate=isDate,hooks.locale=getSetGlobalLocale,hooks.invalid=createInvalid,hooks.duration=createDuration,hooks.isMoment=isMoment,hooks.weekdays=listWeekdays,hooks.parseZone=createInZone,hooks.localeData=getLocale,hooks.isDuration=isDuration,hooks.monthsShort=listMonthsShort,hooks.weekdaysMin=listWeekdaysMin,hooks.defineLocale=defineLocale,hooks.updateLocale=updateLocale,hooks.locales=listLocales,hooks.weekdaysShort=listWeekdaysShort,hooks.normalizeUnits=normalizeUnits,hooks.relativeTimeRounding=getSetRelativeTimeRounding,hooks.relativeTimeThreshold=getSetRelativeTimeThreshold,hooks.calendarFormat=getCalendarFormat,hooks.prototype=Pe,hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},hooks}()}).call(this,z(26)(v))},function(v,A,z){(function(A){!function(A){"use strict";var z={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:noop,table:noop,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function Lexer(v){this.tokens=[],this.tokens.links=Object.create(null),this.options=v||marked.defaults,this.rules=z.normal,this.options.pedantic?this.rules=z.pedantic:this.options.gfm&&(this.rules=z.gfm)}z._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,z._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,z.def=edit(z.def).replace("label",z._label).replace("title",z._title).getRegex(),z.bullet=/(?:[*+-]|\d{1,9}\.)/,z.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,z.item=edit(z.item,"gm").replace(/bull/g,z.bullet).getRegex(),z.list=edit(z.list).replace(/bull/g,z.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+z.def.source+")").getRegex(),z._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",z._comment=//,z.html=edit(z.html,"i").replace("comment",z._comment).replace("tag",z._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),z.paragraph=edit(z._paragraph).replace("hr",z.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",z._tag).getRegex(),z.blockquote=edit(z.blockquote).replace("paragraph",z.paragraph).getRegex(),z.normal=merge({},z),z.gfm=merge({},z.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),z.pedantic=merge({},z.normal,{html:edit("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",z._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:noop,paragraph:edit(z.normal._paragraph).replace("hr",z.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",z.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),Lexer.rules=z,Lexer.lex=function(v,A){return new Lexer(A).lex(v)},Lexer.prototype.lex=function(v){return v=v.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(v,!0)},Lexer.prototype.token=function(v,A){var L,T,k,x,S,E,Y,P,q,F,H,X,V,U,J,tt;for(v=v.replace(/^ +$/gm,"");v;)if((k=this.rules.newline.exec(v))&&(v=v.substring(k[0].length),k[0].length>1&&this.tokens.push({type:"space"})),k=this.rules.code.exec(v)){var et=this.tokens[this.tokens.length-1];v=v.substring(k[0].length),et&&"paragraph"===et.type?et.text+="\n"+k[0].trimRight():(k=k[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?k:rtrim(k,"\n")}))}else if(k=this.rules.fences.exec(v))v=v.substring(k[0].length),this.tokens.push({type:"code",lang:k[2]?k[2].trim():k[2],text:k[3]||""});else if(k=this.rules.heading.exec(v))v=v.substring(k[0].length),this.tokens.push({type:"heading",depth:k[1].length,text:k[2]});else if((k=this.rules.nptable.exec(v))&&(E={type:"table",header:splitCells(k[1].replace(/^ *| *\| *$/g,"")),align:k[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:k[3]?k[3].replace(/\n$/,"").split("\n"):[]}).header.length===E.align.length){for(v=v.substring(k[0].length),H=0;H ?/gm,""),this.token(k,A),this.tokens.push({type:"blockquote_end"});else if(k=this.rules.list.exec(v)){for(v=v.substring(k[0].length),Y={type:"list_start",ordered:U=(x=k[2]).length>1,start:U?+x:"",loose:!1},this.tokens.push(Y),P=[],L=!1,V=(k=k[0].match(this.rules.item)).length,H=0;H1?1===S.length:S.length>1||this.options.smartLists&&S!==x)&&(v=k.slice(H+1).join("\n")+v,H=V-1)),T=L||/\n\n(?!\s*$)/.test(E),H!==V-1&&(L="\n"===E.charAt(E.length-1),T||(T=L)),T&&(Y.loose=!0),tt=void 0,(J=/^\[[ xX]\] /.test(E))&&(tt=" "!==E[1],E=E.replace(/^\[[ xX]\] +/,"")),q={type:"list_item_start",task:J,checked:tt,loose:T},P.push(q),this.tokens.push(q),this.token(E,!1),this.tokens.push({type:"list_item_end"});if(Y.loose)for(V=P.length,H=0;H?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:noop,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:noop,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~",L.em=edit(L.em).replace(/punctuation/g,L._punctuation).getRegex(),L._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,L._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,L._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,L.autolink=edit(L.autolink).replace("scheme",L._scheme).replace("email",L._email).getRegex(),L._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,L.tag=edit(L.tag).replace("comment",z._comment).replace("attribute",L._attribute).getRegex(),L._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,L._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,L._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,L.link=edit(L.link).replace("label",L._label).replace("href",L._href).replace("title",L._title).getRegex(),L.reflink=edit(L.reflink).replace("label",L._label).getRegex(),L.normal=merge({},L),L.pedantic=merge({},L.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:edit(/^!?\[(label)\]\((.*?)\)/).replace("label",L._label).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",L._label).getRegex()}),L.gfm=merge({},L.normal,{escape:edit(L.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(k[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(k[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(k[0])&&(this.inRawBlock=!1),v=v.substring(k[0].length),S+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(k[0]):escape(k[0]):k[0];else if(k=this.rules.link.exec(v)){var E=findClosingBracket(k[2],"()");if(E>-1){var Y=4+k[1].length+E;k[2]=k[2].substring(0,E),k[0]=k[0].substring(0,Y).trim(),k[3]=""}v=v.substring(k[0].length),this.inLink=!0,L=k[2],this.options.pedantic?(A=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(L))?(L=A[1],T=A[3]):T="":T=k[3]?k[3].slice(1,-1):"",L=L.trim().replace(/^<([\s\S]*)>$/,"$1"),S+=this.outputLink(k,{href:InlineLexer.escapes(L),title:InlineLexer.escapes(T)}),this.inLink=!1}else if((k=this.rules.reflink.exec(v))||(k=this.rules.nolink.exec(v))){if(v=v.substring(k[0].length),A=(k[2]||k[1]).replace(/\s+/g," "),!(A=this.links[A.toLowerCase()])||!A.href){S+=k[0].charAt(0),v=k[0].substring(1)+v;continue}this.inLink=!0,S+=this.outputLink(k,A),this.inLink=!1}else if(k=this.rules.strong.exec(v))v=v.substring(k[0].length),S+=this.renderer.strong(this.output(k[4]||k[3]||k[2]||k[1]));else if(k=this.rules.em.exec(v))v=v.substring(k[0].length),S+=this.renderer.em(this.output(k[6]||k[5]||k[4]||k[3]||k[2]||k[1]));else if(k=this.rules.code.exec(v))v=v.substring(k[0].length),S+=this.renderer.codespan(escape(k[2].trim(),!0));else if(k=this.rules.br.exec(v))v=v.substring(k[0].length),S+=this.renderer.br();else if(k=this.rules.del.exec(v))v=v.substring(k[0].length),S+=this.renderer.del(this.output(k[1]));else if(k=this.rules.autolink.exec(v))v=v.substring(k[0].length),L="@"===k[2]?"mailto:"+(z=escape(this.mangle(k[1]))):z=escape(k[1]),S+=this.renderer.link(L,null,z);else if(this.inLink||!(k=this.rules.url.exec(v))){if(k=this.rules.text.exec(v))v=v.substring(k[0].length),this.inRawBlock?S+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(k[0]):escape(k[0]):k[0]):S+=this.renderer.text(escape(this.smartypants(k[0])));else if(v)throw new Error("Infinite loop on byte: "+v.charCodeAt(0))}else{if("@"===k[2])L="mailto:"+(z=escape(k[0]));else{do{x=k[0],k[0]=this.rules._backpedal.exec(k[0])[0]}while(x!==k[0]);z=escape(k[0]),L="www."===k[1]?"http://"+z:z}v=v.substring(k[0].length),S+=this.renderer.link(L,null,z)}return S},InlineLexer.escapes=function(v){return v?v.replace(InlineLexer.rules._escapes,"$1"):v},InlineLexer.prototype.outputLink=function(v,A){var z=A.href,L=A.title?escape(A.title):null;return"!"!==v[0].charAt(0)?this.renderer.link(z,L,this.output(v[1])):this.renderer.image(z,L,escape(v[1]))},InlineLexer.prototype.smartypants=function(v){return this.options.smartypants?v.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):v},InlineLexer.prototype.mangle=function(v){if(!this.options.mangle)return v;for(var A,z="",L=v.length,T=0;T.5&&(A="x"+A.toString(16)),z+="&#"+A+";";return z},Renderer.prototype.code=function(v,A,z){var L=(A||"").match(/\S*/)[0];if(this.options.highlight){var T=this.options.highlight(v,L);null!=T&&T!==v&&(z=!0,v=T)}return L?'
'+(z?v:escape(v,!0))+"
\n":"
"+(z?v:escape(v,!0))+"
"},Renderer.prototype.blockquote=function(v){return"
\n"+v+"
\n"},Renderer.prototype.html=function(v){return v},Renderer.prototype.heading=function(v,A,z,L){return this.options.headerIds?"'+v+"\n":""+v+"\n"},Renderer.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},Renderer.prototype.list=function(v,A,z){var L=A?"ol":"ul";return"<"+L+(A&&1!==z?' start="'+z+'"':"")+">\n"+v+"\n"},Renderer.prototype.listitem=function(v){return"
  • "+v+"
  • \n"},Renderer.prototype.checkbox=function(v){return" "},Renderer.prototype.paragraph=function(v){return"

    "+v+"

    \n"},Renderer.prototype.table=function(v,A){return A&&(A=""+A+""),"\n\n"+v+"\n"+A+"
    \n"},Renderer.prototype.tablerow=function(v){return"\n"+v+"\n"},Renderer.prototype.tablecell=function(v,A){var z=A.header?"th":"td";return(A.align?"<"+z+' align="'+A.align+'">':"<"+z+">")+v+"\n"},Renderer.prototype.strong=function(v){return""+v+""},Renderer.prototype.em=function(v){return""+v+""},Renderer.prototype.codespan=function(v){return""+v+""},Renderer.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},Renderer.prototype.del=function(v){return""+v+""},Renderer.prototype.link=function(v,A,z){if(null===(v=cleanUrl(this.options.sanitize,this.options.baseUrl,v)))return z;var L='"},Renderer.prototype.image=function(v,A,z){if(null===(v=cleanUrl(this.options.sanitize,this.options.baseUrl,v)))return z;var L=''+z+'":">"},Renderer.prototype.text=function(v){return v},TextRenderer.prototype.strong=TextRenderer.prototype.em=TextRenderer.prototype.codespan=TextRenderer.prototype.del=TextRenderer.prototype.text=function(v){return v},TextRenderer.prototype.link=TextRenderer.prototype.image=function(v,A,z){return""+z},TextRenderer.prototype.br=function(){return""},Parser.parse=function(v,A){return new Parser(A).parse(v)},Parser.prototype.parse=function(v){this.inline=new InlineLexer(v.links,this.options),this.inlineText=new InlineLexer(v.links,merge({},this.options,{renderer:new TextRenderer})),this.tokens=v.reverse();for(var A="";this.next();)A+=this.tok();return A},Parser.prototype.next=function(){return this.token=this.tokens.pop(),this.token},Parser.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},Parser.prototype.parseText=function(){for(var v=this.token.text;"text"===this.peek().type;)v+="\n"+this.next().text;return this.inline.output(v)},Parser.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,unescape(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var v,A,z,L,T="",k="";for(z="",v=0;v?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(A)){var z=A;do{this.seen[z]++,A=z+"-"+this.seen[z]}while(this.seen.hasOwnProperty(A))}return this.seen[A]=0,A},escape.escapeTest=/[&<>"']/,escape.escapeReplace=/[&<>"']/g,escape.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},escape.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,escape.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var T={},k=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function noop(){}function merge(v){for(var A,z,L=1;L=0&&"\\"===z[T];)L=!L;return L?"|":" |"})).split(/ \|/),L=0;if(z.length>A)z.splice(A);else for(;z.lengthAn error occurred:

    "+escape(v.message+"",!0)+"
    ";throw v}}noop.exec=noop,marked.options=marked.setOptions=function(v){return merge(marked.defaults,v),marked},marked.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new Renderer,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},marked.defaults=marked.getDefaults(),marked.Parser=Parser,marked.parser=Parser.parse,marked.Renderer=Renderer,marked.TextRenderer=TextRenderer,marked.Lexer=Lexer,marked.lexer=Lexer.lex,marked.InlineLexer=InlineLexer,marked.inlineLexer=InlineLexer.output,marked.Slugger=Slugger,marked.parse=marked,v.exports=marked}(this||"undefined"!=typeof window&&window)}).call(this,z(19))},function(v,A,z){!function(v){"use strict";function processRelativeTime(v,A,z,L){var T={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[v+" Tage",v+" Tagen"],M:["ein Monat","einem Monat"],MM:[v+" Monate",v+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[v+" Jahre",v+" Jahren"]};return A?T[z][0]:T[z][1]}v.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";function processRelativeTime(v,A,z,L){var T={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[v+" Tage",v+" Tagen"],M:["ein Monat","einem Monat"],MM:[v+" Monate",v+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[v+" Jahre",v+" Jahren"]};return A?T[z][0]:T[z][1]}v.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";function processRelativeTime(v,A,z,L){var T={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[v+" Tage",v+" Tagen"],M:["ein Monat","einem Monat"],MM:[v+" Monate",v+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[v+" Jahre",v+" Jahren"]};return A?T[z][0]:T[z][1]}v.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var A=v%10;return v+(1==~~(v%100/10)?"th":1===A?"st":2===A?"nd":3===A?"rd":"th")},week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var A=v%10;return v+(1==~~(v%100/10)?"th":1===A?"st":2===A?"nd":3===A?"rd":"th")},week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var A=v%10;return v+(1==~~(v%100/10)?"th":1===A?"st":2===A?"nd":3===A?"rd":"th")}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var A=v%10;return v+(1==~~(v%100/10)?"th":1===A?"st":2===A?"nd":3===A?"rd":"th")},week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var A=v%10;return v+(1==~~(v%100/10)?"th":1===A?"st":2===A?"nd":3===A?"rd":"th")},week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var A=v%10;return v+(1==~~(v%100/10)?"th":1===A?"st":2===A?"nd":3===A?"rd":"th")}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var A=v%10;return v+(1==~~(v%100/10)?"th":1===A?"st":2===A?"nd":3===A?"rd":"th")},week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";var A="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),z="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),L=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],T=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;v.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(v,L){return v?/-MMM-/.test(L)?z[v.month()]:A[v.month()]:A},monthsRegex:T,monthsShortRegex:T,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:L,longMonthsParse:L,shortMonthsParse:L,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";var A="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),z="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),L=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],T=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;v.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(v,L){return v?/-MMM-/.test(L)?z[v.month()]:A[v.month()]:A},monthsRegex:T,monthsShortRegex:T,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:L,longMonthsParse:L,shortMonthsParse:L,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";var A="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),z="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),L=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],T=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;v.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(v,L){return v?/-MMM-/.test(L)?z[v.month()]:A[v.month()]:A},monthsRegex:T,monthsShortRegex:T,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:L,longMonthsParse:L,shortMonthsParse:L,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(v){return(/^[0-9].+$/.test(v)?"tra":"in")+" "+v},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(v){return(/^[0-9].+$/.test(v)?"tra":"in")+" "+v},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(z(1))},function(v,A,z){var L;L=z(0),z(21),z(28),z(29),z(30),z(31),z(32),z(33),z(34),z(35),z(36),z(37),z(38),z(39),z(40),z(41),z(42),z(43),z(44),z(45),z(46),z(47),z(48),z(49),z(50),z(51),z(52),z(53),z(54),z(55),z(56),z(57),z(58),z(59),z(61),z(63),z(64),z(65),z(68),z(69),z(72),z(74),z(76),z(77),z(78),z(80),z(82),z(84),z(86),z(87),z(89),z(91),z(92),z(93),z(94),z(96),z(97),z(98),z(99),z(100),z(101),z(103),z(105),z(106),z(107),z(108),z(109),z(110),z(111),z(112),z(113),z(114),z(115),z(116),z(117),z(118),z(119),z(120),z(121),z(122),z(123),z(124),z(125),z(126),z(127),z(128),z(129),z(130),z(132),z(133),z(135),z(136),z(137),z(138),z(140),z(141),z(142),z(143),z(144),z(145),z(146),z(147),z(148),z(150),z(154),z(155),z(156),z(157),z(158),z(159),z(160),z(162),z(163),z(165),z(166),z(167),z(168),z(169),z(171),z(172),z(173),z(174),z(175),z(176),z(177),z(178),z(179),z(180),z(182),z(183),z(184),z(185),z(186),z(187),z(188),z(189),z(190),z(192),z(194),z(196),z(199),z(201),z(202),v.exports=L},function(v,A){var z;z=function(){return this}();try{z=z||new Function("return this")()}catch(v){"object"==typeof window&&(z=window)}v.exports=z},function(v,A,z){"use strict";z.r(A),A.default='closedrupaleasydbexternal-linkfalcon-iofolder-shared-uploadfolder-sharedfolder-uploadfoldergridhierarchyinfo-circle-ngmultiplepopuppresentation_playpresentationresetrowsselect-allselect-pagesspinnertabletag-otrashtypo3'},function(v,A,z){(function(v){var A,L,T,k;L=z(22),A=z(25),T=z(2),k=z(1),v.util=function(){function util(){}return util.assert=function(A,z,L,T){var k,x,S,E,Y;if(v.defaults.asserts&&!A){try{new Error("dummy").stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.\s*\(/gm,"{anonymous}()@").replace().split("\n")}catch(v){v,"Can't get callstack in this browser. Try using Stacktrace.js"}if(E=[],T){for(x in k=[z+":"],T)Y=T[x],k.push(x+":"),E.push(x),k.push(Y);console.debug.apply(console,k)}switch(S=E.length?z+"("+E.join(",")+")":z,L&&(S+=": "+L),v.defaults.asserts_alert){case"debugger":break;case"js":alert(S);break;case"cui":v.problem({text:S})}if(!v.__in_error)throw v.__in_error=!0,v.setTimeout((function(){return v.__in_error=!1})),new Error(S);console.error("Another assert occurred, cannot throw Error to avoid loop: ",S)}},util.assertImplements=function(A,z){var L,T,k,x;if(v.defaults.asserts){for(x=[],L=0,T=z.length;L=0},util.isContent=function(A){return v.util.isElement(A)||A instanceof HTMLCollection||A instanceof NodeList||v.util.isArray(A)||v.util.isFunction(A)||v.util.isElement(null!=A?A.DOM:void 0)},util.isNumber=function(A){return v.util.isInteger(A)||v.util.isFloat(A)},util.isFloat=function(v){return v===+v&&v!==(0|v)},util.isInteger=function(v){return v===+v&&v===(0|v)},util.isPromise=function(A){return A instanceof v.Promise||A instanceof v.Deferred},util.isDeferred=function(A){return A instanceof v.Deferred},util.escapeRegExp=function(v){return v.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},util.getIntOrString=function(A){return v.util.getInt(A,!0)},util.getInt=function(A,z){var L;return null==z&&(z=!1),v.util.isNull(A)?null:(L=parseInt(A),isNaN(L)||(L+"").length!==(A+"").trim().length?z?A:null:L)},util.getFloat=function(A){var z;return v.util.isNull(A)?null:(z=parseFloat(A),isNaN(z)?null:z)},util.xor=function(v,A){return!!(v&&!A||!v&&A)},util.toHtml=function(A,z){return v.util.isNull(A)||!v.util.isString(A)?"":(A=A.replace(/&/g,"&").replace(/\'/g,"'").replace(//g,">").replace(/\"/g,"""),z?A.replace(/\s/g," "):A)},util.copyObject=function(A,z,L){var T,k,x,S,E,Y,P,q,F;if(null==z&&(z=!1),null==L&&(L=0),!(L>100)){if("string"==(q=typeof A)||"number"===q||"boolean"===q||"function"===q)return A;if(v.util.isNull(A))return A;if(A instanceof v.Element)return 0===L||z?A.copy():A;if(A instanceof HTMLElement)return A.cloneNode?A.cloneNode(!0):A;if(A instanceof v.Dummy)return A;if(v.util.isPlainObject(A)){for(x in Y={},A)if(F=A[x],z)try{Y[x]=v.util.copyObject(F,!0,L+1)}catch(v){throw T=v,console.error("Error during Object copy:",T.toString(),"Key:",x,"Object:",A),T}else Y[x]=F;return Y}if(v.util.isArray(A)){if(!z)return A.slice(0);for(E=[],k=0,S=A.length;k":v.util.isNull(A)?"":v.util.getObjectClass(A)};try{return JSON.stringify(L(A),null,z)}catch(v){return T=v,console.error(T),"Unable to dump object"}},util.alert_dump=function(A){return alert(v.util.dump(A," "))},util.toDash=function(v){var A;return(A=(A=(A=(v+="U").substring(0,1)+v.substring(1).replace(/([A-Z](?![A-Z0-9]))/g,(function(v){return"-"+v.toLowerCase()}))).replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()).substring(0,A.length-2)).replace(/\./g,"-")},util.toClass=function(A){return v.util.toDash(A).replace(/_/g,"-").replace(/\s+/g,"-")},util.toDot=function(A){return v.util.toDash(A).replace(/-/g,".")},util.toCamel=function(v,A){return null==A&&(A=!1),A?v.replace(/((\-|^)[a-z])/g,(function(v){return v.toUpperCase().replace("-","")})):v.replace(/(\-[a-z])/g,(function(v){return v.toUpperCase().replace("-","")}))},util.removeFromArray=function(A,z,L){var T,k;for(v.util.assert(v.util.isArray(z),"removeFromArray","Second parameter needs to be an Array",{value:A,array:z,compFunc:L}),k=0;(T=v.util.idxInArray(A,z,L))>-1;)z.splice(T,1),k++;return k},util.moveInArray=function(v,A,z,L){var T;return null==L&&(L=!1),v===A||(v>A?L&&A++:L||A--,T=z.splice(v,1)[0],z.splice(A,0,T)),A},util.compareIndex=function(v,A){return vA?1:0},util.pushOntoArray=function(A,z,L){var T;return-1===(T=v.util.idxInArray(A,z,L))?(z.push(A),z.length-1):T},util.idxInArray=function(A,z,L){var T,k,x,S,E;if(!L)return z.indexOf(A);for(x=-1,k=S=0,E=z.length;S0?A.replace(new RegExp(T.join("|"),"g"),(function(v){return z[v]})):A},util.mergeMap=function(A,z){var L,T;for(L in z)T=z[L],A.hasOwnProperty(L)?v.util.isPlainObject(A[L])&&v.util.isPlainObject(T)&&v.util.mergeMap(A[L],T):A[L]=T;return A},util.copyToClipboard=function(A){var z;A&&((z=v.dom.element("textarea",{style:{position:"absolute",left:"-9999px"}})).value=A,v.dom.append(document.body,z),z.select(),document.execCommand("copy"),v.dom.remove(z))},util}(),v.util.moment=k,v.util.marked=T,String.prototype.startsWith=function(v){return this.substr(0,v.length)===v},String.prototype.startsWithIgnoreCase=function(v){return this.toUpperCase().startsWith(v.toUpperCase())},String.prototype.endsWith=function(v){return this.substr(this.length-v.length)===v},RegExp.escape=function(v){return v.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}}).call(this,z(0))},function(v,A,z){var L,T,k;k=z(23),L=z(24),T=function(){function Coordinates(v){this.coordinates=v,this.latitudeNumbers=null,this.longitudeNumbers=null,this.validate(),this.parse()}return Coordinates.prototype.validate=function(){return(new k).validate(this.coordinates)},Coordinates.prototype.parse=function(){return this.groupCoordinateNumbers(),this.latitude=this.extractLatitude(),this.longitude=this.extractLongitude()},Coordinates.prototype.groupCoordinateNumbers=function(){var v,A;return A=(v=this.extractCoordinateNumbers(this.coordinates)).length/2,this.latitudeNumbers=v.slice(0,A),this.longitudeNumbers=v.slice(0-A)},Coordinates.prototype.extractCoordinateNumbers=function(v){return v.match(/-?\d+(\.\d+)?/g)},Coordinates.prototype.extractLatitude=function(){var v;return v=this.coordinateNumbersToDecimal(this.latitudeNumbers),this.latitudeIsNegative()&&(v*=-1),v},Coordinates.prototype.extractLongitude=function(){var v;return v=this.coordinateNumbersToDecimal(this.longitudeNumbers),this.longitudeIsNegative()&&(v*=-1),v},Coordinates.prototype.coordinateNumbersToDecimal=function(v){var A;return(A=new L(v)).detectSpecialFormats(),A.toDecimal()},Coordinates.prototype.latitudeIsNegative=function(){return this.coordinates.match(/s/i)},Coordinates.prototype.longitudeIsNegative=function(){return this.coordinates.match(/w/i)},Coordinates.prototype.getLatitude=function(){return this.latitude},Coordinates.prototype.getLongitude=function(){return this.longitude},Coordinates}(),v.exports=T},function(v,A){var z;z=function(){function Validator(){}return Validator.prototype.isValid=function(v){var A,z;z=!0;try{return this.validate(v),z}catch(A){return A,z=!1}},Validator.prototype.validate=function(v){return this.checkContainsNoLetters(v),this.checkValidOrientation(v),this.checkNumbers(v)},Validator.prototype.checkContainsNoLetters=function(v){if(/(?![neswd])[a-z]/i.test(v))throw new Error("Coordinate contains invalid alphanumeric characters.")},Validator.prototype.checkValidOrientation=function(v){if(!/^[^nsew]*[ns]?[^nsew]*[ew]?[^nsew]*$/i.test(v))throw new Error("Invalid cardinal direction.")},Validator.prototype.checkNumbers=function(v){var A;return A=v.match(/-?\d+(\.\d+)?/g),this.checkAnyCoordinateNumbers(A),this.checkEvenCoordinateNumbers(A),this.checkMaximumCoordinateNumbers(A)},Validator.prototype.checkAnyCoordinateNumbers=function(v){if(0===v.length)throw new Error("Could not find any coordinate number")},Validator.prototype.checkEvenCoordinateNumbers=function(v){if(v.length%2)throw new Error("Uneven count of latitude/longitude numbers")},Validator.prototype.checkMaximumCoordinateNumbers=function(v){if(v.length>6)throw new Error("Too many coordinate numbers")},Validator}(),v.exports=z},function(v,A){var z;z=function(){function CoordinateNumber(v){v=this.normalizeCoordinateNumbers(v),this.degrees=v[0],this.minutes=v[1],this.seconds=v[2],this.milliseconds=v[3],this.sign=this.normalizedSignOf(this.degrees),this.degrees=Math.abs(this.degrees)}return CoordinateNumber.prototype.normalizeCoordinateNumbers=function(v){var A,z,L,T,k;for(k=[0,0,0,0],z=L=0,T=v.length;L=0?1:-1},CoordinateNumber.prototype.detectSpecialFormats=function(){if(this.degreesCanBeSpecial()){if(this.degreesCanBeMilliseconds())return this.degreesAsMilliseconds();if(this.degreesCanBeDegreesMinutesAndSeconds())return this.degreesAsDegreesMinutesAndSeconds();if(this.degreesCanBeDegreesAndMinutes())return this.degreesAsDegreesAndMinutes()}},CoordinateNumber.prototype.degreesCanBeSpecial=function(){var v;return v=!1,this.minutes||this.seconds||(v=!0),v},CoordinateNumber.prototype.degreesCanBeMilliseconds=function(){return this.degrees>909090},CoordinateNumber.prototype.degreesAsMilliseconds=function(){return this.milliseconds=this.degrees,this.degrees=0},CoordinateNumber.prototype.degreesCanBeDegreesMinutesAndSeconds=function(){return this.degrees>9090},CoordinateNumber.prototype.degreesAsDegreesMinutesAndSeconds=function(){var v;return v=Math.floor(this.degrees/1e4),this.minutes=Math.floor((this.degrees-1e4*v)/100),this.seconds=Math.floor(this.degrees-1e4*v-100*this.minutes),this.degrees=v},CoordinateNumber.prototype.degreesCanBeDegreesAndMinutes=function(){return this.degrees>360},CoordinateNumber.prototype.degreesAsDegreesAndMinutes=function(){var v;return v=Math.floor(this.degrees/100),this.minutes=this.degrees-100*v,this.degrees=v},CoordinateNumber.prototype.toDecimal=function(){return this.sign*(this.degrees+this.minutes/60+this.seconds/3600+this.milliseconds/36e5)},CoordinateNumber}(),v.exports=z},function(v,A){function Coords(){}Coords.prototype.init=function(){if(!arguments.length)throw new Error("no arguments");if(arguments[0].lat&&arguments[0].lng)this.lat=arguments[0].lat,this.lon=arguments[0].lng;else if("string"==typeof arguments[0]){var v=arguments[0].split(",");this.lat=parseFloat(v[0].trim()),this.lon=parseFloat(v[1].trim())}else if("[object Array]"===Object.prototype.toString.call(arguments[0])){var A=arguments[0];!0===arguments[1]?(this.lat=A[1],this.lon=A[0]):(this.lat=A[0],this.lon=A[1])}else!0===arguments[2]?(this.lat=arguments[1],this.lon=arguments[0]):(this.lat=arguments[0],this.lon=arguments[1]);this.compute()},Coords.prototype.compute=function(){function computeFor(v){var A={};return A.initValue=v,A.degrees=Math.abs(v),A.degreesInt=Math.floor(A.degrees),A.degreesFrac=A.degrees-A.degreesInt,A.secondsTotal=3600*A.degreesFrac,A.minutes=A.secondsTotal/60,A.minutesInt=Math.floor(A.minutes),A.seconds=A.secondsTotal-60*A.minutesInt,A}this.north=this.lat>0,this.east=this.lon>0,this.latValues=computeFor(this.lat),this.lonValues=computeFor(this.lon)};var z={FFf:"DD MM ss X",Ff:"DD mm X",f:"dd X"},L="°",T="′",k="″";Coords.prototype.format=function(v,A){if("object"==typeof v){A=v,v="FFf"}(void 0===v&&(v="FFf"),void 0===A&&(A={}),"string"==typeof A)&&(A={latLonSeparator:A});void 0===A.latLonSeparator&&(A.latLonSeparator=" "),void 0===A.decimalPlaces?A.decimalPlaces=5:A.decimalPlaces=parseInt(A.decimalPlaces),Object.keys(z).indexOf(v)>-1&&(v=z[v]);var x=formatFor(this.latValues,this.north?"N":"S"),S=formatFor(this.lonValues,this.east?"E":"W");function formatFor(z,x){var S=v;return S=(S=(S=(S=(S=(S=(S=(S=(S=(S=(S=(S=S.replace(/DD/g,z.degreesInt+L)).replace(/dd/g,z.degrees.toFixed(A.decimalPlaces)+L)).replace(/D/g,z.degreesInt)).replace(/d/g,z.degrees.toFixed(A.decimalPlaces))).replace(/MM/g,z.minutesInt+T)).replace(/mm/g,z.minutes.toFixed(A.decimalPlaces)+T)).replace(/M/g,z.minutesInt)).replace(/m/g,z.minutes.toFixed(A.decimalPlaces))).replace(/ss/g,z.seconds.toFixed(A.decimalPlaces)+k)).replace(/s/g,z.seconds.toFixed(A.decimalPlaces))).replace(/-/g,z.initValue<0?"-":"")).replace(/X/g,x)}return x+A.latLonSeparator+S},v.exports=function formatcoords(){var v=new Coords;return v.init.apply(v,arguments),v}},function(v,A){v.exports=function(v){return v.webpackPolyfill||(v.deprecate=function(){},v.paths=[],v.children||(v.children=[]),Object.defineProperty(v,"loaded",{enumerable:!0,get:function(){return v.l}}),Object.defineProperty(v,"id",{enumerable:!0,get:function(){return v.i}}),v.webpackPolyfill=1),v}},function(v,A,z){var L={"./de":3,"./de-at":4,"./de-at.js":4,"./de-ch":5,"./de-ch.js":5,"./de.js":3,"./en-SG":6,"./en-SG.js":6,"./en-au":7,"./en-au.js":7,"./en-ca":8,"./en-ca.js":8,"./en-gb":9,"./en-gb.js":9,"./en-ie":10,"./en-ie.js":10,"./en-il":11,"./en-il.js":11,"./en-nz":12,"./en-nz.js":12,"./es":13,"./es-do":14,"./es-do.js":14,"./es-us":15,"./es-us.js":15,"./es.js":13,"./it":16,"./it-ch":17,"./it-ch.js":17,"./it.js":16};function webpackContext(v){var A=webpackContextResolve(v);return z(A)}function webpackContextResolve(v){if(!z.o(L,v)){var A=new Error("Cannot find module '"+v+"'");throw A.code="MODULE_NOT_FOUND",A}return L[v]}webpackContext.keys=function webpackContextKeys(){return Object.keys(L)},webpackContext.resolve=webpackContextResolve,v.exports=webpackContext,webpackContext.id=27},function(v,A,z){(function(v){v.dom=function(){function dom(){}return dom.data=function(A,z,L){var T,k,x;if(A){if(A.hasOwnProperty("DOM")&&(A=A.DOM),v.util.assert(A instanceof HTMLElement,"dom.data","node needs to be instance of HTMLElement",{node:A}),void 0===z)return A.__dom_data||{};if(v.util.isPlainObject(z)){for(T in z)x=z[T],v.dom.data(A,T,x);return A}return void 0===L?null!=(k=A.__dom_data)?k[z]:void 0:(A.__dom_data||(A.__dom_data={}),A.__dom_data[z]=L,A)}},dom.removeData=function(A,z){if(A)return A.__dom_data&&(delete A.__dom_data[z],v.util.isEmptyObject(A.__dom_data)&&delete A.__dom_data),A},dom.findElement=function(v,A,z,L,T){var k;return null==L&&(L=!0),null==T&&(T=!1),0===(k=this.findElements(v,A,z,1,L,T)).length?null:k[0]},dom.findNextElement=function(v,A,z,L,T){var k,x;if(null==z&&(z=!1),null==L&&(L=!0),null==T&&(T=!0),k=this.findElement(v,A,z,L,T))return k;for(;;){if(!(v=v.parentNode))return null;if(x=L?v.nextElementSibling:v.previousElementSibling)break}return this.findNextElement(x,A,z,L,!1)},dom.findPreviousElement=function(v,A,z){return null==z&&(z=!1),this.findNextElement(v,A,z,!1)},dom.findNextVisibleElement=function(A,z,L){return null==L&&(L=!0),this.findNextElement(A,z,(function(A){return v.dom.isVisible(A)}),L)},dom.findPreviousVisibleElement=function(v,A){return this.findNextVisibleElement(v,A,!1)},dom.findNextSiblings=function(v,A,z){return null==z&&(z=!1),this.findElements(v,A,z,null,!0,!0)},dom.findPreviousSiblings=function(v,A,z){return null==z&&(z=!1),this.findElements(v,A,z,null,!1,!0)},dom.findElements=function(A,z,L,T,k,x,S){var E,Y,P,q;return null==A&&(A=document.documentElement),null==z&&(z=null),null==L&&(L=!1),null==T&&(T=null),null==k&&(k=!0),null==x&&(x=!1),S?Y=!0:(v.util.assert(A instanceof HTMLElement,"DOM.findElement","node needs to be instanceof HTMLElement.",{node:A,selector:z}),S=[],Y=!x),E=!L||L(A),Y&&E&&(null===z||v.dom.matches(A,z))&&(S.push(A),S.length===T)||(k?(P=A.firstElementChild,q=A.nextElementSibling):(P=A.lastElementChild,q=A.previousElementSibling),P&&!x&&E&&(this.findElements(P,z,L,T,k,x,S),S.length===T)||q&&(this.findElements(q,z,L,T,k,x,S),S.length)),S},dom.children=function(v,A){var z,L,T,k,x,S;for(L=[],k=T=0,x=(S=v.children).length;Tz.length||k++,x=z.length;return A}switch(typeof z){case"number":case"boolean":T=document.createTextNode(z+"");break;case"string":T=document.createTextNode(z);break;default:if(z.hasOwnProperty("DOM")){if(T=z.DOM,v.util.isNull(T))return}else T=z}return L?(v.util.assert(T instanceof Node,"CUI.dom.append","Content needs to be instanceof Node, string, boolean, or number.",{node:T}),A.appendChild(T)):(v.util.assert(T instanceof Node,"CUI.dom.prepend","Content needs to be instanceof Node, string, boolean, or number.",{node:T}),A.insertBefore(T,A.firstChild)),A},dom.replace=function(v,A){return v.hasOwnProperty("DOM")&&(v=v.DOM),this.empty(v),this.append(v,A)},dom.prepend=function(v,A){return this.__append(v,A,!1)},dom.append=function(v,A){return this.__append(v,A)},dom.getAttribute=function(v,A){return v.hasOwnProperty("DOM")&&(v=v.DOM),v.getAttribute(A)},dom.remove=function(v){var A,z;return(A=(null!=v?v.DOM:void 0)||v)?(null!=(z=A.parentNode)&&z.removeChild(A),A):null},dom.empty=function(A){var z;if(!A)return null;for(A.hasOwnProperty("DOM")&&(A=A.DOM),v.util.assert(v.util.isElement(A),"CUI.dom.empty","top needs to be Element",{node:A});z=A.lastChild;)A.removeChild(z);return A},dom.hasClass=function(v,A){var z,L,T,k;if(!v||!A)return null;for(v.DOM&&(v=v.DOM),L=0,T=(k=A.trim().split(/\s+/)).length;L= 0",{element:A,offset:z}),(x=A.offsetParent)===document.documentElement?(k={top:0,left:0},L={top:document.body.scrollTop,left:document.body.scrollLeft}):((k={top:(T=v.dom.getDimensions(x)).top,left:T.left}).top+=T.borderTopWidth,k.left+=T.borderLeftWidth,L={top:T.scrollTop,left:T.scrollLeft}),v.dom.setStyle(A,{top:z.top-k.top+L.top,left:z.left-k.left+L.left})},dom.__failedDOMInserts=0,dom.waitForDOMRemove=function(A){var z,L,T,k;return k=v.Element.readOpts(A,"CUI.dom.waitForDOMRemove",{node:{mandatory:!0,check:function(A){return v.dom.isNode(A)}},ms:{default:200,check:function(v){return v>0}}}),T=v.dom.getNode(k.node),L=new v.Deferred,(z=function(){if(v.dom.isInDOM(T))return v.setTimeout({call:z,ms:k.ms,track:!1});L.resolve()})(),L.promise()},dom.waitForDOMInsert=function(A){var z,L,T,k,x,S,E,Y;if(x=v.Element.readOpts(A,"CUI.dom.waitForDOMInsert",{node:{mandatory:!0,check:function(A){return v.dom.isNode(A)}}}),k=v.dom.getNode(x.node),v.dom.isInDOM(k))return v.resolvedPromise(!0);for(z=new v.Deferred,L=0,T=(E=["-webkit-","-moz-","-ms-","-o-",""]).length;L=0&&L<=A.children.length,"CUI.dom.insertAtPosition","Unable to insert node at position #"+L+".",{node:A,node_insert:z,pos:L}),L===A.children.length?A.appendChild(z):A.children[L]!==z?this.insertBefore(A.children[L],z):void 0},dom.insertBefore=function(v,A){var z;return(z=(null!=v?v.DOM:void 0)||v)?(A&&z.parentNode.insertBefore(A,z),z):null},dom.insertAfter=function(v,A){var z;return(z=(null!=v?v.DOM:void 0)||v)?(A&&z.parentNode.insertBefore(A,z.nextSibling),z):null},dom.is=function(A,z){return A?z instanceof HTMLElement?A===z:v.util.isFunction(z)?!!z(A):A instanceof HTMLElement?this.matches(A,z):null:null},dom.matches=function(A,z){return A?A[v.dom.matchFunc](z):null},dom.matchFunc=function(){var A,z,L,T,k;for(A=document.createElement("div"),z=0,T=(k=["matches","webkitMatchesSelector","mozMatchesSelector","oMatchesSelector","msMatchesSelector"]).length;z0;)this.insertAfter(L,z[z.length-1]);return L}return A.parentNode.replaceChild(z,A)},dom.getRect=function(v){return v.hasOwnProperty("DOM")&&(v=v.DOM),v.getBoundingClientRect()},dom.getComputedStyle=function(v){return v.hasOwnProperty("DOM")&&(v=v.DOM),window.getComputedStyle(v)},dom.setStyle=function(A,z,L){var T,k,x;for(T in null==L&&(L="px"),A.hasOwnProperty("DOM")&&(A=A.DOM),v.util.assert(A instanceof HTMLElement,"CUI.dom.setStyle","docElem needs to be instanceof HTMLElement.",{docElem:A}),z)if(void 0!==(x=z[T])){switch(x){case"":case null:k="";break;default:k=isNaN(Number(x))?x:0===x||"0"===x?0:x+L}T.startsWith("--")?A.style.setProperty(T,k):A.style[T]=k}return A},dom.getStyle=function(A){var z,L,T,k;for(L in A.hasOwnProperty("DOM")&&(A=A.DOM),k={},z=A.style)T=z[L],v.util.isNull(T)||(k[L]=T);return k},dom.setStyleOne=function(v,A,z){var L;return(L={})[A]=z,this.setStyle(v,L)},dom.setStylePx=function(v,A){return console.error("CUI.dom.setStylePx is deprectaed, use CUI.dom.setStyle."),this.setStyle(v,A)},dom.getRelativePosition=function(A){var z;return v.util.assert(A instanceof HTMLElement,"CUI.dom.getRelativePosition","docElem needs to be instanceof HTMLElement.",{docElem:A}),{top:(z=v.dom.getDimensions(A)).offsetTopScrolled,left:z.offsetLeftScrolled}},dom.getDimensions=function(A){var z,L,T,k,x,S,E,Y,P,q,F,H,X,V,U,J,tt,et,it,ot,nt,rt,st,at,ct,lt,ut;if(v.util.isNull(A))return null;if(A===window||A===document)return{width:window.innerWidth,height:window.innerHeight};for(A.hasOwnProperty("DOM")&&(A=A.DOM),L={computedStyle:z=this.getComputedStyle(A),clientBoundingRect:it=this.getRect(A)},k=0,q=(ot=["margin","padding","border"]).length;k0&&("function"==typeof A&&A(L,P),z.push(P));break;case 1:T.push(L)}this.findTextInNodes(T,A,z)}return z},dom.getCSSFloatValue=function(v){return-1===v.indexOf("px")?0:parseFloat(v.substr(0,v.length-2))},dom.isPositioned=function(A){var z;return v.util.assert(A instanceof HTMLElement,"CUI.dom.isPositioned","docElem needs to be instance of HTMLElement.",{docElem:A}),"relative"===(z=this.getComputedStyle(A).position)||"absolute"===z||"fixed"===z},dom.isVisible=function(v){var A;return"hidden"!==(A=this.getComputedStyle(v)).visibility&&"none"!==A.display},dom.getBoxSizing=function(v){return this.getComputedStyle(v).boxSizing},dom.isBorderBox=function(v){return"border-box"===this.getBoxSizing(v)},dom.isContentBox=function(v){return"content-box"===this.getBoxSizing(v)},dom.hideElement=function(v){if(v)return v.hasOwnProperty("DOM")&&(v=v.DOM),"none"!==v.style.display&&(v.__saved_display=v.style.display),v.style.display="none",v},dom.focus=function(v){if(v)return v.DOM&&(v=v.DOM),v.focus()},dom.blur=function(v){if(v)return v.DOM&&(v=v.DOM),v.blur()},dom.removeChildren=function(A,z){var L,T,k,x;for(v.util.assert(A instanceof HTMLElement,"CUI.dom.removeChildren","element needs to be instance of HTMLElement",{element:A}),T=0,k=(x=this.children(A,z)).length;T0&&(F.scrollTop=F.scrollTop+E,S()),(q=z.viewportTopMargin-L.viewportTopContent)<0&&(F.scrollTop=F.scrollTop+q,S())),"visible"!==L.computedStyle.overflowX&&((P=z.viewportRightMargin-L.viewportRightContent)>0&&(F.scrollLeft=F.scrollLeft+P,S()),(Y=z.viewportLeftMargin-L.viewportLeftContent)<0&&(F.scrollLeft=F.scrollLeft+Y,S()));return A},dom.setClassOnMousemove=function(A){var z,L,T,k;return null==A&&(A={}),L=v.Element.readOpts(A,"CUI.dom.setClassOnMousemove",{delayRemove:{check:Function},class:{mandatory:!0,check:String},ms:{default:3e3,mandatory:!0,check:function(v){return v>0}},element:{mandatory:!0,check:function(v){return v instanceof HTMLElement}},instance:{}}),z=function(){return v.dom.addClass(L.element,L.class),k()},T=function(){if(!("function"==typeof L.delayRemove?L.delayRemove():void 0)&&!v.globalDrag)return v.dom.removeClass(L.element,L.class);k()},k=function(){return v.scheduleCallback({ms:L.ms,call:T})},v.Events.listen({node:L.element,type:["mousemove","wheel"],instance:L.instance,call:function(v){z()}}),v.Events.listen({node:L.element,type:"mouseleave",instance:L.instance,call:function(){return T()}})},dom.requestFullscreen=function(A){var z,L;return A.hasOwnProperty("DOM")&&(A=A.DOM),v.util.assert(A instanceof HTMLElement,"startFullscreen","element needs to be instance of HTMLElement",{element:A}),A.requestFullscreen?A.requestFullscreen():A.webkitRequestFullscreen?A.webkitRequestFullscreen():A.mozRequestFullScreen?A.mozRequestFullScreen():A.msRequestFullscreen&&A.msRequestFullscreen(),z=new v.Deferred,L=v.Events.listen({type:"fullscreenchange",node:window,call:function(A){v.dom.isFullscreen()?z.notify():(v.Events.ignore(L),z.resolve())}}),z.promise()},dom.getLayerSidebarWidth=function(){var A;return(A=v.dom.matchSelector(document.documentElement,".cui-layer-sidebar--active"))[0]?v.dom.getDimensions(A[0]).marginBoxWidth:0},dom.exitFullscreen=function(){var A;return v.dom.isFullscreen()?(A=new v.Deferred,document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen(),v.Events.listen({type:"fullscreenchange",node:window,only_once:!0,call:function(){A.resolve()}}),A.promise()):v.resolvedPromise()},dom.fullscreenElement=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||void 0},dom.fullscreenEnabled=function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled||!1},dom.isFullscreen=function(){return document.fullscreen||document.webkitIsFullScreen||document.mozFullScreen||!!document.msFullscreenElement||!1},dom.$element=function(A,z,L,T){return null==L&&(L={}),null==T&&(T=!1),v.util.isEmpty(z)||(L.class=z),T&&(v.util.isEmpty(z)?L.class="cui-"+A:L.class="cui-"+A+" "+z,A="div"),v.dom.element(A,L)},dom.div=function(A,z){return v.dom.$element("div",A,z)},dom.video=function(A,z){return v.dom.$element("video",A,z)},dom.audio=function(A,z){return v.dom.$element("audio",A,z)},dom.source=function(A,z){return v.dom.$element("source",A,z)},dom.span=function(A,z){return v.dom.$element("span",A,z)},dom.table=function(A,z){return v.dom.$element("table",A,z,!0)},dom.img=function(A,z){return v.dom.$element("img",A,z)},dom.tr=function(A,z){return v.dom.$element("tr",A,z,!0)},dom.th=function(A,z){return v.dom.$element("th",A,z,!0)},dom.td=function(A,z){return v.dom.$element("td",A,z,!0)},dom.i=function(A,z){return v.dom.$element("i",A,z)},dom.p=function(A,z){return v.dom.$element("p",A,z)},dom.pre=function(A,z){return v.dom.$element("pre",A,z)},dom.ul=function(A,z){return v.dom.$element("ul",A,z)},dom.a=function(A,z){return v.dom.$element("a",A,z)},dom.b=function(A,z){return v.dom.$element("b",A,z)},dom.li=function(A,z){return v.dom.$element("li",A,z)},dom.label=function(A,z){return v.dom.$element("label",A,z)},dom.h1=function(A,z){return v.dom.$element("h1",A,z)},dom.h2=function(A,z){return v.dom.$element("h2",A,z)},dom.h3=function(A,z){return v.dom.$element("h3",A,z)},dom.h4=function(A,z){return v.dom.$element("h4",A,z)},dom.h5=function(A,z){return v.dom.$element("h5",A,z)},dom.h6=function(A,z){return v.dom.$element("h6",A,z)},dom.text=function(A,z,L){var T;return(T=v.dom.span(z,L)).textContent=A,T},dom.textEmpty=function(A){var z;return(z=v.dom.span("italic")).textContent=A,z},dom.table_one_row=function(){return v.dom.append(v.dom.table(),v.dom.tr_one_row.apply(this,arguments))},dom.tr_one_row=function(){var A,z,L,T,k,x,S;for(S=v.dom.tr(),z=function(A){var z,L;L=v.dom.td(),v.dom.append(S,L),(z=function(A){var T,k,x;if(v.util.isArray(A))for(k=0,x=A.length;k=0&&(L.func.apply(this,z),"done"===(x=L.type)||"always"===x||"fail"===x)?this.__callbacks.splice(T,1):T++;return this.__runningCallbacks=!1,this},Deferred.prototype.__register=function(A,z){if(v.util.assert(v.util.isFunction(z),"Deferred."+A+": Callback needs to be Function.",{callback:z}),!("rejected"===this.__state&&"done"===A||"resolved"===this.__state&&"fail"===A)){if(this.__callbacks.push({type:A,func:z}),"pending"!==this.__state&&!this.__runningCallbacks)switch(this.__state){case"resolved":this.__callback(["done","always"],this.__finished_args);break;case"rejected":this.__callback(["fail","always"],this.__finished_args)}return this}},Deferred.prototype.done=function(v){return this.__register("done",v),this},Deferred.prototype.fail=function(v){return this.__register("fail",v),this},Deferred.prototype.always=function(v){return this.__register("always",v),this},Deferred.prototype.progress=function(v){return this.__register("progress",v),this},Deferred.prototype.__notify=function(){return v.util.assert("pending"===this.__state,"CUI.Deferred.notify","Cannot notify state "+this.__state+"."),this.__callback(["progress"],arguments),this},Deferred.prototype.__resolve=function(){return v.util.assert("pending"===this.__state,"CUI.Deferred.resolve","Cannot resolve state "+this.__state+"."),this.__finished_args=arguments,this.__state="resolved",this.__callback(["done","always"],arguments),this},Deferred.prototype.__reject=function(){return v.util.assert("pending"===this.__state,"CUI.Deferred.reject","Cannot reject state "+this.__state+"."),this.__finished_args=arguments,this.__state="rejected",this.__callback(["fail","always"],arguments),this},Deferred.prototype.state=function(){return this.__state},Deferred.prototype.promise=function(){return new v.Promise(this)},Deferred.uniqueId=0,Deferred}()}).call(this,z(0))},function(v,A,z){(function(v){v.Promise=function(){function Promise(A){this.__deferred=A,v.util.assert(this.__deferred instanceof v.Deferred,"new Promise","parameter needs to be instanceof CUI.Deferred",{parameter:this.__deferred})}return Promise.prototype.done=function(){return this.__deferred.done.apply(this.__deferred,arguments),this},Promise.prototype.fail=function(){return this.__deferred.fail.apply(this.__deferred,arguments),this},Promise.prototype.always=function(){return this.__deferred.always.apply(this.__deferred,arguments),this},Promise.prototype.progress=function(){return this.__deferred.progress.apply(this.__deferred,arguments),this},Promise.prototype.state=function(){return this.__deferred.state.apply(this.__deferred,arguments)},Promise.prototype.getUniqueId=function(){return this.__deferred.getUniqueId()},Promise}()}).call(this,z(0))},function(v,A,z){(function(v){var A;v.whenAll=(A=this,function(){var z;return(z=[!1]).push.apply(z,arguments),v.__when.apply(A,z)}),v.when=function(A){return function(){var z;return(z=[!0]).push.apply(z,arguments),v.__when.apply(A,z)}}(this),v.__when=function(){var A,z,L,T,k,x,S,E,Y,P,q,F,H,X,V,U,J;for(U=[],z=function(A,z){v.util.assert(v.util.isPromise(A)||v.util.isDeferred(A),"CUI.when","arg["+z+"] needs to be instanceof CUI.Promise or CUI.Deferred.",{arg:A}),U.push(A)},J=null,P=Y=0,H=arguments.length;Y0?F.deprecated:"",console.warn(z+": opts."+Y+" is deprecated.",H));else{if(!P)continue;v.util.assert(!1,z,"opts."+Y+" needs to be set.",{opts:A,check_map:L})}!F.check||v.util.isNull(H)&&!P||(v.util.isArray(F.check)?v.util.assert(F.check.indexOf(H)>-1,z,"opts."+Y+' needs to be one of ["'+F.check.join('","')+'"].',{opts:A}):F.check===Boolean||F.check===String||F.check===Function||F.check===Array?v.util.assertInstanceOf.call(this,Y,F.check,void 0,H):v.util.isFunction(F.check)&&!F.check.__super__?(v.util.assert(v.util.isEmpty(F.check.name)||"check"===F.check.name,z,Y+'.check is "'+F.check.name+'" but has no "__super__" method. Use "extends CUI.Element" or "extends CUI.Dummy" to fix that.',{opts:A,key:Y,value:F}),x=F.check.call(this,H),v.util.isNull(x)||v.util.isBoolean(x)||v.util.isString(x)||(k=x,console.error("CUI.Element.readOpts: check needs to return Boolean, null, undefined or String.","opts:",A,"opt:",F,"return:",k),x=!!k),!0!==x&&(S=v.util.isString(x)?x:"needs to match\n\n"+F.check.toString(),v.util.assert(!1,z,"opts."+Y+": "+S+".",{opts:A}))):v.util.isPlainObject(F.check)?H=v.Element.readOpts(H,z+" [opts."+Y+"]",F.check):v.util.isNull(H)&&P?v.util.assert(!1,z,"opts."+Y+" is mandatory, but is "+H+".",{opts:A}):v.util.assertInstanceOf.call(this,Y,F.check,void 0,H)),T&&(this["_"+Y]=H,this instanceof v.Element&&this.__mapped_keys.push(Y)),q[Y]=H}for(Y in A)void 0===(F=A[Y])||q.hasOwnProperty(Y)||Y.startsWith("_")||console.warn(z+": opts."+Y+", not supported. check_map: ",L,"opts:",A);return q},Element}()}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.XHR=function(z){function XHR(){return XHR.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(XHR,z),XHR.prototype.getGroup=function(){return"Core"},XHR.prototype.initOpts=function(){return XHR.__super__.initOpts.call(this),this.addOpts({method:{mandatory:!0,default:"GET",check:["GET","POST","PUT","DELETE","OPTIONS"]},url:{mandatory:!0,check:String,check:function(v){return v.trim().length>0}},user:{check:String},password:{check:String},responseType:{mandatory:!0,default:"json",check:["","text","json","blob","arraybuffer"]},timeout:{check:function(v){return v>=0}},form:{check:"PlainObject"},url_data:{check:"PlainObject"},body:{},json_data:{},json_pretty:{default:!1,check:function(A){return!1===A||!0===A||v.util.isString(A)}},headers:{mandatory:!0,default:{},check:"PlainObject"},withCredentials:{mandatory:!0,default:!1,check:Boolean}}),this},XHR.readyStates={0:"UNSENT",1:"OPENED",2:"HEADERS_RECEIVED",3:"LOADING",4:"DONE"},XHR.statusText={"-1":"abort","-2":"timeout","-3":"network_failure"},XHR.prototype.readOpts=function(){var A,z,L,T;for(A in XHR.__super__.readOpts.call(this),this.__xhr=new XMLHttpRequest,this.__xhr.withCredentials=this._withCredentials,this.__readyStatesSeen=[this.readyState()],this.__registerEvents("download"),this.__registerEvents("upload"),this.__headers={},z=this._headers)T=z[A],this.__headers[A.toLowerCase()]=T;return this._form&&(this.opts.method||(this._method="POST")),this._url_data?this.__url=v.appendToUrl(this._url,this._url_data):this.__url=this._url,L=0,this._form&&(L+=1),this._json_data&&(L+=1,void 0===this.__headers["content-type"]&&(this.__headers["content-type"]="application/json; charset=utf-8")),this._body&&(L+=1),v.util.assert(L<=1,"new CUI.XHR","opts.form, opts.json_data, opts.body are mutually exclusive."),this},XHR.prototype.__registerEvents=function(v){var A,z,L,T,k,x,S,E;for(k=["loadStart","progress","abort","error","load","loadend","timeout"],"upload"===v?S=this.__xhr.upload:(k.push("readyStateChange"),S=this.__xhr),E=this,z=function(v,A){return S.addEventListener(A.toLowerCase(),(function(A){return E[v](A)}))},L=0,x=k.length;L=200&&this.__xhr.status<300||304===this.__xhr.status)},XHR.prototype.status=function(){return this.__status<0?this.__status:this.__xhr.status},XHR.prototype.statusText=function(){return this.__status<0?v.XHR.statusText[this.__status+""]:this.__xhr.statusText},XHR.prototype.response=function(){var v;if("json"===this._responseType&&""===this.__xhr.responseType)try{v=JSON.parse(this.__xhr.response)}catch(A){A,v=this.__xhr.response}else v=this.__xhr.response;return"json"===this._responseType&&(this.__xhr.responseJSON=v),v},XHR.prototype.start=function(){var A,z,L,T,k,x;for(z in this.__xhr.open(this._method,this.__url,!0,this._user,this._password),L=this.__headers)x=L[z],this.__xhr.setRequestHeader(z,x);if(this.__xhr.responseType=this._responseType,this.__xhr.timeout=this._timeout,this._form){for(z in A=new FormData,T=this._form)x=T[z],A.append(z,x);k=A}else k=this._json_data?this._json_pretty?!0===this._json_pretty?JSON.stringify(this._json_data,null,"\t"):JSON.stringify(this._json_data,null,this._json_pretty):JSON.stringify(this._json_data):this._body?this._body:void 0;return this.__dfr=new v.Deferred,this.__xhr.send(k),this.__dfr.promise()},XHR.prototype.getXHR=function(){return this.__xhr},XHR.prototype.getAllResponseHeaders=function(){var v,A,z,L,T;for(A=[],z=0,L=(T=this.__xhr.getAllResponseHeaders().split("\r\n")).length;zF.width&&(S.scrollLeft,0<(H=k=(L=q.clientX())-F.left)&&H<30?J=-(30-k)*tt:0<(X=k=F.right-L-x.verticalScrollbarWidth)&&X<30&&(J=(30-k)*tt),A.stopPropagation()),S.scrollHeight>F.height&&(S.scrollTop,0<(V=k=(T=q.clientY())-F.top)&&V<30?et=-(30-k)*tt:0<(U=k=F.bottom-T-x.horizontalScrollbarHeight)&&U<30&&(et=(30-k)*tt)),et||J)return P=S.scrollTop,Y=S.scrollLeft,et&&(S.scrollTop+=et),J&&(S.scrollLeft+=J),E&&(q.scrollPageY||(q.scrollPageY=0),q.scrollPageY+=S.scrollTop-P,q.scrollPageX||(q.scrollPageX=0),q.scrollPageX+=q.scrollLeft-Y),A.stopPropagation()}})}))}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty,z=[].indexOf||function(v){for(var A=0,z=this.length;A=0}},selector:{check:function(A){return v.util.isString(A)||v.util.isFunction(A)}}})},Draggable.prototype.readOpts=function(){return Draggable.__super__.readOpts.call(this),this.__autoRepeatTimeout=null,this.supportTouch()?this.__event_types={start:["mousedown","touchstart"],end:["mouseup","touchend"],move:["mousemove","touchmove"]}:this.__event_types={start:["mousedown"],end:["mouseup"],move:["mousemove"]},this},Draggable.prototype.getClass=function(){return this._selector?Draggable.__super__.getClass.call(this):"cui-draggable "+Draggable.__super__.getClass.call(this)},Draggable.prototype.supportTouch=function(){return!!this._support_touch},Draggable.prototype.__killTimeout=function(){return this.__autoRepeatTimeout&&(v.clearTimeout(this.__autoRepeatTimeout),this.__autoRepeatTimeout=null),this},Draggable.prototype.__cleanup=function(){var A;this.__killTimeout(),this.__ref&&(v.Events.ignore({instance:this.__ref}),this.__ref=null),(null!=(A=v.globalDrag)?A.instance:void 0)===this&&(v.globalDrag=null)},Draggable.prototype.destroy=function(){var A;return Draggable.__super__.destroy.call(this),v.dom.remove(null!=(A=v.globalDrag)?A.helperNode:void 0),this.__cleanup(),this},Draggable.prototype.init=function(){return v.util.assert(!this._helper_contain_element||v.dom.closest(this._element,this._helper_contain_element),"new CUI.sDraggable","opts.helper_contain_element needs to be parent of opts.element",{opts:this.opts}),v.Events.listen({type:this.__event_types.start,node:this.element,instance:this,selector:this._selector,call:(A=this,function(z){var L,T,k,x,S;z.getButton()>0&&"mousedown"===z.getType()||v.globalDrag||(k=v.util.elementGetPosition(v.util.getCoordinatesFromEvent(z),z.getTarget()),(T=v.dom.getDimensions(z.getTarget())).clientWidthScaled>0&&k.left-T.scrollLeftScaled>T.clientWidthScaled?console.warn("Mousedown on a vertical scrollbar, not starting drag."):T.clientHeightScaled>0&&k.top-T.scrollTopScaled>T.clientHeightScaled?console.warn("Mousedown on a horizontal scrollbar, not starting drag."):(x=z.getCurrentTarget(),S=v.dom.getDimensions(x),v.dom.isInDOM(x)&&0!==S.clientWidth&&0!==S.clientHeight&&(v.dom.closest(z.getTarget(),"input,textarea,select")||(L=x,A.init_drag(z,L)))))})});var A},Draggable.prototype.init_drag=function(A,z){var L,T,k,x,S,E,Y,P,q;if(z&&(v.globalDrag="function"==typeof this._create?this._create(A,z):void 0,!1!==v.globalDrag)){for(S in(v.util.isNull(v.globalDrag)||!0===v.globalDrag)&&(v.globalDrag={}),v.util.assert(v.util.isPlainObject(v.globalDrag),"CUI.Draggable.init_drag","returned data must be a plain object",{data:v.globalDrag}),Y=v.util.getCoordinatesFromEvent(A),P=v.util.elementGetPosition(Y,z),x={$source:z,startEvent:A,startCoordinates:Y,instance:this,startScroll:{top:z.scrollTop,left:z.scrollLeft},start:P,threshold:this._threshold})q=x[S],v.globalDrag[S]=q;var F;A.stopPropagation(),this.before_drag(A,z),this.__ref=new v.Dummy,L=0,E=null,F=this,T=function(){var A;return A=E.getPointTarget()||E.getTarget(),v.Events.trigger({type:"dragover-scroll",node:A,count:L,originalEvent:E}),L+=1,F.__killTimeout(),F.__autoRepeatTimeout=v.setTimeout({ms:100,track:!1,call:T})},v.Events.listen({node:document,type:this.__event_types.move,instance:this.__ref,call:function(A){return function(L){var k,x;if(v.globalDrag&&(L.preventDefault(),(z=L.getTarget())&&!v.globalDrag.ended)){switch(x={x:(k=v.util.getCoordinatesFromEvent(L)).pageX-v.globalDrag.startCoordinates.pageX,y:k.pageY-v.globalDrag.startCoordinates.pageY,eventPoint:k},A.get_axis()){case"x":x.y=0;break;case"y":x.x=0}x.bare_x=x.x,x.bare_y=x.y,x.x+=v.globalDrag.$source.scrollLeft-v.globalDrag.startScroll.left,x.y+=v.globalDrag.$source.scrollTop-v.globalDrag.startScroll.top,(Math.abs(x.x)>=v.globalDrag.threshold||Math.abs(x.y)>=v.globalDrag.threshold||v.globalDrag.dragStarted)&&(v.globalDrag.dragDiff=x,v.globalDrag.dragStarted||(v.globalDrag.startEvent.preventDefault(),A.__startDrag(L,z,x),A._get_cursor?document.body.setAttribute("data-cursor",A._get_cursor(v.globalDrag)):document.body.setAttribute("data-cursor",A.getCursor())),E=L,T(),A.do_drag(L,z,x),"function"==typeof A._dragging&&A._dragging(L,v.globalDrag,x))}}}(this)}),k=function(A){return function(z,L){var T,k,x;null==L&&(L=!1),k=v.globalDrag.$source,x=v.dom.parents(k),v.globalDrag.ended=!0,document.body.removeAttribute("data-cursor"),L?(v.globalDrag.stopped=!0,A.stop_drag(z),"function"==typeof A._dragstop&&A._dragstop(z,v.globalDrag,A)):(A.end_drag(z),"function"==typeof A._dragend&&A._dragend(z,v.globalDrag,A)),A.isDestroyed()||(T=v.globalDrag.noClickKill,A.__cleanup(),T||function(){var A,z,L,T,S;for(S=v.dom.parents(k),z=A=0,L=x.length;A=0||"max"===P&&k<=0||("y"===F&&z.call(A.fix,"n")>=0?A.h-=k:"x"===F&&z.call(A.fix,"w")>=0?A.w-=k:(A[F]-=k,"h"===F&&z.call(A.fix,"s")>=0&&(A.y+=k),"w"===F&&z.call(A.fix,"e")>=0&&(A.x+=k),"x"===F&&z.call(A.fix,"e")>=0&&(A.w+=k),"y"===F&&z.call(A.fix,"s")>=0&&(A.h+=k))));return A},Draggable}(v.DragDropSelect)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Droppable=function(z){function Droppable(){return Droppable.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Droppable,z),Droppable.cls="droppable",Droppable.prototype.initOpts=function(){return Droppable.__super__.initOpts.call(this),this.addOpts({accept:{check:Function},drop:{default:function(A,z){var L;return L=z.dropTargetPos||"on",v.alert({markdown:!0,text:"You dropped me **"+L+"**: "+v.dom.getAttribute(z.dropTarget,"class")})},check:Function},hoverClass:{default:"cui-droppable",check:String},dropHelper:{mandatory:!0,default:!1,check:Boolean},targetHelper:{mandatory:!0,default:!1,check:Boolean},selector:{check:function(A){return v.util.isString(A)||v.util.isFunction(A)}}})},Droppable.prototype.accept=function(v,A){return"function"==typeof this._accept?this._accept(v,A):void 0},Droppable.prototype.destroy=function(){return this.removeHelper(),Droppable.__super__.destroy.call(this)},Droppable.prototype.readOpts=function(){Droppable.__super__.readOpts.call(this),this._targetHelper&&v.util.assert(this._selector,"new CUI.Droppable","opts.targetHelper needs opts.selector to be set.",{opts:this.opts}),this._dropHelper&&(v.util.assert(!this._selector||this._targetHelper,"new CUI.Droppable","opts.dropHelper does only work without opts.selector or with opts.targetHelper and opts.selector. needs opts.selector to be set.",{opts:this.opts}),this.__dropHelper=v.dom.element("DIV",{class:"cui-droppable-drop-helper"}))},Droppable.prototype.removeHelper=function(){var A,z,L;if(this.resetMargin(),this.__selectedTarget&&(v.dom.removeClass(this.__selectedTarget,this._hoverClass),this.__selectedTarget=null),this.__dropHelper&&v.dom.remove(this.__dropHelper),this._targetHelper)for(A=0,z=(L=v.dom.findElements(this._element,this._selector)).length;Ak.viewportCenterLeft||"y"===this.__axis&&T.pageY>k.viewportCenterTop?"after":"before",L(x=this.__selectedTarget,S)?(this.__dropTarget=x,this.__dropTargetPos=S,Y="cui-droppable-target-helper-"+this.__axis+"--"+this.__dropTargetPos,this.__resetMargin===this.__selectedTarget&&this.__selectedTarget.__target_helper_class===Y||(this.resetMargin(),this.__saveZoneDims=[v.dom.getDimensions(this.__selectedTarget)],this.__selectedTarget.__target_helper_class=Y,v.dom.addClass(this.__selectedTarget,this.__selectedTarget.__target_helper_class),this.__saveZoneDims.push(v.dom.getDimensions(this.__selectedTarget)),this.__resetMargin=this.__selectedTarget)):this.removeHelper()},Droppable.prototype.init=function(){var A;return v.Events.listen({node:this.element,type:"cui-dragend",instance:this,call:(A=this,function(v,z){return A.removeHelper()})}),v.Events.listen({node:this.element,type:"cui-drop",instance:this,call:function(A){return function(z,L){A.__dropTarget&&(L.dropTarget=A.__dropTarget,A._targetHelper&&(L.dropTargetPos=A.__dropTargetPos),!1!==A.accept(z,L)&&(z.stopPropagation(),v.setTimeout({call:function(){return A._drop(z,L)}})))}}(this)}),v.Events.listen({node:this.element,type:["cui-dragover","cui-dragenter","cui-dragleave"],instance:this,call:function(v){return function(A,z){v.syncTargetHelper(A,z),A.stopPropagation()}}(this)})},Droppable}(v.DragDropSelect)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty,z=[].indexOf||function(v){for(var A=0,z=this.length;A0&&(U-=H,P=0)):(H=(P=v.globalDrag.start.left)+(U=T.x)-this.element.scrollWidth)>0&&(U-=H),T.y<=0?(V=v.globalDrag.start.top+T.y,x=-T.y,(H=-V)>0&&(x-=H,V=0)):(H=(V=v.globalDrag.start.top)+(x=T.y)-this.element.scrollHeight)>0&&(x-=H),S=0,q=(Y=this.get_lassoed_elements()).length;S1?L[L.length-2]:null},Sortable.prototype.getClass=function(){return this._selector?"cui-drag-drop-select":Sortable.__super__.getClass.call(this)},Sortable.prototype.readOpts=function(){return Sortable.__super__.readOpts.call(this),this._helper_contain_element=this._element},Sortable.prototype.get_child_number=function(v){var A,z,L,T;for(z=A=0,L=(T=this.element.children).length;Az&&(v.globalDrag.noClickKill=!0,v.dom.insertBefore(L,T)),v.dom.syncAnimatedClone(this.element),this},Sortable.prototype.start_drag=function(A,z,L){return v.globalDrag.sort_source=this.__findClosestSon(v.globalDrag.$source),v.globalDrag.sort_source.classList.add("cui-sortable-placeholder"),v.globalDrag.start_idx=this.get_child_number(v.globalDrag.sort_source),v.dom.addClass(this.element,"cui-sorting"),v.dom.initAnimatedClone(this.element)},Sortable.prototype.getCloneSourceForHelper=function(){return this.__findClosestSon(v.globalDrag.$source)},Sortable.prototype.__findClosestSon=function(A){var z;if((z=v.dom.parentsUntil(A,null,this.element))[z.length-1]===window)return null;switch(z.length){case 0:return null;case 1:return A;default:return z[z.length-2]}},Sortable.prototype.do_drag=function(A,z,L){var T,k,x;if(this.position_helper(A,z,L),x=this.__findClosestSon(z))return k=this.get_child_number(v.globalDrag.sort_source),T=this.get_child_number(x),this._allowSort(A,k,T)&&this.move_element(k,T),this},Sortable.prototype.init_drag=function(v,A){return Sortable.__super__.init_drag.call(this,v,this.getSortTarget(v.getTarget(),this._element))},Sortable.prototype.stop_drag=function(v){return Sortable.__super__.stop_drag.call(this,v),this.__end_drag(v,!0)},Sortable.prototype.end_drag=function(v){return Sortable.__super__.end_drag.call(this,v),this.__end_drag(v,!1)},Sortable.prototype.cleanup_drag=function(A){return Sortable.__super__.cleanup_drag.call(this,A),v.dom.removeClass(this.element,"cui-sorting"),v.globalDrag.sort_source.classList.remove("cui-sortable-placeholder"),v.dom.removeAnimatedClone(this.element)},Sortable.prototype.__end_drag=function(A,z){var L;L=this.get_child_number(v.globalDrag.sort_source),v.globalDrag.start_idx!==L&&(z?this.move_element(L,v.globalDrag.start_idx):this._sorted(A,v.globalDrag.start_idx,L))},Sortable}(v.Draggable)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Movable=function(z){function Movable(){return Movable.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Movable,z),Movable.cls="movable",Movable.prototype.initOpts=function(){return Movable.__super__.initOpts.call(this),this.addOpts({limitRect:{default:{},check:function(A){return v.util.isPlainObject(A)||A instanceof Function}},onPositioned:{check:Function},onPosition:{check:Function},start_drag:{check:Function},do_drag:{check:Function}}),this.removeOpt("helper")},Movable.prototype.readOpts=function(){return Movable.__super__.readOpts.call(this),this._helper=null},Movable.prototype.getLimitRect=function(){return v.util.isFunction(this._limitRect)?this._limitRect():this._limitRect},Movable.prototype.setElementCss=function(A){var z;return v.util.assert(v.util.isPlainObject(A),v.util.getObjectClass(this),"opts.position must return a PlainObject containing any of x, y, w, h",{pos:A}),z={},v.util.isEmpty(A.x)||(z.left=A.x),v.util.isEmpty(A.y)||(z.top=A.y),v.util.isEmpty(A.w)||(z.marginBoxWidth=A.w),v.util.isEmpty(A.h)||(z.marginBoxHeight=A.h),v.dom.setDimensions(this.element,z),"function"==typeof this._onPositioned?this._onPositioned(A):void 0},Movable.prototype.init_drag=function(A,z){if(!v.dom.closest(A.getTarget(),".cui-resizable-handle"))return Movable.__super__.init_drag.call(this,A,z)},Movable.prototype.before_drag=function(){var A;return A=v.dom.getDimensions(this.element),this.start={x:A.left||0,y:A.top||0,w:A.marginBoxWidth,h:A.marginBoxHeight},this},Movable.prototype.start_drag=function(v,A,z){return this._start_drag&&this._start_drag(v,A,z,this),this},Movable.prototype.do_drag=function(v,A,z){var L,T;return this._do_drag?(this._do_drag(v,A,z,this),this):(L={x:z.x+this.start.x,y:z.y+this.start.y,w:this.start.w,h:this.start.h},this._onPosition?(T=this._onPosition(L.x,L.y,this.start,z),L.x=T[0],L.y=T[1]):this.limitRect(L,this.start),this.setElementCss(L),this)},Movable.prototype.limitRect=function(A,z,L){return null==z&&(z={}),null==L&&(L=this.getLimitRect()),v.Draggable.limitRect(A,L,z)},Movable}(v.Draggable)}).call(this,z(0))},function(v,A,z){(function(v){var bind=function(v,A){return function(){return v.apply(A,arguments)}},A={}.hasOwnProperty;v.Resizable=function(z){function Resizable(){return this.getResizePos=bind(this.getResizePos,this),Resizable.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Resizable,z),Resizable.cls="resizable",Resizable.prototype.initOpts=function(){return Resizable.__super__.initOpts.call(this),this.removeOpt("selector")},Resizable.prototype.readOpts=function(){return Resizable.__super__.readOpts.call(this),this._selector=".cui-resizable-handle"},Resizable.prototype.init=function(){var A,z,L,T,k;for(Resizable.__super__.init.call(this),k=[],z=0,L=(T=["ne","nw","se","sw","s","n","e","w"]).length;z0&&(A+=" Modifiers: **"+v.join("+")+"**"),A},Event.prototype.stop=function(){return this.preventDefault(),this.stopPropagation(),this.stopImmediatePropagation(),!1},Event.require=function(A,z){var L,T,k;return v.util.isPlainObject(A)?(k=(T=v.Events.getEventType(A.type)).eventClass?T.eventClass:v.Event,v.util.mergeMap(A,T),delete A.eventClass,delete A.listenerClass,L=new k(A)):L=A,v.util.assert(L instanceof v.Event,""+z,"event needs to be PlainObject or instance of CUI.Event."),L},Event.createFromDOMEvent=function(A,z){var L,T;return T=v.Events.getEventType(A.type),z||(z=T.eventClass?T.eventClass:v.Event),(L=new z({type:A.type,bubble:A.bubbles,node:A.target})).setNativeEvent(A),L},Event}(v.Element)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.MouseEvent=function(z){function MouseEvent(){return MouseEvent.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(MouseEvent,z),MouseEvent.prototype.initOpts=function(){return MouseEvent.__super__.initOpts.call(this),this.addOpts({button:{check:function(v){return v>=0}},pageX:{check:function(v){return v>0}},pageY:{check:function(v){return v>0}},clientX:{check:function(v){return v>0}},clientY:{check:function(v){return v>0}}})},MouseEvent.prototype.setNativeEvent=function(v){var A,z,L,T,k;for(A=0,L=(k=["button","pageX","pageY","clientX","clientY"]).length;A=0&&(L="Num"+String.fromCharCode(A-48)),z.call([112,113,114,115,116,117,118,119,120,121,122,123],A)>=0)L="F"+String.fromCharCode(A-111);else switch(A){case 8:L="Backspace";break;case 9:L="Tab";break;case 13:L="Return";break;case 16:L="Shift";break;case 17:L="Ctrl";break;case 18:L="Alt";break;case 20:L="CapsLock";break;case 27:L="Esc";break;case 32:L="Space";break;case 33:L="PageUp";break;case 34:L="PageDown";break;case 37:L="Left";break;case 38:L="Up";break;case 39:L="Right";break;case 40:L="Down";break;case 46:L="Insert";break;case 46:L="Delete";break;case 110:L="Num.";break;case 144:L="Numlock";break;case 111:L="Num/";break;case 106:L="Num*";break;case 107:L="Num+";break;default:L=String.fromCharCode(A)}return L}},KeyboardEvent.prototype.key=function(){return this.getNativeEvent().key},KeyboardEvent.prototype.dump=function(){var v,A;return A=this.__cls+": **"+this.getType()+"**",A+=" Key: **"+this.key()+"** KeyCode: **"+this.keyCode()+"**",(v=this.getKeyboard()).length>0&&(A=A+" Keyboard: **"+v+"**"),A},KeyboardEvent.__initKeyboardListener=function(){var A;return A=function(v){switch(v){case 16:case 17:case 18:case 91:case 93:return!0;default:return!1}},v.KeyboardEvent.__keys=[],v.Events.listen({type:["keydown"],node:window,capture:!0,call:function(z){A(z.keyCode())||v.util.pushOntoArray(z.getKeyboardKey(),v.KeyboardEvent.__keys)}}),v.Events.listen({type:["keyup"],node:window,capture:!0,call:function(z){A(z.keyCode())||v.util.removeFromArray(z.getKeyboardKey(),v.KeyboardEvent.__keys)}}),v.Events.listen({type:["blur"],node:window,capture:!0,call:function(A){return v.KeyboardEvent.__keys=[]}})},KeyboardEvent}(v.Event),v.ready((function(){return v.KeyboardEvent.__initKeyboardListener()}))}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.TouchEvent=function(v){function TouchEvent(){return TouchEvent.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(TouchEvent,v),TouchEvent.prototype.initOpts=function(){return TouchEvent.__super__.initOpts.call(this),this.addOpts({button:{check:function(v){return v>=0}},pageX:{check:function(v){return v>0}},pageY:{check:function(v){return v>0}},clientX:{check:function(v){return v>0}},clientY:{check:function(v){return v>0}}})},TouchEvent.prototype.setNativeEvent=function(v){var A,z,L,T,k;for(A=0,L=(k=["button","pageX","pageY","clientX","clientY"]).length;A=0));x++);else P=A.type,E=z.call(this.__types,P)>=0;return E&&A.call&&(k=!0,E=A.call===this._call),E&&A.instance&&(k=!0,E=A.instance===this.getInstance()),v.util.assert(k,"Listener.matchesFilter","Filter did not filter anything, make sure you have 'node', 'type', 'call', or 'instance' set.",{filter:A}),E},Listener.require=function(A,z){var L,T,k,x,S,E,Y;if(v.util.isPlainObject(A)){for(S=null,T=0,k=(Y=A.type instanceof Array?A.type:[A.type]).length;T=0)}}}),T=[],k=[],z=v.dom.getNode(S.node),L=new v.Deferred,k.push(v.Events.listen({type:S.type,node:z,call:function(){L.resolve()}})),T.push(L),(x=new v.Deferred).always((function(){var v,A;for(v=0,A=k.length;v=0&&v.setTimeout({ms:S.maxWait,call:function(){var v,A;for(v=0,A=T.length;v0){for(U=v.dom.parents(V),nt=!1,Y=0,F=st.length;Y0,"CUI.Events.registerEvent","event.type must be String.",{event:A}),q=this,Y=function(z){var L;return(L=v.util.copyObject(A,!0)).type=z,q.registerEvent(L,!1)},v.util.isArray(A.type))for(L=0,k=(S=A.type).length;L=1},mandatory:!0},call:{check:Function,mandatory:!0},node:{mandatory:!0,check:function(A){return v.dom.isNode(A)}}})},MouseIsStill.prototype.start=function(){var A;this.__event=v.Events.listen({type:"mousemove",node:this._node,instance:this,call:(A=this,function(z){return v.clearTimeout(A.__timeout),A.__timeout=v.setTimeout({ms:A._ms,call:function(){return A.stop(),A._call(z)}})})})},MouseIsStill.prototype.stop=function(){this.__timeout&&(v.clearTimeout(this.__timeout),this.__timeout=null),this.__event&&(v.Events.ignore(this.__event),this.__event=null)},MouseIsStill.prototype.destroy=function(){this.stop(),v.Events.ignore({instance:this}),MouseIsStill.__super__.destroy.call(this)},MouseIsStill}(v.Element)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.DragoverScrollEvent=function(z){function DragoverScrollEvent(){return DragoverScrollEvent.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(DragoverScrollEvent,z),DragoverScrollEvent.prototype.initOpts=function(){return DragoverScrollEvent.__super__.initOpts.call(this),this.addOpts({count:{mandatory:!0,check:function(A){return v.util.isPosInt(A)}},originalEvent:{mandatory:!0,check:v.Event}})},DragoverScrollEvent.prototype.getCount=function(){return this._count},DragoverScrollEvent.prototype.getOriginalEvent=function(){return this._originalEvent},DragoverScrollEvent}(v.Event)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.DOMElement=function(z){function DOMElement(){return DOMElement.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(DOMElement,z),DOMElement.defaults={qa:!1},DOMElement.prototype.initOpts=function(){return DOMElement.__super__.initOpts.call(this),this.addOpts({class:{default:"",check:String},id:{check:String},qa:{check:String},attr:{check:"PlainObject"}})},DOMElement.prototype.registerTemplate=function(A,z){return null==z&&(z=!0),v.util.assert(A instanceof v.Template,v.util.getObjectClass(this)+".registerDOMElement","template must be instance of Template but is "+v.util.getObjectClass(A)+".",{template:A}),this.__template&&(console.warn(v.util.getObjectClass(this)+".registerDO MElement","Already called before, destroying existing template",{template:this.__template}),this.__template.destroy()),this.__template=A,this.registerDOMElement(this.__template.DOM,z)},DOMElement.prototype.getDOMElementClasses=function(){return"cui-"+v.util.toDash(this.__cls)},DOMElement.prototype.registerDOMElement=function(A,z){return this.DOM=A,null==z&&(z=!0),z&&v.dom.addClass(this.DOM,this.getDOMElementClasses()),this._attr&&v.dom.setAttributeMap(this.DOM,this._attr),this._id&&v.dom.setAttribute(this.DOM,"id",this._id),this._class&&v.dom.addClass(this.DOM,this._class),this._qa&&v.DOMElement.defaults.qa&&v.dom.setAttribute(this.DOM,"data-qa",this._qa),v.dom.data(this.DOM,"element",this),this},DOMElement.prototype.getElementForLayer=function(){return this.DOM},DOMElement.prototype.unregisterDOMElement=function(){return v.dom.removeClass(this.DOM,this.getDOMElementClasses()),v.dom.removeAttribute(this.DOM,"id"),this._class&&v.dom.removeClass(this.DOM,this._class),v.dom.removeData(this.DOM,"element"),delete this.DOM,this},DOMElement.prototype.__assertDOMElement=function(A){return v.util.assert(this.DOM,this.__cls+"."+A,'registerDOMElement needs to be called before "'+A+'" is supported.')},DOMElement.prototype.__assertTemplateElement=function(A){return v.util.assert(this.__template,this.__cls+"."+A,'registerTemplateElement needs to be called before "'+A+'" is supported.')},DOMElement.prototype.addClass=function(A,z){return v.util.assert(1===arguments.length||2===arguments.length,"addClass","Only 'className' and 'key' parameters are allowed."),z?(this.__assertTemplateElement("addClass"),this.__template.addClass.call(this.__template,A,z,this)):(this.__assertDOMElement("addClass"),v.dom.addClass(this.DOM,A))},DOMElement.prototype.setAria=function(A,z){return this.__assertDOMElement("setAria"),v.dom.setAria(this.DOM,A,z)},DOMElement.prototype.removeClass=function(A,z){return v.util.assert(1===arguments.length||2===arguments.length,"removeClass","Only 'className' and 'key' parameters are allowed."),z?(this.__assertTemplateElement("removeClass"),this.__template.removeClass.call(this.__template,A,z,this)):(this.__assertDOMElement("removeClass"),v.dom.removeClass(this.DOM,A))},DOMElement.prototype.hide=function(A){return v.util.isEmpty(A)?(this.__assertDOMElement("hide"),v.dom.hideElement(this.DOM)):(this.__assertTemplateElement("hide"),this.__template.hide.call(this.__template,A))},DOMElement.prototype.show=function(A){return v.util.isEmpty(A)?(this.__assertDOMElement("show"),v.dom.showElement(this.DOM)):(this.__assertTemplateElement("show"),this.__template.show.call(this.__template,A))},DOMElement.prototype.showWaitBlock=function(){return this.__assertDOMElement("showWaitBlock"),this.__wb=new v.WaitBlock({element:this.DOM}).show(),this},DOMElement.prototype.hideWaitBlock=function(){return this.__wb.destroy(),delete this.__wb,this},DOMElement.prototype.hasClass=function(A){return v.util.assert(1===arguments.length,"CUI.dom.hasClass","Only one parameter allowed."),this.__assertDOMElement("hasClass"),v.dom.hasClass(this.DOM,A)},DOMElement.prototype.isDestroyed=function(v){var A;return null!=(A=this.__template)?A.isDestroyed.call(this.__template,v):void 0},DOMElement.prototype.empty=function(v){return this.__assertTemplateElement("empty"),this.__template.empty.call(this.__template,v)},DOMElement.prototype.replace=function(v,A){return this.__assertTemplateElement("replace"),this.__template.replace.call(this.__template,v,A,this)},DOMElement.prototype.append=function(v,A){return this.__assertTemplateElement("append"),this.__template.append.call(this.__template,v,A,this)},DOMElement.prototype.prepend=function(v,A){return this.__assertTemplateElement("prepend"),this.__template.prepend.call(this.__template,v,A,this)},DOMElement.prototype.text=function(v,A){return this.__assertTemplateElement("text"),this.__template.text.call(this.__template,v,A,this)},DOMElement.prototype.get=function(v){return this.__assertTemplateElement("get"),this.__template.get.call(this.__template,v,this)},DOMElement.prototype.getFlexHandle=function(v,A){return this.__assertTemplateElement("getFlexHandle"),this.__template.getFlexHandle.call(this.__template,v,A)},DOMElement.prototype.destroy=function(){var A;return DOMElement.__super__.destroy.call(this),this.__template?null!=(A=this.__template)&&A.destroy():this.DOM&&v.dom.remove(this.DOM),this},DOMElement}(v.Element)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.CSSLoader=function(z){function CSSLoader(){return CSSLoader.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(CSSLoader,z),CSSLoader.prototype.readOpts=function(){CSSLoader.__super__.readOpts.call(this),this._cssName?this.__cssName=this._cssName:this.__cssName="cui-css-"+this.getUniqueId()},CSSLoader.prototype.initOpts=function(){return CSSLoader.__super__.initOpts.call(this),this.addOpts({cssName:{check:String}})},CSSLoader.prototype.__getCSSNodes=function(){return v.dom.matchSelector(document.documentElement,'link[name="'+this.__cssName+'"]')},CSSLoader.prototype.getActiveCSS=function(){var A,z,L,T;for(z=0,L=(T=this.__getCSSNodes()).length;z0?v.dom.insertAfter(Y[Y.length-1],L):document.head.appendChild(L),k.promise())},CSSLoader}(v.Element)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Template=function(z){function Template(A){var z;Template.__super__.constructor.call(this,A),z=v.Template.nodeByName[this._name],v.util.assert(z,"CUI.Template",this._name+" not found. Make sure to call Template.loadFile(...)."),this.DOM=z.cloneNode(!0),this._class&&v.dom.addClass(this.DOM,this._class),this._attr&&v.dom.setAttributeMap(this.DOM,this._attr),this.map=this.getElMap(this._map),this.__updateTemplateEmpty(),this._init_flex_handles&&this.initFlexHandles()}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Template,z),Template.prototype.initOpts=function(){return Template.__super__.initOpts.call(this),this.addOpts({name:{mandatory:!0,check:String},map_prefix:{check:String},init_flex_handles:{mandatory:!0,default:!1,check:Boolean},map:{type:"PlainObject",default:{}},class:{check:String},attr:{check:"PlainObject"}}),this},Template.prototype.initFlexHandles=function(A){var z,L,T,k,x,S,E,Y,P,q;for(null==A&&(A={}),this.__flexHandles={},k=0,S=(Y=v.dom.matchSelector(this.DOM,"[data-cui-flex-handle]")).length;k1?(console.debug(T,P,"found more than once",k,this.DOM),E.push("* "+T+": found more than once ("+Y+")"),x++):(E.push("+ "+T+": found"),L[T]=k[0],k[0].removeAttribute("data-slot"),function(v){return function(A){return L[A].empty=function(){return v.empty(A),L[A]},L[A].append=function(z){return v.append(z,A),L[A]},L[A].prepend=function(z){return v.prepend(z,A),L[A]}}}(this)(T)));return x&&v.util.assert(!1,'Not all required elements were found for Template:\n\n"'+this._name+'"\n\n'+E.join("\n")),L},Template.prototype.destroy=function(){return v.dom.remove(this.DOM),delete this.map,Template.__super__.destroy.call(this)},Template.prototype.addClass=function(A,z){return z?(v.util.assert(this.map[z],this.__cls+".addClass",'Key "'+z+'" not found in map. Template: "'+this._name+'".',{map:this.map,DOM:this.DOM}),v.dom.addClass(this.map[z],A)):v.dom.addClass(this.DOM,A)},Template.prototype.removeClass=function(A,z){return z?(v.util.assert(this.map[z],this.__cls+".removeClass",'Key "'+z+'" not found in map. Template: "'+this._name+'".',{map:this.map,DOM:this.DOM}),v.dom.removeClass(this.map[z],A)):v.dom.removeClass(this.DOM,A)},Template.prototype.hasClass=function(A,z){return z?(v.util.assert(this.map[z],this.__cls+".hasClass",'Key "'+z+'" not found in map. Template: "'+this._name+'".',{map:this.map,DOM:this.DOM}),v.dom.hasClass(this.map[z],A)):v.dom.hasClass(this.DOM,A)},Template.prototype.has=function(v){return!!this.map[v]},Template.prototype.hide=function(A){return A?v.dom.hideElement(this.map[A]):v.dom.hideElement(this.DOM)},Template.prototype.show=function(A){return A?v.dom.showElement(this.map[A]):v.dom.showElement(this.DOM)},Template.prototype.__updateTemplateEmpty=function(){var A,z;if(v.util.isEmptyObject(this.map))A=this.isEmpty();else for(z in A=!0,this.map)if(!this.isEmpty(z)){A=!1;break}A?v.dom.addClass(this.DOM,"cui-template-empty"):v.dom.removeClass(this.DOM,"cui-template-empty")},Template.prototype.replace=function(A,z,L){var T;return v.util.assert(this.map,"Template["+this._name+"].replace ["+this.getUniqueId()+"]","Already destroyed"),z&&v.util.assert(this.map[z],this.__cls+".replace",'Key "'+z+'" not found in map. Template: "'+this._name+'".',{map:this.map,DOM:this.DOM}),this.__empty(z),T=this.__append(A,z,L),this.__updateTemplateEmpty(),T},Template.prototype.text=function(A,z,L){v.util.assert(v.util.isString(A),this.__cls+".text","Value must be String",{value:A,key:z,element:L}),z?this.map[z].textContent=A:this.DOM.textContent=A,this.__updateTemplateEmpty()},Template.prototype.prepend=function(v,A,z){var L;return L=this.__append(v,A,z,!0),this.__updateTemplateEmpty(),L},Template.prototype.append=function(v,A,z){var L;return L=this.__append(v,A,z,!1),this.__updateTemplateEmpty(),L},Template.prototype.empty=function(v){var A;return A=this.__empty(v),this.__updateTemplateEmpty(),A},Template.prototype.__empty=function(A){if(v.util.assert(this.map,"Template["+this._name+"].empty ["+this.getUniqueId()+"]","Already destroyed",{template:this,name:this._name}),this.isEmpty(A))return A?this.map[A]:this.DOM;if(A)return v.util.assert(this.map[A],this.__cls+".empty",'Key "'+A+'" not found in map. Template: "'+this._name+'".',{map:this.map}),v.dom.empty(this.map[A]),this.map[A];if(v.util.isEmptyObject(this.map))v.dom.empty(this.DOM);else for(A in this.map)v.dom.empty(this.map[A]);return this.DOM},Template.prototype.__append=function(A,z,L,T){var k,x,S,E,Y,P;for(S=T?"prepend":"append",v.util.assert(this.map,"Template["+this._name+"]."+S+" ["+this.getUniqueId()+"]","Already destroyed"),z&&v.util.assert(this.map[z],this.__cls+"."+S,'Key "'+z+'" not found in map. Template: "'+this._name+'".',{map:this.map}),v.util.isFunction(A)&&(A=A(L)),v.util.isArray(A)||(A=[A]),x=[],E=0,Y=A.length;E0&&v.dom[S](P,x),P},Template.prototype.get=function(A){return v.util.assert(this.map[A],this.__cls+".get",'Key "'+A+'" not found in map. Template: "'+this._name+'".',{map:this.map,DOM:this.DOM}),this.map[A]},Template.prototype.isEmpty=function(A){return A?(v.util.assert(this.map[A],this.__cls+".isEmpty",'Key "'+A+'" not found in map. Template: "'+this._name+'".',{map:this.map}),!this.map[A].firstChild):!this.DOM.firstChild},Template.prototype.removeEmptySlots=function(){var A,z,L;for(A in L=this.map)(z=L[A]).firstChild||v.dom.remove(z);return this},Template.nodeByName={},Template.loadTemplateFile=function(v){return this.loadFile(v,!0)},Template.loadTemplateText=function(v){return this.__appendContent(v,!0)},Template.loadText=function(v){return this.__appendContent(v,!1)},Template.loadFile=function(A,z){var L,T;return null==z&&(z=!1),L=A.match("^(https://|http://|/)")?A:v.getPathToScript()+A,new v.XHR({url:L,responseType:"text"}).start().done((T=this,function(v){T.__appendContent(v,z)})).fail((function(v){return console.error('Template.loadFile: Unable to load filename: "'+A+'", see Console for more details. You can however, output easydbui.html manually before loading easydbui.js.',v)}))},Template.load=function(A){var z,L,T,k,x,S,E,Y,P,q;for(null==A&&(A=document.documentElement),L=0,k=0,S=(P=v.dom.matchSelector(A,".cui-tmpl,[data-template]")).length;k0&&(document.body.appendChild(T),console.warn("Template.loadFile:",filename,"contains extra content.",T)),0===L?console.warn("Template.loadFile:",filename,"contains no Templates."):void 0):document.body.appendChild(T)},Template}(v.Element)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.FlexHandle=function(z){function FlexHandle(A){var z,L,T,k,x;for(FlexHandle.__super__.constructor.call(this,A),this.__pane=null,k=T=0,x=(L=this._element.parentNode.children).length;Tthis.__pane_idx?this.__element_idx0&&(this.__adjacent_pane=L[this.__element_idx-1]),this.__closed=this._closed,this.__hidden=this._hidden,this.__stretched=null,this.__size=null,v.util.assert(this.__pane,"new "+this.__cls,'pane "'+this._pane+'" not found in parent element of cui-flex-handle element.',{opts:this.opts,children:L}),v.dom.data(this.__pane,"flexHandle",this),v.dom.setAttribute(this.__pane,"flex-handled-pane",this._name)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(FlexHandle,z),FlexHandle.prototype.readOpts=function(){var A,z,L;FlexHandle.__super__.readOpts.call(this),"horizontal"===(A=this._direction)||"row"===A?this.__direction="row":"vertical"!==(z=this._direction)&&"column"!==z||(this.__direction="column"),v.util.assert("row"===(L=this.__direction)||"column"===L,"new "+this.__cls,"opts.direction needs to be set",{opts:this.opts,element:this._element}),this._label&&this.addLabel(this._label)},FlexHandle.prototype.initOpts=function(){return FlexHandle.__super__.initOpts.call(this),this.addOpts({element:{mandatory:!0,check:function(A){return v.util.isElement(A)}},pane:{mandatory:!0,check:String},name:{mandatory:!0,check:String},closed:{check:Boolean},closable:{mandatory:!0,default:!1,check:Boolean},open_button_icon:{mandatory:!1,check:function(A){return v.util.isString(A)||A instanceof v.Icon}},label:{check:function(A){return A instanceof v.Label||v.util.isPlainObject(A)}},hidden:{check:Boolean},direction:{check:["horizontal","vertical","row","column"]},manage_state:{default:!0,check:Boolean},state_name:{check:String},class:{check:String},onResize:{check:Function},maxValue:{check:function(v){return v>0}}})},FlexHandle.prototype.init=function(){var A,z,L,T;if(!this.isDestroyed())return v.dom.addClass(this._element,"cui-flex-handle cui-flex-handle-"+this.__direction+" cui-flex-handle-"+this._name),this.__closed&&this.close(),this.__hidden&&this.hide(),this._class&&v.dom.addClass(this._element,this._class),"row"===this.__direction?(A="x",this.__css_value="Width"):(A="y",this.__css_value="Height"),this._open_button_icon?this._element.classList.add("cui-flex-handle-with-button-icon"):(v.Events.listen({type:"dblclick",node:this._element,call:(T=this,function(v){null===T.__size?T.isClosed()?T.open():T._closable&&T.close():T.resetSize(),T.storeState()})}),v.Events.listen({type:["click"],node:this._element,call:function(v){return function(A){v.__label&&v.isClosed()&&(v.open(),v.storeState())}}(this)})),z=null,new v.Draggable({element:this._element,axis:A,support_touch:!0,create:function(v){return function(){if(v.isClosed())return!1}}(this),dragstart:function(L){return function(T,k){var x,S,E,Y,P;return E=L.__pane_idx0?ot.slice(0,Y).reduce((function(v,A){return v+A})):0;break;case"right":case"bottom":it=Y+10&&v.Events.trigger({type:"viewport-resize"}),this},Layout.all=function(){return v.scheduleCallback({call:v.Layout.__all})},Layout}(v.DOMElement),v.ready((function(){return v.Events.listen({type:["viewport-resize","content-resize"],call:function(A,z){return z.FlexHandle?v.Layout.__all():v.Layout.all()}})}))}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty,L=[].indexOf||function(v){for(var A=0,z=this.length;A=0&&A.left>=0}},fill_space:{default:"auto",mandatory:!0,check:v.Layer.FILL_SPACE_CHECK_ARRAY},check_for_element:{default:!1,check:Boolean},show_ms:{default:700,check:function(v){return v>0}},visible:{check:Boolean},hide_ms:{default:100,check:function(v){return v>0}}}),this},Layer.prototype.readOpts=function(){return Layer.__super__.readOpts.call(this),this.__fill_space=this._fill_space,this},Layer.prototype.setVisible=function(A){return null==A&&(A=!0),A?v.dom.setStyleOne(this.__layer_root.DOM,"visibility",""):v.dom.setStyleOne(this.__layer_root.DOM,"visibility","hidden")},Layer.prototype.__allPlacements=["s","e","w","ws","wn","n","se","ne","es","en","nw","sw","c"],Layer.prototype.knownPlacements=["s","e","w","ws","wn","n","se","ne","es","en","nw","sw","c"],Layer.prototype.__setElement=function(A){return A instanceof v.DOMElement?this.__element=A.getElementForLayer():A.DOM?this.__element=A.DOM:this.__element=A,v.util.assert(!v.dom.closest(this.__element,".cui-tmpl"),"Layer.__setElement","element cannot be inside a Template.",{element:A}),v.util.assert(this.__element instanceof HTMLElement,"Layer.__setElement","element needs to be HTMLElement.",{element:A}),this.__element},Layer.prototype.__getOriginalElement=function(){var v;return(null!=(v=this._element)?v.DOM:void 0)||this._element||null},Layer.prototype.autoSize=function(){return this.position()},Layer.prototype.position=function(A){var z,T,k,x,S,E,Y,P,q,F,H,X,V,U,J,tt,et,it,ot,nt,rt,st,at,ct,lt,ut,pt,ht,dt,_t,ft,mt,Mt,gt,yt,bt,vt,wt,At,Ot,zt,Lt,Tt,Dt,Ct,xt,St,Nt,Et,Bt,Rt,Yt,It,Pt,Wt,jt,Gt,Zt,Kt,$t,Qt,te,ee,ie;if(!this.isShown())return this;if("content-resize"!==(null!=A?A.getType():void 0)&&(this.__currentPlacement=null),(E=v.dom.getDimensions(document.body)).isPositioned="relative"===(Ct=E.computedStyle.position)||"fixed"===Ct||"absolute"===Ct,F={width:window.innerWidth-v.dom.getLayerSidebarWidth(),height:window.innerHeight},U=function(v){return{n:"s",s:"n",e:"w",w:"e"}[v]},V=function(v){return"cui-layer-pointer--"+v},this.__pointer)for(v.dom.setStyle(this.__pointer,{top:0,left:0,display:"",margin:""}),J=0,st=(xt=["w","s","e","n"]).length;J$t.top&&($t.top=$t.window_top),$t.window_left>$t.left&&($t.left=$t.window_left),$t.window_bottom<$t.bottom&&($t.bottom=$t.window_bottom),$t.window_right<$t.right&&($t.right=$t.window_right),$t.width=$t.right-$t.left,$t.height=$t.bottom-$t.top,($t.width<10||$t.height<10)&&delete Qt[wt]);for(wt in Qt){switch(ot=($t=Qt[wt]).layer_pos={},zt=$t.pointer_pos={},$t.cuts=0,this.__fill_space){case"both":ot.width=$t.width,ot.height=$t.height;break;case"vertical":ot.height=$t.height,ot.width=P.borderBoxWidth;break;case"horizontal":ot.width=$t.width,ot.height=P.borderBoxHeight;break;default:ot.width=P.borderBoxWidth,ot.height=P.borderBoxHeight}switch(ot.width>$t.width&&(ot.width=$t.width,$t.cuts++),ot.height>$t.height&&(ot.height=$t.height,$t.cuts++),$t.align_horizontal){case"left":ot.left=$t.left;break;case"right":ot.left=$t.right-ot.width;break;case"center":ot.left=Y.viewportCenterLeft-ot.width/2}switch($t.align_vertical){case"top":ot.top=$t.top;break;case"bottom":ot.top=$t.bottom-ot.height;break;case"center":ot.top=Y.viewportCenterTop-ot.height/2}if($t.dim_pointer){switch($t.pointer_align_horizontal){case"left":zt.left=Y.viewportRight+$t.dim_pointer.marginLeft;break;case"right":zt.left=Y.viewportLeft-$t.dim_pointer.borderBoxWidth-$t.dim_pointer.marginLeft;break;case"center":zt.left=Y.viewportCenterLeft-$t.dim_pointer.borderBoxWidth/2}switch($t.pointer_align_vertical){case"top":zt.top=Y.viewportBottom+$t.dim_pointer.marginTop;break;case"bottom":zt.top=Y.viewportTop-$t.dim_pointer.marginBoxHeight+$t.dim_pointer.marginTop;break;case"center":zt.top=Y.viewportCenterTop-$t.dim_pointer.borderBoxHeight/2}zt.width=$t.dim_pointer.borderBoxWidth,zt.height=$t.dim_pointer.borderBoxHeight,zt.direction=$t.dim_pointer.direction}if(ot.top<$t.top&&(ot.top=$t.top,$t.cuts++),ot.left<$t.left&&(ot.left=$t.left,$t.cuts++),(gt=ot.top+ot.height-$t.bottom)>0&&(ot.top=ot.top-gt),(bt=ot.left+ot.width-$t.right)>0&&(ot.left=ot.left-bt),$t.overlap_height=0,$t.overlap_width=0,this.__pointer||this._show_at_position){if((yt=P.borderBoxHeight-ot.height)>0)switch($t.overlap_align){case"bottom":$t.overlap_height=Math.min(ot.top-$t.window_top,yt),ot.top=ot.top-$t.overlap_height,ot.height=ot.height+$t.overlap_height;break;case"top":$t.overlap_height=Math.min($t.window_bottom-ot.top-ot.height,yt),ot.height=ot.height+$t.overlap_height}if((vt=P.borderBoxWidth-ot.width)>0)switch($t.overlap_align){case"right":$t.overlap_width=Math.min(ot.left-$t.window_left,vt),ot.left=ot.left-$t.overlap_width,ot.width=ot.width+$t.overlap_width;break;case"left":$t.overlap_height=Math.min($t.window_right-ot.right,vt),ot.width=ot.width+$t.overlap_width}}if(this.__pointer&&$t.dim_pointer)switch(rt=$t.layer_pos.left+$t.layer_pos.width,nt=$t.layer_pos.top+$t.layer_pos.height,Tt=$t.pointer_pos.left+$t.pointer_pos.width,Lt=$t.pointer_pos.top+$t.pointer_pos.height,$t.pointer_pos.direction){case"n":case"s":(Dt=$t.pointer_pos.left-$t.layer_pos.left-$t.dim_pointer.marginLeft)<0&&(Kt=$t.layer_pos.left-$t.window_left,$t.push_left=Math.min(Kt,-Dt),$t.layer_pos.left=$t.layer_pos.left-$t.push_left),(Dt=rt-Tt-$t.dim_pointer.marginRight)<0&&(Kt=$t.window_right-rt,$t.push_right=Math.min(Kt,-Dt),$t.layer_pos.left=$t.layer_pos.left+$t.push_right);break;case"e":case"w":(Dt=$t.pointer_pos.top-$t.layer_pos.top-$t.dim_pointer.marginTop)<0&&(Kt=$t.layer_pos.top-$t.window_top,$t.push_top=Math.min(Kt,-Dt),$t.layer_pos.top=$t.layer_pos.top-$t.push_top),(Dt=nt-Lt-$t.dim_pointer.marginBottom)<0&&(Kt=$t.window_bottom-nt,$t.push_bottom=Math.min(Kt,-Dt),$t.layer_pos.top=$t.layer_pos.top+$t.push_bottom)}this._onPosition&&"function"==typeof this._onPosition&&this._onPosition(this,$t),$t.layer_pos.estate=$t.layer_pos.width*$t.layer_pos.height,$t.layer_pos.aspect_ratio=($t.layer_pos.width||1)/($t.layer_pos.height||1),$t.dim_layer.aspect_ratio=($t.dim_layer.borderBoxWidth||1)/($t.dim_layer.borderBoxHeight||1),ee=z.length-v.util.idxInArray(wt,z),te===wt&&(ee=z.length+1),$t.ranking=10*ee+1-Math.abs($t.layer_pos.aspect_ratio-$t.dim_layer.aspect_ratio)+$t.layer_pos.estate}for(wt in T=[],Qt)$t=Qt[wt],T.push(wt);if(0===T.length)return this.hide(),void console.warn("Layer.position","No available placements found.");for(T.sort((function(A,z){var L;return L=function(v){return Qt[v].ranking},v.util.compareIndex(L(A),L(z))})),T.reverse(),Yt=this.__currentPlacement,L.call(T,Yt)<0&&(this.__currentPlacement=T[0]),(null!=A?A.hasModifierKey():void 0)&&(console.debug("Layer.position",this,this.opts),console.debug("layer",P),console.debug("element",Y),console.debug("pointer",q),console.debug("window",F),console.debug("placements",this.__currentPlacement,Qt),ie=this,Gt=function(A){var z,L,T,k,x;if(ie.__removeDebugDivs(),z=Qt[A],console.info("Layer: Placement",A,z),ie.__dbg_div1=v.dom.element("DIV"),ie.__dbg_div2=v.dom.element("DIV"),ie.__dbg_div3=v.dom.element("DIV"),T={position:"absolute",zIndex:2,border:"2px solid #ff0032",backgroundColor:"rgba(255, 0, 0, 0.4)",top:z.top,left:z.left,width:z.width,height:z.height},v.dom.setStyle(ie.__dbg_div1,T),k={position:"absolute",zIndex:2,border:"2px solid #00ff32",backgroundColor:"rgba(0, 255, 0, 0.4)",top:z.layer_pos.top,left:z.layer_pos.left,width:z.layer_pos.width,height:z.layer_pos.height,alignItems:"center",justifyContent:"center",fontSize:40,color:"rgb(0,255,50)"},(L=v.dom.element("SPAN")).textContent=A,ie.__dbg_div2.appendChild(L),v.dom.setStyle(ie.__dbg_div2,k),x={position:"absolute",zIndex:2,border:"2px solid #0032ff",backgroundColor:"rgba(0, 0, 255, 0.4)",top:z.pointer_pos.top,left:z.pointer_pos.left,width:z.pointer_pos.width,height:z.pointer_pos.height},v.dom.setStyle(ie.__dbg_div3,x),ie.__layer_root.DOM.appendChild(ie.__dbg_div1),ie.__layer_root.DOM.appendChild(ie.__dbg_div2),ie.__pointer)return ie.__layer_root.DOM.appendChild(ie.__dbg_div3)},S=0,dt=v.Events.listen({node:document,type:"keyup",call:function(v){return function(A,z){var L;if(32===A.keyCode())for(;;){if((S+=1)===v.knownPlacements.length)return v.__removeDebugDivs(),void dt.destroy();if(L=v.knownPlacements[S],Qt[L])return void Gt(L);console.warn("Placement",L,"is unavailable.")}}}(this)})),($t=Qt[this.__currentPlacement]).layer_pos.width<10||$t.layer_pos.height,ft=this._element&&this._use_element_width_as_min_width?Y.borderBoxWidth:void 0,v.dom.setAttribute(this.__layer_root.DOM,"cui-placement",wt),v.dom.setAttribute(this.__layer_root.DOM,"cui-fill-space",this.__fill_space),Wt={top:$t.layer_pos.top,left:$t.layer_pos.left,minWidth:ft,margin:0},P.computedStyle.maxWidth&&"none"!==P.computedStyle.maxWidth||(Wt.maxWidth=$t.width+$t.overlap_width),P.computedStyle.maxHeight&&"none"!==P.computedStyle.maxHeight||(Wt.maxHeight=$t.height+$t.overlap_height),"c"===wt||((null!=(It=this.__layer_root.DOM.previousElementSibling)?It.hasAttribute("cui-layer-fixed"):void 0)||!1)?(this.__layer_root.DOM.setAttribute("cui-layer-fixed",""),Wt.top=$t.layer_pos.top,Wt.left=$t.layer_pos.left):(this.__layer_root.DOM.removeAttribute("cui-layer-fixed"),jt={top:x,left:k,bottom:0,right:0},E.isPositioned&&(jt.top-=E.marginTop+E.borderTopWidth,jt.left-=E.marginLeft+E.borderLeftWidth,jt.bottom-=E.marginBottom+E.borderBottomWidth,jt.right-=E.marginRight+E.borderRightWidth),v.dom.setStyle(this.__layer_root.DOM,jt)),Wt.width=Math.ceil($t.layer_pos.width),Wt.height=Math.ceil($t.layer_pos.height),v.browser.ie&&(Zt=this.__layer_root.DOM.previousElementSibling,v.dom.remove(this.__layer_root)),v.dom.setStyle(this.__layer.DOM,Wt),this.__pointer&&($t.dim_pointer?(v.dom.setStyle(this.__pointer,{top:$t.pointer_pos.top,left:$t.pointer_pos.left,margin:0}),v.dom.addClass(this.__pointer,V($t.pointer_pos.direction)),v.dom.addClass(this.__layer,"has-"+V($t.pointer_pos.direction))):v.dom.setStyle(this.__pointer,{display:"none"})),this.__backdrop_crop&&(v.dom.setStyle(this.__backdrop_crop,{top:$t.layer_pos.top,left:$t.layer_pos.left,width:$t.layer_pos.width,height:$t.layer_pos.height}),v.dom.setStyle(this.__backdrop_crop.firstChild,{width:F.width,height:F.height,top:-$t.layer_pos.top,left:-$t.layer_pos.left})),v.browser.ie&&v.dom.insertAfter(Zt,this.__layer_root.DOM),Mt=0,ht=(Pt=v.dom.matchSelector(this.__layer.DOM,"*")).length;Mt .cui-layer-root")).length,L=z=0,k=T.length;z0||(this.__focused_on_show=!1),(this.__focused_on_show||this.forceFocusOnShow())&&this.DOM.focus(),this},Layer.prototype.forceFocusOnShow=function(){return!1},Layer.prototype.focusOnHide=function(A){var z;return this.__element?((A===v.KeyboardEvent||this.__focused_on_show)&&null!=(z=v.dom.findElement(this.__element,"[tabindex]"))&&z.focus(),this):this},Layer.prototype.getElement=function(){return this.__element},Layer.prototype.isShown=function(){return this.__shown},Layer.prototype.destroy=function(){var A,z,L;return this.__shown&&this.hide(),Layer.__super__.destroy.call(this),null!=(A=this.__layer)&&A.destroy(),null!=(z=this.__layer_root)&&z.destroy(),this.__layer=null,this.__layer_root=null,v.dom.remove(this.__pointer),this.__pointer=null,null!=(L=this.__backdrop)&&L.destroy(),this.__backdrop=null},Layer.prototype.setFillSpace=function(A){return v.util.assert(L.call(Layer.FILL_SPACE_CHECK_ARRAY,A)>=0,"Layer.setFillSpace","Parameter fillSpace should be: "+Layer.FILL_SPACE_CHECK_ARRAY.join(""),{fillSpace:A}),this.__fill_space=A,this.position(),this},Layer}(v.DOMElement),v.ready((function(){return v.Events.listen({type:["mousedown","touchend"],capture:!0,node:document.body,call:function(A,z){var L,T,k,x,S,E;for(S=v.dom.find("body > .cui-layer-root, body > .cui-pane-fill-screen-is-on, body > .cui-layer-prevent-click-thru"),E=A.getTarget(),T=S.length-1;T>=0;T+=-1){if(x=S[T],!v.dom.hasClass(x,"cui-layer-backdrop-policy-click-thru"))return;if(v.dom.hasClass(x,"cui-layer-sidebar"))return;if(v.dom.closest(E,x))return;(L=(k=v.dom.data(v.dom.children(x,".cui-layer")[0],"element")).getElement())&&v.dom.closest(A.getTarget(),L)&&v.Events.listen({node:document.documentElement,type:["dblclick","click"],capture:!0,only_once:!0,call:function(v){return v.stop()}}),A.cui_layer_closed=!0,k.hide(A)}}}),v.Events.listen({type:["keyup"],node:document.body,call:function(A){var z,L,T,k;if(27===A.keyCode()&&!v.globalDrag&&(L=(T=v.dom.find("body > .cui-layer-root > .cui-layer:not(.cui-tooltip)"))[T.length-1])&&((k=A.getTarget())===L||k===document.body))return z=v.dom.data(L,"element"),A.stopImmediatePropagation(),A.preventDefault(),z.isKeyboardCancellable(A)?(z.doCancel(A),!1):void 0}})}))}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n
    \n
    \n
    \n\n'},function(v,A,z){(function(v){var A={}.hasOwnProperty,L=[].slice;v.Template.loadTemplateText(z(62)),v.DataField=function(z){function DataField(A){var z,L;DataField.__super__.constructor.call(this,A),v.util.assertImplements(this,["render"]),this._name&&v.util.assertImplements(this,["getDefaultValue"]),this.__checkChangedValue=void 0,this.initTemplate(),this.addClass("cui-data-field"),this.maximizeAddClasses(),v.Events.listen({type:"data-changed",node:this.DOM,call:(L=this,function(v,A){L.onDataChanged(v,A)})}),this.getName()&&this.DOM.setAttribute("cui-data-field-name",this.getName()),this.init(),this._data&&!v.util.isFunction(this._data)&&this.setData(this._data),this.__initDisabled(),this._hidden&&this.hide(),this._tooltip&&(this._tooltip.text||this._tooltip.content)&&((z=v.util.copyObject(this._tooltip)).element=this.DOM,this.__tooltip=new v.Tooltip(z)),this.__opacity=1,"function"==typeof this._onInit&&this._onInit(this)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(DataField,z),DataField.changed_marker_css_class="cui-data-field-changed-marker",DataField.defaults={undo_and_changed_support:!1},DataField.prototype.onDataChanged=function(A,z){if(null!=z?z.element:void 0)return"function"==typeof this._onDataChanged?this._onDataChanged(this.getData(),z.element,A,z):void 0;console.warn(v.util.getObjectClass(this)+"[DataField].listen[data-changed]: received event with element not set.",A,z,this)},DataField.prototype.initOpts=function(){return DataField.__super__.initOpts.call(this),this.addOpts({name:this.getNameOpt(),maximize:{check:Boolean},maximize_horizontal:{check:Boolean,default:!1},maximize_vertical:{check:Boolean,default:!1},padded:{check:Boolean,default:!1},data:{check:function(A){return v.util.isFunction(null!=A?A.hasOwnProperty:void 0)||v.util.isFunction(A)}},data_not_for_others:{default:!1,check:Boolean},disabled:{default:!1,check:function(A){return v.util.isBoolean(A)||v.util.isFunction(A)}},disabled_depends_on_data:{check:Function},tooltip:{check:"PlainObject"},hidden:{check:Boolean},form:{},undo_and_changed_support:{check:Boolean},undo_support:{default:v.DataField.defaults.undo_and_changed_support,check:Boolean},mark_changed:{default:v.DataField.defaults.undo_and_changed_support,check:Boolean},check_changed:{default:v.DataField.defaults.undo_and_changed_support,check:Boolean},onDataChanged:{check:Function},onDataInit:{check:Function},onInit:{check:Function},onRender:{check:Function},render_as_block:{check:Boolean}})},DataField.prototype.readOpts=function(){var A,z,L,T;if(this.opts.hasOwnProperty("undo_and_changed_support"))for(A=0,L=(T=["undo_support","check_changed","mark_changed"]).length;A")+"]}"},DataField.prototype.reload=function(){return this.remove(),this.render(),this.displayValue(),"function"==typeof this._onRender&&this._onRender(this),this},DataField.prototype.remove=function(){return this.callOnOthers("remove"),this.isDestroyed()||this.empty(),this.__isRendered=!1},DataField.prototype.getNameOpt=function(){return{check:String}},DataField.prototype.registerLabel=function(v){var A;(A=this.getUniqueIdForLabel())&&v.setAttribute("for",A)},DataField.prototype.getLabel=function(){return this._label},DataField.prototype.getMaximizeHorizontal=function(){return this.__maximize_horizontal},DataField.prototype.setForm=function(A){return v.util.assertImplements(A,["getFieldsByName","getFieldByIdx","getData","getFields"]),this.__form=A,this.getForm().getFormPath?(this.__form.getMaximizeHorizontal()&&!1!==this.getOpt("maximize_horizontal")&&this.addClass("cui-maximize-horizontal"),this):this},DataField.prototype.getFormPath=function(A,z,L){var T;return null==A&&(A=!1),null==z&&(z=[]),null==L&&(L=0),v.util.assert(L<100,"CUI.DataField.getPath","Recursion detected."),(null!=(T=this.getForm())?T.getFormPath:void 0)&&this.getForm().getFormPath(!0,z,L+1),A&&z.push(this),z},DataField.prototype.getForm=function(){return this.__form},DataField.prototype.getOtherField=function(v){var A,z;return null!=(A=this.__form)&&null!=(z=A.getFieldsByName(v))?z[0]:void 0},DataField.prototype.getRootForm=function(){return this.__form?this.__form.getRootForm():this instanceof v.Form?this:null},DataField.prototype.__initDisabled=function(){this._disabled&&(!0===this._disabled||this._disabled.call(this,this))&&this.disable()},DataField.prototype.enable=function(){return this.removeClass("cui-data-field-disabled"),this.callOnOthers("enable"),this},DataField.prototype.disable=function(){return this.addClass("cui-data-field-disabled"),this.callOnOthers("disable"),this},DataField.prototype.isDisabled=function(){return this.hasClass("cui-data-field-disabled")},DataField.prototype.isHidden=function(){return this.hasClass("cui-data-field-hidden")},DataField.prototype.isShown=function(){return!this.isHidden()},DataField.prototype.updateData=function(A){return v.util.isFunction(this._data)?this.__data=this._data.call(this,A,this):this.__data=A,this.displayValue()},DataField.prototype.unsetData=function(){delete this.__data,this.setDataOnOthers()&&this.callOnOthers("unsetData")},DataField.prototype.setData=function(A,z){var L;if(null==z&&(z=!0),!this.__data||!this._data||v.util.isFunction(this._data))return v.util.assert(!this.__data,this+".setData","data is already set.",{opts:this.opts,data:this.__data}),v.util.isFunction(this._data)?this.__data=this._data.call(this,A,this):this.__data=A,v.util.assert(v.util.isPlainObject(this.__data)||(null!=(L=this.__data)&&"function"==typeof L.hasOwnProperty?L.hasOwnProperty(this.getName()):void 0),this+".setData",'data needs to be PlainObject or have a property "'+this.getName()+'".',{data:A,opts:this.opts}),this.setDataOnOthers()&&this.callOnOthers("setData",this.__data,z),z&&this.initData(),this},DataField.prototype.setDataOnOthers=function(){return!this._data_not_for_others},DataField.prototype.hide=function(A){return null==A&&(A=!1),this.addClass("cui-data-field-hidden"),this.callOnOthers("hide"),A&&v.Events.trigger({type:"form-check-row-visibility",node:this.DOM,info:{element:this}}),this},DataField.prototype.show=function(A){return null==A&&(A=!1),this.removeClass("cui-data-field-hidden"),this.callOnOthers("show"),A&&v.Events.trigger({type:"form-check-row-visibility",node:this.DOM,info:{element:this}}),this},DataField.prototype.isRendered=function(){return this.__isRendered},DataField.prototype.render=function(){return v.util.assert(!this.__isRendered,this.__cls+".render","Cannot be called when already rendered.",{opts:this.opts,dataField:this}),this.__isRendered=!0,this.callOnOthers("render"),this.isDisabled()&&this.disable(),this.isHidden()&&this.hide(!0),"function"==typeof this._onRender&&this._onRender(this),this},DataField.prototype.displayValue=function(){return v.util.assert(!this.isDestroyed(),this.__cls+".displayValue","DataField already destroyed, cannot display value.",{data_field:this}),v.util.assert(this.__isRendered,this.__cls+".displayValue","not rendered yet, cannot display.",{opts:this.opts,data:this.__data}),this.checkChanged(),this.callOnOthers("displayValue")},DataField.prototype.start=function(){return v.util.assert(!this.__isRendered,this.__cls+".start","Cannot be called when already rendered.",{opts:this.opts,dataField:this}),this.__initDisabled(),this.render(),this.displayValue(),this},DataField.prototype.getAllDataFields=function(v){return null==v&&(v=!1),this.getDataFields(!0)},DataField.prototype.getDataFields=function(v,A){return null==v&&(v=!1),null==A&&(A=[]),(this.isDataField()||v)&&A.push(this),this.callOnOthers("getDataFields",v,A),A},DataField.prototype.renderAsBlock=function(){return!!this._render_as_block},DataField.prototype.isDataField=function(){return this.hasData()},DataField.prototype.callOnOthers=function(){var A,z,T,k,x,S;for(T=arguments[0],A=2<=arguments.length?L.call(arguments,1):[],k=0,x=(S=this.getFields?this.getFields(T).slice(0):[]).length;k-1||(k[x]=E):S=E;for(x in L)E=L[x],k.hasOwnProperty(x)||(k[x]=E);return v.util.assert(v.util.isFunction(S),"CUI.DataField.new",'type is unknown: "'+S+'".',{field:A}),T=new S(k),v.util.assert(T instanceof v.DataField,"CUI.DataField.new","field.type needs to be of class DataField, but is "+v.util.getObjectClass(T)+".",{field:A}),T},DataField}(v.DOMElement),v.Events.registerEvent({type:"data-changed",bubble:!0})}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n'},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.CheckValueError=function(v){function CheckValueError(){return CheckValueError.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(CheckValueError,window.Error),CheckValueError}()}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.DataFieldInput=function(z){function DataFieldInput(A){DataFieldInput.__super__.constructor.call(this,A),v.dom.setAttributeMap(this.DOM,this._attr),this.addClass("cui-data-field-input")}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(DataFieldInput,z),DataFieldInput.prototype.initOpts=function(){return DataFieldInput.__super__.initOpts.call(this),this.addOpts({group:{check:String},attr:{default:{},check:"PlainObject"}})},DataFieldInput.prototype.getGroup=function(){return this._group},DataFieldInput.prototype.isResizable=function(){return!0},DataFieldInput}(v.DataField)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Template.loadTemplateText(z(66)),v.Template.loadTemplateText(z(67)),v.Button=function(z){function Button(A){var z,L,T,k,x,S,E,Y,P,q,F,H,X,V,U;if(Button.__super__.constructor.call(this,A),this._tooltip&&(this._tooltip.text||this._tooltip.content)&&(this.__tooltipOpts=this._tooltip),this.__has_left=!0,this.__has_right=!0,this.__has_center=!0,X=this.getTemplateName(),this.__box=new v.Template({name:X,map:{left:this.__has_left?".cui-button-left":void 0,center:this.__has_center?".cui-button-center":void 0,visual:v.__ng__?".cui-button-visual":void 0,right:this.__has_right?".cui-button-right":void 0}}),this.registerTemplate(this.__box),this.__active=null,this.__disabled=!1,this.__loading=!1,this.__hidden=!1,this.__txt=null,this.addClass("cui-button-button"),v.util.isString(null!=(S=this.__tooltipOpts)?S.text:void 0)?(this.setAria("label",null!=(E=this.__tooltipOpts)?E.text:void 0),this.__hasAriaLabel=!0):this.__hasAriaLabel=!1,v.dom.setAttribute(this.DOM,"tabindex",this._tabindex),(null!=(Y=this._attr)?Y.role:void 0)||v.dom.setAttribute(this.DOM,"role",this._role),this._left&&!0!==this._left?this.append(this._left,"left"):(this._icon?(v.util.assert(v.util.isUndef(this._icon_left),"new "+this.__cls,"opts.icon conflicts with opts.icon_left",{opts:this.opts}),z=this._icon):z=this._icon_left,z&&(v.util.assert(!this._icon_active&&!this._icon_inactive,"new CUI.Button","opts.icon_active or opts.icon_inactive cannot be set together with opts.icon or opts.icon_left",{opts:this.opts}),this.setIcon(z))),this._right?!0!==this._right&&this.append(this._right,"right"):this._icon_right?this.setIconRight(this._icon_right):this._menu&&!1!==this._icon_right&&(this.addClass("cui-button--has-caret"),this._menu_parent?this.setIconRight(v.defaults.class.Button.defaults.arrow_right):this.setIconRight(v.defaults.class.Button.defaults.arrow_down)),this.setSize(this._size),this._appearance&&this.addClass("cui-button-appearance-"+this._appearance),this._primary&&this.addClass("cui-button--primary"),this._secondary&&!this._primary&&this.addClass("cui-button--secondary"),this._class&&this.addClass(this._class),this._center?this.append(this._center,"center"):this._text&&this.setText(this._text),this._disabled&&(!0===this._disabled||this._disabled.call(this,this))&&this.disable(),this._loading&&(!0===this._loading||this._loading.call(this,this))&&this.setLoading(!0),this._hidden&&(!0===this._hidden||this._hidden.call(this,this))&&this.hide(),!0===this._active?this.activate({initial_activate:!0}):!1===this._active||this._switch?this.deactivate({initial_activate:!0}):this.__setState(),this.__radio_allow_null=this._radio_allow_null,this._radio?(v.util.assert(v.util.isUndef(this._switch),"new CUI.Button","opts.switch conflicts with opts.radio.",{opts:this.opts}),!0===this._radio?this.__radio="radio--"+this.getUniqueId():this.__radio=this._radio):v.util.isNull(this._switch)||(this.__radio="switch--"+this.getUniqueId(),this.__radio_allow_null=!0),this.__radio&&(v.util.assert(!(null!=(P=this._attr)?P.radio:void 0),"new CUI.Button","opts.radio conflicts with opts.attr.radio",{opts:this.opts}),v.dom.setAttribute(this.DOM,"radio",this.__radio)),this.setGroup(this._group),this._menu){for(T in this.__menu_opts={},L={},q=this._menu)switch(V=q[T],T){case"onShow":case"onHide":continue;case"class":case"backdrop":case"onPosition":case"placement":case"placements":case"pointer":this.__menu_opts[T]=V;break;default:L[T]=V}v.util.isEmpty(this._class)||(this.__menu_opts.class?this.__menu_opts.class+=" "+this._class:this.__menu_opts.class=this._class),this._menu.itemList?this.__menu_opts.itemList=this._menu.itemList:this.__menu_opts.itemList=L,this.__menu_opts.element=this,this.__menu_opts.hasOwnProperty("use_element_width_as_min_width")||this._menu_parent||(this.__menu_opts.use_element_width_as_min_width=!0),this.__menu_opts.onHide=(U=this,function(){var v;return"function"==typeof(v=U._menu).onHide?v.onHide():void 0}),this.__menu_opts.onShow=function(v){return function(){var A;return"function"==typeof(A=v._menu).onShow?A.onShow():void 0}}(this),this.__menu_opts.hasOwnProperty("backdrop")||(this.__menu_opts.backdrop={policy:"click-thru"}),!this.__menu_opts.backdrop.hasOwnProperty("blur")&&(null!=(F=this._menu_parent)&&null!=(H=F.getOpt("backdrop"))?H.blur:void 0)&&(this._menu_on_hover?this.__menu_opts.backdrop={policy:"click-thru",blur:!0}:this.__menu_opts.backdrop.blur=!0),this._menu_parent&&(this.__menu_opts.parent_menu=this._menu_parent)}v.Events.listen({type:"keydown",node:this.DOM,capture:!0,call:function(A){return function(z){var L,T,k,x;if(!z.hasModifierKey()){if(13===(k=z.keyCode())||32===k)return A.onClickAction(z),void z.stop();if(27===z.keyCode())return A.DOM.blur(),void z.stop();switch(L=null,x=function(){return L=v.dom.findNextVisibleElement(A.DOM,"[tabindex]")},T=function(){return L=v.dom.findPreviousVisibleElement(A.DOM,"[tabindex]")},z.keyCode()){case 39:case 40:x();break;case 37:T();break;case 38:T()}L&&(L.focus(),z.stop())}}}(this)}),v.Events.listen({type:v.Button.clickTypesPrevent[this._click_type],node:this.DOM,call:function(v){v.preventDefault()}}),v.Events.listen({type:v.Button.clickTypes[this._click_type],node:this.DOM,call:function(A){return function(z){v.globalDrag||(0===z.getButton()||z.getType().startsWith("touch"))&&(z.stopPropagation(),A.onClickAction(z))}}(this)}),this._menu_on_hover&&(v.Button.menu_timeout=null,x=function(){if(v.Button.menu_timeout)return v.clearTimeout(v.Button.menu_timeout),v.Button.menu_timeout=null},k=function(A){return function(z,L){return null==L&&(L=700),x(),v.Button.menu_timeout=v.setTimeout({ms:L,call:function(){return A.getMenu().hide(z)}})}}(this)),(this._menu_on_hover||this.__tooltipOpts||this._onMouseenter)&&v.Events.listen({type:"mouseenter",node:this.DOM,call:function(A){return function(z){var L,T;v.globalDrag||("function"==typeof A._onMouseenter&&A._onMouseenter(z),z.isImmediatePropagationStopped()||(A.__tooltipOpts&&(A.__initTooltip(),A.getTooltip().showTimeout().start()),A._menu_on_hover&&(L=A.getMenu(),x(),!A.__disabled&&L.hasItems(z)&&((T=v.dom.data(v.dom.find(".cui-button--hover-menu")[0],"element"))&&T!==L&&T.hide(z),v.dom.addClass(L.DOM,"cui-button--hover-menu"),v.Events.ignore({instance:A,node:L}),v.Events.listen({type:"mouseenter",node:L,instance:A,only_once:!0,call:function(){return x()}}),v.Events.listen({type:"mouseleave",node:L,instance:A,only_once:!0,call:function(){return k(z)}}),L.show(z)))))}}(this)}),v.Events.listen({type:"mouseleave",node:this.DOM,call:function(A){return function(z){v.globalDrag||("function"==typeof A._onMouseleave&&A._onMouseleave(z),A._menu_on_hover&&k(z,100))}}(this)})}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Button,z),Button.defaults={confirm_ok:"Ok",confirm_icon:"question",confirm_cancel:"Cancel",confirm_title:"Confirmation",disabled_css_class:"cui-disabled",loading_css_class:"cui-loading",active_css_class:"cui-active",arrow_down:"fa-angle-down",arrow_right:"fa-angle-right"},Button.prototype.setSize=function(v){var A,z,L,T,k,x,S;for(S=[],z=0,T=(x=this.DOM.classList).length;z0))return[];for(T=S[S.length-1],Y=[],k=0,x=(E=v.dom.matchSelector(T,".cui-button["+A+'="'+z+'"]')).length;k\n
    \n\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n'},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n\t
    \n\t\t
    \n\t
    \n
    \n
    \n\t
    \n\t\t
    \n\t
    \n
    \n
    \n\t
    \n\t\t
    \n\t
    \n
    \n
    \n\t
    \n\t\t
    \n\t
    \n
    \n
    \n\t
    \n\t\t
    \n\t
    \n
    \n'},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Icon=function(z){function Icon(A){var z,L;Icon.__super__.constructor.call(this,A),L="",z="",this._icon&&(z=v.Icon.icon_map[this._icon],v.util.isEmpty(z)&&(z=this._icon),z.startsWith("svg-")&&(L=z,z="")),v.util.isEmpty(this._class)||(z+=" "+this._class),this.DOM=L?v.dom.htmlToNodes('')[0]:v.dom.element("I",{class:"fa "+z}),this._tooltip&&(this._tooltip.element=this.DOM,new v.Tooltip(this._tooltip))}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Icon,z),Icon.prototype.initOpts=function(){return Icon.__super__.initOpts.call(this),this.addOpts({class:{check:String},icon:{check:String},fixed_width:{check:Boolean},tooltip:{check:"PlainObject"}})},Icon.prototype.copy=function(){var A,z;return A=Icon.__super__.copy.call(this),z=v.dom.getStyle(this),v.dom.setStyle(A,z),A},Icon.prototype.hide=function(){return v.dom.hideElement(this.DOM)},Icon.prototype.show=function(){return v.dom.showElement(this.DOM)},Icon.icon_map={trash:"svg-trash",reset:"svg-reset",spinner:"svg-spinner cui-spin-stepped",remove:"svg-close",close:"svg-close",folder:"svg-folder",folder_shared:"svg-folder-shared",folder_upload:"svg-folder-upload",folder_shared_upload:"svg-folder-shared-upload",info_circle:"svg-info-circle",external_link:"svg-external-link",crop:"fa-crop",fullscreen:"fa-arrows-alt",failed:"fa-warning",no_right:"fa-slack",file:"fa-file",filter:"fa-filter",sliders:"fa-sliders",refresh:"fa-refresh",zip:"fa fa-file-archive-o",rotate_right:"fa-rotate-right",rotate_left:"fa-rotate-left",rotate_vertical:"fa-arrows-v",rotate_horizontal:"fa-arrows-h",calendar:"fa-calendar-plus-o",show:"fa-question",help:"fa-question",question:"fa-question",settings:"fa-cog",download:"fa-download",export:"fa-download",list:"fa-question",upload:"fa-upload",envelope:"fa-envelope-o",envelope_active:"fa-envelope",save:"fa-floppy-o",heart:"fa-heart",user:"fa-user",clock:"fa-clock-o",plus:"fa-plus",edit:"fa-pencil",copy:"fa-files-o",search:"fa-search",share:"fa-share",play:"fa-play",audio:"fa-music",start:"fa-play",stop:"fa-stop",print:"fa-print",minus:"fa-minus",ellipsis_h:"fa-ellipsis-h",ellipsis_v:"fa-ellipsis-v",menu:"fa-bars",info:"fa-info-circle",bolt:"fa-bolt",check:"fa-check",warning:"fa-warning",legal:"fa-legal",cloud:"fa-cloud",left:"fa-angle-left",right:"fa-angle-right",dive:"fa-angle-right",zoom_in:"fa-search-plus",zoom_out:"fa-search-minus",resize_small:"fa-compress",resize_full:"fa-expand",email:"fa-envelope-o",file_text_active:"fa-file-text",file_text:"fa-file-text-o",required:"fa-bullhorn",west:"fa-angle-left",east:"fa-angle-right",south:"fa-angle-down",north:"fa-angle-up",up:"fa-caret-up",down:"fa-caret-down",camera:"fa-camera",expert_search:"fa-list-ul",image:"fa-picture-o"},Icon}(v.Element),v.proxyMethods(v.Icon,v.Button,["hide","show","isShown","isHidden"])}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Template.loadTemplateText(z(70)),v.Template.loadTemplateText(z(71)),v.ButtonHref=function(z){function ButtonHref(A){var z;ButtonHref.__super__.constructor.call(this,A),z={href:this._href,tabindex:"0",target:this._target},this._download&&(z.download="download"),v.dom.setAttributeMap(this.DOM,z)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ButtonHref,z),ButtonHref.prototype.initOpts=function(){return ButtonHref.__super__.initOpts.call(this),this.addOpts({href:{check:String},download:{check:Boolean},target:{check:String}})},ButtonHref.prototype.readOpts=function(){return ButtonHref.__super__.readOpts.call(this),void 0===this._icon_right&&"link"===this._appearance&&(this._icon_right="external_link"),this},ButtonHref.prototype.setHref=function(A){return v.dom.setAttribute(this.DOM,"href",A)},ButtonHref.prototype.getTemplateName=function(){return ButtonHref.__super__.getTemplateName.call(this),v.__ng__?"buttonHref-ng":"buttonHref"},ButtonHref}(v.Button)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n
    \n
    \n
    \n
    \n'},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n\n\t
    \n\t\t
    \n\t\t
    \n\t\t
    \n\t
    \n
    \n'},function(v,A,z){(function(v){var A={}.hasOwnProperty,L=[].slice;v.Template.loadTemplateText(z(73)),v.Buttonbar=function(z){function Buttonbar(A){var z,L,T,k,x,S,E,Y;for(this.__setVisibilityClasses=(z=this.__setVisibilityClasses,L=this,function(){return z.apply(L,arguments)}),Buttonbar.__super__.constructor.call(this,A),this.__box=new v.Template({name:"buttonbar"}),this.registerTemplate(this.__box),this.__buttons=this.__box.DOM,this.__groupDivs={},this._tooltip&&((Y=v.util.copyObject(this._tooltip)).element=this.__buttons,this.__tooltip=new v.Tooltip(Y)),x=k=0,S=(E=this._buttons).length;k0?v.dom.showElement(A):v.dom.hideElement(A);return this.__setVisibilityClasses(this.__buttons)>0?(null!=(L=this.__tooltip)?L.isShown():void 0)&&this.__tooltip.position():v.dom.showElement(this.__buttons),this},Buttonbar.prototype.removeButtons=function(){return v.dom.empty(this.__buttons)},Buttonbar.prototype.prependButton=function(v,A){return null==A&&(A=!0),this.addButton(v,A,!0)},Buttonbar.prototype.addButton=function(A,z,L){var T,k,x,S,E,Y;if(null==z&&(z=!0),null==L&&(L=!1),!v.util.isNull(A))return v.util.isPlainObject(A)&&(A=new v.defaults.class.Button(A)),A instanceof v.Button||A instanceof v.DataFieldInput||A instanceof v.Label?(T=A.DOM,S=A.getGroup()):(null!=A&&null!=(E=A.classList)?E.contains("cui-button"):void 0)?(T=A,S=A.group||null):v.util.assert(!1,"new "+this.__cls,'button must be instance of Button or have class ".cui-button" but is '+v.util.getObjectClass(A)+".",{button:A,opts:this.opts}),v.Events.listen({type:["show","hide"],node:A,call:(Y=this,function(v){return Y.__checkVisibility()})}),x=L?"prepend":"append",S?(this.__groupDivs[S]||(k=v.dom.div("cui-buttonbar-group cui-buttonbar-group-"+S),v.dom.append(this.__buttons,k),this.__groupDivs[S]=k),v.dom[x](this.__groupDivs[S],T)):v.dom[x](this.__buttons,T),z&&this.__checkVisibility(),A},Buttonbar}(v.DOMElement)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n
    \n'},function(v,A,z){(function(v){var A,L={}.hasOwnProperty;A=z(2),v.Template.loadTemplateText(z(75)),v.Label=function(z){function Label(A){var z,L,T,k,x,S,E,Y;if(Label.__super__.constructor.call(this,A),x=this._rotate_90?"label-rotate-90":this._icon||!v.__ng__?"label":"label-no-icon",this.__label=new v.Template({name:x,map_prefix:"cui-label",map:{icon:"label-no-icon"!==x||void 0,content:!0}}),this.registerTemplate(this.__label),this._icon&&!0!==this._icon&&this.setIcon(this._icon),v.util.isEmpty(this._text)?this.setContent(this._content):this.setText(this._text),this._tooltip&&(null==(S=v.util.copyObject(this._tooltip)).element&&(S.element=this.DOM),this.__tooltip=new v.Tooltip(S)),this._multiline&&this.addClass("cui-label-multiline"),this._centered&&this.addClass("cui-label-centered"),this._markdown&&this.addClass("cui-label-markdown"),this._manage_overflow&&this.addClass("cui-label-manage-overflow"),this._padded&&this.addClass("cui-label--padded"),this._size?this.addClass("cui-label-size-"+this._size):v.__ng__||this.addClass("cui-label-size-normal"),this._appearance&&this.addClass("cui-label-appearance-"+this._appearance),this._manage_overflow){for(T in z=!0===this._manage_overflow?v.util.copyObject(v.defaults.class.Label.defaults.manage_overflow,!0):this._manage_overflow,k={class:"cui-label-manage-overflow-button",appearance:"flat",switch:!0,hidden:!0,onActivate:(Y=this,function(){return Y.__label.addClass("cui-label--show-overflow")}),onDeactivate:function(v){return function(){return v.__label.removeClass("cui-label--show-overflow")}}(this)})E=k[T],z.hasOwnProperty(T)&&"class"===T?z[T]+=" "+E:z[T]=E;this.__overflow_button=new v.defaults.class.Button(z),this.append(this.__overflow_button),L=function(v){return function(){return v.checkOverflowSize()}}(this),v.Events.listen({node:this.DOM,type:"viewport-resize",call:function(){return v.scheduleCallback({ms:500,call:L})}})}}return function(v,A){for(var z in A)L.call(A,z)&&(v[z]=A[z]);function ctor(){this.constructor=v}ctor.prototype=A.prototype,v.prototype=new ctor,v.__super__=A.prototype}(Label,z),Label.defaults={manage_overflow:{icon_inactive:"down",icon_active:"up",active_css_class:""}},Label.prototype.initOpts=function(){return Label.__super__.initOpts.call(this),this.addOpts({text:{check:function(A){return v.util.isString(A)||v.util.isNumber(A)}},text_node_func:{check:Function},content:{check:function(A){return v.util.isContent(A)||v.util.isString(A)}},icon:{check:function(A){return A instanceof v.Icon||v.util.isString(A)||!0===A}},size:{check:["mini","normal","big","bigger"]},appearance:{check:["title","secondary","muted","transparent-border"]},markdown:{mandatory:!0,default:!1,check:Boolean},markdown_opts:{check:"PlainObject"},tooltip:{check:"PlainObject"},group:{check:String},rotate_90:{default:!1,check:Boolean},centered:{default:!1,check:Boolean},multiline:{default:!1,check:Boolean},padded:{default:!1,check:Boolean},manage_overflow:{check:function(A){return v.util.isPlainObject(A)||!0===A||!1===A}}})},Label.prototype.readOpts=function(){var z,L,T;if(Label.__super__.readOpts.call(this),v.util.isNull(this._text)&&v.util.isNull(this._content)&&(this._text=""),this._markdown&&(v.util.assert(!this._content,"new "+this.__cls,"opts.markdown cannot be combined with opts.content, use opts.text instead.",{opts:this.opts}),A?this.__markdown=!0:(console.error("new CUI.Label: Could not find markdown renderer 'marked'. Disabling markedown option.",{opts:this.opts}),this.__markdown=!1)),this.__currentText=null,v.util.assert(v.util.xor(v.util.isNull(this._text),v.util.isNull(this._content)),"new CUI.Label","opts.text and opts.content cannot both be set.",{opts:this.opts}),this._markdown_opts)for(z in this.__markdown_opts=v.util.copyObject(v.defaults.marked_opts,!1),L=this._markdown_opts)T=L[z],this.__markdown_opts[z]=T;else this.__markdown_opts=v.defaults.marked_opts;return this._manage_overflow&&v.util.assert(this._multiline,"new CUI.Label","opts.multiline needs to be set for opts.manage_overflow",{opts:this.opts}),this},Label.prototype.setText=function(z,L){return this.__currentText=z,null==L&&(L=this.__markdown),v.util.isEmpty(this.__currentText)?this.empty("content"):L?(this.setContent(v.dom.htmlToNodes(A(this.__currentText,this.__markdown_opts))),this.addClass("cui-label-markdown")):this._text_node_func?(this.setContent(this._text_node_func(this.__currentText)),this.removeClass("cui-label-markdown")):(this.setContent(v.dom.text(this.__currentText)),this.removeClass("cui-label-markdown")),this},Label.prototype.setTextMaxChars=function(A){return v.dom.setAttribute(this.__label.map.content,"data-max-chars",A)},Label.prototype.getText=function(){return this.__currentText},Label.prototype.setContent=function(A){var z;(v.util.isString(A)?this.replace(v.dom.htmlToNodes(A),"content"):this.replace(A,"content"),this._manage_overflow)&&(this.append(this.__overflow_button),v.dom.waitForDOMInsert({node:this.DOM}).done((z=this,function(){return z.checkOverflowSize()})))},Label.prototype.checkOverflowSize=function(){var A,z;if(this.__overflow_button)return this.__label.removeClass("cui-label--show-overflow"),this.__label.addClass("cui-label--measure-overflow"),this.__overflow_button.hide(),A=v.dom.getDimensions(this.__label.map.content),(z=v.dom.getCSSFloatValue(A.computedStyle.maxHeight))>0||(z=A.clientHeight),A.scrollHeight>z?(this.__overflow_button.show(),this.__label.addClass("cui-label--has-overflow-button"),this.__overflow_button.isActive()&&this.__label.addClass("cui-label--show-overflow")):(this.__label.addClass("cui-label--show-overflow"),this.__label.removeClass("cui-label--has-overflow-button")),this.__label.removeClass("cui-label--measure-overflow"),this},Label.prototype.getGroup=function(){return this._group},Label.prototype.setIcon=function(A){var z;return z=A instanceof v.Icon?A:v.util.isEmpty(A)?null:new v.Icon({icon:A}),this.replace(z,"icon"),this},Label.prototype.destroy=function(){var v;return null!=(v=this.__tooltip)&&v.destroy(),Label.__super__.destroy.call(this)},Label.parseLinks=function(A){var z,L,T,k,x,S,E,Y,P,q,F;for(Y=[],F=[],L=function(){0!==F.length&&(Y.push(v.dom.text(F.join(""))),F=[])},x=k=0,S=(q=A.split(/(\n| )/)).length;k\n\t
    \n\t
    \n\n
    \n\t
    \n
    \n
    \n\t
    \n\t\t
    \n\t\t
    \n\t
    \n
    '},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.MultilineLabel=function(v){function MultilineLabel(v){MultilineLabel.__super__.constructor.call(this,v),this.addClass("cui-label")}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(MultilineLabel,v),MultilineLabel.prototype.initOpts=function(){return MultilineLabel.__super__.initOpts.call(this),this.mergeOpt("multiline",{default:!0})},MultilineLabel}(v.Label)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.EmptyLabel=function(v){function EmptyLabel(v){EmptyLabel.__super__.constructor.call(this,v),this.addClass("cui-empty-label")}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(EmptyLabel,v),EmptyLabel.prototype.readOpts=function(){return EmptyLabel.__super__.readOpts.call(this)},EmptyLabel}(v.MultilineLabel)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty,L=[].indexOf||function(v){for(var A=0,z=this.length;A=0||"number"==typeof v&&v>=0&&v<=100},ProgressMeter.prototype.initOpts=function(){var A,z,L,T,k,x;for(ProgressMeter.__super__.initOpts.call(this),this.opts.states||(this.opts.states=Object.keys(v.defaults.ProgressMeter.states)),this.addOpts({states:{check:Array},state:{check:(x=this,function(v){return x.__checkState(v)})},css_property_percent:{default:"width",check:String},size:{default:"auto",mandatory:!0,check:["auto","mini","normal","big"]},appearance:{default:"auto",mandatory:!0,check:["auto","normal","important"]},onUpdate:{check:Function}}),T=[],A=0,z=(L=this.opts.states).length;A=0?("spinning2"===this.__state?this.__meter.replace(this.getAnimatedHourglassIcon(),"icon"):(T=this["_icon_"+this.__state])instanceof v.Icon?this.__meter.replace(T,"icon"):v.util.isEmpty(T)?this.__meter.empty("icon"):this.__meter.replace(new v.Icon({icon:T}),"icon"),this.__meter.DOM.setAttribute("state",this.__state),this.__meter.empty("text"),(z={})[this._css_property_percent]=""):(this.__meter.DOM.setAttribute("state","percent"),this.__meter.empty("icon"),this.__meter.replace(Math.round(this.__state)+"%","text"),(z={})[this._css_property_percent]=this.__state+"%"),v.dom.setStyle(this.__meter.map.fill,z),null!=(x=this._onUpdate)&&x.call(this,this),this},ProgressMeter.prototype.getAnimatedHourglassIcon=function(){var A,z,L,T,k,x;for(z=["fa-hourglass-start","fa-hourglass-half","fa-hourglass-end","fa-hourglass-end","fa-hourglass-o"],A=v.dom.div("cui-hourglass-animation fa-stack"),k=0,x=z.length;k0&&this.setHeader(z)),this._content&&this.setContent(this._content),this.addClass("appearance-"+this._appearance),this.addClass("cui-block-level-"+this._level),this.maximizeAddClasses(),this._padded&&this.addClass("cui-block--padded")}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Block,z),Block.prototype.initOpts=function(){return Block.__super__.initOpts.call(this),this.addOpts({text:{check:String},description:{check:String},header:{check:function(A){return!!(v.util.isContent(A)||v.util.isString(A)||(null!=A?A.DOM:void 0))}},icon:{check:v.Icon},content:{check:function(A){return!!(v.util.isContent(A)||v.util.isString(A)||(null!=A?A.DOM:void 0))}},level:{mandatory:!0,default:1,check:[1,2,3]},appearance:{default:"normal",mandatory:!0,check:["normal","wide","muted"]},padded:{check:Boolean,default:!0},maximize:{check:Boolean},maximize_horizontal:{check:Boolean,default:!1},maximize_vertical:{check:Boolean,default:!1}})},Block.prototype.readOpts=function(){return Block.__super__.readOpts.call(this),v.util.assert(!((this._text||this._icon)&&this._header),"new CUI.Block","opts.text and opts.header are mutually exclusive.",{opts:this.opts}),v.Layout.prototype.maximizeReadOpts.call(this),this},Block.prototype.maximizeAddClasses=function(){return v.Layout.prototype.maximizeAddClasses.call(this)},Block.prototype.getTemplateName=function(){return"block"},Block.prototype.setText=function(A){return v.util.assert(this.__label,"Block.setText","Block must not be called with opts.header and with opts.text or opts.icon.",{opts:this.opts}),this.__label.setText(A)},Block.prototype.setIcon=function(A){return v.util.assert(this.__label,"Block.setText","Block must not be called with opts.header and with opts.text or opts.icon.",{opts:this.opts}),this.__label.setIcon(A)},Block.prototype.setHeader=function(v){return this.__block.replace(v,"header")},Block.prototype.setContent=function(v){return this.__block.replace(v,"content")},Block.prototype.getContent=function(){return this.__block.map.content},Block.prototype.getHeader=function(){return this.__block.map.header},Block.prototype.appendContent=function(v){return this.__block.append(v,"content")},Block}(v.DOMElement)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n\t
    \n\t
    \n
    '},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Template.loadTemplateText(z(83)),v.WaitBlock=function(z){function WaitBlock(A){WaitBlock.__super__.constructor.call(this,A),this._inactive&&v.dom.addClass(this.DOM,"cui-wait-block-inactive"),this._fullscreen&&v.dom.addClass(this.DOM,"cui-wait-block-fullscreen")}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(WaitBlock,z),WaitBlock.prototype.initOpts=function(){return WaitBlock.__super__.initOpts.call(this),this.mergeOpt("icon",{check:function(A){return A instanceof v.Icon||v.util.isString(A)}}),this.removeOpt("header"),this.removeOpt("content"),this.addOpts({inactive:{check:Boolean},element:{check:function(A){return v.util.isElement(A)||v.util.isElement(A.DOM)}},fullscreen:{check:Boolean}})},WaitBlock.prototype.readOpts=function(){return WaitBlock.__super__.readOpts.call(this),v.util.assert(v.util.xor(this._element,this._fullscreen),"new CUI.WaitBlock","opts.element or opt.fullscreen needs to be set.",{opts:this.opts}),this._fullscreen?this.__element=document.body:this._element.DOM?this.__element=this._element.DOM:this.__element=this._element,this._inactive||this.opts.hasOwnProperty("icon")||(this._icon="spinner"),this.__shown=!1,this.__savedPosition=null,this},WaitBlock.prototype.getTemplateName=function(){return"wait-block"},WaitBlock.prototype.show=function(){return v.dom.isPositioned(this.__element)?this.__savedPosition=null:(this.__savedPosition=v.dom.getComputedStyle(this.__element).position,v.dom.setStyleOne(this.__element,"position","relative")),v.dom.addClass(this.__element.DOM,"cui-wait-block-active"),this._fullscreen,v.dom.append(this.__element,this.DOM),this.__shown=!0,this},WaitBlock.prototype.isShown=function(){return!!this.__shown},WaitBlock.prototype.hide=function(){return this.isShown()?(v.dom.remove(this.DOM),null!==this.__savedPosition&&v.dom.setStyleOne(this.__element,"position",this.__savedPosition),v.dom.removeClass(this.__element,"cui-wait-block-active"),this.__shown=!1,this.__savedPosition=null,this):this},WaitBlock.prototype.destroy=function(){return this.hide(),WaitBlock.__super__.destroy.call(this)},WaitBlock}(v.Block)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n\t
    \n\t
    \n\t\t
    \n\t\t
    \n\t
    \n
    '},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Template.loadTemplateText(z(85)),v.BorderLayout=function(z){function BorderLayout(){return BorderLayout.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(BorderLayout,z),BorderLayout.prototype.getName=function(){return"border-layout"},BorderLayout.prototype.getPanes=function(){return["north","west","east","south"]},BorderLayout.prototype.getSupportedPanes=function(){return this.getPanes()},BorderLayout.prototype.getTemplateMap=function(){var v;return(v=BorderLayout.__super__.getTemplateMap.call(this)).row=!0,v},BorderLayout.prototype.__init=function(){var A;return BorderLayout.__super__.__init.call(this),this._absolute&&(v.dom.addClass(this.getLayout().map.row,"cui-absolute"),v.Events.listen({type:"viewport-resize",node:this.getLayout().map.row,call:(A=this,function(z){return z.stopPropagation(),v.Layout.setAbsolute(A.getLayout().map.row)})})),this},BorderLayout}(v.Layout)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n\t
    \n\t
    \n\t
    \n\t\t
    \n\t\t\t
    \n\t\t\t
    \n\t\t\t
    \n\t\t\t
    \n\t\t\t
    \n\t\t
    \n\t
    \n\t
    \n\t
    \n
    \n'},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Console=function(z){function Console(A){Console.__super__.constructor.call(this,A),this.__console=v.dom.element("DIV",{class:"cui-console"}),this.registerDOMElement(this.__console)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Console,z),Console.prototype.initOpts=function(){return Console.__super__.initOpts.call(this),this.addOpts({markdown:{mandatory:!0,default:!0,check:Boolean}})},Console.prototype.clear=function(){return this.__console.innerHTML=""},Console.prototype.log=function(A,z){var L;return null==z&&(z=this._markdown),L=new v.defaults.class.Label({text:A,multiline:!0,markdown:z}),this.__console.appendChild(L.DOM),this.__console.scrollTop=this.__console.scrollHeight},Console}(v.DOMElement)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty,L=[].indexOf||function(v){for(var A=0,z=this.length;A=0?"horizontal-layout-left-center":L.call(v,"right")>=0?"horizontal-layout-center-right":"horizontal-layout-center"},HorizontalLayout.prototype.getMapPrefix=function(){return"cui-horizontal-layout"},HorizontalLayout.prototype.hasFlexHandles=function(){var v,A;return!(!(null!=(v=this._left)?v.flexHandle:void 0)&&!(null!=(A=this._right)?A.flexHandle:void 0))},HorizontalLayout.prototype.getPanes=function(){var v;return this.hasFlexHandles()?["left","right"]:(v=[],this._left&&v.push("left"),this._right&&v.push("right"),v)},HorizontalLayout.prototype.getSupportedPanes=function(){return["left","right"]},HorizontalLayout}(v.Layout)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n\t
    \n\t
    \n\t
    \n\t
    \n\t
    \n
    \n
    \n\t
    \n\t
    \n\t
    \n
    \n
    \n\t
    \n\t
    \n
    \n
    \n\t
    \n\t
    \n
    \n
    \n\t
    \n
    \n\n\n'},function(v,A,z){(function(v){var A={}.hasOwnProperty,L=[].indexOf||function(v){for(var A=0,z=this.length;A=0?"vertical-layout-top-center":L.call(v,"bottom")>=0?"vertical-layout-center-bottom":"vertical-layout-center"},VerticalLayout.prototype.getMapPrefix=function(){return"cui-vertical-layout"},VerticalLayout.prototype.hasFlexHandles=function(){var v,A;return!(!(null!=(v=this._top)?v.flexHandle:void 0)&&!(null!=(A=this._bottom)?A.flexHandle:void 0))},VerticalLayout.prototype.getPanes=function(){var v;return this.hasFlexHandles()?["top","bottom"]:(v=[],this._top&&v.push("top"),this._bottom&&v.push("bottom"),v)},VerticalLayout.prototype.getSupportedPanes=function(){return["top","bottom"]},VerticalLayout}(v.Layout)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n\t
    \n\t
    \n\t
    \n\t
    \n\t
    \n
    \n
    \n\t
    \n\t
    \n\t
    \n
    \n
    \n\t
    \n\t
    \n
    \n
    \n\t
    \n\t
    \n
    \n
    \n\t
    \n
    \n'},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.VerticalList=function(v){function VerticalList(){return VerticalList.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(VerticalList,v),VerticalList.prototype.initOpts=function(){return VerticalList.__super__.initOpts.call(this),this.mergeOpt("maximize",{default:!1}),this.removeOpt("center"),this.addOpts({content:{}})},VerticalList.prototype.readOpts=function(){return VerticalList.__super__.readOpts.call(this),this._center={content:this._content}},VerticalList.prototype.getSupportedPanes=function(){return[]},VerticalList}(v.VerticalLayout)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.HorizontalList=function(v){function HorizontalList(){return HorizontalList.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(HorizontalList,v),HorizontalList.prototype.initOpts=function(){return HorizontalList.__super__.initOpts.call(this),this.mergeOpt("maximize",{default:!1}),this.removeOpt("center"),this.addOpts({content:{}})},HorizontalList.prototype.readOpts=function(){return HorizontalList.__super__.readOpts.call(this),this._center={content:this._content}},HorizontalList.prototype.getSupportedPanes=function(){return[]},HorizontalList}(v.HorizontalLayout)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Toolbar=function(v){function Toolbar(){return Toolbar.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Toolbar,v),Toolbar.prototype.init=function(){return Toolbar.__super__.init.call(this),this.addClass("cui-toolbar")},Toolbar.prototype.initOpts=function(){return Toolbar.__super__.initOpts.call(this),this.removeOpt("maximize"),this.removeOpt("maximize_horizontal"),this.removeOpt("maximize_vertical"),this.addOpts({maximize_horizontal:{default:!0,mandatory:!0,check:Boolean}})},Toolbar.prototype.hasFlexHandles=function(){return!1},Toolbar.prototype.getPanes=function(){return["left","right"]},Toolbar}(v.HorizontalLayout)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Template.loadTemplateText(z(95)),v.Pane=function(z){function Pane(){return Pane.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Pane,z),Pane.defaults={button_tooltip:{text:"Turn fullscreen on / off"}},Pane.prototype.__init=function(){if(Pane.__super__.__init.call(this),this.addClass("cui-pane"),this.__fill_screen_is_on=!1,this._padded)return this.addClass("cui-pane--padded")},Pane.prototype.initOpts=function(){return Pane.__super__.initOpts.call(this),this.addOpts({padded:{check:Boolean,default:!1}})},Pane.prototype.readOpts=function(){return this.initDefaultPanes(),Pane.__super__.readOpts.call(this)},Pane.prototype.hasHeader=function(){return!!this._top},Pane.prototype.hasFooter=function(){return!!this._bottom},Pane.prototype.getFillScreenState=function(){return this.__fill_screen_is_on},Pane.prototype.endFillScreen=function(A){var z,L;if(null==A&&(A=!0),this.getFillScreenState())return this.__fill_screen_is_on=!1,v.util.$elementIsInDOM(this.__placeholder)?(L=this,z=function(){var A;return v.dom.insertBefore(L.__placeholder,L.DOM),(A=v.dom.data(v.dom.parent(L.__placeholder),"element"))instanceof v.Popover&&A.setVisible(!0),v.dom.remove(L.__placeholder),L.__fillscreenTmpl.destroy(),delete L.__fillscreenTmpl,v.Events.trigger({type:"end-fill-screen",node:L.DOM}),v.Events.trigger({type:"viewport-resize",node:L.DOM})},A?(v.Events.wait({type:"transitionend",node:this.__fillscreenTmpl}).always((function(){return z()})),this.__fillscreenTmpl.removeClass("cui-pane-fill-screen-is-on")):z()):(this.__fillscreenTmpl.destroy(),this.__placeholder=null),this},Pane.prototype.startFillScreen=function(){var A,z,L,T,k,x,S,E,Y,P,q,F,H;if(!this.getFillScreenState()){for(document.body.style.setProperty("--layer-sidebar-width",v.dom.getLayerSidebarWidth()+"px"),this.__fillscreenTmpl=new v.Template({name:"pane-fill-screen",map:{inner:!0}}),P=v.dom.getRect(this.DOM),H=v.dom.getDimensions(window),this.__placeholderTmpl=new v.Template({name:"pane-fill-screen-placeholder"}),this.__placeholder=this.__placeholderTmpl.DOM,x=this.__fillscreenTmpl.map.inner,v.dom.append(document.body,this.__fillscreenTmpl.DOM),L=v.dom.getDimensions(this.__fillscreenTmpl.DOM),A={left:(T=v.dom.getDimensions(x)).clientBoundingRect.left-L.clientBoundingRect.left+T.borderLeft+T.paddingLeft,top:T.clientBoundingRect.top-L.clientBoundingRect.top+T.borderTop+T.paddingTop,right:L.clientBoundingRect.right-T.clientBoundingRect.right+T.borderRight+T.paddingRight,bottom:L.clientBoundingRect.bottom-T.clientBoundingRect.bottom+T.borderBottom+T.paddingBottom},F={top:P.top-A.top,left:P.left-A.left,bottom:H.height-P.bottom-A.bottom,right:H.width-P.right-A.right},v.dom.remove(this.__fillscreenTmpl.DOM),v.dom.setStyle(this.__fillscreenTmpl.DOM,F),v.dom.append(document.body,this.__fillscreenTmpl.DOM),v.dom.setStyle(this.__placeholder,{width:v.dom.getDimensions(this.DOM).marginBoxWidth,height:v.dom.getDimensions(this.DOM).marginBoxHeight}),k=0,E=(q=["position","top","left","right","bottom"]).length;k0}},active_idx:{check:"Integer"},appearance:{check:["normal","mini"]},orientation:{check:["vertical","horizontal"],mandatory:!0,default:"horizontal"},onActivate:{check:Function},onDeactivate:{check:Function}})},Tabs.prototype.forceHeader=function(){return!0},Tabs.prototype.forceFooter=function(){return!0},Tabs.prototype.__checkOverflowButton=function(){var A,z;if(this.__maximize_horizontal)return(A=v.dom.getDimensions(this.__header)).scrollWidth>A.clientWidth?(this.__overflowBtn.show(),v.dom.addClass(this.__pane_header.DOM,"cui-tabs-pane-header--overflow"),this.__dragscroll=new v.Dragscroll({element:this.__buttonbar.DOM,scroll_element:this.__header})):(null!=(z=this.__dragscroll)&&z.destroy(),this.__dragscroll=null,this.__overflowBtn.hide(),v.dom.removeClass(this.__pane_header.DOM,"cui-tabs-pane-header--overflow")),this},Tabs.prototype.init=function(){var A,z,L,T,k,x,S;for(Tabs.__super__.init.call(this),this.__tabs_bodies=new v.Template({name:"tabs-bodies"}),v.dom.addClass(this.__pane_header.DOM,"cui-tabs-pane-header"),"mini"===this._appearance&&v.dom.addClass(this.__pane_header.DOM,"cui-tabs-pane-header--mini"),this.removeClass("cui-pane--padded"),this._padded&&this.addClass("cui-tabs--padded"),this.addClass("cui-tabs--"+this._orientation),this.__buttonbar=new v.Buttonbar,"center",this.__pane_header.append(this.__buttonbar,"center"),this.__header=this.__pane_header.center(),v.Events.listen({type:"scroll",node:this.__header,call:(S=this,function(A){var z;return z=v.dom.getDimensions(S.__header),v.dom.setClass(S.__pane_header.DOM,"cui-tabs-pane-header--scroll-at-end",z.horizontalScrollbarAtEnd),v.dom.setClass(S.__pane_header.DOM,"cui-tabs-pane-header--scroll-at-start",z.horizontalScrollbarAtStart)})}),this.__overflowBtn=new v.Button({icon:"ellipsis_h",class:"cui-tab-header-button-overflow",icon_right:!1,size:"mini"===this._appearance?"mini":void 0,tooltip:{text:v.Tabs.defaults.overflow_button_tooltip},menu:{items:function(v){return function(){var A,z,L,T,k;for(A=[],z=function(z){return A.push({text:z.getText(),active:z===v.getActiveTab(),onClick:function(){return z.activate()}})},L=0,T=(k=v.__tabs).length;L-1&&(z=A):z=this.__tabs[A];return z},Tabs.prototype.getActiveTab=function(){return this.__active_tab},Tabs.prototype.activate=function(v){return this.getTab(v).activate(),this},Tabs.prototype.destroy=function(){for(;this.__tabs.length>0;)this.__tabs[0].destroy();return Tabs.__super__.destroy.call(this)},Tabs}(v.SimplePane)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    '},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Modal=function(z){function Modal(A){var z,L,T,k,x;Modal.__super__.constructor.call(this,A),k=v.Pane.getToggleFillScreenButton({tooltip:this._fill_screen_button_tooltip}),this.__addHeaderButton("fill_screen_button",k),x=this,L=function(v){return k.deactivate(),x.doCancel(v,!1,T)},T=this.__addHeaderButton("cancel",{class:"ez5-modal-close-button",icon:"close",tooltip:this._cancel_tooltip||v.Modal.defaults.cancel_tooltip,appearance:"normal",onClick:function(v){return L(v)}}),this.getPane().addClass("cui-pane--window"),this._onToggleFillScreen&&v.Events.listen({type:["start-fill-screen","end-fill-screen"],node:this.getPane(),call:function(v){return function(A){return v._onToggleFillScreen.call(v,A,v)}}(this)}),this._cancel_with_click_on_baskdrop&&this._cancel&&"auto"===this._fill_space&&(z=this.getBackdrop())&&v.Events.listen({type:"click",node:z,call:function(v){return L(v)}})}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Modal,z),Modal.defaults={cancel_tooltip:{text:"Close Dialog"}},Modal.prototype.initOpts=function(){return Modal.__super__.initOpts.call(this),this.mergeOpt("backdrop",{default:{policy:"modal",add_bounce_class:!0,content:null}}),this.addOpts({cancel:{check:Boolean},cancel_action:{default:"destroy",check:["destroy","hide"]},cancel_tooltip:{check:"PlainObject"},cancel_with_click_on_backdrop:{mandatory:!0,default:!0,check:Boolean},onCancel:{check:Function},fill_screen_button:{check:Boolean},fill_screen_button_tooltip:{check:"PlainObject"},onToggleFillScreen:{check:Function}}),this.mergeOpt("placement",{default:"c"})},Modal.prototype.readOpts=function(){return this.opts.cancel&&v.util.isPlainObject(this.opts.pane)&&(this.opts.pane.force_header=!0),Modal.__super__.readOpts.call(this)},Modal.prototype.__addHeaderButton=function(A,z){var L;if(this["_"+A])return L=v.util.isPlainObject(z)?new v.defaults.class.Button(z):z,v.util.assert(L instanceof v.Button,"Modal.__addHeaderButton","Button needs to be instance of Button",{btn:L}),v.util.assert(this.__pane instanceof v.SimplePane,"new "+this.__cls,"opts."+A+" can only be used if opts.pane is instance of SimplePane.",{pane:this.__pane,opts:this.opts}),this.append(L,"header_right"),L},Modal.prototype.__runOnAllButtons=function(A){var z,L,T,k,x;for(T=0,k=(x=v.dom.matchSelector(this.__layer.DOM,".cui-button,.cui-data-field")).length;T0||v.util.isFunction(A)}},footer_left:{},header_right:{},show_inline:{check:function(A){return v.dom.isNode(A)}}}),this.removeOpt("pane")},ConfirmationDialog.prototype.setPane=function(){return ConfirmationDialog.__super__.setPane.call(this,{padded:this._padded,force_header:!0,force_footer:!0})},ConfirmationDialog.prototype.readOpts=function(){return ConfirmationDialog.__super__.readOpts.call(this),this._pane={}},ConfirmationDialog.prototype.show=function(A){return this._show_inline?(v.dom.addClass(this.__layer,"cui-confirmation-dialog--show-inline"),v.dom.addClass(this.__show_inline,"cui-confirmation-dialog--has-show-inline"),v.dom.prepend(this._show_inline,this.__layer),v.Events.trigger({type:"viewport-resize"})):ConfirmationDialog.__super__.show.call(this,A)},ConfirmationDialog.prototype.hide=function(A){return this._show_inline?(v.dom.removeClass(this.__layer,"cui-confirmation-dialog--show-inline"),v.dom.removeClass(this.__show_inline,"cui-confirmation-dialog--has-show-inline"),v.dom.remove(this.__layer),v.Events.trigger({type:"viewport-resize"})):ConfirmationDialog.__super__.hide.call(this,A)},ConfirmationDialog.prototype.init=function(){var A,z,L,T,k,x;for(L in v.util.xor(this._html,v.util.xor(this._content,this._text))||(console.warn(this.__cls+".readOpts","Exactly on opts.content, opts.text, or opts.html needs to be set",{opts:this.opts}),this._text=""),this._title||this.addClass("cui-confirmation-dialog--no-title"),v.util.isEmpty(this._text)?v.util.isEmpty(this._html)?A=this._content:this.__label=A=new v.MultilineLabel({content:this._html}):this.__label=A=new v.MultilineLabel({markdown:this._markdown,markdown_opts:this._markdown_opts,text:this._text,icon:this._text_icon}),v.util.isEmpty(this._title)&&v.util.isNull(this._icon)||(T=new v.Label({text:this._title,icon:this._icon})),k=this.getPane(),x={header_left:T,header_right:this._header_right,content:A,footer_right:this._buttons,footer_left:this._footer_left})(z=x[L])&&k.append(z,L)},ConfirmationDialog.prototype.updateText=function(v){var A;return null!=(A=this.__label)&&A.setText(v),this},ConfirmationDialog.prototype.setText=function(A,z,L){return null==z&&(z=this._markdown),null==L&&(L=this._markdown_opts),this.__label=new v.MultilineLabel({markdown:z,markdown_opts:L,text:A,icon:this._text_icon}),this.setContent(this.__label)},ConfirmationDialog.prototype.getButtons=function(){var A,z,L,T,k,x,S,E;for(S=(E=this.getPane().getPaneAndKey("footer_right"))[0],k=E[1],A=[],T=0,x=(L=v.dom.findElements(S[k](),".cui-button")).length;T=0}})},Toaster.prototype.readOpts=function(){return 0===this.opts.show_ms&&void 0===this.opts.backdrop&&(this.opts.backdrop={policy:"modal"}),Toaster.__super__.readOpts.call(this),this._choices=[]},Toaster.prototype.open=function(){return this.__deferred||(Toaster.__super__.open.call(this),this._show_ms>0&&v.setTimeout({ms:this._show_ms,call:(A=this,function(){return A.hide(),A.__deferred.resolve()})})),this.__deferred.promise();var A},Toaster}(v.ConfirmationChoice),v.toaster=function(A){var z;return null==A&&(A={text:"CUI.toaster"}),(z=new v.Toaster(A)).open(),z}}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Spinner=function(z){function Spinner(){return Spinner.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Spinner,z),Spinner.prototype.initOpts=function(){return Spinner.__super__.initOpts.call(this),this.mergeOpt("text_icon",{default:"spinner"}),this.mergeOpt("show_ms",{default:0}),this.mergeOpt("backdrop",{default:{policy:"modal"}})},Spinner.prototype.open=function(){var A;return Spinner.__super__.open.call(this),this._show_ms>0&&v.setTimeout({ms:this._show_ms,call:(A=this,function(){return A.hide(),A.__deferred.resolve()})}),this.__deferred.promise()},Spinner}(v.Toaster),v.spinner=function(A){var z;return null==A&&(A={text:"CUI.spinner"}),(z=new v.Spinner(A)).open(),z}}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Confirm=function(z){function Confirm(){return Confirm.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Confirm,z),Confirm.prototype.initOpts=function(){return Confirm.__super__.initOpts.call(this),this.removeOpt("choices"),this.mergeOpt("text",{mandatory:!0}),this.addOpts({button_text_ok:{mandatory:!0,default:v.defaults.class.ConfirmationChoice.defaults.ok,check:String},button_text_cancel:{mandatory:!0,default:v.defaults.class.ConfirmationChoice.defaults.cancel,check:String},button_primary:{mandatory:!0,default:"ok",check:["ok","cancel"]}})},Confirm.prototype.readOpts=function(){return Confirm.__super__.readOpts.call(this),this._choices=[{text:this._button_text_cancel,cancel:!0,choice:"cancel",primary:"cancel"===this._button_primary},{text:this._button_text_ok,choice:"ok",primary:"ok"===this._button_primary}]},Confirm}(v.ConfirmationChoice),v.confirm=function(A){return new v.Confirm(A).open()}}).call(this,z(0))},function(v,A,z){(function(v){var bind=function(v,A){return function(){return v.apply(A,arguments)}},A={}.hasOwnProperty;v.Prompt=function(z){function Prompt(){return this.__checkOkBtn=bind(this.__checkOkBtn,this),Prompt.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Prompt,z),Prompt.prototype.initOpts=function(){return Prompt.__super__.initOpts.call(this),this.removeOpt("choices"),this.addOpts({default:{default:"",check:String},placeholder:{check:String},min_length:{mandatory:!0,default:1,check:function(v){return v>=0}}})},Prompt.prototype.readOpts=function(){var A,z;return Prompt.__super__.readOpts.call(this),A=this._text,delete this._text,this.__input=null,this.__data={input:this._default+""},this._content=new v.Form({fields:[{type:v.Output,multiline:!0,markdown:this._markdown,text:A},{type:v.Input,name:"input",placeholder:this._placeholder,data:this.__data,onConstruct:(z=this,function(v){z.__input=v}),onKeyup:function(v){return function(A,z){if(13===z.keyCode())return v.getButtons()[1].onClickAction(z)}}(this),onDataChanged:function(v){return function(){return v.__checkOkBtn()}}(this)}]}).start()},Prompt.prototype.getValue=function(){return this.__input.getValue()},Prompt.prototype.open=function(){var A,z;return this.__checkOkBtn(),A=new v.Deferred,Prompt.__super__.open.call(this).done((z=this,function(v){return A.resolve(z.__data.input)})).fail(A.reject),v.setTimeout({call:function(v){return function(){return v.__input.focus().selectAll()}}(this)}),A.promise()},Prompt.prototype.__checkOkBtn=function(){var v;return v=this.getButtons(),this.__data.input.trim().length>=this._min_length?v[1].enable():v[1].disable()},Prompt}(v.Confirm),v.prompt=function(A){return new v.Prompt(A).open()}}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Popover=function(v){function Popover(){return Popover.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Popover,v),Popover.prototype.initOpts=function(){return Popover.__super__.initOpts.call(this),this.mergeOpt("placement",{default:null}),this.mergeOpt("pointer",{default:"arrow"})},Popover.prototype.readOpts=function(){var v;if(Popover.__super__.readOpts.call(this),!(null!=(v=this.opts.backdrop)?v.policy:void 0))return this._backdrop.policy="click-thru"},Popover.prototype.knownPlacements=["s","e","w","ws","wn","n","se","ne","es","en","nw","sw"],Popover.prototype.forceFocusOnShow=function(){return!1},Popover}(v.Modal)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Tooltip=function(z){function Tooltip(A){var z;(Tooltip.__super__.constructor.call(this,A),v.util.assert(v.util.xor(this._text,this._content),"new "+this.__cls,"One of opts.text or opts.content must be set.",{opts:this.opts}),this.__dummyInst=function(){},this._on_hover)?(!0===this._on_hover||this._on_hover(this))&&(v.dom.addClass(this.__element,"cui-dom-element-has-tooltip-on-hover"),this.showTimeout()):this._on_click&&(v.dom.addClass(this.__element,"cui-dom-element-has-tooltip-on-click"),v.Events.listen({type:"click",instance:this.__dummyInst,node:this.__element,call:(z=this,function(v){v.hasModifierKey()||z.show()})}))}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Tooltip,z),Tooltip.prototype.initOpts=function(){Tooltip.__super__.initOpts.call(this),this.mergeOpts({element:{mandatory:!0}}),this.addOpts({text:{check:function(A){return v.util.isString(A)||v.util.isFunction(A)}},markdown:{mandatory:!0,default:!1,check:Boolean},content:{check:function(A){return v.util.isString(A)||v.util.isFunction(A)||v.util.isElement(A)||v.util.isArray(A)||v.util.isElement(null!=A?A.DOM:void 0)}},on_click:{mandatory:!0,default:!1,check:Boolean},on_hover:{check:function(A){return v.util.isBoolean(A)||v.util.isFunction(A)}}})},Tooltip.prototype.readOpts=function(){return this.opts.hasOwnProperty("on_hover")||(this.opts.on_hover=!this.opts.on_click),this.opts.on_click&&(this.opts.backdrop||(this.opts.backdrop={}),this.opts.backdrop.policy||(this.opts.backdrop.policy="click")),v.util.isUndef(this.opts.backdrop)&&(this.opts.backdrop=!1),this.opts.pointer="arrow",this.opts.check_for_element=!0,this.opts.placement=this.opts.placement||"n",Tooltip.__super__.readOpts.call(this),v.util.assert(!(this._on_click&&this._on_hover),"new CUI.Tooltip","opts.on_click and opts.on_hover cannot be used together.",{opts:this.opts}),this},Tooltip.current=null,Tooltip.prototype.setElement=function(){},Tooltip.prototype.focusOnHide=function(v){},Tooltip.prototype.focusOnShow=function(v){},Tooltip.prototype.showTimeout=function(){var A,z;return null!=(A=this.__mouseStillEvent)&&A.destroy(),this.__mouseStillEvent=new v.Events.MouseIsStill({ms:this._show_ms,node:this._element,call:(z=this,function(A){return z.show(A),v.Events.listen({type:["click","dblclick","mouseout"],capture:!0,node:z._element,only_once:!0,call:function(A){return v.setTimeout({ms:z._hide_ms,call:function(){return z.hide(A)}})}})})}),this.__mouseStillEvent},Tooltip.prototype.show=function(v){var A;return this.__static?Tooltip.__super__.show.call(this,v):this.fillContent().done((A=this,function(){return Tooltip.__super__.show.call(A,v)})),this},Tooltip.prototype.getElementOpenClass=function(){return null},Tooltip.prototype.fillContent=function(){var A,z,L,T,k;return(A=new v.Deferred).fail((k=this,function(){if(!k.__pane.isDestroyed())return k.__pane.empty("center")})),L=function(L){return function(T){return v.util.isEmpty(T)?A.reject():z(new v.Label({markdown:L._markdown,text:T,multiline:!0}))}}(this),z=function(v){return function(z){return!z||v.__pane.isDestroyed()?A.reject():(v.__pane.replace(z,"center"),A.resolve())}}(this),v.util.isFunction(this._text)?(T=this._text.call(this,this),v.util.isPromise(T)?(T.done((function(v){return L(v)})),T.fail((function(){return A.reject()}))):L(T)):v.util.isFunction(this._content)?(T=this._content.call(this,this),v.util.isPromise(T)?(T.done((function(v){return z(v)})),T.fail((function(v){return A.reject(v)}))):z(T)):v.util.isEmpty(this._text)?z(this._content):L(this._text),v.util.isFunction(this._text)||v.util.isFunction(this._content)?this.__static=!1:this.__static=!0,A.promise()},Tooltip.prototype.preventOverflow=function(){return Tooltip.__super__.preventOverflow.call(this),v.dom.width(this.DOM,this.__layer_dim._css_width)},Tooltip.prototype.resetLayer=function(){return Tooltip.__super__.resetLayer.call(this),v.dom.setStyleOne(this.DOM,"max-width",this.__viewport.width/2)},Tooltip.prototype.destroy=function(){var A;return null!=(A=this.__mouseStillEvent)&&A.destroy(),v.Events.ignore({instance:this.__dummyInst}),Tooltip.__super__.destroy.call(this),v.dom.removeClass(this.__element,"cui-dom-element-has-tooltip-on-hover cui-dom-element-has-tooltip-on-click")},Tooltip}(v.LayerPane)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty,z=[].indexOf||function(v){for(var A=0,z=this.length;A0&&void 0===this._colResize)&&(this.__colResize=!0),this.__colResize&&v.util.assert(this.fixedRowsCount>0,"new CUI.ListView","Cannot enable col resize with no fixed rows.",{opts:this.opts}),this.__maxCols=[],z=L=0,x=(S=this.__cols).length;L=this.fixedColsCount,"new CUI.ListView","maximized columns can only be in the non-fixed side of the ListView.",{opts:this.opts}),this.__maxCols.push(z));for(this.__maximize_horizontal&&0===this.__maxCols.length&&(k=this.__cols.length-1)>=this.fixedColsCount&&(this.__maxCols.push(k),this.__cols[k]="maximize"),this.rowsCount=0,this.colsCount=this.__cols.length,this.listViewCounter=v.ListView.counter++,this.__manualColWidths=[],this.__colspanRows={},this.colsOrder=[],z=T=0,E=this.colsCount;0<=E?TE;z=0<=E?++T:--T)this.colsOrder.push(z);return this.rowsOrder=[],this.__maxRowIdx=-1,this.__resetCellDims(),this.__cells=[],this.__rows=[],this.__lvClass="cui-lv-"+this.listViewCounter,this.__deferredRows=[],this.__isInDOM=!1,this.__doLayoutBound=(Y=this,function(){return Y.__doLayout()}),this.addClass("cui-list-view")},ListView.prototype.initOpts=function(){return ListView.__super__.initOpts.call(this),this.addOpts({colClasses:{check:"Array"},cols:{mandatory:!0,check:"Array"},fixedCols:{default:0,check:"Integer"},fixedRows:{default:0,check:"Integer"},rowMove:{default:!1,check:Boolean},rowMoveFixedRows:{default:0,check:"Integer"},rowMovePlaceholder:{default:!1,check:Boolean},colResize:{check:Boolean},selectableRows:{check:function(v){return!1===v||!0===v||"multiple"===v}},focusable:{check:Boolean,default:!1},onRowMove:{check:Function},onScroll:{check:Function},onColumnResize:{check:Function},header:{deprecated:!0},footer:{deprecated:!0},onSelect:{check:Function},onDeselect:{check:Function}})},ListView.prototype.readOpts=function(){return this.opts.header&&(this.opts.header_center=this.opts.header),this.opts.footer&&(this.opts.footer_left=this.opts.footer),ListView.__super__.readOpts.call(this),this.__selectableRows=this._selectableRows,this},ListView.prototype.destroy=function(){var A;return delete this.colsOrder,delete this.rowsOrder,delete this.__fillRowQ3,this.__isInDOM=null,v.scheduleCallbackCancel({call:this.__doLayoutBound}),null!=(A=this.listViewTemplate)&&A.destroy(),this.__layoutIsStopped=!1,ListView.__super__.destroy.call(this),this},ListView.prototype.getListViewClass=function(){return this.__lvClass},ListView.prototype.getGrid=function(){return this.grid},ListView.prototype.hasResizableColumns=function(){return this.__colResize},ListView.prototype.hasMovableRows=function(){return this._rowMove},ListView.prototype.isInactive=function(){return!!this.__inactive},ListView.prototype.setInactive=function(A,z){var L;return null==z&&(z="inactive"),this.__inactive=!!A,this.grid&&(this.__inactive?(v.dom.addClass(this.grid,z),this.__inactiveWaitBlock=new v.WaitBlock({element:this.grid,inactive:!0}).show()):(null!=(L=this.__inactiveWaitBlock)&&L.destroy(),this.__inactiveWaitBlock=null,v.dom.removeClass(this.grid,z))),this},ListView.prototype.render=function(){var A,z,L,T,k,x,S,E,Y,P,q;for(v.util.assert(!this.grid,"ListView.render","ListView already rendered",{opts:this.opts}),T=[],z=["cui-list-view-grid",this.__lvClass],1===this._fixedCols&&(this._rowMove||this._rowMovePlaceholder)&&z.push("cui-list-view-grid-fixed-col-has-only-row-move-handle"),this._rowMovePlaceholder&&z.push("cui-list-view-has-row-move-placeholder"),this._rowMove&&z.push("cui-list-view-has-row-move"),this.__maxCols.length>0&&z.push("cui-list-view-grid-has-maximized-columns"),this.fixedColsCount>0&&z.push("cui-list-view-grid-has-fixed-cols"),this.fixedRowsCount>0&&z.push("cui-list-view-grid-has-fixed-rows"),T.push('
    '),T.push(""),q=this,A=function(v){var A,L,k,x;if(q.__isFocusable(),T.push('
    '),2===v||3===v){for(T.push('
    '),A=k=(L=q.__getColsFromAndTo(v)).from,x=L.to;k<=x;A=k+=1)z=q.__getColClass(A),T.push('
    ');T.push("
    ")}T.push("
    ")},this.fixedColsCount>0&&this.fixedRowsCount>0?(T.push('
    '),A(0),A(1),T.push("
    "),T.push('
    '),A(2),A(3),T.push("
    ")):this.fixedColsCount>0?(T.push('
    '),A(2),A(3),T.push("
    ")):this.fixedRowsCount>0?(T.push('
    '),A(1),T.push("
    "),T.push('
    '),A(3),T.push("
    ")):A(3),T.push("
    "),(S=this.center()).innerHTML=T.join(""),this.grid=S.firstChild,this.quadrant=[v.dom.matchSelector(S,".cui-list-view-grid-quadrant-0")[0],v.dom.matchSelector(S,".cui-list-view-grid-quadrant-1")[0],v.dom.matchSelector(S,".cui-list-view-grid-quadrant-2")[0],v.dom.matchSelector(S,".cui-list-view-grid-quadrant-3")[0]],this.styleElement=v.dom.matchSelector(S,"style")[0],this.__fillRowQ3=v.dom.matchSelector(this.grid,".cui-list-view-grid-fills-3")[0],this.__topQuadrants=v.dom.matchSelector(S,".cui-list-view-grid-inner-top")[0],0===this.fixedColsCount&&0===this.fixedRowsCount?this.__bottomQuadrants=this.quadrant[3]:this.__bottomQuadrants=v.dom.matchSelector(S,".cui-list-view-grid-inner-bottom")[0],this.__fillCells=[],L=k=0,E=this.colsCount-1;k<=E;L=k+=1)this.__fillCells.push(v.dom.matchSelector(S,".cui-list-view-grid-fill-col-"+L)[0]);return x=function(v){return function(){return v.__syncScrolling(),"function"==typeof v._onScroll?v._onScroll():void 0}}(this),v.Events.listen({node:this.quadrant[3],type:"scroll",call:x}),this.__currentScroll={top:0,left:0},this.hasSelectableRows()&&(Y="."+this.__lvClass+"-quadrant > .cui-lv-tr-outer",v.Events.listen({type:["click"],node:this.DOM,selector:Y,call:function(A){return function(z){var L;(L=v.dom.data(z.getCurrentTarget(),"listViewRow")).isSelectable()&&(z.stopImmediatePropagation(),A.selectRow(z,L))}}(this)})),this.__isFocusable()&&(P="."+this.__lvClass+"-quadrant > .cui-lv-tr-outer:focus",v.Events.listen({type:["keydown"],node:this.DOM,selector:P,call:function(A){return function(z){var L,T;"Return"!==(L=z.getKeyboard())&&"Space"!==L||(T=v.dom.data(z.getCurrentTarget(),"listViewRow")).isSelectable()&&(z.stopImmediatePropagation(),A.selectRow(z,T))}}(this)})),this.quadrant[2]&&v.Events.listen({type:"wheel",node:this.quadrant[2],call:function(v){return function(A){if(100,A.wheelDeltaY()>0){if(v.quadrant[3].scrollTop===v.quadrant[3].scrollHeight-v.quadrant[3].offsetHeight)return;v.quadrant[3].scrollTop+=100}else{if(!(A.wheelDeltaY()<0))return;if(0===v.quadrant[3].scrollTop)return;v.quadrant[3].scrollTop-=100}A.preventDefault(),x()}}(this)}),v.Events.listen({type:"viewport-resize",node:this.grid,call:function(v){return function(A,z){v.__hasLayout&&v.__doLayout({resetRows:!(!z.css_load&&!z.tab)})}}(this)}),v.Events.listen({type:"content-resize",node:this.DOM,call:function(A){return function(z,T){var k,x;A.__isInDOM&&(k=v.dom.closest(z.getNode(),".cui-lv-td"))&&(z.stopPropagation(),x=parseInt(k.getAttribute("row")),L=parseInt(k.getAttribute("col")),A.fixedColsCount>0&&v.dom.getAttribute(k.parentNode,"cui-lv-tr-unmeasured")||(A.__resetRowDim(x),A.__scheduleLayout()))}}(this)}),this.isInactive()&&this.setInactive(!0),this.appendDeferredRows(),v.dom.waitForDOMInsert({node:this.DOM}).done(function(v){return function(){return v.__isInDOM=!0,v.__doLayout()}}(this)),this.DOM},ListView.prototype.__getScrolling=function(){return{top:this.quadrant[3].scrollTop,left:this.quadrant[3].scrollLeft,height:this.quadrant[3].scrollHeight}},ListView.prototype.getScrollingContainer=function(){return this.quadrant[3]},ListView.prototype.__setScrolling=function(v){return this.quadrant[3].scrollTop=v.top,this.quadrant[3].scrollLeft=v.left},ListView.prototype.__syncScrolling=function(){return this.__currentScroll=this.__getScrolling(),this.fixedColsCount>0&&(this.quadrant[2].scrollTop=this.__currentScroll.top),this.fixedRowsCount>0&&(this.quadrant[1].scrollLeft=this.__currentScroll.left),this.__fillRowQ3&&(this.__fillRowQ3.style.width="",this.__fillRowQ3.style.width=this.__getValue(this.__fillRowQ3.scrollWidth)),this},ListView.prototype.__setMargins=function(){var v,A,z,L;return L=this.quadrant[3].offsetWidth-this.quadrant[3].clientWidth,v=this.quadrant[3].offsetHeight-this.quadrant[3].clientHeight,null!=(A=this.quadrant[1])&&(A.style.marginRight=this.__getValue(L)),null!=(z=this.quadrant[2])&&(z.style.marginBottom=this.__getValue(v)),this},ListView.prototype.getSelectedRows=function(){var v,A,z,L,T,k;for(k=[],v=0,A=(L=this.rowsOrder).length;v0)for(S=this.getSelectedRows().pop().getRowIdx(),x=z.getRowIdx();x!==S;)this.getListViewRow(x).select(A),x>S?x--:x++;else T(!1);else E();return k.promise()},ListView.prototype.getCellByTarget=function(A){var z;return v.dom.is(A,".cui-lv-td")?((z={col_i:parseInt(A.getAttribute("col")),row_i:parseInt(A.getAttribute("row"))}).display_col_i=this.getDisplayColIdx(z.col_i),z.display_row_i=this.getDisplayRowIdx(z.row_i),z):null},ListView.prototype.getRowMoveTool=function(A){return null==A&&(A={}),new v.ListViewRowMove(A)},ListView.prototype.getListViewRow=function(A){return v.dom.data(this.getRow(A)[0],"listViewRow")},ListView.prototype.getDisplayColIdx=function(v){return this.colsOrder.indexOf(parseInt(v))},ListView.prototype.getDisplayRowIdx=function(v){return this.rowsOrder.indexOf(parseInt(v))},ListView.prototype.getColIdx=function(A){return v.util.assert(v.util.isArray(this.colsOrder),"ListView["+this.listViewCounter+"].getColIdx","colsOrder Array is missing",{this:this,display_col_i:A}),this.colsOrder[A]},ListView.prototype.getRowIdx=function(v){return this.rowsOrder[v]},ListView.prototype.moveInOrderArray=function(A,z,L,T){var k,x;return k=L.indexOf(A),x=L.indexOf(z),v.util.moveInArray(k,x,L,T),null},ListView.prototype.moveRow=function(A,z,L,T){var k,x,S,E,Y,P,q,F;for(null==L&&(L=!1),null==T&&(T=!0),v.util.assert(A>=this.fixedRowsCount&&z>=this.fixedRowsCount,"ListView.moveRow","from_i and to_i must not be in flexible area of the list view",{from_i:A,to_i:z,fixed_i:this.fixedRowsCount}),S=L?v.dom.insertAfter:v.dom.insertBefore,E=Y=0,P=(q=this.getRow(A)).length;Y-1,"ListView.insertRowAfter","ListView #"+this.listViewCounter+": Row "+A+" not found.",{row_i:A,row:z,rowsCount:this.rowsCount}),L=++this.__maxRowIdx,this.rowsCount++,this.rowsOrder.splice(T+1,0,L),this.__addRow(L,z,"after",A)},ListView.prototype.insertRowBefore=function(A,z){var L,T,k;return v.util.assert(!this.isDestroyed(),"ListView.insertRowBefore","ListView #"+this.listViewCounter+" is already destroyed."),0===(k=this.getDisplayRowIdx(A))?this.prependRow(z):(L=this.getRowIdx(k-1),T=++this.__maxRowIdx,this.rowsCount++,this.rowsOrder.splice(k,0,T),this.__addRow(T,z,"after",L))},ListView.prototype.removeAllRows=function(){var v,A,z,L;for(v=0,A=(z=this.rowsOrder.slice(0)).length;v=0,"ListView.removeRow","row_i must be >= 0",{row_i:A}),z=this.getDisplayRowIdx(A),v.util.assert(z>-1,"ListView.removeRow","display_row_id not found for row_i",{row_i:A}),this.rowsOrder.splice(z,1),this.rowsCount--,delete this.__colspanRows[A],L=0,T=(k=this.getRow(A)).length;L0?(q=!0,L(k,at),P.style.setProperty("width",at+"px"),P.style.setProperty("flex","0 0 auto")):(z.call(this.__maxCols,k)>=0&&(F=!0),P.style.removeProperty("width"),P.style.removeProperty("flex"));for(Y=U=0,et=(dt=this.__fillCells).length;U0)for(st=0,it=(mt=[0,2]).length;st "+zt)).length;ct "+zt)).length;lt "+zt)).length;ut=1,"ListView.__addRows","anchor row "+bt+" for mode "+L+" not found.",{rows:this.__rows,row_i:bt,mode:k,mode_used:L})}for(_t=(bt=tt=A)+z.length-1;tt<=_t;bt=tt+=1)for(this.__cells[bt]=[],this.__rows[bt]=[],et=0,ot=(ft=this.__getQuadrants(bt)).length;et0?'cui-lv-tr-unmeasured="'+this.listViewCounter+'"':"",U[dt].push('
    '),F=it=V.from,mt=V.to;it<=mt;F=it+=1)q=this.getColIdx(F),(Mt=this.__getColWidth(bt,q))[0],Mt[1],P=this.__getColClass(q),U[dt].push('
    ');U[dt].push("
    ")}for(At=this,H=function(A){var z,L,T,k,x,S,E,Y,P,q;for(Y=0,S=(z=v.dom.matchSelector(A,".cui-lv-td")).length;Y0&&(X=this.quadrant[1].childNodes,this.fixedRowsCount0?[0,1]:[1],ct=0,gt=X.length-this.fixedRowsCount;ct=this.fixedRowsCount+this._rowMoveFixedRows?A.getColumns()[0]instanceof v.ListViewColumnRowMoveHandle||A.prependColumn(new v.ListViewColumnRowMoveHandle):A.getColumns()[0]instanceof v.ListViewColumnRowMoveHandlePlaceholder||A.prependColumn(new v.ListViewColumnRowMoveHandlePlaceholder):this._rowMovePlaceholder&&(A.getColumns()[0]instanceof v.ListViewColumnRowMoveHandlePlaceholder||A.prependColumn(new v.ListViewColumnRowMoveHandlePlaceholder)),E=0,x=P=0,H=(L=A.getColumns()).length;P1)for(T.setAttribute("colspan",S),this.__colspanRows[z]||(this.__colspanRows[z]={}),this.__colspanRows[z][x+E]=S,q=1,U=S;1<=U?qU;1<=U?++q:--q)v.dom.remove(this.__cells[z][x+E+1]),delete this.__cells[z][x+E+1],E++;v.util.assert(L.length+E<=this.colsCount,"ListView.addRow","ListViewRow provided more columns ("+(L.length+E)+") than colsCount ("+this.colsCount+") is set to",{colsCount:this.colsCount,cols:L}),A.addedToListView(this.__rows[z])},ListView.prototype.__getColClass=function(A){var L,T,k;return T=null!=(k=this.__colClasses)?k[A]:void 0,L=[],v.util.isArray(T)?L.push.apply(L,T):v.util.isEmpty(T)||L.push(T),z.call(this.__maxCols,A)>=0&&L.push("cui-lv-td-max"),L.join(" ")},ListView.prototype.__resetRowDim=function(A){var z,L,T,k,x,S,E,Y;if(delete this.__cellDims[A],this.fixedColsCount>0&&this.__rows[A])for(T=0,x=(S=this.__rows[A]).length;T=E;L=0<=E?++k:--k)z=this.getColIdx(L),this.__resetCellStyle(A,z);return this},ListView.prototype.__resetCellStyle=function(A,z){var L,T;return(L=null!=(T=this.__cells[A])?T[z]:void 0)&&v.dom.setStyleOne(L,"cssText",""),L},ListView.prototype.__resetColWidth=function(v){var A,z,L,T,k,x,S,E;for(L=0,k=(x=this.__cellDims).length;L=S;z=0<=S?++T:--T)E=this.getRowIdx(z),this.__resetCellStyle(E,v);return this.__fillCells[v].style.cssText="",this},ListView.prototype.__resetCellDims=function(v){return this.__cellDims=[],this.__colWidths=[]},ListView.prototype.__isMaximizedCol=function(v){return z.call(this.__maxCols,v)>=0&&!this.__manualColWidths.hasOwnProperty(v)},ListView.counter=0,ListView.prototype.__getColWidth=function(v,A){var z,L,T,k,x,S,E;if((T=null!=(S=this.__colspanRows[v])?S[A]:void 0)>1){for(L=0,x=!1,z=k=A,E=A+T-1;k<=E;z=k+=1)this.__isMaximizedCol(z)&&(x=!0),L+=this.__colWidths[z];return[L,x]}return[this.__colWidths[A],this.__isMaximizedCol(A)]},ListView}(v.SimplePane)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.ListViewTree=function(z){function ListViewTree(A){var z,L;this.__actionOnNode=(z=this.__actionOnNode,L=this,function(){return z.apply(L,arguments)}),ListViewTree.__super__.constructor.call(this,A),v.util.assert(this.root instanceof v.ListViewTreeNode,"new CUI.ListViewTree","opts.root must be instance of ListViewTreeNode",{opts:this.opts}),this.root.setTree(this)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ListViewTree,z),ListViewTree.defaults={arrow_down:"fa-caret-down",arrow_right:"fa-caret-right"},ListViewTree.prototype.initOpts=function(){return ListViewTree.__super__.initOpts.call(this),this.addOpts({rowMoveWithinNodesOnly:{check:Boolean},children:{check:Array},selectable:{deprecated:!0,check:Boolean},no_hierarchy:{default:!1,check:Boolean},root:{check:function(A){return A instanceof v.ListViewRow}},onOpen:{check:Function},onClose:{check:Function},onBeforeSelect:{check:Function}})},ListViewTree.prototype.readOpts=function(){return ListViewTree.__super__.readOpts.call(this),void 0!==this._selectable&&(v.util.assert(void 0===this._selectableRows,"new CUI.ListViewTree","opts.selectable cannot be used with opts.selectableRows, use selectableRows only.",{opts:this.opts}),this.__selectableRows=this._selectable),this},ListViewTree.prototype.getRowMoveTool=function(A){return null==A&&(A={}),A.rowMoveWithinNodesOnly=this._rowMoveWithinNodesOnly,new v.ListViewTreeRowMove(A)},ListViewTree.prototype.initListView=function(){var A;return ListViewTree.__super__.initListView.call(this),this._root?this.root=this._root:(A={},this._children?A.children=this._children:this._getChildren?A.getChildren=this._getChildren:A.children=[],this.root=new v.ListViewTreeNode(A)),this},ListViewTree.prototype.isSelectable=function(){return!!this.__selectableRows},ListViewTree.prototype.isNoHierarchy=function(){return this._no_hierarchy},ListViewTree.prototype.triggerNodeDeselect=function(A,z){var L;return L={ev:A,node:z,listView:this},"function"==typeof this._onDeselect&&this._onDeselect(A,L),v.Events.trigger({node:this,type:"row_deselected"})},ListViewTree.prototype.triggerNodeSelect=function(A,z){var L;return L={ev:A,node:z,listView:this},"function"==typeof this._onSelect&&this._onSelect(A,L),v.Events.trigger({node:this,type:"row_selected"})},ListViewTree.prototype.render=function(){var A,z,L;return L=this,A=function(A){var z;(z=v.dom.data(v.dom.closest(A.getCurrentTarget(),".cui-lv-tree-node"),"listViewRow"))instanceof v.ListViewTreeNode&&!z.isLoading()&&!z.isLeaf()&&(A.stopImmediatePropagation(),A instanceof v.DragoverScrollEvent?A.getCount()%50==0&&L.toggleNode(A,z):L.toggleNode(A,z))},ListViewTree.__super__.render.call(this),v.Events.listen({node:this.DOM,selector:".cui-tree-node-handle",capture:!0,type:["click","dragover-scroll"],call:function(v){return A(v)}}),v.Events.listen({node:this.DOM,selector:".cui-lv-tree-node",type:["click"],call:function(v){return A(v)}}),this._no_hierarchy?v.dom.addClass(this.grid,"cui-list-view-tree-no-hierarchy"):v.dom.addClass(this.grid,"cui-list-view-tree-hierarchy"),this.__isFocusable()&&(z="."+this.__lvClass+"-quadrant > .cui-lv-tr-outer:focus",v.Events.listen({type:["keydown"],node:this.DOM,selector:z,call:function(A){return function(z){var L,T;(T=v.dom.data(z.getCurrentTarget(),"listViewRow")).isSelectable()&&(L=function(v){var z;z=v.getRowIdx(),A.getRow(z)[0].focus()},"Right"!==z.getKeyboard()||T.isOpen()?"Left"===z.getKeyboard()&&T.isOpen()&&T.close().done((function(){return L(T)})):T.open().done((function(){return L(T)})))}}(this)})),this.DOM},ListViewTree.prototype.toggleNode=function(v,A){A.isOpen()?this.__runTrigger(v,"close",A):this.__runTrigger(v,"open",A)},ListViewTree.prototype.__runTrigger=function(v,A,z){v.ctrlKey()||v.metaKey()?this.__actionOnNode(v,A+"Recursively",z):this.__actionOnNode(v,A,z)},ListViewTree.prototype.__actionOnNode=function(A,z,L){var T,k,x,S;return T=null,x=v.setTimeout({ms:500,call:function(){return L.showSpinner(),x=null,T=!0}}),this.stopLayout(),(k=L[z]()).done((S=this,function(){switch(z){case"open":return"function"==typeof S._onOpen?S._onOpen(A,{node:L}):void 0;case"close":return"function"==typeof S._onClose?S._onClose(A,{node:L}):void 0}})),k.always(function(A){return function(){return x&&v.clearTimeout(x),T&&L.hideSpinner(),A.startLayout(),v.Events.trigger({type:"content-resize",node:A.DOM})}}(this)),k},ListViewTree.prototype.deselectRow=function(A,z,L){return"multiple"===this.__selectableRows||z===L?ListViewTree.__super__.deselectRow.call(this,A,z,L):v.resolvedPromise()},ListViewTree.prototype.getNodesForMove=function(A,z,L){var T,k,x;return T=this.getListViewRow(A),x=this.getListViewRow(z),v.util.assert(T,"ListViewTree.moveRow","from_i node not found",{from_i:A}),v.util.assert(x,"ListViewTree.moveRow","to_i node not found",{to_i:z}),(k=T.father!==x.father||x.is_open&&L?x.is_open&&L?x:x.father:null)===T.father&&(k=null),[T,x,k]},ListViewTree.prototype.moveRow=function(A,z,L){var T,k,x,S,E,Y,P;return E=this.getNodesForMove(A,z,L),k=E[0],Y=E[1],S=E[2],x=k.moveNodeBefore(Y,S,L),v.util.assert(v.util.isPromise(x),"ListViewTree.moveRow","moveNodeBefore needs to return a Promise",{promise:x}),T=new v.Deferred,x.done((P=this,function(){var x,E,q;return x=P.getDisplayRowIdx(A),E=P.getDisplayRowIdx(z),ListViewTree.__super__.moveRow.call(P,A,z,L,!1),k.father!==Y.father||Y.is_open&&L?(k.father.removeChild(k),Y.is_open&&L?(Y.children.splice(0,0,k),k.setFather(Y)):(L?Y.father.children.splice(Y.getChildIdx()+1,0,k):Y.father.children.splice(Y.getChildIdx(),0,k),k.setFather(Y.father))):v.util.moveInArray(k.getChildIdx(),Y.getChildIdx(),k.father.children,L),q=[k.reload()],S&&q.push(S.reload()),v.whenAll(q).done((function(){return"function"==typeof P._onRowMove&&P._onRowMove(x,E,L),v.Events.trigger({node:P.grid,type:"row_moved",info:{from_i:A,to_i:z,after:L}}),T.resolve()})).fail(T.reject)})).fail(T.reject),T.promise()},ListViewTree.prototype.getRootChildren=function(){return this.root.children},ListViewTree.prototype.getSelectedNode=function(v){return null==v&&(v="selectedNode"),this.root[v]},ListViewTree.prototype.prependNode=function(v){return this.addNode(v,!1)},ListViewTree.prototype.addNode=function(A,z){var L;return null==z&&(z=!0),v.util.assert(A instanceof v.ListViewTreeNode,v.util.getObjectClass(this)+".addNode","Node must be instance of ListViewTreeNode",{node:A}),L=this.root.addNode(A,z),v.Events.trigger({node:this,type:"row_added",info:{node:A}}),L},ListViewTree.prototype.openTreeNodeByRowDisplayIndex=function(A){var z,L;return L=this.getRowIdx(A),z=this.getRow(L),v.dom.data(z[0],"listViewRow").open()},ListViewTree}(v.ListView),v.Events.registerEvent({bubble:!0,type:["row_removed","row_added","row_moved","row_selected","row_deselected"]}),v.defaults.class.ListViewTree=v.ListViewTree}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.ListViewRow=function(z){function ListViewRow(){return ListViewRow.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ListViewRow,z),ListViewRow.prototype.initOpts=function(){return ListViewRow.__super__.initOpts.call(this),this.addOpts({columns:{check:Array},selectable:{check:Boolean},class:{check:String}})},ListViewRow.prototype.readOpts=function(){var v,A,z,L,T;if(ListViewRow.__super__.readOpts.call(this),this._columns)for(this.columns=this._columns,z=A=0,L=(T=this.columns).length;A0}},getChildren:{check:Function}})},ListViewTreeNode.prototype.readOpts=function(){return ListViewTreeNode.__super__.readOpts.call(this),this.setColspan(this._colspan),this._children&&(this.children=this.opts.children,this.initChildren()),this._open?this.do_open=!0:this.do_open=!1,this.is_open=!1,this.html=this._html,this.__loadingDeferred=null},ListViewTreeNode.prototype.setColspan=function(v){this.colspan=v},ListViewTreeNode.prototype.getColspan=function(){return this.colspan},ListViewTreeNode.prototype.getChildren=null,ListViewTreeNode.prototype.hasChildren=null,ListViewTreeNode.prototype.isLeaf=function(){return!this.children&&(!this.opts.getChildren&&(!this.getChildren||!!(this.opts.leaf||this.hasChildren&&!this.hasChildren())))},ListViewTreeNode.prototype.getClass=function(){var v;return v=ListViewTreeNode.__super__.getClass.call(this),v+=" cui-lv-tree-node",this.isLeaf()||(v+=" cui-lv-tree-node--is-branch"),v},ListViewTreeNode.prototype.isSelectable=function(){return("function"==typeof this.getTree?this.getTree().isSelectable():void 0)&&this.__selectable&&!this.isRoot()},ListViewTreeNode.prototype.getFather=function(){return this.father},ListViewTreeNode.prototype.setFather=function(A){var L;return v.util.assert(null===A||A instanceof v.ListViewTreeNode,v.util.getObjectClass(this)+".setFather","father can only be null or instanceof CUI.ListViewTreeNode",{father:A}),v.util.assert(A!==this,v.util.getObjectClass(this)+".setFather","father cannot be self",{node:this,father:A}),A&&v.util.assert(z.call(A.getPath(!0),this)<0,v.util.getObjectClass(this)+".setFather","father cannot any of the node's children",{node:this,father:A}),!A&&this.selected&&(this.setSelectedNode(null),this.selected=!1),this.father&&!A?(L=this.getTree(),this.father=A,L&&this.setTree(L)):this.father=A,this},ListViewTreeNode.prototype.isRoot=function(){return!this.father},ListViewTreeNode.prototype.setTree=function(A){return this.tree=A,v.util.assert(this.isRoot(),v.util.getObjectClass(this)+".setTree","node must be root node to set tree",{tree:this.tree,opts:this.opts}),v.util.assert(this.tree instanceof v.ListViewTree,v.util.getObjectClass(this)+".setTree","tree must be instance of ListViewTree",{tree:this.tree,opts:this.opts})},ListViewTreeNode.prototype.getRoot=function(A){return null==A&&(A=0),v.util.assert(A<100,"ListViewTreeNode.getRoot","Recursion detected."),this.father?this.father.getRoot(A+1):this},ListViewTreeNode.prototype.dump=function(v,A){var z,L,T,k,x,S;for(null==v&&(v=[]),null==A&&(A=0),k=[],z=0,x=A;0<=x?zx;0<=x?++z:--z)k.push(" ");if(v.push(k.join("")+this.dumpString()),this.children)for(L=0,T=(S=this.children).length;L-1,v.util.getObjectClass(this)+".getChildIdx()","Node not found in fathers children Array",{node:this,father:this.father,"father.children":this.father.children}),A)},ListViewTreeNode.prototype.getNodeId=function(v){var A,z;return null==v&&(v=!0),z=this.getPath(v),function(){var v,L,T;for(T=[],v=0,L=z.length;vthis.father.children.length-1?this.father.addNode(v):this.father.addNode(v,A)},ListViewTreeNode.prototype.setChildren=function(v){this.children=v,this.initChildren()},ListViewTreeNode.prototype.initChildren=function(){var A,z,L,T,k,x,S,E,Y,P;for(L=T=0,x=(Y=this.children).length;T1&&(z=0===(L=this.getChildIdx())?1:Math.min(T.length-2,L-1)),null!==z&&(S=T[z])),this.isSelected()?this.deselect().fail(k.reject).done(x):x(),k.promise()},ListViewTreeNode.prototype.removeChild=function(A,z){return null==z&&(z=!1),v.util.removeFromArray(A,this.children),0!==this.children.length||this.isRoot()||(this.is_open=!1,z||(this.children=null)),this.update(),A.setFather(null)},ListViewTreeNode.prototype.deselect=function(A,z){return this.getTree().isSelectable()?this.check_deselect(A,z).done((L=this,function(){return L.setSelectedNode(),L.removeSelectedClass(),L.selected=!1,L.getTree().triggerNodeDeselect(A,L)})):v.resolvedPromise();var L},ListViewTreeNode.prototype.allowRowMove=function(){return!0},ListViewTreeNode.prototype.check_deselect=function(A,z){return v.resolvedPromise()},ListViewTreeNode.prototype.isSelected=function(){return!!this.selected},ListViewTreeNode.prototype.addSelectedClass=function(){return this.getTree().rowAddClass(this.getRowIdx(),v.ListViewRow.defaults.selected_class)},ListViewTreeNode.prototype.removeSelectedClass=function(){return this.getTree().rowRemoveClass(this.getRowIdx(),v.ListViewRow.defaults.selected_class)},ListViewTreeNode.prototype.setSelectedNode=function(v,A){return null==v&&(v=null),null==A&&(A=this.getSelectedNodeKey()),this.getRoot()[this.getSelectedNodeKey()]=v},ListViewTreeNode.prototype.getSelectedNode=function(v){var A;return null==v&&(v=this.getSelectedNodeKey()),(null!=(A=this.getRoot())?A[v]:void 0)||null},ListViewTreeNode.prototype.getSelectedNodeKey=function(){return"selectedNode"},ListViewTreeNode.prototype.select=function(A){var z,L,T,k,x;return z=new v.Deferred,A&&("function"==typeof this.getTree?this.getTree().isSelectable():void 0)&&"function"==typeof A.stopPropagation&&A.stopPropagation(),z.done((x=this,function(){return x.getTree().triggerNodeSelect(A,x)})),this.isSelectable()?this.isSelected()?z.resolve().promise():(L=function(v){return function(){var A;return"function"==typeof(A=v.getTree())._onBeforeSelect&&A._onBeforeSelect(v),v.setSelectedNode(v),v.openUpwards().done((function(){return v.addSelectedClass(),v.selected=!0,z.resolve()})).fail(z.reject)}}(this),(k=this.getSelectedNode())&&!0===(null!=(T=this.getTree())?T.__selectableRows:void 0)?k.check_deselect(A,this).done(function(v){return function(){return k.deselect(null,v).done((function(){return L()})).fail(z.reject)}}(this)).fail(z.reject):L(),z.promise()):z.reject().promise()},ListViewTreeNode.prototype.openUpwards=function(A){var z,L,T;return null==A&&(A=0),z=new v.Deferred,this.isRoot()?this.isLoading()?this.getLoading().done((T=this,function(){return z.resolve(T)})).fail(function(v){return function(){return z.reject(v)}}(this)):this.is_open?z.resolve(this):z.reject(this):((L=this.father.openUpwards(A+1)).done(function(v){return function(){return!v.is_open&&A>0?(v.isLoading()?v.getLoading():v.open()).done((function(){return z.resolve(v)})).fail((function(){return z.reject(v)})):z.resolve(v)}}(this)),L.fail(function(v){return function(){return v.do_open=!0,0===A?z.resolve(v):z.reject(v)}}(this))),z.promise()},ListViewTreeNode.prototype.level=function(){return this.isRoot()?0:this.father.level()+1},ListViewTreeNode.prototype.renderContent=function(){return v.util.isFunction(this.html)?this.html.call(this.opts,this):this.html?this.html:new v.EmptyLabel({text:""}).DOM},ListViewTreeNode.prototype.update=function(A){var z,L;return null==A&&(A=!1),A||this.__is_rendered&&!this.isRoot()?(L=this.getTree(),z=null!=L?L.stopLayout():void 0,this.replaceSelf().done((function(){if(z)return L.startLayout()}))):v.resolvedPromise()},ListViewTreeNode.prototype.reload=function(){return v.util.assert(!this.isLoading(),"ListViewTreeNode.reload","Cannot reload node, during opening...",{node:this,tree:this.getTree()}),this.isRoot()?this.replaceSelf():this.is_open?(this.close(),this.do_open=!0,this.open()):(this.opts.children&&(this.children=null),this.update())},ListViewTreeNode.prototype.showSpinner=function(){return this.__is_rendered&&(v.dom.empty(this.__handleDiv),v.dom.append(this.__handleDiv,new v.Icon({icon:"spinner"}).DOM)),this},ListViewTreeNode.prototype.hideSpinner=function(){return this.__is_rendered&&(v.dom.empty(this.__handleDiv),this.__handleIcon&&v.dom.append(this.__handleDiv,new v.Icon({icon:this.__handleIcon}).DOM)),this},ListViewTreeNode.prototype.render=function(){var A,z,L,T,k,x,S,E,Y,P;for(v.util.assert(!this.isRoot(),"ListViewTreeNode.render","Unable to render root node."),this.removeColumns(),k=v.dom.div("cui-tree-node level-"+this.level()),this.__is_rendered=!0,x=1,Y=this.level();x0}}})},ListViewTreeHeaderNode.prototype.render=function(){var A,z,L,T,k;for(this.__is_rendered=!0,L=z=0,T=(k=this._headers).length;z1?A:1},ListViewColumn}(v.Element)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.ListViewColumnEmpty=function(v){function ListViewColumnEmpty(){return ListViewColumnEmpty.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ListViewColumnEmpty,v),ListViewColumnEmpty.prototype.render=function(){},ListViewColumnEmpty}(v.ListViewColumn)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.ListViewHeaderColumn=function(z){function ListViewHeaderColumn(){return ListViewHeaderColumn.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ListViewHeaderColumn,z),ListViewHeaderColumn.prototype.initOpts=function(){ListViewHeaderColumn.__super__.initOpts.call(this),this.removeOpt("text"),this.addOpts({spacer:{check:Boolean},rotate_90:{check:Boolean},label:{check:function(A){return!!(v.util.isPlainObject(A)||A instanceof v.Label)}}})},ListViewHeaderColumn.prototype.readOpts=function(){return ListViewHeaderColumn.__super__.readOpts.call(this),this._label instanceof v.Label?this.__label=this._label:this._label?(this._label.rotate_90=this._rotate_90,this.__label=new v.defaults.class.Label(this._label)):void 0},ListViewHeaderColumn.prototype.setElement=function(A){var z,L;return this.__element=A,ListViewHeaderColumn.__super__.setElement.call(this,this.__element),this._rotate_90&&this.addClass("cui-lv-td-rotate-90"),this.addClass("cui-lv-th"),(z=this.getRow().getListView()).hasResizableColumns()?("fixed"===z.getColdef(this.getColumnIdx())||(L=v.dom.element("DIV",{class:"cui-lv-col-resize-handle"}),new v.ListViewColResize({element:L,row:this.getRow(),column:this}),v.dom.append(this.__element,L)),this.__element):this.__element},ListViewHeaderColumn.prototype.render=function(){var A;return A=this._spacer?[v.dom.div("cui-tree-node-spacer")]:[],this._element?A.push(this._element):this.__label&&A.push(this.__label),A},ListViewHeaderColumn}(v.ListViewColumn)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.ListViewColumnRowMoveHandle=function(z){function ListViewColumnRowMoveHandle(){return ListViewColumnRowMoveHandle.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ListViewColumnRowMoveHandle,z),ListViewColumnRowMoveHandle.prototype.setElement=function(A){var z;ListViewColumnRowMoveHandle.__super__.setElement.call(this,A),(z=this.getRow()).isMovable()&&(v.ListView.defaults.row_move_handle_tooltip&&new v.Tooltip({text:v.ListView.defaults.row_move_handle_tooltip,element:A}),z.getListView().getRowMoveTool({row:z,element:A}))},ListViewColumnRowMoveHandle.prototype.render=function(){return v.dom.element("DIV",{class:"cui-drag-handle-row"})},ListViewColumnRowMoveHandle}(v.ListViewColumn)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.ListViewColumnRowMoveHandlePlaceholder=function(v){function ListViewColumnRowMoveHandlePlaceholder(){return ListViewColumnRowMoveHandlePlaceholder.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ListViewColumnRowMoveHandlePlaceholder,v),ListViewColumnRowMoveHandlePlaceholder}(v.ListViewColumnEmpty)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.ListViewDraggable=function(z){function ListViewDraggable(){return ListViewDraggable.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ListViewDraggable,z),ListViewDraggable.prototype.initOpts=function(){return ListViewDraggable.__super__.initOpts.call(this),this.removeOpt("helper"),this.addOpts({row:{mandatory:!0,check:v.ListViewRow}})},ListViewDraggable.prototype.readOpts=function(){return ListViewDraggable.__super__.readOpts.call(this),this.__row_i=this._row.getRowIdx()},ListViewDraggable.prototype.get_marker=function(A){return null==A&&(A=""),v.dom.element("DIV",{class:"cui-lv-draggable "+A})},ListViewDraggable}(v.Draggable)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.ListViewRowMove=function(z){function ListViewRowMove(){return ListViewRowMove.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ListViewRowMove,z),ListViewRowMove.prototype.initOpts=function(){return ListViewRowMove.__super__.initOpts.call(this),this.removeOpt("helper"),this.addOpts({row:{mandatory:!0,check:v.ListViewRow}})},ListViewRowMove.prototype.readOpts=function(){return ListViewRowMove.__super__.readOpts.call(this),this.__row_i=this._row.getRowIdx(),this.__display_row_i=this._row.getDisplayRowIdx(),this.__listView=this._row.getListView()},ListViewRowMove.prototype.get_helper=function(v,A,z){return this.get_marker("cui-lv-row-move")},ListViewRowMove.prototype.get_helper_contain_element=function(){return this.__listView.getBottom()},ListViewRowMove.prototype.get_axis=function(){return"y"},ListViewRowMove.prototype.get_init_helper_pos=function(v,A){var z;return{top:(z=this.__listView.getRowGridRect(this.__row_i)).top_abs,left:z.left_abs,width:z.width,height:z.height}},ListViewRowMove.prototype.init_helper=function(){return this.movableTargetDiv=this.get_marker("cui-lv-row-move-target"),v.dom.append(this.__listView.getGrid(),this.movableTargetDiv),ListViewRowMove.__super__.init_helper.call(this)},ListViewRowMove.prototype.do_drag=function(v,A,z){var L;ListViewRowMove.__super__.do_drag.call(this,v,A,z),(L=this.__listView.getCellByTarget(A))&&(L.clientX=v.clientX(),L.clientY=v.clientY(),L.display_row_i>=this.__listView.fixedRowsCount&&this.showHorizontalTargetMarker(L))},ListViewRowMove.prototype.cleanup_drag=function(A){return ListViewRowMove.__super__.cleanup_drag.call(this,A),v.dom.remove(this.movableTargetDiv),this.movableTargetDiv=null},ListViewRowMove.prototype.end_drag=function(A){var z,L;if(ListViewRowMove.__super__.end_drag.call(this,A),this.target)return z=this._row,L=this.__listView.getListViewRow(this.target.row_i),v.globalDrag.noClickKill=!0,z.moveRow?z.moveRow(this.__listView,L,this.target.after):this.__listView.moveRow(this.__row_i,this.target.row_i,this.target.after)},ListViewRowMove.prototype.showHorizontalTargetMarker=function(A){return this.showHorizontalTargetMarkerSetTarget(A),this.target.row_i===this.__row_i||this.target.before_row_i===this.__row_i&&!1===this.target.after||this.target.after_row_i===this.__row_i&&!1===this.target.before?(this.target=null,v.dom.hideElement(this.movableTargetDiv)):(v.dom.showElement(this.movableTargetDiv),v.dom.setStyle(this.movableTargetDiv,{left:this.target.left,top:this.target.top,width:this.target.width}))},ListViewRowMove.prototype.showHorizontalTargetMarkerSetTarget=function(v){var A;this.target={row_i:v.row_i},A=this.__listView.getRowGridRect(v.row_i),this.__display_row_i>0&&(this.target.before_row_i=this.__listView.getRowIdx(this.__display_row_i-1)),this.__display_row_i=0||(T=this.target.row_i,z.call(this.blockedAfterRows,T)>=0&&this.target.after)||(k=this.target.row_i,z.call(this.blockedBeforeRows,k)>=0&&!this.target.after))&&(v=(x=this.__listView.getNodesForMove(this.__row_i,this.target.row_i,this.target.after))[0],S=x[1],A=x[2],(!this._rowMoveWithinNodesOnly||!A)&&!!v.allowRowMove(S,A,this.target.after))},ListViewTreeRowMove}(v.ListViewRowMove)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Template.loadTemplateText(z(131)),v.ItemList=function(z){function ItemList(){return ItemList.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ItemList,z),ItemList.prototype.init=function(){if(ItemList.__super__.init.call(this),this.addClass("cui-item-list"),this.__body=new v.Template({name:"item-list-body"}),this.append(this.__body,"center"),this._keyboardControl)return this.__initListeners()},ItemList.prototype.initOpts=function(){return ItemList.__super__.initOpts.call(this),this.addOpts({items:{mandatory:!0,check:function(A){return v.util.isFunction(A)||v.util.isArray(A)}},active_item_idx:{check:"Integer"},has_items:{default:!1,check:Boolean},allow_null:{check:Boolean},onClick:{check:Function},onActivate:{check:Function},onDeactivate:{check:Function},orientation:{default:"vertical",check:["horizontal","vertical"]},keyboardControl:{check:Boolean,default:!1}}),this},ItemList.prototype.readOpts=function(){return ItemList.__super__.readOpts.call(this),"horizontal"===this._orientation&&console.error("new CUI.ItemList, orientation == horizontal needs implementation!"),this},ItemList.prototype.setActiveIdx=function(v){this.__active_idx=v},ItemList.prototype.getActiveIdx=function(){return this.__active_idx},ItemList.prototype.getBody=function(){return this.__body},ItemList.prototype.getItemByValue=function(A){var z,L,T,k,x;for(T=0,k=(x=this.__body.DOM.children).length;T0)},ItemList.prototype.__getItems=function(A){return v.util.isFunction(this._items)?this._items(A,this)||[]:this._items},ItemList.prototype.getItems=function(A){var z;return z=this.__getItems(A),v.util.isPromise(z)?z:(new v.Deferred).resolve(z)},ItemList.prototype.__initActiveIdx=function(){var A,z,L,T,k,x;if(void 0===(A=this._active_item_idx))if(k=this.__getItems(),v.util.isPromise(k))A=-1;else{for(L=z=0,x=k.length;z\n\t
    \n\t
    \n\t
    \n\t\t
    \n\t
    \n'},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Input=function(z){function Input(A){var z,L,T,k,x,S;for(Input.__super__.constructor.call(this,A),this.addClass("cui-input"),this._textarea&&this.addClass("cui-data-field--textarea"),this._overwrite?this.__getCursorBlocks=this.__overwriteBlocks:this.__getCursorBlocks=this._getCursorBlocks,this._content_size&&this.addClass("cui-input-content-size"),this.isRequired()&&this.addClass("cui-input-required"),this._checkInput&&(this.__checkInput=this._checkInput),this._prevent_invalid_input&&this.addClass("cui-input-has-prevent-invalid-input"),this.__checkInput&&this.addClass("cui-input-has-check-input"),this._appearance&&this.addClass("cui-input-appearance-"+this._appearance),this.__inputHints={},this.__inputHintTexts={},L=0,k=(x=["empty","invalid","valid"]).length;L=0}},onFocus:{check:Function},onClick:{check:Function},onKeyup:{check:Function},onSelectionchange:{check:Function},incNumbers:{default:!0,check:Boolean},onBlur:{check:Function},regexp:{check:String},regexp_flags:{default:"",check:String},getInputBlocks:{check:Function},getCursorBlocks:{check:function(A){return v.util.isFunction(A)&&!this._overwrite}},placeholder:{check:function(A){return v.util.isFunction(A)||v.util.isString(A)}},readonly:{check:Boolean},readonly_select_all:{default:!0,check:Boolean},textarea:{check:Boolean},min_rows:{check:function(v){return v>=2},default:2},rows:{check:function(v){return v>=1}},content_size:{default:!1,check:Boolean},prevent_invalid_input:{default:!1,check:Boolean},required:{default:!1,check:Boolean},appearance:{check:["code"]}})},Input.prototype.readOpts=function(){var A;return this.opts.readonly&&v.util.assert(!(this.opts.getCursorBlocks||this.opts.getInputBlocks||this.opts.checkInput),"new CUI.Input","opts.readonly conflicts with opts.getCursorBlocks, opts.getInputBlocks, opts.checkInput."),this.opts.textarea&&(v.util.assert(!this.opts.autocomplete,"new CUI.Input","opts.textarea does not work with opts.autocomplete",{opts:this.opts}),v.util.assert(!this.opts.incNumbers,"new CUI.Input","opts.textarea does not work with opts.incNumbers",{opts:this.opts})),Input.__super__.readOpts.call(this),this._readonly&&this._readonly_select_all&&(this._getCursorBlocks=function(A){return[new v.InputBlock({start:0,string:A})]}),this._regexp&&(this.__regexp=new RegExp(this._regexp,this._regexp_flags),this.__checkInput=(A=this,function(v){return!!A.__checkInputRegexp(v)&&(!A._checkInput||A._checkInput(v))})),this._required&&(this.__checkInput=function(v){return function(A){return 0!==A.trim().length&&(!v._checkInput||v._checkInput(A))}}(this)),!1===this._spellcheck?this.__spellcheck="false":this.__spellcheck="default",!0===this._autocomplete?this.__autocomplete="on":!1===this._autocomplete&&(this.__autocomplete="off"),this},Input.prototype.__checkInputRegexp=function(v){return!!this.__regexp.exec(v)},Input.prototype.setSpellcheck=function(A){return A?v.dom.setAttribute(this.__input,"spellcheck","default"):v.dom.setAttribute(this.__input,"spellcheck","false")},Input.prototype.setPlaceholder=function(A){return v.dom.setAttribute(this.__input,"placeholder",A)},Input.prototype.getPlaceholder=function(){if(this._placeholder)return v.util.isFunction(this._placeholder)?this._placeholder(this,this.getData()):this._placeholder},Input.prototype.__createElement=function(A){var z,L,T,k;return null==A&&(A="text"),!0===this._textarea?(this.__input=v.dom.$element("textarea","cui-textarea",{placeholder:this.getPlaceholder(),tabindex:"0",maxLength:this._maxLength,id:"cui-input-"+this.getUniqueId(),spellcheck:this.__spellcheck,rows:this._min_rows}),this.__input.style.setProperty("--textarea-min-rows",this._min_rows),k=this,T=function(){var v;return k.__input.rows=k._min_rows,v=Math.ceil((k.__input.scrollHeight-k.__baseScrollHeight)/k.__lineHeight),k.__input.rows=k._min_rows+v},z=function(A){return function(){var z;return z=A.__input.value,A.__input.value="",A.__baseScrollHeight=A.__input.scrollHeight,A.__input.value=z,A.__lineHeight=parseInt(v.dom.getComputedStyle(A.__input).lineHeight,10)}}(this),v.Events.listen({node:this.__input,type:"input",call:T}),v.dom.waitForDOMInsert({node:this.__input}).done(function(v){return function(){if(!v.isDestroyed())return z(),T()}}(this))):this.__input=v.dom.$element("input","cui-input",{type:A,size:1,placeholder:this.getPlaceholder(),tabindex:"0",maxLength:this._maxLength,id:"cui-input-"+this.getUniqueId(),spellcheck:this.__spellcheck,autocomplete:this.__autocomplete}),v.Events.listen({node:this.__input,type:"dragstart",call:function(v){return v.preventDefault()}}),v.Events.listen({node:this.__input,type:"keydown",call:function(v){return function(A){var z,L,T,k;if(!(A.ctrlKey()&&90===!A.keyCode()||A.metaKey())){if(v.lastKeyDownEvent=A,!v._incNumbers||v._textarea||v._readonly||v.incNumberBounds(A),37===(z=A.keyCode())||39===z||36===z||35===z)return v.moveCursor(A),void v.showCursor(A);9!==(L=A.keyCode())&&16!==L&&17!==L&&18!==L&&27!==L&&33!==L&&34!==L&&35!==L&&36!==L&&38!==L&&40!==L&&(!A.ctrlKey()&&!A.metaKey()||65!==(T=A.keyCode())&&67!==T&&86!==T&&88!==T)&&(v._textarea||13!==A.keyCode())&&(8===A.keyCode()&&0===(k=v.__input.selectionStart)&&k===v.__input.selectionEnd||v.__focusShadowInput())}}}(this)}),v.Events.listen({type:"keyup",node:this.__input,call:function(v){return function(A){var z;if(37===(z=A.keyCode())||39===z||36===z||35===z)return A.preventDefault(),void(v.cursor||v.showCursor(A));v.initCursor(A),v.showCursor(A),v._onKeyup&&v._onKeyup(v,A)}}(this)}),v.Events.listen({type:"focus",node:this.__input,call:function(v){return function(A){var z;v.hasShadowFocus()||(v.enterInput(),v.addClass("cui-has-focus"),v.__initShadowInput(),"function"==typeof v._onFocus&&v._onFocus(v,A),null!=(z=v.__invalidTooltip)&&z.show(),v.__setCursor(A))}}(this)}),L=null,v.Events.listen({type:"mousedown",node:this.__input,call:function(A){return function(z){var T,k;return L=[A.__input.offsetWidth,A.__input.offsetHeight],k=function(){if(L[0]!==A.__input.offsetWidth||L[1]!==A.__input.offsetHeight)return v.Events.trigger({type:"content-resize",node:A.__input})},T=v.Events.listen({type:"mousemove",call:function(){k()}}),v.Events.listen({type:"mouseup",only_once:!0,capture:!0,call:function(A){v.Events.ignore(T)}})}}(this)}),v.Events.listen({type:"mouseup",node:this.__input,call:function(v){return function(A){v.__setCursor(A)}}(this)}),v.Events.listen({type:"blur",node:this.__input,call:function(v){return function(A){v.hasShadowFocus()||(v.removeClass("cui-has-focus"),v.leaveInput(),v.__removeShadowInput(),"function"==typeof v._onBlur&&v._onBlur(v,A))}}(this)}),v.Events.listen({type:"input",node:this.__input,call:function(v){return function(A,z){A.isDefaultPrevented()||(v.checkInput(),v.moveCursor(A),v.showCursor(A),v.getValueForStore(v.__input.value)!==v.getValue()&&v.storeValue(v.__input.value))}}(this)}),v.Events.listen({type:"paste",node:this.__input,call:function(v){return function(A){return v.__focusShadowInput()}}(this)}),v.Events.listen({type:"click",node:this.__input,call:function(v){return function(A){A.stopPropagation(),"function"==typeof v._onClick&&v._onClick(v,A)}}(this)}),this._content_size&&v.dom.waitForDOMInsert({node:this.__input}).done(function(v){return function(){if(!v.isDestroyed())return v.setContentSize()}}(this)),this.__input},Input.prototype.__setCursor=function(A){return v.setTimeout((z=this,function(){var v,L,T,k,x;if(z.initCursor(A),null===z.cursor&&(x=z.__input.selectionStart)===z.__input.selectionEnd&&z.__input.selectionEnd!==z.__input.value.length&&(L=z.getInputBlocks()).length>0)for(T=0,k=L.length;T0?A.substr(x-1,1):null,T=x>1?A.substr(x-2,1):null,"-"!==L||(null!=T?T.match(/[0-9]/):void 0)||(S="-"+S,x-=1),z.push(new v.NumberInputBlock({start:x,string:S}));return z},Input.prototype.__overwriteBlocks=function(A){var z,L,T,k;for(z=[],L=T=0,k=A.length;0<=k?Tk;L=0<=k?++T:--T)z.push(new v.InputBlock({start:L,string:A.substr(L,1)}));return z.push(new v.InputBlock({start:A.length,string:""})),z},Input.prototype.getMarkedBlock=function(){var v,A,z,L,T,k,x;if(!1===(A=this.getInputBlocks())||0===A.length)return null;for(x=this.__input.selectionStart,z=this.__input.selectionEnd,L=T=0,k=A.length;T1&&(L=-1===T?k.length-1:0),A=k[L]){for(V=[J[0]],S=X=0,H=k.length;Xthis._rows||this.preventInvalidInput()&&A.length>0&&!1===this.checkInput(this.correctValueForInput(A))||(this._readonly||(this.__input.value=this.correctValueForInput(A),this.__input.setSelectionRange(this.__shadow.selectionStart,this.__shadow.selectionEnd)),this.initCursor(v))},Input.prototype.checkValue=function(A){if(!v.util.isString(A))throw new Error(this.__cls+".checkValue(value): Value needs to be String or null.");return this},Input.prototype.render=function(){var v,A,z,L;for(Input.__super__.render.call(this),this.replace(this.__createElement(),this.getTemplateKeyForRender()),v=0,z=(L=["empty","invalid","valid"]).length;v0},Input.prototype.checkInput=function(v){var A;return A=this.__checkInputInternal(v),this.hasShadowFocus()||this.updateInputState(A),A},Input.prototype.__checkInputInternal=function(v){return null==v&&(v=this.__input.value),!this.__checkInput||this.__checkInput(v)},Input.prototype.setInputHint=function(v){var A;return null!=(A=this.__inputHints.input)?A.setText(v):void 0},Input.prototype.setInvalidHint=function(v){var A;return null!=(A=this.__inputHints.invalid)?A.setText(v):void 0},Input.prototype.setValidHint=function(v){var A;return null!=(A=this.__inputHints.valid)?A.setText(v):void 0},Input.prototype.displayValue=function(){var v;return Input.__super__.displayValue.call(this),(v=this.getValueForDisplay()||"")!==this.__input.value&&(this.__input.value=v),this.checkInput(),this},Input.prototype.getValueForDisplay=function(){return this._getValueForDisplay?this._getValueForDisplay(this,this.getValue()):this.getValue()},Input.prototype.getValueForInput=function(){return this._getValueForInput?this._getValueForInput(this,this.getValue()):this.getValue()},Input.prototype.correctValueForInput=function(v){return this._correctValueForInput?this._correctValueForInput(this,v):v},Input.prototype.getDefaultValue=function(){return""},Input.prototype.getValue=function(){var v;return this.hasData()?Input.__super__.getValue.call(this):null!=(v=this.__input)?v.value:void 0},Input.prototype.enable=function(){var v;return Input.__super__.enable.call(this),null!=(v=this.__input)?v.removeAttribute("disabled"):void 0},Input.prototype.disable=function(){var v;return Input.__super__.disable.call(this),null!=(v=this.__input)?v.setAttribute("disabled",!0):void 0},Input.prototype.focus=function(){var v;return null!=(v=this.__input)&&v.focus(),this},Input.prototype.getCursorBlocks=function(){var v;return v="function"==typeof this.__getCursorBlocks?this.__getCursorBlocks(this.__input.value):void 0,this.checkBlocks(v)},Input.prototype.findBlock=function(v,A,z){var L,T,k,x;for(T=0,k=v.length;T=L.start&&A<=L.end)return L;if("left"===z&&A>=L.start&&AL.start&&A<=L.end)return L;if("touch"===z&&A>=L.start&&A<=L.end)return L}return null},Input.prototype.initCursor=function(A){var z,L,T,k,x,S,E,Y,P,q,F,H,X,V,U,J,tt;if(!1!==(T=this.getCursorBlocks())){if(0===T.length)return console.warn("initCursor: 0 cursor blocks"),void(this.cursor=null);if(tt=this.__input.selectionStart,S=this.__input.selectionEnd,q=this.__input.value.length,this.cursor={shift:null!=(H=this.cursor)?H.shift:void 0,start:null,end:null},"keyup"===A.getType()&&16===A.keyCode()&&(this.cursor.shift=null),"keydown"!==A.getType()||46!==(X=A.keyCode())&&8!==X||(this.cursor.shift=null),v.util.isUndef(this.cursor.shift)&&(this.cursor.shift=null),this.cursor.start=this.findBlock(T,tt,"left"),this.cursor.end=this.findBlock(T,S,"right"),(null!=(V=this.cursor.end)?V.idx:void 0)<(null!=(U=this.cursor.start)?U.idx:void 0)&&(this.cursor.end=this.cursor.start),tt===S&&!this.cursor.start&&!this.cursor.end){for(k=null,x=null,E=Y=tt;Y>=0;E=Y+=-1)if(z=this.findBlock(T,E,"left")){k=tt-E;break}for(E=P=tt,J=q;Px?L:z)}F=this.getRangeFromCursor(),this.cursor.start||this.cursor.end?this.cursor.start?this.cursor.end||(this.cursor.end=this.cursor.start):this.cursor.start=this.cursor.end:this.cursor.start=this.cursor.end=T[T.length-1],F[0]===tt&&F[1]}else this.cursor=null},Input.prototype.showCursor=function(v){var A;return this.cursor&&(A=this.getRangeFromCursor(),this.__input.setSelectionRange(A[0],A[1])),this},Input.prototype.checkSelectionChange=function(){var v;return v=this.getSelection(),!this.__currentSelection||this.__currentSelection.start===v.start&&this.__currentSelection.end===v.end||this.handleSelectionChange(),this.__currentSelection=v,this},Input.prototype.getRangeFromCursor=function(){var v,A;return[null!=(v=this.cursor.start)?v.start:void 0,null!=(A=this.cursor.end)?A.end:void 0]},Input.prototype.moveCursor=function(v){var A,z,L,T,k,x,S,E;if(this.cursor)if(v.preventDefault(),!1!==(A=this.getCursorBlocks())&&0!==A.length){if(36===v.keyCode())return this.cursor.start=A[0],void(this.cursor.end=A[0]);if(35===v.keyCode())return this.cursor.start=A[A.length-1],void(this.cursor.end=A[A.length-1]);if(46!==(null!=(k=this.lastKeyDownEvent)?k.keyCode():void 0))if(8!==(null!=(x=this.lastKeyDownEvent)?x.keyCode():void 0)){if(T=37===v.keyCode(),S=39===v.keyCode()||"input"===v.getType(),E=this.cursor.start.idx,L=this.cursor.end.idx,!A[E]||!A[L])return console.warn("repositioning cursor, not executing cursor move"),void this.initCursor(v);if(46!==v.keyCode())return v.shiftKey()&&null===this.cursor.shift&&(this.cursor.shift=this.cursor.end.idx),null===this.cursor.shift?E===L?(T?E>0&&(this.cursor.start=A[E-1]):S&&E=L?E>0&&(this.cursor.start=A[E-1]):this.cursor.end=A[L-1]:S&&(z>E?this.cursor.start=A[E+1]:L=0}},renderFunction:{mandatory:!0,default:function(z){return A(z,v.defaults.marked_opts)},check:Function}})},MarkdownInput.prototype.readOpts=function(){var A,z,L,T,k,x;for(MarkdownInput.__super__.readOpts.call(this),this._textarea=!0,this.__preview=null,this.__updatePreview=(x=this,function(){return x.updatePreview()}),k={top:{}},A=0,L=(T=["maximize","maximize_horizontal","maximize_vertical"]).length;A1))return z.selected.startsWith(v)&&z.selected.endsWith(v)?(this.setValue(z.before+z.selected.substr(A,z.selected.length-2*A)+z.after),this.setSelection({start:z.start,end:z.end-2*A})):(this.setValue(z.before+v+z.selected+v+z.after),this.setSelection({start:z.start,end:z.end+2*A}))},MarkdownInput.prototype.makeOrderedList=function(){return this.__makeList(!1)},MarkdownInput.prototype.makeUnorderedList=function(){return this.__makeList(!0)},MarkdownInput.prototype.checkList=function(){var v;return v=this.__makeList(null,!0),console.debug("selection is type",v)},MarkdownInput.prototype.__makeList=function(A,z){var L,T,k,x,S,E,Y,P,q,F,H;if(null==A&&(A=!0),null==z&&(z=!1),q=(F=this.getSelection()).selected.split("\n"),""!==F.before&&!F.before.endsWith("\n"))return null;for(H=null,z?T=void 0:Y=A?"- ":"1. ",E=[],L=0,x=q.length;L=0}},onRemove:{check:Function},onDequeue:{check:Function},onBeforeDone:{check:Function}})},FileUploadFile.prototype.queue=function(){return this.__progress.status="QUEUED",this.__dfr.notify(this),this},FileUploadFile.prototype.getImage=function(){var A,z,L;return this.__imgDiv?this.__imgDiv:((z=v.dom.img()[0]).src=window.URL.createObjectURL(this._file),z.onload=(L=this,function(v){return z.width0?(this.__upload=new v.XHR({url:A,form:L}),this.__upload.start().progress((k=this,function(v,A,z,L){if("download"!==v&&"ABORT"!==k.__progress.status)return k.__progress.status=A===z?"COMPLETED":"PROGRESS",k.__progress.loaded=A,k.__progress.total=z,k.__progress.percent=L,k.__dfr.notify(k)})).done(function(A){return function(z){return A.__progress.data=z,T=function(){return A.__progress.status="DONE",A.__upload=null,A.__dfr.resolve(A)},A._onBeforeDone?v.decide(A._onBeforeDone(A)).done(T).fail((function(){return A.__progress.status="ABORT",A.__upload=null,A.__dfr.reject(A)})):T()}}(this)).fail(function(v){return function(A,z,L){return"abort"===L&&(v.__progress.status="ABORT"),"ABORT"!==v.__progress.status&&(v.__progress.status="FAILED"),v.__progress.fail=v.__upload.response(),v.__progress.fail_xhr=v.__upload.getXHR(),v.__upload=null,v.__dfr.reject(v)}}(this))):v.setTimeout({call:function(v){return function(){return v.__progress.status="FAILED",v.__upload=null,v.__dfr.reject(v)}}(this)}),this.__progress.status="STARTED",this.__progress.percent=0,this.__dfr.notify(this),this.__promise},FileUploadFile}(v.Element)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Template.loadTemplateText(z(139)),v.FileUploadButton=function(z){function FileUploadButton(v){var A,z;this.__onClick=(A=this.__onClick,z=this,function(){return A.apply(z,arguments)}),FileUploadButton.__super__.constructor.call(this,v),this.addClass("cui-button"),this._drop&&this._fileUpload.initDropZone({dropZone:this.DOM})}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(FileUploadButton,z),FileUploadButton.prototype.initOpts=function(){return FileUploadButton.__super__.initOpts.call(this),this.addOpts({fileUpload:{mandatory:!0,check:v.FileUpload},multiple:{default:!0,check:function(v){return!0===v||!1===v||v instanceof Function}},directory:{check:Boolean},drop:{check:Boolean},accept:{check:String}})},FileUploadButton.prototype.getTemplateName=function(){return this.__has_left=!0,this.__has_right=!0,"file-upload-button-ng"},FileUploadButton.prototype.readOpts=function(){this.__ownClick=this.opts.onClick,this.opts.onClick=this.__onClick,FileUploadButton.__super__.readOpts.call(this)},FileUploadButton.prototype.run=function(v,A){return this.__onClick(v)},FileUploadButton.prototype.__onClick=function(v,A){var z,L;null!=(L=this.__ownClick)&&L.call(this,v,A),v.isDefaultPrevented()||v.isImmediatePropagationStopped()||(z=this._multiple instanceof Function?!0===this._multiple.call(this,v,A):this._multiple,this._fileUpload.initFilePicker({directory:(v.altKey()||v.shiftKey())&&this._multiple||this._directory,multiple:z,accept:this._accept}))},FileUploadButton}(v.Button),v.ready((function(){return v.dom.append(document.body,v.dom.htmlToNodes('\x3c!-- CUI.FileUploadButton --\x3e
    \x3c!-- /CUI.FileUploadButton --\x3e'))}))}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n\n\n'},function(v,A,z){(function(v){var A={}.hasOwnProperty,z=[].indexOf||function(v){for(var A=0,z=this.length;A=1}},onAdd:{check:Function},onBatchStart:{check:Function},onBatchQueued:{check:Function},onBatchDone:{check:Function},onProgress:{check:Function},onDone:{check:Function},onUpdate:{check:Function},onDequeue:{check:Function},onRemove:{check:Function},onFail:{check:Function},onAlways:{check:Function},onBeforeDone:{check:Function}})},FileUpload.prototype.readOpts=function(){return FileUpload.__super__.readOpts.call(this),this.setUrl(this._url)},FileUpload.prototype.setUrl=function(v){return this.__url=v,this.__url},FileUpload.prototype.getUrl=function(){return this.__url},FileUpload.prototype.getFiles=function(A){var L,T,k,x,S,E;for(v.util.isString(A)&&(A=[A]),T=[],k=0,x=(S=this.__files).length;k=0))&&T.push(L);return T},FileUpload.prototype.getInfo=function(){var v,A,z,L,T,k,x,S,E,Y,P,q;for(P={},q=0,S=0,L=0,T=0,z=!0,k=0,x=(E=this.getFiles()).length;k0){for(F=[],T=[],S=0,E=(q=z.files).length;S0&&console.warn("Files empty or directories, not uploaded...",F),T.length>0&&Y.queueFiles(T)}return A.stopPropagation(),A.preventDefault(),!1})}),L=0,T=(S=this.__dropZones).length;L=0}},string:{mandatory:!0,check:function(A){return v.util.isString(A)}}})},InputBlock.prototype.setString=function(A){return v.util.assert(v.util.isString(A),v.util.getObjectClass(this)+".setString","Parameter needs to be String with a minimum length of 1.",{string:A}),this.__string=A,this.calcSizes(),this},InputBlock.prototype.getString=function(){return this._string},InputBlock.prototype.calcSizes=function(){var v,A,z,L;for(this.__len=this.__string.length,this.__end=this.__start+this.__len,v=0,z=(L=["len","end","start","string"]).length;v0}},symbol_before:{default:!1,check:Boolean},store_as_integer:{default:!1,check:Boolean},decimalpoint:{mandatory:!0,default:".",check:[",","."]},separator:{check:function(A){return v.util.isString(A)&&A.length>0}},min:{default:null,check:function(A){return v.util.isNumber(A)}},max:{default:null,check:function(A){return v.util.isNumber(A)}}}),this.removeOpt("checkInput"),this.removeOpt("getValueForDisplay"),this.removeOpt("getValueForInput"),this.removeOpt("correctValueForInput"),this.removeOpt("prevent_invalid_input")},NumberInput.prototype.readOpts=function(){return NumberInput.__super__.readOpts.call(this),this._checkInput=this.__checkInput,this._prevent_invalid_input=!0,this.setMin(this._min),this.setMax(this._max)},NumberInput.prototype.setMin=function(v){this.__min=v},NumberInput.prototype.setMax=function(v){this.__max=v},NumberInput.prototype.formatValueForDisplay=function(A,z){var L,T,k,x;if(null==A&&(A=this.getValue()),null==z&&(z=!1),v.util.assert("number"==typeof A||null===A,"NumberInput.formatValueForDisplay","value needs to be Number or null",{value:A,type:typeof A}),v.util.isEmpty(A))return"";if((k=(this._store_as_integer?(A/Math.pow(10,this._decimals)).toFixed(this._decimals):A+"").split(".")).length>1?(T=k[0],L=k[1]):(T=k[0],L=""),this._decimals>0)for(;L.length0?T+this._decimalpoint+L:T:(x=this._decimals>0?this.__addSeparator(T)+this._decimalpoint+L:this.__addSeparator(T),this.__addSymbol(x))},NumberInput.prototype.getValue=function(){var v;return v=NumberInput.__super__.getValue.call(this),this.hasData()?v:this.getValueForStore(v)},NumberInput.prototype.getValueForDisplay=function(){return this.formatValueForDisplay(this.getValue())},NumberInput.prototype.getValueForStore=function(A){var z;return v.util.isString(A)||(A+=""),z=parseFloat(A.replace(/,/,".")),isNaN(z)?null:this._store_as_integer?parseInt((z*Math.pow(10,this._decimals)).toFixed(0)):z},NumberInput.prototype.getDefaultValue=function(){return null},NumberInput.prototype.setValue=function(v,A){return null==A&&(A={}),this.checkValue(v),NumberInput.__super__.setValue.call(this,v,A)},NumberInput.prototype.checkValue=function(A){if(null===A)return!0;if(this._decimals>0&&v.util.isFloat(A))return!0;if(v.util.isInteger(A))return!0;throw new Error(this.__cls+".setValue(value): Value needs to be Number or null.")},NumberInput.prototype.__addSymbol=function(A){return v.util.isEmpty(this._symbol)?A:this._symbol_before?this._symbol+" "+A:A+" "+this._symbol},NumberInput.prototype.__addSeparator=function(A){var z,L,T,k,x,S,E;if(v.util.isEmpty(this._separator))return A;for((T=A.startsWith("-"))&&(A=A.substr(1)),S=[],L=z=0,k=(E=A.split("").reverse()).length;z0&&S.push(this._separator),S.push(x);return T&&S.push("-"),S.reverse(),S.join("")},NumberInput.prototype.correctValueForInput=function(v){return v.replace(/[,\.]/g,this._decimalpoint)},NumberInput.prototype.getValueForInput=function(){return this.formatValueForDisplay(null,!0)},NumberInput.prototype.checkInput=function(v){return null===v||NumberInput.__super__.checkInput.call(this,v)},NumberInput.prototype.__checkInput=function(A){var z,L,T,k,x;if(""===(x=(x=this.hasShadowFocus()?A:A.replace(this._symbol,"")).trim()))return!0;if(this._separator&&(k=new RegExp(RegExp.escape(this._separator),"g"),x=x.replace(k,"")),-1===(L=x.lastIndexOf(this._decimalpoint)))z=x,T="";else{if(0===this._decimals)return!1;z=x.substring(0,L),T=x.substring(L+1)}if(T.length>this._decimals)return!1;if(z.length>0&&!z.match(/^((0|[1-9]+[0-9]*)|(-|-[1-9]|-[1-9][0-9]*))$/))return!1;if(!v.util.isNull(this.__min)){if(this.__min>=0&&"-"===z)return!1;if(zthis.__max)&&(!!T.match(/^([0-9]*)$/)&&!(T.length>this._decimals))},NumberInput.format=function(A,z){var L,T;return null==z&&(z={}),v.util.isEmpty(A)&&(A=null),v.util.isFloat(A)&&!z.hasOwnProperty("decimals")&&(L=A+"",z.decimals=L.length-L.indexOf(".")-1),(T=new v.NumberInput(z)).start(),T.checkInput(A+"")?T.formatValueForDisplay(A):null},NumberInput.parse=function(v,A){var z,L,T,k,x;return isNaN(v.replace(/[,\.]/g,""))?null:(isNaN(A)&&(A=0),z=v.indexOf(","),T=v.indexOf("."),-1===z&&-1===T?parseInt(v):(T>0&&z>0&&(x=T>z?/,/g:/\./g),!x&&A>0&&(","===(L=v[v.length-1-A])?x=/\./g:"."===L&&(x=/,/g)),x||0!==A||(null!=(k=v.match(/^\d{1,3}([\.,]\d{3})+/))?k[0]:void 0)===v&&(x=T>0?/\./g:/,/g),x&&(v=v.replace(x,"")),0===A?parseInt(v):(v=v.replace(/,/,"."),parseFloat(v))))},NumberInput}(v.Input)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.EmailInput=function(z){function EmailInput(){return EmailInput.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(EmailInput,z),EmailInput.prototype.initOpts=function(){return EmailInput.__super__.initOpts.call(this),this.removeOpt("checkInput")},EmailInput.prototype.readOpts=function(){return EmailInput.__super__.readOpts.call(this),this._checkInput=this.__checkInput},EmailInput.prototype.__checkInput=function(A){return!(!v.util.isEmpty(A)&&!v.EmailInput.regexp.exec(A))},EmailInput.unicode_ranges="ㄱ-힝A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶ-ͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԣԱ-Ֆՙա-ևא-תװ-ײء-يٮ-ٯٱ-ۓەۥ-ۦۮ-ۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴ-ߵߺऄ-हऽॐक़-ॡॱ-ॲॻ-ॿঅ-ঌএ-ঐও-নপ-রলশ-হঽৎড়-ঢ়য়-ৡৰ-ৱਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽૐૠ-ૡଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽଡ଼-ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘ-ౙౠ-ౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠ-ೡഅ-ഌഎ-ഐഒ-നപ-ഹഽൠ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะา-ำเ-ๆກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆໜ-ໝༀཀ-ཇཉ-ཬྈ-ྋက-ဪဿၐ-ၕၚ-ၝၡၥ-ၦၮ-ၰၵ-ႁႎႠ-Ⴥა-ჺჼᄀ-ᅙᅟ-ᆢᆨ-ᇹሀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙶᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦩᧁ-ᧇᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮ-ᮯᰀ-ᰣᱍ-ᱏᱚ-ᱽᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₔℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-Ɐⱱ-ⱽⲀ-ⳤⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆷㇰ-ㇿ㐀䶵一鿃ꀀ-ꒌꔀ-ꘌꘐ-ꘟꘪ-ꘫꙀ-ꙟꙢ-ꙮꙿ-ꚗꜗ-ꜟꜢ-ꞈꞋ-ꞌꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꤊ-ꤥꤰ-ꥆꨀ-ꨨꩀ-ꩂꩄ-ꩋ가힣豈-鶴侮-頻並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",EmailInput.regexp=RegExp("^(?:["+EmailInput.unicode_ranges+"\\w!#$%&'*+/=?^_`{|}~-]+(?:\\.["+EmailInput.unicode_ranges+"\\w!#$%&'*+/=?^_`{|}~-]+)*|\"(?:["+EmailInput.unicode_ranges+" \\w| \\"+EmailInput.unicode_ranges+'w.])*")@(?:['+EmailInput.unicode_ranges+"\\w.-]+\\.["+EmailInput.unicode_ranges+"\\w]{2,}|localhost)$","i"),EmailInput}(v.Input)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.CodeInput=function(z){function CodeInput(){return CodeInput.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(CodeInput,z),CodeInput.availableModes=["html","javascript","json","css"],CodeInput.prototype.readOpts=function(){return CodeInput.__super__.readOpts.call(this),this._textarea=!0,v.CodeInput.loadAcePromise||(v.CodeInput.loadAcePromise=this.__fetchLibrary()),this},CodeInput.prototype.initOpts=function(){return CodeInput.__super__.initOpts.call(this),this.addOpts({mode:{check:v.CodeInput.availableModes,default:"javascript"}})},CodeInput.prototype.render=function(){return CodeInput.__super__.render.call(this),v.CodeInput.loadAcePromise.done((A=this,function(){var v,z,L;if(v=window.ace,A.__aceEditor=v.edit(A.__input,{mode:"ace/mode/"+A._mode,selectionStyle:"text"}),L=null!=(z=A.__data)?z[A._name]:void 0){try{L=JSON.parse(L),L=JSON.stringify(L,null,"\t")}catch(v){}A.__aceEditor.setValue(L,-1),A.__aceEditor.clearSelection()}return A.__aceEditor.on("change",(function(){return A.storeValue(A.__aceEditor.getValue())}))}));var A},CodeInput.prototype.destroy=function(){var v;return null!=(v=this.__aceEditor)&&v.destroy(),CodeInput.__super__.destroy.call(this)},CodeInput.prototype.__fetchLibrary=function(){var A;return A=new v.Deferred,v.loadScript("https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.6/ace.js").done((function(){var z,L,T,k,x;for(k=[],z=0,L=(x=v.CodeInput.availableModes).length;z=0,"CUI.DateTime.format",'output_format must be on of "'+v.DateTime.formatTypes.join(",")+'".',{parm1:z,output_format:J}),A.isMoment(z))U=z;else{if(ot=null!=z?z.trim():void 0,v.util.isEmpty(ot))return null;U=this.parse(ot,this.__input_formats_known)}if(U.isValid()&&v.util.isNull(k)&&(k=this.getCurrentFormat().type),!U.isValid()){for(E=[],Y=0,H=(tt=this.__input_formats_known).length;Y0?"invalid":null,DateTime.__super__.storeValue.call(this,v,A),this},DateTime.prototype.getDigiDisplay=function(A){var z,L,T,k,x,S,E;for(T=[],k=0,S=(E=A.split("")).length;k-1?(z=["hour","hour","minute","second","am_pm","am_pm"][x],"A"===L||"a"===L?(T.push({mask:"[aApP]",attr:{cursor:z,title:z}}),T.push({mask:"[mM]",attr:{cursor:z,title:z}})):T.push({mask:"[0-9]",attr:{cursor:z}})):"*"===L?T.push({mask:"[0-9A-Z+-:. ]"}):T.push({static:":"});return this.__digiDisplay=new v.DigiDisplay({digits:T})},DateTime.prototype.openPopover=function(A){var z;return this.initDateTimePicker(),this.__popover=new v.Popover({element:A,handle_focus:!1,onHide:(z=this,function(){return z.displayValue(),z.closePopover()}),placement:"se",class:"cui-date-time-popover",pane:{content:this.__dateTimeTmpl}}),this.updateDateTimePicker(),this.setCursor("day"),this.__popover.show(),this},DateTime.prototype.closePopover=function(){return this.__popover&&(this.__popover.destroy(),delete this.__popover),this},DateTime.prototype.updateDateTimePicker=function(){return this.setMomentFromInput(),console.debug("updating popover...",this.__input_format),this.drawDate(),this.setClock(),this.setDigiClock(),this.setPrintClock(),this},DateTime.prototype.destroy=function(){return this.closePopover(),DateTime.__super__.destroy.call(this)},DateTime.prototype.setClock=function(A){var z,L,T;return null==A&&(A=this.__current_moment),0,z=A.hour()%12+(L=A.minute()+(T=A.second()+0)/60)/60,v.dom.setStyleOne(this.__hour,"transform","rotate("+30*z+"deg)"),v.dom.setStyleOne(this.__minute,"transform","rotate("+6*L+"deg)"),v.dom.setStyleOne(this.__second,"transform","rotate("+6*T+"deg)")},DateTime.prototype.setDigiClock=function(v){var A;return null==v&&(v=this.__current_moment),A=this.__input_format.digi_clock,console.debug("setDigiClock",A,v,v.format(A)),A&&this.__digiDisplay.display(v.format(A)),this},DateTime.prototype.setPrintClock=function(A){var z;return null==A&&(A=this.__current_moment),this.__input_format.timezone_display?((z=A.clone()).tz(v.tz_data.tz),v.dom.empty(this.__timezone_display),v.dom.append(this.__timezone_display,z.format(this.__input_format.timezone_display))):this},DateTime.prototype.setTimezone=function(){},DateTime.prototype.UNUSEDgetTimezoneData=function(){return this.__tz_data?v.resolvedPromise():$.get(v.getPathToScript()+"/moment-timezone-meta.json").done((A=this,function(v){var z,L,T,k,x,S,E,Y,P;for(E=[],z={},L=0,k=v.length;L0))return A.invalid();for(Y=0,q=L.length;Y=0?this.__input_format=this.initFormat(S):this.__input_format=this.initFormat(this.__default_format),H.locale(A.locale()),H.year()>this._max_year?A.invalid():H;if(!L.some((function(v){return v.support_bc})))return A.invalid();if(x=!1,E=!1,z.startsWith("-"))x=!0,z=z.substring(1);else for(U=z.toLocaleUpperCase(),P=0,F=(X=v.DateTime.defaults.bc_appendix).length;P0&&(this.__current_moment=this.parse(v)),""!==v&&this.__current_moment.isValid()||(this.__current_moment=A(),this.__current_moment.__now=!0,this.__input_format=this.initFormat(this.__default_format))},DateTime.prototype.setInputFromMoment=function(){return this.__clearOverwriteMonthAndYear(),this.setValue(this.__current_moment.format(this.__input_format.input),{no_trigger:!1}),this},DateTime.prototype.__clearOverwriteMonthAndYear=function(){return this.__overwrite_month=null,this.__overwrite_year=null},DateTime.prototype.drawDate=function(v){var A;return v?A=v:(A=this.__current_moment.clone()).bc=this.__current_moment.bc,this.updateCalendar(A,!1)},DateTime.prototype.updateCalendar=function(A,z){return null==z&&(z=!0),v.dom.empty(this.__calendar),v.dom.append(this.__calendar,this.getDateTimeDrawer(A)),v.dom.append(this.__calendar,this.drawMonthTable(A)),v.dom.append(this.__calendar,this.drawYearMonthsSelect(A)),z&&(this.__current_moment=A.clone(),this.__current_moment.bc=A.bc,this.setInputFromMoment()),console.info("CUI.DateTime.updateCalendar:",this.__current_moment.format(this.__input_format.input)),this.markDay(),this},DateTime.prototype.getDateTimeDrawer=function(A){var z,L,T,k,x,S,E,Y,P,q,F,H,X;return z=this.__input_formats[0].clock_am_pm,T={month:A.month(),year:A.year(),date:A.date(),hour:null,minute:null,second:null,am_pm:null},this.__input_format.clock&&(T.hour=A.hour(),T.minute=A.minute(),T.second=A.second(),z&&(T.am_pm=12*Math.floor(T.hour/12),T.hour=T.hour%12)),q=function(v){return v<10?"0"+v:""+v},x=new v.Label({text:this.__locale_format.tab_date,class:"cui-select-date-title"}),k=new v.Select({name:"date",menu_class:"cui-date-time--select-menu",data:T,group:"date",onDataChanged:(X=this,function(){return X.updateCalendar(A.date(T.date))}),options:function(){var v,z,L,T;for(L=[],v=z=1,T=A.daysInMonth();1<=T?z<=T:z>=T;v=1<=T?++z:--z)L.push({text:q(v),value:v});return L}}).start(),P=new v.Select({name:"month",menu_class:"cui-date-time--select-menu",data:T,group:"date",onDataChanged:function(v){return function(){return v.updateCalendar(A.month(T.month))}}(this),options:function(){var v,A,z;for(z=[],A=v=0;v<=11;A=++v)z.push({text:q(A+1),value:A});return z}}).start(),H=new v.Select({name:"year",menu_class:"cui-date-time--select-menu",data:T,group:"date",onDataChanged:function(v){return function(){return v.updateCalendar(A.year(T.year))}}(this),options:function(v){return function(){var A,z,L,k,x,S;for(L=[],(z=T.year-20)=x;S=k<=x?++A:--A)L.push({text:""+S,value:S});return L}}(this)}).start(),this.__input_formats[0].clock&&(S=this.__input_format_no_time?[{text:"",value:null}]:[],F=new v.Label({text:this.__locale_format.tab_time,class:"cui-select-time-title"}),E=new v.Select({name:"hour",menu_class:"cui-date-time--select-menu",data:T,group:"time",onDataChanged:function(v){return function(L){return null===L.hour?(v.setInputFormat(!1),v.updateCalendar(A)):(v.setInputFormat(!0),z?v.updateCalendar(A.hour(T.hour+T.am_pm)):v.updateCalendar(A.hour(T.hour))),v.__popover.position()}}(this),options:function(){var v,A,L,T;if(T=S.slice(0),z)for(v=A=1;A<=12;v=++A)T.push({text:q(v),value:v%12});else for(v=L=0;L<=23;v=++L)T.push({text:q(v),value:v});return T}}).start(),Y=new v.Select({class:"cui-date-time-60-select",name:"minute",menu_class:"cui-date-time--select-menu",group:"time",data:T,onDataChanged:function(v){return function(z){return null===z.minute?(v.setInputFormat(!1),v.updateCalendar(A)):(v.setInputFormat(!0),v.updateCalendar(A.minute(T.minute))),v.__popover.position()}}(this),options:function(){var v,A,z;for(z=S.slice(0),A=v=0;v<=59;A=++v)z.push({text:q(A),value:A});return z}}).start(),z&&(L=new v.Select({class:"cui-date-time-am-pm-select",name:"am_pm",group:"time",data:T,onDataChanged:function(v){return function(z){return null===z.am_pm?(v.setInputFormat(!1),v.updateCalendar(A)):(v.setInputFormat(!0),v.updateCalendar(A.hour(T.hour+T.am_pm))),v.__popover.position()}}(this),options:function(){var v,A,L,T;for(L=S.slice(0),v=0,A=(T=["AM","PM"]).length;vq&&(q=null!=(J=X.text)?J.length:void 0);return(P=new v.Label({text:F[L.month].text})).setTextMaxChars(q),new v.HorizontalLayout({maximize_vertical:!1,maximize_horizontal:!0,class:"cui-date-time-footer",left:{content:new v.Buttonbar({class:"cui-date-time-header-month",buttons:[{icon:"left",onClick:function(v){return function(A){if(!(z.clone().subtract(1,"months").year()v._max_year))return z.add(1,"months"),v.drawDate(z)}}(this)}]})},right:{content:new v.Buttonbar({class:"cui-date-time-header-year",buttons:[{icon:"left",group:"year",onClick:function(v){return function(){if(!(L.year-1v._max_year))return z.add(1,"years"),v.drawDate(z)}}(this)}]})}}).DOM},DateTime.prototype.drawMonthTable=function(z){var L,T,k,x,S,E,Y,P,q,F,H,X,V,U,J,tt,et,it,ot,nt,rt,st,at;for(F=z.month(),st=z.year(),q=A([st,F,1,z.hour(),z.minute(),z.second(),0]),H=v.dom.table("cui-date-time-date"),v.Events.listen({node:H,type:"click",call:(at=this,function(A){var z,L;A.stopPropagation(),L=A.getTarget(),v.dom.closest(L,".cui-date-time-day")&&(z=v.dom.data(v.dom.closest(L,"td,.cui-td")),at.__input_format=at.initFormat(at.__default_format),at.__current_moment.year(z.year),at.__current_moment.month(z.month),at.__current_moment.date(z.date),at.updateCalendar(at.__current_moment),at.__input_formats[0].clock?at.__popover.position():at.closePopover())})}),it=v.dom.tr("cui-date-time-month-header"),v.dom.append(H,it),et=v.dom.th,(J=v.dom.div("cui-date-time-dow")).textContent=this.__locale_format.tab_week,v.dom.append(it,v.dom.append(et("cui-date-time-week-title"),J)),Y=P=V=this.start_day,U=this.start_day+6;V<=U?P<=U:P>=U;Y=V<=U?++P:--P)nt=A.weekdaysMin(Y%7),(k=v.dom.div("cui-date-time-dow")).textContent=nt,v.dom.addClass(k,"cui-date-time-day-"+nt.toLowerCase()),v.dom.append(it,v.dom.append(et(),k));for(q.subtract((q.day()-this.start_day+7)%7,"days"),Y=this.start_day,rt=0,X=A();;){if(T=q.year(),L=q.month(),x=q.date(),(Y-this.start_day)%7==0){if(6===rt)break;it=v.dom.tr(),v.dom.append(H,it),ot=q.week(),v.dom.append(it,v.dom.append(v.dom.td("cui-date-time-week"),v.dom.text(ot))),rt++}E=v.dom.td,(S=v.dom.span()).textContent=x,k=E("cui-date-time-day",{cursor:"day",datestr:[T,L,x].join("-")}),v.dom.append(k,S),LF?v.dom.addClass(k,"cui-date-time-next-month"):(v.dom.addClass(k,"cui-date-time-same-month"),st===X.year()&&F===X.month()&&x===X.date()&&v.dom.addClass(k,"cui-date-time-now")),v.dom.addClass(k,"cui-date-time-day-"+q.format("dd").toLowerCase()),tt=k,v.dom.append(it,tt),v.dom.data(tt,{date:x,month:L,year:T}),q.add(1,"days"),Y++}return H},DateTime.prototype.markDay=function(){var A,z,L,T,k,x,S,E;for(L=0,k=(S=v.dom.matchSelector(this.__dateTimeTmpl.DOM,".cui-date-time-calendar .cui-date-time-selected")).length;L0?A.format(z).replace("+"+A.year(),""+A.year()):(A.subtract(1,"year"),(A.format(z)+" "+v.DateTime.defaults.bc_appendix[0]).replace(A.year(),""+-1*A.year()))},DateTime.toMoment=function(A){return v.util.isEmpty(A)?null:new v.DateTime({input_types:null}).parse(A)},DateTime.stringToDateRange=function(A){return v.DateTimeRangeGrammar.stringToDateRange(A)},DateTime.dateRangeToString=function(A,z){return v.DateTimeRangeGrammar.dateRangeToString(A,z)},DateTime}(v.Input)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n\t
    \n\t\t
    \n\t\t
    \n\t\t
    \n\t
    \n\t
    \n\t\t
    \n\t\t
    \n\t\t\t
    \n\t\t\t\t
    \n\t\t\t\t\t
    \n\t\t\t\t\t
    \n\t\t\t\t\t
    \n\t\t\t\t
    \n\t\t\t
    \n\t\t\t
    \n\t\t\t
    \n\t\t
    \n\t
    \n\t\x3c!--\n\t\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\n\t
    \n\t\t\t\t
    \n\t\t\t
    \n\t\t\t\t
    \n\t\t\t
    --\x3e\n
    \n
    \n\t
    \n\t
    \n
    \n'},function(v,A,z){(function(v){z(151),v.Timezone=function(){function Timezone(){}return Timezone.timezones=[],Timezone.init=function(){var A,z,L,T,k,x,S,E,Y,P,q,F,H,X,V;for(L={},S=0,E=(q=v.util.moment.tz.names()).length;S2&&z.splice(Math.round(z.length/2)),(F=this.timezones).push.apply(F,z);this.timezones.sort((function(v,A){return v.displayName.localeCompare(A.displayName)})),this.timezones.sort((function(v,A){return parseInt(v.offset)-parseInt(A.offset)}))},Timezone.getTimezone=function(){return v.util.moment.tz.guess()},Timezone.getTimezoneName=function(v){return this.timezonesAbbrs[v]},Timezone.timezonesAbbrs={GMT:"Greenwich Mean Time",CET:"Central European Time",CEST:"Central European Summer Time",EEST:"Eastern European Summer Time",IDT:"Israel Daylight Time",MSK:"Moscow Time Zone",EAT:"East Africa Time",SAST:"South African Standard Time",EET:"Eastern European Time",CAT:"Central Africa Time",WAT:"West Africa Time",WEST:"Western European Summer Time",BST:"British Summer Time",EST:"Eastern Standard Time",EDT:"Eastern Daylight Time",CST:"Central Standard Time",CDT:"Central Daylight Time",MST:"Mountain Standard Time",MDT:"Mountain Daylight Time",PST:"Pacific Standard Time",PDT:"Pacific Daylight Time",IST:"Indian Standard Time",JST:"Japan Standard Time",HDT:"Hawaii-Aleutian Daylight Time",HST:"Hawaii–Aleutian Time",SST:"Samoa Standard Time",AKDT:"Alaska Daylight Time",ACDT:"Australian Central Daylight Savings Time",ACST:"Australian Central Standard Time",ADT:"Atlantic Daylight Time",AEDT:"Australian Eastern Daylight Savings Time",AEST:"Australian Eastern Standard Time",AST:"Atlantic Standard Time",AWST:"Australian Western Standard Time",ChST:"Chamorro Standard Time",HKT:"Hong Kong Time",KST:"Korea Standard Time",NDT:"Newfoundland Daylight Time",NZDT:"New Zealand Daylight Time",PKT:"Pakistan Standard Time",WIB:"Western Indonesia Time",WIT:"Eastern Indonesia Time",WITA:"Indonesia Central Time Zone"},Timezone}(),v.ready((function(){return v.Timezone.init()}))}).call(this,z(0))},function(v,A,z){(v.exports=z(152)).tz.load(z(153))},function(v,A,z){var L,T,k;//! moment-timezone.js +!function webpackUniversalModuleDefinition(v,A){"object"==typeof exports&&"object"==typeof module?module.exports=A():"function"==typeof define&&define.amd?define([],A):"object"==typeof exports?exports.CUI=A():v.CUI=A()}(window,(function(){return function(v){var A={};function __webpack_require__(z){if(A[z])return A[z].exports;var L=A[z]={i:z,l:!1,exports:{}};return v[z].call(L.exports,L,L.exports,__webpack_require__),L.l=!0,L.exports}return __webpack_require__.m=v,__webpack_require__.c=A,__webpack_require__.d=function(v,A,z){__webpack_require__.o(v,A)||Object.defineProperty(v,A,{enumerable:!0,get:z})},__webpack_require__.r=function(v){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},__webpack_require__.t=function(v,A){if(1&A&&(v=__webpack_require__(v)),8&A)return v;if(4&A&&"object"==typeof v&&v&&v.__esModule)return v;var z=Object.create(null);if(__webpack_require__.r(z),Object.defineProperty(z,"default",{enumerable:!0,value:v}),2&A&&"string"!=typeof v)for(var L in v)__webpack_require__.d(z,L,function(A){return v[A]}.bind(null,L));return z},__webpack_require__.n=function(v){var A=v&&v.__esModule?function getDefault(){return v.default}:function getModuleExports(){return v};return __webpack_require__.d(A,"a",A),A},__webpack_require__.o=function(v,A){return Object.prototype.hasOwnProperty.call(v,A)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=18)}([function(v,A,z){var L,T;T=z(2),(L=function(){function CUI(){}var v;return CUI.__readyFuncs=[],CUI.__themes=[],CUI.__ng__=!0,CUI.start=function(){var v,A,L;return A=function(){return CUI.Events.trigger({type:"viewport-resize"})},CUI.Events.listen({type:"resize",node:window,call:function(v,z){CUI.browser.ie?CUI.scheduleCallback({ms:500,call:A}):A()}}),CUI.Events.listen({type:"drop",node:document.documentElement,call:function(v){return v.preventDefault()}}),CUI.Events.listen({type:"keyup",node:window,capture:!0,call:function(v){if("C+U+I"===v.getKeyboard())return CUI.toaster({text:"CUI!"})}}),CUI.Events.listen({type:"keydown",node:window,call:function(v){var A,z,L,T,k;if("c+"===v.getKeyboard()&&CUI.toaster({text:"CUI!"}),8===v.keyCode()){for(A=0,z=(T=CUI.dom.elementsUntil(v.getTarget(),null,document.documentElement)).length;A=1}},timeout:{mandatory:!0,default:0,check:function(v){return v>=-1}},call:{mandatory:!0,check:function(v){return v instanceof Function}}}),A=x.chunk_size,S=x.timeout,CUI.util.assert(this!==CUI,"CUI.chunkWork","Cannot call CUI.chunkWork with 'this' not set to the caller."),L=0,T=x.items.length,E=this,k=function(){var v,Y,P;Y=L+1+" - "+Math.min(T,L+A)+" / "+T,z.notify({progress:Y,idx:L,len:T,chunk_size:A}),v=function(){L+A>=T?z.resolve():(L+=A,-1===S?k():CUI.setTimeout({ms:S,call:k}))},!1!==(P=x.call.call(E,x.items.slice(L,L+x.chunk_size),L,T))?CUI.util.isPromise(P)?P.fail(z.reject).done(v):v():z.reject()},z=new CUI.Deferred,CUI.setTimeout({ms:Math.min(0,S),call:function(){return T>0?k():z.resolve()}}),z.promise()},CUI.chunkWorkOLD=function(v,A,z){var L,T,k;return null==A&&(A=10),null==z&&(z=0),L=new CUI.Deferred,k=0,T=function(){var x;for(x=0;k0&&this.__callTimeoutChangeCallbacks(),this.__startTimeout(x)},CUI.__scheduledCallbacks=[],CUI.scheduleCallback=function(v){var A,z,L,T,k,x;return T=CUI.Element.readOpts(v,"CUI.scheduleCallback",{call:{mandatory:!0,check:Function},ms:{default:0,check:function(v){return CUI.util.isInteger(v)&&v>=0}},track:{default:!1,check:Boolean}}),(L=CUI.util.idxInArray(T.call,this.__scheduledCallbacks,(function(v){return v.call===T.call})))>-1&&CUI.isTimeoutRunning(this.__scheduledCallbacks[L].timeoutID)&&(L=-1),-1!==L?(CUI.resetTimeout(this.__scheduledCallbacks[L].timeoutID),this.__scheduledCallbacks[L].promise):(L=this.__scheduledCallbacks.length,z=new CUI.Deferred,k=CUI.setTimeout({ms:T.ms,track:T.track,call:function(){return T.call(),z.resolve()}}),A=this.__scheduledCallbacks[L]={call:T.call,timeoutID:k,promise:z.promise()},z.done((x=this,function(){return CUI.util.removeFromArray(T.call,x.__scheduledCallbacks,(function(v){return v.call===T.call}))})),A.promise)},CUI.scheduleCallbackCancel=function(v){var A,z;return z=CUI.Element.readOpts(v,"CUI.scheduleCallbackCancel",{call:{mandatory:!0,check:Function}}),(A=CUI.util.idxInArray(z.call,this.__scheduledCallbacks,(function(v){return v.call===z.call})))>-1&&!CUI.isTimeoutRunning(this.__scheduledCallbacks[A].timeoutID)&&(CUI.clearTimeout(this.__scheduledCallbacks[A].timeoutID),this.__scheduledCallbacks.splice(A,1),!0)},CUI.utf8ArrayBufferToString=function(v){var A,z,L,T,k,x,S;for(S=[],x=(A=new Uint8Array(v)).length,k=0;k>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:S.push(String.fromCharCode(z));break;case 12:case 13:L=A[k++],S.push(String.fromCharCode((31&z)<<6|63&L));break;case 14:L=A[k++],T=A[k++],S.push(String.fromCharCode((15&z)<<12|(63&L)<<6|(63&T)<<0))}return S.join("")},CUI.__startTimeout=function(v){var A;return A=window.setTimeout(v.call,v.ms),v.id||(v.id=A),v.real_id=A,v.id},CUI.countTimeouts=function(){var v,A,z,L;for(L=0,v=0,A=(z=this.__timeouts).length;v0&&Y.push(","),z=T=0,x=(E=P.split(":")).length;T0&&Y.push(":"),Y.push(encodeURIComponent(q));return Y.join("")},CUI.decodeURIComponentNicely=function(v){return decodeURIComponent(v)},CUI.decodeUrlData=function(v,A,z,L,T){var k,x,S,E,Y,P,q,F,H;for(null==A&&(A=null),null==z&&(z="&"),null==L&&(L="="),null==T&&(T=!1),P={},k=A?CUI.util.isFunction(A)?A:function(v){return CUI.util.stringMapReplace(v+"",A)}:function(v){return decodeURIComponent(v)},x=0,E=(F=v.split(z)).length;x-1?(S=k((Y=q.split(L))[0]),H=k(Y[1])):(S=k(q),H=""),T?(P[S]||(P[S]=[]),P[S].push(H)):P[S]=H);return P},CUI.decodeUrlDataArray=function(v,A,z,L){return null==A&&(A=null),null==z&&(z="&"),null==L&&(L="="),this.decodeUrlData(v,A,z,L,!0)},CUI.mergeMap=function(v,A){var z,L;for(z in A)L=A[z],v.hasOwnProperty(z)?CUI.util.isPlainObject(v[z])&&CUI.util.isPlainObject(L)&&CUI.util.mergeMap(v[z],L):v[z]=L;return v},CUI.revertMap=function(v){var A,z;for(A in z={},v)z[v[A]]=A;return z},CUI.stringMapReplace=function(v,A){var z,L;for(z in L=[],A)CUI.util.isEmpty(z)||L.push(z.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));return L.length>0?v.replace(new RegExp(L.join("|"),"g"),(function(v){return A[v]})):v},CUI.isFunction=function(v){return v&&"function"==typeof v},CUI.isPlainObject=function(v){var A;return v&&"object"==typeof v&&(null!=(A=v.constructor)?A.prototype.hasOwnProperty("isPrototypeOf"):void 0)},CUI.isEmptyObject=function(v){var A;for(A in v)return!1;return!0},CUI.isMap=function(v){return this.isPlainObject(v)},CUI.isArray=function(v){return Array.isArray(v)},CUI.inArray=function(v,A){return A.indexOf(v)},CUI.isString=function(v){return"string"==typeof v},CUI.downloadData=function(v,A){var z,L;return z=new Blob([v],{type:"octet/stream"}),window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(z,A):(L=window.URL.createObjectURL(z),this.__downloadDataElement.href=L,this.__downloadDataElement.download=A,this.__downloadDataElement.click(),window.URL.revokeObjectURL(L))},CUI.urlRegex=new RegExp("^(?:(?:(sftp|ftp|ftps|https|http))://|)(?:(\\S+?)(?::(\\S*))?@)?((?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:[a-z0-9\\u00a1-\\uffff](?:|[a-z\\u00a1-\\uffff0-9-]*[a-z0-9\\u00a1-\\uffff])\\.)*(?:[a-z\\u00a1-\\uffff]{2,})|(?:[a-z0-9\\u00a1-\\uffff][a-z0-9-\\u00a1-\\uffff]*[a-z0-9\\u00a1-\\uffff])))|)(?::(\\d{2,5}))?(?:([/?#]\\S*))?$","i"),CUI.evalCode=function(v){var A;return(A=document.createElement("script")).text=v,document.head.appendChild(A).parentNode.removeChild(A)},CUI.appendToUrl=function(v,A){var z,L;for(z in A)void 0!==(L=A[z])&&(v.match(/\?/)?v+="&":v+="?",v+=encodeURIComponent(z)+"="+encodeURIComponent(L));return v},CUI.parseLocation=function(v){var A,z,L;return CUI.util.isFunction(null!=v?v.match:void 0)&&0!==v.length&&(z=v.match(this.urlRegex))?((L={protocol:z[1]||"",user:z[2]||"",password:z[3]||"",hostname:z[4]||"",port:z[5]||"",path:z[6]||"",origin:""}).hostname?(L.protocol||(L.protocol="http"),L.origin=L.protocol+"://"+L.hostname,L.port&&(L.origin+=":"+L.port),L.url=L.protocol+"://",L.user&&(L.url=L.url+L.user+":"+L.password+"@"),L.url=L.url+L.hostname,L.port&&(L.url=L.url+":"+L.port)):L.url="",L.path.length>0?(A=L.path.match(/(.*?)(|\?.*?)(|\#.*)$/),L.pathname=A[1],L.search=A[2],"?"===L.search&&(L.search=""),L.fragment=A[3]):(L.search="",L.pathname="",L.fragment=""),L.href=L.origin+L.path,L.hash=L.fragment,L.login&&(L.auth=btoa(L.user+":"+L.password)),L.url=L.url+L.path,L):null},CUI.escapeAttribute=function(v){return CUI.util.isNull(v)||!CUI.util.isString(v)?"":v=v.replace(/"/g,""").replace(/\'/g,"'")},CUI.loadScript=function(v){var A,z;return A=new CUI.Deferred,z=CUI.dom.element("script",{charset:"utf-8",src:v}),CUI.Events.listen({type:"load",node:z,instance:z,call:function(v){A.resolve(v)}}),CUI.Events.listen({type:"error",node:z,instance:z,call:function(v){document.head.removeChild(z),A.reject(v)}}),A.always((function(){return CUI.Events.ignore({instance:z})})),document.head.appendChild(z),A.promise()},CUI.browser=((v={opera:!!window.opr&&!!opr.addons||!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0,firefox:"undefined"!=typeof InstallTrigger,safari:Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,ie:!!document.documentMode,chrome:!!window.chrome&&!!window.chrome.webstore}).edge=!v.ie&&!!window.StyleMedia,v.blink=(v.chrome||v.opera)&&!!window.CSS,v),CUI}()).ready((function(){var v,A;for(v in L.browser)L.browser[v]&&document.body.classList.add("cui-browser-"+v);return L.defaults.marked_opts={renderer:new T.Renderer,gfm:!0,tables:!0,breaks:!1,pedantic:!1,smartLists:!0,smartypants:!1},T.setOptions(L.defaults.marked_opts),A=L.dom.htmlToNodes("\x3c!-- CUI.CUI --\x3e\x3c!-- /CUI.CUI --\x3e"),L.__downloadDataElement=A[1],L.dom.append(document.body,A)})),window.addEventListener?window.addEventListener("load",(function(){return L.start()})):alert("Your browser is not supported. Please update to a current version of Google Chrome, Mozilla Firefox or Internet Explorer."),v.exports=L},function(v,A,z){(function(v){v.exports=function(){"use strict";var A,L;function hooks(){return A.apply(null,arguments)}function setHookCallback(v){A=v}function isArray(v){return v instanceof Array||"[object Array]"===Object.prototype.toString.call(v)}function isObject(v){return null!=v&&"[object Object]"===Object.prototype.toString.call(v)}function isObjectEmpty(v){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(v).length;var A;for(A in v)if(v.hasOwnProperty(A))return!1;return!0}function isUndefined(v){return void 0===v}function isNumber(v){return"number"==typeof v||"[object Number]"===Object.prototype.toString.call(v)}function isDate(v){return v instanceof Date||"[object Date]"===Object.prototype.toString.call(v)}function map(v,A){var z,L=[];for(z=0;z>>0,L=0;L0)for(z=0;z0?"future":"past"];return isFunction(z)?z(A):z.replace(/%s/i,A)}var X={};function addUnitAlias(v,A){var z=v.toLowerCase();X[z]=X[z+"s"]=X[A]=v}function normalizeUnits(v){return"string"==typeof v?X[v]||X[v.toLowerCase()]:void 0}function normalizeObjectUnits(v){var A,z,L={};for(z in v)hasOwnProp(v,z)&&(A=normalizeUnits(z))&&(L[A]=v[z]);return L}var V={};function addUnitPriority(v,A){V[v]=A}function getPrioritizedUnits(v){var A=[];for(var z in v)A.push({unit:z,priority:V[z]});return A.sort((function(v,A){return v.priority-A.priority})),A}function zeroFill(v,A,z){var L=""+Math.abs(v),T=A-L.length;return(v>=0?z?"+":"":"-")+Math.pow(10,Math.max(0,T)).toString().substr(1)+L}var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,J=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,tt={},et={};function addFormatToken(v,A,z,L){var T=L;"string"==typeof L&&(T=function(){return this[L]()}),v&&(et[v]=T),A&&(et[A[0]]=function(){return zeroFill(T.apply(this,arguments),A[1],A[2])}),z&&(et[z]=function(){return this.localeData().ordinal(T.apply(this,arguments),v)})}function removeFormattingTokens(v){return v.match(/\[[\s\S]/)?v.replace(/^\[|\]$/g,""):v.replace(/\\/g,"")}function makeFormatFunction(v){var A,z,L=v.match(U);for(A=0,z=L.length;A=0&&J.test(v);)v=v.replace(J,replaceLongDateFormatTokens),J.lastIndex=0,z-=1;return v}var it=/\d/,ot=/\d\d/,nt=/\d{3}/,rt=/\d{4}/,st=/[+-]?\d{6}/,at=/\d\d?/,ct=/\d\d\d\d?/,lt=/\d\d\d\d\d\d?/,ut=/\d{1,3}/,pt=/\d{1,4}/,ht=/[+-]?\d{1,6}/,dt=/\d+/,_t=/[+-]?\d+/,ft=/Z|[+-]\d\d:?\d\d/gi,mt=/Z|[+-]\d\d(?::?\d\d)?/gi,Mt=/[+-]?\d+(\.\d{1,3})?/,gt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,yt={};function addRegexToken(v,A,z){yt[v]=isFunction(A)?A:function(v,L){return v&&z?z:A}}function getParseRegexForToken(v,A){return hasOwnProp(yt,v)?yt[v](A._strict,A._locale):new RegExp(unescapeFormat(v))}function unescapeFormat(v){return regexEscape(v.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(v,A,z,L,T){return A||z||L||T})))}function regexEscape(v){return v.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var bt={};function addParseToken(v,A){var z,L=A;for("string"==typeof v&&(v=[v]),isNumber(A)&&(L=function(v,z){z[A]=toInt(v)}),z=0;z68?1900:2e3)};var xt,St=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(v,A){return function(z){return null!=z?(set$1(this,v,z),hooks.updateOffset(this,A),this):get(this,v)}}function get(v,A){return v.isValid()?v._d["get"+(v._isUTC?"UTC":"")+A]():NaN}function set$1(v,A,z){v.isValid()&&!isNaN(z)&&("FullYear"===A&&isLeapYear(v.year())&&1===v.month()&&29===v.date()?v._d["set"+(v._isUTC?"UTC":"")+A](z,v.month(),daysInMonth(z,v.month())):v._d["set"+(v._isUTC?"UTC":"")+A](z))}function stringGet(v){return isFunction(this[v=normalizeUnits(v)])?this[v]():this}function stringSet(v,A){if("object"==typeof v)for(var z=getPrioritizedUnits(v=normalizeObjectUnits(v)),L=0;L=0?(S=new Date(v+400,A,z,L,T,k,x),isFinite(S.getFullYear())&&S.setFullYear(v)):S=new Date(v,A,z,L,T,k,x),S}function createUTCDate(v){var A;if(v<100&&v>=0){var z=Array.prototype.slice.call(arguments);z[0]=v+400,A=new Date(Date.UTC.apply(null,z)),isFinite(A.getUTCFullYear())&&A.setUTCFullYear(v)}else A=new Date(Date.UTC.apply(null,arguments));return A}function firstWeekOffset(v,A,z){var L=7+A-z;return-(7+createUTCDate(v,0,L).getUTCDay()-A)%7+L-1}function dayOfYearFromWeeks(v,A,z,L,T){var k,x,S=1+7*(A-1)+(7+z-L)%7+firstWeekOffset(v,L,T);return S<=0?x=daysInYear(k=v-1)+S:S>daysInYear(v)?(k=v+1,x=S-daysInYear(v)):(k=v,x=S),{year:k,dayOfYear:x}}function weekOfYear(v,A,z){var L,T,k=firstWeekOffset(v.year(),A,z),x=Math.floor((v.dayOfYear()-k-1)/7)+1;return x<1?L=x+weeksInYear(T=v.year()-1,A,z):x>weeksInYear(v.year(),A,z)?(L=x-weeksInYear(v.year(),A,z),T=v.year()+1):(T=v.year(),L=x),{week:L,year:T}}function weeksInYear(v,A,z){var L=firstWeekOffset(v,A,z),T=firstWeekOffset(v+1,A,z);return(daysInYear(v)-L+T)/7}function localeWeek(v){return weekOfYear(v,this._week.dow,this._week.doy).week}addFormatToken("w",["ww",2],"wo","week"),addFormatToken("W",["WW",2],"Wo","isoWeek"),addUnitAlias("week","w"),addUnitAlias("isoWeek","W"),addUnitPriority("week",5),addUnitPriority("isoWeek",5),addRegexToken("w",at),addRegexToken("ww",at,ot),addRegexToken("W",at),addRegexToken("WW",at,ot),addWeekParseToken(["w","ww","W","WW"],(function(v,A,z,L){A[L.substr(0,1)]=toInt(v)}));var It={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(v){var A=this.localeData().week(this);return null==v?A:this.add(7*(v-A),"d")}function getSetISOWeek(v){var A=weekOfYear(this,1,4).week;return null==v?A:this.add(7*(v-A),"d")}function parseWeekday(v,A){return"string"!=typeof v?v:isNaN(v)?"number"==typeof(v=A.weekdaysParse(v))?v:null:parseInt(v,10)}function parseIsoWeekday(v,A){return"string"==typeof v?A.weekdaysParse(v)%7||7:isNaN(v)?null:v}function shiftWeekdays(v,A){return v.slice(A,7).concat(v.slice(0,A))}addFormatToken("d",0,"do","day"),addFormatToken("dd",0,0,(function(v){return this.localeData().weekdaysMin(this,v)})),addFormatToken("ddd",0,0,(function(v){return this.localeData().weekdaysShort(this,v)})),addFormatToken("dddd",0,0,(function(v){return this.localeData().weekdays(this,v)})),addFormatToken("e",0,0,"weekday"),addFormatToken("E",0,0,"isoWeekday"),addUnitAlias("day","d"),addUnitAlias("weekday","e"),addUnitAlias("isoWeekday","E"),addUnitPriority("day",11),addUnitPriority("weekday",11),addUnitPriority("isoWeekday",11),addRegexToken("d",at),addRegexToken("e",at),addRegexToken("E",at),addRegexToken("dd",(function(v,A){return A.weekdaysMinRegex(v)})),addRegexToken("ddd",(function(v,A){return A.weekdaysShortRegex(v)})),addRegexToken("dddd",(function(v,A){return A.weekdaysRegex(v)})),addWeekParseToken(["dd","ddd","dddd"],(function(v,A,z,L){var T=z._locale.weekdaysParse(v,L,z._strict);null!=T?A.d=T:getParsingFlags(z).invalidWeekday=v})),addWeekParseToken(["d","e","E"],(function(v,A,z,L){A[L]=toInt(v)}));var Pt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function localeWeekdays(v,A){var z=isArray(this._weekdays)?this._weekdays:this._weekdays[v&&!0!==v&&this._weekdays.isFormat.test(A)?"format":"standalone"];return!0===v?shiftWeekdays(z,this._week.dow):v?z[v.day()]:z}var Wt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function localeWeekdaysShort(v){return!0===v?shiftWeekdays(this._weekdaysShort,this._week.dow):v?this._weekdaysShort[v.day()]:this._weekdaysShort}var jt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function localeWeekdaysMin(v){return!0===v?shiftWeekdays(this._weekdaysMin,this._week.dow):v?this._weekdaysMin[v.day()]:this._weekdaysMin}function handleStrictParse$1(v,A,z){var L,T,k,x=v.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],L=0;L<7;++L)k=createUTC([2e3,1]).day(L),this._minWeekdaysParse[L]=this.weekdaysMin(k,"").toLocaleLowerCase(),this._shortWeekdaysParse[L]=this.weekdaysShort(k,"").toLocaleLowerCase(),this._weekdaysParse[L]=this.weekdays(k,"").toLocaleLowerCase();return z?"dddd"===A?-1!==(T=xt.call(this._weekdaysParse,x))?T:null:"ddd"===A?-1!==(T=xt.call(this._shortWeekdaysParse,x))?T:null:-1!==(T=xt.call(this._minWeekdaysParse,x))?T:null:"dddd"===A?-1!==(T=xt.call(this._weekdaysParse,x))||-1!==(T=xt.call(this._shortWeekdaysParse,x))||-1!==(T=xt.call(this._minWeekdaysParse,x))?T:null:"ddd"===A?-1!==(T=xt.call(this._shortWeekdaysParse,x))||-1!==(T=xt.call(this._weekdaysParse,x))||-1!==(T=xt.call(this._minWeekdaysParse,x))?T:null:-1!==(T=xt.call(this._minWeekdaysParse,x))||-1!==(T=xt.call(this._weekdaysParse,x))||-1!==(T=xt.call(this._shortWeekdaysParse,x))?T:null}function localeWeekdaysParse(v,A,z){var L,T,k;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,v,A,z);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),L=0;L<7;L++){if(T=createUTC([2e3,1]).day(L),z&&!this._fullWeekdaysParse[L]&&(this._fullWeekdaysParse[L]=new RegExp("^"+this.weekdays(T,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[L]=new RegExp("^"+this.weekdaysShort(T,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[L]=new RegExp("^"+this.weekdaysMin(T,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[L]||(k="^"+this.weekdays(T,"")+"|^"+this.weekdaysShort(T,"")+"|^"+this.weekdaysMin(T,""),this._weekdaysParse[L]=new RegExp(k.replace(".",""),"i")),z&&"dddd"===A&&this._fullWeekdaysParse[L].test(v))return L;if(z&&"ddd"===A&&this._shortWeekdaysParse[L].test(v))return L;if(z&&"dd"===A&&this._minWeekdaysParse[L].test(v))return L;if(!z&&this._weekdaysParse[L].test(v))return L}}function getSetDayOfWeek(v){if(!this.isValid())return null!=v?this:NaN;var A=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=v?(v=parseWeekday(v,this.localeData()),this.add(v-A,"d")):A}function getSetLocaleDayOfWeek(v){if(!this.isValid())return null!=v?this:NaN;var A=(this.day()+7-this.localeData()._week.dow)%7;return null==v?A:this.add(v-A,"d")}function getSetISODayOfWeek(v){if(!this.isValid())return null!=v?this:NaN;if(null!=v){var A=parseIsoWeekday(v,this.localeData());return this.day(this.day()%7?A:A-7)}return this.day()||7}var Gt=gt;function weekdaysRegex(v){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),v?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=Gt),this._weekdaysStrictRegex&&v?this._weekdaysStrictRegex:this._weekdaysRegex)}var Zt=gt;function weekdaysShortRegex(v){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),v?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Zt),this._weekdaysShortStrictRegex&&v?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}var Kt=gt;function weekdaysMinRegex(v){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),v?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Kt),this._weekdaysMinStrictRegex&&v?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function cmpLenRev(v,A){return A.length-v.length}var v,A,z,L,T,k=[],x=[],S=[],E=[];for(v=0;v<7;v++)A=createUTC([2e3,1]).day(v),z=this.weekdaysMin(A,""),L=this.weekdaysShort(A,""),T=this.weekdays(A,""),k.push(z),x.push(L),S.push(T),E.push(z),E.push(L),E.push(T);for(k.sort(cmpLenRev),x.sort(cmpLenRev),S.sort(cmpLenRev),E.sort(cmpLenRev),v=0;v<7;v++)x[v]=regexEscape(x[v]),S[v]=regexEscape(S[v]),E[v]=regexEscape(E[v]);this._weekdaysRegex=new RegExp("^("+E.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+S.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+x.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+k.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}function meridiem(v,A){addFormatToken(v,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),A)}))}function matchMeridiem(v,A){return A._meridiemParse}function localeIsPM(v){return"p"===(v+"").toLowerCase().charAt(0)}addFormatToken("H",["HH",2],0,"hour"),addFormatToken("h",["hh",2],0,hFormat),addFormatToken("k",["kk",2],0,kFormat),addFormatToken("hmm",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)})),addFormatToken("hmmss",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),addFormatToken("Hmm",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)})),addFormatToken("Hmmss",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),meridiem("a",!0),meridiem("A",!1),addUnitAlias("hour","h"),addUnitPriority("hour",13),addRegexToken("a",matchMeridiem),addRegexToken("A",matchMeridiem),addRegexToken("H",at),addRegexToken("h",at),addRegexToken("k",at),addRegexToken("HH",at,ot),addRegexToken("hh",at,ot),addRegexToken("kk",at,ot),addRegexToken("hmm",ct),addRegexToken("hmmss",lt),addRegexToken("Hmm",ct),addRegexToken("Hmmss",lt),addParseToken(["H","HH"],Ot),addParseToken(["k","kk"],(function(v,A,z){var L=toInt(v);A[Ot]=24===L?0:L})),addParseToken(["a","A"],(function(v,A,z){z._isPm=z._locale.isPM(v),z._meridiem=v})),addParseToken(["h","hh"],(function(v,A,z){A[Ot]=toInt(v),getParsingFlags(z).bigHour=!0})),addParseToken("hmm",(function(v,A,z){var L=v.length-2;A[Ot]=toInt(v.substr(0,L)),A[zt]=toInt(v.substr(L)),getParsingFlags(z).bigHour=!0})),addParseToken("hmmss",(function(v,A,z){var L=v.length-4,T=v.length-2;A[Ot]=toInt(v.substr(0,L)),A[zt]=toInt(v.substr(L,2)),A[Lt]=toInt(v.substr(T)),getParsingFlags(z).bigHour=!0})),addParseToken("Hmm",(function(v,A,z){var L=v.length-2;A[Ot]=toInt(v.substr(0,L)),A[zt]=toInt(v.substr(L))})),addParseToken("Hmmss",(function(v,A,z){var L=v.length-4,T=v.length-2;A[Ot]=toInt(v.substr(0,L)),A[zt]=toInt(v.substr(L,2)),A[Lt]=toInt(v.substr(T))}));var $t=/[ap]\.?m?\.?/i;function localeMeridiem(v,A,z){return v>11?z?"pm":"PM":z?"am":"AM"}var Qt,te=makeGetSet("Hours",!0),ee={calendar:E,longDateFormat:Y,invalidDate:P,ordinal:q,dayOfMonthOrdinalParse:F,relativeTime:H,months:Et,monthsShort:Bt,week:It,weekdays:Pt,weekdaysMin:jt,weekdaysShort:Wt,meridiemParse:$t},ie={},oe={};function normalizeLocale(v){return v?v.toLowerCase().replace("_","-"):v}function chooseLocale(v){for(var A,z,L,T,k=0;k0;){if(L=loadLocale(T.slice(0,A).join("-")))return L;if(z&&z.length>=A&&compareArrays(T,z,!0)>=A-1)break;A--}k++}return Qt}function loadLocale(A){var L=null;if(!ie[A]&&void 0!==v&&v&&v.exports)try{L=Qt._abbr,z(27)("./"+A),getSetGlobalLocale(L)}catch(v){}return ie[A]}function getSetGlobalLocale(v,A){var z;return v&&((z=isUndefined(A)?getLocale(v):defineLocale(v,A))?Qt=z:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+v+" not found. Did you forget to load it?")),Qt._abbr}function defineLocale(v,A){if(null!==A){var z,L=ee;if(A.abbr=v,null!=ie[v])deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),L=ie[v]._config;else if(null!=A.parentLocale)if(null!=ie[A.parentLocale])L=ie[A.parentLocale]._config;else{if(null==(z=loadLocale(A.parentLocale)))return oe[A.parentLocale]||(oe[A.parentLocale]=[]),oe[A.parentLocale].push({name:v,config:A}),null;L=z._config}return ie[v]=new Locale(mergeConfigs(L,A)),oe[v]&&oe[v].forEach((function(v){defineLocale(v.name,v.config)})),getSetGlobalLocale(v),ie[v]}return delete ie[v],null}function updateLocale(v,A){if(null!=A){var z,L,T=ee;null!=(L=loadLocale(v))&&(T=L._config),(z=new Locale(A=mergeConfigs(T,A))).parentLocale=ie[v],ie[v]=z,getSetGlobalLocale(v)}else null!=ie[v]&&(null!=ie[v].parentLocale?ie[v]=ie[v].parentLocale:null!=ie[v]&&delete ie[v]);return ie[v]}function getLocale(v){var A;if(v&&v._locale&&v._locale._abbr&&(v=v._locale._abbr),!v)return Qt;if(!isArray(v)){if(A=loadLocale(v))return A;v=[v]}return chooseLocale(v)}function listLocales(){return x(ie)}function checkOverflow(v){var A,z=v._a;return z&&-2===getParsingFlags(v).overflow&&(A=z[wt]<0||z[wt]>11?wt:z[At]<1||z[At]>daysInMonth(z[vt],z[wt])?At:z[Ot]<0||z[Ot]>24||24===z[Ot]&&(0!==z[zt]||0!==z[Lt]||0!==z[Tt])?Ot:z[zt]<0||z[zt]>59?zt:z[Lt]<0||z[Lt]>59?Lt:z[Tt]<0||z[Tt]>999?Tt:-1,getParsingFlags(v)._overflowDayOfYear&&(AAt)&&(A=At),getParsingFlags(v)._overflowWeeks&&-1===A&&(A=Dt),getParsingFlags(v)._overflowWeekday&&-1===A&&(A=Ct),getParsingFlags(v).overflow=A),v}function defaults(v,A,z){return null!=v?v:null!=A?A:z}function currentDateArray(v){var A=new Date(hooks.now());return v._useUTC?[A.getUTCFullYear(),A.getUTCMonth(),A.getUTCDate()]:[A.getFullYear(),A.getMonth(),A.getDate()]}function configFromArray(v){var A,z,L,T,k,x=[];if(!v._d){for(L=currentDateArray(v),v._w&&null==v._a[At]&&null==v._a[wt]&&dayOfYearFromWeekInfo(v),null!=v._dayOfYear&&(k=defaults(v._a[vt],L[vt]),(v._dayOfYear>daysInYear(k)||0===v._dayOfYear)&&(getParsingFlags(v)._overflowDayOfYear=!0),z=createUTCDate(k,0,v._dayOfYear),v._a[wt]=z.getUTCMonth(),v._a[At]=z.getUTCDate()),A=0;A<3&&null==v._a[A];++A)v._a[A]=x[A]=L[A];for(;A<7;A++)v._a[A]=x[A]=null==v._a[A]?2===A?1:0:v._a[A];24===v._a[Ot]&&0===v._a[zt]&&0===v._a[Lt]&&0===v._a[Tt]&&(v._nextDay=!0,v._a[Ot]=0),v._d=(v._useUTC?createUTCDate:createDate).apply(null,x),T=v._useUTC?v._d.getUTCDay():v._d.getDay(),null!=v._tzm&&v._d.setUTCMinutes(v._d.getUTCMinutes()-v._tzm),v._nextDay&&(v._a[Ot]=24),v._w&&void 0!==v._w.d&&v._w.d!==T&&(getParsingFlags(v).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(v){var A,z,L,T,k,x,S,E;if(null!=(A=v._w).GG||null!=A.W||null!=A.E)k=1,x=4,z=defaults(A.GG,v._a[vt],weekOfYear(createLocal(),1,4).year),L=defaults(A.W,1),((T=defaults(A.E,1))<1||T>7)&&(E=!0);else{k=v._locale._week.dow,x=v._locale._week.doy;var Y=weekOfYear(createLocal(),k,x);z=defaults(A.gg,v._a[vt],Y.year),L=defaults(A.w,Y.week),null!=A.d?((T=A.d)<0||T>6)&&(E=!0):null!=A.e?(T=A.e+k,(A.e<0||A.e>6)&&(E=!0)):T=k}L<1||L>weeksInYear(z,k,x)?getParsingFlags(v)._overflowWeeks=!0:null!=E?getParsingFlags(v)._overflowWeekday=!0:(S=dayOfYearFromWeeks(z,L,T,k,x),v._a[vt]=S.year,v._dayOfYear=S.dayOfYear)}var ne=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,re=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,se=/Z|[+-]\d\d(?::?\d\d)?/,ae=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],le=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ue=/^\/?Date\((\-?\d+)/i;function configFromISO(v){var A,z,L,T,k,x,S=v._i,E=ne.exec(S)||re.exec(S);if(E){for(getParsingFlags(v).iso=!0,A=0,z=ae.length;A0&&getParsingFlags(v).unusedInput.push(k),x=x.slice(x.indexOf(z)+z.length),E+=z.length),et[T]?(z?getParsingFlags(v).empty=!1:getParsingFlags(v).unusedTokens.push(T),addTimeToArrayFromToken(T,z,v)):v._strict&&!z&&getParsingFlags(v).unusedTokens.push(T);getParsingFlags(v).charsLeftOver=S-E,x.length>0&&getParsingFlags(v).unusedInput.push(x),v._a[Ot]<=12&&!0===getParsingFlags(v).bigHour&&v._a[Ot]>0&&(getParsingFlags(v).bigHour=void 0),getParsingFlags(v).parsedDateParts=v._a.slice(0),getParsingFlags(v).meridiem=v._meridiem,v._a[Ot]=meridiemFixWrap(v._locale,v._a[Ot],v._meridiem),configFromArray(v),checkOverflow(v)}else configFromRFC2822(v);else configFromISO(v)}function meridiemFixWrap(v,A,z){var L;return null==z?A:null!=v.meridiemHour?v.meridiemHour(A,z):null!=v.isPM?((L=v.isPM(z))&&A<12&&(A+=12),L||12!==A||(A=0),A):A}function configFromStringAndArray(v){var A,z,L,T,k;if(0===v._f.length)return getParsingFlags(v).invalidFormat=!0,void(v._d=new Date(NaN));for(T=0;Tthis?this:v:createInvalid()}));function pickBy(v,A){var z,L;if(1===A.length&&isArray(A[0])&&(A=A[0]),!A.length)return createLocal();for(z=A[0],L=1;Lthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var v={};if(copyConfig(v,this),(v=prepareConfig(v))._a){var A=v._isUTC?createUTC(v._a):createLocal(v._a);this._isDSTShifted=this.isValid()&&compareArrays(v._a,A.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function isLocal(){return!!this.isValid()&&!this._isUTC}function isUtcOffset(){return!!this.isValid()&&this._isUTC}function isUtc(){return!!this.isValid()&&this._isUTC&&0===this._offset}hooks.updateOffset=function(){};var Oe=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ze=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(v,A){var z,L,T,k=v,x=null;return isDuration(v)?k={ms:v._milliseconds,d:v._days,M:v._months}:isNumber(v)?(k={},A?k[A]=v:k.milliseconds=v):(x=Oe.exec(v))?(z="-"===x[1]?-1:1,k={y:0,d:toInt(x[At])*z,h:toInt(x[Ot])*z,m:toInt(x[zt])*z,s:toInt(x[Lt])*z,ms:toInt(absRound(1e3*x[Tt]))*z}):(x=ze.exec(v))?(z="-"===x[1]?-1:1,k={y:parseIso(x[2],z),M:parseIso(x[3],z),w:parseIso(x[4],z),d:parseIso(x[5],z),h:parseIso(x[6],z),m:parseIso(x[7],z),s:parseIso(x[8],z)}):null==k?k={}:"object"==typeof k&&("from"in k||"to"in k)&&(T=momentsDifference(createLocal(k.from),createLocal(k.to)),(k={}).ms=T.milliseconds,k.M=T.months),L=new Duration(k),isDuration(v)&&hasOwnProp(v,"_locale")&&(L._locale=v._locale),L}function parseIso(v,A){var z=v&&parseFloat(v.replace(",","."));return(isNaN(z)?0:z)*A}function positiveMomentsDifference(v,A){var z={};return z.months=A.month()-v.month()+12*(A.year()-v.year()),v.clone().add(z.months,"M").isAfter(A)&&--z.months,z.milliseconds=+A-+v.clone().add(z.months,"M"),z}function momentsDifference(v,A){var z;return v.isValid()&&A.isValid()?(A=cloneWithOffset(A,v),v.isBefore(A)?z=positiveMomentsDifference(v,A):((z=positiveMomentsDifference(A,v)).milliseconds=-z.milliseconds,z.months=-z.months),z):{milliseconds:0,months:0}}function createAdder(v,A){return function(z,L){var T;return null===L||isNaN(+L)||(deprecateSimple(A,"moment()."+A+"(period, number) is deprecated. Please use moment()."+A+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),T=z,z=L,L=T),addSubtract(this,createDuration(z="string"==typeof z?+z:z,L),v),this}}function addSubtract(v,A,z,L){var T=A._milliseconds,k=absRound(A._days),x=absRound(A._months);v.isValid()&&(L=null==L||L,x&&setMonth(v,get(v,"Month")+x*z),k&&set$1(v,"Date",get(v,"Date")+k*z),T&&v._d.setTime(v._d.valueOf()+T*z),L&&hooks.updateOffset(v,k||x))}createDuration.fn=Duration.prototype,createDuration.invalid=createInvalid$1;var Le=createAdder(1,"add"),Te=createAdder(-1,"subtract");function getCalendarFormat(v,A){var z=v.diff(A,"days",!0);return z<-6?"sameElse":z<-1?"lastWeek":z<0?"lastDay":z<1?"sameDay":z<2?"nextDay":z<7?"nextWeek":"sameElse"}function calendar$1(v,A){var z=v||createLocal(),L=cloneWithOffset(z,this).startOf("day"),T=hooks.calendarFormat(this,L)||"sameElse",k=A&&(isFunction(A[T])?A[T].call(this,z):A[T]);return this.format(k||this.localeData().calendar(T,this,createLocal(z)))}function clone(){return new Moment(this)}function isAfter(v,A){var z=isMoment(v)?v:createLocal(v);return!(!this.isValid()||!z.isValid())&&("millisecond"===(A=normalizeUnits(A)||"millisecond")?this.valueOf()>z.valueOf():z.valueOf()9999?formatMoment(z,A?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?A?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",formatMoment(z,"Z")):formatMoment(z,A?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var v="moment",A="";this.isLocal()||(v=0===this.utcOffset()?"moment.utc":"moment.parseZone",A="Z");var z="["+v+'("]',L=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",T="-MM-DD[T]HH:mm:ss.SSS",k=A+'[")]';return this.format(z+L+T+k)}function format(v){v||(v=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var A=formatMoment(this,v);return this.localeData().postformat(A)}function from(v,A){return this.isValid()&&(isMoment(v)&&v.isValid()||createLocal(v).isValid())?createDuration({to:this,from:v}).locale(this.locale()).humanize(!A):this.localeData().invalidDate()}function fromNow(v){return this.from(createLocal(),v)}function to(v,A){return this.isValid()&&(isMoment(v)&&v.isValid()||createLocal(v).isValid())?createDuration({from:this,to:v}).locale(this.locale()).humanize(!A):this.localeData().invalidDate()}function toNow(v){return this.to(createLocal(),v)}function locale(v){var A;return void 0===v?this._locale._abbr:(null!=(A=getLocale(v))&&(this._locale=A),this)}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var De=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(v){return void 0===v?this.localeData():this.locale(v)}));function localeData(){return this._locale}var ke=1e3,Ce=60*ke,Se=60*Ce,Ne=3506328*Se;function mod$1(v,A){return(v%A+A)%A}function localStartOfDate(v,A,z){return v<100&&v>=0?new Date(v+400,A,z)-Ne:new Date(v,A,z).valueOf()}function utcStartOfDate(v,A,z){return v<100&&v>=0?Date.UTC(v+400,A,z)-Ne:Date.UTC(v,A,z)}function startOf(v){var A;if(void 0===(v=normalizeUnits(v))||"millisecond"===v||!this.isValid())return this;var z=this._isUTC?utcStartOfDate:localStartOfDate;switch(v){case"year":A=z(this.year(),0,1);break;case"quarter":A=z(this.year(),this.month()-this.month()%3,1);break;case"month":A=z(this.year(),this.month(),1);break;case"week":A=z(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":A=z(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":A=z(this.year(),this.month(),this.date());break;case"hour":A=this._d.valueOf(),A-=mod$1(A+(this._isUTC?0:this.utcOffset()*Ce),Se);break;case"minute":A=this._d.valueOf(),A-=mod$1(A,Ce);break;case"second":A=this._d.valueOf(),A-=mod$1(A,ke)}return this._d.setTime(A),hooks.updateOffset(this,!0),this}function endOf(v){var A;if(void 0===(v=normalizeUnits(v))||"millisecond"===v||!this.isValid())return this;var z=this._isUTC?utcStartOfDate:localStartOfDate;switch(v){case"year":A=z(this.year()+1,0,1)-1;break;case"quarter":A=z(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":A=z(this.year(),this.month()+1,1)-1;break;case"week":A=z(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":A=z(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":A=z(this.year(),this.month(),this.date()+1)-1;break;case"hour":A=this._d.valueOf(),A+=Se-mod$1(A+(this._isUTC?0:this.utcOffset()*Ce),Se)-1;break;case"minute":A=this._d.valueOf(),A+=Ce-mod$1(A,Ce)-1;break;case"second":A=this._d.valueOf(),A+=ke-mod$1(A,ke)-1}return this._d.setTime(A),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-6e4*(this._offset||0)}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var v=this;return[v.year(),v.month(),v.date(),v.hour(),v.minute(),v.second(),v.millisecond()]}function toObject(){var v=this;return{years:v.year(),months:v.month(),date:v.date(),hours:v.hours(),minutes:v.minutes(),seconds:v.seconds(),milliseconds:v.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function addWeekYearFormatToken(v,A){addFormatToken(0,[v,v.length],0,A)}function getSetWeekYear(v){return getSetWeekYearHelper.call(this,v,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(v){return getSetWeekYearHelper.call(this,v,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getWeeksInYear(){var v=this.localeData()._week;return weeksInYear(this.year(),v.dow,v.doy)}function getSetWeekYearHelper(v,A,z,L,T){var k;return null==v?weekOfYear(this,L,T).year:(A>(k=weeksInYear(v,L,T))&&(A=k),setWeekAll.call(this,v,A,z,L,T))}function setWeekAll(v,A,z,L,T){var k=dayOfYearFromWeeks(v,A,z,L,T),x=createUTCDate(k.year,0,k.dayOfYear);return this.year(x.getUTCFullYear()),this.month(x.getUTCMonth()),this.date(x.getUTCDate()),this}function getSetQuarter(v){return null==v?Math.ceil((this.month()+1)/3):this.month(3*(v-1)+this.month()%3)}addFormatToken(0,["gg",2],0,(function(){return this.weekYear()%100})),addFormatToken(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),addWeekYearFormatToken("gggg","weekYear"),addWeekYearFormatToken("ggggg","weekYear"),addWeekYearFormatToken("GGGG","isoWeekYear"),addWeekYearFormatToken("GGGGG","isoWeekYear"),addUnitAlias("weekYear","gg"),addUnitAlias("isoWeekYear","GG"),addUnitPriority("weekYear",1),addUnitPriority("isoWeekYear",1),addRegexToken("G",_t),addRegexToken("g",_t),addRegexToken("GG",at,ot),addRegexToken("gg",at,ot),addRegexToken("GGGG",pt,rt),addRegexToken("gggg",pt,rt),addRegexToken("GGGGG",ht,st),addRegexToken("ggggg",ht,st),addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],(function(v,A,z,L){A[L.substr(0,2)]=toInt(v)})),addWeekParseToken(["gg","GG"],(function(v,A,z,L){A[L]=hooks.parseTwoDigitYear(v)})),addFormatToken("Q",0,"Qo","quarter"),addUnitAlias("quarter","Q"),addUnitPriority("quarter",7),addRegexToken("Q",it),addParseToken("Q",(function(v,A){A[wt]=3*(toInt(v)-1)})),addFormatToken("D",["DD",2],"Do","date"),addUnitAlias("date","D"),addUnitPriority("date",9),addRegexToken("D",at),addRegexToken("DD",at,ot),addRegexToken("Do",(function(v,A){return v?A._dayOfMonthOrdinalParse||A._ordinalParse:A._dayOfMonthOrdinalParseLenient})),addParseToken(["D","DD"],At),addParseToken("Do",(function(v,A){A[At]=toInt(v.match(at)[0])}));var Ee=makeGetSet("Date",!0);function getSetDayOfYear(v){var A=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==v?A:this.add(v-A,"d")}addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear"),addUnitAlias("dayOfYear","DDD"),addUnitPriority("dayOfYear",4),addRegexToken("DDD",ut),addRegexToken("DDDD",nt),addParseToken(["DDD","DDDD"],(function(v,A,z){z._dayOfYear=toInt(v)})),addFormatToken("m",["mm",2],0,"minute"),addUnitAlias("minute","m"),addUnitPriority("minute",14),addRegexToken("m",at),addRegexToken("mm",at,ot),addParseToken(["m","mm"],zt);var Be=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second"),addUnitAlias("second","s"),addUnitPriority("second",15),addRegexToken("s",at),addRegexToken("ss",at,ot),addParseToken(["s","ss"],Lt);var Re,Ye=makeGetSet("Seconds",!1);for(addFormatToken("S",0,0,(function(){return~~(this.millisecond()/100)})),addFormatToken(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),addFormatToken(0,["SSS",3],0,"millisecond"),addFormatToken(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),addFormatToken(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),addFormatToken(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),addFormatToken(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),addFormatToken(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),addFormatToken(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),addUnitAlias("millisecond","ms"),addUnitPriority("millisecond",16),addRegexToken("S",ut,it),addRegexToken("SS",ut,ot),addRegexToken("SSS",ut,nt),Re="SSSS";Re.length<=9;Re+="S")addRegexToken(Re,dt);function parseMs(v,A){A[Tt]=toInt(1e3*("0."+v))}for(Re="S";Re.length<=9;Re+="S")addParseToken(Re,parseMs);var Ie=makeGetSet("Milliseconds",!1);function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}addFormatToken("z",0,0,"zoneAbbr"),addFormatToken("zz",0,0,"zoneName");var Pe=Moment.prototype;function createUnix(v){return createLocal(1e3*v)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(v){return v}Pe.add=Le,Pe.calendar=calendar$1,Pe.clone=clone,Pe.diff=diff,Pe.endOf=endOf,Pe.format=format,Pe.from=from,Pe.fromNow=fromNow,Pe.to=to,Pe.toNow=toNow,Pe.get=stringGet,Pe.invalidAt=invalidAt,Pe.isAfter=isAfter,Pe.isBefore=isBefore,Pe.isBetween=isBetween,Pe.isSame=isSame,Pe.isSameOrAfter=isSameOrAfter,Pe.isSameOrBefore=isSameOrBefore,Pe.isValid=isValid$2,Pe.lang=De,Pe.locale=locale,Pe.localeData=localeData,Pe.max=be,Pe.min=ye,Pe.parsingFlags=parsingFlags,Pe.set=stringSet,Pe.startOf=startOf,Pe.subtract=Te,Pe.toArray=toArray,Pe.toObject=toObject,Pe.toDate=toDate,Pe.toISOString=toISOString,Pe.inspect=inspect,Pe.toJSON=toJSON,Pe.toString=toString,Pe.unix=unix,Pe.valueOf=valueOf,Pe.creationData=creationData,Pe.year=St,Pe.isLeapYear=getIsLeapYear,Pe.weekYear=getSetWeekYear,Pe.isoWeekYear=getSetISOWeekYear,Pe.quarter=Pe.quarters=getSetQuarter,Pe.month=getSetMonth,Pe.daysInMonth=getDaysInMonth,Pe.week=Pe.weeks=getSetWeek,Pe.isoWeek=Pe.isoWeeks=getSetISOWeek,Pe.weeksInYear=getWeeksInYear,Pe.isoWeeksInYear=getISOWeeksInYear,Pe.date=Ee,Pe.day=Pe.days=getSetDayOfWeek,Pe.weekday=getSetLocaleDayOfWeek,Pe.isoWeekday=getSetISODayOfWeek,Pe.dayOfYear=getSetDayOfYear,Pe.hour=Pe.hours=te,Pe.minute=Pe.minutes=Be,Pe.second=Pe.seconds=Ye,Pe.millisecond=Pe.milliseconds=Ie,Pe.utcOffset=getSetOffset,Pe.utc=setOffsetToUTC,Pe.local=setOffsetToLocal,Pe.parseZone=setOffsetToParsedOffset,Pe.hasAlignedHourOffset=hasAlignedHourOffset,Pe.isDST=isDaylightSavingTime,Pe.isLocal=isLocal,Pe.isUtcOffset=isUtcOffset,Pe.isUtc=isUtc,Pe.isUTC=isUtc,Pe.zoneAbbr=getZoneAbbr,Pe.zoneName=getZoneName,Pe.dates=deprecate("dates accessor is deprecated. Use date instead.",Ee),Pe.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth),Pe.years=deprecate("years accessor is deprecated. Use year instead",St),Pe.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone),Pe.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);var We=Locale.prototype;function get$1(v,A,z,L){var T=getLocale(),k=createUTC().set(L,A);return T[z](k,v)}function listMonthsImpl(v,A,z){if(isNumber(v)&&(A=v,v=void 0),v=v||"",null!=A)return get$1(v,A,z,"month");var L,T=[];for(L=0;L<12;L++)T[L]=get$1(v,L,z,"month");return T}function listWeekdaysImpl(v,A,z,L){"boolean"==typeof v?(isNumber(A)&&(z=A,A=void 0),A=A||""):(z=A=v,v=!1,isNumber(A)&&(z=A,A=void 0),A=A||"");var T,k=getLocale(),x=v?k._week.dow:0;if(null!=z)return get$1(A,(z+x)%7,L,"day");var S=[];for(T=0;T<7;T++)S[T]=get$1(A,(T+x)%7,L,"day");return S}function listMonths(v,A){return listMonthsImpl(v,A,"months")}function listMonthsShort(v,A){return listMonthsImpl(v,A,"monthsShort")}function listWeekdays(v,A,z){return listWeekdaysImpl(v,A,z,"weekdays")}function listWeekdaysShort(v,A,z){return listWeekdaysImpl(v,A,z,"weekdaysShort")}function listWeekdaysMin(v,A,z){return listWeekdaysImpl(v,A,z,"weekdaysMin")}We.calendar=calendar,We.longDateFormat=longDateFormat,We.invalidDate=invalidDate,We.ordinal=ordinal,We.preparse=preParsePostFormat,We.postformat=preParsePostFormat,We.relativeTime=relativeTime,We.pastFuture=pastFuture,We.set=set,We.months=localeMonths,We.monthsShort=localeMonthsShort,We.monthsParse=localeMonthsParse,We.monthsRegex=monthsRegex,We.monthsShortRegex=monthsShortRegex,We.week=localeWeek,We.firstDayOfYear=localeFirstDayOfYear,We.firstDayOfWeek=localeFirstDayOfWeek,We.weekdays=localeWeekdays,We.weekdaysMin=localeWeekdaysMin,We.weekdaysShort=localeWeekdaysShort,We.weekdaysParse=localeWeekdaysParse,We.weekdaysRegex=weekdaysRegex,We.weekdaysShortRegex=weekdaysShortRegex,We.weekdaysMinRegex=weekdaysMinRegex,We.isPM=localeIsPM,We.meridiem=localeMeridiem,getSetGlobalLocale("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(v){var A=v%10;return v+(1===toInt(v%100/10)?"th":1===A?"st":2===A?"nd":3===A?"rd":"th")}}),hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale),hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var je=Math.abs;function abs(){var v=this._data;return this._milliseconds=je(this._milliseconds),this._days=je(this._days),this._months=je(this._months),v.milliseconds=je(v.milliseconds),v.seconds=je(v.seconds),v.minutes=je(v.minutes),v.hours=je(v.hours),v.months=je(v.months),v.years=je(v.years),this}function addSubtract$1(v,A,z,L){var T=createDuration(A,z);return v._milliseconds+=L*T._milliseconds,v._days+=L*T._days,v._months+=L*T._months,v._bubble()}function add$1(v,A){return addSubtract$1(this,v,A,1)}function subtract$1(v,A){return addSubtract$1(this,v,A,-1)}function absCeil(v){return v<0?Math.floor(v):Math.ceil(v)}function bubble(){var v,A,z,L,T,k=this._milliseconds,x=this._days,S=this._months,E=this._data;return k>=0&&x>=0&&S>=0||k<=0&&x<=0&&S<=0||(k+=864e5*absCeil(monthsToDays(S)+x),x=0,S=0),E.milliseconds=k%1e3,v=absFloor(k/1e3),E.seconds=v%60,A=absFloor(v/60),E.minutes=A%60,z=absFloor(A/60),E.hours=z%24,x+=absFloor(z/24),S+=T=absFloor(daysToMonths(x)),x-=absCeil(monthsToDays(T)),L=absFloor(S/12),S%=12,E.days=x,E.months=S,E.years=L,this}function daysToMonths(v){return 4800*v/146097}function monthsToDays(v){return 146097*v/4800}function as(v){if(!this.isValid())return NaN;var A,z,L=this._milliseconds;if("month"===(v=normalizeUnits(v))||"quarter"===v||"year"===v)switch(A=this._days+L/864e5,z=this._months+daysToMonths(A),v){case"month":return z;case"quarter":return z/3;case"year":return z/12}else switch(A=this._days+Math.round(monthsToDays(this._months)),v){case"week":return A/7+L/6048e5;case"day":return A+L/864e5;case"hour":return 24*A+L/36e5;case"minute":return 1440*A+L/6e4;case"second":return 86400*A+L/1e3;case"millisecond":return Math.floor(864e5*A)+L;default:throw new Error("Unknown unit "+v)}}function valueOf$1(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*toInt(this._months/12):NaN}function makeAs(v){return function(){return this.as(v)}}var Ze=makeAs("ms"),Je=makeAs("s"),$e=makeAs("m"),Qe=makeAs("h"),ti=makeAs("d"),ei=makeAs("w"),ii=makeAs("M"),oi=makeAs("Q"),ni=makeAs("y");function clone$1(){return createDuration(this)}function get$2(v){return v=normalizeUnits(v),this.isValid()?this[v+"s"]():NaN}function makeGetter(v){return function(){return this.isValid()?this._data[v]:NaN}}var si=makeGetter("milliseconds"),bi=makeGetter("seconds"),ki=makeGetter("minutes"),Yi=makeGetter("hours"),Hi=makeGetter("days"),Xi=makeGetter("months"),Vi=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var Ui=Math.round,Zi={ss:44,s:45,m:45,h:22,d:26,M:11};function substituteTimeAgo(v,A,z,L,T){return T.relativeTime(A||1,!!z,v,L)}function relativeTime$1(v,A,z){var L=createDuration(v).abs(),T=Ui(L.as("s")),k=Ui(L.as("m")),x=Ui(L.as("h")),S=Ui(L.as("d")),E=Ui(L.as("M")),Y=Ui(L.as("y")),P=T<=Zi.ss&&["s",T]||T0,P[4]=z,substituteTimeAgo.apply(null,P)}function getSetRelativeTimeRounding(v){return void 0===v?Ui:"function"==typeof v&&(Ui=v,!0)}function getSetRelativeTimeThreshold(v,A){return void 0!==Zi[v]&&(void 0===A?Zi[v]:(Zi[v]=A,"s"===v&&(Zi.ss=A-1),!0))}function humanize(v){if(!this.isValid())return this.localeData().invalidDate();var A=this.localeData(),z=relativeTime$1(this,!v,A);return v&&(z=A.pastFuture(+this,z)),A.postformat(z)}var Ji=Math.abs;function sign(v){return(v>0)-(v<0)||+v}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var v,A,z=Ji(this._milliseconds)/1e3,L=Ji(this._days),T=Ji(this._months);v=absFloor(z/60),A=absFloor(v/60),z%=60,v%=60;var k=absFloor(T/12),x=T%=12,S=L,E=A,Y=v,P=z?z.toFixed(3).replace(/\.?0+$/,""):"",q=this.asSeconds();if(!q)return"P0D";var F=q<0?"-":"",H=sign(this._months)!==sign(q)?"-":"",X=sign(this._days)!==sign(q)?"-":"",V=sign(this._milliseconds)!==sign(q)?"-":"";return F+"P"+(k?H+k+"Y":"")+(x?H+x+"M":"")+(S?X+S+"D":"")+(E||Y||P?"T":"")+(E?V+E+"H":"")+(Y?V+Y+"M":"")+(P?V+P+"S":"")}var Qi=Duration.prototype;return Qi.isValid=isValid$1,Qi.abs=abs,Qi.add=add$1,Qi.subtract=subtract$1,Qi.as=as,Qi.asMilliseconds=Ze,Qi.asSeconds=Je,Qi.asMinutes=$e,Qi.asHours=Qe,Qi.asDays=ti,Qi.asWeeks=ei,Qi.asMonths=ii,Qi.asQuarters=oi,Qi.asYears=ni,Qi.valueOf=valueOf$1,Qi._bubble=bubble,Qi.clone=clone$1,Qi.get=get$2,Qi.milliseconds=si,Qi.seconds=bi,Qi.minutes=ki,Qi.hours=Yi,Qi.days=Hi,Qi.weeks=weeks,Qi.months=Xi,Qi.years=Vi,Qi.humanize=humanize,Qi.toISOString=toISOString$1,Qi.toString=toISOString$1,Qi.toJSON=toISOString$1,Qi.locale=locale,Qi.localeData=localeData,Qi.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1),Qi.lang=De,addFormatToken("X",0,0,"unix"),addFormatToken("x",0,0,"valueOf"),addRegexToken("x",_t),addRegexToken("X",Mt),addParseToken("X",(function(v,A,z){z._d=new Date(1e3*parseFloat(v,10))})),addParseToken("x",(function(v,A,z){z._d=new Date(toInt(v))})),hooks.version="2.24.0",setHookCallback(createLocal),hooks.fn=Pe,hooks.min=min,hooks.max=max,hooks.now=now,hooks.utc=createUTC,hooks.unix=createUnix,hooks.months=listMonths,hooks.isDate=isDate,hooks.locale=getSetGlobalLocale,hooks.invalid=createInvalid,hooks.duration=createDuration,hooks.isMoment=isMoment,hooks.weekdays=listWeekdays,hooks.parseZone=createInZone,hooks.localeData=getLocale,hooks.isDuration=isDuration,hooks.monthsShort=listMonthsShort,hooks.weekdaysMin=listWeekdaysMin,hooks.defineLocale=defineLocale,hooks.updateLocale=updateLocale,hooks.locales=listLocales,hooks.weekdaysShort=listWeekdaysShort,hooks.normalizeUnits=normalizeUnits,hooks.relativeTimeRounding=getSetRelativeTimeRounding,hooks.relativeTimeThreshold=getSetRelativeTimeThreshold,hooks.calendarFormat=getCalendarFormat,hooks.prototype=Pe,hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},hooks}()}).call(this,z(26)(v))},function(v,A,z){(function(A){!function(A){"use strict";var z={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:noop,table:noop,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function Lexer(v){this.tokens=[],this.tokens.links=Object.create(null),this.options=v||marked.defaults,this.rules=z.normal,this.options.pedantic?this.rules=z.pedantic:this.options.gfm&&(this.rules=z.gfm)}z._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,z._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,z.def=edit(z.def).replace("label",z._label).replace("title",z._title).getRegex(),z.bullet=/(?:[*+-]|\d{1,9}\.)/,z.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,z.item=edit(z.item,"gm").replace(/bull/g,z.bullet).getRegex(),z.list=edit(z.list).replace(/bull/g,z.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+z.def.source+")").getRegex(),z._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",z._comment=//,z.html=edit(z.html,"i").replace("comment",z._comment).replace("tag",z._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),z.paragraph=edit(z._paragraph).replace("hr",z.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",z._tag).getRegex(),z.blockquote=edit(z.blockquote).replace("paragraph",z.paragraph).getRegex(),z.normal=merge({},z),z.gfm=merge({},z.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),z.pedantic=merge({},z.normal,{html:edit("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",z._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:noop,paragraph:edit(z.normal._paragraph).replace("hr",z.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",z.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),Lexer.rules=z,Lexer.lex=function(v,A){return new Lexer(A).lex(v)},Lexer.prototype.lex=function(v){return v=v.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(v,!0)},Lexer.prototype.token=function(v,A){var L,T,k,x,S,E,Y,P,q,F,H,X,V,U,J,tt;for(v=v.replace(/^ +$/gm,"");v;)if((k=this.rules.newline.exec(v))&&(v=v.substring(k[0].length),k[0].length>1&&this.tokens.push({type:"space"})),k=this.rules.code.exec(v)){var et=this.tokens[this.tokens.length-1];v=v.substring(k[0].length),et&&"paragraph"===et.type?et.text+="\n"+k[0].trimRight():(k=k[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?k:rtrim(k,"\n")}))}else if(k=this.rules.fences.exec(v))v=v.substring(k[0].length),this.tokens.push({type:"code",lang:k[2]?k[2].trim():k[2],text:k[3]||""});else if(k=this.rules.heading.exec(v))v=v.substring(k[0].length),this.tokens.push({type:"heading",depth:k[1].length,text:k[2]});else if((k=this.rules.nptable.exec(v))&&(E={type:"table",header:splitCells(k[1].replace(/^ *| *\| *$/g,"")),align:k[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:k[3]?k[3].replace(/\n$/,"").split("\n"):[]}).header.length===E.align.length){for(v=v.substring(k[0].length),H=0;H ?/gm,""),this.token(k,A),this.tokens.push({type:"blockquote_end"});else if(k=this.rules.list.exec(v)){for(v=v.substring(k[0].length),Y={type:"list_start",ordered:U=(x=k[2]).length>1,start:U?+x:"",loose:!1},this.tokens.push(Y),P=[],L=!1,V=(k=k[0].match(this.rules.item)).length,H=0;H1?1===S.length:S.length>1||this.options.smartLists&&S!==x)&&(v=k.slice(H+1).join("\n")+v,H=V-1)),T=L||/\n\n(?!\s*$)/.test(E),H!==V-1&&(L="\n"===E.charAt(E.length-1),T||(T=L)),T&&(Y.loose=!0),tt=void 0,(J=/^\[[ xX]\] /.test(E))&&(tt=" "!==E[1],E=E.replace(/^\[[ xX]\] +/,"")),q={type:"list_item_start",task:J,checked:tt,loose:T},P.push(q),this.tokens.push(q),this.token(E,!1),this.tokens.push({type:"list_item_end"});if(Y.loose)for(V=P.length,H=0;H?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:noop,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:noop,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~",L.em=edit(L.em).replace(/punctuation/g,L._punctuation).getRegex(),L._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,L._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,L._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,L.autolink=edit(L.autolink).replace("scheme",L._scheme).replace("email",L._email).getRegex(),L._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,L.tag=edit(L.tag).replace("comment",z._comment).replace("attribute",L._attribute).getRegex(),L._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,L._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,L._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,L.link=edit(L.link).replace("label",L._label).replace("href",L._href).replace("title",L._title).getRegex(),L.reflink=edit(L.reflink).replace("label",L._label).getRegex(),L.normal=merge({},L),L.pedantic=merge({},L.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:edit(/^!?\[(label)\]\((.*?)\)/).replace("label",L._label).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",L._label).getRegex()}),L.gfm=merge({},L.normal,{escape:edit(L.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(k[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(k[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(k[0])&&(this.inRawBlock=!1),v=v.substring(k[0].length),S+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(k[0]):escape(k[0]):k[0];else if(k=this.rules.link.exec(v)){var E=findClosingBracket(k[2],"()");if(E>-1){var Y=4+k[1].length+E;k[2]=k[2].substring(0,E),k[0]=k[0].substring(0,Y).trim(),k[3]=""}v=v.substring(k[0].length),this.inLink=!0,L=k[2],this.options.pedantic?(A=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(L))?(L=A[1],T=A[3]):T="":T=k[3]?k[3].slice(1,-1):"",L=L.trim().replace(/^<([\s\S]*)>$/,"$1"),S+=this.outputLink(k,{href:InlineLexer.escapes(L),title:InlineLexer.escapes(T)}),this.inLink=!1}else if((k=this.rules.reflink.exec(v))||(k=this.rules.nolink.exec(v))){if(v=v.substring(k[0].length),A=(k[2]||k[1]).replace(/\s+/g," "),!(A=this.links[A.toLowerCase()])||!A.href){S+=k[0].charAt(0),v=k[0].substring(1)+v;continue}this.inLink=!0,S+=this.outputLink(k,A),this.inLink=!1}else if(k=this.rules.strong.exec(v))v=v.substring(k[0].length),S+=this.renderer.strong(this.output(k[4]||k[3]||k[2]||k[1]));else if(k=this.rules.em.exec(v))v=v.substring(k[0].length),S+=this.renderer.em(this.output(k[6]||k[5]||k[4]||k[3]||k[2]||k[1]));else if(k=this.rules.code.exec(v))v=v.substring(k[0].length),S+=this.renderer.codespan(escape(k[2].trim(),!0));else if(k=this.rules.br.exec(v))v=v.substring(k[0].length),S+=this.renderer.br();else if(k=this.rules.del.exec(v))v=v.substring(k[0].length),S+=this.renderer.del(this.output(k[1]));else if(k=this.rules.autolink.exec(v))v=v.substring(k[0].length),L="@"===k[2]?"mailto:"+(z=escape(this.mangle(k[1]))):z=escape(k[1]),S+=this.renderer.link(L,null,z);else if(this.inLink||!(k=this.rules.url.exec(v))){if(k=this.rules.text.exec(v))v=v.substring(k[0].length),this.inRawBlock?S+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(k[0]):escape(k[0]):k[0]):S+=this.renderer.text(escape(this.smartypants(k[0])));else if(v)throw new Error("Infinite loop on byte: "+v.charCodeAt(0))}else{if("@"===k[2])L="mailto:"+(z=escape(k[0]));else{do{x=k[0],k[0]=this.rules._backpedal.exec(k[0])[0]}while(x!==k[0]);z=escape(k[0]),L="www."===k[1]?"http://"+z:z}v=v.substring(k[0].length),S+=this.renderer.link(L,null,z)}return S},InlineLexer.escapes=function(v){return v?v.replace(InlineLexer.rules._escapes,"$1"):v},InlineLexer.prototype.outputLink=function(v,A){var z=A.href,L=A.title?escape(A.title):null;return"!"!==v[0].charAt(0)?this.renderer.link(z,L,this.output(v[1])):this.renderer.image(z,L,escape(v[1]))},InlineLexer.prototype.smartypants=function(v){return this.options.smartypants?v.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):v},InlineLexer.prototype.mangle=function(v){if(!this.options.mangle)return v;for(var A,z="",L=v.length,T=0;T.5&&(A="x"+A.toString(16)),z+="&#"+A+";";return z},Renderer.prototype.code=function(v,A,z){var L=(A||"").match(/\S*/)[0];if(this.options.highlight){var T=this.options.highlight(v,L);null!=T&&T!==v&&(z=!0,v=T)}return L?'
    '+(z?v:escape(v,!0))+"
    \n":"
    "+(z?v:escape(v,!0))+"
    "},Renderer.prototype.blockquote=function(v){return"
    \n"+v+"
    \n"},Renderer.prototype.html=function(v){return v},Renderer.prototype.heading=function(v,A,z,L){return this.options.headerIds?"'+v+"\n":""+v+"\n"},Renderer.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},Renderer.prototype.list=function(v,A,z){var L=A?"ol":"ul";return"<"+L+(A&&1!==z?' start="'+z+'"':"")+">\n"+v+"\n"},Renderer.prototype.listitem=function(v){return"
  • "+v+"
  • \n"},Renderer.prototype.checkbox=function(v){return" "},Renderer.prototype.paragraph=function(v){return"

    "+v+"

    \n"},Renderer.prototype.table=function(v,A){return A&&(A=""+A+""),"\n\n"+v+"\n"+A+"
    \n"},Renderer.prototype.tablerow=function(v){return"\n"+v+"\n"},Renderer.prototype.tablecell=function(v,A){var z=A.header?"th":"td";return(A.align?"<"+z+' align="'+A.align+'">':"<"+z+">")+v+"\n"},Renderer.prototype.strong=function(v){return""+v+""},Renderer.prototype.em=function(v){return""+v+""},Renderer.prototype.codespan=function(v){return""+v+""},Renderer.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},Renderer.prototype.del=function(v){return""+v+""},Renderer.prototype.link=function(v,A,z){if(null===(v=cleanUrl(this.options.sanitize,this.options.baseUrl,v)))return z;var L='"},Renderer.prototype.image=function(v,A,z){if(null===(v=cleanUrl(this.options.sanitize,this.options.baseUrl,v)))return z;var L=''+z+'":">"},Renderer.prototype.text=function(v){return v},TextRenderer.prototype.strong=TextRenderer.prototype.em=TextRenderer.prototype.codespan=TextRenderer.prototype.del=TextRenderer.prototype.text=function(v){return v},TextRenderer.prototype.link=TextRenderer.prototype.image=function(v,A,z){return""+z},TextRenderer.prototype.br=function(){return""},Parser.parse=function(v,A){return new Parser(A).parse(v)},Parser.prototype.parse=function(v){this.inline=new InlineLexer(v.links,this.options),this.inlineText=new InlineLexer(v.links,merge({},this.options,{renderer:new TextRenderer})),this.tokens=v.reverse();for(var A="";this.next();)A+=this.tok();return A},Parser.prototype.next=function(){return this.token=this.tokens.pop(),this.token},Parser.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},Parser.prototype.parseText=function(){for(var v=this.token.text;"text"===this.peek().type;)v+="\n"+this.next().text;return this.inline.output(v)},Parser.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,unescape(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var v,A,z,L,T="",k="";for(z="",v=0;v?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(A)){var z=A;do{this.seen[z]++,A=z+"-"+this.seen[z]}while(this.seen.hasOwnProperty(A))}return this.seen[A]=0,A},escape.escapeTest=/[&<>"']/,escape.escapeReplace=/[&<>"']/g,escape.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},escape.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,escape.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var T={},k=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function noop(){}function merge(v){for(var A,z,L=1;L=0&&"\\"===z[T];)L=!L;return L?"|":" |"})).split(/ \|/),L=0;if(z.length>A)z.splice(A);else for(;z.lengthAn error occurred:

    "+escape(v.message+"",!0)+"
    ";throw v}}noop.exec=noop,marked.options=marked.setOptions=function(v){return merge(marked.defaults,v),marked},marked.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new Renderer,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},marked.defaults=marked.getDefaults(),marked.Parser=Parser,marked.parser=Parser.parse,marked.Renderer=Renderer,marked.TextRenderer=TextRenderer,marked.Lexer=Lexer,marked.lexer=Lexer.lex,marked.InlineLexer=InlineLexer,marked.inlineLexer=InlineLexer.output,marked.Slugger=Slugger,marked.parse=marked,v.exports=marked}(this||"undefined"!=typeof window&&window)}).call(this,z(19))},function(v,A,z){!function(v){"use strict";function processRelativeTime(v,A,z,L){var T={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[v+" Tage",v+" Tagen"],M:["ein Monat","einem Monat"],MM:[v+" Monate",v+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[v+" Jahre",v+" Jahren"]};return A?T[z][0]:T[z][1]}v.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";function processRelativeTime(v,A,z,L){var T={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[v+" Tage",v+" Tagen"],M:["ein Monat","einem Monat"],MM:[v+" Monate",v+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[v+" Jahre",v+" Jahren"]};return A?T[z][0]:T[z][1]}v.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";function processRelativeTime(v,A,z,L){var T={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[v+" Tage",v+" Tagen"],M:["ein Monat","einem Monat"],MM:[v+" Monate",v+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[v+" Jahre",v+" Jahren"]};return A?T[z][0]:T[z][1]}v.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var A=v%10;return v+(1==~~(v%100/10)?"th":1===A?"st":2===A?"nd":3===A?"rd":"th")},week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var A=v%10;return v+(1==~~(v%100/10)?"th":1===A?"st":2===A?"nd":3===A?"rd":"th")},week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var A=v%10;return v+(1==~~(v%100/10)?"th":1===A?"st":2===A?"nd":3===A?"rd":"th")}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var A=v%10;return v+(1==~~(v%100/10)?"th":1===A?"st":2===A?"nd":3===A?"rd":"th")},week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var A=v%10;return v+(1==~~(v%100/10)?"th":1===A?"st":2===A?"nd":3===A?"rd":"th")},week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var A=v%10;return v+(1==~~(v%100/10)?"th":1===A?"st":2===A?"nd":3===A?"rd":"th")}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var A=v%10;return v+(1==~~(v%100/10)?"th":1===A?"st":2===A?"nd":3===A?"rd":"th")},week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";var A="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),z="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),L=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],T=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;v.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(v,L){return v?/-MMM-/.test(L)?z[v.month()]:A[v.month()]:A},monthsRegex:T,monthsShortRegex:T,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:L,longMonthsParse:L,shortMonthsParse:L,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";var A="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),z="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),L=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],T=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;v.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(v,L){return v?/-MMM-/.test(L)?z[v.month()]:A[v.month()]:A},monthsRegex:T,monthsShortRegex:T,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:L,longMonthsParse:L,shortMonthsParse:L,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";var A="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),z="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),L=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],T=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;v.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(v,L){return v?/-MMM-/.test(L)?z[v.month()]:A[v.month()]:A},monthsRegex:T,monthsShortRegex:T,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:L,longMonthsParse:L,shortMonthsParse:L,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(v){return(/^[0-9].+$/.test(v)?"tra":"in")+" "+v},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(z(1))},function(v,A,z){!function(v){"use strict";v.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(v){return(/^[0-9].+$/.test(v)?"tra":"in")+" "+v},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(z(1))},function(v,A,z){var L;L=z(0),z(21),z(28),z(29),z(30),z(31),z(32),z(33),z(34),z(35),z(36),z(37),z(38),z(39),z(40),z(41),z(42),z(43),z(44),z(45),z(46),z(47),z(48),z(49),z(50),z(51),z(52),z(53),z(54),z(55),z(56),z(57),z(58),z(59),z(61),z(63),z(64),z(65),z(68),z(69),z(72),z(74),z(76),z(77),z(78),z(80),z(82),z(84),z(86),z(87),z(89),z(91),z(92),z(93),z(94),z(96),z(97),z(98),z(99),z(100),z(101),z(103),z(105),z(106),z(107),z(108),z(109),z(110),z(111),z(112),z(113),z(114),z(115),z(116),z(117),z(118),z(119),z(120),z(121),z(122),z(123),z(124),z(125),z(126),z(127),z(128),z(129),z(130),z(132),z(133),z(135),z(136),z(137),z(138),z(140),z(141),z(142),z(143),z(144),z(145),z(146),z(147),z(148),z(150),z(154),z(155),z(156),z(157),z(158),z(159),z(160),z(162),z(163),z(165),z(166),z(167),z(168),z(169),z(171),z(172),z(173),z(174),z(175),z(176),z(177),z(178),z(179),z(180),z(182),z(183),z(184),z(185),z(186),z(187),z(188),z(189),z(190),z(192),z(194),z(196),z(199),z(201),z(202),v.exports=L},function(v,A){var z;z=function(){return this}();try{z=z||new Function("return this")()}catch(v){"object"==typeof window&&(z=window)}v.exports=z},function(v,A,z){"use strict";z.r(A),A.default='closedrupaleasydbexternal-linkfalcon-iofolder-shared-uploadfolder-sharedfolder-uploadfoldergridhierarchyinfo-circle-ngmultiplepopuppresentation_playpresentationresetrowsselect-allselect-pagesspinnertabletag-otrashtypo3'},function(v,A,z){(function(v){var A,L,T,k;L=z(22),A=z(25),T=z(2),k=z(1),v.util=function(){function util(){}return util.assert=function(A,z,L,T){var k,x,S,E,Y;if(v.defaults.asserts&&!A){try{new Error("dummy").stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.\s*\(/gm,"{anonymous}()@").replace().split("\n")}catch(v){v,"Can't get callstack in this browser. Try using Stacktrace.js"}if(E=[],T){for(x in k=[z+":"],T)Y=T[x],k.push(x+":"),E.push(x),k.push(Y);console.debug.apply(console,k)}switch(S=E.length?z+"("+E.join(",")+")":z,L&&(S+=": "+L),v.defaults.asserts_alert){case"debugger":break;case"js":alert(S);break;case"cui":v.problem({text:S})}if(!v.__in_error)throw v.__in_error=!0,v.setTimeout((function(){return v.__in_error=!1})),new Error(S);console.error("Another assert occurred, cannot throw Error to avoid loop: ",S)}},util.assertImplements=function(A,z){var L,T,k,x;if(v.defaults.asserts){for(x=[],L=0,T=z.length;L=0},util.isContent=function(A){return v.util.isElement(A)||A instanceof HTMLCollection||A instanceof NodeList||v.util.isArray(A)||v.util.isFunction(A)||v.util.isElement(null!=A?A.DOM:void 0)},util.isNumber=function(A){return v.util.isInteger(A)||v.util.isFloat(A)},util.isFloat=function(v){return v===+v&&v!==(0|v)},util.isInteger=function(v){return v===+v&&v===(0|v)},util.isPromise=function(A){return A instanceof v.Promise||A instanceof v.Deferred},util.isDeferred=function(A){return A instanceof v.Deferred},util.escapeRegExp=function(v){return v.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},util.getIntOrString=function(A){return v.util.getInt(A,!0)},util.getInt=function(A,z){var L;return null==z&&(z=!1),v.util.isNull(A)?null:(L=parseInt(A),isNaN(L)||(L+"").length!==(A+"").trim().length?z?A:null:L)},util.getFloat=function(A){var z;return v.util.isNull(A)?null:(z=parseFloat(A),isNaN(z)?null:z)},util.xor=function(v,A){return!!(v&&!A||!v&&A)},util.toHtml=function(A,z){return v.util.isNull(A)||!v.util.isString(A)?"":(A=A.replace(/&/g,"&").replace(/\'/g,"'").replace(//g,">").replace(/\"/g,"""),z?A.replace(/\s/g," "):A)},util.copyObject=function(A,z,L){var T,k,x,S,E,Y,P,q,F;if(null==z&&(z=!1),null==L&&(L=0),!(L>100)){if("string"==(q=typeof A)||"number"===q||"boolean"===q||"function"===q)return A;if(v.util.isNull(A))return A;if(A instanceof v.Element)return 0===L||z?A.copy():A;if(A instanceof HTMLElement)return A.cloneNode?A.cloneNode(!0):A;if(A instanceof v.Dummy)return A;if(v.util.isPlainObject(A)){for(x in Y={},A)if(F=A[x],z)try{Y[x]=v.util.copyObject(F,!0,L+1)}catch(v){throw T=v,console.error("Error during Object copy:",T.toString(),"Key:",x,"Object:",A),T}else Y[x]=F;return Y}if(v.util.isArray(A)){if(!z)return A.slice(0);for(E=[],k=0,S=A.length;k":v.util.isNull(A)?"":v.util.getObjectClass(A)};try{return JSON.stringify(L(A),null,z)}catch(v){return T=v,console.error(T),"Unable to dump object"}},util.alert_dump=function(A){return alert(v.util.dump(A," "))},util.toDash=function(v){var A;return(A=(A=(A=(v+="U").substring(0,1)+v.substring(1).replace(/([A-Z](?![A-Z0-9]))/g,(function(v){return"-"+v.toLowerCase()}))).replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()).substring(0,A.length-2)).replace(/\./g,"-")},util.toClass=function(A){return v.util.toDash(A).replace(/_/g,"-").replace(/\s+/g,"-")},util.toDot=function(A){return v.util.toDash(A).replace(/-/g,".")},util.toCamel=function(v,A){return null==A&&(A=!1),A?v.replace(/((\-|^)[a-z])/g,(function(v){return v.toUpperCase().replace("-","")})):v.replace(/(\-[a-z])/g,(function(v){return v.toUpperCase().replace("-","")}))},util.removeFromArray=function(A,z,L){var T,k;for(v.util.assert(v.util.isArray(z),"removeFromArray","Second parameter needs to be an Array",{value:A,array:z,compFunc:L}),k=0;(T=v.util.idxInArray(A,z,L))>-1;)z.splice(T,1),k++;return k},util.moveInArray=function(v,A,z,L){var T;return null==L&&(L=!1),v===A||(v>A?L&&A++:L||A--,T=z.splice(v,1)[0],z.splice(A,0,T)),A},util.compareIndex=function(v,A){return vA?1:0},util.pushOntoArray=function(A,z,L){var T;return-1===(T=v.util.idxInArray(A,z,L))?(z.push(A),z.length-1):T},util.idxInArray=function(A,z,L){var T,k,x,S,E;if(!L)return z.indexOf(A);for(x=-1,k=S=0,E=z.length;S0?A.replace(new RegExp(T.join("|"),"g"),(function(v){return z[v]})):A},util.mergeMap=function(A,z){var L,T;for(L in z)T=z[L],A.hasOwnProperty(L)?v.util.isPlainObject(A[L])&&v.util.isPlainObject(T)&&v.util.mergeMap(A[L],T):A[L]=T;return A},util.copyToClipboard=function(A){var z;A&&((z=v.dom.element("textarea",{style:{position:"absolute",left:"-9999px"}})).value=A,v.dom.append(document.body,z),z.select(),document.execCommand("copy"),v.dom.remove(z))},util}(),v.util.moment=k,v.util.marked=T,String.prototype.startsWith=function(v){return this.substr(0,v.length)===v},String.prototype.startsWithIgnoreCase=function(v){return this.toUpperCase().startsWith(v.toUpperCase())},String.prototype.endsWith=function(v){return this.substr(this.length-v.length)===v},RegExp.escape=function(v){return v.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}}).call(this,z(0))},function(v,A,z){var L,T,k;k=z(23),L=z(24),T=function(){function Coordinates(v){this.coordinates=v,this.latitudeNumbers=null,this.longitudeNumbers=null,this.validate(),this.parse()}return Coordinates.prototype.validate=function(){return(new k).validate(this.coordinates)},Coordinates.prototype.parse=function(){return this.groupCoordinateNumbers(),this.latitude=this.extractLatitude(),this.longitude=this.extractLongitude()},Coordinates.prototype.groupCoordinateNumbers=function(){var v,A;return A=(v=this.extractCoordinateNumbers(this.coordinates)).length/2,this.latitudeNumbers=v.slice(0,A),this.longitudeNumbers=v.slice(0-A)},Coordinates.prototype.extractCoordinateNumbers=function(v){return v.match(/-?\d+(\.\d+)?/g)},Coordinates.prototype.extractLatitude=function(){var v;return v=this.coordinateNumbersToDecimal(this.latitudeNumbers),this.latitudeIsNegative()&&(v*=-1),v},Coordinates.prototype.extractLongitude=function(){var v;return v=this.coordinateNumbersToDecimal(this.longitudeNumbers),this.longitudeIsNegative()&&(v*=-1),v},Coordinates.prototype.coordinateNumbersToDecimal=function(v){var A;return(A=new L(v)).detectSpecialFormats(),A.toDecimal()},Coordinates.prototype.latitudeIsNegative=function(){return this.coordinates.match(/s/i)},Coordinates.prototype.longitudeIsNegative=function(){return this.coordinates.match(/w/i)},Coordinates.prototype.getLatitude=function(){return this.latitude},Coordinates.prototype.getLongitude=function(){return this.longitude},Coordinates}(),v.exports=T},function(v,A){var z;z=function(){function Validator(){}return Validator.prototype.isValid=function(v){var A,z;z=!0;try{return this.validate(v),z}catch(A){return A,z=!1}},Validator.prototype.validate=function(v){return this.checkContainsNoLetters(v),this.checkValidOrientation(v),this.checkNumbers(v)},Validator.prototype.checkContainsNoLetters=function(v){if(/(?![neswd])[a-z]/i.test(v))throw new Error("Coordinate contains invalid alphanumeric characters.")},Validator.prototype.checkValidOrientation=function(v){if(!/^[^nsew]*[ns]?[^nsew]*[ew]?[^nsew]*$/i.test(v))throw new Error("Invalid cardinal direction.")},Validator.prototype.checkNumbers=function(v){var A;return A=v.match(/-?\d+(\.\d+)?/g),this.checkAnyCoordinateNumbers(A),this.checkEvenCoordinateNumbers(A),this.checkMaximumCoordinateNumbers(A)},Validator.prototype.checkAnyCoordinateNumbers=function(v){if(0===v.length)throw new Error("Could not find any coordinate number")},Validator.prototype.checkEvenCoordinateNumbers=function(v){if(v.length%2)throw new Error("Uneven count of latitude/longitude numbers")},Validator.prototype.checkMaximumCoordinateNumbers=function(v){if(v.length>6)throw new Error("Too many coordinate numbers")},Validator}(),v.exports=z},function(v,A){var z;z=function(){function CoordinateNumber(v){v=this.normalizeCoordinateNumbers(v),this.degrees=v[0],this.minutes=v[1],this.seconds=v[2],this.milliseconds=v[3],this.sign=this.normalizedSignOf(this.degrees),this.degrees=Math.abs(this.degrees)}return CoordinateNumber.prototype.normalizeCoordinateNumbers=function(v){var A,z,L,T,k;for(k=[0,0,0,0],z=L=0,T=v.length;L=0?1:-1},CoordinateNumber.prototype.detectSpecialFormats=function(){if(this.degreesCanBeSpecial()){if(this.degreesCanBeMilliseconds())return this.degreesAsMilliseconds();if(this.degreesCanBeDegreesMinutesAndSeconds())return this.degreesAsDegreesMinutesAndSeconds();if(this.degreesCanBeDegreesAndMinutes())return this.degreesAsDegreesAndMinutes()}},CoordinateNumber.prototype.degreesCanBeSpecial=function(){var v;return v=!1,this.minutes||this.seconds||(v=!0),v},CoordinateNumber.prototype.degreesCanBeMilliseconds=function(){return this.degrees>909090},CoordinateNumber.prototype.degreesAsMilliseconds=function(){return this.milliseconds=this.degrees,this.degrees=0},CoordinateNumber.prototype.degreesCanBeDegreesMinutesAndSeconds=function(){return this.degrees>9090},CoordinateNumber.prototype.degreesAsDegreesMinutesAndSeconds=function(){var v;return v=Math.floor(this.degrees/1e4),this.minutes=Math.floor((this.degrees-1e4*v)/100),this.seconds=Math.floor(this.degrees-1e4*v-100*this.minutes),this.degrees=v},CoordinateNumber.prototype.degreesCanBeDegreesAndMinutes=function(){return this.degrees>360},CoordinateNumber.prototype.degreesAsDegreesAndMinutes=function(){var v;return v=Math.floor(this.degrees/100),this.minutes=this.degrees-100*v,this.degrees=v},CoordinateNumber.prototype.toDecimal=function(){return this.sign*(this.degrees+this.minutes/60+this.seconds/3600+this.milliseconds/36e5)},CoordinateNumber}(),v.exports=z},function(v,A){function Coords(){}Coords.prototype.init=function(){if(!arguments.length)throw new Error("no arguments");if(arguments[0].lat&&arguments[0].lng)this.lat=arguments[0].lat,this.lon=arguments[0].lng;else if("string"==typeof arguments[0]){var v=arguments[0].split(",");this.lat=parseFloat(v[0].trim()),this.lon=parseFloat(v[1].trim())}else if("[object Array]"===Object.prototype.toString.call(arguments[0])){var A=arguments[0];!0===arguments[1]?(this.lat=A[1],this.lon=A[0]):(this.lat=A[0],this.lon=A[1])}else!0===arguments[2]?(this.lat=arguments[1],this.lon=arguments[0]):(this.lat=arguments[0],this.lon=arguments[1]);this.compute()},Coords.prototype.compute=function(){function computeFor(v){var A={};return A.initValue=v,A.degrees=Math.abs(v),A.degreesInt=Math.floor(A.degrees),A.degreesFrac=A.degrees-A.degreesInt,A.secondsTotal=3600*A.degreesFrac,A.minutes=A.secondsTotal/60,A.minutesInt=Math.floor(A.minutes),A.seconds=A.secondsTotal-60*A.minutesInt,A}this.north=this.lat>0,this.east=this.lon>0,this.latValues=computeFor(this.lat),this.lonValues=computeFor(this.lon)};var z={FFf:"DD MM ss X",Ff:"DD mm X",f:"dd X"},L="°",T="′",k="″";Coords.prototype.format=function(v,A){if("object"==typeof v){A=v,v="FFf"}(void 0===v&&(v="FFf"),void 0===A&&(A={}),"string"==typeof A)&&(A={latLonSeparator:A});void 0===A.latLonSeparator&&(A.latLonSeparator=" "),void 0===A.decimalPlaces?A.decimalPlaces=5:A.decimalPlaces=parseInt(A.decimalPlaces),Object.keys(z).indexOf(v)>-1&&(v=z[v]);var x=formatFor(this.latValues,this.north?"N":"S"),S=formatFor(this.lonValues,this.east?"E":"W");function formatFor(z,x){var S=v;return S=(S=(S=(S=(S=(S=(S=(S=(S=(S=(S=(S=S.replace(/DD/g,z.degreesInt+L)).replace(/dd/g,z.degrees.toFixed(A.decimalPlaces)+L)).replace(/D/g,z.degreesInt)).replace(/d/g,z.degrees.toFixed(A.decimalPlaces))).replace(/MM/g,z.minutesInt+T)).replace(/mm/g,z.minutes.toFixed(A.decimalPlaces)+T)).replace(/M/g,z.minutesInt)).replace(/m/g,z.minutes.toFixed(A.decimalPlaces))).replace(/ss/g,z.seconds.toFixed(A.decimalPlaces)+k)).replace(/s/g,z.seconds.toFixed(A.decimalPlaces))).replace(/-/g,z.initValue<0?"-":"")).replace(/X/g,x)}return x+A.latLonSeparator+S},v.exports=function formatcoords(){var v=new Coords;return v.init.apply(v,arguments),v}},function(v,A){v.exports=function(v){return v.webpackPolyfill||(v.deprecate=function(){},v.paths=[],v.children||(v.children=[]),Object.defineProperty(v,"loaded",{enumerable:!0,get:function(){return v.l}}),Object.defineProperty(v,"id",{enumerable:!0,get:function(){return v.i}}),v.webpackPolyfill=1),v}},function(v,A,z){var L={"./de":3,"./de-at":4,"./de-at.js":4,"./de-ch":5,"./de-ch.js":5,"./de.js":3,"./en-SG":6,"./en-SG.js":6,"./en-au":7,"./en-au.js":7,"./en-ca":8,"./en-ca.js":8,"./en-gb":9,"./en-gb.js":9,"./en-ie":10,"./en-ie.js":10,"./en-il":11,"./en-il.js":11,"./en-nz":12,"./en-nz.js":12,"./es":13,"./es-do":14,"./es-do.js":14,"./es-us":15,"./es-us.js":15,"./es.js":13,"./it":16,"./it-ch":17,"./it-ch.js":17,"./it.js":16};function webpackContext(v){var A=webpackContextResolve(v);return z(A)}function webpackContextResolve(v){if(!z.o(L,v)){var A=new Error("Cannot find module '"+v+"'");throw A.code="MODULE_NOT_FOUND",A}return L[v]}webpackContext.keys=function webpackContextKeys(){return Object.keys(L)},webpackContext.resolve=webpackContextResolve,v.exports=webpackContext,webpackContext.id=27},function(v,A,z){(function(v){v.dom=function(){function dom(){}return dom.data=function(A,z,L){var T,k,x;if(A){if(A.hasOwnProperty("DOM")&&(A=A.DOM),v.util.assert(A instanceof HTMLElement,"dom.data","node needs to be instance of HTMLElement",{node:A}),void 0===z)return A.__dom_data||{};if(v.util.isPlainObject(z)){for(T in z)x=z[T],v.dom.data(A,T,x);return A}return void 0===L?null!=(k=A.__dom_data)?k[z]:void 0:(A.__dom_data||(A.__dom_data={}),A.__dom_data[z]=L,A)}},dom.removeData=function(A,z){if(A)return A.__dom_data&&(delete A.__dom_data[z],v.util.isEmptyObject(A.__dom_data)&&delete A.__dom_data),A},dom.findElement=function(v,A,z,L,T){var k;return null==L&&(L=!0),null==T&&(T=!1),0===(k=this.findElements(v,A,z,1,L,T)).length?null:k[0]},dom.findNextElement=function(v,A,z,L,T){var k,x;if(null==z&&(z=!1),null==L&&(L=!0),null==T&&(T=!0),k=this.findElement(v,A,z,L,T))return k;for(;;){if(!(v=v.parentNode))return null;if(x=L?v.nextElementSibling:v.previousElementSibling)break}return this.findNextElement(x,A,z,L,!1)},dom.findPreviousElement=function(v,A,z){return null==z&&(z=!1),this.findNextElement(v,A,z,!1)},dom.findNextVisibleElement=function(A,z,L){return null==L&&(L=!0),this.findNextElement(A,z,(function(A){return v.dom.isVisible(A)}),L)},dom.findPreviousVisibleElement=function(v,A){return this.findNextVisibleElement(v,A,!1)},dom.findNextSiblings=function(v,A,z){return null==z&&(z=!1),this.findElements(v,A,z,null,!0,!0)},dom.findPreviousSiblings=function(v,A,z){return null==z&&(z=!1),this.findElements(v,A,z,null,!1,!0)},dom.findElements=function(A,z,L,T,k,x,S){var E,Y,P,q;return null==A&&(A=document.documentElement),null==z&&(z=null),null==L&&(L=!1),null==T&&(T=null),null==k&&(k=!0),null==x&&(x=!1),S?Y=!0:(v.util.assert(A instanceof HTMLElement,"DOM.findElement","node needs to be instanceof HTMLElement.",{node:A,selector:z}),S=[],Y=!x),E=!L||L(A),Y&&E&&(null===z||v.dom.matches(A,z))&&(S.push(A),S.length===T)||(k?(P=A.firstElementChild,q=A.nextElementSibling):(P=A.lastElementChild,q=A.previousElementSibling),P&&!x&&E&&(this.findElements(P,z,L,T,k,x,S),S.length===T)||q&&(this.findElements(q,z,L,T,k,x,S),S.length)),S},dom.children=function(v,A){var z,L,T,k,x,S;for(L=[],k=T=0,x=(S=v.children).length;Tz.length||k++,x=z.length;return A}switch(typeof z){case"number":case"boolean":T=document.createTextNode(z+"");break;case"string":T=document.createTextNode(z);break;default:if(z.hasOwnProperty("DOM")){if(T=z.DOM,v.util.isNull(T))return}else T=z}return L?(v.util.assert(T instanceof Node,"CUI.dom.append","Content needs to be instanceof Node, string, boolean, or number.",{node:T}),A.appendChild(T)):(v.util.assert(T instanceof Node,"CUI.dom.prepend","Content needs to be instanceof Node, string, boolean, or number.",{node:T}),A.insertBefore(T,A.firstChild)),A},dom.replace=function(v,A){return v.hasOwnProperty("DOM")&&(v=v.DOM),this.empty(v),this.append(v,A)},dom.prepend=function(v,A){return this.__append(v,A,!1)},dom.append=function(v,A){return this.__append(v,A)},dom.getAttribute=function(v,A){return v.hasOwnProperty("DOM")&&(v=v.DOM),v.getAttribute(A)},dom.remove=function(v){var A,z;return(A=(null!=v?v.DOM:void 0)||v)?(null!=(z=A.parentNode)&&z.removeChild(A),A):null},dom.empty=function(A){var z;if(!A)return null;for(A.hasOwnProperty("DOM")&&(A=A.DOM),v.util.assert(v.util.isElement(A),"CUI.dom.empty","top needs to be Element",{node:A});z=A.lastChild;)A.removeChild(z);return A},dom.hasClass=function(v,A){var z,L,T,k;if(!v||!A)return null;for(v.DOM&&(v=v.DOM),L=0,T=(k=A.trim().split(/\s+/)).length;L= 0",{element:A,offset:z}),(x=A.offsetParent)===document.documentElement?(k={top:0,left:0},L={top:document.body.scrollTop,left:document.body.scrollLeft}):((k={top:(T=v.dom.getDimensions(x)).top,left:T.left}).top+=T.borderTopWidth,k.left+=T.borderLeftWidth,L={top:T.scrollTop,left:T.scrollLeft}),v.dom.setStyle(A,{top:z.top-k.top+L.top,left:z.left-k.left+L.left})},dom.__failedDOMInserts=0,dom.waitForDOMRemove=function(A){var z,L,T,k;return k=v.Element.readOpts(A,"CUI.dom.waitForDOMRemove",{node:{mandatory:!0,check:function(A){return v.dom.isNode(A)}},ms:{default:200,check:function(v){return v>0}}}),T=v.dom.getNode(k.node),L=new v.Deferred,(z=function(){if(v.dom.isInDOM(T))return v.setTimeout({call:z,ms:k.ms,track:!1});L.resolve()})(),L.promise()},dom.waitForDOMInsert=function(A){var z,L,T,k,x,S,E,Y;if(x=v.Element.readOpts(A,"CUI.dom.waitForDOMInsert",{node:{mandatory:!0,check:function(A){return v.dom.isNode(A)}}}),k=v.dom.getNode(x.node),v.dom.isInDOM(k))return v.resolvedPromise(!0);for(z=new v.Deferred,L=0,T=(E=["-webkit-","-moz-","-ms-","-o-",""]).length;L=0&&L<=A.children.length,"CUI.dom.insertAtPosition","Unable to insert node at position #"+L+".",{node:A,node_insert:z,pos:L}),L===A.children.length?A.appendChild(z):A.children[L]!==z?this.insertBefore(A.children[L],z):void 0},dom.insertBefore=function(v,A){var z;return(z=(null!=v?v.DOM:void 0)||v)?(A&&z.parentNode.insertBefore(A,z),z):null},dom.insertAfter=function(v,A){var z;return(z=(null!=v?v.DOM:void 0)||v)?(A&&z.parentNode.insertBefore(A,z.nextSibling),z):null},dom.is=function(A,z){return A?z instanceof HTMLElement?A===z:v.util.isFunction(z)?!!z(A):A instanceof HTMLElement?this.matches(A,z):null:null},dom.matches=function(A,z){return A?A[v.dom.matchFunc](z):null},dom.matchFunc=function(){var A,z,L,T,k;for(A=document.createElement("div"),z=0,T=(k=["matches","webkitMatchesSelector","mozMatchesSelector","oMatchesSelector","msMatchesSelector"]).length;z0;)this.insertAfter(L,z[z.length-1]);return L}return A.parentNode.replaceChild(z,A)},dom.getRect=function(v){return v.hasOwnProperty("DOM")&&(v=v.DOM),v.getBoundingClientRect()},dom.getComputedStyle=function(v){return v.hasOwnProperty("DOM")&&(v=v.DOM),window.getComputedStyle(v)},dom.setStyle=function(A,z,L){var T,k,x;for(T in null==L&&(L="px"),A.hasOwnProperty("DOM")&&(A=A.DOM),v.util.assert(A instanceof HTMLElement,"CUI.dom.setStyle","docElem needs to be instanceof HTMLElement.",{docElem:A}),z)if(void 0!==(x=z[T])){switch(x){case"":case null:k="";break;default:k=isNaN(Number(x))?x:0===x||"0"===x?0:x+L}T.startsWith("--")?A.style.setProperty(T,k):A.style[T]=k}return A},dom.getStyle=function(A){var z,L,T,k;for(L in A.hasOwnProperty("DOM")&&(A=A.DOM),k={},z=A.style)T=z[L],v.util.isNull(T)||(k[L]=T);return k},dom.setStyleOne=function(v,A,z){var L;return(L={})[A]=z,this.setStyle(v,L)},dom.setStylePx=function(v,A){return console.error("CUI.dom.setStylePx is deprectaed, use CUI.dom.setStyle."),this.setStyle(v,A)},dom.getRelativePosition=function(A){var z;return v.util.assert(A instanceof HTMLElement,"CUI.dom.getRelativePosition","docElem needs to be instanceof HTMLElement.",{docElem:A}),{top:(z=v.dom.getDimensions(A)).offsetTopScrolled,left:z.offsetLeftScrolled}},dom.getDimensions=function(A){var z,L,T,k,x,S,E,Y,P,q,F,H,X,V,U,J,tt,et,it,ot,nt,rt,st,at,ct,lt,ut;if(v.util.isNull(A))return null;if(A===window||A===document)return{width:window.innerWidth,height:window.innerHeight};for(A.hasOwnProperty("DOM")&&(A=A.DOM),L={computedStyle:z=this.getComputedStyle(A),clientBoundingRect:it=this.getRect(A)},k=0,q=(ot=["margin","padding","border"]).length;k0&&("function"==typeof A&&A(L,P),z.push(P));break;case 1:T.push(L)}this.findTextInNodes(T,A,z)}return z},dom.getCSSFloatValue=function(v){return-1===v.indexOf("px")?0:parseFloat(v.substr(0,v.length-2))},dom.isPositioned=function(A){var z;return v.util.assert(A instanceof HTMLElement,"CUI.dom.isPositioned","docElem needs to be instance of HTMLElement.",{docElem:A}),"relative"===(z=this.getComputedStyle(A).position)||"absolute"===z||"fixed"===z},dom.isVisible=function(v){var A;return"hidden"!==(A=this.getComputedStyle(v)).visibility&&"none"!==A.display},dom.getBoxSizing=function(v){return this.getComputedStyle(v).boxSizing},dom.isBorderBox=function(v){return"border-box"===this.getBoxSizing(v)},dom.isContentBox=function(v){return"content-box"===this.getBoxSizing(v)},dom.hideElement=function(v){if(v)return v.hasOwnProperty("DOM")&&(v=v.DOM),"none"!==v.style.display&&(v.__saved_display=v.style.display),v.style.display="none",v},dom.focus=function(v){if(v)return v.DOM&&(v=v.DOM),v.focus()},dom.blur=function(v){if(v)return v.DOM&&(v=v.DOM),v.blur()},dom.removeChildren=function(A,z){var L,T,k,x;for(v.util.assert(A instanceof HTMLElement,"CUI.dom.removeChildren","element needs to be instance of HTMLElement",{element:A}),T=0,k=(x=this.children(A,z)).length;T0&&(F.scrollTop=F.scrollTop+E,S()),(q=z.viewportTopMargin-L.viewportTopContent)<0&&(F.scrollTop=F.scrollTop+q,S())),"visible"!==L.computedStyle.overflowX&&((P=z.viewportRightMargin-L.viewportRightContent)>0&&(F.scrollLeft=F.scrollLeft+P,S()),(Y=z.viewportLeftMargin-L.viewportLeftContent)<0&&(F.scrollLeft=F.scrollLeft+Y,S()));return A},dom.setClassOnMousemove=function(A){var z,L,T,k;return null==A&&(A={}),L=v.Element.readOpts(A,"CUI.dom.setClassOnMousemove",{delayRemove:{check:Function},class:{mandatory:!0,check:String},ms:{default:3e3,mandatory:!0,check:function(v){return v>0}},element:{mandatory:!0,check:function(v){return v instanceof HTMLElement}},instance:{}}),z=function(){return v.dom.addClass(L.element,L.class),k()},T=function(){if(!("function"==typeof L.delayRemove?L.delayRemove():void 0)&&!v.globalDrag)return v.dom.removeClass(L.element,L.class);k()},k=function(){return v.scheduleCallback({ms:L.ms,call:T})},v.Events.listen({node:L.element,type:["mousemove","wheel"],instance:L.instance,call:function(v){z()}}),v.Events.listen({node:L.element,type:"mouseleave",instance:L.instance,call:function(){return T()}})},dom.requestFullscreen=function(A){var z,L;return A.hasOwnProperty("DOM")&&(A=A.DOM),v.util.assert(A instanceof HTMLElement,"startFullscreen","element needs to be instance of HTMLElement",{element:A}),A.requestFullscreen?A.requestFullscreen():A.webkitRequestFullscreen?A.webkitRequestFullscreen():A.mozRequestFullScreen?A.mozRequestFullScreen():A.msRequestFullscreen&&A.msRequestFullscreen(),z=new v.Deferred,L=v.Events.listen({type:"fullscreenchange",node:window,call:function(A){v.dom.isFullscreen()?z.notify():(v.Events.ignore(L),z.resolve())}}),z.promise()},dom.getLayerSidebarWidth=function(){var A;return(A=v.dom.matchSelector(document.documentElement,".cui-layer-sidebar--active"))[0]?v.dom.getDimensions(A[0]).marginBoxWidth:0},dom.exitFullscreen=function(){var A;return v.dom.isFullscreen()?(A=new v.Deferred,document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen(),v.Events.listen({type:"fullscreenchange",node:window,only_once:!0,call:function(){A.resolve()}}),A.promise()):v.resolvedPromise()},dom.fullscreenElement=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||void 0},dom.fullscreenEnabled=function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled||!1},dom.isFullscreen=function(){return document.fullscreen||document.webkitIsFullScreen||document.mozFullScreen||!!document.msFullscreenElement||!1},dom.$element=function(A,z,L,T){return null==L&&(L={}),null==T&&(T=!1),v.util.isEmpty(z)||(L.class=z),T&&(v.util.isEmpty(z)?L.class="cui-"+A:L.class="cui-"+A+" "+z,A="div"),v.dom.element(A,L)},dom.div=function(A,z){return v.dom.$element("div",A,z)},dom.video=function(A,z){return v.dom.$element("video",A,z)},dom.audio=function(A,z){return v.dom.$element("audio",A,z)},dom.source=function(A,z){return v.dom.$element("source",A,z)},dom.span=function(A,z){return v.dom.$element("span",A,z)},dom.table=function(A,z){return v.dom.$element("table",A,z,!0)},dom.img=function(A,z){return v.dom.$element("img",A,z)},dom.tr=function(A,z){return v.dom.$element("tr",A,z,!0)},dom.th=function(A,z){return v.dom.$element("th",A,z,!0)},dom.td=function(A,z){return v.dom.$element("td",A,z,!0)},dom.i=function(A,z){return v.dom.$element("i",A,z)},dom.p=function(A,z){return v.dom.$element("p",A,z)},dom.pre=function(A,z){return v.dom.$element("pre",A,z)},dom.ul=function(A,z){return v.dom.$element("ul",A,z)},dom.a=function(A,z){return v.dom.$element("a",A,z)},dom.b=function(A,z){return v.dom.$element("b",A,z)},dom.li=function(A,z){return v.dom.$element("li",A,z)},dom.label=function(A,z){return v.dom.$element("label",A,z)},dom.h1=function(A,z){return v.dom.$element("h1",A,z)},dom.h2=function(A,z){return v.dom.$element("h2",A,z)},dom.h3=function(A,z){return v.dom.$element("h3",A,z)},dom.h4=function(A,z){return v.dom.$element("h4",A,z)},dom.h5=function(A,z){return v.dom.$element("h5",A,z)},dom.h6=function(A,z){return v.dom.$element("h6",A,z)},dom.text=function(A,z,L){var T;return(T=v.dom.span(z,L)).textContent=A,T},dom.textEmpty=function(A){var z;return(z=v.dom.span("italic")).textContent=A,z},dom.table_one_row=function(){return v.dom.append(v.dom.table(),v.dom.tr_one_row.apply(this,arguments))},dom.tr_one_row=function(){var A,z,L,T,k,x,S;for(S=v.dom.tr(),z=function(A){var z,L;L=v.dom.td(),v.dom.append(S,L),(z=function(A){var T,k,x;if(v.util.isArray(A))for(k=0,x=A.length;k=0&&(L.func.apply(this,z),"done"===(x=L.type)||"always"===x||"fail"===x)?this.__callbacks.splice(T,1):T++;return this.__runningCallbacks=!1,this},Deferred.prototype.__register=function(A,z){if(v.util.assert(v.util.isFunction(z),"Deferred."+A+": Callback needs to be Function.",{callback:z}),!("rejected"===this.__state&&"done"===A||"resolved"===this.__state&&"fail"===A)){if(this.__callbacks.push({type:A,func:z}),"pending"!==this.__state&&!this.__runningCallbacks)switch(this.__state){case"resolved":this.__callback(["done","always"],this.__finished_args);break;case"rejected":this.__callback(["fail","always"],this.__finished_args)}return this}},Deferred.prototype.done=function(v){return this.__register("done",v),this},Deferred.prototype.fail=function(v){return this.__register("fail",v),this},Deferred.prototype.always=function(v){return this.__register("always",v),this},Deferred.prototype.progress=function(v){return this.__register("progress",v),this},Deferred.prototype.__notify=function(){return v.util.assert("pending"===this.__state,"CUI.Deferred.notify","Cannot notify state "+this.__state+"."),this.__callback(["progress"],arguments),this},Deferred.prototype.__resolve=function(){return v.util.assert("pending"===this.__state,"CUI.Deferred.resolve","Cannot resolve state "+this.__state+"."),this.__finished_args=arguments,this.__state="resolved",this.__callback(["done","always"],arguments),this},Deferred.prototype.__reject=function(){return v.util.assert("pending"===this.__state,"CUI.Deferred.reject","Cannot reject state "+this.__state+"."),this.__finished_args=arguments,this.__state="rejected",this.__callback(["fail","always"],arguments),this},Deferred.prototype.state=function(){return this.__state},Deferred.prototype.promise=function(){return new v.Promise(this)},Deferred.uniqueId=0,Deferred}()}).call(this,z(0))},function(v,A,z){(function(v){v.Promise=function(){function Promise(A){this.__deferred=A,v.util.assert(this.__deferred instanceof v.Deferred,"new Promise","parameter needs to be instanceof CUI.Deferred",{parameter:this.__deferred})}return Promise.prototype.done=function(){return this.__deferred.done.apply(this.__deferred,arguments),this},Promise.prototype.fail=function(){return this.__deferred.fail.apply(this.__deferred,arguments),this},Promise.prototype.always=function(){return this.__deferred.always.apply(this.__deferred,arguments),this},Promise.prototype.progress=function(){return this.__deferred.progress.apply(this.__deferred,arguments),this},Promise.prototype.state=function(){return this.__deferred.state.apply(this.__deferred,arguments)},Promise.prototype.getUniqueId=function(){return this.__deferred.getUniqueId()},Promise}()}).call(this,z(0))},function(v,A,z){(function(v){var A;v.whenAll=(A=this,function(){var z;return(z=[!1]).push.apply(z,arguments),v.__when.apply(A,z)}),v.when=function(A){return function(){var z;return(z=[!0]).push.apply(z,arguments),v.__when.apply(A,z)}}(this),v.__when=function(){var A,z,L,T,k,x,S,E,Y,P,q,F,H,X,V,U,J;for(U=[],z=function(A,z){v.util.assert(v.util.isPromise(A)||v.util.isDeferred(A),"CUI.when","arg["+z+"] needs to be instanceof CUI.Promise or CUI.Deferred.",{arg:A}),U.push(A)},J=null,P=Y=0,H=arguments.length;Y0?F.deprecated:"",console.warn(z+": opts."+Y+" is deprecated.",H));else{if(!P)continue;v.util.assert(!1,z,"opts."+Y+" needs to be set.",{opts:A,check_map:L})}!F.check||v.util.isNull(H)&&!P||(v.util.isArray(F.check)?v.util.assert(F.check.indexOf(H)>-1,z,"opts."+Y+' needs to be one of ["'+F.check.join('","')+'"].',{opts:A}):F.check===Boolean||F.check===String||F.check===Function||F.check===Array?v.util.assertInstanceOf.call(this,Y,F.check,H):v.util.isFunction(F.check)&&!F.check.__super__?(v.util.assert(v.util.isEmpty(F.check.name)||"check"===F.check.name,z,Y+'.check is "'+F.check.name+'" but has no "__super__" method. Use "extends CUI.Element" or "extends CUI.Dummy" to fix that.',{opts:A,key:Y,value:F}),x=F.check.call(this,H),v.util.isNull(x)||v.util.isBoolean(x)||v.util.isString(x)||(k=x,console.error("CUI.Element.readOpts: check needs to return Boolean, null, undefined or String.","opts:",A,"opt:",F,"return:",k),x=!!k),!0!==x&&(S=v.util.isString(x)?x:"needs to match\n\n"+F.check.toString(),v.util.assert(!1,z,"opts."+Y+": "+S+".",{opts:A}))):v.util.isPlainObject(F.check)?H=v.Element.readOpts(H,z+" [opts."+Y+"]",F.check):v.util.isNull(H)&&P?v.util.assert(!1,z,"opts."+Y+" is mandatory, but is "+H+".",{opts:A}):v.util.assertInstanceOf.call(this,Y,F.check,H)),T&&(this["_"+Y]=H,this instanceof v.Element&&this.__mapped_keys.push(Y)),q[Y]=H}for(Y in A)void 0===(F=A[Y])||q.hasOwnProperty(Y)||Y.startsWith("_")||console.warn(z+": opts."+Y+", not supported. check_map: ",L,"opts:",A);return q},Element}()}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.XHR=function(z){function XHR(){return XHR.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(XHR,z),XHR.prototype.getGroup=function(){return"Core"},XHR.prototype.initOpts=function(){return XHR.__super__.initOpts.call(this),this.addOpts({method:{mandatory:!0,default:"GET",check:["GET","POST","PUT","DELETE","OPTIONS"]},url:{mandatory:!0,check:String,check:function(v){return v.trim().length>0}},user:{check:String},password:{check:String},responseType:{mandatory:!0,default:"json",check:["","text","json","blob","arraybuffer"]},timeout:{check:function(v){return v>=0}},form:{check:"PlainObject"},url_data:{check:"PlainObject"},body:{},json_data:{},json_pretty:{default:!1,check:function(A){return!1===A||!0===A||v.util.isString(A)}},headers:{mandatory:!0,default:{},check:"PlainObject"},withCredentials:{mandatory:!0,default:!1,check:Boolean}}),this},XHR.readyStates={0:"UNSENT",1:"OPENED",2:"HEADERS_RECEIVED",3:"LOADING",4:"DONE"},XHR.statusText={"-1":"abort","-2":"timeout","-3":"network_failure"},XHR.prototype.readOpts=function(){var A,z,L,T;for(A in XHR.__super__.readOpts.call(this),this.__xhr=new XMLHttpRequest,this.__xhr.withCredentials=this._withCredentials,this.__readyStatesSeen=[this.readyState()],this.__registerEvents("download"),this.__registerEvents("upload"),this.__headers={},z=this._headers)T=z[A],this.__headers[A.toLowerCase()]=T;return this._form&&(this.opts.method||(this._method="POST")),this._url_data?this.__url=v.appendToUrl(this._url,this._url_data):this.__url=this._url,L=0,this._form&&(L+=1),this._json_data&&(L+=1,void 0===this.__headers["content-type"]&&(this.__headers["content-type"]="application/json; charset=utf-8")),this._body&&(L+=1),v.util.assert(L<=1,"new CUI.XHR","opts.form, opts.json_data, opts.body are mutually exclusive."),this},XHR.prototype.__registerEvents=function(v){var A,z,L,T,k,x,S,E;for(k=["loadStart","progress","abort","error","load","loadend","timeout"],"upload"===v?S=this.__xhr.upload:(k.push("readyStateChange"),S=this.__xhr),E=this,z=function(v,A){return S.addEventListener(A.toLowerCase(),(function(A){return E[v](A)}))},L=0,x=k.length;L=200&&this.__xhr.status<300||304===this.__xhr.status)},XHR.prototype.status=function(){return this.__status<0?this.__status:this.__xhr.status},XHR.prototype.statusText=function(){return this.__status<0?v.XHR.statusText[this.__status+""]:this.__xhr.statusText},XHR.prototype.response=function(){var v;if("json"===this._responseType&&""===this.__xhr.responseType)try{v=JSON.parse(this.__xhr.response)}catch(A){A,v=this.__xhr.response}else v=this.__xhr.response;return"json"===this._responseType&&(this.__xhr.responseJSON=v),v},XHR.prototype.start=function(){var A,z,L,T,k,x;for(z in this.__xhr.open(this._method,this.__url,!0,this._user,this._password),L=this.__headers)x=L[z],this.__xhr.setRequestHeader(z,x);if(this.__xhr.responseType=this._responseType,this.__xhr.timeout=this._timeout,this._form){for(z in A=new FormData,T=this._form)x=T[z],A.append(z,x);k=A}else k=this._json_data?this._json_pretty?!0===this._json_pretty?JSON.stringify(this._json_data,null,"\t"):JSON.stringify(this._json_data,null,this._json_pretty):JSON.stringify(this._json_data):this._body?this._body:void 0;return this.__dfr=new v.Deferred,this.__xhr.send(k),this.__dfr.promise()},XHR.prototype.getXHR=function(){return this.__xhr},XHR.prototype.getAllResponseHeaders=function(){var v,A,z,L,T;for(A=[],z=0,L=(T=this.__xhr.getAllResponseHeaders().split("\r\n")).length;zF.width&&(S.scrollLeft,0<(H=k=(L=q.clientX())-F.left)&&H<30?J=-(30-k)*tt:0<(X=k=F.right-L-x.verticalScrollbarWidth)&&X<30&&(J=(30-k)*tt),A.stopPropagation()),S.scrollHeight>F.height&&(S.scrollTop,0<(V=k=(T=q.clientY())-F.top)&&V<30?et=-(30-k)*tt:0<(U=k=F.bottom-T-x.horizontalScrollbarHeight)&&U<30&&(et=(30-k)*tt)),et||J)return P=S.scrollTop,Y=S.scrollLeft,et&&(S.scrollTop+=et),J&&(S.scrollLeft+=J),E&&(q.scrollPageY||(q.scrollPageY=0),q.scrollPageY+=S.scrollTop-P,q.scrollPageX||(q.scrollPageX=0),q.scrollPageX+=q.scrollLeft-Y),A.stopPropagation()}})}))}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty,z=[].indexOf||function(v){for(var A=0,z=this.length;A=0}},selector:{check:function(A){return v.util.isString(A)||v.util.isFunction(A)}}})},Draggable.prototype.readOpts=function(){return Draggable.__super__.readOpts.call(this),this.__autoRepeatTimeout=null,this.supportTouch()?this.__event_types={start:["mousedown","touchstart"],end:["mouseup","touchend"],move:["mousemove","touchmove"]}:this.__event_types={start:["mousedown"],end:["mouseup"],move:["mousemove"]},this},Draggable.prototype.getClass=function(){return this._selector?Draggable.__super__.getClass.call(this):"cui-draggable "+Draggable.__super__.getClass.call(this)},Draggable.prototype.supportTouch=function(){return!!this._support_touch},Draggable.prototype.__killTimeout=function(){return this.__autoRepeatTimeout&&(v.clearTimeout(this.__autoRepeatTimeout),this.__autoRepeatTimeout=null),this},Draggable.prototype.__cleanup=function(){var A;this.__killTimeout(),this.__ref&&(v.Events.ignore({instance:this.__ref}),this.__ref=null),(null!=(A=v.globalDrag)?A.instance:void 0)===this&&(v.globalDrag=null)},Draggable.prototype.destroy=function(){var A;return Draggable.__super__.destroy.call(this),v.dom.remove(null!=(A=v.globalDrag)?A.helperNode:void 0),this.__cleanup(),this},Draggable.prototype.init=function(){return v.util.assert(!this._helper_contain_element||v.dom.closest(this._element,this._helper_contain_element),"new CUI.sDraggable","opts.helper_contain_element needs to be parent of opts.element",{opts:this.opts}),v.Events.listen({type:this.__event_types.start,node:this.element,instance:this,selector:this._selector,call:(A=this,function(z){var L,T,k,x,S;z.getButton()>0&&"mousedown"===z.getType()||v.globalDrag||(k=v.util.elementGetPosition(v.util.getCoordinatesFromEvent(z),z.getTarget()),(T=v.dom.getDimensions(z.getTarget())).clientWidthScaled>0&&k.left-T.scrollLeftScaled>T.clientWidthScaled?console.warn("Mousedown on a vertical scrollbar, not starting drag."):T.clientHeightScaled>0&&k.top-T.scrollTopScaled>T.clientHeightScaled?console.warn("Mousedown on a horizontal scrollbar, not starting drag."):(x=z.getCurrentTarget(),S=v.dom.getDimensions(x),v.dom.isInDOM(x)&&0!==S.clientWidth&&0!==S.clientHeight&&(v.dom.closest(z.getTarget(),"input,textarea,select")||(L=x,A.init_drag(z,L)))))})});var A},Draggable.prototype.init_drag=function(A,z){var L,T,k,x,S,E,Y,P,q;if(z&&(v.globalDrag="function"==typeof this._create?this._create(A,z):void 0,!1!==v.globalDrag)){for(S in(v.util.isNull(v.globalDrag)||!0===v.globalDrag)&&(v.globalDrag={}),v.util.assert(v.util.isPlainObject(v.globalDrag),"CUI.Draggable.init_drag","returned data must be a plain object",{data:v.globalDrag}),Y=v.util.getCoordinatesFromEvent(A),P=v.util.elementGetPosition(Y,z),x={$source:z,startEvent:A,startCoordinates:Y,instance:this,startScroll:{top:z.scrollTop,left:z.scrollLeft},start:P,threshold:this._threshold})q=x[S],v.globalDrag[S]=q;var F;A.stopPropagation(),this.before_drag(A,z),this.__ref=new v.Dummy,L=0,E=null,F=this,T=function(){var A;return A=E.getPointTarget()||E.getTarget(),v.Events.trigger({type:"dragover-scroll",node:A,count:L,originalEvent:E}),L+=1,F.__killTimeout(),F.__autoRepeatTimeout=v.setTimeout({ms:100,track:!1,call:T})},v.Events.listen({node:document,type:this.__event_types.move,instance:this.__ref,call:function(A){return function(L){var k,x;if(v.globalDrag&&(L.preventDefault(),(z=L.getTarget())&&!v.globalDrag.ended)){switch(x={x:(k=v.util.getCoordinatesFromEvent(L)).pageX-v.globalDrag.startCoordinates.pageX,y:k.pageY-v.globalDrag.startCoordinates.pageY,eventPoint:k},A.get_axis()){case"x":x.y=0;break;case"y":x.x=0}x.bare_x=x.x,x.bare_y=x.y,x.x+=v.globalDrag.$source.scrollLeft-v.globalDrag.startScroll.left,x.y+=v.globalDrag.$source.scrollTop-v.globalDrag.startScroll.top,(Math.abs(x.x)>=v.globalDrag.threshold||Math.abs(x.y)>=v.globalDrag.threshold||v.globalDrag.dragStarted)&&(v.globalDrag.dragDiff=x,v.globalDrag.dragStarted||(v.globalDrag.startEvent.preventDefault(),A.__startDrag(L,z,x),A._get_cursor?document.body.setAttribute("data-cursor",A._get_cursor(v.globalDrag)):document.body.setAttribute("data-cursor",A.getCursor())),E=L,T(),A.do_drag(L,z,x),"function"==typeof A._dragging&&A._dragging(L,v.globalDrag,x))}}}(this)}),k=function(A){return function(z,L){var T,k,x;null==L&&(L=!1),k=v.globalDrag.$source,x=v.dom.parents(k),v.globalDrag.ended=!0,document.body.removeAttribute("data-cursor"),L?(v.globalDrag.stopped=!0,A.stop_drag(z),"function"==typeof A._dragstop&&A._dragstop(z,v.globalDrag,A)):(A.end_drag(z),"function"==typeof A._dragend&&A._dragend(z,v.globalDrag,A)),A.isDestroyed()||(T=v.globalDrag.noClickKill,A.__cleanup(),T||function(){var A,z,L,T,S;for(S=v.dom.parents(k),z=A=0,L=x.length;A=0||"max"===P&&k<=0||("y"===F&&z.call(A.fix,"n")>=0?A.h-=k:"x"===F&&z.call(A.fix,"w")>=0?A.w-=k:(A[F]-=k,"h"===F&&z.call(A.fix,"s")>=0&&(A.y+=k),"w"===F&&z.call(A.fix,"e")>=0&&(A.x+=k),"x"===F&&z.call(A.fix,"e")>=0&&(A.w+=k),"y"===F&&z.call(A.fix,"s")>=0&&(A.h+=k))));return A},Draggable}(v.DragDropSelect)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Droppable=function(z){function Droppable(){return Droppable.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Droppable,z),Droppable.cls="droppable",Droppable.prototype.initOpts=function(){return Droppable.__super__.initOpts.call(this),this.addOpts({accept:{check:Function},drop:{default:function(A,z){var L;return L=z.dropTargetPos||"on",v.alert({markdown:!0,text:"You dropped me **"+L+"**: "+v.dom.getAttribute(z.dropTarget,"class")})},check:Function},hoverClass:{default:"cui-droppable",check:String},dropHelper:{mandatory:!0,default:!1,check:Boolean},targetHelper:{mandatory:!0,default:!1,check:Boolean},selector:{check:function(A){return v.util.isString(A)||v.util.isFunction(A)}}})},Droppable.prototype.accept=function(v,A){return"function"==typeof this._accept?this._accept(v,A):void 0},Droppable.prototype.destroy=function(){return this.removeHelper(),Droppable.__super__.destroy.call(this)},Droppable.prototype.readOpts=function(){Droppable.__super__.readOpts.call(this),this._targetHelper&&v.util.assert(this._selector,"new CUI.Droppable","opts.targetHelper needs opts.selector to be set.",{opts:this.opts}),this._dropHelper&&(v.util.assert(!this._selector||this._targetHelper,"new CUI.Droppable","opts.dropHelper does only work without opts.selector or with opts.targetHelper and opts.selector. needs opts.selector to be set.",{opts:this.opts}),this.__dropHelper=v.dom.element("DIV",{class:"cui-droppable-drop-helper"}))},Droppable.prototype.removeHelper=function(){var A,z,L;if(this.resetMargin(),this.__selectedTarget&&(v.dom.removeClass(this.__selectedTarget,this._hoverClass),this.__selectedTarget=null),this.__dropHelper&&v.dom.remove(this.__dropHelper),this._targetHelper)for(A=0,z=(L=v.dom.findElements(this._element,this._selector)).length;Ak.viewportCenterLeft||"y"===this.__axis&&T.pageY>k.viewportCenterTop?"after":"before",L(x=this.__selectedTarget,S)?(this.__dropTarget=x,this.__dropTargetPos=S,Y="cui-droppable-target-helper-"+this.__axis+"--"+this.__dropTargetPos,this.__resetMargin===this.__selectedTarget&&this.__selectedTarget.__target_helper_class===Y||(this.resetMargin(),this.__saveZoneDims=[v.dom.getDimensions(this.__selectedTarget)],this.__selectedTarget.__target_helper_class=Y,v.dom.addClass(this.__selectedTarget,this.__selectedTarget.__target_helper_class),this.__saveZoneDims.push(v.dom.getDimensions(this.__selectedTarget)),this.__resetMargin=this.__selectedTarget)):this.removeHelper()},Droppable.prototype.init=function(){var A;return v.Events.listen({node:this.element,type:"cui-dragend",instance:this,call:(A=this,function(v,z){return A.removeHelper()})}),v.Events.listen({node:this.element,type:"cui-drop",instance:this,call:function(A){return function(z,L){A.__dropTarget&&(L.dropTarget=A.__dropTarget,A._targetHelper&&(L.dropTargetPos=A.__dropTargetPos),!1!==A.accept(z,L)&&(z.stopPropagation(),v.setTimeout({call:function(){return A._drop(z,L)}})))}}(this)}),v.Events.listen({node:this.element,type:["cui-dragover","cui-dragenter","cui-dragleave"],instance:this,call:function(v){return function(A,z){v.syncTargetHelper(A,z),A.stopPropagation()}}(this)})},Droppable}(v.DragDropSelect)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty,z=[].indexOf||function(v){for(var A=0,z=this.length;A0&&(U-=H,P=0)):(H=(P=v.globalDrag.start.left)+(U=T.x)-this.element.scrollWidth)>0&&(U-=H),T.y<=0?(V=v.globalDrag.start.top+T.y,x=-T.y,(H=-V)>0&&(x-=H,V=0)):(H=(V=v.globalDrag.start.top)+(x=T.y)-this.element.scrollHeight)>0&&(x-=H),S=0,q=(Y=this.get_lassoed_elements()).length;S1?L[L.length-2]:null},Sortable.prototype.getClass=function(){return this._selector?"cui-drag-drop-select":Sortable.__super__.getClass.call(this)},Sortable.prototype.readOpts=function(){return Sortable.__super__.readOpts.call(this),this._helper_contain_element=this._element},Sortable.prototype.get_child_number=function(v){var A,z,L,T;for(z=A=0,L=(T=this.element.children).length;Az&&(v.globalDrag.noClickKill=!0,v.dom.insertBefore(L,T)),v.dom.syncAnimatedClone(this.element),this},Sortable.prototype.start_drag=function(A,z,L){return v.globalDrag.sort_source=this.__findClosestSon(v.globalDrag.$source),v.globalDrag.sort_source.classList.add("cui-sortable-placeholder"),v.globalDrag.start_idx=this.get_child_number(v.globalDrag.sort_source),v.dom.addClass(this.element,"cui-sorting"),v.dom.initAnimatedClone(this.element)},Sortable.prototype.getCloneSourceForHelper=function(){return this.__findClosestSon(v.globalDrag.$source)},Sortable.prototype.__findClosestSon=function(A){var z;if((z=v.dom.parentsUntil(A,null,this.element))[z.length-1]===window)return null;switch(z.length){case 0:return null;case 1:return A;default:return z[z.length-2]}},Sortable.prototype.do_drag=function(A,z,L){var T,k,x;if(this.position_helper(A,z,L),x=this.__findClosestSon(z))return k=this.get_child_number(v.globalDrag.sort_source),T=this.get_child_number(x),this._allowSort(A,k,T)&&this.move_element(k,T),this},Sortable.prototype.init_drag=function(v,A){return Sortable.__super__.init_drag.call(this,v,this.getSortTarget(v.getTarget(),this._element))},Sortable.prototype.stop_drag=function(v){return Sortable.__super__.stop_drag.call(this,v),this.__end_drag(v,!0)},Sortable.prototype.end_drag=function(v){return Sortable.__super__.end_drag.call(this,v),this.__end_drag(v,!1)},Sortable.prototype.cleanup_drag=function(A){return Sortable.__super__.cleanup_drag.call(this,A),v.dom.removeClass(this.element,"cui-sorting"),v.globalDrag.sort_source.classList.remove("cui-sortable-placeholder"),v.dom.removeAnimatedClone(this.element)},Sortable.prototype.__end_drag=function(A,z){var L;L=this.get_child_number(v.globalDrag.sort_source),v.globalDrag.start_idx!==L&&(z?this.move_element(L,v.globalDrag.start_idx):this._sorted(A,v.globalDrag.start_idx,L))},Sortable}(v.Draggable)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Movable=function(z){function Movable(){return Movable.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Movable,z),Movable.cls="movable",Movable.prototype.initOpts=function(){return Movable.__super__.initOpts.call(this),this.addOpts({limitRect:{default:{},check:function(A){return v.util.isPlainObject(A)||A instanceof Function}},onPositioned:{check:Function},onPosition:{check:Function},start_drag:{check:Function},do_drag:{check:Function}}),this.removeOpt("helper")},Movable.prototype.readOpts=function(){return Movable.__super__.readOpts.call(this),this._helper=null},Movable.prototype.getLimitRect=function(){return v.util.isFunction(this._limitRect)?this._limitRect():this._limitRect},Movable.prototype.setElementCss=function(A){var z;return v.util.assert(v.util.isPlainObject(A),v.util.getObjectClass(this),"opts.position must return a PlainObject containing any of x, y, w, h",{pos:A}),z={},v.util.isEmpty(A.x)||(z.left=A.x),v.util.isEmpty(A.y)||(z.top=A.y),v.util.isEmpty(A.w)||(z.marginBoxWidth=A.w),v.util.isEmpty(A.h)||(z.marginBoxHeight=A.h),v.dom.setDimensions(this.element,z),"function"==typeof this._onPositioned?this._onPositioned(A):void 0},Movable.prototype.init_drag=function(A,z){if(!v.dom.closest(A.getTarget(),".cui-resizable-handle"))return Movable.__super__.init_drag.call(this,A,z)},Movable.prototype.before_drag=function(){var A;return A=v.dom.getDimensions(this.element),this.start={x:A.left||0,y:A.top||0,w:A.marginBoxWidth,h:A.marginBoxHeight},this},Movable.prototype.start_drag=function(v,A,z){return this._start_drag&&this._start_drag(v,A,z,this),this},Movable.prototype.do_drag=function(v,A,z){var L,T;return this._do_drag?(this._do_drag(v,A,z,this),this):(L={x:z.x+this.start.x,y:z.y+this.start.y,w:this.start.w,h:this.start.h},this._onPosition?(T=this._onPosition(L.x,L.y,this.start,z),L.x=T[0],L.y=T[1]):this.limitRect(L,this.start),this.setElementCss(L),this)},Movable.prototype.limitRect=function(A,z,L){return null==z&&(z={}),null==L&&(L=this.getLimitRect()),v.Draggable.limitRect(A,L,z)},Movable}(v.Draggable)}).call(this,z(0))},function(v,A,z){(function(v){var bind=function(v,A){return function(){return v.apply(A,arguments)}},A={}.hasOwnProperty;v.Resizable=function(z){function Resizable(){return this.getResizePos=bind(this.getResizePos,this),Resizable.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Resizable,z),Resizable.cls="resizable",Resizable.prototype.initOpts=function(){return Resizable.__super__.initOpts.call(this),this.removeOpt("selector")},Resizable.prototype.readOpts=function(){return Resizable.__super__.readOpts.call(this),this._selector=".cui-resizable-handle"},Resizable.prototype.init=function(){var A,z,L,T,k;for(Resizable.__super__.init.call(this),k=[],z=0,L=(T=["ne","nw","se","sw","s","n","e","w"]).length;z0&&(A+=" Modifiers: **"+v.join("+")+"**"),A},Event.prototype.stop=function(){return this.preventDefault(),this.stopPropagation(),this.stopImmediatePropagation(),!1},Event.require=function(A,z){var L,T,k;return v.util.isPlainObject(A)?(k=(T=v.Events.getEventType(A.type)).eventClass?T.eventClass:v.Event,v.util.mergeMap(A,T),delete A.eventClass,delete A.listenerClass,L=new k(A)):L=A,v.util.assert(L instanceof v.Event,""+z,"event needs to be PlainObject or instance of CUI.Event."),L},Event.createFromDOMEvent=function(A,z){var L,T;return T=v.Events.getEventType(A.type),z||(z=T.eventClass?T.eventClass:v.Event),(L=new z({type:A.type,bubble:A.bubbles,node:A.target})).setNativeEvent(A),L},Event}(v.Element)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.MouseEvent=function(z){function MouseEvent(){return MouseEvent.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(MouseEvent,z),MouseEvent.prototype.initOpts=function(){return MouseEvent.__super__.initOpts.call(this),this.addOpts({button:{check:function(v){return v>=0}},pageX:{check:function(v){return v>0}},pageY:{check:function(v){return v>0}},clientX:{check:function(v){return v>0}},clientY:{check:function(v){return v>0}}})},MouseEvent.prototype.setNativeEvent=function(v){var A,z,L,T,k;for(A=0,L=(k=["button","pageX","pageY","clientX","clientY"]).length;A=0&&(L="Num"+String.fromCharCode(A-48)),z.call([112,113,114,115,116,117,118,119,120,121,122,123],A)>=0)L="F"+String.fromCharCode(A-111);else switch(A){case 8:L="Backspace";break;case 9:L="Tab";break;case 13:L="Return";break;case 16:L="Shift";break;case 17:L="Ctrl";break;case 18:L="Alt";break;case 20:L="CapsLock";break;case 27:L="Esc";break;case 32:L="Space";break;case 33:L="PageUp";break;case 34:L="PageDown";break;case 37:L="Left";break;case 38:L="Up";break;case 39:L="Right";break;case 40:L="Down";break;case 46:L="Insert";break;case 46:L="Delete";break;case 110:L="Num.";break;case 144:L="Numlock";break;case 111:L="Num/";break;case 106:L="Num*";break;case 107:L="Num+";break;default:L=String.fromCharCode(A)}return L}},KeyboardEvent.prototype.key=function(){return this.getNativeEvent().key},KeyboardEvent.prototype.dump=function(){var v,A;return A=this.__cls+": **"+this.getType()+"**",A+=" Key: **"+this.key()+"** KeyCode: **"+this.keyCode()+"**",(v=this.getKeyboard()).length>0&&(A=A+" Keyboard: **"+v+"**"),A},KeyboardEvent.__initKeyboardListener=function(){var A;return A=function(v){switch(v){case 16:case 17:case 18:case 91:case 93:return!0;default:return!1}},v.KeyboardEvent.__keys=[],v.Events.listen({type:["keydown"],node:window,capture:!0,call:function(z){A(z.keyCode())||v.util.pushOntoArray(z.getKeyboardKey(),v.KeyboardEvent.__keys)}}),v.Events.listen({type:["keyup"],node:window,capture:!0,call:function(z){A(z.keyCode())||v.util.removeFromArray(z.getKeyboardKey(),v.KeyboardEvent.__keys)}}),v.Events.listen({type:["blur"],node:window,capture:!0,call:function(A){return v.KeyboardEvent.__keys=[]}})},KeyboardEvent}(v.Event),v.ready((function(){return v.KeyboardEvent.__initKeyboardListener()}))}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.TouchEvent=function(v){function TouchEvent(){return TouchEvent.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(TouchEvent,v),TouchEvent.prototype.initOpts=function(){return TouchEvent.__super__.initOpts.call(this),this.addOpts({button:{check:function(v){return v>=0}},pageX:{check:function(v){return v>0}},pageY:{check:function(v){return v>0}},clientX:{check:function(v){return v>0}},clientY:{check:function(v){return v>0}}})},TouchEvent.prototype.setNativeEvent=function(v){var A,z,L,T,k;for(A=0,L=(k=["button","pageX","pageY","clientX","clientY"]).length;A=0));x++);else P=A.type,E=z.call(this.__types,P)>=0;return E&&A.call&&(k=!0,E=A.call===this._call),E&&A.instance&&(k=!0,E=A.instance===this.getInstance()),v.util.assert(k,"Listener.matchesFilter","Filter did not filter anything, make sure you have 'node', 'type', 'call', or 'instance' set.",{filter:A}),E},Listener.require=function(A,z){var L,T,k,x,S,E,Y;if(v.util.isPlainObject(A)){for(S=null,T=0,k=(Y=A.type instanceof Array?A.type:[A.type]).length;T=0)}}}),T=[],k=[],z=v.dom.getNode(S.node),L=new v.Deferred,k.push(v.Events.listen({type:S.type,node:z,call:function(){L.resolve()}})),T.push(L),(x=new v.Deferred).always((function(){var v,A;for(v=0,A=k.length;v=0&&v.setTimeout({ms:S.maxWait,call:function(){var v,A;for(v=0,A=T.length;v0){for(U=v.dom.parents(V),nt=!1,Y=0,F=st.length;Y0,"CUI.Events.registerEvent","event.type must be String.",{event:A}),q=this,Y=function(z){var L;return(L=v.util.copyObject(A,!0)).type=z,q.registerEvent(L,!1)},v.util.isArray(A.type))for(L=0,k=(S=A.type).length;L=1},mandatory:!0},call:{check:Function,mandatory:!0},node:{mandatory:!0,check:function(A){return v.dom.isNode(A)}}})},MouseIsStill.prototype.start=function(){var A;this.__event=v.Events.listen({type:"mousemove",node:this._node,instance:this,call:(A=this,function(z){return v.clearTimeout(A.__timeout),A.__timeout=v.setTimeout({ms:A._ms,call:function(){return A.stop(),A._call(z)}})})})},MouseIsStill.prototype.stop=function(){this.__timeout&&(v.clearTimeout(this.__timeout),this.__timeout=null),this.__event&&(v.Events.ignore(this.__event),this.__event=null)},MouseIsStill.prototype.destroy=function(){this.stop(),v.Events.ignore({instance:this}),MouseIsStill.__super__.destroy.call(this)},MouseIsStill}(v.Element)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.DragoverScrollEvent=function(z){function DragoverScrollEvent(){return DragoverScrollEvent.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(DragoverScrollEvent,z),DragoverScrollEvent.prototype.initOpts=function(){return DragoverScrollEvent.__super__.initOpts.call(this),this.addOpts({count:{mandatory:!0,check:function(A){return v.util.isPosInt(A)}},originalEvent:{mandatory:!0,check:v.Event}})},DragoverScrollEvent.prototype.getCount=function(){return this._count},DragoverScrollEvent.prototype.getOriginalEvent=function(){return this._originalEvent},DragoverScrollEvent}(v.Event)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.DOMElement=function(z){function DOMElement(){return DOMElement.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(DOMElement,z),DOMElement.defaults={qa:!1},DOMElement.prototype.initOpts=function(){return DOMElement.__super__.initOpts.call(this),this.addOpts({class:{default:"",check:String},id:{check:String},qa:{check:String},attr:{check:"PlainObject"}})},DOMElement.prototype.registerTemplate=function(A,z){return null==z&&(z=!0),v.util.assert(A instanceof v.Template,v.util.getObjectClass(this)+".registerDOMElement","template must be instance of Template but is "+v.util.getObjectClass(A)+".",{template:A}),this.__template&&(console.warn(v.util.getObjectClass(this)+".registerDO MElement","Already called before, destroying existing template",{template:this.__template}),this.__template.destroy()),this.__template=A,this.registerDOMElement(this.__template.DOM,z)},DOMElement.prototype.getDOMElementClasses=function(){return"cui-"+v.util.toDash(this.__cls)},DOMElement.prototype.registerDOMElement=function(A,z){return this.DOM=A,null==z&&(z=!0),z&&v.dom.addClass(this.DOM,this.getDOMElementClasses()),this._attr&&v.dom.setAttributeMap(this.DOM,this._attr),this._id&&v.dom.setAttribute(this.DOM,"id",this._id),this._class&&v.dom.addClass(this.DOM,this._class),this._qa&&v.DOMElement.defaults.qa&&v.dom.setAttribute(this.DOM,"data-qa",this._qa),v.dom.data(this.DOM,"element",this),this},DOMElement.prototype.getElementForLayer=function(){return this.DOM},DOMElement.prototype.unregisterDOMElement=function(){return v.dom.removeClass(this.DOM,this.getDOMElementClasses()),v.dom.removeAttribute(this.DOM,"id"),this._class&&v.dom.removeClass(this.DOM,this._class),v.dom.removeData(this.DOM,"element"),delete this.DOM,this},DOMElement.prototype.__assertDOMElement=function(A){return v.util.assert(this.DOM,this.__cls+"."+A,'registerDOMElement needs to be called before "'+A+'" is supported.')},DOMElement.prototype.__assertTemplateElement=function(A){return v.util.assert(this.__template,this.__cls+"."+A,'registerTemplateElement needs to be called before "'+A+'" is supported.')},DOMElement.prototype.addClass=function(A,z){return v.util.assert(1===arguments.length||2===arguments.length,"addClass","Only 'className' and 'key' parameters are allowed."),z?(this.__assertTemplateElement("addClass"),this.__template.addClass.call(this.__template,A,z,this)):(this.__assertDOMElement("addClass"),v.dom.addClass(this.DOM,A))},DOMElement.prototype.setAria=function(A,z){return this.__assertDOMElement("setAria"),v.dom.setAria(this.DOM,A,z)},DOMElement.prototype.removeClass=function(A,z){return v.util.assert(1===arguments.length||2===arguments.length,"removeClass","Only 'className' and 'key' parameters are allowed."),z?(this.__assertTemplateElement("removeClass"),this.__template.removeClass.call(this.__template,A,z,this)):(this.__assertDOMElement("removeClass"),v.dom.removeClass(this.DOM,A))},DOMElement.prototype.hide=function(A){return v.util.isEmpty(A)?(this.__assertDOMElement("hide"),v.dom.hideElement(this.DOM)):(this.__assertTemplateElement("hide"),this.__template.hide.call(this.__template,A))},DOMElement.prototype.show=function(A){return v.util.isEmpty(A)?(this.__assertDOMElement("show"),v.dom.showElement(this.DOM)):(this.__assertTemplateElement("show"),this.__template.show.call(this.__template,A))},DOMElement.prototype.showWaitBlock=function(){return this.__assertDOMElement("showWaitBlock"),this.__wb=new v.WaitBlock({element:this.DOM}).show(),this},DOMElement.prototype.hideWaitBlock=function(){return this.__wb.destroy(),delete this.__wb,this},DOMElement.prototype.hasClass=function(A){return v.util.assert(1===arguments.length,"CUI.dom.hasClass","Only one parameter allowed."),this.__assertDOMElement("hasClass"),v.dom.hasClass(this.DOM,A)},DOMElement.prototype.isDestroyed=function(v){var A;return null!=(A=this.__template)?A.isDestroyed.call(this.__template,v):void 0},DOMElement.prototype.empty=function(v){return this.__assertTemplateElement("empty"),this.__template.empty.call(this.__template,v)},DOMElement.prototype.replace=function(v,A){return this.__assertTemplateElement("replace"),this.__template.replace.call(this.__template,v,A,this)},DOMElement.prototype.append=function(v,A){return this.__assertTemplateElement("append"),this.__template.append.call(this.__template,v,A,this)},DOMElement.prototype.prepend=function(v,A){return this.__assertTemplateElement("prepend"),this.__template.prepend.call(this.__template,v,A,this)},DOMElement.prototype.text=function(v,A){return this.__assertTemplateElement("text"),this.__template.text.call(this.__template,v,A,this)},DOMElement.prototype.get=function(v){return this.__assertTemplateElement("get"),this.__template.get.call(this.__template,v,this)},DOMElement.prototype.getFlexHandle=function(v,A){return this.__assertTemplateElement("getFlexHandle"),this.__template.getFlexHandle.call(this.__template,v,A)},DOMElement.prototype.destroy=function(){var A;return DOMElement.__super__.destroy.call(this),this.__template?null!=(A=this.__template)&&A.destroy():this.DOM&&v.dom.remove(this.DOM),this},DOMElement}(v.Element)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.CSSLoader=function(z){function CSSLoader(){return CSSLoader.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(CSSLoader,z),CSSLoader.prototype.readOpts=function(){CSSLoader.__super__.readOpts.call(this),this._cssName?this.__cssName=this._cssName:this.__cssName="cui-css-"+this.getUniqueId()},CSSLoader.prototype.initOpts=function(){return CSSLoader.__super__.initOpts.call(this),this.addOpts({cssName:{check:String}})},CSSLoader.prototype.__getCSSNodes=function(){return v.dom.matchSelector(document.documentElement,'link[name="'+this.__cssName+'"]')},CSSLoader.prototype.getActiveCSS=function(){var A,z,L,T;for(z=0,L=(T=this.__getCSSNodes()).length;z0?v.dom.insertAfter(Y[Y.length-1],L):document.head.appendChild(L),k.promise())},CSSLoader}(v.Element)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Template=function(z){function Template(A){var z;Template.__super__.constructor.call(this,A),z=v.Template.nodeByName[this._name],v.util.assert(z,"CUI.Template",this._name+" not found. Make sure to call Template.loadFile(...)."),this.DOM=z.cloneNode(!0),this._class&&v.dom.addClass(this.DOM,this._class),this._attr&&v.dom.setAttributeMap(this.DOM,this._attr),this.map=this.getElMap(this._map),this.__updateTemplateEmpty(),this._init_flex_handles&&this.initFlexHandles()}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Template,z),Template.prototype.initOpts=function(){return Template.__super__.initOpts.call(this),this.addOpts({name:{mandatory:!0,check:String},map_prefix:{check:String},init_flex_handles:{mandatory:!0,default:!1,check:Boolean},map:{type:"PlainObject",default:{}},class:{check:String},attr:{check:"PlainObject"}}),this},Template.prototype.initFlexHandles=function(A){var z,L,T,k,x,S,E,Y,P,q;for(null==A&&(A={}),this.__flexHandles={},k=0,S=(Y=v.dom.matchSelector(this.DOM,"[data-cui-flex-handle]")).length;k1?(console.debug(T,P,"found more than once",k,this.DOM),E.push("* "+T+": found more than once ("+Y+")"),x++):(E.push("+ "+T+": found"),L[T]=k[0],k[0].removeAttribute("data-slot"),function(v){return function(A){return L[A].empty=function(){return v.empty(A),L[A]},L[A].append=function(z){return v.append(z,A),L[A]},L[A].prepend=function(z){return v.prepend(z,A),L[A]}}}(this)(T)));return x&&v.util.assert(!1,'Not all required elements were found for Template:\n\n"'+this._name+'"\n\n'+E.join("\n")),L},Template.prototype.destroy=function(){return v.dom.remove(this.DOM),delete this.map,Template.__super__.destroy.call(this)},Template.prototype.addClass=function(A,z){return z?(v.util.assert(this.map[z],this.__cls+".addClass",'Key "'+z+'" not found in map. Template: "'+this._name+'".',{map:this.map,DOM:this.DOM}),v.dom.addClass(this.map[z],A)):v.dom.addClass(this.DOM,A)},Template.prototype.removeClass=function(A,z){return z?(v.util.assert(this.map[z],this.__cls+".removeClass",'Key "'+z+'" not found in map. Template: "'+this._name+'".',{map:this.map,DOM:this.DOM}),v.dom.removeClass(this.map[z],A)):v.dom.removeClass(this.DOM,A)},Template.prototype.hasClass=function(A,z){return z?(v.util.assert(this.map[z],this.__cls+".hasClass",'Key "'+z+'" not found in map. Template: "'+this._name+'".',{map:this.map,DOM:this.DOM}),v.dom.hasClass(this.map[z],A)):v.dom.hasClass(this.DOM,A)},Template.prototype.has=function(v){return!!this.map[v]},Template.prototype.hide=function(A){return A?v.dom.hideElement(this.map[A]):v.dom.hideElement(this.DOM)},Template.prototype.show=function(A){return A?v.dom.showElement(this.map[A]):v.dom.showElement(this.DOM)},Template.prototype.__updateTemplateEmpty=function(){var A,z;if(v.util.isEmptyObject(this.map))A=this.isEmpty();else for(z in A=!0,this.map)if(!this.isEmpty(z)){A=!1;break}A?v.dom.addClass(this.DOM,"cui-template-empty"):v.dom.removeClass(this.DOM,"cui-template-empty")},Template.prototype.replace=function(A,z,L){var T;return v.util.assert(this.map,"Template["+this._name+"].replace ["+this.getUniqueId()+"]","Already destroyed"),z&&v.util.assert(this.map[z],this.__cls+".replace",'Key "'+z+'" not found in map. Template: "'+this._name+'".',{map:this.map,DOM:this.DOM}),this.__empty(z),T=this.__append(A,z,L),this.__updateTemplateEmpty(),T},Template.prototype.text=function(A,z,L){v.util.assert(v.util.isString(A),this.__cls+".text","Value must be String",{value:A,key:z,element:L}),z?this.map[z].textContent=A:this.DOM.textContent=A,this.__updateTemplateEmpty()},Template.prototype.prepend=function(v,A,z){var L;return L=this.__append(v,A,z,!0),this.__updateTemplateEmpty(),L},Template.prototype.append=function(v,A,z){var L;return L=this.__append(v,A,z,!1),this.__updateTemplateEmpty(),L},Template.prototype.empty=function(v){var A;return A=this.__empty(v),this.__updateTemplateEmpty(),A},Template.prototype.__empty=function(A){if(v.util.assert(this.map,"Template["+this._name+"].empty ["+this.getUniqueId()+"]","Already destroyed",{template:this,name:this._name}),this.isEmpty(A))return A?this.map[A]:this.DOM;if(A)return v.util.assert(this.map[A],this.__cls+".empty",'Key "'+A+'" not found in map. Template: "'+this._name+'".',{map:this.map}),v.dom.empty(this.map[A]),this.map[A];if(v.util.isEmptyObject(this.map))v.dom.empty(this.DOM);else for(A in this.map)v.dom.empty(this.map[A]);return this.DOM},Template.prototype.__append=function(A,z,L,T){var k,x,S,E,Y,P;for(S=T?"prepend":"append",v.util.assert(this.map,"Template["+this._name+"]."+S+" ["+this.getUniqueId()+"]","Already destroyed"),z&&v.util.assert(this.map[z],this.__cls+"."+S,'Key "'+z+'" not found in map. Template: "'+this._name+'".',{map:this.map}),v.util.isFunction(A)&&(A=A(L)),v.util.isArray(A)||(A=[A]),x=[],E=0,Y=A.length;E0&&v.dom[S](P,x),P},Template.prototype.get=function(A){return v.util.assert(this.map[A],this.__cls+".get",'Key "'+A+'" not found in map. Template: "'+this._name+'".',{map:this.map,DOM:this.DOM}),this.map[A]},Template.prototype.isEmpty=function(A){return A?(v.util.assert(this.map[A],this.__cls+".isEmpty",'Key "'+A+'" not found in map. Template: "'+this._name+'".',{map:this.map}),!this.map[A].firstChild):!this.DOM.firstChild},Template.prototype.removeEmptySlots=function(){var A,z,L;for(A in L=this.map)(z=L[A]).firstChild||v.dom.remove(z);return this},Template.nodeByName={},Template.loadTemplateFile=function(v){return this.loadFile(v,!0)},Template.loadTemplateText=function(v){return this.__appendContent(v,!0)},Template.loadText=function(v){return this.__appendContent(v,!1)},Template.loadFile=function(A,z){var L,T;return null==z&&(z=!1),L=A.match("^(https://|http://|/)")?A:v.getPathToScript()+A,new v.XHR({url:L,responseType:"text"}).start().done((T=this,function(v){T.__appendContent(v,z)})).fail((function(v){return console.error('Template.loadFile: Unable to load filename: "'+A+'", see Console for more details. You can however, output easydbui.html manually before loading easydbui.js.',v)}))},Template.load=function(A){var z,L,T,k,x,S,E,Y,P,q;for(null==A&&(A=document.documentElement),L=0,k=0,S=(P=v.dom.matchSelector(A,".cui-tmpl,[data-template]")).length;k0&&(document.body.appendChild(T),console.warn("Template.loadFile:",filename,"contains extra content.",T)),0===L?console.warn("Template.loadFile:",filename,"contains no Templates."):void 0):document.body.appendChild(T)},Template}(v.Element)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.FlexHandle=function(z){function FlexHandle(A){var z,L,T,k,x;for(FlexHandle.__super__.constructor.call(this,A),this.__pane=null,k=T=0,x=(L=this._element.parentNode.children).length;Tthis.__pane_idx?this.__element_idx0&&(this.__adjacent_pane=L[this.__element_idx-1]),this.__closed=this._closed,this.__hidden=this._hidden,this.__stretched=null,this.__size=null,v.util.assert(this.__pane,"new "+this.__cls,'pane "'+this._pane+'" not found in parent element of cui-flex-handle element.',{opts:this.opts,children:L}),v.dom.data(this.__pane,"flexHandle",this),v.dom.setAttribute(this.__pane,"flex-handled-pane",this._name)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(FlexHandle,z),FlexHandle.prototype.readOpts=function(){var A,z,L;FlexHandle.__super__.readOpts.call(this),"horizontal"===(A=this._direction)||"row"===A?this.__direction="row":"vertical"!==(z=this._direction)&&"column"!==z||(this.__direction="column"),v.util.assert("row"===(L=this.__direction)||"column"===L,"new "+this.__cls,"opts.direction needs to be set",{opts:this.opts,element:this._element}),this._label&&this.addLabel(this._label)},FlexHandle.prototype.initOpts=function(){return FlexHandle.__super__.initOpts.call(this),this.addOpts({element:{mandatory:!0,check:function(A){return v.util.isElement(A)}},pane:{mandatory:!0,check:String},name:{mandatory:!0,check:String},closed:{check:Boolean},closable:{mandatory:!0,default:!1,check:Boolean},open_button_icon:{mandatory:!1,check:function(A){return v.util.isString(A)||A instanceof v.Icon}},label:{check:function(A){return A instanceof v.Label||v.util.isPlainObject(A)}},hidden:{check:Boolean},direction:{check:["horizontal","vertical","row","column"]},manage_state:{default:!0,check:Boolean},state_name:{check:String},class:{check:String},onResize:{check:Function},maxValue:{check:function(v){return v>0}}})},FlexHandle.prototype.init=function(){var A,z,L,T;if(!this.isDestroyed())return v.dom.addClass(this._element,"cui-flex-handle cui-flex-handle-"+this.__direction+" cui-flex-handle-"+this._name),this.__closed&&this.close(),this.__hidden&&this.hide(),this._class&&v.dom.addClass(this._element,this._class),"row"===this.__direction?(A="x",this.__css_value="Width"):(A="y",this.__css_value="Height"),this._open_button_icon?this._element.classList.add("cui-flex-handle-with-button-icon"):(v.Events.listen({type:"dblclick",node:this._element,call:(T=this,function(v){null===T.__size?T.isClosed()?T.open():T._closable&&T.close():T.resetSize(),T.storeState()})}),v.Events.listen({type:["click"],node:this._element,call:function(v){return function(A){v.__label&&v.isClosed()&&(v.open(),v.storeState())}}(this)})),z=null,new v.Draggable({element:this._element,axis:A,support_touch:!0,create:function(v){return function(){if(v.isClosed())return!1}}(this),dragstart:function(L){return function(T,k){var x,S,E,Y,P;return E=L.__pane_idx0?ot.slice(0,Y).reduce((function(v,A){return v+A})):0;break;case"right":case"bottom":it=Y+10&&v.Events.trigger({type:"viewport-resize"}),this},Layout.all=function(){return v.scheduleCallback({call:v.Layout.__all})},Layout}(v.DOMElement),v.ready((function(){return v.Events.listen({type:["viewport-resize","content-resize"],call:function(A,z){return z.FlexHandle?v.Layout.__all():v.Layout.all()}})}))}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty,L=[].indexOf||function(v){for(var A=0,z=this.length;A=0&&A.left>=0}},fill_space:{default:"auto",mandatory:!0,check:v.Layer.FILL_SPACE_CHECK_ARRAY},check_for_element:{default:!1,check:Boolean},show_ms:{default:700,check:function(v){return v>0}},visible:{check:Boolean},hide_ms:{default:100,check:function(v){return v>0}}}),this},Layer.prototype.readOpts=function(){return Layer.__super__.readOpts.call(this),this.__fill_space=this._fill_space,this},Layer.prototype.setVisible=function(A){return null==A&&(A=!0),A?v.dom.setStyleOne(this.__layer_root.DOM,"visibility",""):v.dom.setStyleOne(this.__layer_root.DOM,"visibility","hidden")},Layer.prototype.__allPlacements=["s","e","w","ws","wn","n","se","ne","es","en","nw","sw","c"],Layer.prototype.knownPlacements=["s","e","w","ws","wn","n","se","ne","es","en","nw","sw","c"],Layer.prototype.__setElement=function(A){return A instanceof v.DOMElement?this.__element=A.getElementForLayer():A.DOM?this.__element=A.DOM:this.__element=A,v.util.assert(!v.dom.closest(this.__element,".cui-tmpl"),"Layer.__setElement","element cannot be inside a Template.",{element:A}),v.util.assert(this.__element instanceof HTMLElement,"Layer.__setElement","element needs to be HTMLElement.",{element:A}),this.__element},Layer.prototype.__getOriginalElement=function(){var v;return(null!=(v=this._element)?v.DOM:void 0)||this._element||null},Layer.prototype.autoSize=function(){return this.position()},Layer.prototype.position=function(A){var z,T,k,x,S,E,Y,P,q,F,H,X,V,U,J,tt,et,it,ot,nt,rt,st,at,ct,lt,ut,pt,ht,dt,_t,ft,mt,Mt,gt,yt,bt,vt,wt,At,Ot,zt,Lt,Tt,Dt,Ct,xt,St,Nt,Et,Bt,Rt,Yt,It,Pt,Wt,jt,Gt,Zt,Kt,$t,Qt,te,ee,ie;if(!this.isShown())return this;if("content-resize"!==(null!=A?A.getType():void 0)&&(this.__currentPlacement=null),(E=v.dom.getDimensions(document.body)).isPositioned="relative"===(Ct=E.computedStyle.position)||"fixed"===Ct||"absolute"===Ct,F={width:window.innerWidth-v.dom.getLayerSidebarWidth(),height:window.innerHeight},U=function(v){return{n:"s",s:"n",e:"w",w:"e"}[v]},V=function(v){return"cui-layer-pointer--"+v},this.__pointer)for(v.dom.setStyle(this.__pointer,{top:0,left:0,display:"",margin:""}),J=0,st=(xt=["w","s","e","n"]).length;J$t.top&&($t.top=$t.window_top),$t.window_left>$t.left&&($t.left=$t.window_left),$t.window_bottom<$t.bottom&&($t.bottom=$t.window_bottom),$t.window_right<$t.right&&($t.right=$t.window_right),$t.width=$t.right-$t.left,$t.height=$t.bottom-$t.top,($t.width<10||$t.height<10)&&delete Qt[wt]);for(wt in Qt){switch(ot=($t=Qt[wt]).layer_pos={},zt=$t.pointer_pos={},$t.cuts=0,this.__fill_space){case"both":ot.width=$t.width,ot.height=$t.height;break;case"vertical":ot.height=$t.height,ot.width=P.borderBoxWidth;break;case"horizontal":ot.width=$t.width,ot.height=P.borderBoxHeight;break;default:ot.width=P.borderBoxWidth,ot.height=P.borderBoxHeight}switch(ot.width>$t.width&&(ot.width=$t.width,$t.cuts++),ot.height>$t.height&&(ot.height=$t.height,$t.cuts++),$t.align_horizontal){case"left":ot.left=$t.left;break;case"right":ot.left=$t.right-ot.width;break;case"center":ot.left=Y.viewportCenterLeft-ot.width/2}switch($t.align_vertical){case"top":ot.top=$t.top;break;case"bottom":ot.top=$t.bottom-ot.height;break;case"center":ot.top=Y.viewportCenterTop-ot.height/2}if($t.dim_pointer){switch($t.pointer_align_horizontal){case"left":zt.left=Y.viewportRight+$t.dim_pointer.marginLeft;break;case"right":zt.left=Y.viewportLeft-$t.dim_pointer.borderBoxWidth-$t.dim_pointer.marginLeft;break;case"center":zt.left=Y.viewportCenterLeft-$t.dim_pointer.borderBoxWidth/2}switch($t.pointer_align_vertical){case"top":zt.top=Y.viewportBottom+$t.dim_pointer.marginTop;break;case"bottom":zt.top=Y.viewportTop-$t.dim_pointer.marginBoxHeight+$t.dim_pointer.marginTop;break;case"center":zt.top=Y.viewportCenterTop-$t.dim_pointer.borderBoxHeight/2}zt.width=$t.dim_pointer.borderBoxWidth,zt.height=$t.dim_pointer.borderBoxHeight,zt.direction=$t.dim_pointer.direction}if(ot.top<$t.top&&(ot.top=$t.top,$t.cuts++),ot.left<$t.left&&(ot.left=$t.left,$t.cuts++),(gt=ot.top+ot.height-$t.bottom)>0&&(ot.top=ot.top-gt),(bt=ot.left+ot.width-$t.right)>0&&(ot.left=ot.left-bt),$t.overlap_height=0,$t.overlap_width=0,this.__pointer||this._show_at_position){if((yt=P.borderBoxHeight-ot.height)>0)switch($t.overlap_align){case"bottom":$t.overlap_height=Math.min(ot.top-$t.window_top,yt),ot.top=ot.top-$t.overlap_height,ot.height=ot.height+$t.overlap_height;break;case"top":$t.overlap_height=Math.min($t.window_bottom-ot.top-ot.height,yt),ot.height=ot.height+$t.overlap_height}if((vt=P.borderBoxWidth-ot.width)>0)switch($t.overlap_align){case"right":$t.overlap_width=Math.min(ot.left-$t.window_left,vt),ot.left=ot.left-$t.overlap_width,ot.width=ot.width+$t.overlap_width;break;case"left":$t.overlap_height=Math.min($t.window_right-ot.right,vt),ot.width=ot.width+$t.overlap_width}}if(this.__pointer&&$t.dim_pointer)switch(rt=$t.layer_pos.left+$t.layer_pos.width,nt=$t.layer_pos.top+$t.layer_pos.height,Tt=$t.pointer_pos.left+$t.pointer_pos.width,Lt=$t.pointer_pos.top+$t.pointer_pos.height,$t.pointer_pos.direction){case"n":case"s":(Dt=$t.pointer_pos.left-$t.layer_pos.left-$t.dim_pointer.marginLeft)<0&&(Kt=$t.layer_pos.left-$t.window_left,$t.push_left=Math.min(Kt,-Dt),$t.layer_pos.left=$t.layer_pos.left-$t.push_left),(Dt=rt-Tt-$t.dim_pointer.marginRight)<0&&(Kt=$t.window_right-rt,$t.push_right=Math.min(Kt,-Dt),$t.layer_pos.left=$t.layer_pos.left+$t.push_right);break;case"e":case"w":(Dt=$t.pointer_pos.top-$t.layer_pos.top-$t.dim_pointer.marginTop)<0&&(Kt=$t.layer_pos.top-$t.window_top,$t.push_top=Math.min(Kt,-Dt),$t.layer_pos.top=$t.layer_pos.top-$t.push_top),(Dt=nt-Lt-$t.dim_pointer.marginBottom)<0&&(Kt=$t.window_bottom-nt,$t.push_bottom=Math.min(Kt,-Dt),$t.layer_pos.top=$t.layer_pos.top+$t.push_bottom)}this._onPosition&&"function"==typeof this._onPosition&&this._onPosition(this,$t),$t.layer_pos.estate=$t.layer_pos.width*$t.layer_pos.height,$t.layer_pos.aspect_ratio=($t.layer_pos.width||1)/($t.layer_pos.height||1),$t.dim_layer.aspect_ratio=($t.dim_layer.borderBoxWidth||1)/($t.dim_layer.borderBoxHeight||1),ee=z.length-v.util.idxInArray(wt,z),te===wt&&(ee=z.length+1),$t.ranking=10*ee+1-Math.abs($t.layer_pos.aspect_ratio-$t.dim_layer.aspect_ratio)+$t.layer_pos.estate}for(wt in T=[],Qt)$t=Qt[wt],T.push(wt);if(0===T.length)return this.hide(),void console.warn("Layer.position","No available placements found.");for(T.sort((function(A,z){var L;return L=function(v){return Qt[v].ranking},v.util.compareIndex(L(A),L(z))})),T.reverse(),Yt=this.__currentPlacement,L.call(T,Yt)<0&&(this.__currentPlacement=T[0]),(null!=A?A.hasModifierKey():void 0)&&(console.debug("Layer.position",this,this.opts),console.debug("layer",P),console.debug("element",Y),console.debug("pointer",q),console.debug("window",F),console.debug("placements",this.__currentPlacement,Qt),ie=this,Gt=function(A){var z,L,T,k,x;if(ie.__removeDebugDivs(),z=Qt[A],console.info("Layer: Placement",A,z),ie.__dbg_div1=v.dom.element("DIV"),ie.__dbg_div2=v.dom.element("DIV"),ie.__dbg_div3=v.dom.element("DIV"),T={position:"absolute",zIndex:2,border:"2px solid #ff0032",backgroundColor:"rgba(255, 0, 0, 0.4)",top:z.top,left:z.left,width:z.width,height:z.height},v.dom.setStyle(ie.__dbg_div1,T),k={position:"absolute",zIndex:2,border:"2px solid #00ff32",backgroundColor:"rgba(0, 255, 0, 0.4)",top:z.layer_pos.top,left:z.layer_pos.left,width:z.layer_pos.width,height:z.layer_pos.height,alignItems:"center",justifyContent:"center",fontSize:40,color:"rgb(0,255,50)"},(L=v.dom.element("SPAN")).textContent=A,ie.__dbg_div2.appendChild(L),v.dom.setStyle(ie.__dbg_div2,k),x={position:"absolute",zIndex:2,border:"2px solid #0032ff",backgroundColor:"rgba(0, 0, 255, 0.4)",top:z.pointer_pos.top,left:z.pointer_pos.left,width:z.pointer_pos.width,height:z.pointer_pos.height},v.dom.setStyle(ie.__dbg_div3,x),ie.__layer_root.DOM.appendChild(ie.__dbg_div1),ie.__layer_root.DOM.appendChild(ie.__dbg_div2),ie.__pointer)return ie.__layer_root.DOM.appendChild(ie.__dbg_div3)},S=0,dt=v.Events.listen({node:document,type:"keyup",call:function(v){return function(A,z){var L;if(32===A.keyCode())for(;;){if((S+=1)===v.knownPlacements.length)return v.__removeDebugDivs(),void dt.destroy();if(L=v.knownPlacements[S],Qt[L])return void Gt(L);console.warn("Placement",L,"is unavailable.")}}}(this)})),($t=Qt[this.__currentPlacement]).layer_pos.width<10||$t.layer_pos.height,ft=this._element&&this._use_element_width_as_min_width?Y.borderBoxWidth:void 0,v.dom.setAttribute(this.__layer_root.DOM,"cui-placement",wt),v.dom.setAttribute(this.__layer_root.DOM,"cui-fill-space",this.__fill_space),Wt={top:$t.layer_pos.top,left:$t.layer_pos.left,minWidth:ft,margin:0},P.computedStyle.maxWidth&&"none"!==P.computedStyle.maxWidth||(Wt.maxWidth=$t.width+$t.overlap_width),P.computedStyle.maxHeight&&"none"!==P.computedStyle.maxHeight||(Wt.maxHeight=$t.height+$t.overlap_height),"c"===wt||((null!=(It=this.__layer_root.DOM.previousElementSibling)?It.hasAttribute("cui-layer-fixed"):void 0)||!1)?(this.__layer_root.DOM.setAttribute("cui-layer-fixed",""),Wt.top=$t.layer_pos.top,Wt.left=$t.layer_pos.left):(this.__layer_root.DOM.removeAttribute("cui-layer-fixed"),jt={top:x,left:k,bottom:0,right:0},E.isPositioned&&(jt.top-=E.marginTop+E.borderTopWidth,jt.left-=E.marginLeft+E.borderLeftWidth,jt.bottom-=E.marginBottom+E.borderBottomWidth,jt.right-=E.marginRight+E.borderRightWidth),v.dom.setStyle(this.__layer_root.DOM,jt)),Wt.width=Math.ceil($t.layer_pos.width),Wt.height=Math.ceil($t.layer_pos.height),v.browser.ie&&(Zt=this.__layer_root.DOM.previousElementSibling,v.dom.remove(this.__layer_root)),v.dom.setStyle(this.__layer.DOM,Wt),this.__pointer&&($t.dim_pointer?(v.dom.setStyle(this.__pointer,{top:$t.pointer_pos.top,left:$t.pointer_pos.left,margin:0}),v.dom.addClass(this.__pointer,V($t.pointer_pos.direction)),v.dom.addClass(this.__layer,"has-"+V($t.pointer_pos.direction))):v.dom.setStyle(this.__pointer,{display:"none"})),this.__backdrop_crop&&(v.dom.setStyle(this.__backdrop_crop,{top:$t.layer_pos.top,left:$t.layer_pos.left,width:$t.layer_pos.width,height:$t.layer_pos.height}),v.dom.setStyle(this.__backdrop_crop.firstChild,{width:F.width,height:F.height,top:-$t.layer_pos.top,left:-$t.layer_pos.left})),v.browser.ie&&v.dom.insertAfter(Zt,this.__layer_root.DOM),Mt=0,ht=(Pt=v.dom.matchSelector(this.__layer.DOM,"*")).length;Mt .cui-layer-root")).length,L=z=0,k=T.length;z0||(this.__focused_on_show=!1),(this.__focused_on_show||this.forceFocusOnShow())&&this.DOM.focus(),this},Layer.prototype.forceFocusOnShow=function(){return!1},Layer.prototype.focusOnHide=function(A){var z;return this.__element?((A===v.KeyboardEvent||this.__focused_on_show)&&null!=(z=v.dom.findElement(this.__element,"[tabindex]"))&&z.focus(),this):this},Layer.prototype.getElement=function(){return this.__element},Layer.prototype.isShown=function(){return this.__shown},Layer.prototype.destroy=function(){var A,z,L;return this.__shown&&this.hide(),Layer.__super__.destroy.call(this),null!=(A=this.__layer)&&A.destroy(),null!=(z=this.__layer_root)&&z.destroy(),this.__layer=null,this.__layer_root=null,v.dom.remove(this.__pointer),this.__pointer=null,null!=(L=this.__backdrop)&&L.destroy(),this.__backdrop=null},Layer.prototype.setFillSpace=function(A){return v.util.assert(L.call(Layer.FILL_SPACE_CHECK_ARRAY,A)>=0,"Layer.setFillSpace","Parameter fillSpace should be: "+Layer.FILL_SPACE_CHECK_ARRAY.join(""),{fillSpace:A}),this.__fill_space=A,this.position(),this},Layer}(v.DOMElement),v.ready((function(){return v.Events.listen({type:["mousedown","touchend"],capture:!0,node:document.body,call:function(A,z){var L,T,k,x,S,E;for(S=v.dom.find("body > .cui-layer-root, body > .cui-pane-fill-screen-is-on, body > .cui-layer-prevent-click-thru"),E=A.getTarget(),T=S.length-1;T>=0;T+=-1){if(x=S[T],!v.dom.hasClass(x,"cui-layer-backdrop-policy-click-thru"))return;if(v.dom.hasClass(x,"cui-layer-sidebar"))return;if(v.dom.closest(E,x))return;(L=(k=v.dom.data(v.dom.children(x,".cui-layer")[0],"element")).getElement())&&v.dom.closest(A.getTarget(),L)&&v.Events.listen({node:document.documentElement,type:["dblclick","click"],capture:!0,only_once:!0,call:function(v){return v.stop()}}),A.cui_layer_closed=!0,k.hide(A)}}}),v.Events.listen({type:["keyup"],node:document.body,call:function(A){var z,L,T,k;if(27===A.keyCode()&&!v.globalDrag&&(L=(T=v.dom.find("body > .cui-layer-root > .cui-layer:not(.cui-tooltip)"))[T.length-1])&&((k=A.getTarget())===L||k===document.body))return z=v.dom.data(L,"element"),A.stopImmediatePropagation(),A.preventDefault(),z.isKeyboardCancellable(A)?(z.doCancel(A),!1):void 0}})}))}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n
    \n
    \n
    \n\n'},function(v,A,z){(function(v){var A={}.hasOwnProperty,L=[].slice;v.Template.loadTemplateText(z(62)),v.DataField=function(z){function DataField(A){var z,L;DataField.__super__.constructor.call(this,A),v.util.assertImplements(this,["render"]),this._name&&v.util.assertImplements(this,["getDefaultValue"]),this.__checkChangedValue=void 0,this.initTemplate(),this.addClass("cui-data-field"),this.maximizeAddClasses(),v.Events.listen({type:"data-changed",node:this.DOM,call:(L=this,function(v,A){L.onDataChanged(v,A)})}),this.getName()&&this.DOM.setAttribute("cui-data-field-name",this.getName()),this.init(),this._data&&!v.util.isFunction(this._data)&&this.setData(this._data),this.__initDisabled(),this._hidden&&this.hide(),this._tooltip&&(this._tooltip.text||this._tooltip.content)&&((z=v.util.copyObject(this._tooltip)).element=this.DOM,this.__tooltip=new v.Tooltip(z)),this.__opacity=1,"function"==typeof this._onInit&&this._onInit(this)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(DataField,z),DataField.changed_marker_css_class="cui-data-field-changed-marker",DataField.defaults={undo_and_changed_support:!1},DataField.prototype.onDataChanged=function(A,z){if(null!=z?z.element:void 0)return"function"==typeof this._onDataChanged?this._onDataChanged(this.getData(),z.element,A,z):void 0;console.warn(v.util.getObjectClass(this)+"[DataField].listen[data-changed]: received event with element not set.",A,z,this)},DataField.prototype.initOpts=function(){return DataField.__super__.initOpts.call(this),this.addOpts({name:this.getNameOpt(),maximize:{check:Boolean},maximize_horizontal:{check:Boolean,default:!1},maximize_vertical:{check:Boolean,default:!1},padded:{check:Boolean,default:!1},data:{check:function(A){return v.util.isFunction(null!=A?A.hasOwnProperty:void 0)||v.util.isFunction(A)}},data_not_for_others:{default:!1,check:Boolean},disabled:{default:!1,check:function(A){return v.util.isBoolean(A)||v.util.isFunction(A)}},disabled_depends_on_data:{check:Function},tooltip:{check:"PlainObject"},hidden:{check:Boolean},form:{},undo_and_changed_support:{check:Boolean},undo_support:{default:v.DataField.defaults.undo_and_changed_support,check:Boolean},mark_changed:{default:v.DataField.defaults.undo_and_changed_support,check:Boolean},check_changed:{default:v.DataField.defaults.undo_and_changed_support,check:Boolean},onDataChanged:{check:Function},onDataInit:{check:Function},onInit:{check:Function},onRender:{check:Function},render_as_block:{check:Boolean}})},DataField.prototype.readOpts=function(){var A,z,L,T;if(this.opts.hasOwnProperty("undo_and_changed_support"))for(A=0,L=(T=["undo_support","check_changed","mark_changed"]).length;A")+"]}"},DataField.prototype.reload=function(){return this.remove(),this.render(),this.displayValue(),"function"==typeof this._onRender&&this._onRender(this),this},DataField.prototype.remove=function(){return this.callOnOthers("remove"),this.isDestroyed()||this.empty(),this.__isRendered=!1},DataField.prototype.getNameOpt=function(){return{check:String}},DataField.prototype.registerLabel=function(v){var A;(A=this.getUniqueIdForLabel())&&v.setAttribute("for",A)},DataField.prototype.getLabel=function(){return this._label},DataField.prototype.getMaximizeHorizontal=function(){return this.__maximize_horizontal},DataField.prototype.setForm=function(A){return v.util.assertImplements(A,["getFieldsByName","getFieldByIdx","getData","getFields"]),this.__form=A,this.getForm().getFormPath?(this.__form.getMaximizeHorizontal()&&!1!==this.getOpt("maximize_horizontal")&&this.addClass("cui-maximize-horizontal"),this):this},DataField.prototype.getFormPath=function(A,z,L){var T;return null==A&&(A=!1),null==z&&(z=[]),null==L&&(L=0),v.util.assert(L<100,"CUI.DataField.getPath","Recursion detected."),(null!=(T=this.getForm())?T.getFormPath:void 0)&&this.getForm().getFormPath(!0,z,L+1),A&&z.push(this),z},DataField.prototype.getForm=function(){return this.__form},DataField.prototype.getOtherField=function(v){var A,z;return null!=(A=this.__form)&&null!=(z=A.getFieldsByName(v))?z[0]:void 0},DataField.prototype.getRootForm=function(){return this.__form?this.__form.getRootForm():this instanceof v.Form?this:null},DataField.prototype.__initDisabled=function(){this._disabled&&(!0===this._disabled||this._disabled.call(this,this))&&this.disable()},DataField.prototype.enable=function(){return this.removeClass("cui-data-field-disabled"),this.callOnOthers("enable"),this},DataField.prototype.disable=function(){return this.addClass("cui-data-field-disabled"),this.callOnOthers("disable"),this},DataField.prototype.isDisabled=function(){return this.hasClass("cui-data-field-disabled")},DataField.prototype.isHidden=function(){return this.hasClass("cui-data-field-hidden")},DataField.prototype.isShown=function(){return!this.isHidden()},DataField.prototype.updateData=function(A){return v.util.isFunction(this._data)?this.__data=this._data.call(this,A,this):this.__data=A,this.displayValue()},DataField.prototype.unsetData=function(){delete this.__data,this.setDataOnOthers()&&this.callOnOthers("unsetData")},DataField.prototype.setData=function(A,z){var L;if(null==z&&(z=!0),!this.__data||!this._data||v.util.isFunction(this._data))return v.util.assert(!this.__data,this+".setData","data is already set.",{opts:this.opts,data:this.__data}),v.util.isFunction(this._data)?this.__data=this._data.call(this,A,this):this.__data=A,v.util.assert(v.util.isPlainObject(this.__data)||(null!=(L=this.__data)&&"function"==typeof L.hasOwnProperty?L.hasOwnProperty(this.getName()):void 0),this+".setData",'data needs to be PlainObject or have a property "'+this.getName()+'".',{data:A,opts:this.opts}),this.setDataOnOthers()&&this.callOnOthers("setData",this.__data,z),z&&this.initData(),this},DataField.prototype.setDataOnOthers=function(){return!this._data_not_for_others},DataField.prototype.hide=function(A){return null==A&&(A=!1),this.addClass("cui-data-field-hidden"),this.callOnOthers("hide"),A&&v.Events.trigger({type:"form-check-row-visibility",node:this.DOM,info:{element:this}}),this},DataField.prototype.show=function(A){return null==A&&(A=!1),this.removeClass("cui-data-field-hidden"),this.callOnOthers("show"),A&&v.Events.trigger({type:"form-check-row-visibility",node:this.DOM,info:{element:this}}),this},DataField.prototype.isRendered=function(){return this.__isRendered},DataField.prototype.render=function(){return v.util.assert(!this.__isRendered,this.__cls+".render","Cannot be called when already rendered.",{opts:this.opts,dataField:this}),this.__isRendered=!0,this.callOnOthers("render"),this.isDisabled()&&this.disable(),this.isHidden()&&this.hide(!0),"function"==typeof this._onRender&&this._onRender(this),this},DataField.prototype.displayValue=function(){return v.util.assert(!this.isDestroyed(),this.__cls+".displayValue","DataField already destroyed, cannot display value.",{data_field:this}),v.util.assert(this.__isRendered,this.__cls+".displayValue","not rendered yet, cannot display.",{opts:this.opts,data:this.__data}),this.checkChanged(),this.callOnOthers("displayValue")},DataField.prototype.start=function(){return v.util.assert(!this.__isRendered,this.__cls+".start","Cannot be called when already rendered.",{opts:this.opts,dataField:this}),this.__initDisabled(),this.render(),this.displayValue(),this},DataField.prototype.getAllDataFields=function(v){return null==v&&(v=!1),this.getDataFields(!0)},DataField.prototype.getDataFields=function(v,A){return null==v&&(v=!1),null==A&&(A=[]),(this.isDataField()||v)&&A.push(this),this.callOnOthers("getDataFields",v,A),A},DataField.prototype.renderAsBlock=function(){return!!this._render_as_block},DataField.prototype.isDataField=function(){return this.hasData()},DataField.prototype.callOnOthers=function(){var A,z,T,k,x,S;for(T=arguments[0],A=2<=arguments.length?L.call(arguments,1):[],k=0,x=(S=this.getFields?this.getFields(T).slice(0):[]).length;k-1||(k[x]=E):S=E;for(x in L)E=L[x],k.hasOwnProperty(x)||(k[x]=E);return v.util.assert(v.util.isFunction(S),"CUI.DataField.new",'type is unknown: "'+S+'".',{field:A}),T=new S(k),v.util.assert(T instanceof v.DataField,"CUI.DataField.new","field.type needs to be of class DataField, but is "+v.util.getObjectClass(T)+".",{field:A}),T},DataField}(v.DOMElement),v.Events.registerEvent({type:"data-changed",bubble:!0})}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n'},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.CheckValueError=function(v){function CheckValueError(){return CheckValueError.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(CheckValueError,window.Error),CheckValueError}()}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.DataFieldInput=function(z){function DataFieldInput(A){DataFieldInput.__super__.constructor.call(this,A),v.dom.setAttributeMap(this.DOM,this._attr),this.addClass("cui-data-field-input")}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(DataFieldInput,z),DataFieldInput.prototype.initOpts=function(){return DataFieldInput.__super__.initOpts.call(this),this.addOpts({group:{check:String},attr:{default:{},check:"PlainObject"}})},DataFieldInput.prototype.getGroup=function(){return this._group},DataFieldInput.prototype.isResizable=function(){return!0},DataFieldInput}(v.DataField)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Template.loadTemplateText(z(66)),v.Template.loadTemplateText(z(67)),v.Button=function(z){function Button(A){var z,L,T,k,x,S,E,Y,P,q,F,H,X,V,U;if(Button.__super__.constructor.call(this,A),this._tooltip&&(this._tooltip.text||this._tooltip.content)&&(this.__tooltipOpts=this._tooltip),this.__has_left=!0,this.__has_right=!0,this.__has_center=!0,X=this.getTemplateName(),this.__box=new v.Template({name:X,map:{left:this.__has_left?".cui-button-left":void 0,center:this.__has_center?".cui-button-center":void 0,visual:v.__ng__?".cui-button-visual":void 0,right:this.__has_right?".cui-button-right":void 0}}),this.registerTemplate(this.__box),this.__active=null,this.__disabled=!1,this.__loading=!1,this.__hidden=!1,this.__txt=null,this.addClass("cui-button-button"),v.util.isString(null!=(S=this.__tooltipOpts)?S.text:void 0)?(this.setAria("label",null!=(E=this.__tooltipOpts)?E.text:void 0),this.__hasAriaLabel=!0):this.__hasAriaLabel=!1,v.dom.setAttribute(this.DOM,"tabindex",this._tabindex),(null!=(Y=this._attr)?Y.role:void 0)||v.dom.setAttribute(this.DOM,"role",this._role),this._left&&!0!==this._left?this.append(this._left,"left"):(this._icon?(v.util.assert(v.util.isUndef(this._icon_left),"new "+this.__cls,"opts.icon conflicts with opts.icon_left",{opts:this.opts}),z=this._icon):z=this._icon_left,z&&(v.util.assert(!this._icon_active&&!this._icon_inactive,"new CUI.Button","opts.icon_active or opts.icon_inactive cannot be set together with opts.icon or opts.icon_left",{opts:this.opts}),this.setIcon(z))),this._right?!0!==this._right&&this.append(this._right,"right"):this._icon_right?this.setIconRight(this._icon_right):this._menu&&!1!==this._icon_right&&(this.addClass("cui-button--has-caret"),this._menu_parent?this.setIconRight(v.defaults.class.Button.defaults.arrow_right):this.setIconRight(v.defaults.class.Button.defaults.arrow_down)),this.setSize(this._size),this._appearance&&this.addClass("cui-button-appearance-"+this._appearance),this._primary&&this.addClass("cui-button--primary"),this._secondary&&!this._primary&&this.addClass("cui-button--secondary"),this._class&&this.addClass(this._class),this._center?this.append(this._center,"center"):this._text&&this.setText(this._text),this._disabled&&(!0===this._disabled||this._disabled.call(this,this))&&this.disable(),this._loading&&(!0===this._loading||this._loading.call(this,this))&&this.setLoading(!0),this._hidden&&(!0===this._hidden||this._hidden.call(this,this))&&this.hide(),!0===this._active?this.activate({initial_activate:!0}):!1===this._active||this._switch?this.deactivate({initial_activate:!0}):this.__setState(),this.__radio_allow_null=this._radio_allow_null,this._radio?(v.util.assert(v.util.isUndef(this._switch),"new CUI.Button","opts.switch conflicts with opts.radio.",{opts:this.opts}),!0===this._radio?this.__radio="radio--"+this.getUniqueId():this.__radio=this._radio):v.util.isNull(this._switch)||(this.__radio="switch--"+this.getUniqueId(),this.__radio_allow_null=!0),this.__radio&&(v.util.assert(!(null!=(P=this._attr)?P.radio:void 0),"new CUI.Button","opts.radio conflicts with opts.attr.radio",{opts:this.opts}),v.dom.setAttribute(this.DOM,"radio",this.__radio)),this.setGroup(this._group),this._menu){for(T in this.__menu_opts={},L={},q=this._menu)switch(V=q[T],T){case"onShow":case"onHide":continue;case"class":case"backdrop":case"onPosition":case"placement":case"placements":case"pointer":this.__menu_opts[T]=V;break;default:L[T]=V}v.util.isEmpty(this._class)||(this.__menu_opts.class?this.__menu_opts.class+=" "+this._class:this.__menu_opts.class=this._class),this._menu.itemList?this.__menu_opts.itemList=this._menu.itemList:this.__menu_opts.itemList=L,this.__menu_opts.element=this,this.__menu_opts.hasOwnProperty("use_element_width_as_min_width")||this._menu_parent||(this.__menu_opts.use_element_width_as_min_width=!0),this.__menu_opts.onHide=(U=this,function(){var v;return"function"==typeof(v=U._menu).onHide?v.onHide():void 0}),this.__menu_opts.onShow=function(v){return function(){var A;return"function"==typeof(A=v._menu).onShow?A.onShow():void 0}}(this),this.__menu_opts.hasOwnProperty("backdrop")||(this.__menu_opts.backdrop={policy:"click-thru"}),!this.__menu_opts.backdrop.hasOwnProperty("blur")&&(null!=(F=this._menu_parent)&&null!=(H=F.getOpt("backdrop"))?H.blur:void 0)&&(this._menu_on_hover?this.__menu_opts.backdrop={policy:"click-thru",blur:!0}:this.__menu_opts.backdrop.blur=!0),this._menu_parent&&(this.__menu_opts.parent_menu=this._menu_parent)}v.Events.listen({type:"keydown",node:this.DOM,capture:!0,call:function(A){return function(z){var L,T,k,x;if(!z.hasModifierKey()){if(13===(k=z.keyCode())||32===k)return A.onClickAction(z),void z.stop();if(27===z.keyCode())return A.DOM.blur(),void z.stop();switch(L=null,x=function(){return L=v.dom.findNextVisibleElement(A.DOM,"[tabindex]")},T=function(){return L=v.dom.findPreviousVisibleElement(A.DOM,"[tabindex]")},z.keyCode()){case 39:case 40:x();break;case 37:T();break;case 38:T()}L&&(L.focus(),z.stop())}}}(this)}),v.Events.listen({type:v.Button.clickTypesPrevent[this._click_type],node:this.DOM,call:function(v){v.preventDefault()}}),v.Events.listen({type:v.Button.clickTypes[this._click_type],node:this.DOM,call:function(A){return function(z){v.globalDrag||(0===z.getButton()||z.getType().startsWith("touch"))&&(z.stopPropagation(),A.onClickAction(z))}}(this)}),this._menu_on_hover&&(v.Button.menu_timeout=null,x=function(){if(v.Button.menu_timeout)return v.clearTimeout(v.Button.menu_timeout),v.Button.menu_timeout=null},k=function(A){return function(z,L){return null==L&&(L=700),x(),v.Button.menu_timeout=v.setTimeout({ms:L,call:function(){return A.getMenu().hide(z)}})}}(this)),(this._menu_on_hover||this.__tooltipOpts||this._onMouseenter)&&v.Events.listen({type:"mouseenter",node:this.DOM,call:function(A){return function(z){var L,T;v.globalDrag||("function"==typeof A._onMouseenter&&A._onMouseenter(z),z.isImmediatePropagationStopped()||(A.__tooltipOpts&&(A.__initTooltip(),A.getTooltip().showTimeout().start()),A._menu_on_hover&&(L=A.getMenu(),x(),!A.__disabled&&L.hasItems(z)&&((T=v.dom.data(v.dom.find(".cui-button--hover-menu")[0],"element"))&&T!==L&&T.hide(z),v.dom.addClass(L.DOM,"cui-button--hover-menu"),v.Events.ignore({instance:A,node:L}),v.Events.listen({type:"mouseenter",node:L,instance:A,only_once:!0,call:function(){return x()}}),v.Events.listen({type:"mouseleave",node:L,instance:A,only_once:!0,call:function(){return k(z)}}),L.show(z)))))}}(this)}),v.Events.listen({type:"mouseleave",node:this.DOM,call:function(A){return function(z){v.globalDrag||("function"==typeof A._onMouseleave&&A._onMouseleave(z),A._menu_on_hover&&k(z,100))}}(this)})}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Button,z),Button.defaults={confirm_ok:"Ok",confirm_icon:"question",confirm_cancel:"Cancel",confirm_title:"Confirmation",disabled_css_class:"cui-disabled",loading_css_class:"cui-loading",active_css_class:"cui-active",arrow_down:"fa-angle-down",arrow_right:"fa-angle-right"},Button.prototype.setSize=function(v){var A,z,L,T,k,x,S;for(S=[],z=0,T=(x=this.DOM.classList).length;z0))return[];for(T=S[S.length-1],Y=[],k=0,x=(E=v.dom.matchSelector(T,".cui-button["+A+'="'+z+'"]')).length;k\n
    \n\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n'},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n\t
    \n\t\t
    \n\t
    \n
    \n
    \n\t
    \n\t\t
    \n\t
    \n
    \n
    \n\t
    \n\t\t
    \n\t
    \n
    \n
    \n\t
    \n\t\t
    \n\t
    \n
    \n
    \n\t
    \n\t\t
    \n\t
    \n
    \n'},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Icon=function(z){function Icon(A){var z,L;Icon.__super__.constructor.call(this,A),L="",z="",this._icon&&(z||(z=v.Icon.icon_map[this._icon]),z||(z=this._icon),z.startsWith("svg-")&&(L=z,z="")),v.util.isEmpty(this._class)||(z+=" "+this._class),this.DOM=L?v.dom.htmlToNodes('')[0]:v.dom.element("I",{class:"fa "+z}),this._tooltip&&(this._tooltip.element=this.DOM,new v.Tooltip(this._tooltip))}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Icon,z),Icon.prototype.initOpts=function(){return Icon.__super__.initOpts.call(this),this.addOpts({class:{check:String},icon:{check:String},fixed_width:{check:Boolean},tooltip:{check:"PlainObject"}})},Icon.prototype.copy=function(){var A,z;return A=Icon.__super__.copy.call(this),z=v.dom.getStyle(this),v.dom.setStyle(A,z),A},Icon.prototype.hide=function(){return v.dom.hideElement(this.DOM)},Icon.prototype.show=function(){return v.dom.showElement(this.DOM)},Icon.icon_map={audio:"fa-music",bolt:"fa-bolt",calendar:"fa-calendar-plus-o",camera:"fa-camera",check:"fa-check",clock:"fa-clock-o",close:"svg-close",cloud:"fa-cloud",copy:"fa-files-o",crop:"fa-crop",dive:"fa-angle-right",down:"fa-caret-down",download:"fa-download",east:"fa-angle-right",edit:"fa-pencil",ellipsis_h:"fa-ellipsis-h",ellipsis_v:"fa-ellipsis-v",email:"fa-envelope-o",envelope_active:"fa-envelope",envelope:"fa-envelope-o",expert_search:"fa-list-ul",export:"fa-download",external_link:"svg-external-link",failed:"fa-warning",file_text:"fa-file-text-o",file_text_active:"fa-file-text",file:"fa-file",filter:"fa-filter",folder_shared_upload:"svg-folder-shared-upload",folder_shared:"svg-folder-shared",folder_upload:"svg-folder-upload",folder:"svg-folder",fullscreen:"fa-arrows-alt",heart:"fa-heart",help:"fa-question",image:"fa-picture-o",info_circle:"svg-info-circle",info_circle_ng:"svg-info-circle-ng",info:"fa-info-circle",left:"fa-angle-left",legal:"fa-legal",list:"fa-question",menu:"fa-bars",minus:"fa-minus",no_right:"fa-slack",north:"fa-angle-up",play:"fa-play",plus:"fa-plus",print:"fa-print",question:"fa-question",refresh:"fa-refresh",remove:"svg-close",required:"fa-bullhorn",reset:"svg-reset",resize_full:"fa-expand",resize_small:"fa-compress",right:"fa-angle-right",rotate_horizontal:"fa-arrows-h",rotate_left:"fa-rotate-left",rotate_right:"fa-rotate-right",rotate_vertical:"fa-arrows-v",save:"fa-floppy-o",search:"fa-search",settings:"fa-cog",share:"fa-share",show:"fa-question",sliders:"fa-sliders",south:"fa-angle-down",spinner:"svg-spinner cui-spin-stepped",start:"fa-play",stop:"fa-stop",trash:"svg-trash",up:"fa-caret-up",upload:"fa-upload",user:"fa-user",warning:"fa-warning",west:"fa-angle-left",zip:"fa fa-file-archive-o",zoom_in:"fa-search-plus",zoom_out:"fa-search-minus"},Icon}(v.Element),v.proxyMethods(v.Icon,v.Button,["hide","show","isShown","isHidden"])}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Template.loadTemplateText(z(70)),v.Template.loadTemplateText(z(71)),v.ButtonHref=function(z){function ButtonHref(A){var z;ButtonHref.__super__.constructor.call(this,A),z={href:this._href,tabindex:"0",target:this._target},this._download&&(z.download="download"),v.dom.setAttributeMap(this.DOM,z)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ButtonHref,z),ButtonHref.prototype.initOpts=function(){return ButtonHref.__super__.initOpts.call(this),this.addOpts({href:{check:String},download:{check:Boolean},target:{check:String}})},ButtonHref.prototype.readOpts=function(){return ButtonHref.__super__.readOpts.call(this),void 0===this._icon_right&&"link"===this._appearance&&(this._icon_right="external_link"),this},ButtonHref.prototype.setHref=function(A){return v.dom.setAttribute(this.DOM,"href",A)},ButtonHref.prototype.getTemplateName=function(){return ButtonHref.__super__.getTemplateName.call(this),v.__ng__?"buttonHref-ng":"buttonHref"},ButtonHref}(v.Button)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n
    \n
    \n
    \n
    \n'},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n\n\t
    \n\t\t
    \n\t\t
    \n\t\t
    \n\t
    \n
    \n'},function(v,A,z){(function(v){var A={}.hasOwnProperty,L=[].slice;v.Template.loadTemplateText(z(73)),v.Buttonbar=function(z){function Buttonbar(A){var z,L,T,k,x,S,E,Y;for(this.__setVisibilityClasses=(z=this.__setVisibilityClasses,L=this,function(){return z.apply(L,arguments)}),Buttonbar.__super__.constructor.call(this,A),this.__box=new v.Template({name:"buttonbar"}),this.registerTemplate(this.__box),this.__buttons=this.__box.DOM,this.__groupDivs={},this._tooltip&&((Y=v.util.copyObject(this._tooltip)).element=this.__buttons,this.__tooltip=new v.Tooltip(Y)),x=k=0,S=(E=this._buttons).length;k0?v.dom.showElement(A):v.dom.hideElement(A);return this.__setVisibilityClasses(this.__buttons)>0?(null!=(L=this.__tooltip)?L.isShown():void 0)&&this.__tooltip.position():v.dom.showElement(this.__buttons),this},Buttonbar.prototype.removeButtons=function(){return v.dom.empty(this.__buttons)},Buttonbar.prototype.prependButton=function(v,A){return null==A&&(A=!0),this.addButton(v,A,!0)},Buttonbar.prototype.addButton=function(A,z,L){var T,k,x,S,E,Y;if(null==z&&(z=!0),null==L&&(L=!1),!v.util.isNull(A))return v.util.isPlainObject(A)&&(A=new v.defaults.class.Button(A)),A instanceof v.Button||A instanceof v.DataFieldInput||A instanceof v.Label?(T=A.DOM,S=A.getGroup()):(null!=A&&null!=(E=A.classList)?E.contains("cui-button"):void 0)?(T=A,S=A.group||null):v.util.assert(!1,"new "+this.__cls,'button must be instance of Button or have class ".cui-button" but is '+v.util.getObjectClass(A)+".",{button:A,opts:this.opts}),v.Events.listen({type:["show","hide"],node:A,call:(Y=this,function(v){return Y.__checkVisibility()})}),x=L?"prepend":"append",S?(this.__groupDivs[S]||(k=v.dom.div("cui-buttonbar-group cui-buttonbar-group-"+S),v.dom.append(this.__buttons,k),this.__groupDivs[S]=k),v.dom[x](this.__groupDivs[S],T)):v.dom[x](this.__buttons,T),z&&this.__checkVisibility(),A},Buttonbar}(v.DOMElement)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n
    \n'},function(v,A,z){(function(v){var A,L={}.hasOwnProperty;A=z(2),v.Template.loadTemplateText(z(75)),v.Label=function(z){function Label(A){var z,L,T,k,x,S,E,Y;if(Label.__super__.constructor.call(this,A),x=this._rotate_90?"label-rotate-90":this._icon||!v.__ng__?"label":"label-no-icon",this.__label=new v.Template({name:x,map_prefix:"cui-label",map:{icon:"label-no-icon"!==x||void 0,content:!0}}),this.registerTemplate(this.__label),this._icon&&!0!==this._icon&&this.setIcon(this._icon),v.util.isEmpty(this._text)?this.setContent(this._content):this.setText(this._text),this._tooltip&&(null==(S=v.util.copyObject(this._tooltip)).element&&(S.element=this.DOM),this.__tooltip=new v.Tooltip(S)),this._multiline&&this.addClass("cui-label-multiline"),this._centered&&this.addClass("cui-label-centered"),this._markdown&&this.addClass("cui-label-markdown"),this._manage_overflow&&this.addClass("cui-label-manage-overflow"),this._padded&&this.addClass("cui-label--padded"),this._size?this.addClass("cui-label-size-"+this._size):v.__ng__||this.addClass("cui-label-size-normal"),this._appearance&&this.addClass("cui-label-appearance-"+this._appearance),this._manage_overflow){for(T in z=!0===this._manage_overflow?v.util.copyObject(v.defaults.class.Label.defaults.manage_overflow,!0):this._manage_overflow,k={class:"cui-label-manage-overflow-button",appearance:"flat",switch:!0,hidden:!0,onActivate:(Y=this,function(){return Y.__label.addClass("cui-label--show-overflow")}),onDeactivate:function(v){return function(){return v.__label.removeClass("cui-label--show-overflow")}}(this)})E=k[T],z.hasOwnProperty(T)&&"class"===T?z[T]+=" "+E:z[T]=E;this.__overflow_button=new v.defaults.class.Button(z),this.append(this.__overflow_button),L=function(v){return function(){return v.checkOverflowSize()}}(this),v.Events.listen({node:this.DOM,type:"viewport-resize",call:function(){return v.scheduleCallback({ms:500,call:L})}})}}return function(v,A){for(var z in A)L.call(A,z)&&(v[z]=A[z]);function ctor(){this.constructor=v}ctor.prototype=A.prototype,v.prototype=new ctor,v.__super__=A.prototype}(Label,z),Label.defaults={manage_overflow:{icon_inactive:"down",icon_active:"up",active_css_class:""}},Label.prototype.initOpts=function(){return Label.__super__.initOpts.call(this),this.addOpts({text:{check:function(A){return v.util.isString(A)||v.util.isNumber(A)}},text_node_func:{check:Function},content:{check:function(A){return v.util.isContent(A)||v.util.isString(A)}},icon:{check:function(A){return A instanceof v.Icon||v.util.isString(A)||!0===A}},size:{check:["mini","normal","big","bigger"]},appearance:{check:["title","secondary","muted","transparent-border"]},markdown:{mandatory:!0,default:!1,check:Boolean},markdown_opts:{check:"PlainObject"},tooltip:{check:"PlainObject"},group:{check:String},rotate_90:{default:!1,check:Boolean},centered:{default:!1,check:Boolean},multiline:{default:!1,check:Boolean},padded:{default:!1,check:Boolean},manage_overflow:{check:function(A){return v.util.isPlainObject(A)||!0===A||!1===A}}})},Label.prototype.readOpts=function(){var z,L,T;if(Label.__super__.readOpts.call(this),v.util.isNull(this._text)&&v.util.isNull(this._content)&&(this._text=""),this._markdown&&(v.util.assert(!this._content,"new "+this.__cls,"opts.markdown cannot be combined with opts.content, use opts.text instead.",{opts:this.opts}),A?this.__markdown=!0:(console.error("new CUI.Label: Could not find markdown renderer 'marked'. Disabling markedown option.",{opts:this.opts}),this.__markdown=!1)),this.__currentText=null,v.util.assert(v.util.xor(v.util.isNull(this._text),v.util.isNull(this._content)),"new CUI.Label","opts.text and opts.content cannot both be set.",{opts:this.opts}),this._markdown_opts)for(z in this.__markdown_opts=v.util.copyObject(v.defaults.marked_opts,!1),L=this._markdown_opts)T=L[z],this.__markdown_opts[z]=T;else this.__markdown_opts=v.defaults.marked_opts;return this._manage_overflow&&v.util.assert(this._multiline,"new CUI.Label","opts.multiline needs to be set for opts.manage_overflow",{opts:this.opts}),this},Label.prototype.setText=function(z,L){return this.__currentText=z,null==L&&(L=this.__markdown),v.util.isEmpty(this.__currentText)?this.empty("content"):L?(this.setContent(v.dom.htmlToNodes(A(this.__currentText,this.__markdown_opts))),this.addClass("cui-label-markdown")):this._text_node_func?(this.setContent(this._text_node_func(this.__currentText)),this.removeClass("cui-label-markdown")):(this.setContent(v.dom.text(this.__currentText)),this.removeClass("cui-label-markdown")),this},Label.prototype.setTextMaxChars=function(A){return v.dom.setAttribute(this.__label.map.content,"data-max-chars",A)},Label.prototype.getText=function(){return this.__currentText},Label.prototype.setContent=function(A){var z;(v.util.isString(A)?this.replace(v.dom.htmlToNodes(A),"content"):this.replace(A,"content"),this._manage_overflow)&&(this.append(this.__overflow_button),v.dom.waitForDOMInsert({node:this.DOM}).done((z=this,function(){return z.checkOverflowSize()})))},Label.prototype.checkOverflowSize=function(){var A,z;if(this.__overflow_button)return this.__label.removeClass("cui-label--show-overflow"),this.__label.addClass("cui-label--measure-overflow"),this.__overflow_button.hide(),A=v.dom.getDimensions(this.__label.map.content),(z=v.dom.getCSSFloatValue(A.computedStyle.maxHeight))>0||(z=A.clientHeight),A.scrollHeight>z?(this.__overflow_button.show(),this.__label.addClass("cui-label--has-overflow-button"),this.__overflow_button.isActive()&&this.__label.addClass("cui-label--show-overflow")):(this.__label.addClass("cui-label--show-overflow"),this.__label.removeClass("cui-label--has-overflow-button")),this.__label.removeClass("cui-label--measure-overflow"),this},Label.prototype.getGroup=function(){return this._group},Label.prototype.setIcon=function(A){var z;return z=A instanceof v.Icon?A:v.util.isEmpty(A)?null:new v.Icon({icon:A}),this.replace(z,"icon"),this},Label.prototype.destroy=function(){var v;return null!=(v=this.__tooltip)&&v.destroy(),Label.__super__.destroy.call(this)},Label.parseLinks=function(A){var z,L,T,k,x,S,E,Y,P,q,F;for(Y=[],F=[],L=function(){0!==F.length&&(Y.push(v.dom.text(F.join(""))),F=[])},x=k=0,S=(q=A.split(/(\n| )/)).length;k\n\t
    \n\t
    \n\n
    \n\t
    \n
    \n
    \n\t
    \n\t\t
    \n\t\t
    \n\t
    \n
    '},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.MultilineLabel=function(v){function MultilineLabel(v){MultilineLabel.__super__.constructor.call(this,v),this.addClass("cui-label")}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(MultilineLabel,v),MultilineLabel.prototype.initOpts=function(){return MultilineLabel.__super__.initOpts.call(this),this.mergeOpt("multiline",{default:!0})},MultilineLabel}(v.Label)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.EmptyLabel=function(v){function EmptyLabel(v){EmptyLabel.__super__.constructor.call(this,v),this.addClass("cui-empty-label")}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(EmptyLabel,v),EmptyLabel.prototype.readOpts=function(){return EmptyLabel.__super__.readOpts.call(this)},EmptyLabel}(v.MultilineLabel)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty,L=[].indexOf||function(v){for(var A=0,z=this.length;A=0||"number"==typeof v&&v>=0&&v<=100},ProgressMeter.prototype.initOpts=function(){var A,z,L,T,k,x;for(ProgressMeter.__super__.initOpts.call(this),this.opts.states||(this.opts.states=Object.keys(v.defaults.ProgressMeter.states)),this.addOpts({states:{check:Array},state:{check:(x=this,function(v){return x.__checkState(v)})},css_property_percent:{default:"width",check:String},size:{default:"auto",mandatory:!0,check:["auto","mini","normal","big"]},appearance:{default:"auto",mandatory:!0,check:["auto","normal","important"]},onUpdate:{check:Function}}),T=[],A=0,z=(L=this.opts.states).length;A=0?("spinning2"===this.__state?this.__meter.replace(this.getAnimatedHourglassIcon(),"icon"):(T=this["_icon_"+this.__state])instanceof v.Icon?this.__meter.replace(T,"icon"):v.util.isEmpty(T)?this.__meter.empty("icon"):this.__meter.replace(new v.Icon({icon:T}),"icon"),this.__meter.DOM.setAttribute("state",this.__state),this.__meter.empty("text"),(z={})[this._css_property_percent]=""):(this.__meter.DOM.setAttribute("state","percent"),this.__meter.empty("icon"),this.__meter.replace(Math.round(this.__state)+"%","text"),(z={})[this._css_property_percent]=this.__state+"%"),v.dom.setStyle(this.__meter.map.fill,z),null!=(x=this._onUpdate)&&x.call(this,this),this},ProgressMeter.prototype.getAnimatedHourglassIcon=function(){var A,z,L,T,k,x;for(z=["fa-hourglass-start","fa-hourglass-half","fa-hourglass-end","fa-hourglass-end","fa-hourglass-o"],A=v.dom.div("cui-hourglass-animation fa-stack"),k=0,x=z.length;k0&&this.setHeader(z)),this._content&&this.setContent(this._content),this.addClass("appearance-"+this._appearance),this.addClass("cui-block-level-"+this._level),this.maximizeAddClasses(),this._padded&&this.addClass("cui-block--padded")}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Block,z),Block.prototype.initOpts=function(){return Block.__super__.initOpts.call(this),this.addOpts({text:{check:String},description:{check:String},header:{check:function(A){return!!(v.util.isContent(A)||v.util.isString(A)||(null!=A?A.DOM:void 0))}},icon:{check:v.Icon},content:{check:function(A){return!!(v.util.isContent(A)||v.util.isString(A)||(null!=A?A.DOM:void 0))}},level:{mandatory:!0,default:1,check:[1,2,3]},appearance:{default:"normal",mandatory:!0,check:["normal","wide","muted"]},padded:{check:Boolean,default:!0},maximize:{check:Boolean},maximize_horizontal:{check:Boolean,default:!1},maximize_vertical:{check:Boolean,default:!1}})},Block.prototype.readOpts=function(){return Block.__super__.readOpts.call(this),v.util.assert(!((this._text||this._icon)&&this._header),"new CUI.Block","opts.text and opts.header are mutually exclusive.",{opts:this.opts}),v.Layout.prototype.maximizeReadOpts.call(this),this},Block.prototype.maximizeAddClasses=function(){return v.Layout.prototype.maximizeAddClasses.call(this)},Block.prototype.getTemplateName=function(){return"block"},Block.prototype.setText=function(A){return v.util.assert(this.__label,"Block.setText","Block must not be called with opts.header and with opts.text or opts.icon.",{opts:this.opts}),this.__label.setText(A)},Block.prototype.setIcon=function(A){return v.util.assert(this.__label,"Block.setText","Block must not be called with opts.header and with opts.text or opts.icon.",{opts:this.opts}),this.__label.setIcon(A)},Block.prototype.setHeader=function(v){return this.__block.replace(v,"header")},Block.prototype.setContent=function(v){return this.__block.replace(v,"content")},Block.prototype.getContent=function(){return this.__block.map.content},Block.prototype.getHeader=function(){return this.__block.map.header},Block.prototype.appendContent=function(v){return this.__block.append(v,"content")},Block}(v.DOMElement)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n\t
    \n\t
    \n
    '},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Template.loadTemplateText(z(83)),v.WaitBlock=function(z){function WaitBlock(A){WaitBlock.__super__.constructor.call(this,A),this._inactive&&v.dom.addClass(this.DOM,"cui-wait-block-inactive"),this._fullscreen&&v.dom.addClass(this.DOM,"cui-wait-block-fullscreen")}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(WaitBlock,z),WaitBlock.prototype.initOpts=function(){return WaitBlock.__super__.initOpts.call(this),this.mergeOpt("icon",{check:function(A){return A instanceof v.Icon||v.util.isString(A)}}),this.removeOpt("header"),this.removeOpt("content"),this.addOpts({inactive:{check:Boolean},element:{check:function(A){return v.util.isElement(A)||v.util.isElement(A.DOM)}},fullscreen:{check:Boolean}})},WaitBlock.prototype.readOpts=function(){return WaitBlock.__super__.readOpts.call(this),v.util.assert(v.util.xor(this._element,this._fullscreen),"new CUI.WaitBlock","opts.element or opt.fullscreen needs to be set.",{opts:this.opts}),this._fullscreen?this.__element=document.body:this._element.DOM?this.__element=this._element.DOM:this.__element=this._element,this._inactive||this.opts.hasOwnProperty("icon")||(this._icon="spinner"),this.__shown=!1,this.__savedPosition=null,this},WaitBlock.prototype.getTemplateName=function(){return"wait-block"},WaitBlock.prototype.show=function(){return v.dom.isPositioned(this.__element)?this.__savedPosition=null:(this.__savedPosition=v.dom.getComputedStyle(this.__element).position,v.dom.setStyleOne(this.__element,"position","relative")),v.dom.addClass(this.__element.DOM,"cui-wait-block-active"),this._fullscreen,v.dom.append(this.__element,this.DOM),this.__shown=!0,this},WaitBlock.prototype.isShown=function(){return!!this.__shown},WaitBlock.prototype.hide=function(){return this.isShown()?(v.dom.remove(this.DOM),null!==this.__savedPosition&&v.dom.setStyleOne(this.__element,"position",this.__savedPosition),v.dom.removeClass(this.__element,"cui-wait-block-active"),this.__shown=!1,this.__savedPosition=null,this):this},WaitBlock.prototype.destroy=function(){return this.hide(),WaitBlock.__super__.destroy.call(this)},WaitBlock}(v.Block)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n\t
    \n\t
    \n\t\t
    \n\t\t
    \n\t
    \n
    '},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Template.loadTemplateText(z(85)),v.BorderLayout=function(z){function BorderLayout(){return BorderLayout.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(BorderLayout,z),BorderLayout.prototype.getName=function(){return"border-layout"},BorderLayout.prototype.getPanes=function(){return["north","west","east","south"]},BorderLayout.prototype.getSupportedPanes=function(){return this.getPanes()},BorderLayout.prototype.getTemplateMap=function(){var v;return(v=BorderLayout.__super__.getTemplateMap.call(this)).row=!0,v},BorderLayout.prototype.__init=function(){var A;return BorderLayout.__super__.__init.call(this),this._absolute&&(v.dom.addClass(this.getLayout().map.row,"cui-absolute"),v.Events.listen({type:"viewport-resize",node:this.getLayout().map.row,call:(A=this,function(z){return z.stopPropagation(),v.Layout.setAbsolute(A.getLayout().map.row)})})),this},BorderLayout}(v.Layout)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n\t
    \n\t
    \n\t
    \n\t\t
    \n\t\t\t
    \n\t\t\t
    \n\t\t\t
    \n\t\t\t
    \n\t\t\t
    \n\t\t
    \n\t
    \n\t
    \n\t
    \n
    \n'},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Console=function(z){function Console(A){Console.__super__.constructor.call(this,A),this.__console=v.dom.element("DIV",{class:"cui-console"}),this.registerDOMElement(this.__console)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Console,z),Console.prototype.initOpts=function(){return Console.__super__.initOpts.call(this),this.addOpts({markdown:{mandatory:!0,default:!0,check:Boolean}})},Console.prototype.clear=function(){return this.__console.innerHTML=""},Console.prototype.log=function(A,z){var L;return null==z&&(z=this._markdown),L=new v.defaults.class.Label({text:A,multiline:!0,markdown:z}),this.__console.appendChild(L.DOM),this.__console.scrollTop=this.__console.scrollHeight},Console}(v.DOMElement)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty,L=[].indexOf||function(v){for(var A=0,z=this.length;A=0?"horizontal-layout-left-center":L.call(v,"right")>=0?"horizontal-layout-center-right":"horizontal-layout-center"},HorizontalLayout.prototype.getMapPrefix=function(){return"cui-horizontal-layout"},HorizontalLayout.prototype.hasFlexHandles=function(){var v,A;return!(!(null!=(v=this._left)?v.flexHandle:void 0)&&!(null!=(A=this._right)?A.flexHandle:void 0))},HorizontalLayout.prototype.getPanes=function(){var v;return this.hasFlexHandles()?["left","right"]:(v=[],this._left&&v.push("left"),this._right&&v.push("right"),v)},HorizontalLayout.prototype.getSupportedPanes=function(){return["left","right"]},HorizontalLayout}(v.Layout)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n\t
    \n\t
    \n\t
    \n\t
    \n\t
    \n
    \n
    \n\t
    \n\t
    \n\t
    \n
    \n
    \n\t
    \n\t
    \n
    \n
    \n\t
    \n\t
    \n
    \n
    \n\t
    \n
    \n\n\n'},function(v,A,z){(function(v){var A={}.hasOwnProperty,L=[].indexOf||function(v){for(var A=0,z=this.length;A=0?"vertical-layout-top-center":L.call(v,"bottom")>=0?"vertical-layout-center-bottom":"vertical-layout-center"},VerticalLayout.prototype.getMapPrefix=function(){return"cui-vertical-layout"},VerticalLayout.prototype.hasFlexHandles=function(){var v,A;return!(!(null!=(v=this._top)?v.flexHandle:void 0)&&!(null!=(A=this._bottom)?A.flexHandle:void 0))},VerticalLayout.prototype.getPanes=function(){var v;return this.hasFlexHandles()?["top","bottom"]:(v=[],this._top&&v.push("top"),this._bottom&&v.push("bottom"),v)},VerticalLayout.prototype.getSupportedPanes=function(){return["top","bottom"]},VerticalLayout}(v.Layout)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n\t
    \n\t
    \n\t
    \n\t
    \n\t
    \n
    \n
    \n\t
    \n\t
    \n\t
    \n
    \n
    \n\t
    \n\t
    \n
    \n
    \n\t
    \n\t
    \n
    \n
    \n\t
    \n
    \n'},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.VerticalList=function(v){function VerticalList(){return VerticalList.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(VerticalList,v),VerticalList.prototype.initOpts=function(){return VerticalList.__super__.initOpts.call(this),this.mergeOpt("maximize",{default:!1}),this.removeOpt("center"),this.addOpts({content:{}})},VerticalList.prototype.readOpts=function(){return VerticalList.__super__.readOpts.call(this),this._center={content:this._content}},VerticalList.prototype.getSupportedPanes=function(){return[]},VerticalList}(v.VerticalLayout)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.HorizontalList=function(v){function HorizontalList(){return HorizontalList.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(HorizontalList,v),HorizontalList.prototype.initOpts=function(){return HorizontalList.__super__.initOpts.call(this),this.mergeOpt("maximize",{default:!1}),this.removeOpt("center"),this.addOpts({content:{}})},HorizontalList.prototype.readOpts=function(){return HorizontalList.__super__.readOpts.call(this),this._center={content:this._content}},HorizontalList.prototype.getSupportedPanes=function(){return[]},HorizontalList}(v.HorizontalLayout)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Toolbar=function(v){function Toolbar(){return Toolbar.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Toolbar,v),Toolbar.prototype.init=function(){return Toolbar.__super__.init.call(this),this.addClass("cui-toolbar")},Toolbar.prototype.initOpts=function(){return Toolbar.__super__.initOpts.call(this),this.removeOpt("maximize"),this.removeOpt("maximize_horizontal"),this.removeOpt("maximize_vertical"),this.addOpts({maximize_horizontal:{default:!0,mandatory:!0,check:Boolean}})},Toolbar.prototype.hasFlexHandles=function(){return!1},Toolbar.prototype.getPanes=function(){return["left","right"]},Toolbar}(v.HorizontalLayout)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Template.loadTemplateText(z(95)),v.Pane=function(z){function Pane(){return Pane.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Pane,z),Pane.defaults={button_tooltip:{text:"Turn fullscreen on / off"}},Pane.prototype.__init=function(){if(Pane.__super__.__init.call(this),this.addClass("cui-pane"),this.__fill_screen_is_on=!1,this._padded)return this.addClass("cui-pane--padded")},Pane.prototype.initOpts=function(){return Pane.__super__.initOpts.call(this),this.addOpts({padded:{check:Boolean,default:!1}})},Pane.prototype.readOpts=function(){return this.initDefaultPanes(),Pane.__super__.readOpts.call(this)},Pane.prototype.hasHeader=function(){return!!this._top},Pane.prototype.hasFooter=function(){return!!this._bottom},Pane.prototype.getFillScreenState=function(){return this.__fill_screen_is_on},Pane.prototype.endFillScreen=function(A){var z,L;if(null==A&&(A=!0),this.getFillScreenState())return this.__fill_screen_is_on=!1,v.util.$elementIsInDOM(this.__placeholder)?(L=this,z=function(){var A;return v.dom.insertBefore(L.__placeholder,L.DOM),(A=v.dom.data(v.dom.parent(L.__placeholder),"element"))instanceof v.Popover&&A.setVisible(!0),v.dom.remove(L.__placeholder),L.__fillscreenTmpl.destroy(),delete L.__fillscreenTmpl,v.Events.trigger({type:"end-fill-screen",node:L.DOM}),v.Events.trigger({type:"viewport-resize",node:L.DOM})},A?(v.Events.wait({type:"transitionend",node:this.__fillscreenTmpl}).always((function(){return z()})),this.__fillscreenTmpl.removeClass("cui-pane-fill-screen-is-on")):z()):(this.__fillscreenTmpl.destroy(),this.__placeholder=null),this},Pane.prototype.startFillScreen=function(){var A,z,L,T,k,x,S,E,Y,P,q,F,H;if(!this.getFillScreenState()){for(document.body.style.setProperty("--layer-sidebar-width",v.dom.getLayerSidebarWidth()+"px"),this.__fillscreenTmpl=new v.Template({name:"pane-fill-screen",map:{inner:!0}}),P=v.dom.getRect(this.DOM),H=v.dom.getDimensions(window),this.__placeholderTmpl=new v.Template({name:"pane-fill-screen-placeholder"}),this.__placeholder=this.__placeholderTmpl.DOM,x=this.__fillscreenTmpl.map.inner,v.dom.append(document.body,this.__fillscreenTmpl.DOM),L=v.dom.getDimensions(this.__fillscreenTmpl.DOM),A={left:(T=v.dom.getDimensions(x)).clientBoundingRect.left-L.clientBoundingRect.left+T.borderLeft+T.paddingLeft,top:T.clientBoundingRect.top-L.clientBoundingRect.top+T.borderTop+T.paddingTop,right:L.clientBoundingRect.right-T.clientBoundingRect.right+T.borderRight+T.paddingRight,bottom:L.clientBoundingRect.bottom-T.clientBoundingRect.bottom+T.borderBottom+T.paddingBottom},F={top:P.top-A.top,left:P.left-A.left,bottom:H.height-P.bottom-A.bottom,right:H.width-P.right-A.right},v.dom.remove(this.__fillscreenTmpl.DOM),v.dom.setStyle(this.__fillscreenTmpl.DOM,F),v.dom.append(document.body,this.__fillscreenTmpl.DOM),v.dom.setStyle(this.__placeholder,{width:v.dom.getDimensions(this.DOM).marginBoxWidth,height:v.dom.getDimensions(this.DOM).marginBoxHeight}),k=0,E=(q=["position","top","left","right","bottom"]).length;k0}},active_idx:{check:"Integer"},appearance:{check:["normal","mini"]},orientation:{check:["vertical","horizontal"],mandatory:!0,default:"horizontal"},onActivate:{check:Function},onDeactivate:{check:Function}})},Tabs.prototype.forceHeader=function(){return!0},Tabs.prototype.forceFooter=function(){return!0},Tabs.prototype.__checkOverflowButton=function(){var A,z;if(this.__maximize_horizontal)return(A=v.dom.getDimensions(this.__header)).scrollWidth>A.clientWidth?(this.__overflowBtn.show(),v.dom.addClass(this.__pane_header.DOM,"cui-tabs-pane-header--overflow"),this.__dragscroll=new v.Dragscroll({element:this.__buttonbar.DOM,scroll_element:this.__header})):(null!=(z=this.__dragscroll)&&z.destroy(),this.__dragscroll=null,this.__overflowBtn.hide(),v.dom.removeClass(this.__pane_header.DOM,"cui-tabs-pane-header--overflow")),this},Tabs.prototype.init=function(){var A,z,L,T,k,x,S;for(Tabs.__super__.init.call(this),this.__tabs_bodies=new v.Template({name:"tabs-bodies"}),v.dom.addClass(this.__pane_header.DOM,"cui-tabs-pane-header"),"mini"===this._appearance&&v.dom.addClass(this.__pane_header.DOM,"cui-tabs-pane-header--mini"),this.removeClass("cui-pane--padded"),this._padded&&this.addClass("cui-tabs--padded"),this.addClass("cui-tabs--"+this._orientation),this.__buttonbar=new v.Buttonbar,"center",this.__pane_header.append(this.__buttonbar,"center"),this.__header=this.__pane_header.center(),v.Events.listen({type:"scroll",node:this.__header,call:(S=this,function(A){var z;return z=v.dom.getDimensions(S.__header),v.dom.setClass(S.__pane_header.DOM,"cui-tabs-pane-header--scroll-at-end",z.horizontalScrollbarAtEnd),v.dom.setClass(S.__pane_header.DOM,"cui-tabs-pane-header--scroll-at-start",z.horizontalScrollbarAtStart)})}),this.__overflowBtn=new v.Button({icon:"ellipsis_h",class:"cui-tab-header-button-overflow",icon_right:!1,size:"mini"===this._appearance?"mini":void 0,tooltip:{text:v.Tabs.defaults.overflow_button_tooltip},menu:{items:function(v){return function(){var A,z,L,T,k;for(A=[],z=function(z){return A.push({text:z.getText(),active:z===v.getActiveTab(),onClick:function(){return z.activate()}})},L=0,T=(k=v.__tabs).length;L-1&&(z=A):z=this.__tabs[A];return z},Tabs.prototype.getActiveTab=function(){return this.__active_tab},Tabs.prototype.activate=function(v){return this.getTab(v).activate(),this},Tabs.prototype.destroy=function(){for(;this.__tabs.length>0;)this.__tabs[0].destroy();return Tabs.__super__.destroy.call(this)},Tabs}(v.SimplePane)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    '},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Modal=function(z){function Modal(A){var z,L,T,k,x;Modal.__super__.constructor.call(this,A),k=v.Pane.getToggleFillScreenButton({tooltip:this._fill_screen_button_tooltip}),this.__addHeaderButton("fill_screen_button",k),x=this,L=function(v){return k.deactivate(),x.doCancel(v,!1,T)},T=this.__addHeaderButton("cancel",{class:"ez5-modal-close-button",icon:"close",tooltip:this._cancel_tooltip||v.Modal.defaults.cancel_tooltip,appearance:"normal",onClick:function(v){return L(v)}}),this.getPane().addClass("cui-pane--window"),this._onToggleFillScreen&&v.Events.listen({type:["start-fill-screen","end-fill-screen"],node:this.getPane(),call:function(v){return function(A){return v._onToggleFillScreen.call(v,A,v)}}(this)}),this._cancel_with_click_on_baskdrop&&this._cancel&&"auto"===this._fill_space&&(z=this.getBackdrop())&&v.Events.listen({type:"click",node:z,call:function(v){return L(v)}})}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Modal,z),Modal.defaults={cancel_tooltip:{text:"Close Dialog"}},Modal.prototype.initOpts=function(){return Modal.__super__.initOpts.call(this),this.mergeOpt("backdrop",{default:{policy:"modal",add_bounce_class:!0,content:null}}),this.addOpts({cancel:{check:Boolean},cancel_action:{default:"destroy",check:["destroy","hide"]},cancel_tooltip:{check:"PlainObject"},cancel_with_click_on_backdrop:{mandatory:!0,default:!0,check:Boolean},onCancel:{check:Function},fill_screen_button:{check:Boolean},fill_screen_button_tooltip:{check:"PlainObject"},onToggleFillScreen:{check:Function}}),this.mergeOpt("placement",{default:"c"})},Modal.prototype.readOpts=function(){return this.opts.cancel&&v.util.isPlainObject(this.opts.pane)&&(this.opts.pane.force_header=!0),Modal.__super__.readOpts.call(this)},Modal.prototype.__addHeaderButton=function(A,z){var L;if(this["_"+A])return L=v.util.isPlainObject(z)?new v.defaults.class.Button(z):z,v.util.assert(L instanceof v.Button,"Modal.__addHeaderButton","Button needs to be instance of Button",{btn:L}),v.util.assert(this.__pane instanceof v.SimplePane,"new "+this.__cls,"opts."+A+" can only be used if opts.pane is instance of SimplePane.",{pane:this.__pane,opts:this.opts}),this.append(L,"header_right"),L},Modal.prototype.__runOnAllButtons=function(A){var z,L,T,k,x;for(T=0,k=(x=v.dom.matchSelector(this.__layer.DOM,".cui-button,.cui-data-field")).length;T0||v.util.isFunction(A)}},footer_left:{},header_right:{},show_inline:{check:function(A){return v.dom.isNode(A)}}}),this.removeOpt("pane")},ConfirmationDialog.prototype.setPane=function(){return ConfirmationDialog.__super__.setPane.call(this,{padded:this._padded,force_header:!0,force_footer:!0})},ConfirmationDialog.prototype.readOpts=function(){return ConfirmationDialog.__super__.readOpts.call(this),this._pane={}},ConfirmationDialog.prototype.show=function(A){return this._show_inline?(v.dom.addClass(this.__layer,"cui-confirmation-dialog--show-inline"),v.dom.addClass(this.__show_inline,"cui-confirmation-dialog--has-show-inline"),v.dom.prepend(this._show_inline,this.__layer),v.Events.trigger({type:"viewport-resize"})):ConfirmationDialog.__super__.show.call(this,A)},ConfirmationDialog.prototype.hide=function(A){return this._show_inline?(v.dom.removeClass(this.__layer,"cui-confirmation-dialog--show-inline"),v.dom.removeClass(this.__show_inline,"cui-confirmation-dialog--has-show-inline"),v.dom.remove(this.__layer),v.Events.trigger({type:"viewport-resize"})):ConfirmationDialog.__super__.hide.call(this,A)},ConfirmationDialog.prototype.init=function(){var A,z,L,T,k,x;for(L in v.util.xor(this._html,v.util.xor(this._content,this._text))||(console.warn(this.__cls+".readOpts","Exactly on opts.content, opts.text, or opts.html needs to be set",{opts:this.opts}),this._text=""),this._title||this.addClass("cui-confirmation-dialog--no-title"),v.util.isEmpty(this._text)?v.util.isEmpty(this._html)?A=this._content:this.__label=A=new v.MultilineLabel({content:this._html}):this.__label=A=new v.MultilineLabel({markdown:this._markdown,markdown_opts:this._markdown_opts,text:this._text,icon:this._text_icon}),v.util.isEmpty(this._title)&&v.util.isNull(this._icon)||(T=new v.Label({text:this._title,icon:this._icon})),k=this.getPane(),x={header_left:T,header_right:this._header_right,content:A,footer_right:this._buttons,footer_left:this._footer_left})(z=x[L])&&k.append(z,L)},ConfirmationDialog.prototype.updateText=function(v){var A;return null!=(A=this.__label)&&A.setText(v),this},ConfirmationDialog.prototype.setText=function(A,z,L){return null==z&&(z=this._markdown),null==L&&(L=this._markdown_opts),this.__label=new v.MultilineLabel({markdown:z,markdown_opts:L,text:A,icon:this._text_icon}),this.setContent(this.__label)},ConfirmationDialog.prototype.getButtons=function(){var A,z,L,T,k,x,S,E;for(S=(E=this.getPane().getPaneAndKey("footer_right"))[0],k=E[1],A=[],T=0,x=(L=v.dom.findElements(S[k](),".cui-button")).length;T=0}})},Toaster.prototype.readOpts=function(){return 0===this.opts.show_ms&&void 0===this.opts.backdrop&&(this.opts.backdrop={policy:"modal"}),Toaster.__super__.readOpts.call(this),this._choices=[]},Toaster.prototype.open=function(){return this.__deferred||(Toaster.__super__.open.call(this),this._show_ms>0&&v.setTimeout({ms:this._show_ms,call:(A=this,function(){return A.hide(),A.__deferred.resolve()})})),this.__deferred.promise();var A},Toaster}(v.ConfirmationChoice),v.toaster=function(A){var z;return null==A&&(A={text:"CUI.toaster"}),(z=new v.Toaster(A)).open(),z}}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Spinner=function(z){function Spinner(){return Spinner.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Spinner,z),Spinner.prototype.initOpts=function(){return Spinner.__super__.initOpts.call(this),this.mergeOpt("text_icon",{default:"spinner"}),this.mergeOpt("show_ms",{default:0}),this.mergeOpt("backdrop",{default:{policy:"modal"}})},Spinner.prototype.open=function(){var A;return Spinner.__super__.open.call(this),this._show_ms>0&&v.setTimeout({ms:this._show_ms,call:(A=this,function(){return A.hide(),A.__deferred.resolve()})}),this.__deferred.promise()},Spinner}(v.Toaster),v.spinner=function(A){var z;return null==A&&(A={text:"CUI.spinner"}),(z=new v.Spinner(A)).open(),z}}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Confirm=function(z){function Confirm(){return Confirm.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Confirm,z),Confirm.prototype.initOpts=function(){return Confirm.__super__.initOpts.call(this),this.removeOpt("choices"),this.mergeOpt("text",{mandatory:!0}),this.addOpts({button_text_ok:{mandatory:!0,default:v.defaults.class.ConfirmationChoice.defaults.ok,check:String},button_text_cancel:{mandatory:!0,default:v.defaults.class.ConfirmationChoice.defaults.cancel,check:String},button_primary:{mandatory:!0,default:"ok",check:["ok","cancel"]}})},Confirm.prototype.readOpts=function(){return Confirm.__super__.readOpts.call(this),this._choices=[{text:this._button_text_cancel,cancel:!0,choice:"cancel",primary:"cancel"===this._button_primary},{text:this._button_text_ok,choice:"ok",primary:"ok"===this._button_primary}]},Confirm}(v.ConfirmationChoice),v.confirm=function(A){return new v.Confirm(A).open()}}).call(this,z(0))},function(v,A,z){(function(v){var bind=function(v,A){return function(){return v.apply(A,arguments)}},A={}.hasOwnProperty;v.Prompt=function(z){function Prompt(){return this.__checkOkBtn=bind(this.__checkOkBtn,this),Prompt.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Prompt,z),Prompt.prototype.initOpts=function(){return Prompt.__super__.initOpts.call(this),this.removeOpt("choices"),this.addOpts({default:{default:"",check:String},placeholder:{check:String},min_length:{mandatory:!0,default:1,check:function(v){return v>=0}}})},Prompt.prototype.readOpts=function(){var A,z;return Prompt.__super__.readOpts.call(this),A=this._text,delete this._text,this.__input=null,this.__data={input:this._default+""},this._content=new v.Form({fields:[{type:v.Output,multiline:!0,markdown:this._markdown,text:A},{type:v.Input,name:"input",placeholder:this._placeholder,data:this.__data,onConstruct:(z=this,function(v){z.__input=v}),onKeyup:function(v){return function(A,z){if(13===z.keyCode())return v.getButtons()[1].onClickAction(z)}}(this),onDataChanged:function(v){return function(){return v.__checkOkBtn()}}(this)}]}).start()},Prompt.prototype.getValue=function(){return this.__input.getValue()},Prompt.prototype.open=function(){var A,z;return this.__checkOkBtn(),A=new v.Deferred,Prompt.__super__.open.call(this).done((z=this,function(v){return A.resolve(z.__data.input)})).fail(A.reject),v.setTimeout({call:function(v){return function(){return v.__input.focus().selectAll()}}(this)}),A.promise()},Prompt.prototype.__checkOkBtn=function(){var v;return v=this.getButtons(),this.__data.input.trim().length>=this._min_length?v[1].enable():v[1].disable()},Prompt}(v.Confirm),v.prompt=function(A){return new v.Prompt(A).open()}}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Popover=function(v){function Popover(){return Popover.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Popover,v),Popover.prototype.initOpts=function(){return Popover.__super__.initOpts.call(this),this.mergeOpt("placement",{default:null}),this.mergeOpt("pointer",{default:"arrow"})},Popover.prototype.readOpts=function(){var v;if(Popover.__super__.readOpts.call(this),!(null!=(v=this.opts.backdrop)?v.policy:void 0))return this._backdrop.policy="click-thru"},Popover.prototype.knownPlacements=["s","e","w","ws","wn","n","se","ne","es","en","nw","sw"],Popover.prototype.forceFocusOnShow=function(){return!1},Popover}(v.Modal)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Tooltip=function(z){function Tooltip(A){var z;(Tooltip.__super__.constructor.call(this,A),v.util.assert(v.util.xor(this._text,this._content),"new "+this.__cls,"One of opts.text or opts.content must be set.",{opts:this.opts}),this.__dummyInst=function(){},this._on_hover)?(!0===this._on_hover||this._on_hover(this))&&(v.dom.addClass(this.__element,"cui-dom-element-has-tooltip-on-hover"),this.showTimeout()):this._on_click&&(v.dom.addClass(this.__element,"cui-dom-element-has-tooltip-on-click"),v.Events.listen({type:"click",instance:this.__dummyInst,node:this.__element,call:(z=this,function(v){v.hasModifierKey()||z.show()})}))}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(Tooltip,z),Tooltip.prototype.initOpts=function(){Tooltip.__super__.initOpts.call(this),this.mergeOpts({element:{mandatory:!0}}),this.addOpts({text:{check:function(A){return v.util.isString(A)||v.util.isFunction(A)}},markdown:{mandatory:!0,default:!1,check:Boolean},content:{check:function(A){return v.util.isString(A)||v.util.isFunction(A)||v.util.isElement(A)||v.util.isArray(A)||v.util.isElement(null!=A?A.DOM:void 0)}},on_click:{mandatory:!0,default:!1,check:Boolean},on_hover:{check:function(A){return v.util.isBoolean(A)||v.util.isFunction(A)}}})},Tooltip.prototype.readOpts=function(){return this.opts.hasOwnProperty("on_hover")||(this.opts.on_hover=!this.opts.on_click),this.opts.on_click&&(this.opts.backdrop||(this.opts.backdrop={}),this.opts.backdrop.policy||(this.opts.backdrop.policy="click")),v.util.isUndef(this.opts.backdrop)&&(this.opts.backdrop=!1),this.opts.pointer="arrow",this.opts.check_for_element=!0,this.opts.placement=this.opts.placement||"n",Tooltip.__super__.readOpts.call(this),v.util.assert(!(this._on_click&&this._on_hover),"new CUI.Tooltip","opts.on_click and opts.on_hover cannot be used together.",{opts:this.opts}),this},Tooltip.current=null,Tooltip.prototype.setElement=function(){},Tooltip.prototype.focusOnHide=function(v){},Tooltip.prototype.focusOnShow=function(v){},Tooltip.prototype.showTimeout=function(){var A,z;return null!=(A=this.__mouseStillEvent)&&A.destroy(),this.__mouseStillEvent=new v.Events.MouseIsStill({ms:this._show_ms,node:this._element,call:(z=this,function(A){return z.show(A),v.Events.listen({type:["click","dblclick","mouseout"],capture:!0,node:z._element,only_once:!0,call:function(A){return v.setTimeout({ms:z._hide_ms,call:function(){return z.hide(A)}})}})})}),this.__mouseStillEvent},Tooltip.prototype.show=function(v){var A;return this.__static?Tooltip.__super__.show.call(this,v):this.fillContent().done((A=this,function(){return Tooltip.__super__.show.call(A,v)})),this},Tooltip.prototype.getElementOpenClass=function(){return null},Tooltip.prototype.fillContent=function(){var A,z,L,T,k;return(A=new v.Deferred).fail((k=this,function(){if(!k.__pane.isDestroyed())return k.__pane.empty("center")})),L=function(L){return function(T){return v.util.isEmpty(T)?A.reject():z(new v.Label({markdown:L._markdown,text:T,multiline:!0}))}}(this),z=function(v){return function(z){return!z||v.__pane.isDestroyed()?A.reject():(v.__pane.replace(z,"center"),A.resolve())}}(this),v.util.isFunction(this._text)?(T=this._text.call(this,this),v.util.isPromise(T)?(T.done((function(v){return L(v)})),T.fail((function(){return A.reject()}))):L(T)):v.util.isFunction(this._content)?(T=this._content.call(this,this),v.util.isPromise(T)?(T.done((function(v){return z(v)})),T.fail((function(v){return A.reject(v)}))):z(T)):v.util.isEmpty(this._text)?z(this._content):L(this._text),v.util.isFunction(this._text)||v.util.isFunction(this._content)?this.__static=!1:this.__static=!0,A.promise()},Tooltip.prototype.preventOverflow=function(){return Tooltip.__super__.preventOverflow.call(this),v.dom.width(this.DOM,this.__layer_dim._css_width)},Tooltip.prototype.resetLayer=function(){return Tooltip.__super__.resetLayer.call(this),v.dom.setStyleOne(this.DOM,"max-width",this.__viewport.width/2)},Tooltip.prototype.destroy=function(){var A;return null!=(A=this.__mouseStillEvent)&&A.destroy(),v.Events.ignore({instance:this.__dummyInst}),Tooltip.__super__.destroy.call(this),v.dom.removeClass(this.__element,"cui-dom-element-has-tooltip-on-hover cui-dom-element-has-tooltip-on-click")},Tooltip}(v.LayerPane)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty,z=[].indexOf||function(v){for(var A=0,z=this.length;A0&&void 0===this._colResize)&&(this.__colResize=!0),this.__colResize&&v.util.assert(this.fixedRowsCount>0,"new CUI.ListView","Cannot enable col resize with no fixed rows.",{opts:this.opts}),this.__maxCols=[],z=L=0,x=(S=this.__cols).length;L=this.fixedColsCount,"new CUI.ListView","maximized columns can only be in the non-fixed side of the ListView.",{opts:this.opts}),this.__maxCols.push(z));for(this.__maximize_horizontal&&0===this.__maxCols.length&&(k=this.__cols.length-1)>=this.fixedColsCount&&(this.__maxCols.push(k),this.__cols[k]="maximize"),this.rowsCount=0,this.colsCount=this.__cols.length,this.listViewCounter=v.ListView.counter++,this.__manualColWidths=[],this.__colspanRows={},this.colsOrder=[],z=T=0,E=this.colsCount;0<=E?TE;z=0<=E?++T:--T)this.colsOrder.push(z);return this.rowsOrder=[],this.__maxRowIdx=-1,this.__resetCellDims(),this.__cells=[],this.__rows=[],this.__lvClass="cui-lv-"+this.listViewCounter,this.__deferredRows=[],this.__isInDOM=!1,this.__doLayoutBound=(Y=this,function(){return Y.__doLayout()}),this.addClass("cui-list-view")},ListView.prototype.initOpts=function(){return ListView.__super__.initOpts.call(this),this.addOpts({colClasses:{check:"Array"},cols:{mandatory:!0,check:"Array"},fixedCols:{default:0,check:"Integer"},fixedRows:{default:0,check:"Integer"},rowMove:{default:!1,check:Boolean},rowMoveFixedRows:{default:0,check:"Integer"},rowMovePlaceholder:{default:!1,check:Boolean},colResize:{check:Boolean},selectableRows:{check:function(v){return!1===v||!0===v||"multiple"===v}},focusable:{check:Boolean,default:!1},onRowMove:{check:Function},onScroll:{check:Function},onColumnResize:{check:Function},header:{deprecated:!0},footer:{deprecated:!0},onSelect:{check:Function},onDeselect:{check:Function}})},ListView.prototype.readOpts=function(){return this.opts.header&&(this.opts.header_center=this.opts.header),this.opts.footer&&(this.opts.footer_left=this.opts.footer),ListView.__super__.readOpts.call(this),this.__selectableRows=this._selectableRows,this},ListView.prototype.destroy=function(){var A;return delete this.colsOrder,delete this.rowsOrder,delete this.__fillRowQ3,this.__isInDOM=null,v.scheduleCallbackCancel({call:this.__doLayoutBound}),null!=(A=this.listViewTemplate)&&A.destroy(),this.__layoutIsStopped=!1,ListView.__super__.destroy.call(this),this},ListView.prototype.getListViewClass=function(){return this.__lvClass},ListView.prototype.getGrid=function(){return this.grid},ListView.prototype.hasResizableColumns=function(){return this.__colResize},ListView.prototype.hasMovableRows=function(){return this._rowMove},ListView.prototype.isInactive=function(){return!!this.__inactive},ListView.prototype.setInactive=function(A,z){var L;return null==z&&(z="inactive"),this.__inactive=!!A,this.grid&&(this.__inactive?(v.dom.addClass(this.grid,z),this.__inactiveWaitBlock=new v.WaitBlock({element:this.grid,inactive:!0}).show()):(null!=(L=this.__inactiveWaitBlock)&&L.destroy(),this.__inactiveWaitBlock=null,v.dom.removeClass(this.grid,z))),this},ListView.prototype.render=function(){var A,z,L,T,k,x,S,E,Y,P,q;for(v.util.assert(!this.grid,"ListView.render","ListView already rendered",{opts:this.opts}),T=[],z=["cui-list-view-grid",this.__lvClass],1===this._fixedCols&&(this._rowMove||this._rowMovePlaceholder)&&z.push("cui-list-view-grid-fixed-col-has-only-row-move-handle"),this._rowMovePlaceholder&&z.push("cui-list-view-has-row-move-placeholder"),this._rowMove&&z.push("cui-list-view-has-row-move"),this.__maxCols.length>0&&z.push("cui-list-view-grid-has-maximized-columns"),this.fixedColsCount>0&&z.push("cui-list-view-grid-has-fixed-cols"),this.fixedRowsCount>0&&z.push("cui-list-view-grid-has-fixed-rows"),T.push('
    '),T.push(""),q=this,A=function(v){var A,L,k,x;if(q.__isFocusable(),T.push('
    '),2===v||3===v){for(T.push('
    '),A=k=(L=q.__getColsFromAndTo(v)).from,x=L.to;k<=x;A=k+=1)z=q.__getColClass(A),T.push('
    ');T.push("
    ")}T.push("
    ")},this.fixedColsCount>0&&this.fixedRowsCount>0?(T.push('
    '),A(0),A(1),T.push("
    "),T.push('
    '),A(2),A(3),T.push("
    ")):this.fixedColsCount>0?(T.push('
    '),A(2),A(3),T.push("
    ")):this.fixedRowsCount>0?(T.push('
    '),A(1),T.push("
    "),T.push('
    '),A(3),T.push("
    ")):A(3),T.push("
    "),(S=this.center()).innerHTML=T.join(""),this.grid=S.firstChild,this.quadrant=[v.dom.matchSelector(S,".cui-list-view-grid-quadrant-0")[0],v.dom.matchSelector(S,".cui-list-view-grid-quadrant-1")[0],v.dom.matchSelector(S,".cui-list-view-grid-quadrant-2")[0],v.dom.matchSelector(S,".cui-list-view-grid-quadrant-3")[0]],this.styleElement=v.dom.matchSelector(S,"style")[0],this.__fillRowQ3=v.dom.matchSelector(this.grid,".cui-list-view-grid-fills-3")[0],this.__topQuadrants=v.dom.matchSelector(S,".cui-list-view-grid-inner-top")[0],0===this.fixedColsCount&&0===this.fixedRowsCount?this.__bottomQuadrants=this.quadrant[3]:this.__bottomQuadrants=v.dom.matchSelector(S,".cui-list-view-grid-inner-bottom")[0],this.__fillCells=[],L=k=0,E=this.colsCount-1;k<=E;L=k+=1)this.__fillCells.push(v.dom.matchSelector(S,".cui-list-view-grid-fill-col-"+L)[0]);return x=function(v){return function(){return v.__syncScrolling(),"function"==typeof v._onScroll?v._onScroll():void 0}}(this),v.Events.listen({node:this.quadrant[3],type:"scroll",call:x}),this.__currentScroll={top:0,left:0},this.hasSelectableRows()&&(Y="."+this.__lvClass+"-quadrant > .cui-lv-tr-outer",v.Events.listen({type:["click"],node:this.DOM,selector:Y,call:function(A){return function(z){var L;(L=v.dom.data(z.getCurrentTarget(),"listViewRow")).isSelectable()&&(z.stopImmediatePropagation(),A.selectRow(z,L))}}(this)})),this.__isFocusable()&&(P="."+this.__lvClass+"-quadrant > .cui-lv-tr-outer:focus",v.Events.listen({type:["keydown"],node:this.DOM,selector:P,call:function(A){return function(z){var L,T;"Return"!==(L=z.getKeyboard())&&"Space"!==L||(T=v.dom.data(z.getCurrentTarget(),"listViewRow")).isSelectable()&&(z.stopImmediatePropagation(),A.selectRow(z,T))}}(this)})),this.quadrant[2]&&v.Events.listen({type:"wheel",node:this.quadrant[2],call:function(v){return function(A){if(100,A.wheelDeltaY()>0){if(v.quadrant[3].scrollTop===v.quadrant[3].scrollHeight-v.quadrant[3].offsetHeight)return;v.quadrant[3].scrollTop+=100}else{if(!(A.wheelDeltaY()<0))return;if(0===v.quadrant[3].scrollTop)return;v.quadrant[3].scrollTop-=100}A.preventDefault(),x()}}(this)}),v.Events.listen({type:"viewport-resize",node:this.grid,call:function(v){return function(A,z){v.__hasLayout&&v.__doLayout({resetRows:!(!z.css_load&&!z.tab)})}}(this)}),v.Events.listen({type:"content-resize",node:this.DOM,call:function(A){return function(z,T){var k,x;A.__isInDOM&&(k=v.dom.closest(z.getNode(),".cui-lv-td"))&&(z.stopPropagation(),x=parseInt(k.getAttribute("row")),L=parseInt(k.getAttribute("col")),A.fixedColsCount>0&&v.dom.getAttribute(k.parentNode,"cui-lv-tr-unmeasured")||(A.__resetRowDim(x),A.__scheduleLayout()))}}(this)}),this.isInactive()&&this.setInactive(!0),this.appendDeferredRows(),v.dom.waitForDOMInsert({node:this.DOM}).done(function(v){return function(){return v.__isInDOM=!0,v.__doLayout()}}(this)),this.DOM},ListView.prototype.__getScrolling=function(){return{top:this.quadrant[3].scrollTop,left:this.quadrant[3].scrollLeft,height:this.quadrant[3].scrollHeight}},ListView.prototype.getScrollingContainer=function(){return this.quadrant[3]},ListView.prototype.__setScrolling=function(v){return this.quadrant[3].scrollTop=v.top,this.quadrant[3].scrollLeft=v.left},ListView.prototype.__syncScrolling=function(){return this.__currentScroll=this.__getScrolling(),this.fixedColsCount>0&&(this.quadrant[2].scrollTop=this.__currentScroll.top),this.fixedRowsCount>0&&(this.quadrant[1].scrollLeft=this.__currentScroll.left),this.__fillRowQ3&&(this.__fillRowQ3.style.width="",this.__fillRowQ3.style.width=this.__getValue(this.__fillRowQ3.scrollWidth)),this},ListView.prototype.__setMargins=function(){var v,A,z,L;return L=this.quadrant[3].offsetWidth-this.quadrant[3].clientWidth,v=this.quadrant[3].offsetHeight-this.quadrant[3].clientHeight,null!=(A=this.quadrant[1])&&(A.style.marginRight=this.__getValue(L)),null!=(z=this.quadrant[2])&&(z.style.marginBottom=this.__getValue(v)),this},ListView.prototype.getSelectedRows=function(){var v,A,z,L,T,k;for(k=[],v=0,A=(L=this.rowsOrder).length;v0)for(S=this.getSelectedRows().pop().getRowIdx(),x=z.getRowIdx();x!==S;)this.getListViewRow(x).select(A),x>S?x--:x++;else T(!1);else E();return k.promise()},ListView.prototype.getCellByTarget=function(A){var z;return v.dom.is(A,".cui-lv-td")?((z={col_i:parseInt(A.getAttribute("col")),row_i:parseInt(A.getAttribute("row"))}).display_col_i=this.getDisplayColIdx(z.col_i),z.display_row_i=this.getDisplayRowIdx(z.row_i),z):null},ListView.prototype.getRowMoveTool=function(A){return null==A&&(A={}),new v.ListViewRowMove(A)},ListView.prototype.getListViewRow=function(A){return v.dom.data(this.getRow(A)[0],"listViewRow")},ListView.prototype.getDisplayColIdx=function(v){return this.colsOrder.indexOf(parseInt(v))},ListView.prototype.getDisplayRowIdx=function(v){return this.rowsOrder.indexOf(parseInt(v))},ListView.prototype.getColIdx=function(A){return v.util.assert(v.util.isArray(this.colsOrder),"ListView["+this.listViewCounter+"].getColIdx","colsOrder Array is missing",{this:this,display_col_i:A}),this.colsOrder[A]},ListView.prototype.getRowIdx=function(v){return this.rowsOrder[v]},ListView.prototype.moveInOrderArray=function(A,z,L,T){var k,x;return k=L.indexOf(A),x=L.indexOf(z),v.util.moveInArray(k,x,L,T),null},ListView.prototype.moveRow=function(A,z,L,T){var k,x,S,E,Y,P,q,F;for(null==L&&(L=!1),null==T&&(T=!0),v.util.assert(A>=this.fixedRowsCount&&z>=this.fixedRowsCount,"ListView.moveRow","from_i and to_i must not be in flexible area of the list view",{from_i:A,to_i:z,fixed_i:this.fixedRowsCount}),S=L?v.dom.insertAfter:v.dom.insertBefore,E=Y=0,P=(q=this.getRow(A)).length;Y-1,"ListView.insertRowAfter","ListView #"+this.listViewCounter+": Row "+A+" not found.",{row_i:A,row:z,rowsCount:this.rowsCount}),L=++this.__maxRowIdx,this.rowsCount++,this.rowsOrder.splice(T+1,0,L),this.__addRow(L,z,"after",A)},ListView.prototype.insertRowBefore=function(A,z){var L,T,k;return v.util.assert(!this.isDestroyed(),"ListView.insertRowBefore","ListView #"+this.listViewCounter+" is already destroyed."),0===(k=this.getDisplayRowIdx(A))?this.prependRow(z):(L=this.getRowIdx(k-1),T=++this.__maxRowIdx,this.rowsCount++,this.rowsOrder.splice(k,0,T),this.__addRow(T,z,"after",L))},ListView.prototype.removeAllRows=function(){var v,A,z,L;for(v=0,A=(z=this.rowsOrder.slice(0)).length;v=0,"ListView.removeRow","row_i must be >= 0",{row_i:A}),z=this.getDisplayRowIdx(A),v.util.assert(z>-1,"ListView.removeRow","display_row_id not found for row_i",{row_i:A}),this.rowsOrder.splice(z,1),this.rowsCount--,delete this.__colspanRows[A],L=0,T=(k=this.getRow(A)).length;L0?(q=!0,L(k,at),P.style.setProperty("width",at+"px"),P.style.setProperty("flex","0 0 auto")):(z.call(this.__maxCols,k)>=0&&(F=!0),P.style.removeProperty("width"),P.style.removeProperty("flex"));for(Y=U=0,et=(dt=this.__fillCells).length;U0)for(st=0,it=(mt=[0,2]).length;st "+zt)).length;ct "+zt)).length;lt "+zt)).length;ut=1,"ListView.__addRows","anchor row "+bt+" for mode "+L+" not found.",{rows:this.__rows,row_i:bt,mode:k,mode_used:L})}for(_t=(bt=tt=A)+z.length-1;tt<=_t;bt=tt+=1)for(this.__cells[bt]=[],this.__rows[bt]=[],et=0,ot=(ft=this.__getQuadrants(bt)).length;et0?'cui-lv-tr-unmeasured="'+this.listViewCounter+'"':"",U[dt].push('
    '),F=it=V.from,mt=V.to;it<=mt;F=it+=1)q=this.getColIdx(F),(Mt=this.__getColWidth(bt,q))[0],Mt[1],P=this.__getColClass(q),U[dt].push('
    ');U[dt].push("
    ")}for(At=this,H=function(A){var z,L,T,k,x,S,E,Y,P,q;for(Y=0,S=(z=v.dom.matchSelector(A,".cui-lv-td")).length;Y0&&(X=this.quadrant[1].childNodes,this.fixedRowsCount0?[0,1]:[1],ct=0,gt=X.length-this.fixedRowsCount;ct=this.fixedRowsCount+this._rowMoveFixedRows?A.getColumns()[0]instanceof v.ListViewColumnRowMoveHandle||A.prependColumn(new v.ListViewColumnRowMoveHandle):A.getColumns()[0]instanceof v.ListViewColumnRowMoveHandlePlaceholder||A.prependColumn(new v.ListViewColumnRowMoveHandlePlaceholder):this._rowMovePlaceholder&&(A.getColumns()[0]instanceof v.ListViewColumnRowMoveHandlePlaceholder||A.prependColumn(new v.ListViewColumnRowMoveHandlePlaceholder)),E=0,x=P=0,H=(L=A.getColumns()).length;P1)for(T.setAttribute("colspan",S),this.__colspanRows[z]||(this.__colspanRows[z]={}),this.__colspanRows[z][x+E]=S,q=1,U=S;1<=U?qU;1<=U?++q:--q)v.dom.remove(this.__cells[z][x+E+1]),delete this.__cells[z][x+E+1],E++;v.util.assert(L.length+E<=this.colsCount,"ListView.addRow","ListViewRow provided more columns ("+(L.length+E)+") than colsCount ("+this.colsCount+") is set to",{colsCount:this.colsCount,cols:L}),A.addedToListView(this.__rows[z])},ListView.prototype.__getColClass=function(A){var L,T,k;return T=null!=(k=this.__colClasses)?k[A]:void 0,L=[],v.util.isArray(T)?L.push.apply(L,T):v.util.isEmpty(T)||L.push(T),z.call(this.__maxCols,A)>=0&&L.push("cui-lv-td-max"),L.join(" ")},ListView.prototype.__resetRowDim=function(A){var z,L,T,k,x,S,E,Y;if(delete this.__cellDims[A],this.fixedColsCount>0&&this.__rows[A])for(T=0,x=(S=this.__rows[A]).length;T=E;L=0<=E?++k:--k)z=this.getColIdx(L),this.__resetCellStyle(A,z);return this},ListView.prototype.__resetCellStyle=function(A,z){var L,T;return(L=null!=(T=this.__cells[A])?T[z]:void 0)&&v.dom.setStyleOne(L,"cssText",""),L},ListView.prototype.__resetColWidth=function(v){var A,z,L,T,k,x,S,E;for(L=0,k=(x=this.__cellDims).length;L=S;z=0<=S?++T:--T)E=this.getRowIdx(z),this.__resetCellStyle(E,v);return this.__fillCells[v].style.cssText="",this},ListView.prototype.__resetCellDims=function(v){return this.__cellDims=[],this.__colWidths=[]},ListView.prototype.__isMaximizedCol=function(v){return z.call(this.__maxCols,v)>=0&&!this.__manualColWidths.hasOwnProperty(v)},ListView.counter=0,ListView.prototype.__getColWidth=function(v,A){var z,L,T,k,x,S,E;if((T=null!=(S=this.__colspanRows[v])?S[A]:void 0)>1){for(L=0,x=!1,z=k=A,E=A+T-1;k<=E;z=k+=1)this.__isMaximizedCol(z)&&(x=!0),L+=this.__colWidths[z];return[L,x]}return[this.__colWidths[A],this.__isMaximizedCol(A)]},ListView}(v.SimplePane)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.ListViewTree=function(z){function ListViewTree(A){var z,L;this.__actionOnNode=(z=this.__actionOnNode,L=this,function(){return z.apply(L,arguments)}),ListViewTree.__super__.constructor.call(this,A),v.util.assert(this.root instanceof v.ListViewTreeNode,"new CUI.ListViewTree","opts.root must be instance of ListViewTreeNode",{opts:this.opts}),this.root.setTree(this)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ListViewTree,z),ListViewTree.defaults={arrow_down:"fa-caret-down",arrow_right:"fa-caret-right"},ListViewTree.prototype.initOpts=function(){return ListViewTree.__super__.initOpts.call(this),this.addOpts({rowMoveWithinNodesOnly:{check:Boolean},children:{check:Array},selectable:{deprecated:!0,check:Boolean},no_hierarchy:{default:!1,check:Boolean},root:{check:function(A){return A instanceof v.ListViewRow}},onOpen:{check:Function},onClose:{check:Function},onBeforeSelect:{check:Function}})},ListViewTree.prototype.readOpts=function(){return ListViewTree.__super__.readOpts.call(this),void 0!==this._selectable&&(v.util.assert(void 0===this._selectableRows,"new CUI.ListViewTree","opts.selectable cannot be used with opts.selectableRows, use selectableRows only.",{opts:this.opts}),this.__selectableRows=this._selectable),this},ListViewTree.prototype.getRowMoveTool=function(A){return null==A&&(A={}),A.rowMoveWithinNodesOnly=this._rowMoveWithinNodesOnly,new v.ListViewTreeRowMove(A)},ListViewTree.prototype.initListView=function(){var A;return ListViewTree.__super__.initListView.call(this),this._root?this.root=this._root:(A={},this._children?A.children=this._children:this._getChildren?A.getChildren=this._getChildren:A.children=[],this.root=new v.ListViewTreeNode(A)),this},ListViewTree.prototype.isSelectable=function(){return!!this.__selectableRows},ListViewTree.prototype.isNoHierarchy=function(){return this._no_hierarchy},ListViewTree.prototype.triggerNodeDeselect=function(A,z){var L;return L={ev:A,node:z,listView:this},"function"==typeof this._onDeselect&&this._onDeselect(A,L),v.Events.trigger({node:this,type:"row_deselected"})},ListViewTree.prototype.triggerNodeSelect=function(A,z){var L;return L={ev:A,node:z,listView:this},"function"==typeof this._onSelect&&this._onSelect(A,L),v.Events.trigger({node:this,type:"row_selected"})},ListViewTree.prototype.render=function(){var A,z,L;return L=this,A=function(A){var z;(z=v.dom.data(v.dom.closest(A.getCurrentTarget(),".cui-lv-tree-node"),"listViewRow"))instanceof v.ListViewTreeNode&&!z.isLoading()&&!z.isLeaf()&&(A.stopImmediatePropagation(),A instanceof v.DragoverScrollEvent?A.getCount()%50==0&&L.toggleNode(A,z):L.toggleNode(A,z))},ListViewTree.__super__.render.call(this),v.Events.listen({node:this.DOM,selector:".cui-tree-node-handle",capture:!0,type:["click","dragover-scroll"],call:function(v){return A(v)}}),v.Events.listen({node:this.DOM,selector:".cui-lv-tree-node",type:["click"],call:function(v){return A(v)}}),this._no_hierarchy?v.dom.addClass(this.grid,"cui-list-view-tree-no-hierarchy"):v.dom.addClass(this.grid,"cui-list-view-tree-hierarchy"),this.__isFocusable()&&(z="."+this.__lvClass+"-quadrant > .cui-lv-tr-outer:focus",v.Events.listen({type:["keydown"],node:this.DOM,selector:z,call:function(A){return function(z){var L,T;(T=v.dom.data(z.getCurrentTarget(),"listViewRow")).isSelectable()&&(L=function(v){var z;z=v.getRowIdx(),A.getRow(z)[0].focus()},"Right"!==z.getKeyboard()||T.isOpen()?"Left"===z.getKeyboard()&&T.isOpen()&&T.close().done((function(){return L(T)})):T.open().done((function(){return L(T)})))}}(this)})),this.DOM},ListViewTree.prototype.toggleNode=function(v,A){A.isOpen()?this.__runTrigger(v,"close",A):this.__runTrigger(v,"open",A)},ListViewTree.prototype.__runTrigger=function(v,A,z){v.ctrlKey()||v.metaKey()?this.__actionOnNode(v,A+"Recursively",z):this.__actionOnNode(v,A,z)},ListViewTree.prototype.__actionOnNode=function(A,z,L){var T,k,x,S;return T=null,x=v.setTimeout({ms:500,call:function(){return L.showSpinner(),x=null,T=!0}}),this.stopLayout(),(k=L[z]()).done((S=this,function(){switch(z){case"open":return"function"==typeof S._onOpen?S._onOpen(A,{node:L}):void 0;case"close":return"function"==typeof S._onClose?S._onClose(A,{node:L}):void 0}})),k.always(function(A){return function(){return x&&v.clearTimeout(x),T&&L.hideSpinner(),A.startLayout(),v.Events.trigger({type:"content-resize",node:A.DOM})}}(this)),k},ListViewTree.prototype.deselectRow=function(A,z,L){return"multiple"===this.__selectableRows||z===L?ListViewTree.__super__.deselectRow.call(this,A,z,L):v.resolvedPromise()},ListViewTree.prototype.getNodesForMove=function(A,z,L){var T,k,x;return T=this.getListViewRow(A),x=this.getListViewRow(z),v.util.assert(T,"ListViewTree.moveRow","from_i node not found",{from_i:A}),v.util.assert(x,"ListViewTree.moveRow","to_i node not found",{to_i:z}),(k=T.father!==x.father||x.is_open&&L?x.is_open&&L?x:x.father:null)===T.father&&(k=null),[T,x,k]},ListViewTree.prototype.moveRow=function(A,z,L){var T,k,x,S,E,Y,P;return E=this.getNodesForMove(A,z,L),k=E[0],Y=E[1],S=E[2],x=k.moveNodeBefore(Y,S,L),v.util.assert(v.util.isPromise(x),"ListViewTree.moveRow","moveNodeBefore needs to return a Promise",{promise:x}),T=new v.Deferred,x.done((P=this,function(){var x,E,q;return x=P.getDisplayRowIdx(A),E=P.getDisplayRowIdx(z),ListViewTree.__super__.moveRow.call(P,A,z,L,!1),k.father!==Y.father||Y.is_open&&L?(k.father.removeChild(k),Y.is_open&&L?(Y.children.splice(0,0,k),k.setFather(Y)):(L?Y.father.children.splice(Y.getChildIdx()+1,0,k):Y.father.children.splice(Y.getChildIdx(),0,k),k.setFather(Y.father))):v.util.moveInArray(k.getChildIdx(),Y.getChildIdx(),k.father.children,L),q=[k.reload()],S&&q.push(S.reload()),v.whenAll(q).done((function(){return"function"==typeof P._onRowMove&&P._onRowMove(x,E,L),v.Events.trigger({node:P.grid,type:"row_moved",info:{from_i:A,to_i:z,after:L}}),T.resolve()})).fail(T.reject)})).fail(T.reject),T.promise()},ListViewTree.prototype.getRootChildren=function(){return this.root.children},ListViewTree.prototype.getSelectedNode=function(v){return null==v&&(v="selectedNode"),this.root[v]},ListViewTree.prototype.prependNode=function(v){return this.addNode(v,!1)},ListViewTree.prototype.addNode=function(A,z){var L;return null==z&&(z=!0),v.util.assert(A instanceof v.ListViewTreeNode,v.util.getObjectClass(this)+".addNode","Node must be instance of ListViewTreeNode",{node:A}),L=this.root.addNode(A,z),v.Events.trigger({node:this,type:"row_added",info:{node:A}}),L},ListViewTree.prototype.openTreeNodeByRowDisplayIndex=function(A){var z,L;return L=this.getRowIdx(A),z=this.getRow(L),v.dom.data(z[0],"listViewRow").open()},ListViewTree}(v.ListView),v.Events.registerEvent({bubble:!0,type:["row_removed","row_added","row_moved","row_selected","row_deselected"]}),v.defaults.class.ListViewTree=v.ListViewTree}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.ListViewRow=function(z){function ListViewRow(){return ListViewRow.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ListViewRow,z),ListViewRow.prototype.initOpts=function(){return ListViewRow.__super__.initOpts.call(this),this.addOpts({columns:{check:Array},selectable:{check:Boolean},class:{check:String}})},ListViewRow.prototype.readOpts=function(){var v,A,z,L,T;if(ListViewRow.__super__.readOpts.call(this),this._columns)for(this.columns=this._columns,z=A=0,L=(T=this.columns).length;A0}},getChildren:{check:Function}})},ListViewTreeNode.prototype.readOpts=function(){return ListViewTreeNode.__super__.readOpts.call(this),this.setColspan(this._colspan),this._children&&(this.children=this.opts.children,this.initChildren()),this._open?this.do_open=!0:this.do_open=!1,this.is_open=!1,this.html=this._html,this.__loadingDeferred=null},ListViewTreeNode.prototype.setColspan=function(v){this.colspan=v},ListViewTreeNode.prototype.getColspan=function(){return this.colspan},ListViewTreeNode.prototype.getChildren=null,ListViewTreeNode.prototype.hasChildren=null,ListViewTreeNode.prototype.isLeaf=function(){return!this.children&&(!this.opts.getChildren&&(!this.getChildren||!!(this.opts.leaf||this.hasChildren&&!this.hasChildren())))},ListViewTreeNode.prototype.getClass=function(){var v;return v=ListViewTreeNode.__super__.getClass.call(this),v+=" cui-lv-tree-node",this.isLeaf()||(v+=" cui-lv-tree-node--is-branch"),v},ListViewTreeNode.prototype.isSelectable=function(){return("function"==typeof this.getTree?this.getTree().isSelectable():void 0)&&this.__selectable&&!this.isRoot()},ListViewTreeNode.prototype.getFather=function(){return this.father},ListViewTreeNode.prototype.setFather=function(A){var L;return v.util.assert(null===A||A instanceof v.ListViewTreeNode,v.util.getObjectClass(this)+".setFather","father can only be null or instanceof CUI.ListViewTreeNode",{father:A}),v.util.assert(A!==this,v.util.getObjectClass(this)+".setFather","father cannot be self",{node:this,father:A}),A&&v.util.assert(z.call(A.getPath(!0),this)<0,v.util.getObjectClass(this)+".setFather","father cannot any of the node's children",{node:this,father:A}),!A&&this.selected&&(this.setSelectedNode(null),this.selected=!1),this.father&&!A?(L=this.getTree(),this.father=A,L&&this.setTree(L)):this.father=A,this},ListViewTreeNode.prototype.isRoot=function(){return!this.father},ListViewTreeNode.prototype.setTree=function(A){return this.tree=A,v.util.assert(this.isRoot(),v.util.getObjectClass(this)+".setTree","node must be root node to set tree",{tree:this.tree,opts:this.opts}),v.util.assert(this.tree instanceof v.ListViewTree,v.util.getObjectClass(this)+".setTree","tree must be instance of ListViewTree",{tree:this.tree,opts:this.opts})},ListViewTreeNode.prototype.getRoot=function(A){return null==A&&(A=0),v.util.assert(A<100,"ListViewTreeNode.getRoot","Recursion detected."),this.father?this.father.getRoot(A+1):this},ListViewTreeNode.prototype.dump=function(v,A){var z,L,T,k,x,S;for(null==v&&(v=[]),null==A&&(A=0),k=[],z=0,x=A;0<=x?zx;0<=x?++z:--z)k.push(" ");if(v.push(k.join("")+this.dumpString()),this.children)for(L=0,T=(S=this.children).length;L-1,v.util.getObjectClass(this)+".getChildIdx()","Node not found in fathers children Array",{node:this,father:this.father,"father.children":this.father.children}),A)},ListViewTreeNode.prototype.getNodeId=function(v){var A,z;return null==v&&(v=!0),z=this.getPath(v),function(){var v,L,T;for(T=[],v=0,L=z.length;vthis.father.children.length-1?this.father.addNode(v):this.father.addNode(v,A)},ListViewTreeNode.prototype.setChildren=function(v){this.children=v,this.initChildren()},ListViewTreeNode.prototype.initChildren=function(){var A,z,L,T,k,x,S,E,Y,P;for(L=T=0,x=(Y=this.children).length;T1&&(z=0===(L=this.getChildIdx())?1:Math.min(T.length-2,L-1)),null!==z&&(S=T[z])),this.isSelected()?this.deselect().fail(k.reject).done(x):x(),k.promise()},ListViewTreeNode.prototype.removeChild=function(A,z){return null==z&&(z=!1),v.util.removeFromArray(A,this.children),0!==this.children.length||this.isRoot()||(this.is_open=!1,z||(this.children=null)),this.update(),A.setFather(null)},ListViewTreeNode.prototype.deselect=function(A,z){return this.getTree().isSelectable()?this.check_deselect(A,z).done((L=this,function(){return L.setSelectedNode(),L.removeSelectedClass(),L.selected=!1,L.getTree().triggerNodeDeselect(A,L)})):v.resolvedPromise();var L},ListViewTreeNode.prototype.allowRowMove=function(){return!0},ListViewTreeNode.prototype.check_deselect=function(A,z){return v.resolvedPromise()},ListViewTreeNode.prototype.isSelected=function(){return!!this.selected},ListViewTreeNode.prototype.addSelectedClass=function(){return this.getTree().rowAddClass(this.getRowIdx(),v.ListViewRow.defaults.selected_class)},ListViewTreeNode.prototype.removeSelectedClass=function(){return this.getTree().rowRemoveClass(this.getRowIdx(),v.ListViewRow.defaults.selected_class)},ListViewTreeNode.prototype.setSelectedNode=function(v,A){return null==v&&(v=null),null==A&&(A=this.getSelectedNodeKey()),this.getRoot()[this.getSelectedNodeKey()]=v},ListViewTreeNode.prototype.getSelectedNode=function(v){var A;return null==v&&(v=this.getSelectedNodeKey()),(null!=(A=this.getRoot())?A[v]:void 0)||null},ListViewTreeNode.prototype.getSelectedNodeKey=function(){return"selectedNode"},ListViewTreeNode.prototype.select=function(A){var z,L,T,k,x;return z=new v.Deferred,A&&("function"==typeof this.getTree?this.getTree().isSelectable():void 0)&&"function"==typeof A.stopPropagation&&A.stopPropagation(),z.done((x=this,function(){return x.getTree().triggerNodeSelect(A,x)})),this.isSelectable()?this.isSelected()?z.resolve().promise():(L=function(v){return function(){var A;return"function"==typeof(A=v.getTree())._onBeforeSelect&&A._onBeforeSelect(v),v.setSelectedNode(v),v.openUpwards().done((function(){return v.addSelectedClass(),v.selected=!0,z.resolve()})).fail(z.reject)}}(this),(k=this.getSelectedNode())&&!0===(null!=(T=this.getTree())?T.__selectableRows:void 0)?k.check_deselect(A,this).done(function(v){return function(){return k.deselect(null,v).done((function(){return L()})).fail(z.reject)}}(this)).fail(z.reject):L(),z.promise()):z.reject().promise()},ListViewTreeNode.prototype.openUpwards=function(A){var z,L,T;return null==A&&(A=0),z=new v.Deferred,this.isRoot()?this.isLoading()?this.getLoading().done((T=this,function(){return z.resolve(T)})).fail(function(v){return function(){return z.reject(v)}}(this)):this.is_open?z.resolve(this):z.reject(this):((L=this.father.openUpwards(A+1)).done(function(v){return function(){return!v.is_open&&A>0?(v.isLoading()?v.getLoading():v.open()).done((function(){return z.resolve(v)})).fail((function(){return z.reject(v)})):z.resolve(v)}}(this)),L.fail(function(v){return function(){return v.do_open=!0,0===A?z.resolve(v):z.reject(v)}}(this))),z.promise()},ListViewTreeNode.prototype.level=function(){return this.isRoot()?0:this.father.level()+1},ListViewTreeNode.prototype.renderContent=function(){return v.util.isFunction(this.html)?this.html.call(this.opts,this):this.html?this.html:new v.EmptyLabel({text:""}).DOM},ListViewTreeNode.prototype.update=function(A){var z,L;return null==A&&(A=!1),A||this.__is_rendered&&!this.isRoot()?(L=this.getTree(),z=null!=L?L.stopLayout():void 0,this.replaceSelf().done((function(){if(z)return L.startLayout()}))):v.resolvedPromise()},ListViewTreeNode.prototype.reload=function(){return v.util.assert(!this.isLoading(),"ListViewTreeNode.reload","Cannot reload node, during opening...",{node:this,tree:this.getTree()}),this.isRoot()?this.replaceSelf():this.is_open?(this.close(),this.do_open=!0,this.open()):(this.opts.children&&(this.children=null),this.update())},ListViewTreeNode.prototype.showSpinner=function(){return this.__is_rendered&&(v.dom.empty(this.__handleDiv),v.dom.append(this.__handleDiv,new v.Icon({icon:"spinner"}).DOM)),this},ListViewTreeNode.prototype.hideSpinner=function(){return this.__is_rendered&&(v.dom.empty(this.__handleDiv),this.__handleIcon&&v.dom.append(this.__handleDiv,new v.Icon({icon:this.__handleIcon}).DOM)),this},ListViewTreeNode.prototype.render=function(){var A,z,L,T,k,x,S,E,Y,P;for(v.util.assert(!this.isRoot(),"ListViewTreeNode.render","Unable to render root node."),this.removeColumns(),k=v.dom.div("cui-tree-node level-"+this.level()),this.__is_rendered=!0,x=1,Y=this.level();x0}}})},ListViewTreeHeaderNode.prototype.render=function(){var A,z,L,T,k;for(this.__is_rendered=!0,L=z=0,T=(k=this._headers).length;z1?A:1},ListViewColumn}(v.Element)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.ListViewColumnEmpty=function(v){function ListViewColumnEmpty(){return ListViewColumnEmpty.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ListViewColumnEmpty,v),ListViewColumnEmpty.prototype.render=function(){},ListViewColumnEmpty}(v.ListViewColumn)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.ListViewHeaderColumn=function(z){function ListViewHeaderColumn(){return ListViewHeaderColumn.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ListViewHeaderColumn,z),ListViewHeaderColumn.prototype.initOpts=function(){ListViewHeaderColumn.__super__.initOpts.call(this),this.removeOpt("text"),this.addOpts({spacer:{check:Boolean},rotate_90:{check:Boolean},label:{check:function(A){return!!(v.util.isPlainObject(A)||A instanceof v.Label)}}})},ListViewHeaderColumn.prototype.readOpts=function(){return ListViewHeaderColumn.__super__.readOpts.call(this),this._label instanceof v.Label?this.__label=this._label:this._label?(this._label.rotate_90=this._rotate_90,this.__label=new v.defaults.class.Label(this._label)):void 0},ListViewHeaderColumn.prototype.setElement=function(A){var z,L;return this.__element=A,ListViewHeaderColumn.__super__.setElement.call(this,this.__element),this._rotate_90&&this.addClass("cui-lv-td-rotate-90"),this.addClass("cui-lv-th"),(z=this.getRow().getListView()).hasResizableColumns()?("fixed"===z.getColdef(this.getColumnIdx())||(L=v.dom.element("DIV",{class:"cui-lv-col-resize-handle"}),new v.ListViewColResize({element:L,row:this.getRow(),column:this}),v.dom.append(this.__element,L)),this.__element):this.__element},ListViewHeaderColumn.prototype.render=function(){var A;return A=this._spacer?[v.dom.div("cui-tree-node-spacer")]:[],this._element?A.push(this._element):this.__label&&A.push(this.__label),A},ListViewHeaderColumn}(v.ListViewColumn)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.ListViewColumnRowMoveHandle=function(z){function ListViewColumnRowMoveHandle(){return ListViewColumnRowMoveHandle.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ListViewColumnRowMoveHandle,z),ListViewColumnRowMoveHandle.prototype.setElement=function(A){var z;ListViewColumnRowMoveHandle.__super__.setElement.call(this,A),(z=this.getRow()).isMovable()&&(v.ListView.defaults.row_move_handle_tooltip&&new v.Tooltip({text:v.ListView.defaults.row_move_handle_tooltip,element:A}),z.getListView().getRowMoveTool({row:z,element:A}))},ListViewColumnRowMoveHandle.prototype.render=function(){return v.dom.element("DIV",{class:"cui-drag-handle-row"})},ListViewColumnRowMoveHandle}(v.ListViewColumn)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.ListViewColumnRowMoveHandlePlaceholder=function(v){function ListViewColumnRowMoveHandlePlaceholder(){return ListViewColumnRowMoveHandlePlaceholder.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ListViewColumnRowMoveHandlePlaceholder,v),ListViewColumnRowMoveHandlePlaceholder}(v.ListViewColumnEmpty)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.ListViewDraggable=function(z){function ListViewDraggable(){return ListViewDraggable.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ListViewDraggable,z),ListViewDraggable.prototype.initOpts=function(){return ListViewDraggable.__super__.initOpts.call(this),this.removeOpt("helper"),this.addOpts({row:{mandatory:!0,check:v.ListViewRow}})},ListViewDraggable.prototype.readOpts=function(){return ListViewDraggable.__super__.readOpts.call(this),this.__row_i=this._row.getRowIdx()},ListViewDraggable.prototype.get_marker=function(A){return null==A&&(A=""),v.dom.element("DIV",{class:"cui-lv-draggable "+A})},ListViewDraggable}(v.Draggable)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.ListViewRowMove=function(z){function ListViewRowMove(){return ListViewRowMove.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ListViewRowMove,z),ListViewRowMove.prototype.initOpts=function(){return ListViewRowMove.__super__.initOpts.call(this),this.removeOpt("helper"),this.addOpts({row:{mandatory:!0,check:v.ListViewRow}})},ListViewRowMove.prototype.readOpts=function(){return ListViewRowMove.__super__.readOpts.call(this),this.__row_i=this._row.getRowIdx(),this.__display_row_i=this._row.getDisplayRowIdx(),this.__listView=this._row.getListView()},ListViewRowMove.prototype.get_helper=function(v,A,z){return this.get_marker("cui-lv-row-move")},ListViewRowMove.prototype.get_helper_contain_element=function(){return this.__listView.getBottom()},ListViewRowMove.prototype.get_axis=function(){return"y"},ListViewRowMove.prototype.get_init_helper_pos=function(v,A){var z;return{top:(z=this.__listView.getRowGridRect(this.__row_i)).top_abs,left:z.left_abs,width:z.width,height:z.height}},ListViewRowMove.prototype.init_helper=function(){return this.movableTargetDiv=this.get_marker("cui-lv-row-move-target"),v.dom.append(this.__listView.getGrid(),this.movableTargetDiv),ListViewRowMove.__super__.init_helper.call(this)},ListViewRowMove.prototype.do_drag=function(v,A,z){var L;ListViewRowMove.__super__.do_drag.call(this,v,A,z),(L=this.__listView.getCellByTarget(A))&&(L.clientX=v.clientX(),L.clientY=v.clientY(),L.display_row_i>=this.__listView.fixedRowsCount&&this.showHorizontalTargetMarker(L))},ListViewRowMove.prototype.cleanup_drag=function(A){return ListViewRowMove.__super__.cleanup_drag.call(this,A),v.dom.remove(this.movableTargetDiv),this.movableTargetDiv=null},ListViewRowMove.prototype.end_drag=function(A){var z,L;if(ListViewRowMove.__super__.end_drag.call(this,A),this.target)return z=this._row,L=this.__listView.getListViewRow(this.target.row_i),v.globalDrag.noClickKill=!0,z.moveRow?z.moveRow(this.__listView,L,this.target.after):this.__listView.moveRow(this.__row_i,this.target.row_i,this.target.after)},ListViewRowMove.prototype.showHorizontalTargetMarker=function(A){return this.showHorizontalTargetMarkerSetTarget(A),this.target.row_i===this.__row_i||this.target.before_row_i===this.__row_i&&!1===this.target.after||this.target.after_row_i===this.__row_i&&!1===this.target.before?(this.target=null,v.dom.hideElement(this.movableTargetDiv)):(v.dom.showElement(this.movableTargetDiv),v.dom.setStyle(this.movableTargetDiv,{left:this.target.left,top:this.target.top,width:this.target.width}))},ListViewRowMove.prototype.showHorizontalTargetMarkerSetTarget=function(v){var A;this.target={row_i:v.row_i},A=this.__listView.getRowGridRect(v.row_i),this.__display_row_i>0&&(this.target.before_row_i=this.__listView.getRowIdx(this.__display_row_i-1)),this.__display_row_i=0||(T=this.target.row_i,z.call(this.blockedAfterRows,T)>=0&&this.target.after)||(k=this.target.row_i,z.call(this.blockedBeforeRows,k)>=0&&!this.target.after))&&(v=(x=this.__listView.getNodesForMove(this.__row_i,this.target.row_i,this.target.after))[0],S=x[1],A=x[2],(!this._rowMoveWithinNodesOnly||!A)&&!!v.allowRowMove(S,A,this.target.after))},ListViewTreeRowMove}(v.ListViewRowMove)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Template.loadTemplateText(z(131)),v.ItemList=function(z){function ItemList(){return ItemList.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(ItemList,z),ItemList.prototype.init=function(){if(ItemList.__super__.init.call(this),this.addClass("cui-item-list"),this.__body=new v.Template({name:"item-list-body"}),this.append(this.__body,"center"),this._keyboardControl)return this.__initListeners()},ItemList.prototype.initOpts=function(){return ItemList.__super__.initOpts.call(this),this.addOpts({items:{mandatory:!0,check:function(A){return v.util.isFunction(A)||v.util.isArray(A)}},active_item_idx:{check:"Integer"},has_items:{default:!1,check:Boolean},allow_null:{check:Boolean},onClick:{check:Function},onActivate:{check:Function},onDeactivate:{check:Function},orientation:{default:"vertical",check:["horizontal","vertical"]},keyboardControl:{check:Boolean,default:!1}}),this},ItemList.prototype.readOpts=function(){return ItemList.__super__.readOpts.call(this),"horizontal"===this._orientation&&console.error("new CUI.ItemList, orientation == horizontal needs implementation!"),this},ItemList.prototype.setActiveIdx=function(v){this.__active_idx=v},ItemList.prototype.getActiveIdx=function(){return this.__active_idx},ItemList.prototype.getBody=function(){return this.__body},ItemList.prototype.getItemByValue=function(A){var z,L,T,k,x;for(T=0,k=(x=this.__body.DOM.children).length;T0)},ItemList.prototype.__getItems=function(A){return v.util.isFunction(this._items)?this._items(A,this)||[]:this._items},ItemList.prototype.getItems=function(A){var z;return z=this.__getItems(A),v.util.isPromise(z)?z:(new v.Deferred).resolve(z)},ItemList.prototype.__initActiveIdx=function(){var A,z,L,T,k,x;if(void 0===(A=this._active_item_idx))if(k=this.__getItems(),v.util.isPromise(k))A=-1;else{for(L=z=0,x=k.length;z\n\t
    \n\t
    \n\t
    \n\t\t
    \n\t
    \n'},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Input=function(z){function Input(A){var z,L,T,k,x,S;for(Input.__super__.constructor.call(this,A),this.addClass("cui-input"),this._textarea&&this.addClass("cui-data-field--textarea"),this._overwrite?this.__getCursorBlocks=this.__overwriteBlocks:this.__getCursorBlocks=this._getCursorBlocks,this._content_size&&this.addClass("cui-input-content-size"),this.isRequired()&&this.addClass("cui-input-required"),this._checkInput&&(this.__checkInput=this._checkInput),this._prevent_invalid_input&&this.addClass("cui-input-has-prevent-invalid-input"),this.__checkInput&&this.addClass("cui-input-has-check-input"),this._appearance&&this.addClass("cui-input-appearance-"+this._appearance),this.__inputHints={},this.__inputHintTexts={},L=0,k=(x=["empty","invalid","valid"]).length;L=0}},onFocus:{check:Function},onClick:{check:Function},onKeyup:{check:Function},onSelectionchange:{check:Function},incNumbers:{default:!0,check:Boolean},onBlur:{check:Function},regexp:{check:String},regexp_flags:{default:"",check:String},getInputBlocks:{check:Function},getCursorBlocks:{check:function(A){return v.util.isFunction(A)&&!this._overwrite}},placeholder:{check:function(A){return v.util.isFunction(A)||v.util.isString(A)}},readonly:{check:Boolean},readonly_select_all:{default:!0,check:Boolean},textarea:{check:Boolean},min_rows:{check:function(v){return v>=2},default:2},rows:{check:function(v){return v>=1}},content_size:{default:!1,check:Boolean},prevent_invalid_input:{default:!1,check:Boolean},required:{default:!1,check:Boolean},appearance:{check:["code"]}})},Input.prototype.readOpts=function(){var A;return this.opts.readonly&&v.util.assert(!(this.opts.getCursorBlocks||this.opts.getInputBlocks||this.opts.checkInput),"new CUI.Input","opts.readonly conflicts with opts.getCursorBlocks, opts.getInputBlocks, opts.checkInput."),this.opts.textarea&&(v.util.assert(!this.opts.autocomplete,"new CUI.Input","opts.textarea does not work with opts.autocomplete",{opts:this.opts}),v.util.assert(!this.opts.incNumbers,"new CUI.Input","opts.textarea does not work with opts.incNumbers",{opts:this.opts})),Input.__super__.readOpts.call(this),this._readonly&&this._readonly_select_all&&(this._getCursorBlocks=function(A){return[new v.InputBlock({start:0,string:A})]}),this._regexp&&(this.__regexp=new RegExp(this._regexp,this._regexp_flags),this.__checkInput=(A=this,function(v){return!!A.__checkInputRegexp(v)&&(!A._checkInput||A._checkInput(v))})),this._required&&(this.__checkInput=function(v){return function(A){return 0!==A.trim().length&&(!v._checkInput||v._checkInput(A))}}(this)),!1===this._spellcheck?this.__spellcheck="false":this.__spellcheck="default",!0===this._autocomplete?this.__autocomplete="on":!1===this._autocomplete&&(this.__autocomplete="off"),this},Input.prototype.__checkInputRegexp=function(v){return!!this.__regexp.exec(v)},Input.prototype.setSpellcheck=function(A){return A?v.dom.setAttribute(this.__input,"spellcheck","default"):v.dom.setAttribute(this.__input,"spellcheck","false")},Input.prototype.setPlaceholder=function(A){return v.dom.setAttribute(this.__input,"placeholder",A)},Input.prototype.getPlaceholder=function(){if(this._placeholder)return v.util.isFunction(this._placeholder)?this._placeholder(this,this.getData()):this._placeholder},Input.prototype.__createElement=function(A){var z,L,T,k;return null==A&&(A="text"),!0===this._textarea?(this.__input=v.dom.$element("textarea","cui-textarea",{placeholder:this.getPlaceholder(),tabindex:"0",maxLength:this._maxLength,id:"cui-input-"+this.getUniqueId(),spellcheck:this.__spellcheck,rows:this._min_rows}),this.__input.style.setProperty("--textarea-min-rows",this._min_rows),k=this,T=function(){var v;return k.__input.rows=k._min_rows,v=Math.ceil((k.__input.scrollHeight-k.__baseScrollHeight)/k.__lineHeight),k.__input.rows=k._min_rows+v},z=function(A){return function(){var z;return z=A.__input.value,A.__input.value="",A.__baseScrollHeight=A.__input.scrollHeight,A.__input.value=z,A.__lineHeight=parseInt(v.dom.getComputedStyle(A.__input).lineHeight,10)}}(this),v.Events.listen({node:this.__input,type:"input",call:T}),v.dom.waitForDOMInsert({node:this.__input}).done(function(v){return function(){if(!v.isDestroyed())return z(),T()}}(this))):this.__input=v.dom.$element("input","cui-input",{type:A,size:1,placeholder:this.getPlaceholder(),tabindex:"0",maxLength:this._maxLength,id:"cui-input-"+this.getUniqueId(),spellcheck:this.__spellcheck,autocomplete:this.__autocomplete}),v.Events.listen({node:this.__input,type:"dragstart",call:function(v){return v.preventDefault()}}),v.Events.listen({node:this.__input,type:"keydown",call:function(v){return function(A){var z,L,T,k;if(!(A.ctrlKey()&&90===!A.keyCode()||A.metaKey())){if(v.lastKeyDownEvent=A,!v._incNumbers||v._textarea||v._readonly||v.incNumberBounds(A),37===(z=A.keyCode())||39===z||36===z||35===z)return v.moveCursor(A),void v.showCursor(A);9!==(L=A.keyCode())&&16!==L&&17!==L&&18!==L&&27!==L&&33!==L&&34!==L&&35!==L&&36!==L&&38!==L&&40!==L&&(!A.ctrlKey()&&!A.metaKey()||65!==(T=A.keyCode())&&67!==T&&86!==T&&88!==T)&&(v._textarea||13!==A.keyCode())&&(8===A.keyCode()&&0===(k=v.__input.selectionStart)&&k===v.__input.selectionEnd||v.__focusShadowInput())}}}(this)}),v.Events.listen({type:"keyup",node:this.__input,call:function(v){return function(A){var z;if(37===(z=A.keyCode())||39===z||36===z||35===z)return A.preventDefault(),void(v.cursor||v.showCursor(A));v.initCursor(A),v.showCursor(A),v._onKeyup&&v._onKeyup(v,A)}}(this)}),v.Events.listen({type:"focus",node:this.__input,call:function(v){return function(A){var z;v.hasShadowFocus()||(v.enterInput(),v.addClass("cui-has-focus"),v.__initShadowInput(),"function"==typeof v._onFocus&&v._onFocus(v,A),null!=(z=v.__invalidTooltip)&&z.show(),v.__setCursor(A))}}(this)}),L=null,v.Events.listen({type:"mousedown",node:this.__input,call:function(A){return function(z){var T,k;return L=[A.__input.offsetWidth,A.__input.offsetHeight],k=function(){if(L[0]!==A.__input.offsetWidth||L[1]!==A.__input.offsetHeight)return v.Events.trigger({type:"content-resize",node:A.__input})},T=v.Events.listen({type:"mousemove",call:function(){k()}}),v.Events.listen({type:"mouseup",only_once:!0,capture:!0,call:function(A){v.Events.ignore(T)}})}}(this)}),v.Events.listen({type:"mouseup",node:this.__input,call:function(v){return function(A){v.__setCursor(A)}}(this)}),v.Events.listen({type:"blur",node:this.__input,call:function(v){return function(A){v.hasShadowFocus()||(v.removeClass("cui-has-focus"),v.leaveInput(),v.__removeShadowInput(),"function"==typeof v._onBlur&&v._onBlur(v,A))}}(this)}),v.Events.listen({type:"input",node:this.__input,call:function(v){return function(A,z){A.isDefaultPrevented()||(v.checkInput(),v.moveCursor(A),v.showCursor(A),v.getValueForStore(v.__input.value)!==v.getValue()&&v.storeValue(v.__input.value))}}(this)}),v.Events.listen({type:"paste",node:this.__input,call:function(v){return function(A){return v.__focusShadowInput()}}(this)}),v.Events.listen({type:"click",node:this.__input,call:function(v){return function(A){A.stopPropagation(),"function"==typeof v._onClick&&v._onClick(v,A)}}(this)}),this._content_size&&v.dom.waitForDOMInsert({node:this.__input}).done(function(v){return function(){if(!v.isDestroyed())return v.setContentSize()}}(this)),this.__input},Input.prototype.__setCursor=function(A){return v.setTimeout((z=this,function(){var v,L,T,k,x;if(z.initCursor(A),null===z.cursor&&(x=z.__input.selectionStart)===z.__input.selectionEnd&&z.__input.selectionEnd!==z.__input.value.length&&(L=z.getInputBlocks()).length>0)for(T=0,k=L.length;T0?A.substr(x-1,1):null,T=x>1?A.substr(x-2,1):null,"-"!==L||(null!=T?T.match(/[0-9]/):void 0)||(S="-"+S,x-=1),z.push(new v.NumberInputBlock({start:x,string:S}));return z},Input.prototype.__overwriteBlocks=function(A){var z,L,T,k;for(z=[],L=T=0,k=A.length;0<=k?Tk;L=0<=k?++T:--T)z.push(new v.InputBlock({start:L,string:A.substr(L,1)}));return z.push(new v.InputBlock({start:A.length,string:""})),z},Input.prototype.getMarkedBlock=function(){var v,A,z,L,T,k,x;if(!1===(A=this.getInputBlocks())||0===A.length)return null;for(x=this.__input.selectionStart,z=this.__input.selectionEnd,L=T=0,k=A.length;T1&&(L=-1===T?k.length-1:0),A=k[L]){for(V=[J[0]],S=X=0,H=k.length;Xthis._rows||this.preventInvalidInput()&&A.length>0&&!1===this.checkInput(this.correctValueForInput(A))||(this._readonly||(this.__input.value=this.correctValueForInput(A),this.__input.setSelectionRange(this.__shadow.selectionStart,this.__shadow.selectionEnd)),this.initCursor(v))},Input.prototype.checkValue=function(A){if(!v.util.isString(A))throw new Error(this.__cls+".checkValue(value): Value needs to be String or null.");return this},Input.prototype.render=function(){var v,A,z,L;for(Input.__super__.render.call(this),this.replace(this.__createElement(),this.getTemplateKeyForRender()),v=0,z=(L=["empty","invalid","valid"]).length;v0},Input.prototype.checkInput=function(v){var A;return A=this.__checkInputInternal(v),this.hasShadowFocus()||this.updateInputState(A),A},Input.prototype.__checkInputInternal=function(v){return null==v&&(v=this.__input.value),!this.__checkInput||this.__checkInput(v)},Input.prototype.setInputHint=function(v){var A;return null!=(A=this.__inputHints.input)?A.setText(v):void 0},Input.prototype.setInvalidHint=function(v){var A;return null!=(A=this.__inputHints.invalid)?A.setText(v):void 0},Input.prototype.setValidHint=function(v){var A;return null!=(A=this.__inputHints.valid)?A.setText(v):void 0},Input.prototype.displayValue=function(){var v;return Input.__super__.displayValue.call(this),(v=this.getValueForDisplay()||"")!==this.__input.value&&(this.__input.value=v),this.checkInput(),this},Input.prototype.getValueForDisplay=function(){return this._getValueForDisplay?this._getValueForDisplay(this,this.getValue()):this.getValue()},Input.prototype.getValueForInput=function(){return this._getValueForInput?this._getValueForInput(this,this.getValue()):this.getValue()},Input.prototype.correctValueForInput=function(v){return this._correctValueForInput?this._correctValueForInput(this,v):v},Input.prototype.getDefaultValue=function(){return""},Input.prototype.getValue=function(){var v;return this.hasData()?Input.__super__.getValue.call(this):null!=(v=this.__input)?v.value:void 0},Input.prototype.enable=function(){var v;return Input.__super__.enable.call(this),null!=(v=this.__input)?v.removeAttribute("disabled"):void 0},Input.prototype.disable=function(){var v;return Input.__super__.disable.call(this),null!=(v=this.__input)?v.setAttribute("disabled",!0):void 0},Input.prototype.focus=function(){var v;return null!=(v=this.__input)&&v.focus(),this},Input.prototype.getCursorBlocks=function(){var v;return v="function"==typeof this.__getCursorBlocks?this.__getCursorBlocks(this.__input.value):void 0,this.checkBlocks(v)},Input.prototype.findBlock=function(v,A,z){var L,T,k,x;for(T=0,k=v.length;T=L.start&&A<=L.end)return L;if("left"===z&&A>=L.start&&AL.start&&A<=L.end)return L;if("touch"===z&&A>=L.start&&A<=L.end)return L}return null},Input.prototype.initCursor=function(A){var z,L,T,k,x,S,E,Y,P,q,F,H,X,V,U,J,tt;if(!1!==(T=this.getCursorBlocks())){if(0===T.length)return console.warn("initCursor: 0 cursor blocks"),void(this.cursor=null);if(tt=this.__input.selectionStart,S=this.__input.selectionEnd,q=this.__input.value.length,this.cursor={shift:null!=(H=this.cursor)?H.shift:void 0,start:null,end:null},"keyup"===A.getType()&&16===A.keyCode()&&(this.cursor.shift=null),"keydown"!==A.getType()||46!==(X=A.keyCode())&&8!==X||(this.cursor.shift=null),v.util.isUndef(this.cursor.shift)&&(this.cursor.shift=null),this.cursor.start=this.findBlock(T,tt,"left"),this.cursor.end=this.findBlock(T,S,"right"),(null!=(V=this.cursor.end)?V.idx:void 0)<(null!=(U=this.cursor.start)?U.idx:void 0)&&(this.cursor.end=this.cursor.start),tt===S&&!this.cursor.start&&!this.cursor.end){for(k=null,x=null,E=Y=tt;Y>=0;E=Y+=-1)if(z=this.findBlock(T,E,"left")){k=tt-E;break}for(E=P=tt,J=q;Px?L:z)}F=this.getRangeFromCursor(),this.cursor.start||this.cursor.end?this.cursor.start?this.cursor.end||(this.cursor.end=this.cursor.start):this.cursor.start=this.cursor.end:this.cursor.start=this.cursor.end=T[T.length-1],F[0]===tt&&F[1]}else this.cursor=null},Input.prototype.showCursor=function(v){var A;return this.cursor&&(A=this.getRangeFromCursor(),this.__input.setSelectionRange(A[0],A[1])),this},Input.prototype.checkSelectionChange=function(){var v;return v=this.getSelection(),!this.__currentSelection||this.__currentSelection.start===v.start&&this.__currentSelection.end===v.end||this.handleSelectionChange(),this.__currentSelection=v,this},Input.prototype.getRangeFromCursor=function(){var v,A;return[null!=(v=this.cursor.start)?v.start:void 0,null!=(A=this.cursor.end)?A.end:void 0]},Input.prototype.moveCursor=function(v){var A,z,L,T,k,x,S,E;if(this.cursor)if(v.preventDefault(),!1!==(A=this.getCursorBlocks())&&0!==A.length){if(36===v.keyCode())return this.cursor.start=A[0],void(this.cursor.end=A[0]);if(35===v.keyCode())return this.cursor.start=A[A.length-1],void(this.cursor.end=A[A.length-1]);if(46!==(null!=(k=this.lastKeyDownEvent)?k.keyCode():void 0))if(8!==(null!=(x=this.lastKeyDownEvent)?x.keyCode():void 0)){if(T=37===v.keyCode(),S=39===v.keyCode()||"input"===v.getType(),E=this.cursor.start.idx,L=this.cursor.end.idx,!A[E]||!A[L])return console.warn("repositioning cursor, not executing cursor move"),void this.initCursor(v);if(46!==v.keyCode())return v.shiftKey()&&null===this.cursor.shift&&(this.cursor.shift=this.cursor.end.idx),null===this.cursor.shift?E===L?(T?E>0&&(this.cursor.start=A[E-1]):S&&E=L?E>0&&(this.cursor.start=A[E-1]):this.cursor.end=A[L-1]:S&&(z>E?this.cursor.start=A[E+1]:L=0}},renderFunction:{mandatory:!0,default:function(z){return A(z,v.defaults.marked_opts)},check:Function}})},MarkdownInput.prototype.readOpts=function(){var A,z,L,T,k,x;for(MarkdownInput.__super__.readOpts.call(this),this._textarea=!0,this.__preview=null,this.__updatePreview=(x=this,function(){return x.updatePreview()}),k={top:{}},A=0,L=(T=["maximize","maximize_horizontal","maximize_vertical"]).length;A1))return z.selected.startsWith(v)&&z.selected.endsWith(v)?(this.setValue(z.before+z.selected.substr(A,z.selected.length-2*A)+z.after),this.setSelection({start:z.start,end:z.end-2*A})):(this.setValue(z.before+v+z.selected+v+z.after),this.setSelection({start:z.start,end:z.end+2*A}))},MarkdownInput.prototype.makeOrderedList=function(){return this.__makeList(!1)},MarkdownInput.prototype.makeUnorderedList=function(){return this.__makeList(!0)},MarkdownInput.prototype.checkList=function(){var v;return v=this.__makeList(null,!0),console.debug("selection is type",v)},MarkdownInput.prototype.__makeList=function(A,z){var L,T,k,x,S,E,Y,P,q,F,H;if(null==A&&(A=!0),null==z&&(z=!1),q=(F=this.getSelection()).selected.split("\n"),""!==F.before&&!F.before.endsWith("\n"))return null;for(H=null,z?T=void 0:Y=A?"- ":"1. ",E=[],L=0,x=q.length;L=0}},onRemove:{check:Function},onDequeue:{check:Function},onBeforeDone:{check:Function}})},FileUploadFile.prototype.queue=function(){return this.__progress.status="QUEUED",this.__dfr.notify(this),this},FileUploadFile.prototype.getImage=function(){var A,z,L;return this.__imgDiv?this.__imgDiv:((z=v.dom.img()[0]).src=window.URL.createObjectURL(this._file),z.onload=(L=this,function(v){return z.width0?(this.__upload=new v.XHR({url:A,form:L}),this.__upload.start().progress((k=this,function(v,A,z,L){if("download"!==v&&"ABORT"!==k.__progress.status)return k.__progress.status=A===z?"COMPLETED":"PROGRESS",k.__progress.loaded=A,k.__progress.total=z,k.__progress.percent=L,k.__dfr.notify(k)})).done(function(A){return function(z){return A.__progress.data=z,T=function(){return A.__progress.status="DONE",A.__upload=null,A.__dfr.resolve(A)},A._onBeforeDone?v.decide(A._onBeforeDone(A)).done(T).fail((function(){return A.__progress.status="ABORT",A.__upload=null,A.__dfr.reject(A)})):T()}}(this)).fail(function(v){return function(A,z,L){return"abort"===L&&(v.__progress.status="ABORT"),"ABORT"!==v.__progress.status&&(v.__progress.status="FAILED"),v.__progress.fail=v.__upload.response(),v.__progress.fail_xhr=v.__upload.getXHR(),v.__upload=null,v.__dfr.reject(v)}}(this))):v.setTimeout({call:function(v){return function(){return v.__progress.status="FAILED",v.__upload=null,v.__dfr.reject(v)}}(this)}),this.__progress.status="STARTED",this.__progress.percent=0,this.__dfr.notify(this),this.__promise},FileUploadFile}(v.Element)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.Template.loadTemplateText(z(139)),v.FileUploadButton=function(z){function FileUploadButton(v){var A,z;this.__onClick=(A=this.__onClick,z=this,function(){return A.apply(z,arguments)}),FileUploadButton.__super__.constructor.call(this,v),this.addClass("cui-button"),this._drop&&this._fileUpload.initDropZone({dropZone:this.DOM})}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(FileUploadButton,z),FileUploadButton.prototype.initOpts=function(){return FileUploadButton.__super__.initOpts.call(this),this.addOpts({fileUpload:{mandatory:!0,check:v.FileUpload},multiple:{default:!0,check:function(v){return!0===v||!1===v||v instanceof Function}},directory:{check:Boolean},drop:{check:Boolean},accept:{check:String}})},FileUploadButton.prototype.getTemplateName=function(){return this.__has_left=!0,this.__has_right=!0,"file-upload-button-ng"},FileUploadButton.prototype.readOpts=function(){this.__ownClick=this.opts.onClick,this.opts.onClick=this.__onClick,FileUploadButton.__super__.readOpts.call(this)},FileUploadButton.prototype.run=function(v,A){return this.__onClick(v)},FileUploadButton.prototype.__onClick=function(v,A){var z,L;null!=(L=this.__ownClick)&&L.call(this,v,A),v.isDefaultPrevented()||v.isImmediatePropagationStopped()||(z=this._multiple instanceof Function?!0===this._multiple.call(this,v,A):this._multiple,this._fileUpload.initFilePicker({directory:(v.altKey()||v.shiftKey())&&this._multiple||this._directory,multiple:z,accept:this._accept}))},FileUploadButton}(v.Button),v.ready((function(){return v.dom.append(document.body,v.dom.htmlToNodes('\x3c!-- CUI.FileUploadButton --\x3e
    \x3c!-- /CUI.FileUploadButton --\x3e'))}))}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n\n\n'},function(v,A,z){(function(v){var A={}.hasOwnProperty,z=[].indexOf||function(v){for(var A=0,z=this.length;A=1}},onAdd:{check:Function},onBatchStart:{check:Function},onBatchQueued:{check:Function},onBatchDone:{check:Function},onProgress:{check:Function},onDone:{check:Function},onUpdate:{check:Function},onDequeue:{check:Function},onRemove:{check:Function},onFail:{check:Function},onAlways:{check:Function},onBeforeDone:{check:Function}})},FileUpload.prototype.readOpts=function(){return FileUpload.__super__.readOpts.call(this),this.setUrl(this._url)},FileUpload.prototype.setUrl=function(v){return this.__url=v,this.__url},FileUpload.prototype.getUrl=function(){return this.__url},FileUpload.prototype.getFiles=function(A){var L,T,k,x,S,E;for(v.util.isString(A)&&(A=[A]),T=[],k=0,x=(S=this.__files).length;k=0))&&T.push(L);return T},FileUpload.prototype.getInfo=function(){var v,A,z,L,T,k,x,S,E,Y,P,q;for(P={},q=0,S=0,L=0,T=0,z=!0,k=0,x=(E=this.getFiles()).length;k0){for(F=[],T=[],S=0,E=(q=z.files).length;S0&&console.warn("Files empty or directories, not uploaded...",F),T.length>0&&Y.queueFiles(T)}return A.stopPropagation(),A.preventDefault(),!1})}),L=0,T=(S=this.__dropZones).length;L=0}},string:{mandatory:!0,check:function(A){return v.util.isString(A)}}})},InputBlock.prototype.setString=function(A){return v.util.assert(v.util.isString(A),v.util.getObjectClass(this)+".setString","Parameter needs to be String with a minimum length of 1.",{string:A}),this.__string=A,this.calcSizes(),this},InputBlock.prototype.getString=function(){return this._string},InputBlock.prototype.calcSizes=function(){var v,A,z,L;for(this.__len=this.__string.length,this.__end=this.__start+this.__len,v=0,z=(L=["len","end","start","string"]).length;v0}},symbol_before:{default:!1,check:Boolean},store_as_integer:{default:!1,check:Boolean},decimalpoint:{mandatory:!0,default:".",check:[",","."]},separator:{check:function(A){return v.util.isString(A)&&A.length>0}},min:{default:null,check:function(A){return v.util.isNumber(A)}},max:{default:null,check:function(A){return v.util.isNumber(A)}}}),this.removeOpt("checkInput"),this.removeOpt("getValueForDisplay"),this.removeOpt("getValueForInput"),this.removeOpt("correctValueForInput"),this.removeOpt("prevent_invalid_input")},NumberInput.prototype.readOpts=function(){return NumberInput.__super__.readOpts.call(this),this._checkInput=this.__checkInput,this._prevent_invalid_input=!0,this.setMin(this._min),this.setMax(this._max)},NumberInput.prototype.setMin=function(v){this.__min=v},NumberInput.prototype.setMax=function(v){this.__max=v},NumberInput.prototype.formatValueForDisplay=function(A,z){var L,T,k,x;if(null==A&&(A=this.getValue()),null==z&&(z=!1),v.util.assert("number"==typeof A||null===A,"NumberInput.formatValueForDisplay","value needs to be Number or null",{value:A,type:typeof A}),v.util.isEmpty(A))return"";if((k=(this._store_as_integer?(A/Math.pow(10,this._decimals)).toFixed(this._decimals):A+"").split(".")).length>1?(T=k[0],L=k[1]):(T=k[0],L=""),this._decimals>0)for(;L.length0?T+this._decimalpoint+L:T:(x=this._decimals>0?this.__addSeparator(T)+this._decimalpoint+L:this.__addSeparator(T),this.__addSymbol(x))},NumberInput.prototype.getValue=function(){var v;return v=NumberInput.__super__.getValue.call(this),this.hasData()?v:this.getValueForStore(v)},NumberInput.prototype.getValueForDisplay=function(){return this.formatValueForDisplay(this.getValue())},NumberInput.prototype.getValueForStore=function(A){var z;return v.util.isString(A)||(A+=""),z=parseFloat(A.replace(/,/,".")),isNaN(z)?null:this._store_as_integer?parseInt((z*Math.pow(10,this._decimals)).toFixed(0)):z},NumberInput.prototype.getDefaultValue=function(){return null},NumberInput.prototype.setValue=function(v,A){return null==A&&(A={}),this.checkValue(v),NumberInput.__super__.setValue.call(this,v,A)},NumberInput.prototype.checkValue=function(A){if(null===A)return!0;if(this._decimals>0&&v.util.isFloat(A))return!0;if(v.util.isInteger(A))return!0;throw new Error(this.__cls+".setValue(value): Value needs to be Number or null.")},NumberInput.prototype.__addSymbol=function(A){return v.util.isEmpty(this._symbol)?A:this._symbol_before?this._symbol+" "+A:A+" "+this._symbol},NumberInput.prototype.__addSeparator=function(A){var z,L,T,k,x,S,E;if(v.util.isEmpty(this._separator))return A;for((T=A.startsWith("-"))&&(A=A.substr(1)),S=[],L=z=0,k=(E=A.split("").reverse()).length;z0&&S.push(this._separator),S.push(x);return T&&S.push("-"),S.reverse(),S.join("")},NumberInput.prototype.correctValueForInput=function(v){return v.replace(/[,\.]/g,this._decimalpoint)},NumberInput.prototype.getValueForInput=function(){return this.formatValueForDisplay(null,!0)},NumberInput.prototype.checkInput=function(v){return null===v||NumberInput.__super__.checkInput.call(this,v)},NumberInput.prototype.__checkInput=function(A){var z,L,T,k,x;if(""===(x=(x=this.hasShadowFocus()?A:A.replace(this._symbol,"")).trim()))return!0;if(this._separator&&(k=new RegExp(RegExp.escape(this._separator),"g"),x=x.replace(k,"")),-1===(L=x.lastIndexOf(this._decimalpoint)))z=x,T="";else{if(0===this._decimals)return!1;z=x.substring(0,L),T=x.substring(L+1)}if(T.length>this._decimals)return!1;if(z.length>0&&!z.match(/^((0|[1-9]+[0-9]*)|(-|-[1-9]|-[1-9][0-9]*))$/))return!1;if(!v.util.isNull(this.__min)){if(this.__min>=0&&"-"===z)return!1;if(zthis.__max)&&(!!T.match(/^([0-9]*)$/)&&!(T.length>this._decimals))},NumberInput.format=function(A,z){var L,T;return null==z&&(z={}),v.util.isEmpty(A)&&(A=null),v.util.isFloat(A)&&!z.hasOwnProperty("decimals")&&(L=A+"",z.decimals=L.length-L.indexOf(".")-1),(T=new v.NumberInput(z)).start(),T.checkInput(A+"")?T.formatValueForDisplay(A):null},NumberInput.parse=function(v,A){var z,L,T,k,x;return isNaN(v.replace(/[,\.]/g,""))?null:(isNaN(A)&&(A=0),z=v.indexOf(","),T=v.indexOf("."),-1===z&&-1===T?parseInt(v):(T>0&&z>0&&(x=T>z?/,/g:/\./g),!x&&A>0&&(","===(L=v[v.length-1-A])?x=/\./g:"."===L&&(x=/,/g)),x||0!==A||(null!=(k=v.match(/^\d{1,3}([\.,]\d{3})+/))?k[0]:void 0)===v&&(x=T>0?/\./g:/,/g),x&&(v=v.replace(x,"")),0===A?parseInt(v):(v=v.replace(/,/,"."),parseFloat(v))))},NumberInput}(v.Input)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.EmailInput=function(z){function EmailInput(){return EmailInput.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(EmailInput,z),EmailInput.prototype.initOpts=function(){return EmailInput.__super__.initOpts.call(this),this.removeOpt("checkInput")},EmailInput.prototype.readOpts=function(){return EmailInput.__super__.readOpts.call(this),this._checkInput=this.__checkInput},EmailInput.prototype.__checkInput=function(A){return!(!v.util.isEmpty(A)&&!v.EmailInput.regexp.exec(A))},EmailInput.unicode_ranges="ㄱ-힝A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶ-ͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԣԱ-Ֆՙա-ևא-תװ-ײء-يٮ-ٯٱ-ۓەۥ-ۦۮ-ۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴ-ߵߺऄ-हऽॐक़-ॡॱ-ॲॻ-ॿঅ-ঌএ-ঐও-নপ-রলশ-হঽৎড়-ঢ়য়-ৡৰ-ৱਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽૐૠ-ૡଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽଡ଼-ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘ-ౙౠ-ౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠ-ೡഅ-ഌഎ-ഐഒ-നപ-ഹഽൠ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะา-ำเ-ๆກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆໜ-ໝༀཀ-ཇཉ-ཬྈ-ྋက-ဪဿၐ-ၕၚ-ၝၡၥ-ၦၮ-ၰၵ-ႁႎႠ-Ⴥა-ჺჼᄀ-ᅙᅟ-ᆢᆨ-ᇹሀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙶᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦩᧁ-ᧇᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮ-ᮯᰀ-ᰣᱍ-ᱏᱚ-ᱽᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₔℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-Ɐⱱ-ⱽⲀ-ⳤⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆷㇰ-ㇿ㐀䶵一鿃ꀀ-ꒌꔀ-ꘌꘐ-ꘟꘪ-ꘫꙀ-ꙟꙢ-ꙮꙿ-ꚗꜗ-ꜟꜢ-ꞈꞋ-ꞌꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꤊ-ꤥꤰ-ꥆꨀ-ꨨꩀ-ꩂꩄ-ꩋ가힣豈-鶴侮-頻並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",EmailInput.regexp=RegExp("^(?:["+EmailInput.unicode_ranges+"\\w!#$%&'*+/=?^_`{|}~-]+(?:\\.["+EmailInput.unicode_ranges+"\\w!#$%&'*+/=?^_`{|}~-]+)*|\"(?:["+EmailInput.unicode_ranges+" \\w| \\"+EmailInput.unicode_ranges+'w.])*")@(?:['+EmailInput.unicode_ranges+"\\w.-]+\\.["+EmailInput.unicode_ranges+"\\w]{2,}|localhost)$","i"),EmailInput}(v.Input)}).call(this,z(0))},function(v,A,z){(function(v){var A={}.hasOwnProperty;v.CodeInput=function(z){function CodeInput(){return CodeInput.__super__.constructor.apply(this,arguments)}return function(v,z){for(var L in z)A.call(z,L)&&(v[L]=z[L]);function ctor(){this.constructor=v}ctor.prototype=z.prototype,v.prototype=new ctor,v.__super__=z.prototype}(CodeInput,z),CodeInput.availableModes=["html","javascript","json","css"],CodeInput.prototype.readOpts=function(){return CodeInput.__super__.readOpts.call(this),this._textarea=!0,v.CodeInput.loadAcePromise||(v.CodeInput.loadAcePromise=this.__fetchLibrary()),this},CodeInput.prototype.initOpts=function(){return CodeInput.__super__.initOpts.call(this),this.addOpts({mode:{check:v.CodeInput.availableModes,default:"javascript"}})},CodeInput.prototype.render=function(){return CodeInput.__super__.render.call(this),v.CodeInput.loadAcePromise.done((A=this,function(){var v,z,L;if(v=window.ace,A.__aceEditor=v.edit(A.__input,{mode:"ace/mode/"+A._mode,selectionStyle:"text"}),L=null!=(z=A.__data)?z[A._name]:void 0){try{L=JSON.parse(L),L=JSON.stringify(L,null,"\t")}catch(v){}A.__aceEditor.setValue(L,-1),A.__aceEditor.clearSelection()}return A.__aceEditor.on("change",(function(){return A.storeValue(A.__aceEditor.getValue())}))}));var A},CodeInput.prototype.destroy=function(){var v;return null!=(v=this.__aceEditor)&&v.destroy(),CodeInput.__super__.destroy.call(this)},CodeInput.prototype.__fetchLibrary=function(){var A;return A=new v.Deferred,v.loadScript("https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.6/ace.js").done((function(){var z,L,T,k,x;for(k=[],z=0,L=(x=v.CodeInput.availableModes).length;z=0,"CUI.DateTime.format",'output_format must be on of "'+v.DateTime.formatTypes.join(",")+'".',{parm1:z,output_format:J}),A.isMoment(z))U=z;else{if(ot=null!=z?z.trim():void 0,v.util.isEmpty(ot))return null;U=this.parse(ot,this.__input_formats_known)}if(U.isValid()&&v.util.isNull(k)&&(k=this.getCurrentFormat().type),!U.isValid()){for(E=[],Y=0,H=(tt=this.__input_formats_known).length;Y0?"invalid":null,DateTime.__super__.storeValue.call(this,v,A),this},DateTime.prototype.getDigiDisplay=function(A){var z,L,T,k,x,S,E;for(T=[],k=0,S=(E=A.split("")).length;k-1?(z=["hour","hour","minute","second","am_pm","am_pm"][x],"A"===L||"a"===L?(T.push({mask:"[aApP]",attr:{cursor:z,title:z}}),T.push({mask:"[mM]",attr:{cursor:z,title:z}})):T.push({mask:"[0-9]",attr:{cursor:z}})):"*"===L?T.push({mask:"[0-9A-Z+-:. ]"}):T.push({static:":"});return this.__digiDisplay=new v.DigiDisplay({digits:T})},DateTime.prototype.openPopover=function(A){var z;return this.initDateTimePicker(),this.__popover=new v.Popover({element:A,handle_focus:!1,onHide:(z=this,function(){return z.displayValue(),z.closePopover()}),placement:"se",class:"cui-date-time-popover",pane:{content:this.__dateTimeTmpl}}),this.updateDateTimePicker(),this.setCursor("day"),this.__popover.show(),this},DateTime.prototype.closePopover=function(){return this.__popover&&(this.__popover.destroy(),delete this.__popover),this},DateTime.prototype.updateDateTimePicker=function(){return this.setMomentFromInput(),console.debug("updating popover...",this.__input_format),this.drawDate(),this.setClock(),this.setDigiClock(),this.setPrintClock(),this},DateTime.prototype.destroy=function(){return this.closePopover(),DateTime.__super__.destroy.call(this)},DateTime.prototype.setClock=function(A){var z,L,T;return null==A&&(A=this.__current_moment),0,z=A.hour()%12+(L=A.minute()+(T=A.second()+0)/60)/60,v.dom.setStyleOne(this.__hour,"transform","rotate("+30*z+"deg)"),v.dom.setStyleOne(this.__minute,"transform","rotate("+6*L+"deg)"),v.dom.setStyleOne(this.__second,"transform","rotate("+6*T+"deg)")},DateTime.prototype.setDigiClock=function(v){var A;return null==v&&(v=this.__current_moment),A=this.__input_format.digi_clock,console.debug("setDigiClock",A,v,v.format(A)),A&&this.__digiDisplay.display(v.format(A)),this},DateTime.prototype.setPrintClock=function(A){var z;return null==A&&(A=this.__current_moment),this.__input_format.timezone_display?((z=A.clone()).tz(v.tz_data.tz),v.dom.empty(this.__timezone_display),v.dom.append(this.__timezone_display,z.format(this.__input_format.timezone_display))):this},DateTime.prototype.setTimezone=function(){},DateTime.prototype.UNUSEDgetTimezoneData=function(){return this.__tz_data?v.resolvedPromise():$.get(v.getPathToScript()+"/moment-timezone-meta.json").done((A=this,function(v){var z,L,T,k,x,S,E,Y,P;for(E=[],z={},L=0,k=v.length;L0))return A.invalid();for(Y=0,q=L.length;Y=0?this.__input_format=this.initFormat(S):this.__input_format=this.initFormat(this.__default_format),H.locale(A.locale()),H.year()>this._max_year?A.invalid():H;if(!L.some((function(v){return v.support_bc})))return A.invalid();if(x=!1,E=!1,z.startsWith("-"))x=!0,z=z.substring(1);else for(U=z.toLocaleUpperCase(),P=0,F=(X=v.DateTime.defaults.bc_appendix).length;P0&&(this.__current_moment=this.parse(v)),""!==v&&this.__current_moment.isValid()||(this.__current_moment=A(),this.__current_moment.__now=!0,this.__input_format=this.initFormat(this.__default_format))},DateTime.prototype.setInputFromMoment=function(){return this.__clearOverwriteMonthAndYear(),this.setValue(this.__current_moment.format(this.__input_format.input),{no_trigger:!1}),this},DateTime.prototype.__clearOverwriteMonthAndYear=function(){return this.__overwrite_month=null,this.__overwrite_year=null},DateTime.prototype.drawDate=function(v){var A;return v?A=v:(A=this.__current_moment.clone()).bc=this.__current_moment.bc,this.updateCalendar(A,!1)},DateTime.prototype.updateCalendar=function(A,z){return null==z&&(z=!0),v.dom.empty(this.__calendar),v.dom.append(this.__calendar,this.getDateTimeDrawer(A)),v.dom.append(this.__calendar,this.drawMonthTable(A)),v.dom.append(this.__calendar,this.drawYearMonthsSelect(A)),z&&(this.__current_moment=A.clone(),this.__current_moment.bc=A.bc,this.setInputFromMoment()),console.info("CUI.DateTime.updateCalendar:",this.__current_moment.format(this.__input_format.input)),this.markDay(),this},DateTime.prototype.getDateTimeDrawer=function(A){var z,L,T,k,x,S,E,Y,P,q,F,H,X;return z=this.__input_formats[0].clock_am_pm,T={month:A.month(),year:A.year(),date:A.date(),hour:null,minute:null,second:null,am_pm:null},this.__input_format.clock&&(T.hour=A.hour(),T.minute=A.minute(),T.second=A.second(),z&&(T.am_pm=12*Math.floor(T.hour/12),T.hour=T.hour%12)),q=function(v){return v<10?"0"+v:""+v},x=new v.Label({text:this.__locale_format.tab_date,class:"cui-select-date-title"}),k=new v.Select({name:"date",menu_class:"cui-date-time--select-menu",data:T,group:"date",onDataChanged:(X=this,function(){return X.updateCalendar(A.date(T.date))}),options:function(){var v,z,L,T;for(L=[],v=z=1,T=A.daysInMonth();1<=T?z<=T:z>=T;v=1<=T?++z:--z)L.push({text:q(v),value:v});return L}}).start(),P=new v.Select({name:"month",menu_class:"cui-date-time--select-menu",data:T,group:"date",onDataChanged:function(v){return function(){return v.updateCalendar(A.month(T.month))}}(this),options:function(){var v,A,z;for(z=[],A=v=0;v<=11;A=++v)z.push({text:q(A+1),value:A});return z}}).start(),H=new v.Select({name:"year",menu_class:"cui-date-time--select-menu",data:T,group:"date",onDataChanged:function(v){return function(){return v.updateCalendar(A.year(T.year))}}(this),options:function(v){return function(){var A,z,L,k,x,S;for(L=[],(z=T.year-20)=x;S=k<=x?++A:--A)L.push({text:""+S,value:S});return L}}(this)}).start(),this.__input_formats[0].clock&&(S=this.__input_format_no_time?[{text:"",value:null}]:[],F=new v.Label({text:this.__locale_format.tab_time,class:"cui-select-time-title"}),E=new v.Select({name:"hour",menu_class:"cui-date-time--select-menu",data:T,group:"time",onDataChanged:function(v){return function(L){return null===L.hour?(v.setInputFormat(!1),v.updateCalendar(A)):(v.setInputFormat(!0),z?v.updateCalendar(A.hour(T.hour+T.am_pm)):v.updateCalendar(A.hour(T.hour))),v.__popover.position()}}(this),options:function(){var v,A,L,T;if(T=S.slice(0),z)for(v=A=1;A<=12;v=++A)T.push({text:q(v),value:v%12});else for(v=L=0;L<=23;v=++L)T.push({text:q(v),value:v});return T}}).start(),Y=new v.Select({class:"cui-date-time-60-select",name:"minute",menu_class:"cui-date-time--select-menu",group:"time",data:T,onDataChanged:function(v){return function(z){return null===z.minute?(v.setInputFormat(!1),v.updateCalendar(A)):(v.setInputFormat(!0),v.updateCalendar(A.minute(T.minute))),v.__popover.position()}}(this),options:function(){var v,A,z;for(z=S.slice(0),A=v=0;v<=59;A=++v)z.push({text:q(A),value:A});return z}}).start(),z&&(L=new v.Select({class:"cui-date-time-am-pm-select",name:"am_pm",group:"time",data:T,onDataChanged:function(v){return function(z){return null===z.am_pm?(v.setInputFormat(!1),v.updateCalendar(A)):(v.setInputFormat(!0),v.updateCalendar(A.hour(T.hour+T.am_pm))),v.__popover.position()}}(this),options:function(){var v,A,L,T;for(L=S.slice(0),v=0,A=(T=["AM","PM"]).length;vq&&(q=null!=(J=X.text)?J.length:void 0);return(P=new v.Label({text:F[L.month].text})).setTextMaxChars(q),new v.HorizontalLayout({maximize_vertical:!1,maximize_horizontal:!0,class:"cui-date-time-footer",left:{content:new v.Buttonbar({class:"cui-date-time-header-month",buttons:[{icon:"left",onClick:function(v){return function(A){if(!(z.clone().subtract(1,"months").year()v._max_year))return z.add(1,"months"),v.drawDate(z)}}(this)}]})},right:{content:new v.Buttonbar({class:"cui-date-time-header-year",buttons:[{icon:"left",group:"year",onClick:function(v){return function(){if(!(L.year-1v._max_year))return z.add(1,"years"),v.drawDate(z)}}(this)}]})}}).DOM},DateTime.prototype.drawMonthTable=function(z){var L,T,k,x,S,E,Y,P,q,F,H,X,V,U,J,tt,et,it,ot,nt,rt,st,at;for(F=z.month(),st=z.year(),q=A([st,F,1,z.hour(),z.minute(),z.second(),0]),H=v.dom.table("cui-date-time-date"),v.Events.listen({node:H,type:"click",call:(at=this,function(A){var z,L;A.stopPropagation(),L=A.getTarget(),v.dom.closest(L,".cui-date-time-day")&&(z=v.dom.data(v.dom.closest(L,"td,.cui-td")),at.__input_format=at.initFormat(at.__default_format),at.__current_moment.year(z.year),at.__current_moment.month(z.month),at.__current_moment.date(z.date),at.updateCalendar(at.__current_moment),at.__input_formats[0].clock?at.__popover.position():at.closePopover())})}),it=v.dom.tr("cui-date-time-month-header"),v.dom.append(H,it),et=v.dom.th,(J=v.dom.div("cui-date-time-dow")).textContent=this.__locale_format.tab_week,v.dom.append(it,v.dom.append(et("cui-date-time-week-title"),J)),Y=P=V=this.start_day,U=this.start_day+6;V<=U?P<=U:P>=U;Y=V<=U?++P:--P)nt=A.weekdaysMin(Y%7),(k=v.dom.div("cui-date-time-dow")).textContent=nt,v.dom.addClass(k,"cui-date-time-day-"+nt.toLowerCase()),v.dom.append(it,v.dom.append(et(),k));for(q.subtract((q.day()-this.start_day+7)%7,"days"),Y=this.start_day,rt=0,X=A();;){if(T=q.year(),L=q.month(),x=q.date(),(Y-this.start_day)%7==0){if(6===rt)break;it=v.dom.tr(),v.dom.append(H,it),ot=q.week(),v.dom.append(it,v.dom.append(v.dom.td("cui-date-time-week"),v.dom.text(ot))),rt++}E=v.dom.td,(S=v.dom.span()).textContent=x,k=E("cui-date-time-day",{cursor:"day",datestr:[T,L,x].join("-")}),v.dom.append(k,S),LF?v.dom.addClass(k,"cui-date-time-next-month"):(v.dom.addClass(k,"cui-date-time-same-month"),st===X.year()&&F===X.month()&&x===X.date()&&v.dom.addClass(k,"cui-date-time-now")),v.dom.addClass(k,"cui-date-time-day-"+q.format("dd").toLowerCase()),tt=k,v.dom.append(it,tt),v.dom.data(tt,{date:x,month:L,year:T}),q.add(1,"days"),Y++}return H},DateTime.prototype.markDay=function(){var A,z,L,T,k,x,S,E;for(L=0,k=(S=v.dom.matchSelector(this.__dateTimeTmpl.DOM,".cui-date-time-calendar .cui-date-time-selected")).length;L0?A.format(z).replace("+"+A.year(),""+A.year()):(A.subtract(1,"year"),(A.format(z)+" "+v.DateTime.defaults.bc_appendix[0]).replace(A.year(),""+-1*A.year()))},DateTime.toMoment=function(A){return v.util.isEmpty(A)?null:new v.DateTime({input_types:null}).parse(A)},DateTime.stringToDateRange=function(A){return v.DateTimeRangeGrammar.stringToDateRange(A)},DateTime.dateRangeToString=function(A,z){return v.DateTimeRangeGrammar.dateRangeToString(A,z)},DateTime}(v.Input)}).call(this,z(0))},function(v,A){v.exports='\x3c!--\n * coffeescript-ui - Coffeescript User Interface System (CUI)\n * Copyright (c) 2013 - 2016 Programmfabrik GmbH\n * MIT Licence\n * https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org\n--\x3e\n\n
    \n\t
    \n\t\t
    \n\t\t
    \n\t\t
    \n\t
    \n\t
    \n\t\t
    \n\t\t
    \n\t\t\t
    \n\t\t\t\t
    \n\t\t\t\t\t
    \n\t\t\t\t\t
    \n\t\t\t\t\t
    \n\t\t\t\t
    \n\t\t\t
    \n\t\t\t
    \n\t\t\t
    \n\t\t
    \n\t
    \n\t\x3c!--\n\t\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\n\t
    \n\t\t\t\t
    \n\t\t\t
    \n\t\t\t\t
    \n\t\t\t
    --\x3e\n
    \n
    \n\t
    \n\t
    \n
    \n'},function(v,A,z){(function(v){z(151),v.Timezone=function(){function Timezone(){}return Timezone.timezones=[],Timezone.init=function(){var A,z,L,T,k,x,S,E,Y,P,q,F,H,X,V;for(L={},S=0,E=(q=v.util.moment.tz.names()).length;S2&&z.splice(Math.round(z.length/2)),(F=this.timezones).push.apply(F,z);this.timezones.sort((function(v,A){return v.displayName.localeCompare(A.displayName)})),this.timezones.sort((function(v,A){return parseInt(v.offset)-parseInt(A.offset)}))},Timezone.getTimezone=function(){return v.util.moment.tz.guess()},Timezone.getTimezoneName=function(v){return this.timezonesAbbrs[v]},Timezone.timezonesAbbrs={GMT:"Greenwich Mean Time",CET:"Central European Time",CEST:"Central European Summer Time",EEST:"Eastern European Summer Time",IDT:"Israel Daylight Time",MSK:"Moscow Time Zone",EAT:"East Africa Time",SAST:"South African Standard Time",EET:"Eastern European Time",CAT:"Central Africa Time",WAT:"West Africa Time",WEST:"Western European Summer Time",BST:"British Summer Time",EST:"Eastern Standard Time",EDT:"Eastern Daylight Time",CST:"Central Standard Time",CDT:"Central Daylight Time",MST:"Mountain Standard Time",MDT:"Mountain Daylight Time",PST:"Pacific Standard Time",PDT:"Pacific Daylight Time",IST:"Indian Standard Time",JST:"Japan Standard Time",HDT:"Hawaii-Aleutian Daylight Time",HST:"Hawaii–Aleutian Time",SST:"Samoa Standard Time",AKDT:"Alaska Daylight Time",ACDT:"Australian Central Daylight Savings Time",ACST:"Australian Central Standard Time",ADT:"Atlantic Daylight Time",AEDT:"Australian Eastern Daylight Savings Time",AEST:"Australian Eastern Standard Time",AST:"Atlantic Standard Time",AWST:"Australian Western Standard Time",ChST:"Chamorro Standard Time",HKT:"Hong Kong Time",KST:"Korea Standard Time",NDT:"Newfoundland Daylight Time",NZDT:"New Zealand Daylight Time",PKT:"Pakistan Standard Time",WIB:"Western Indonesia Time",WIT:"Eastern Indonesia Time",WITA:"Indonesia Central Time Zone"},Timezone}(),v.ready((function(){return v.Timezone.init()}))}).call(this,z(0))},function(v,A,z){(v.exports=z(152)).tz.load(z(153))},function(v,A,z){var L,T,k;//! moment-timezone.js //! version : 0.5.27 //! Copyright (c) JS Foundation and other contributors //! license : MIT