ixbrl-viewer 1.4.20__py3-none-any.whl → 1.4.49__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ixbrl-viewer might be problematic. Click here for more details.
- iXBRLViewerPlugin/__init__.py +77 -49
- iXBRLViewerPlugin/_version.py +2 -2
- iXBRLViewerPlugin/constants.py +86 -1
- iXBRLViewerPlugin/featureConfig.py +4 -1
- iXBRLViewerPlugin/iXBRLViewer.py +202 -131
- iXBRLViewerPlugin/plugin.py +7 -0
- iXBRLViewerPlugin/viewer/dist/ixbrlviewer.js +1 -1
- iXBRLViewerPlugin/viewer/dist/ixbrlviewer.js.LICENSE.txt +9 -2
- iXBRLViewerPlugin/viewer/i18next-parser.config.js +1 -1
- iXBRLViewerPlugin/viewer/src/data/utr.json +1 -0
- iXBRLViewerPlugin/viewer/src/html/fact-details.html +69 -38
- iXBRLViewerPlugin/viewer/src/html/footer-logo.html +4 -0
- iXBRLViewerPlugin/viewer/src/html/footnote-details.html +1 -1
- iXBRLViewerPlugin/viewer/src/html/inspector.html +324 -211
- iXBRLViewerPlugin/viewer/src/i18n/cy/balancetypes.json +1 -0
- iXBRLViewerPlugin/viewer/src/i18n/cy/currencies.json +13 -0
- iXBRLViewerPlugin/viewer/src/i18n/cy/datatypes.json +9 -0
- iXBRLViewerPlugin/viewer/src/i18n/cy/labelroles.json +24 -0
- iXBRLViewerPlugin/viewer/src/i18n/cy/referenceparts.json +10 -0
- iXBRLViewerPlugin/viewer/src/i18n/cy/scale.json +16 -0
- iXBRLViewerPlugin/viewer/src/i18n/cy/tooltips.json +17 -0
- iXBRLViewerPlugin/viewer/src/i18n/cy/translation.json +179 -0
- iXBRLViewerPlugin/viewer/src/i18n/en/balancetypes.json +4 -0
- iXBRLViewerPlugin/viewer/src/i18n/en/datatypes.json +10 -0
- iXBRLViewerPlugin/viewer/src/i18n/en/labelroles.json +4 -0
- iXBRLViewerPlugin/viewer/src/i18n/en/scale.json +16 -0
- iXBRLViewerPlugin/viewer/src/i18n/en/tooltips.json +17 -0
- iXBRLViewerPlugin/viewer/src/i18n/en/translation.json +56 -24
- iXBRLViewerPlugin/viewer/src/i18n/es/balancetypes.json +4 -0
- iXBRLViewerPlugin/viewer/src/i18n/es/datatypes.json +10 -0
- iXBRLViewerPlugin/viewer/src/i18n/es/labelroles.json +24 -0
- iXBRLViewerPlugin/viewer/src/i18n/es/scale.json +16 -0
- iXBRLViewerPlugin/viewer/src/i18n/es/tooltips.json +17 -0
- iXBRLViewerPlugin/viewer/src/i18n/es/translation.json +70 -37
- iXBRLViewerPlugin/viewer/src/icons/dark-mode.svg +4 -0
- iXBRLViewerPlugin/viewer/src/img/arelle-dark.svg +179 -0
- iXBRLViewerPlugin/viewer/src/img/inline-viewer-dark.svg +59 -0
- iXBRLViewerPlugin/viewer/src/js/accordian.js +3 -2
- iXBRLViewerPlugin/viewer/src/js/aspect.js +18 -10
- iXBRLViewerPlugin/viewer/src/js/aspect.test.js +2 -2
- iXBRLViewerPlugin/viewer/src/js/balance.js +14 -0
- iXBRLViewerPlugin/viewer/src/js/calculation.js +45 -34
- iXBRLViewerPlugin/viewer/src/js/calculationInspector.js +4 -7
- iXBRLViewerPlugin/viewer/src/js/chart.js +23 -21
- iXBRLViewerPlugin/viewer/src/js/concept.js +27 -2
- iXBRLViewerPlugin/viewer/src/js/concept.test.js +23 -2
- iXBRLViewerPlugin/viewer/src/js/datatype.js +20 -0
- iXBRLViewerPlugin/viewer/src/js/datatype.test.js +62 -0
- iXBRLViewerPlugin/viewer/src/js/dialog.js +6 -4
- iXBRLViewerPlugin/viewer/src/js/fact.js +41 -8
- iXBRLViewerPlugin/viewer/src/js/fact.test.js +47 -13
- iXBRLViewerPlugin/viewer/src/js/index.js +11 -3
- iXBRLViewerPlugin/viewer/src/js/inspector.js +560 -160
- iXBRLViewerPlugin/viewer/src/js/inspector.test.js +1 -2
- iXBRLViewerPlugin/viewer/src/js/ixbrlviewer.js +129 -31
- iXBRLViewerPlugin/viewer/src/js/ixbrlviewer.test.js +133 -20
- iXBRLViewerPlugin/viewer/src/js/ixnode.js +1 -1
- iXBRLViewerPlugin/viewer/src/js/menu.js +25 -7
- iXBRLViewerPlugin/viewer/src/js/number-matcher.js +2 -2
- iXBRLViewerPlugin/viewer/src/js/outline.js +2 -4
- iXBRLViewerPlugin/viewer/src/js/period.js +0 -1
- iXBRLViewerPlugin/viewer/src/js/report.js +68 -13
- iXBRLViewerPlugin/viewer/src/js/report.test.js +77 -6
- iXBRLViewerPlugin/viewer/src/js/reportset.js +33 -3
- iXBRLViewerPlugin/viewer/src/js/reportset.test.js +32 -6
- iXBRLViewerPlugin/viewer/src/js/search.js +61 -35
- iXBRLViewerPlugin/viewer/src/js/search.test.js +8 -5
- iXBRLViewerPlugin/viewer/src/js/summary.js +22 -0
- iXBRLViewerPlugin/viewer/src/js/summary.test.js +50 -13
- iXBRLViewerPlugin/viewer/src/js/tableExport.js +3 -3
- iXBRLViewerPlugin/viewer/src/js/taxonomynamer.js +34 -0
- iXBRLViewerPlugin/viewer/src/js/taxonomynamer.test.js +32 -0
- iXBRLViewerPlugin/viewer/src/js/theme.js +49 -0
- iXBRLViewerPlugin/viewer/src/js/unit.js +73 -2
- iXBRLViewerPlugin/viewer/src/js/unit.test.js +14 -3
- iXBRLViewerPlugin/viewer/src/js/util.js +21 -18
- iXBRLViewerPlugin/viewer/src/js/util.test.js +1 -0
- iXBRLViewerPlugin/viewer/src/js/utr.js +27 -0
- iXBRLViewerPlugin/viewer/src/js/viewer.js +40 -29
- iXBRLViewerPlugin/viewer/src/js/viewerOptions.js +0 -2
- iXBRLViewerPlugin/viewer/src/less/accordian.less +8 -4
- iXBRLViewerPlugin/viewer/src/less/block-list.less +12 -6
- iXBRLViewerPlugin/viewer/src/less/calculation-inspector.less +2 -2
- iXBRLViewerPlugin/viewer/src/less/chart.less +8 -5
- iXBRLViewerPlugin/viewer/src/less/colours-dark-mode.less +40 -0
- iXBRLViewerPlugin/viewer/src/less/colours.less +28 -21
- iXBRLViewerPlugin/viewer/src/less/common.less +1 -1
- iXBRLViewerPlugin/viewer/src/less/components.less +3 -3
- iXBRLViewerPlugin/viewer/src/less/core.less +2 -0
- iXBRLViewerPlugin/viewer/src/less/dialog.less +13 -10
- iXBRLViewerPlugin/viewer/src/less/form-controls.less +33 -11
- iXBRLViewerPlugin/viewer/src/less/inspector.less +556 -300
- iXBRLViewerPlugin/viewer/src/less/loader.less +2 -2
- iXBRLViewerPlugin/viewer/src/less/menu.less +33 -15
- iXBRLViewerPlugin/viewer/src/less/summary.less +16 -6
- iXBRLViewerPlugin/viewer/src/less/tabs.less +5 -5
- iXBRLViewerPlugin/viewer/src/less/text-mixins.less +2 -1
- iXBRLViewerPlugin/viewer/src/less/validation-report.less +1 -1
- iXBRLViewerPlugin/viewer/src/less/viewer.less +30 -18
- iXBRLViewerPlugin/viewer/webpack.common.js +19 -9
- {ixbrl_viewer-1.4.20.dist-info → ixbrl_viewer-1.4.49.dist-info}/METADATA +41 -14
- ixbrl_viewer-1.4.49.dist-info/RECORD +197 -0
- {ixbrl_viewer-1.4.20.dist-info → ixbrl_viewer-1.4.49.dist-info}/WHEEL +1 -1
- tests/puppeteer/framework/page_objects/doc_frame.js +3 -3
- tests/puppeteer/framework/page_objects/fact_details_panel.js +28 -0
- tests/puppeteer/puppeteer_test_run_via_intellij.jpg +0 -0
- tests/puppeteer/tests/fact_properties.test.js +10 -4
- tests/unit_tests/iXBRLViewerPlugin/test_iXBRLViewer.py +117 -51
- iXBRLViewerPlugin/viewer/src/js/interact.min.js +0 -6
- ixbrl_viewer-1.4.20.dist-info/RECORD +0 -166
- {ixbrl_viewer-1.4.20.dist-info → ixbrl_viewer-1.4.49.dist-info}/LICENSE +0 -0
- {ixbrl_viewer-1.4.20.dist-info → ixbrl_viewer-1.4.49.dist-info}/NOTICE +0 -0
- {ixbrl_viewer-1.4.20.dist-info → ixbrl_viewer-1.4.49.dist-info}/entry_points.txt +0 -0
- {ixbrl_viewer-1.4.20.dist-info → ixbrl_viewer-1.4.49.dist-info}/top_level.txt +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see ixbrlviewer.js.LICENSE.txt */
|
|
2
|
-
(()=>{var e={987:e=>{e.exports="data:font/woff;charset=utf-8;base64,d09GRgABAAAAABAYAAsAAAAAHtAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAZwAAALqP5ZCZE9TLzIAAAKkAAAAQQAAAGBW70wtY21hcAAAAugAAAGHAAAEbsdhAF1nbHlmAAAEcAAACHYAABCUIGCWk2hlYWQAAAzoAAAAJwAAADZjKUTdaGhlYQAADRAAAAAZAAAAJAgLBEtobXR4AAANLAAAAB4AAADYcRgAAGxvY2EAAA1MAAAARQAAAG6fzJwobWF4cAAADZQAAAAdAAAAIAFKAKJuYW1lAAANtAAAATAAAAI6/H8bLXBvc3QAAA7kAAABMwAAAcJ4jnoReJxlkksyA2EUhU83ISLxCILQHXnodELSBFMjZZShBciEUqWMLMDAIqzCGgwswcACLMASfPdGqjy6q/q/j3PPvff8rUBSQQc6VXh2PrzQwu3o/k5VTWv8WP6nHdzeXI+Un3jkpv3MKwgfVVSsoS51r1e9BS/BZxiG5fA8vFOoGW2DK4CIVdOO6mr42SSX/xFtadd5VzWLnaqtHpiux7aJRSCbHutrisousy9oicgAu6kMq8ZZd3+gQ76xSpr7h1ikejxBmzNiHuuxphx440+ZtkLNUFd60JOe2epdH2xSUgemPZ/ZOhm+TyylvvgnN9ky9y/TxtunJk+mRzTxSJ3TEBnvnOZ/ZVK8hNuaYrKIWIJCbawUfIw2hT8dTMsCLKbhLkrUXL0GrDnfOQNdhK32rWUM0yYVXZ1g1akwlHXcYrNx7yrICLxptYQWPTCpa2yRZVcvolvHGTeo2fSbHPBa92OtU9V1OwG14Z7tl8Bj/0lVK8zcct6eb239yo6b3Kf1qsDfwsscZxsHbBO53g0mML59KjOqjr4AE181SXicY2BhkmCcwMDKwMA0jekMAwNDP4RmfM1gxMgBFGVgZWbACgLSXFMYDjDEv5JlAXFjWGIYFIA0I4oiAQAn9wm3AAAAeJy101lS21AQheFftjFgzDwaPOF5ABvbONtxkRGKzDM7yQKyoDxlEdoEOe3uBeSFq/p0pC5JLdXVBVaArFxIDpK/JNj4o2qyrGcpLOs5fuu8wBoZbQvueEgrj4+qLbjhPk2Wxz4SXVfglGc6PqfChA4NBnraiD6XXNFlSpMabWZUGdOjxZA6c651d0Zdc3q3PKvqt65nbVBkky222WGXPfY54JAjjjmhpE4lziircZ6nHvqeSacxuBj19R3dabPWnlXHvdawPr9+8t7/N4q2y/yKM5uDRTiXm1CR52EiL0JHXoaGvAoDeR3sb3kTRnIb+nIXLuU+XMnb0JV3YSrvQ1M+hJp8DG35FGbyOVTlSxjL19CTb6El38NQfoS6/AxzeQiawTRx9venGYdl1tlqSXPOVky64mwlpXmH5arDcs1hue6wLDhbYemGw7LobCbTTYfllsNy22G547DcdVjuOSz3HZYHDstDh+WRw/LYYXnisCw5LE8dlmduWS87rFZxlP8BfxlqVAB4nM1XTWwb1xF+8x65S1K7JJdLkSZVi9xdcZchXUrmr2S58spO7UoybCWobdmtYaeum9QHwWlVoDl5DzUMOLcGOhQJEiNBi8I6tD340KZAWTcXswbiAm1zSFH70kORU3MLYK477/FHkmtF7akhd2fez8y+2fdmvpklQPBHO6xNJEJgBGpaTaOdR4/aLrR9DzxKfC5BdpajLni+5xMq5CKcsJsoFyN5MkVcskwukqvEIz8i66hZTY1qSckyTLuh1Zu1gmFKOJCqGdUmDtgWWKb9Fag3Z1FyLySl2i794P8oD8ao4Yz2FsRx2+IGsEjWtrM+4ZS/cGNpqUEF9edptlDIcvKzZ7T873z+9GW+NW5hDLyxQmHMR8o8O9v1xEJI3aVG1xOrIe22e1o7kV2mqet5YhlBhmfGFPoLomLHsevNag5azWoqKdPIZ+HEWPj+/XBWD4P3WXgswTs4NDzrXzMq9IRCDNKppGQ6cHOLKCVbHjLUu9nXkyXTrh/qLZumu+qhnZ7QEwtN9tRbm3aiNn3KTsb1ApEAIXFikgr3rnGajFKzQutztGVGaXKcVudovUIt3ZEdOS2nW+mWQyPn33vt2LHX3vtNj52/8v7ry8uvv//nHrtyv/L225V33hGUtTflOHM35Tjzh4JIyX/YVPxcm5jTSkN6N2sO//3sdQif3cWQbv7RuRugnuPLS8KQRYxBRmQyQgxSJvOEFIzG8K9bFTAl2doefWwQmVyGx0wFkGHIJiW5hox2fA4L/Tt/aWRlbWXkUnF6ukgJ0pCu+kTVqdtt6+rdUGTy8GQkdFfV2y7/gdtaWGhNF7ueUEDazau6rtK8izyyJ2pMThrRPRFd3fTdCG6nIXywbpsx9CVTSubQNZLpcag2D4FgOOnQViesZyP37kXQpTqdcDioKErw3j3Bwuhxg4m+UCQQDAY6HU6xw91WrNfGPashZhFo1ifBdlq2I9vYwLUl2ZHktIQNtCCVllPpVgob1UPQbKWbLafZCpoVqM/heUMyCuy3gcANJfVCYWrVLo0aTWO0ZK9OFV5IKTd2mvD/2Fip1Va+ywl88F+pbJ1Yra+8wlVfWakP3+cOW0ccTuH7PIWzOj9pzWAXuqcnqtUJehupnEkgipfZetXqnrKqVYtuWNUu0TK0RNCPyJNH7C/MIwnikIPkRfIy+SF5HZ+McC5DFEzbAbvZgjlAUJ/hzoWDaRAHhIONAo7wrRMDczCJvmXtl7cO7n/m6GDwqTiS5Gj/9OfA4fNsIyT5k1JMi0v+nxRQ4CNZDXH4je9V/OeykIGKmjfGVXigRn0SkAOS9ICFQiEmgfxhIBT4ZkBm8nCIN4LPGKLRUFyRZAWXESwcz6kZ2INPzikZmlHzcXbKfzeENsxJEm7BlGqp8IEklRXFn91zLON/qKqKAneVvPY9xqSE9NcAE/wjxs4OGjsOwIKsxLWYIklqLIEMn5o5luFPzBzNqiJuaA9/RJ7GmAdrDCzNKpShwjDYZce2ehA0y3cNgxvDGnMCHhpuLzbGAWM9hj0MOItG2qIQcIFK+49/a/r4NSelKI3zR4vFo+cbucriy6+eDGmRUjr37Zny8Vk7KB+qL8xPVXLLV68u49a3UZO4zfNfLS4cDADqXEHVw8HVpZOvUipPTLXGmwulAwBL9f1fCx6+euvqMO653+Lr6KPoA3uhhXa2oHEBD9y4bYxDmq17/u/GT5a6p35eOjkO814fd1mnj3mo28JEn8EyRUeM1YxF5j32XLeNJnVdz+U9hjVL28O+N8RtsW4c65b9aMjQ2XBn9N3KFvrQOHBi5cQBo8+8RCaT6J7mlN7eEmMT8Mm+EwdMk0vNmObMCfg6yp3SMhmNbiQypa2hRwLDWkohX0KrvtyPY0Prrfp0UAcxorcJsEXfHStQggWB/w/exEqkzTsFjuDUHc6yNlYnpDf7BPmmLMpQb3OShLft8wiii07SZIzkiIXnVdOsUbw5l/tc3HgWWv9ezOPv4pbL4/licLP2E+I+QS8YMn4z3uEXIUGx/u9x/Qyu6GCFeZBjUB0hwDCjMKpt3xKs/LCJh4cboxlykhcVmNDAEA6Oe5VMMc+ctXxizZq8KmO8COyKOjBrdz3a7vLVC80CXn4eXJ6x/DZSaIOHOlwXS7ononYEpCCKO597P+GVGGrCT/WsjpcITWH/Q7R/L7HJNFlE6zEu03Mg0myMg+ZorcGzCoIm2qgPbGZbAbDW2FZJ0MjzR0fy8apr6UoplYILobFEYnT8xSNlu1EoNOzyyltrR46svfXLHlt5acNbWPA27vbYS/STkrIYS6VTsWQoFy8a5fjY3qSml/ZVTwhPaNg2XT6y9uav3uTqgpUXr238YePaYp9tyTc5Hj0FgfloWs/MGk8CrQFcQy+oei/TYBvgf5qzamfWrq+dqSE73LpUxG1AjItLCkQeP9y3dPn7l5f29dl1APW5S80ja2eqVdT5wemalfM/hWBQkhRDgQcHNkWRzQz3vMPcvs9m0VPREwd/nsHK0FChUeNOs8iThvA85MzV1VscyG4VpykHEBfDwb+FNQ0i43QRLvJHB/vP98Q3zz481ecRf/pQYfShIziAikHQ6lt8ML1DuzP4UOAfDVR8KfS+Fy5CW3ii8Mcd2u2eE/c+bNzhFw1SSnoO6W1jPMf3ffOLmuPvfEFy/Pr/Ncf3cuQbzOSeFwZHDgOb8WfvnIMYzTHTP3jnG/6/aK7v9//E89TJBGaPGfH9nYZUlKJ7Vag4yAY/RUkApiMOYQg4Dd7gPswr/wiLBuCNAAuEI4//FgkHWBB+HIgyzQj7qwnHZhO2k/BXw/lEOTORGV5sPRB6/HFIlcJhSQ0zKxwoJ7THH5vz8yYraIkuSQjBn/A8CSVO0eJ/A759E3sAAHicY2BkYGAA4por+uzx/DZfGbhZGDDB/wcsXGBxDgYmEAUApnwFMgB4nGNgZGBgYQABFhEwycXAyIAKzAAEeABjAAAAeJxjYGBgYOHCg0WgGMZnQKJFcOghYCY9AAD0CAGJAAB4nGNgAAIRBg2Gd4xcjGqMToxxjCsYXzH5MLUwvWEWYX7B4sGSwtLCco5VgjWCdQebClsR2yJ2NvZb7O84vEiHAKrKFR0AAAB4nGNgZGBgMGOYxsDFAAJMQMwFZv8H8xkAHYgB7QAAAHicdc9NSsNAHAXwl36JLYgouBNmJYKQtHXXhct256KL7pN0kqakmTCZfoGn8ASewiO48hSewqWv8b8oUjPkn9+8vAwEwCU+4OFweejV83A1cMbdr5vUlbhF34rb9L24Qz+Ku3jAk7iHa2Q8wWudM7nBi7iBC7yKm8zfxC36XdymP8Ud+kvcxQzf4h7uvOdsF9l8k+mttlOdrvPQHiVHnGlbZaZQA79/lE50oW3o9FxFe1Vt0qFziUqsWamxKZzOc6NKa5Y6dv7CuXIUBInkfmxW/LsdIljk2NAaW94WU84Ua6Yhd6c7p9NZPSsmBgUUBvDR/6c74SxqhXB8ztmPsOes2EsxZOqQcJ+wY7CixvW5h3bOZZiU9bslk5i5j0X9VYkRAq7kT99niyf9AMXJamZ4nG2OWVfbMBCF/RGymYRS1pa10JbdbG3h53AUWbF1kCVHlhP494QG8sR9mfudmbkz0UI0Uxx9rnsWaLBIkxZtOnSJWaJHn2W+sMJXVlljnQ022eIb39lmh1322OeAHxxyxE9+8ZtjTjjljHMuuCThimtuuOWOP/zlH/c8RLHw3k2S1E1sZ2brMpbCyNqI4HxP5mrsnf0/MAejhqH/AV5neYg/qC57UntpVCK9q6qldwhaPnWl0eXACZ82pXGVakiXdVNdKFtpZ1fmLilUMVC+83bSOJG2htoE5ZuZF2XemjW7RW2CToLI2q4ORlvVLL22oTOqVRWmIa1KCS/zaTFKhnZVF4XwL43pwuLbL+2J8FbbDIHHMeGRFEtNicQQyFGMGaLJqHhiQMGIF56j6BUyWm88AA=="},59:e=>{e.exports="data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiCiAgIHhtbG5zOmlua3NjYXBlPSJodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy9uYW1lc3BhY2VzL2lua3NjYXBlIgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmcyIgogICB4bWw6c3BhY2U9InByZXNlcnZlIgogICB3aWR0aD0iNTM2LjM2NDc1IgogICBoZWlnaHQ9IjE1MC4zMTAwMyIKICAgdmlld0JveD0iMCAwIDUzNi4zNjQ3MyAxNTAuMzEwMDMiCiAgIHNvZGlwb2RpOmRvY25hbWU9ImFyZWxsZS1sb2dvLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMC45Mi41ICgyMDYwZWMxZjlmLCAyMDIwLTA0LTA4KSI+PG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhOCI+PHJkZjpSREY+PGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPjxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PjxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz48ZGM6dGl0bGU+PC9kYzp0aXRsZT48L2NjOldvcms+PC9yZGY6UkRGPjwvbWV0YWRhdGE+PGRlZnMKICAgICBpZD0iZGVmczYiPjxjbGlwUGF0aAogICAgICAgY2xpcFBhdGhVbml0cz0idXNlclNwYWNlT25Vc2UiCiAgICAgICBpZD0iY2xpcFBhdGgxOCI+PHBhdGgKICAgICAgICAgZD0iTSAwLDEyMiBIIDc2OC41MDUgViAwIEggMCBaIgogICAgICAgICBpZD0icGF0aDE2IgogICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiCiAgICAgYm9yZGVyb3BhY2l0eT0iMSIKICAgICBvYmplY3R0b2xlcmFuY2U9IjEwIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwIgogICAgIGd1aWRldG9sZXJhbmNlPSIxMCIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTg2NCIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMDI0IgogICAgIGlkPSJuYW1lZHZpZXc0IgogICAgIHNob3dncmlkPSJmYWxzZSIKICAgICBpbmtzY2FwZTp6b29tPSIwLjcyMDIyOTUzIgogICAgIGlua3NjYXBlOmN4PSI3ODguNzIwNTgiCiAgICAgaW5rc2NhcGU6Y3k9Ii04NC40NDIyMDQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjU2IgogICAgIGlua3NjYXBlOndpbmRvdy15PSIyNyIKICAgICBpbmtzY2FwZTp3aW5kb3ctbWF4aW1pemVkPSIxIgogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9ImcxMCIKICAgICBmaXQtbWFyZ2luLXRvcD0iMCIKICAgICBmaXQtbWFyZ2luLWxlZnQ9IjAiCiAgICAgZml0LW1hcmdpbi1yaWdodD0iMCIKICAgICBmaXQtbWFyZ2luLWJvdHRvbT0iMCIgLz48ZwogICAgIGlkPSJnMTAiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpbmtzY2FwZTpsYWJlbD0iYXJlbGxlLWxvZ28iCiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoMS4zMzMzMzMzLDAsMCwtMS4zMzMzMzMzLC0zLjY1MDgxNDEsMTU5LjMyNzc3KSI+PGcKICAgICAgIGlkPSJnMTIiPjxnCiAgICAgICAgIGlkPSJnMTQiCiAgICAgICAgIGNsaXAtcGF0aD0idXJsKCNjbGlwUGF0aDE4KSI+PGcKICAgICAgICAgICBpZD0iZzIwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwOS42Njg5LDY3LjE2MzEpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMS41OTgsMi42NTMgLTcuMjkyLDUuOTg3IC04LjgwOCwxNS4zMDcgLTAuODA0LDQuOTQ5IDAuNTY5LDcuOTk0IDEuOTU1LDEyLjE4MSAxLjQ4OCw0LjQ3MSAtMS4wNTksNy4yNDQgLTUuMzgsNy40MDggLTguNjQ0LDAuMzMgLTMxLjkwNywtMi4yMTEgLTU3LjYzOCwxMS4yODggLTEwLjA2Niw1LjI4IC0xMC43NTksMy45MjIgLTcuMDc2LC0yLjU2NiA1LjY0NSwtOS45NTIgMTkuMzc4LC0xNS4zMzQgMzUuNjg3LC0xOC4wMDUgLTQ1LjM5Nyw5LjgyNSAtMTcuMTY2LC0yLjE3NCA1LjA5OCwtNy4xMjcgLTQxLjA1Niw4LjQ4NCAtMTUuNjI1LC0zLjAzNSA0LjQ0OCwtNi43MTEgLTM4LjQ3NSw2LjgyMSAtMTEuMzg3LC0yLjk3OCAxLjQ3NywtNS40MjggMy44NjIsLTAuNzM2IDEyLjM5MSwtMTMuMDI2IDE4LjA1NCwtMTAuMjczIDYuMzE3LDMuMDY5IDQuNDg4LDAuNjg5IDcuNDc5LDIuMDI2IEMgMC41NjYsMC40NTggMCwwIDAsMCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNhYTExOGU7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDIyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzI0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwOS42Njg5LDY3LjE2MzEpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMS41OTgsMi42NTMgLTcuMjkyLDUuOTg3IC04LjgwOCwxNS4zMDcgLTAuODA0LDQuOTQ5IDAuNTY5LDcuOTk0IDEuOTU1LDEyLjE4MSAxLjQ4OCw0LjQ3MSAtMS4wNTksNy4yNDQgLTUuMzgsNy40MDggLTguNjQ0LDAuMzMgLTMxLjkwNywtMi4yMTEgLTU3LjYzOCwxMS4yODggLTEwLjA2Niw1LjI4IC0xMC43NTksMy45MjIgLTcuMDc2LC0yLjU2NiA1LjY0NSwtOS45NTIgMTkuMzc4LC0xNS4zMzQgMzUuNjg3LC0xOC4wMDUgLTQ1LjM5Nyw5LjgyNSAtMTcuMTY2LC0yLjE3NCA1LjA5OCwtNy4xMjcgLTQxLjA1Niw4LjQ4NCAtMTUuNjI1LC0zLjAzNSA0LjQ0OCwtNi43MTEgLTM4LjQ3NSw2LjgyMSAtMTEuMzg3LC0yLjk3OCAxLjQ3NywtNS40MjggMy44NjIsLTAuNzM2IDEyLjM5MSwtMTMuMDI2IDE4LjA1NCwtMTAuMjczIDYuMzE3LDMuMDY5IDQuNDg4LDAuNjg5IDcuNDc5LDIuMDI2IEMgMC41NjYsMC40NTggMCwwIDAsMCBaIgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2ZmZmZmZjtzdHJva2Utd2lkdGg6MS4wMzEwMDAwMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoMjYiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnMjgiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTM3Ljg2MzMsNDMuMDIzNCkiPjxwYXRoCiAgICAgICAgICAgICBkPSJtIDAsMCBjIDAsLTE2LjcxMiAtMTMuNTQ4LC0zMC4yNjIgLTMwLjI2MywtMzAuMjYyIC0xNi43MTUsMCAtMzAuMjYzLDEzLjU1IC0zMC4yNjMsMzAuMjYyIDAsMTYuNzE0IDEzLjU0OCwzMC4yNjQgMzAuMjYzLDMwLjI2NCBDIC0xMy41NDgsMzAuMjY0IDAsMTYuNzE0IDAsMCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDMwIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzMyIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEzNy44NjMzLDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjMsLTMwLjI2MiAtMTYuNzE1LDAgLTMwLjI2MywxMy41NSAtMzAuMjYzLDMwLjI2MiAwLDE2LjcxNCAxMy41NDgsMzAuMjY0IDMwLjI2MywzMC4yNjQgQyAtMTMuNTQ4LDMwLjI2NCAwLDE2LjcxNCAwLDAgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDM0IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzM2IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyNi4xNTcyLDEwLjQzMjYpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgMTMuNDUyLDYzLjU4NiBIIDI0LjQ1OCBMIDIyLjAxMiwtMS4yMjIgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDM4IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzQwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0MCw3My42NzUzKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Ik0gMCwwIC0xMy4wODYsLTYxLjU1MyIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDQyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzQ0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIwOC43ODcxLDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjUsLTMwLjI2MiAtMTYuNzEsMCAtMzAuMjYsMTMuNTUgLTMwLjI2LDMwLjI2MiAwLDE2LjcxNCAxMy41NSwzMC4yNjQgMzAuMjYsMzAuMjY0IEMgLTEzLjU0OCwzMC4yNjQgMCwxNi43MTQgMCwwIFoiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg0NiIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc0OCIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNTAuNjE1Miw2NC4yMzczKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIDguNTU4LC03LjMzOSAzOS4xMzIsMi40NDcgMTEuMDA2LDMuNjY5IDQuODksLTMxLjc5MyAtMjMuMjMyLC0yNC40NTggSCAxNC42NzMgbCAtMjMuODQ4LDI1LjY3OSB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoNTAiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNTIiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTU3LjExOTEsNzMuNjc1MykiPjxwYXRoCiAgICAgICAgICAgICBkPSJNIDAsMCAtMTMuMDgzLC02MS41NTMiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg1NCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc1NiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzMDIuNDA1MywxMTIuODcwMSkiPjxwYXRoCiAgICAgICAgICAgICBkPSJNIDAsMCAtMjEuNDEzLC0xMDAuNzQ4IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2FhMTE4ZTtzdHJva2Utd2lkdGg6My44MDUwMDAwNztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoNTgiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNjAiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzIxLjk2ODgsMTEyLjg3MDEpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgLTIxLjQxMSwtMTAwLjc0OCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDYyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzY0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM4Ni4wOTc3LDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjIsLTMwLjI2MiAtMTYuNzE3LDAgLTMwLjI2NCwxMy41NSAtMzAuMjY0LDMwLjI2MiAwLDE2LjcxNCAxMy41NDcsMzAuMjY0IDMwLjI2NCwzMC4yNjQgQyAtMTMuNTQ4LDMwLjI2NCAwLDE2LjcxNCAwLDAgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDY2IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzY4IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM3My4yODMyLDY4LjM1MjUpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgLTM2LjAyOSwtNDkuNTg2IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2FhMTE4ZTtzdHJva2Utd2lkdGg6My44MDUwMDAwNztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoNzAiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNzIiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjcyLjM3NCw0My4wMjM0KSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIGMgMCwtMTYuNzEyIC0xMy41NDksLTMwLjI2MiAtMzAuMjYzLC0zMC4yNjIgLTE2LjcxMywwIC0zMC4yNjEsMTMuNTUgLTMwLjI2MSwzMC4yNjIgMCwxNi43MTQgMTMuNTQ4LDMwLjI2NCAzMC4yNjEsMzAuMjY0IEMgLTEzLjU0OSwzMC4yNjQgMCwxNi43MTQgMCwwIFoiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg3NCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc3NiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNTkuNTU5Niw2OC4zNTI1KSI+PHBhdGgKICAgICAgICAgICAgIGQ9Ik0gMCwwIC0zNi4wMjYsLTQ5LjU4NiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDc4IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzgwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI3NC43MzM0LDE3Ljc3MDUpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgLTE4LjM0Miw2LjExNCAxLjgzNiwzOC43MjEgNC44OSw3LjU0MiAxNC4wNjIsLTEyLjAyNCB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoODIiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnODQiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzg4LjI1MjksMTcuNTY1OSkiPjxwYXRoCiAgICAgICAgICAgICBkPSJtIDAsMCAtMTguMzQzLDYuMTE0IDEuODM3LDM4LjcyMSA0Ljg4OSw3LjU0MyAxNC4wNjMsLTEyLjAyNCB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoODYiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnODgiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOTcuMjYwNyw3Mi44NjUyKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIGMgLTIuMTIxLDIuNzgyIC04LjUzOSw1LjIzOSAtMTEuMzksMTUuNTIxIC0xLjUxNCw1LjQ1OCAtMC4zNDgsOS4wNDggMC42OTcsMTMuOTIgMS4xMTcsNS4yMDUgLTIuMDg4LDguMDA0IC02Ljk2MSw3LjY1NiAtOS43NDQsLTAuNjk2IC0zNS41NTksLTYuNDE4IC02Ni4xMjIsNS41NjkgLTExLjk1Niw0LjY4OCAtMTAuNzY1LDQuMDY4IC03LjYzLC0zLjc1NSA0Ljk4NCwtMTIuNDM5IDI2LjUwNywtMjEuNzg5IDQ1LjE1MiwtMjIuNzc3IC0xMC4xMDYsMC45MDkgLTIyLjE0LDMuMTI5IC0yNS41MDIsNC4wMDEgLTEzLjUsMy41IDcsLTEzLjUgMzQuNTAyLC0xNC4yNTEgLTcuNDg0LDAuMjM3IC0xOS41OTgsMS40ODYgLTIyLjUsMi4yNSAtMTksNSA0LC0xMS45OTkgMzIuMjUsLTEzLjUwMiA0LjQzNiwtMC4yMzYgMTUuNzMxLC02Ljg5MiAyMS44NjksLTMuMjk1IDMuODM0LDIuMjQ2IDEuMzc5LDAuODAxIDMuODM0LDIuMjQ2IEMgMy44ODgsLTMuMDY4IDAsMCAwLDAiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDojNzdkMWM4O2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIgogICAgICAgICAgICAgaWQ9InBhdGg5MCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc5MiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5Ny4yNjA3LDcyLjg2NTIpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMi4xMjEsMi43ODIgLTguNTM5LDUuMjM5IC0xMS4zOSwxNS41MjEgLTEuNTE0LDUuNDU4IC0wLjM0OCw5LjA0OCAwLjY5NywxMy45MiAxLjExNyw1LjIwNSAtMi4wODgsOC4wMDQgLTYuOTYxLDcuNjU2IC05Ljc0NCwtMC42OTYgLTM1LjU1OSwtNi40MTggLTY2LjEyMiw1LjU2OSAtMTEuOTU2LDQuNjg4IC0xMC43NjUsNC4wNjggLTcuNjMsLTMuNzU1IDQuOTg0LC0xMi40MzkgMjYuNTA3LC0yMS43ODkgNDUuMTUyLC0yMi43NzcgLTEwLjEwNiwwLjkwOSAtMjIuMTQsMy4xMjkgLTI1LjUwMiw0LjAwMSAtMTMuNSwzLjUgNywtMTMuNSAzNC41MDIsLTE0LjI1MSAtNy40ODQsMC4yMzcgLTE5LjU5OCwxLjQ4NiAtMjIuNSwyLjI1IC0xOSw1IDQsLTExLjk5OSAzMi4yNSwtMTMuNTAyIDQuNDM2LC0wLjIzNiAxNS43MzEsLTYuODkyIDIxLjg2OSwtMy4yOTUgMy44MzQsMi4yNDYgMS4zNzksMC44MDEgMy44MzQsMi4yNDYgQyAzLjg4OCwtMy4wNjggMCwwIDAsMCBaIgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2ZmZmZmZjtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoOTQiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48L2c+PC9nPjx0ZXh0CiAgICAgICB0cmFuc2Zvcm09Im1hdHJpeCgxLDAsMCwtMSwzODkuNDk5LDYyLjk5NjEpIgogICAgICAgc3R5bGU9ImZvbnQtdmFyaWFudDpub3JtYWw7Zm9udC13ZWlnaHQ6bm9ybWFsO2ZvbnQtc3RyZXRjaDpub3JtYWw7Zm9udC1zaXplOjE4cHg7Zm9udC1mYW1pbHk6J1RyZWJ1Y2hldCBNUyc7LWlua3NjYXBlLWZvbnQtc3BlY2lmaWNhdGlvbjpUcmVidWNoZXRNUzt3cml0aW5nLW1vZGU6bHItdGI7ZmlsbDojYWExMThlO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIgogICAgICAgaWQ9InRleHQ5OCI+PHRzcGFuCiAgICAgICAgIHg9IjAiCiAgICAgICAgIHk9IjAiCiAgICAgICAgIGlkPSJ0c3Bhbjk2Ij7CrjwvdHNwYW4+PC90ZXh0Pgo8L2c+PC9zdmc+"},285:e=>{e.exports="data:image/vnd.microsoft.icon;charset=utf-8;base64,AAABAAEAEBAAAAEACABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAQAEAAAAAAAAAAAAAAAEAAAAAAADNm9sA6urFANvamwD7+/MA5cLuAPX04gDNzHUA+/v1APT04QDQz34AzMtxAOHhrQDe3aQA7+/TANbVjQDo6MAA/v79AM7NeQDn5rsA8/PdAPLy2wDi4a4A5uW6AO3tzgD5+fAA/v78APn57gD4+OwA9vbmAOXktgDc3J8A9fXkAOHgrADs2PEA5eW4AI4hqwDLym8A////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIyMlIyUlIyMlIyUjJSMjJQAjISMhJSMlJSMEIwQjISUlISMhIyUhIwAhIyEjISMAJSMjJSMjJSMjJSMlIyUjIyUlJSUlJSUlJSUjJSMlJSUlJSUlJSUlJSUlJSUcEiQdJSUlJSUlJRkNICQkJCQkJCUlJSUlByQkJCQkJCQkJAolJSUlGiIiIiIiIiQkJCQXJSUlJR8iAiQkJCQkJCQOJSUlJSQkBiQkJCQkJCQkFiUlJRAiIiIiIiQkJCQkJA8lJQMiAiQkJCQkJCQkJCQVJRgRJCQkJCQkJCQkJCQkDCUeJCQGAgEIBQcbBRMBAQMlCQsUJSUlJSUlJSUlJSUlJQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},778:e=>{e.exports="data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIyLjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMzQuOSAzMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTM0LjkgMzA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojNTk1OTU5O30KCS5zdDF7ZmlsbDojNjZDQzAwO30KPC9zdHlsZT4KPGc+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTYuMywyMS42aC0yLjR2LTEzaDIuNFYyMS42eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTIxLjMsMTMuNWMwLjItMC4yLDAuNC0wLjQsMC42LTAuNWMwLjItMC4yLDAuNC0wLjMsMC43LTAuNGMwLjItMC4xLDAuNS0wLjIsMC43LTAuM2MwLjMtMC4xLDAuNi0wLjEsMC45LTAuMQoJCWMwLjUsMCwxLDAuMSwxLjMsMC4zczAuNywwLjQsMSwwLjdzMC41LDAuNywwLjYsMS4xYzAuMSwwLjQsMC4yLDAuOSwwLjIsMS40djUuOWgtMi4ydi01LjljMC0wLjYtMC4xLTEtMC40LTEuM1MyNCwxNCwyMy41LDE0CgkJYy0wLjQsMC0wLjcsMC4xLTEuMSwwLjNjLTAuMywwLjItMC43LDAuNC0xLDAuN3Y2LjdoLTIuMnYtOS4yaDEuNGMwLjMsMCwwLjUsMC4xLDAuNiwwLjRMMjEuMywxMy41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTMyLjEsOC4ydjEzLjRoLTIuMlY4LjJIMzIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0zNy4zLDkuN2MwLDAuMiwwLDAuNC0wLjEsMC41cy0wLjIsMC4zLTAuMywwLjRzLTAuMywwLjItMC41LDAuM2MtMC4yLDAuMS0wLjQsMC4xLTAuNiwwLjEKCQljLTAuMiwwLTAuNCwwLTAuNS0wLjFjLTAuMi0wLjEtMC4zLTAuMi0wLjQtMC4zcy0wLjItMC4zLTAuMy0wLjRjLTAuMS0wLjItMC4xLTAuMy0wLjEtMC41YzAtMC4yLDAtMC40LDAuMS0wLjYKCQljMC4xLTAuMiwwLjItMC4zLDAuMy0wLjVzMC4zLTAuMiwwLjQtMC4zczAuNC0wLjEsMC41LTAuMWMwLjIsMCwwLjQsMCwwLjYsMC4xYzAuMiwwLjEsMC4zLDAuMiwwLjUsMC4zczAuMiwwLjMsMC4zLDAuNQoJCVMzNy4zLDkuNSwzNy4zLDkuN3ogTTM2LjksMTIuNHY5LjJoLTIuMnYtOS4ySDM2Ljl6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDEuNywxMy41YzAuMi0wLjIsMC40LTAuNCwwLjYtMC41YzAuMi0wLjIsMC40LTAuMywwLjctMC40YzAuMi0wLjEsMC41LTAuMiwwLjctMC4zYzAuMy0wLjEsMC42LTAuMSwwLjktMC4xCgkJYzAuNSwwLDEsMC4xLDEuMywwLjNjMC40LDAuMiwwLjcsMC40LDEsMC43YzAuMywwLjMsMC41LDAuNywwLjYsMS4xczAuMiwwLjksMC4yLDEuNHY1LjloLTIuMnYtNS45YzAtMC42LTAuMS0xLTAuNC0xLjMKCQljLTAuMy0wLjMtMC43LTAuNS0xLjItMC41Yy0wLjQsMC0wLjcsMC4xLTEuMSwwLjNjLTAuMywwLjItMC43LDAuNC0xLDAuN3Y2LjdoLTIuMnYtOS4yaDEuNGMwLjMsMCwwLjUsMC4xLDAuNiwwLjRMNDEuNywxMy41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTUxLjksMTcuM2MwLDAuNSwwLjEsMC45LDAuMywxLjJjMC4xLDAuMywwLjMsMC42LDAuNSwwLjlzMC41LDAuNCwwLjgsMC41czAuNiwwLjIsMSwwLjJjMC40LDAsMC43LDAsMC45LTAuMQoJCXMwLjUtMC4yLDAuNy0wLjNjMC4yLTAuMSwwLjQtMC4yLDAuNS0wLjNjMC4xLTAuMSwwLjMtMC4xLDAuNC0wLjFjMC4yLDAsMC4zLDAuMSwwLjQsMC4ybDAuNiwwLjhjLTAuMiwwLjMtMC41LDAuNS0wLjgsMC43CgkJcy0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJzLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM2MtMC42LTAuMi0xLTAuNS0xLjQtMC45cy0wLjctMC45LTEtMS41CgkJYy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40YzAuNC0wLjQsMC44LTAuNywxLjQtMWMwLjUtMC4yLDEuMi0wLjQsMS45LTAuNAoJCWMwLjYsMCwxLjEsMC4xLDEuNiwwLjNjMC41LDAuMiwwLjksMC41LDEuMywwLjhjMC40LDAuNCwwLjYsMC44LDAuOCwxLjNjMC4yLDAuNSwwLjMsMS4xLDAuMywxLjhjMCwwLjMsMCwwLjYtMC4xLDAuNwoJCWMtMC4xLDAuMS0wLjIsMC4yLTAuNCwwLjJINTEuOXogTTU2LjEsMTUuOWMwLTAuMywwLTAuNi0wLjEtMC44Yy0wLjEtMC4zLTAuMi0wLjUtMC40LTAuN2MtMC4yLTAuMi0wLjQtMC4zLTAuNi0wLjUKCQljLTAuMi0wLjEtMC41LTAuMi0wLjktMC4yYy0wLjYsMC0xLjEsMC4yLTEuNSwwLjVjLTAuNCwwLjQtMC42LDAuOS0wLjcsMS42SDU2LjF6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNzYuNSw4LjZsLTUuMywxM2gtMi4ybC01LjMtMTNoMS45YzAuMiwwLDAuNCwwLjEsMC41LDAuMnMwLjIsMC4yLDAuMywwLjRsMy4xLDcuOWMwLjEsMC4zLDAuMiwwLjUsMC4zLDAuOQoJCWMwLjEsMC4zLDAuMiwwLjYsMC4zLDFjMC4xLTAuMywwLjEtMC43LDAuMi0xczAuMi0wLjYsMC4zLTAuOWwzLjEtNy45YzAtMC4xLDAuMS0wLjMsMC4zLTAuNGMwLjEtMC4xLDAuMy0wLjIsMC41LTAuMkg3Ni41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTgwLjcsOS43YzAsMC4yLDAsMC40LTAuMSwwLjVjLTAuMSwwLjItMC4yLDAuMy0wLjMsMC40Yy0wLjEsMC4xLTAuMywwLjItMC41LDAuM2MtMC4yLDAuMS0wLjQsMC4xLTAuNiwwLjEKCQljLTAuMiwwLTAuNCwwLTAuNS0wLjFjLTAuMi0wLjEtMC4zLTAuMi0wLjQtMC4zcy0wLjItMC4zLTAuMy0wLjRzLTAuMS0wLjMtMC4xLTAuNWMwLTAuMiwwLTAuNCwwLjEtMC42czAuMi0wLjMsMC4zLTAuNQoJCXMwLjMtMC4yLDAuNC0wLjNzMC40LTAuMSwwLjUtMC4xYzAuMiwwLDAuNCwwLDAuNiwwLjFzMC4zLDAuMiwwLjUsMC4zYzAuMSwwLjEsMC4yLDAuMywwLjMsMC41QzgwLjcsOS4zLDgwLjcsOS41LDgwLjcsOS43egoJCSBNODAuNCwxMi40djkuMmgtMi4ydi05LjJIODAuNHoiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik04NC43LDE3LjNjMCwwLjUsMC4xLDAuOSwwLjMsMS4yYzAuMSwwLjMsMC4zLDAuNiwwLjUsMC45czAuNSwwLjQsMC44LDAuNXMwLjYsMC4yLDEsMC4yYzAuNCwwLDAuNywwLDAuOS0wLjEKCQljMC4zLTAuMSwwLjUtMC4yLDAuNy0wLjNzMC40LTAuMiwwLjUtMC4zYzAuMS0wLjEsMC4zLTAuMSwwLjQtMC4xYzAuMiwwLDAuMywwLjEsMC40LDAuMmwwLjYsMC44Yy0wLjIsMC4zLTAuNSwwLjUtMC44LDAuNwoJCWMtMC4zLDAuMi0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJjLTAuMywwLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM3MtMS0wLjUtMS40LTAuOQoJCWMtMC40LTAuNC0wLjctMC45LTEtMS41Yy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40czAuOC0wLjcsMS40LTEKCQljMC41LTAuMiwxLjItMC40LDEuOS0wLjRjMC42LDAsMS4xLDAuMSwxLjYsMC4zYzAuNSwwLjIsMC45LDAuNSwxLjMsMC44YzAuNCwwLjQsMC42LDAuOCwwLjgsMS4zYzAuMiwwLjUsMC4zLDEuMSwwLjMsMS44CgkJYzAsMC4zLDAsMC42LTAuMSwwLjdjLTAuMSwwLjEtMC4yLDAuMi0wLjQsMC4ySDg0Ljd6IE04OSwxNS45YzAtMC4zLDAtMC42LTAuMS0wLjhjLTAuMS0wLjMtMC4yLTAuNS0wLjQtMC43CgkJYy0wLjItMC4yLTAuNC0wLjMtMC42LTAuNWMtMC4yLTAuMS0wLjUtMC4yLTAuOS0wLjJjLTAuNiwwLTEuMSwwLjItMS41LDAuNWMtMC40LDAuNC0wLjYsMC45LTAuNywxLjZIODl6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTA2LDEyLjRsLTIuOSw5LjJoLTEuOGMtMC4yLDAtMC4zLTAuMS0wLjQtMC40bC0xLjctNS4zYy0wLjEtMC4yLTAuMS0wLjQtMC4xLTAuNWMwLTAuMi0wLjEtMC40LTAuMS0wLjUKCQljMCwwLjItMC4xLDAuNC0wLjEsMC41cy0wLjEsMC40LTAuMSwwLjVMOTcsMjEuMmMtMC4xLDAuMy0wLjIsMC40LTAuNSwwLjRoLTEuN2wtMi45LTkuMmgxLjhjMC4yLDAsMC4zLDAsMC40LDAuMQoJCWMwLjEsMC4xLDAuMiwwLjIsMC4yLDAuM2wxLjMsNC45YzAuMSwwLjMsMC4xLDAuNSwwLjIsMC44YzAuMSwwLjMsMC4xLDAuNSwwLjEsMC44YzAuMS0wLjMsMC4xLTAuNSwwLjItMC44CgkJYzAuMS0wLjMsMC4yLTAuNSwwLjItMC44bDEuNS00LjljMC0wLjEsMC4xLTAuMiwwLjItMC4zYzAuMS0wLjEsMC4yLTAuMSwwLjQtMC4xaDFjMC4yLDAsMC4zLDAsMC40LDAuMWMwLjEsMC4xLDAuMiwwLjIsMC4yLDAuMwoJCWwxLjUsNC45YzAuMSwwLjMsMC4yLDAuNSwwLjIsMC44YzAuMSwwLjMsMC4xLDAuNSwwLjIsMC44YzAuMS0wLjUsMC4yLTEsMC4zLTEuNmwxLjQtNC45YzAtMC4xLDAuMS0wLjIsMC4yLTAuMwoJCWMwLjEtMC4xLDAuMi0wLjEsMC40LTAuMUgxMDZ6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTA5LjEsMTcuM2MwLDAuNSwwLjEsMC45LDAuMywxLjJjMC4xLDAuMywwLjMsMC42LDAuNSwwLjlzMC41LDAuNCwwLjgsMC41czAuNiwwLjIsMSwwLjIKCQljMC40LDAsMC43LDAsMC45LTAuMXMwLjUtMC4yLDAuNy0wLjNjMC4yLTAuMSwwLjQtMC4yLDAuNS0wLjNjMC4xLTAuMSwwLjMtMC4xLDAuNC0wLjFjMC4yLDAsMC4zLDAuMSwwLjQsMC4ybDAuNiwwLjgKCQljLTAuMiwwLjMtMC41LDAuNS0wLjgsMC43cy0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJzLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM2MtMC42LTAuMi0xLTAuNS0xLjQtMC45CgkJcy0wLjctMC45LTEtMS41Yy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40YzAuNC0wLjQsMC44LTAuNywxLjQtMQoJCWMwLjUtMC4yLDEuMi0wLjQsMS45LTAuNGMwLjYsMCwxLjEsMC4xLDEuNiwwLjNjMC41LDAuMiwwLjksMC41LDEuMywwLjhjMC40LDAuNCwwLjYsMC44LDAuOCwxLjNjMC4yLDAuNSwwLjMsMS4xLDAuMywxLjgKCQljMCwwLjMsMCwwLjYtMC4xLDAuN2MtMC4xLDAuMS0wLjIsMC4yLTAuNCwwLjJIMTA5LjF6IE0xMTMuNCwxNS45YzAtMC4zLDAtMC42LTAuMS0wLjhjLTAuMS0wLjMtMC4yLTAuNS0wLjQtMC43CgkJYy0wLjItMC4yLTAuNC0wLjMtMC42LTAuNWMtMC4yLTAuMS0wLjUtMC4yLTAuOS0wLjJjLTAuNiwwLTEuMSwwLjItMS41LDAuNWMtMC40LDAuNC0wLjYsMC45LTAuNywxLjZIMTEzLjR6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTE5LjYsMTRjMC4zLTAuNiwwLjYtMSwxLTEuM2MwLjQtMC4zLDAuOS0wLjUsMS40LTAuNWMwLjQsMCwwLjgsMC4xLDEsMC4zbC0wLjEsMS43YzAsMC4xLTAuMSwwLjItMC4xLDAuMgoJCWMtMC4xLDAtMC4xLDAuMS0wLjIsMC4xYy0wLjEsMC0wLjIsMC0wLjQsMGMtMC4yLDAtMC4zLDAtMC41LDBjLTAuMiwwLTAuNSwwLTAuNywwLjFzLTAuNCwwLjItMC41LDAuM2MtMC4yLDAuMS0wLjMsMC4zLTAuNCwwLjUKCQljLTAuMSwwLjItMC4yLDAuNC0wLjMsMC43djUuN2gtMi4ydi05LjJoMS4zYzAuMiwwLDAuNCwwLDAuNSwwLjFjMC4xLDAuMSwwLjIsMC4yLDAuMiwwLjRMMTE5LjYsMTR6Ii8+CjwvZz4KPC9zdmc+Cg=="},556:function(e,t,n){e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},n=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in r)if(r.hasOwnProperty(o)){if(!("channels"in r[o]))throw new Error("missing channels property: "+o);if(!("labels"in r[o]))throw new Error("missing channel labels property: "+o);if(r[o].labels.length!==r[o].channels)throw new Error("channel and label counts mismatch: "+o);var a=r[o].channels,s=r[o].labels;delete r[o].channels,delete r[o].labels,Object.defineProperty(r[o],"channels",{value:a}),Object.defineProperty(r[o],"labels",{value:s})}r.rgb.hsl=function(e){var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a;return s===a?t=0:i===s?t=(r-o)/l:r===s?t=2+(o-i)/l:o===s&&(t=4+(i-r)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]},r.rgb.hsv=function(e){var t,n,i,r,o,a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?r=o=0:(o=u/c,t=d(a),n=d(s),i=d(l),a===c?r=i-n:s===c?r=1/3+t-i:l===c&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*o,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,i))*100,100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,i=e[1]/255,r=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-i,1-r)))/(1-t)||0),100*((1-i-t)/(1-t)||0),100*((1-r-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var i=n[e];if(i)return i;var r,o,a,s=1/0;for(var l in t)if(t.hasOwnProperty(l)){var c=(o=e,a=t[l],Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));c<s&&(s=c,r=l)}return r},r.keyword.rgb=function(e){return t[e]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],i=t[1],o=t[2];return i/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},r.hsl.rgb=function(e){var t,n,i,r,o,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[o=255*l,o,o];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),r=[0,0,0];for(var c=0;c<3;c++)(i=a+1/3*-(c-1))<0&&i++,i>1&&i--,o=6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t,r[c]=255*o;return r},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,i=e[2]/100,r=n,o=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,r*=o<=1?o:2-o,[t,100*(0===i?2*r/(o+r):2*n/(i+n)),(i+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,i=e[2]/100,r=Math.floor(t)%6,o=t-Math.floor(t),a=255*i*(1-n),s=255*i*(1-n*o),l=255*i*(1-n*(1-o));switch(i*=255,r){case 0:return[i,l,a];case 1:return[s,i,a];case 2:return[a,i,l];case 3:return[a,s,i];case 4:return[l,a,i];case 5:return[i,a,s]}},r.hsv.hsl=function(e){var t,n,i,r=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return i=(2-o)*a,n=o*s,[r,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(i/=2)]},r.hwb.rgb=function(e){var t,n,i,r,o,a,s,l=e[0]/360,c=e[1]/100,u=e[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),i=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(i=1-i),r=c+i*((n=1-u)-c),t){default:case 6:case 0:o=n,a=r,s=c;break;case 1:o=r,a=n,s=c;break;case 2:o=c,a=n,s=r;break;case 3:o=c,a=r,s=n;break;case 4:o=r,a=c,s=n;break;case 5:o=n,a=c,s=r}return[255*o,255*a,255*s]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,i=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r))]},r.xyz.rgb=function(e){var t,n,i,r=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*r+1.8758*o+.0415*a,i=.0557*r+-.204*o+1.057*a,t=(t=3.2406*r+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],i=e[2];return n/=100,i/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.lab.xyz=function(e){var t,n,i,r=e[0];t=e[1]/500+(n=(r+16)/116),i=n-e[2]/200;var o=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(i,3);return n=o>.008856?o:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,[t*=95.047,n*=100,i*=108.883]},r.lab.lch=function(e){var t,n=e[0],i=e[1],r=e[2];return(t=360*Math.atan2(r,i)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(i*i+r*r),t]},r.lch.lab=function(e){var t,n=e[0],i=e[1];return t=e[2]/360*2*Math.PI,[n,i*Math.cos(t),i*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],o=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(a+=60),a},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],i=e[2];return t===n&&n===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},r.rgb.hcg=function(e){var t,n=e[0]/255,i=e[1]/255,r=e[2]/255,o=Math.max(Math.max(n,i),r),a=Math.min(Math.min(n,i),r),s=o-a;return t=s<=0?0:o===n?(i-r)/s%6:o===i?2+(r-n)/s:4+(n-i)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},r.hsl.hcg=function(e){var t,n=e[1]/100,i=e[2]/100,r=0;return(t=i<.5?2*n*i:2*n*(1-i))<1&&(r=(i-.5*t)/(1-t)),[e[0],100*t,100*r]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=t*n,r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,i=e[2]/100;if(0===n)return[255*i,255*i,255*i];var r,o=[0,0,0],a=t%1*6,s=a%1,l=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return r=(1-n)*i,[255*(n*o[0]+r),255*(n*o[1]+r),255*(n*o[2]+r)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),i=0;return n>0&&(i=t/n),[e[0],100*i,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],100*i,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,i=n-t,r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function i(e){var t=function(){for(var e={},t=Object.keys(n),i=t.length,r=0;r<i;r++)e[t[r]]={distance:-1,parent:null};return e}(),i=[e];for(t[e].distance=0;i.length;)for(var r=i.pop(),o=Object.keys(n[r]),a=o.length,s=0;s<a;s++){var l=o[s],c=t[l];-1===c.distance&&(c.distance=t[r].distance+1,c.parent=r,i.unshift(l))}return t}function r(e,t){return function(n){return t(e(n))}}function o(e,t){for(var i=[t[e].parent,e],o=n[t[e].parent][e],a=t[e].parent;t[a].parent;)i.unshift(t[a].parent),o=r(n[t[a].parent][a],o),a=t[a].parent;return o.conversion=i,o}n.rgb,n.hsl,n.hsv,n.hwb,n.cmyk,n.xyz,n.lab,n.lch,n.hex,n.keyword,n.ansi16,n.ansi256,n.hcg,n.apple,n.gray;var a={};Object.keys(n).forEach((function(e){a[e]={},Object.defineProperty(a[e],"channels",{value:n[e].channels}),Object.defineProperty(a[e],"labels",{value:n[e].labels});var t=function(e){for(var t=i(e),n={},r=Object.keys(t),a=r.length,s=0;s<a;s++){var l=r[s];null!==t[l].parent&&(n[l]=o(l,t))}return n}(e);Object.keys(t).forEach((function(n){var i=t[n];a[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var i=n.length,r=0;r<i;r++)n[r]=Math.round(n[r]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(i),a[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(i)}))}));var s=a,l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},c={getRgba:u,getHsla:d,getRgb:function(e){var t=u(e);return t&&t.slice(0,3)},getHsl:function(e){var t=d(e);return t&&t.slice(0,3)},getHwb:h,getAlpha:function(e){var t=u(e);return t||(t=d(e))||(t=h(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+v(e[0])+v(e[1])+v(e[2])+(t>=0&&t<1?v(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?f(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:f,percentString:function(e,t){return t<1||e[3]&&e[3]<1?p(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"},percentaString:p,hslString:function(e,t){return t<1||e[3]&&e[3]<1?g(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:g,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return y[e.slice(0,3)]}};function u(e){if(e){var t=[0,0,0],n=1,i=e.match(/^#([a-fA-F0-9]{3,4})$/i),r="";if(i){r=(i=i[1])[3];for(var o=0;o<t.length;o++)t[o]=parseInt(i[o]+i[o],16);r&&(n=Math.round(parseInt(r+r,16)/255*100)/100)}else if(i=e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(r=i[2],i=i[1],o=0;o<t.length;o++)t[o]=parseInt(i.slice(2*o,2*o+2),16);r&&(n=Math.round(parseInt(r,16)/255*100)/100)}else if(i=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=parseInt(i[o+1]);n=parseFloat(i[4])}else if(i=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=Math.round(2.55*parseFloat(i[o+1]));n=parseFloat(i[4])}else if(i=e.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(t=l[i[1]]))return}for(o=0;o<t.length;o++)t[o]=m(t[o],0,255);return n=n||0==n?m(n,0,1):1,t[3]=n,t}}function d(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[m(parseInt(t[1]),0,360),m(parseFloat(t[2]),0,100),m(parseFloat(t[3]),0,100),m(isNaN(n)?1:n,0,1)]}}}function h(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[m(parseInt(t[1]),0,360),m(parseFloat(t[2]),0,100),m(parseFloat(t[3]),0,100),m(isNaN(n)?1:n,0,1)]}}}function f(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function p(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function g(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function m(e,t,n){return Math.min(Math.max(t,e),n)}function v(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var y={};for(var b in l)y[l[b]]=b;var x=function(e){return e instanceof x?e:this instanceof x?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=c.getRgba(e))?this.setValues("rgb",t):(t=c.getHsla(e))?this.setValues("hsl",t):(t=c.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new x(e);var t};x.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return c.hexString(this.values.rgb)},rgbString:function(){return c.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return c.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return c.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return c.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return c.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return c.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return c.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var i=e[n]/255;t[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=this,i=e,r=void 0===t?.5:t,o=2*r-1,a=n.alpha()-i.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return this.rgb(s*n.red()+l*i.red(),s*n.green()+l*i.green(),s*n.blue()+l*i.blue()).alpha(n.alpha()*r+i.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new x,i=this.values,r=n.values;for(var o in i)i.hasOwnProperty(o)&&(e=i[o],"[object Array]"===(t={}.toString.call(e))?r[o]=e.slice(0):"[object Number]"===t?r[o]=e:console.error("unexpected color value:",e));return n}},x.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},x.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},x.prototype.getValues=function(e){for(var t=this.values,n={},i=0;i<e.length;i++)n[e.charAt(i)]=t[e][i];return 1!==t.alpha&&(n.a=t.alpha),n},x.prototype.setValues=function(e,t){var n,i,r=this.values,o=this.spaces,a=this.maxes,l=1;if(this.valid=!0,"alpha"===e)l=t;else if(t.length)r[e]=t.slice(0,e.length),l=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)r[e][n]=t[e.charAt(n)];l=t.a}else if(void 0!==t[o[e][0]]){var c=o[e];for(n=0;n<e.length;n++)r[e][n]=t[c[n]];l=t.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===l?r.alpha:l)),"alpha"===e)return!1;for(n=0;n<e.length;n++)i=Math.max(0,Math.min(a[e][n],r[e][n])),r[e][n]=Math.round(i);for(var u in o)u!==e&&(r[u]=s[e][u](r[e]));return!0},x.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},x.prototype.setChannel=function(e,t,n){var i=this.values[e];return void 0===n?i[t]:(n===i[t]||(i[t]=n,this.setValues(e,i)),this)},"undefined"!=typeof window&&(window.Color=x);var w=x;function A(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var C,_={noop:function(){},uid:(C=0,function(){return C++}),isNullOrUndef:function(e){return null==e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){return("number"==typeof e||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,n){return _.valueOrDefault(_.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)},each:function(e,t,n,i){var r,o,a;if(_.isArray(e))if(o=e.length,i)for(r=o-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<o;r++)t.call(n,e[r],r);else if(_.isObject(e))for(o=(a=Object.keys(e)).length,r=0;r<o;r++)t.call(n,e[a[r]],a[r])},arrayEquals:function(e,t){var n,i,r,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],o=t[n],r instanceof Array&&o instanceof Array){if(!_.arrayEquals(r,o))return!1}else if(r!==o)return!1;return!0},clone:function(e){if(_.isArray(e))return e.map(_.clone);if(_.isObject(e)){for(var t=Object.create(e),n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=_.clone(e[n[r]]);return t}return e},_merger:function(e,t,n,i){if(A(e)){var r=t[e],o=n[e];_.isObject(r)&&_.isObject(o)?_.merge(r,o,i):t[e]=_.clone(o)}},_mergerIf:function(e,t,n){if(A(e)){var i=t[e],r=n[e];_.isObject(i)&&_.isObject(r)?_.mergeIf(i,r):t.hasOwnProperty(e)||(t[e]=_.clone(r))}},merge:function(e,t,n){var i,r,o,a,s,l=_.isArray(t)?t:[t],c=l.length;if(!_.isObject(e))return e;for(i=(n=n||{}).merger||_._merger,r=0;r<c;++r)if(t=l[r],_.isObject(t))for(s=0,a=(o=Object.keys(t)).length;s<a;++s)i(o[s],e,t,n);return e},mergeIf:function(e,t){return _.merge(e,t,{merger:_._mergerIf})},extend:Object.assign||function(e){return _.merge(e,[].slice.call(arguments,1),{merger:function(e,t,n){t[e]=n[e]}})},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=t.prototype,n.prototype=new i,n.extend=_.inherits,e&&_.extend(n.prototype,e),n.__super__=t.prototype,n},_deprecated:function(e,t,n,i){void 0!==t&&console.warn(e+': "'+n+'" is deprecated. Please use "'+i+'" instead')}},k=_;_.callCallback=_.callback,_.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},_.getValueOrDefault=_.valueOrDefault,_.getValueAtIndexOrDefault=_.valueAtIndexOrDefault;var M={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-M.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*M.easeInBounce(2*e):.5*M.easeOutBounce(2*e-1)+.5}},S={effects:M};k.easingEffects=M;var I=Math.PI,L=I/180,T=2*I,D=I/2,N=I/4,O=2*I/3,j={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,i,r,o){if(o){var a=Math.min(o,r/2,i/2),s=t+a,l=n+a,c=t+i-a,u=n+r-a;e.moveTo(t,l),s<c&&l<u?(e.arc(s,l,a,-I,-D),e.arc(c,l,a,-D,0),e.arc(c,u,a,0,D),e.arc(s,u,a,D,I)):s<c?(e.moveTo(s,n),e.arc(c,l,a,-D,D),e.arc(s,l,a,D,I+D)):l<u?(e.arc(s,l,a,-I,0),e.arc(s,u,a,0,I)):e.arc(s,l,a,-I,I),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,i,r)},drawPoint:function(e,t,n,i,r,o){var a,s,l,c,u,d=(o||0)*L;if(t&&"object"==typeof t&&("[object HTMLImageElement]"===(a=t.toString())||"[object HTMLCanvasElement]"===a))return e.save(),e.translate(i,r),e.rotate(d),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(i,r,n,0,T),e.closePath();break;case"triangle":e.moveTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=O,e.lineTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=O,e.lineTo(i+Math.sin(d)*n,r-Math.cos(d)*n),e.closePath();break;case"rectRounded":c=n-(u=.516*n),s=Math.cos(d+N)*c,l=Math.sin(d+N)*c,e.arc(i-s,r-l,u,d-I,d-D),e.arc(i+l,r-s,u,d-D,d),e.arc(i+s,r+l,u,d,d+D),e.arc(i-l,r+s,u,d+D,d+I),e.closePath();break;case"rect":if(!o){c=Math.SQRT1_2*n,e.rect(i-c,r-c,2*c,2*c);break}d+=N;case"rectRot":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+l,r-s),e.lineTo(i+s,r+l),e.lineTo(i-l,r+s),e.closePath();break;case"crossRot":d+=N;case"cross":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s);break;case"star":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s),d+=N,s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s);break;case"line":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l);break;case"dash":e.moveTo(i,r),e.lineTo(i+Math.cos(d)*n,r+Math.sin(d)*n)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){var n=1e-6;return e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,i){var r=n.steppedLine;if(r){if("middle"===r){var o=(t.x+n.x)/2;e.lineTo(o,i?n.y:t.y),e.lineTo(o,i?t.y:n.y)}else"after"===r&&!i||"after"!==r&&i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(i?t.controlPointPreviousX:t.controlPointNextX,i?t.controlPointPreviousY:t.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},E=j;k.clear=j.clear,k.drawRoundedRectangle=function(e){e.beginPath(),j.roundedRect.apply(j,arguments)};var F={_set:function(e,t){return k.merge(this[e]||(this[e]={}),t)}};F._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var P=F,z=k.valueOrDefault;var R={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,i,r;return k.isObject(e)?(t=+e.top||0,n=+e.right||0,i=+e.bottom||0,r=+e.left||0):t=n=i=r=+e||0,{top:t,right:n,bottom:i,left:r,height:t+i,width:r+n}},_parseFont:function(e){var t=P.global,n=z(e.fontSize,t.defaultFontSize),i={family:z(e.fontFamily,t.defaultFontFamily),lineHeight:k.options.toLineHeight(z(e.lineHeight,t.defaultLineHeight),n),size:n,style:z(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return i.string=function(e){return!e||k.isNullOrUndef(e.size)||k.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i},resolve:function(e,t,n,i){var r,o,a,s=!0;for(r=0,o=e.length;r<o;++r)if(void 0!==(a=e[r])&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==n&&k.isArray(a)&&(a=a[n],s=!1),void 0!==a))return i&&!s&&(i.cacheable=!1),a}},B={_factorize:function(e){var t,n=[],i=Math.sqrt(e);for(t=1;t<i;t++)e%t==0&&(n.push(t),n.push(e/t));return i===(0|i)&&n.push(i),n.sort((function(e,t){return e-t})).pop(),n},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t}},W=B;k.log10=B.log10;var Y=k,U=S,H=E,V=R,Z=W,G={getRtlAdapter:function(e,t,n){return e?function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,n):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}},overrideTextDirection:function(e,t){var n,i;"ltr"!==t&&"rtl"!==t||(i=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)},restoreTextDirection:function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};Y.easing=U,Y.canvas=H,Y.options=V,Y.math=Z,Y.rtl=G;var Q=function(e){Y.extend(this,e),this.initialize.apply(this,arguments)};Y.extend(Q.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=Y.extend({},e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,i=t._start,r=t._view;return n&&1!==e?(r||(r=t._view={}),i||(i=t._start={}),function(e,t,n,i){var r,o,a,s,l,c,u,d,h,f=Object.keys(n);for(r=0,o=f.length;r<o;++r)if(c=n[a=f[r]],t.hasOwnProperty(a)||(t[a]=c),(s=t[a])!==c&&"_"!==a[0]){if(e.hasOwnProperty(a)||(e[a]=s),(u=typeof c)==typeof(l=e[a]))if("string"===u){if((d=w(l)).valid&&(h=w(c)).valid){t[a]=h.mix(d,i).rgbString();continue}}else if(Y.isFinite(l)&&Y.isFinite(c)){t[a]=l+(c-l)*i;continue}t[a]=c}}(i,r,n,e),t):(t._view=Y.extend({},n),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return Y.isNumber(this._model.x)&&Y.isNumber(this._model.y)}}),Q.extend=Y.inherits;var J=Q,q=J.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),X=q;Object.defineProperty(q.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(q.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),P._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:Y.noop,onComplete:Y.noop}});var K={animations:[],request:null,addAnimation:function(e,t,n,i){var r,o,a=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,i||(e.animating=!0),r=0,o=a.length;r<o;++r)if(a[r].chart===e)return void(a[r]=t);a.push(t),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=Y.findIndex(this.animations,(function(t){return t.chart===e}));-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=Y.requestAnimFrame.call(window,(function(){e.request=null,e.startDigest()})))},startDigest:function(){var e=this;e.advance(),e.animations.length>0&&e.requestAnimationFrame()},advance:function(){for(var e,t,n,i,r=this.animations,o=0;o<r.length;)t=(e=r[o]).chart,n=e.numSteps,i=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(i,n),Y.callback(e.render,[t,e],t),Y.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(Y.callback(e.onAnimationComplete,[e],t),t.animating=!1,r.splice(o,1)):++o}},$=Y.options.resolve,ee=["push","pop","shift","splice","unshift"];function te(e,t){var n=e._chartjs;if(n){var i=n.listeners,r=i.indexOf(t);-1!==r&&i.splice(r,1),i.length>0||(ee.forEach((function(t){delete e[t]})),delete e._chartjs)}}var ne=function(e,t){this.initialize(e,t)};Y.extend(ne.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.chart,i=n.scales,r=e.getDataset(),o=n.options.scales;null!==t.xAxisID&&t.xAxisID in i&&!r.xAxisID||(t.xAxisID=r.xAxisID||o.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in i&&!r.yAxisID||(t.yAxisID=r.yAxisID||o.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&te(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,n=t.dataElementType;return n&&new n({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,n=this,i=n.getMeta(),r=n.getDataset().data||[],o=i.data;for(e=0,t=r.length;e<t;++e)o[e]=o[e]||n.createMetaData(e);i.dataset=i.dataset||n.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,t,n=this,i=n.getDataset(),r=i.data||(i.data=[]);n._data!==r&&(n._data&&te(n._data,n),r&&Object.isExtensible(r)&&(t=n,(e=r)._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),ee.forEach((function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),r=i.apply(this,t);return Y.each(e._chartjs.listeners,(function(e){"function"==typeof e[n]&&e[n].apply(e,t)})),r}})})))),n._data=r),n.resyncElements()},_configure:function(){var e=this;e._config=Y.merge(Object.create(null),[e.chart.options.datasets[e._type],e.getDataset()],{merger:function(e,t,n){"_meta"!==e&&"data"!==e&&Y._merger(e,t,n)}})},_update:function(e){var t=this;t._configure(),t._cachedDataOpts=null,t.update(e)},update:Y.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],i=n.length,r=0;r<i;++r)n[r].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,i=0;for(e.dataset&&e.dataset.draw();i<n;++i)t[i].draw()},getStyle:function(e){var t,n=this,i=n.getMeta(),r=i.dataset;return n._configure(),r&&void 0===e?t=n._resolveDatasetElementOptions(r||{}):(e=e||0,t=n._resolveDataElementOptions(i.data[e]||{},e)),!1!==t.fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var n,i,r,o,a=this,s=a.chart,l=a._config,c=e.custom||{},u=s.options.elements[a.datasetElementType.prototype._type]||{},d=a._datasetElementOptions,h={},f={chart:s,dataset:a.getDataset(),datasetIndex:a.index,hover:t};for(n=0,i=d.length;n<i;++n)r=d[n],o=t?"hover"+r.charAt(0).toUpperCase()+r.slice(1):r,h[r]=$([c[o],l[o],u[o]],f);return h},_resolveDataElementOptions:function(e,t){var n=this,i=e&&e.custom,r=n._cachedDataOpts;if(r&&!i)return r;var o,a,s,l,c=n.chart,u=n._config,d=c.options.elements[n.dataElementType.prototype._type]||{},h=n._dataElementOptions,f={},p={chart:c,dataIndex:t,dataset:n.getDataset(),datasetIndex:n.index},g={cacheable:!i};if(i=i||{},Y.isArray(h))for(a=0,s=h.length;a<s;++a)f[l=h[a]]=$([i[l],u[l],d[l]],p,t,g);else for(a=0,s=(o=Object.keys(h)).length;a<s;++a)f[l=o[a]]=$([i[l],u[h[l]],u[l],d[l]],p,t,g);return g.cacheable&&(n._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(e){Y.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,i=e.custom||{},r=e._model,o=Y.getHoverColor;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth},r.backgroundColor=$([i.hoverBackgroundColor,t.hoverBackgroundColor,o(r.backgroundColor)],void 0,n),r.borderColor=$([i.hoverBorderColor,t.hoverBorderColor,o(r.borderColor)],void 0,n),r.borderWidth=$([i.hoverBorderWidth,t.hoverBorderWidth,r.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,n,i,r,o,a=this.getMeta().dataset,s={};if(a){for(o=a._model,r=this._resolveDatasetElementOptions(a,!0),e=0,t=(i=Object.keys(r)).length;e<t;++e)s[n=i[e]]=o[n],o[n]=r[n];a.$previousStyle=s}},resyncElements:function(){var e=this,t=e.getMeta(),n=e.getDataset().data,i=t.data.length,r=n.length;r<i?t.data.splice(r,i-r):r>i&&e.insertElements(i,r-i)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),ne.extend=Y.inherits;var ie=ne,re=2*Math.PI;function oe(e,t){var n=t.startAngle,i=t.endAngle,r=t.pixelMargin,o=r/t.outerRadius,a=t.x,s=t.y;e.beginPath(),e.arc(a,s,t.outerRadius,n-o,i+o),t.innerRadius>r?(o=r/t.innerRadius,e.arc(a,s,t.innerRadius-r,i+o,n-o,!0)):e.arc(a,s,r,i+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function ae(e,t,n){var i="inner"===t.borderAlign;i?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&function(e,t,n,i){var r,o=n.endAngle;for(i&&(n.endAngle=n.startAngle+re,oe(e,n),n.endAngle=o,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=re,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+re,n.startAngle,!0),r=0;r<n.fullCircles;++r)e.stroke();for(e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.startAngle+re),r=0;r<n.fullCircles;++r)e.stroke()}(e,t,n,i),i&&oe(e,n),e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.endAngle),e.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),e.closePath(),e.stroke()}P._set("global",{elements:{arc:{backgroundColor:P.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var se=J.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var i=Y.getAngleFromPoint(n,{x:e,y:t}),r=i.angle,o=i.distance,a=n.startAngle,s=n.endAngle;s<a;)s+=re;for(;r>s;)r-=re;for(;r<a;)r+=re;var l=r>=a&&r<=s,c=o>=n.innerRadius&&o<=n.outerRadius;return l&&c}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,i="inner"===n.borderAlign?.33:0,r={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-i,0),pixelMargin:i,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/re)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,r.fullCircles){for(r.endAngle=r.startAngle+re,t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),e=0;e<r.fullCircles;++e)t.fill();r.endAngle=r.startAngle+n.circumference%re}t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),t.fill(),n.borderWidth&&ae(t,n,r),t.restore()}}),le=Y.valueOrDefault,ce=P.global.defaultColor;P._set("global",{elements:{line:{tension:.4,backgroundColor:ce,borderWidth:3,borderColor:ce,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var ue=J.extend({_type:"line",draw:function(){var e,t,n,i=this,r=i._view,o=i._chart.ctx,a=r.spanGaps,s=i._children.slice(),l=P.global,c=l.elements.line,u=-1,d=i._loop;if(s.length){if(i._loop){for(e=0;e<s.length;++e)if(t=Y.previousItem(s,e),!s[e]._view.skip&&t._view.skip){s=s.slice(e).concat(s.slice(0,e)),d=a;break}d&&s.push(s[0])}for(o.save(),o.lineCap=r.borderCapStyle||c.borderCapStyle,o.setLineDash&&o.setLineDash(r.borderDash||c.borderDash),o.lineDashOffset=le(r.borderDashOffset,c.borderDashOffset),o.lineJoin=r.borderJoinStyle||c.borderJoinStyle,o.lineWidth=le(r.borderWidth,c.borderWidth),o.strokeStyle=r.borderColor||l.defaultColor,o.beginPath(),(n=s[0]._view).skip||(o.moveTo(n.x,n.y),u=0),e=1;e<s.length;++e)n=s[e]._view,t=-1===u?Y.previousItem(s,e):s[u],n.skip||(u!==e-1&&!a||-1===u?o.moveTo(n.x,n.y):Y.canvas.lineTo(o,t._view,n),u=e);d&&o.closePath(),o.stroke(),o.restore()}}}),de=Y.valueOrDefault,he=P.global.defaultColor;function fe(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}P._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:he,borderColor:he,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var pe=J.extend({_type:"point",inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:fe,inXRange:fe,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._chart.ctx,i=t.pointStyle,r=t.rotation,o=t.radius,a=t.x,s=t.y,l=P.global,c=l.defaultColor;t.skip||(void 0===e||Y.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||c,n.lineWidth=de(t.borderWidth,l.elements.point.borderWidth),n.fillStyle=t.backgroundColor||c,Y.canvas.drawPoint(n,i,o,a,s,r))}}),ge=P.global.defaultColor;function me(e){return e&&void 0!==e.width}function ve(e){var t,n,i,r,o;return me(e)?(o=e.width/2,t=e.x-o,n=e.x+o,i=Math.min(e.y,e.base),r=Math.max(e.y,e.base)):(o=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),i=e.y-o,r=e.y+o),{left:t,top:i,right:n,bottom:r}}function ye(e,t,n){return e===t?n:e===n?t:e}function be(e,t,n){var i,r,o,a,s=e.borderWidth,l=function(e){var t=e.borderSkipped,n={};return t?(e.horizontal?e.base>e.x&&(t=ye(t,"left","right")):e.base<e.y&&(t=ye(t,"bottom","top")),n[t]=!0,n):n}(e);return Y.isObject(s)?(i=+s.top||0,r=+s.right||0,o=+s.bottom||0,a=+s.left||0):i=r=o=a=+s||0,{t:l.top||i<0?0:i>n?n:i,r:l.right||r<0?0:r>t?t:r,b:l.bottom||o<0?0:o>n?n:o,l:l.left||a<0?0:a>t?t:a}}function xe(e,t,n){var i=null===t,r=null===n,o=!(!e||i&&r)&&ve(e);return o&&(i||t>=o.left&&t<=o.right)&&(r||n>=o.top&&n<=o.bottom)}P._set("global",{elements:{rectangle:{backgroundColor:ge,borderColor:ge,borderSkipped:"bottom",borderWidth:0}}});var we=J.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=function(e){var t=ve(e),n=t.right-t.left,i=t.bottom-t.top,r=be(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b}}}(t),i=n.outer,r=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(i.x,i.y,i.w,i.h),i.w===r.w&&i.h===r.h||(e.save(),e.beginPath(),e.rect(i.x,i.y,i.w,i.h),e.clip(),e.fillStyle=t.borderColor,e.rect(r.x,r.y,r.w,r.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return xe(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return me(n)?xe(n,e,null):xe(n,null,t)},inXRange:function(e){return xe(this._view,e,null)},inYRange:function(e){return xe(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return me(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return me(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Ae={},Ce=se,_e=ue,ke=pe,Me=we;Ae.Arc=Ce,Ae.Line=_e,Ae.Point=ke,Ae.Rectangle=Me;var Se=Y._deprecated,Ie=Y.valueOrDefault;function Le(e,t,n){var i,r,o=n.barThickness,a=t.stackCount,s=t.pixels[e],l=Y.isNullOrUndef(o)?function(e,t){var n,i,r,o,a=e._length;for(r=1,o=t.length;r<o;++r)a=Math.min(a,Math.abs(t[r]-t[r-1]));for(r=0,o=e.getTicks().length;r<o;++r)i=e.getPixelForTick(r),a=r>0?Math.min(a,Math.abs(i-n)):a,n=i;return a}(t.scale,t.pixels):-1;return Y.isNullOrUndef(o)?(i=l*n.categoryPercentage,r=n.barPercentage):(i=o*a,r=1),{chunk:i/a,ratio:r,start:s-i/2}}P._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),P._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Te=ie.extend({dataElementType:Ae.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;ie.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,Se("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Se("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Se("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Se("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Se("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,i=this,r=i.getMeta().data;for(i._ruler=i.getRuler(),t=0,n=r.length;t<n;++t)i.updateElement(r[t],t,e)},updateElement:function(e,t,n){var i=this,r=i.getMeta(),o=i.getDataset(),a=i._resolveDataElementOptions(e,t);e._xScale=i.getScaleForId(r.xAxisID),e._yScale=i.getScaleForId(r.yAxisID),e._datasetIndex=i.index,e._index=t,e._model={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderSkipped:a.borderSkipped,borderWidth:a.borderWidth,datasetLabel:o.label,label:i.chart.data.labels[t]},Y.isArray(o.data[t])&&(e._model.borderSkipped=null),i._updateElementGeometry(e,t,n,a),e.pivot()},_updateElementGeometry:function(e,t,n,i){var r=this,o=e._model,a=r._getValueScale(),s=a.getBasePixel(),l=a.isHorizontal(),c=r._ruler||r.getRuler(),u=r.calculateBarValuePixels(r.index,t,i),d=r.calculateBarIndexPixels(r.index,t,c,i);o.horizontal=l,o.base=n?s:u.base,o.x=l?n?s:u.head:d.center,o.y=l?d.center:n?s:u.head,o.height=l?d.size:void 0,o.width=l?void 0:d.size},_getStacks:function(e){var t,n,i=this._getIndexScale(),r=i._getMatchingVisibleMetas(this._type),o=i.options.stacked,a=r.length,s=[];for(t=0;t<a&&(n=r[t],(!1===o||-1===s.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&s.push(n.stack),n.index!==e);++t);return s},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),i=void 0!==t?n.indexOf(t):-1;return-1===i?n.length-1:i},getRuler:function(){var e,t,n=this,i=n._getIndexScale(),r=[];for(e=0,t=n.getMeta().data.length;e<t;++e)r.push(i.getPixelForValue(null,e,n.index));return{pixels:r,start:i._startPixel,end:i._endPixel,stackCount:n.getStackCount(),scale:i}},calculateBarValuePixels:function(e,t,n){var i,r,o,a,s,l,c,u=this,d=u.chart,h=u._getValueScale(),f=h.isHorizontal(),p=d.data.datasets,g=h._getMatchingVisibleMetas(u._type),m=h._parseValue(p[e].data[t]),v=n.minBarLength,y=h.options.stacked,b=u.getMeta().stack,x=void 0===m.start?0:m.max>=0&&m.min>=0?m.min:m.max,w=void 0===m.start?m.end:m.max>=0&&m.min>=0?m.max-m.min:m.min-m.max,A=g.length;if(y||void 0===y&&void 0!==b)for(i=0;i<A&&(r=g[i]).index!==e;++i)r.stack===b&&(o=void 0===(c=h._parseValue(p[r.index].data[t])).start?c.end:c.min>=0&&c.max>=0?c.max:c.min,(m.min<0&&o<0||m.max>=0&&o>0)&&(x+=o));return a=h.getPixelForValue(x),l=(s=h.getPixelForValue(x+w))-a,void 0!==v&&Math.abs(l)<v&&(l=v,s=w>=0&&!f||w<0&&f?a-v:a+v),{size:l,base:a,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,n,i){var r="flex"===i.barThickness?function(e,t,n){var i,r=t.pixels,o=r[e],a=e>0?r[e-1]:null,s=e<r.length-1?r[e+1]:null,l=n.categoryPercentage;return null===a&&(a=o-(null===s?t.end-t.start:s-o)),null===s&&(s=o+o-a),i=o-(o-Math.min(a,s))/2*l,{chunk:Math.abs(s-a)/2*l/t.stackCount,ratio:n.barPercentage,start:i}}(t,n,i):Le(t,n,i),o=this.getStackIndex(e,this.getMeta().stack),a=r.start+r.chunk*o+r.chunk/2,s=Math.min(Ie(i.maxBarThickness,1/0),r.chunk*r.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}},draw:function(){var e=this,t=e.chart,n=e._getValueScale(),i=e.getMeta().data,r=e.getDataset(),o=i.length,a=0;for(Y.canvas.clipArea(t.ctx,t.chartArea);a<o;++a){var s=n._parseValue(r.data[a]);isNaN(s.min)||isNaN(s.max)||i[a].draw()}Y.canvas.unclipArea(t.ctx)},_resolveDataElementOptions:function(){var e=this,t=Y.extend({},ie.prototype._resolveDataElementOptions.apply(e,arguments)),n=e._getIndexScale().options,i=e._getValueScale().options;return t.barPercentage=Ie(n.barPercentage,t.barPercentage),t.barThickness=Ie(n.barThickness,t.barThickness),t.categoryPercentage=Ie(n.categoryPercentage,t.categoryPercentage),t.maxBarThickness=Ie(n.maxBarThickness,t.maxBarThickness),t.minBarLength=Ie(i.minBarLength,t.minBarLength),t}}),De=Y.valueOrDefault,Ne=Y.options.resolve;P._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",i=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+i.r+")"}}}});var Oe=ie.extend({dataElementType:Ae.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,n=t.getMeta().data;Y.each(n,(function(n,i){t.updateElement(n,i,e)}))},updateElement:function(e,t,n){var i=this,r=i.getMeta(),o=e.custom||{},a=i.getScaleForId(r.xAxisID),s=i.getScaleForId(r.yAxisID),l=i._resolveDataElementOptions(e,t),c=i.getDataset().data[t],u=i.index,d=n?a.getPixelForDecimal(.5):a.getPixelForValue("object"==typeof c?c:NaN,t,u),h=n?s.getBasePixel():s.getPixelForValue(c,t,u);e._xScale=a,e._yScale=s,e._options=l,e._datasetIndex=u,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:n?0:l.radius,skip:o.skip||isNaN(d)||isNaN(h),x:d,y:h},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=De(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=De(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=De(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(e,t){var n=this,i=n.chart,r=n.getDataset(),o=e.custom||{},a=r.data[t]||{},s=ie.prototype._resolveDataElementOptions.apply(n,arguments),l={chart:i,dataIndex:t,dataset:r,datasetIndex:n.index};return n._cachedDataOpts===s&&(s=Y.extend({},s)),s.radius=Ne([o.radius,a.r,n._config.radius,i.options.elements.point.radius],l,t),s}}),je=Y.valueOrDefault,Ee=Math.PI,Fe=2*Ee,Pe=Ee/2;P._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,n,i,r=document.createElement("ul"),o=e.data,a=o.datasets,s=o.labels;if(r.setAttribute("class",e.id+"-legend"),a.length)for(t=0,n=a[0].data.length;t<n;++t)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[t],s[t]&&i.appendChild(document.createTextNode(s[t]));return r.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,i){var r=e.getDatasetMeta(0),o=r.controller.getStyle(i);return{text:n,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(t.datasets[0].data[i])||r.data[i].hidden,index:i}})):[]}},onClick:function(e,t){var n,i,r,o=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(r=a.getDatasetMeta(n)).data[o]&&(r.data[o].hidden=!r.data[o].hidden);a.update()}},cutoutPercentage:50,rotation:-Pe,circumference:Fe,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],i=": "+t.datasets[e.datasetIndex].data[e.index];return Y.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}});var ze=ie.extend({dataElementType:Ae.Arc,linkScales:Y.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t,n,i,r,o=this,a=o.chart,s=a.chartArea,l=a.options,c=1,u=1,d=0,h=0,f=o.getMeta(),p=f.data,g=l.cutoutPercentage/100||0,m=l.circumference,v=o._getRingWeight(o.index);if(m<Fe){var y=l.rotation%Fe,b=(y+=y>=Ee?-Fe:y<-Ee?Fe:0)+m,x=Math.cos(y),w=Math.sin(y),A=Math.cos(b),C=Math.sin(b),_=y<=0&&b>=0||b>=Fe,k=y<=Pe&&b>=Pe||b>=Fe+Pe,M=y<=-Pe&&b>=-Pe||b>=Ee+Pe,S=y===-Ee||b>=Ee?-1:Math.min(x,x*g,A,A*g),I=M?-1:Math.min(w,w*g,C,C*g),L=_?1:Math.max(x,x*g,A,A*g),T=k?1:Math.max(w,w*g,C,C*g);c=(L-S)/2,u=(T-I)/2,d=-(L+S)/2,h=-(T+I)/2}for(i=0,r=p.length;i<r;++i)p[i]._options=o._resolveDataElementOptions(p[i],i);for(a.borderWidth=o.getMaxBorderWidth(),t=(s.right-s.left-a.borderWidth)/c,n=(s.bottom-s.top-a.borderWidth)/u,a.outerRadius=Math.max(Math.min(t,n)/2,0),a.innerRadius=Math.max(a.outerRadius*g,0),a.radiusLength=(a.outerRadius-a.innerRadius)/(o._getVisibleDatasetWeightTotal()||1),a.offsetX=d*a.outerRadius,a.offsetY=h*a.outerRadius,f.total=o.calculateTotal(),o.outerRadius=a.outerRadius-a.radiusLength*o._getRingWeightOffset(o.index),o.innerRadius=Math.max(o.outerRadius-a.radiusLength*v,0),i=0,r=p.length;i<r;++i)o.updateElement(p[i],i,e)},updateElement:function(e,t,n){var i=this,r=i.chart,o=r.chartArea,a=r.options,s=a.animation,l=(o.left+o.right)/2,c=(o.top+o.bottom)/2,u=a.rotation,d=a.rotation,h=i.getDataset(),f=n&&s.animateRotate||e.hidden?0:i.calculateCircumference(h.data[t])*(a.circumference/Fe),p=n&&s.animateScale?0:i.innerRadius,g=n&&s.animateScale?0:i.outerRadius,m=e._options||{};Y.extend(e,{_datasetIndex:i.index,_index:t,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:l+r.offsetX,y:c+r.offsetY,startAngle:u,endAngle:d,circumference:f,outerRadius:g,innerRadius:p,label:Y.valueAtIndexOrDefault(h.label,t,r.data.labels[t])}});var v=e._model;n&&s.animateRotate||(v.startAngle=0===t?a.rotation:i.getMeta().data[t-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),i=0;return Y.each(n.data,(function(n,r){e=t.data[r],isNaN(e)||n.hidden||(i+=Math.abs(e))})),i},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?Fe*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,i,r,o,a,s,l,c=0,u=this.chart;if(!e)for(t=0,n=u.data.datasets.length;t<n;++t)if(u.isDatasetVisible(t)){e=(i=u.getDatasetMeta(t)).data,t!==this.index&&(o=i.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)r=e[t],o?(o._configure(),a=o._resolveDataElementOptions(r,t)):a=r._options,"inner"!==a.borderAlign&&(s=a.borderWidth,c=(l=a.hoverBorderWidth)>(c=s>c?s:c)?l:c);return c},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=je(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=je(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=je(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t},_getRingWeight:function(e){return Math.max(je(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});P._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),P._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var Re=Te.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Be=Y.valueOrDefault,We=Y.options.resolve,Ye=Y.canvas._isPointInArea;function Ue(e,t){var n=e&&e.options.ticks||{},i=n.reverse,r=void 0===n.min?t:0,o=void 0===n.max?t:0;return{start:i?o:r,end:i?r:o}}P._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var He=ie.extend({datasetElementType:Ae.Line,dataElementType:Ae.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t,n,i=this,r=i.getMeta(),o=r.dataset,a=r.data||[],s=i.chart.options,l=i._config,c=i._showLine=Be(l.showLine,s.showLines);for(i._xScale=i.getScaleForId(r.xAxisID),i._yScale=i.getScaleForId(r.yAxisID),c&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),o._scale=i._yScale,o._datasetIndex=i.index,o._children=a,o._model=i._resolveDatasetElementOptions(o),o.pivot()),t=0,n=a.length;t<n;++t)i.updateElement(a[t],t,e);for(c&&0!==o._model.tension&&i.updateBezierControlPoints(),t=0,n=a.length;t<n;++t)a[t].pivot()},updateElement:function(e,t,n){var i,r,o=this,a=o.getMeta(),s=e.custom||{},l=o.getDataset(),c=o.index,u=l.data[t],d=o._xScale,h=o._yScale,f=a.dataset._model,p=o._resolveDataElementOptions(e,t);i=d.getPixelForValue("object"==typeof u?u:NaN,t,c),r=n?h.getBasePixel():o.calculatePointY(u,t,c),e._xScale=d,e._yScale=h,e._options=p,e._datasetIndex=c,e._index=t,e._model={x:i,y:r,skip:s.skip||isNaN(i)||isNaN(r),radius:p.radius,pointStyle:p.pointStyle,rotation:p.rotation,backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,tension:Be(s.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:p.hitRadius}},_resolveDatasetElementOptions:function(e){var t,n,i,r,o,a,s,l,c,u,d,h=this,f=h._config,p=e.custom||{},g=h.chart.options,m=g.elements.line,v=ie.prototype._resolveDatasetElementOptions.apply(h,arguments);return v.spanGaps=Be(f.spanGaps,g.spanGaps),v.tension=Be(f.lineTension,m.tension),v.steppedLine=We([p.steppedLine,f.steppedLine,m.stepped]),v.clip=(t=Be(f.clip,(a=h._xScale,s=h._yScale,l=v.borderWidth,u=Ue(a,c=l/2),{top:(d=Ue(s,c)).end,right:u.end,bottom:d.start,left:u.start})),Y.isObject(t)?(n=t.top,i=t.right,r=t.bottom,o=t.left):n=i=r=o=t,{top:n,right:i,bottom:r,left:o}),v},calculatePointY:function(e,t,n){var i,r,o,a,s,l,c,u=this.chart,d=this._yScale,h=0,f=0;if(d.options.stacked){for(s=+d.getRightValue(e),c=(l=u._getSortedVisibleDatasetMetas()).length,i=0;i<c&&(o=l[i]).index!==n;++i)r=u.data.datasets[o.index],"line"===o.type&&o.yAxisID===d.id&&((a=+d.getRightValue(r.data[t]))<0?f+=a||0:h+=a||0);return s<0?d.getPixelForValue(f+s):d.getPixelForValue(h+s)}return d.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,i,r=this.chart,o=this.getMeta(),a=o.dataset._model,s=r.chartArea,l=o.data||[];function c(e,t,n){return Math.max(Math.min(e,n),t)}if(a.spanGaps&&(l=l.filter((function(e){return!e._model.skip}))),"monotone"===a.cubicInterpolationMode)Y.splineCurveMonotone(l);else for(e=0,t=l.length;e<t;++e)n=l[e]._model,i=Y.splineCurve(Y.previousItem(l,e)._model,n,Y.nextItem(l,e)._model,a.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(r.options.elements.line.capBezierPoints)for(e=0,t=l.length;e<t;++e)n=l[e]._model,Ye(n,s)&&(e>0&&Ye(l[e-1]._model,s)&&(n.controlPointPreviousX=c(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=c(n.controlPointPreviousY,s.top,s.bottom)),e<l.length-1&&Ye(l[e+1]._model,s)&&(n.controlPointNextX=c(n.controlPointNextX,s.left,s.right),n.controlPointNextY=c(n.controlPointNextY,s.top,s.bottom)))},draw:function(){var e,t=this,n=t.chart,i=t.getMeta(),r=i.data||[],o=n.chartArea,a=n.canvas,s=0,l=r.length;for(t._showLine&&(e=i.dataset._model.clip,Y.canvas.clipArea(n.ctx,{left:!1===e.left?0:o.left-e.left,right:!1===e.right?a.width:o.right+e.right,top:!1===e.top?0:o.top-e.top,bottom:!1===e.bottom?a.height:o.bottom+e.bottom}),i.dataset.draw(),Y.canvas.unclipArea(n.ctx));s<l;++s)r[s].draw(o)},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Be(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Be(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Be(n.hoverBorderWidth,n.borderWidth),t.radius=Be(n.hoverRadius,n.radius)}}),Ve=Y.options.resolve;P._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t,n,i,r=document.createElement("ul"),o=e.data,a=o.datasets,s=o.labels;if(r.setAttribute("class",e.id+"-legend"),a.length)for(t=0,n=a[0].data.length;t<n;++t)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[t],s[t]&&i.appendChild(document.createTextNode(s[t]));return r.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,i){var r=e.getDatasetMeta(0),o=r.controller.getStyle(i);return{text:n,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(t.datasets[0].data[i])||r.data[i].hidden,index:i}})):[]}},onClick:function(e,t){var n,i,r,o=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(r=a.getDatasetMeta(n)).data[o].hidden=!r.data[o].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var Ze=ie.extend({dataElementType:Ae.Arc,linkScales:Y.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i,r=this,o=r.getDataset(),a=r.getMeta(),s=r.chart.options.startAngle||0,l=r._starts=[],c=r._angles=[],u=a.data;for(r._updateRadius(),a.count=r.countVisibleElements(),t=0,n=o.data.length;t<n;t++)l[t]=s,i=r._computeAngle(t),c[t]=i,s+=i;for(t=0,n=u.length;t<n;++t)u[t]._options=r._resolveDataElementOptions(u[t],t),r.updateElement(u[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,i=t.options,r=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(r/2,0),t.innerRadius=Math.max(i.cutoutPercentage?t.outerRadius/100*i.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var i=this,r=i.chart,o=i.getDataset(),a=r.options,s=a.animation,l=r.scale,c=r.data.labels,u=l.xCenter,d=l.yCenter,h=a.startAngle,f=e.hidden?0:l.getDistanceFromCenterForValue(o.data[t]),p=i._starts[t],g=p+(e.hidden?0:i._angles[t]),m=s.animateScale?0:l.getDistanceFromCenterForValue(o.data[t]),v=e._options||{};Y.extend(e,{_datasetIndex:i.index,_index:t,_scale:l,_model:{backgroundColor:v.backgroundColor,borderColor:v.borderColor,borderWidth:v.borderWidth,borderAlign:v.borderAlign,x:u,y:d,innerRadius:0,outerRadius:n?m:f,startAngle:n&&s.animateRotate?h:p,endAngle:n&&s.animateRotate?h:g,label:Y.valueAtIndexOrDefault(c,t,c[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return Y.each(t.data,(function(t,i){isNaN(e.data[i])||t.hidden||n++})),n},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor,r=Y.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=r(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=r(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=r(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(e){var t=this,n=this.getMeta().count,i=t.getDataset(),r=t.getMeta();if(isNaN(i.data[e])||r.data[e].hidden)return 0;var o={chart:t.chart,dataIndex:e,dataset:i,datasetIndex:t.index};return Ve([t.chart.options.elements.arc.angle,2*Math.PI/n],o,e)}});P._set("pie",Y.clone(P.doughnut)),P._set("pie",{cutoutPercentage:0});var Ge=ze,Qe=Y.valueOrDefault;P._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var Je=ie.extend({datasetElementType:Ae.Line,dataElementType:Ae.Point,linkScales:Y.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i=this,r=i.getMeta(),o=r.dataset,a=r.data||[],s=i.chart.scale,l=i._config;for(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),o._scale=s,o._datasetIndex=i.index,o._children=a,o._loop=!0,o._model=i._resolveDatasetElementOptions(o),o.pivot(),t=0,n=a.length;t<n;++t)i.updateElement(a[t],t,e);for(i.updateBezierControlPoints(),t=0,n=a.length;t<n;++t)a[t].pivot()},updateElement:function(e,t,n){var i=this,r=e.custom||{},o=i.getDataset(),a=i.chart.scale,s=a.getPointPositionForValue(t,o.data[t]),l=i._resolveDataElementOptions(e,t),c=i.getMeta().dataset._model,u=n?a.xCenter:s.x,d=n?a.yCenter:s.y;e._scale=a,e._options=l,e._datasetIndex=i.index,e._index=t,e._model={x:u,y:d,skip:r.skip||isNaN(u)||isNaN(d),radius:l.radius,pointStyle:l.pointStyle,rotation:l.rotation,backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,tension:Qe(r.tension,c?c.tension:0),hitRadius:l.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,n=e.chart.options,i=ie.prototype._resolveDatasetElementOptions.apply(e,arguments);return i.spanGaps=Qe(t.spanGaps,n.spanGaps),i.tension=Qe(t.lineTension,n.elements.line.tension),i},updateBezierControlPoints:function(){var e,t,n,i,r=this.getMeta(),o=this.chart.chartArea,a=r.data||[];function s(e,t,n){return Math.max(Math.min(e,n),t)}for(r.dataset._model.spanGaps&&(a=a.filter((function(e){return!e._model.skip}))),e=0,t=a.length;e<t;++e)n=a[e]._model,i=Y.splineCurve(Y.previousItem(a,e,!0)._model,n,Y.nextItem(a,e,!0)._model,n.tension),n.controlPointPreviousX=s(i.previous.x,o.left,o.right),n.controlPointPreviousY=s(i.previous.y,o.top,o.bottom),n.controlPointNextX=s(i.next.x,o.left,o.right),n.controlPointNextY=s(i.next.y,o.top,o.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Qe(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Qe(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Qe(n.hoverBorderWidth,n.borderWidth),t.radius=Qe(n.hoverRadius,n.radius)}});P._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),P._set("global",{datasets:{scatter:{showLine:!1}}});var qe={bar:Te,bubble:Oe,doughnut:ze,horizontalBar:Re,line:He,polarArea:Ze,pie:Ge,radar:Je,scatter:He};function Xe(e,t){return e.native?{x:e.x,y:e.y}:Y.getRelativePosition(e,t)}function Ke(e,t){var n,i,r,o,a,s,l=e._getSortedVisibleDatasetMetas();for(i=0,o=l.length;i<o;++i)for(r=0,a=(n=l[i].data).length;r<a;++r)(s=n[r])._view.skip||t(s)}function $e(e,t){var n=[];return Ke(e,(function(e){e.inRange(t.x,t.y)&&n.push(e)})),n}function et(e,t,n,i){var r=Number.POSITIVE_INFINITY,o=[];return Ke(e,(function(e){if(!n||e.inRange(t.x,t.y)){var a=e.getCenterPoint(),s=i(t,a);s<r?(o=[e],r=s):s===r&&o.push(e)}})),o}function tt(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,i){var r=t?Math.abs(e.x-i.x):0,o=n?Math.abs(e.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}function nt(e,t,n){var i=Xe(t,e);n.axis=n.axis||"x";var r=tt(n.axis),o=n.intersect?$e(e,i):et(e,i,!1,r),a=[];return o.length?(e._getSortedVisibleDatasetMetas().forEach((function(e){var t=e.data[o[0]._index];t&&!t._view.skip&&a.push(t)})),a):[]}var it={modes:{single:function(e,t){var n=Xe(t,e),i=[];return Ke(e,(function(e){if(e.inRange(n.x,n.y))return i.push(e),i})),i.slice(0,1)},label:nt,index:nt,dataset:function(e,t,n){var i=Xe(t,e);n.axis=n.axis||"xy";var r=tt(n.axis),o=n.intersect?$e(e,i):et(e,i,!1,r);return o.length>0&&(o=e.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(e,t){return nt(e,t,{intersect:!1})},point:function(e,t){return $e(e,Xe(t,e))},nearest:function(e,t,n){var i=Xe(t,e);n.axis=n.axis||"xy";var r=tt(n.axis);return et(e,i,n.intersect,r)},x:function(e,t,n){var i=Xe(t,e),r=[],o=!1;return Ke(e,(function(e){e.inXRange(i.x)&&r.push(e),e.inRange(i.x,i.y)&&(o=!0)})),n.intersect&&!o&&(r=[]),r},y:function(e,t,n){var i=Xe(t,e),r=[],o=!1;return Ke(e,(function(e){e.inYRange(i.y)&&r.push(e),e.inRange(i.x,i.y)&&(o=!0)})),n.intersect&&!o&&(r=[]),r}}},rt=Y.extend;function ot(e,t){return Y.where(e,(function(e){return e.pos===t}))}function at(e,t){return e.sort((function(e,n){var i=t?n:e,r=t?e:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function st(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function lt(e,t,n){var i,r,o=n.box,a=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?o.height:o.width,e[n.pos]+=n.size,o.getPadding){var s=o.getPadding();a.top=Math.max(a.top,s.top),a.left=Math.max(a.left,s.left),a.bottom=Math.max(a.bottom,s.bottom),a.right=Math.max(a.right,s.right)}if(i=t.outerWidth-st(a,e,"left","right"),r=t.outerHeight-st(a,e,"top","bottom"),i!==e.w||r!==e.h){e.w=i,e.h=r;var l=n.horizontal?[i,e.w]:[r,e.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function ct(e,t){var n,i=t.maxPadding;return n={left:0,top:0,right:0,bottom:0},(e?["left","right"]:["top","bottom"]).forEach((function(e){n[e]=Math.max(t[e],i[e])})),n}function ut(e,t,n){var i,r,o,a,s,l,c=[];for(i=0,r=e.length;i<r;++i)(a=(o=e[i]).box).update(o.width||t.w,o.height||t.h,ct(o.horizontal,t)),lt(t,n,o)&&(l=!0,c.length&&(s=!0)),a.fullWidth||c.push(o);return s&&ut(c,t,n)||l}function dt(e,t,n){var i,r,o,a,s=n.padding,l=t.x,c=t.y;for(i=0,r=e.length;i<r;++i)a=(o=e[i]).box,o.horizontal?(a.left=a.fullWidth?s.left:t.left,a.right=a.fullWidth?n.outerWidth-s.right:t.left+t.w,a.top=c,a.bottom=c+a.height,a.width=a.right-a.left,c=a.bottom):(a.left=l,a.right=l+a.width,a.top=t.top,a.bottom=t.top+t.h,a.height=a.bottom-a.top,l=a.right);t.x=l,t.y=c}P._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var ht,ft={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var i,r=["fullWidth","position","weight"],o=r.length,a=0;a<o;++a)i=r[a],n.hasOwnProperty(i)&&(t[i]=n[i])},update:function(e,t,n){if(e){var i=e.options.layout||{},r=Y.options.toPadding(i.padding),o=t-r.width,a=n-r.height,s=function(e){var t=function(e){var t,n,i,r=[];for(t=0,n=(e||[]).length;t<n;++t)i=e[t],r.push({index:t,box:i,pos:i.position,horizontal:i.isHorizontal(),weight:i.weight});return r}(e),n=at(ot(t,"left"),!0),i=at(ot(t,"right")),r=at(ot(t,"top"),!0),o=at(ot(t,"bottom"));return{leftAndTop:n.concat(r),rightAndBottom:i.concat(o),chartArea:ot(t,"chartArea"),vertical:n.concat(i),horizontal:r.concat(o)}}(e.boxes),l=s.vertical,c=s.horizontal,u=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:o,vBoxMaxWidth:o/2/l.length,hBoxMaxHeight:a/2}),d=rt({maxPadding:rt({},r),w:o,h:a,x:r.left,y:r.top},r);(function(e,t){var n,i,r;for(n=0,i=e.length;n<i;++n)(r=e[n]).width=r.horizontal?r.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,r.height=r.horizontal&&t.hBoxMaxHeight})(l.concat(c),u),ut(l,d,u),ut(c,d,u)&&ut(l,d,u),function(e){var t=e.maxPadding;function n(n){var i=Math.max(t[n]-e[n],0);return e[n]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(d),dt(s.leftAndTop,d,u),d.x+=d.w,d.y+=d.h,dt(s.rightAndBottom,d,u),e.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h},Y.each(s.chartArea,(function(t){var n=t.box;rt(n,e.chartArea),n.update(d.w,d.h)}))}}},pt=(ht=Object.freeze({__proto__:null,default:"/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"}))&&ht.default||ht,gt="$chartjs",mt="chartjs-",vt=mt+"size-monitor",yt=mt+"render-monitor",bt=mt+"render-animation",xt=["animationstart","webkitAnimationStart"],wt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function At(e,t){var n=Y.getStyle(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var Ct=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function _t(e,t,n){e.addEventListener(t,n,Ct)}function kt(e,t,n){e.removeEventListener(t,n,Ct)}function Mt(e,t,n,i,r){return{type:e,chart:t,native:r||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function St(e){var t=document.createElement("div");return t.className=e||"",t}function It(e,t,n){var i,r,o,a,s=e[gt]||(e[gt]={}),l=s.resizer=function(e){var t=1e6,n=St(vt),i=St(vt+"-expand"),r=St(vt+"-shrink");i.appendChild(St()),r.appendChild(St()),n.appendChild(i),n.appendChild(r),n._reset=function(){i.scrollLeft=t,i.scrollTop=t,r.scrollLeft=t,r.scrollTop=t};var o=function(){n._reset(),e()};return _t(i,"scroll",o.bind(i,"expand")),_t(r,"scroll",o.bind(r,"shrink")),n}((i=function(){if(s.resizer){var i=n.options.maintainAspectRatio&&e.parentNode,r=i?i.clientWidth:0;t(Mt("resize",n)),i&&i.clientWidth<r&&n.canvas&&t(Mt("resize",n))}},o=!1,a=[],function(){a=Array.prototype.slice.call(arguments),r=r||this,o||(o=!0,Y.requestAnimFrame.call(window,(function(){o=!1,i.apply(r,a)})))}));!function(e,t){var n=e[gt]||(e[gt]={}),i=n.renderProxy=function(e){e.animationName===bt&&t()};Y.each(xt,(function(t){_t(e,t,i)})),n.reflow=!!e.offsetParent,e.classList.add(yt)}(e,(function(){if(s.resizer){var t=e.parentNode;t&&t!==l.parentNode&&t.insertBefore(l,t.firstChild),l._reset()}}))}function Lt(e){var t=e[gt]||{},n=t.resizer;delete t.resizer,function(e){var t=e[gt]||{},n=t.renderProxy;n&&(Y.each(xt,(function(t){kt(e,t,n)})),delete t.renderProxy),e.classList.remove(yt)}(e),n&&n.parentNode&&n.parentNode.removeChild(n)}var Tt={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;!function(e,t){var n=e[gt]||(e[gt]={});if(!n.containsStyles){n.containsStyles=!0,t="/* Chart.js */\n"+t;var i=document.createElement("style");i.setAttribute("type","text/css"),i.appendChild(document.createTextNode(t)),e.appendChild(i)}}(t.host?t:document.head,pt)}},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(this._ensureLoaded(e),function(e,t){var n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e[gt]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===r||""===r){var o=At(e,"width");void 0!==o&&(e.width=o)}if(null===i||""===i)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var a=At(e,"height");void 0!==o&&(e.height=a)}}(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[gt]){var n=t[gt].initial;["height","width"].forEach((function(e){var i=n[e];Y.isNullOrUndef(i)?t.removeAttribute(e):t.setAttribute(e,i)})),Y.each(n.style||{},(function(e,n){t.style[n]=e})),t.width=t.width,delete t[gt]}},addEventListener:function(e,t,n){var i=e.canvas;if("resize"!==t){var r=n[gt]||(n[gt]={});_t(i,t,(r.proxies||(r.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=wt[e.type]||e.type,i=Y.getRelativePosition(e,t);return Mt(n,t,i.x,i.y,e)}(t,e))})}else It(i,n,e)},removeEventListener:function(e,t,n){var i=e.canvas;if("resize"!==t){var r=((n[gt]||{}).proxies||{})[e.id+"_"+t];r&&kt(i,t,r)}else Lt(i)}};Y.addEvent=_t,Y.removeEvent=kt;var Dt=Tt._enabled?Tt:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},Nt=Y.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Dt);P._set("global",{plugins:{}});var Ot={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach((function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var i,r,o,a,s,l=this.descriptors(e),c=l.length;for(i=0;i<c;++i)if("function"==typeof(s=(o=(r=l[i]).plugin)[t])&&((a=[e].concat(n||[])).push(r.options),!1===s.apply(o,a)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],i=[],r=e&&e.config||{},o=r.options&&r.options.plugins||{};return this._plugins.concat(r.plugins||[]).forEach((function(e){if(-1===n.indexOf(e)){var t=e.id,r=o[t];!1!==r&&(!0===r&&(r=Y.clone(P.global.plugins[t])),n.push(e),i.push({plugin:e,options:r||{}}))}})),t.descriptors=i,t.id=this._cacheId,i},_invalidate:function(e){delete e.$plugins}},jt={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=Y.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?Y.merge(Object.create(null),[P.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var n=this;n.defaults.hasOwnProperty(e)&&(n.defaults[e]=Y.extend(n.defaults[e],t))},addScalesToLayout:function(e){Y.each(e.scales,(function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,ft.addBox(e,t)}))}},Et=Y.valueOrDefault,Ft=Y.rtl.getRtlAdapter;P._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:Y.noop,title:function(e,t){var n="",i=t.labels,r=i?i.length:0;if(e.length>0){var o=e[0];o.label?n=o.label:o.xLabel?n=o.xLabel:r>0&&o.index<r&&(n=i[o.index])}return n},afterTitle:Y.noop,beforeBody:Y.noop,beforeLabel:Y.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),Y.isNullOrUndef(e.value)?n+=e.yLabel:n+=e.value,n},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:Y.noop,afterBody:Y.noop,beforeFooter:Y.noop,footer:Y.noop,afterFooter:Y.noop}}});var Pt={average:function(e){if(!e.length)return!1;var t,n,i=0,r=0,o=0;for(t=0,n=e.length;t<n;++t){var a=e[t];if(a&&a.hasValue()){var s=a.tooltipPosition();i+=s.x,r+=s.y,++o}}return{x:i/o,y:r/o}},nearest:function(e,t){var n,i,r,o=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,i=e.length;n<i;++n){var l=e[n];if(l&&l.hasValue()){var c=l.getCenterPoint(),u=Y.distanceBetweenPoints(t,c);u<s&&(s=u,r=l)}}if(r){var d=r.tooltipPosition();o=d.x,a=d.y}return{x:o,y:a}}};function zt(e,t){return t&&(Y.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Rt(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Bt(e){var t=P.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Et(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Et(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Et(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Et(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Et(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Et(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Et(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Et(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Et(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Wt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Yt(e){return zt([],Rt(e))}var Ut=J.extend({initialize:function(){this._model=Bt(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options.callbacks,n=t.beforeTitle.apply(e,arguments),i=t.title.apply(e,arguments),r=t.afterTitle.apply(e,arguments),o=[];return o=zt(o,Rt(n)),o=zt(o,Rt(i)),zt(o,Rt(r))},getBeforeBody:function(){return Yt(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,i=n._options.callbacks,r=[];return Y.each(e,(function(e){var o={before:[],lines:[],after:[]};zt(o.before,Rt(i.beforeLabel.call(n,e,t))),zt(o.lines,i.label.call(n,e,t)),zt(o.after,Rt(i.afterLabel.call(n,e,t))),r.push(o)})),r},getAfterBody:function(){return Yt(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),i=t.footer.apply(e,arguments),r=t.afterFooter.apply(e,arguments),o=[];return o=zt(o,Rt(n)),o=zt(o,Rt(i)),zt(o,Rt(r))},update:function(e){var t,n,i,r,o,a,s,l,c,u,d=this,h=d._options,f=d._model,p=d._model=Bt(h),g=d._active,m=d._data,v={xAlign:f.xAlign,yAlign:f.yAlign},y={x:f.x,y:f.y},b={width:f.width,height:f.height},x={x:f.caretX,y:f.caretY};if(g.length){p.opacity=1;var w=[],A=[];x=Pt[h.position].call(d,g,d._eventPosition);var C=[];for(t=0,n=g.length;t<n;++t)C.push((i=g[t],r=void 0,o=void 0,a=void 0,s=void 0,l=void 0,c=void 0,u=void 0,r=i._xScale,o=i._yScale||i._scale,a=i._index,s=i._datasetIndex,l=i._chart.getDatasetMeta(s).controller,c=l._getIndexScale(),u=l._getValueScale(),{xLabel:r?r.getLabelForIndex(a,s):"",yLabel:o?o.getLabelForIndex(a,s):"",label:c?""+c.getLabelForIndex(a,s):"",value:u?""+u.getLabelForIndex(a,s):"",index:a,datasetIndex:s,x:i._model.x,y:i._model.y}));h.filter&&(C=C.filter((function(e){return h.filter(e,m)}))),h.itemSort&&(C=C.sort((function(e,t){return h.itemSort(e,t,m)}))),Y.each(C,(function(e){w.push(h.callbacks.labelColor.call(d,e,d._chart)),A.push(h.callbacks.labelTextColor.call(d,e,d._chart))})),p.title=d.getTitle(C,m),p.beforeBody=d.getBeforeBody(C,m),p.body=d.getBody(C,m),p.afterBody=d.getAfterBody(C,m),p.footer=d.getFooter(C,m),p.x=x.x,p.y=x.y,p.caretPadding=h.caretPadding,p.labelColors=w,p.labelTextColors=A,p.dataPoints=C,y=function(e,t,n,i){var r=e.x,o=e.y,a=e.caretSize,s=e.caretPadding,l=e.cornerRadius,c=n.xAlign,u=n.yAlign,d=a+s,h=l+s;return"right"===c?r-=t.width:"center"===c&&((r-=t.width/2)+t.width>i.width&&(r=i.width-t.width),r<0&&(r=0)),"top"===u?o+=d:o-="bottom"===u?t.height+d:t.height/2,"center"===u?"left"===c?r+=d:"right"===c&&(r-=d):"left"===c?r-=h:"right"===c&&(r+=h),{x:r,y:o}}(p,b=function(e,t){var n=e._chart.ctx,i=2*t.yPadding,r=0,o=t.body,a=o.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);a+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,c=t.titleFontSize,u=t.bodyFontSize,d=t.footerFontSize;i+=s*c,i+=s?(s-1)*t.titleSpacing:0,i+=s?t.titleMarginBottom:0,i+=a*u,i+=a?(a-1)*t.bodySpacing:0,i+=l?t.footerMarginTop:0,i+=l*d,i+=l?(l-1)*t.footerSpacing:0;var h=0,f=function(e){r=Math.max(r,n.measureText(e).width+h)};return n.font=Y.fontString(c,t._titleFontStyle,t._titleFontFamily),Y.each(t.title,f),n.font=Y.fontString(u,t._bodyFontStyle,t._bodyFontFamily),Y.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?u+2:0,Y.each(o,(function(e){Y.each(e.before,f),Y.each(e.lines,f),Y.each(e.after,f)})),h=0,n.font=Y.fontString(d,t._footerFontStyle,t._footerFontFamily),Y.each(t.footer,f),{width:r+=2*t.xPadding,height:i}}(this,p),v=function(e,t){var n,i,r,o,a,s=e._model,l=e._chart,c=e._chart.chartArea,u="center",d="center";s.y<t.height?d="top":s.y>l.height-t.height&&(d="bottom");var h=(c.left+c.right)/2,f=(c.top+c.bottom)/2;"center"===d?(n=function(e){return e<=h},i=function(e){return e>h}):(n=function(e){return e<=t.width/2},i=function(e){return e>=l.width-t.width/2}),r=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},o=function(e){return e-t.width-s.caretSize-s.caretPadding<0},a=function(e){return e<=f?"top":"bottom"},n(s.x)?(u="left",r(s.x)&&(u="center",d=a(s.y))):i(s.x)&&(u="right",o(s.x)&&(u="center",d=a(s.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:u,yAlign:p.yAlign?p.yAlign:d}}(this,b),d._chart)}else p.opacity=0;return p.xAlign=v.xAlign,p.yAlign=v.yAlign,p.x=y.x,p.y=y.y,p.width=b.width,p.height=b.height,p.caretX=x.x,p.caretY=x.y,d._model=p,e&&h.custom&&h.custom.call(d,p),d},drawCaret:function(e,t){var n=this._chart.ctx,i=this._view,r=this.getCaretPosition(e,t,i);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)},getCaretPosition:function(e,t,n){var i,r,o,a,s,l,c=n.caretSize,u=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=e.x,p=e.y,g=t.width,m=t.height;if("center"===h)s=p+m/2,"left"===d?(r=(i=f)-c,o=i,a=s+c,l=s-c):(r=(i=f+g)+c,o=i,a=s-c,l=s+c);else if("left"===d?(i=(r=f+u+c)-c,o=r+c):"right"===d?(i=(r=f+g-u-c)-c,o=r+c):(i=(r=n.caretX)-c,o=r+c),"top"===h)s=(a=p)-c,l=a;else{s=(a=p+m)+c,l=a;var v=o;o=i,i=v}return{x1:i,x2:r,x3:o,y1:a,y2:s,y3:l}},drawTitle:function(e,t,n){var i,r,o,a=t.title,s=a.length;if(s){var l=Ft(t.rtl,t.x,t.width);for(e.x=Wt(t,t._titleAlign),n.textAlign=l.textAlign(t._titleAlign),n.textBaseline="middle",i=t.titleFontSize,r=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=Y.fontString(i,t._titleFontStyle,t._titleFontFamily),o=0;o<s;++o)n.fillText(a[o],l.x(e.x),e.y+i/2),e.y+=i+r,o+1===s&&(e.y+=t.titleMarginBottom-r)}},drawBody:function(e,t,n){var i,r,o,a,s,l,c,u,d=t.bodyFontSize,h=t.bodySpacing,f=t._bodyAlign,p=t.body,g=t.displayColors,m=0,v=g?Wt(t,"left"):0,y=Ft(t.rtl,t.x,t.width),b=function(t){n.fillText(t,y.x(e.x+m),e.y+d/2),e.y+=d+h},x=y.textAlign(f);for(n.textAlign=f,n.textBaseline="middle",n.font=Y.fontString(d,t._bodyFontStyle,t._bodyFontFamily),e.x=Wt(t,x),n.fillStyle=t.bodyFontColor,Y.each(t.beforeBody,b),m=g&&"right"!==x?"center"===f?d/2+1:d+2:0,s=0,c=p.length;s<c;++s){for(i=p[s],r=t.labelTextColors[s],o=t.labelColors[s],n.fillStyle=r,Y.each(i.before,b),l=0,u=(a=i.lines).length;l<u;++l){if(g){var w=y.x(v);n.fillStyle=t.legendColorBackground,n.fillRect(y.leftForLtr(w,d),e.y,d,d),n.lineWidth=1,n.strokeStyle=o.borderColor,n.strokeRect(y.leftForLtr(w,d),e.y,d,d),n.fillStyle=o.backgroundColor,n.fillRect(y.leftForLtr(y.xPlus(w,1),d-2),e.y+1,d-2,d-2),n.fillStyle=r}b(a[l])}Y.each(i.after,b)}m=0,Y.each(t.afterBody,b),e.y-=h},drawFooter:function(e,t,n){var i,r,o=t.footer,a=o.length;if(a){var s=Ft(t.rtl,t.x,t.width);for(e.x=Wt(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=s.textAlign(t._footerAlign),n.textBaseline="middle",i=t.footerFontSize,n.fillStyle=t.footerFontColor,n.font=Y.fontString(i,t._footerFontStyle,t._footerFontFamily),r=0;r<a;++r)n.fillText(o[r],s.x(e.x),e.y+i/2),e.y+=i+t.footerSpacing}},drawBackground:function(e,t,n,i){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var r=t.xAlign,o=t.yAlign,a=e.x,s=e.y,l=i.width,c=i.height,u=t.cornerRadius;n.beginPath(),n.moveTo(a+u,s),"top"===o&&this.drawCaret(e,i),n.lineTo(a+l-u,s),n.quadraticCurveTo(a+l,s,a+l,s+u),"center"===o&&"right"===r&&this.drawCaret(e,i),n.lineTo(a+l,s+c-u),n.quadraticCurveTo(a+l,s+c,a+l-u,s+c),"bottom"===o&&this.drawCaret(e,i),n.lineTo(a+u,s+c),n.quadraticCurveTo(a,s+c,a,s+c-u),"center"===o&&"left"===r&&this.drawCaret(e,i),n.lineTo(a,s+u),n.quadraticCurveTo(a,s,a+u,s),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},i={x:t.x,y:t.y},r=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(e.save(),e.globalAlpha=r,this.drawBackground(i,t,e,n),i.y+=t.yPadding,Y.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),Y.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(e,i.mode,i),i.reverse&&n._active.reverse()),(t=!Y.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}}),Ht=Pt,Vt=Ut;Vt.positioners=Ht;var Zt=Y.valueOrDefault;function Gt(){return Y.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){if("xAxes"===e||"yAxes"===e){var r,o,a,s=n[e].length;for(t[e]||(t[e]=[]),r=0;r<s;++r)a=n[e][r],o=Zt(a.type,"xAxes"===e?"category":"linear"),r>=t[e].length&&t[e].push({}),!t[e][r].type||a.type&&a.type!==t[e][r].type?Y.merge(t[e][r],[jt.getScaleDefaults(o),a]):Y.merge(t[e][r],a)}else Y._merger(e,t,n,i)}})}function Qt(){return Y.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){var r=t[e]||Object.create(null),o=n[e];"scales"===e?t[e]=Gt(r,o):"scale"===e?t[e]=Y.merge(r,[jt.getScaleDefaults(o.type),o]):Y._merger(e,t,n,i)}})}function Jt(e,t,n){var i,r=function(e){return e.id===i};do{i=t+n++}while(Y.findIndex(e,r)>=0);return i}function qt(e){return"top"===e||"bottom"===e}function Xt(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}P._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Kt=function(e,t){return this.construct(e,t),this};Y.extend(Kt.prototype,{construct:function(e,t){var n=this;t=function(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Qt(P.global,P[e.type],e.options||{}),e}(t);var i=Nt.acquireContext(e,t),r=i&&i.canvas,o=r&&r.height,a=r&&r.width;n.id=Y.uid(),n.ctx=i,n.canvas=r,n.config=t,n.width=a,n.height=o,n.aspectRatio=o?a/o:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Kt.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),i&&r?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return Ot.notify(e,"beforeInit"),Y.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),Ot.notify(e,"afterInit"),e},clear:function(){return Y.canvas.clear(this),this},stop:function(){return K.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,i=t.canvas,r=n.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(Y.getMaximumWidth(i))),a=Math.max(0,Math.floor(r?o/r:Y.getMaximumHeight(i)));if((t.width!==o||t.height!==a)&&(i.width=t.width=o,i.height=t.height=a,i.style.width=o+"px",i.style.height=a+"px",Y.retinaScale(t,n.devicePixelRatio),!e)){var s={width:o,height:a};Ot.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;Y.each(t.xAxes,(function(e,n){e.id||(e.id=Jt(t.xAxes,"x-axis-",n))})),Y.each(t.yAxes,(function(e,n){e.id||(e.id=Jt(t.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},i=[],r=Object.keys(n).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(i=i.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&i.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),Y.each(i,(function(t){var i=t.options,o=i.id,a=Zt(i.type,t.dtype);qt(i.position)!==qt(t.dposition)&&(i.position=t.dposition),r[o]=!0;var s=null;if(o in n&&n[o].type===a)(s=n[o]).options=i,s.ctx=e.ctx,s.chart=e;else{var l=jt.getScaleConstructor(a);if(!l)return;s=new l({id:o,type:a,options:i,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),Y.each(r,(function(e,t){e||delete n[t]})),e.scales=n,jt.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,i=[],r=n.data.datasets;for(e=0,t=r.length;e<t;e++){var o=r[e],a=n.getDatasetMeta(e),s=o.type||n.config.type;if(a.type&&a.type!==s&&(n.destroyDatasetMeta(e),a=n.getDatasetMeta(e)),a.type=s,a.order=o.order||0,a.index=e,a.controller)a.controller.updateIndex(e),a.controller.linkScales();else{var l=qe[a.type];if(void 0===l)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new l(n,e),i.push(a.controller)}}return i},resetElements:function(){var e=this;Y.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.reset()}),e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,n,i,r,o=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),r=(i=o).options,Y.each(i.scales,(function(e){ft.removeBox(i,e)})),r=Qt(P.global,P[i.config.type],r),i.options=i.config.options=r,i.ensureScalesHaveIDs(),i.buildOrUpdateScales(),i.tooltip._options=r.tooltips,i.tooltip.initialize(),Ot._invalidate(o),!1!==Ot.notify(o,"beforeUpdate")){o.tooltip._data=o.data;var a=o.buildOrUpdateControllers();for(t=0,n=o.data.datasets.length;t<n;t++)o.getDatasetMeta(t).controller.buildOrUpdateElements();o.updateLayout(),o.options.animation&&o.options.animation.duration&&Y.each(a,(function(e){e.reset()})),o.updateDatasets(),o.tooltip.initialize(),o.lastActive=[],Ot.notify(o,"afterUpdate"),o._layers.sort(Xt("z","_idx")),o._bufferedRender?o._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:o.render(e)}},updateLayout:function(){var e=this;!1!==Ot.notify(e,"beforeLayout")&&(ft.update(this,this.width,this.height),e._layers=[],Y.each(e.boxes,(function(t){t._configure&&t._configure(),e._layers.push.apply(e._layers,t._layers())}),e),e._layers.forEach((function(e,t){e._idx=t})),Ot.notify(e,"afterScaleUpdate"),Ot.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(!1!==Ot.notify(e,"beforeDatasetsUpdate")){for(var t=0,n=e.data.datasets.length;t<n;++t)e.updateDataset(t);Ot.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,n=t.getDatasetMeta(e),i={meta:n,index:e};!1!==Ot.notify(t,"beforeDatasetUpdate",[i])&&(n.controller._update(),Ot.notify(t,"afterDatasetUpdate",[i]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=t.options.animation,i=Zt(e.duration,n&&n.duration),r=e.lazy;if(!1!==Ot.notify(t,"beforeRender")){var o=function(e){Ot.notify(t,"afterRender"),Y.callback(n&&n.onComplete,[e],t)};if(n&&i){var a=new X({numSteps:i/16.66,easing:e.easing||n.easing,render:function(e,t){var n=Y.easing.effects[t.easing],i=t.currentStep,r=i/t.numSteps;e.draw(n(r),r,i)},onAnimationProgress:n.onProgress,onAnimationComplete:o});K.addAnimation(t,a,i,r)}else t.draw(),o(new X({numSteps:0,chart:t}));return t}},draw:function(e){var t,n,i=this;if(i.clear(),Y.isNullOrUndef(e)&&(e=1),i.transition(e),!(i.width<=0||i.height<=0)&&!1!==Ot.notify(i,"beforeDraw",[e])){for(n=i._layers,t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(i.chartArea);for(i.drawDatasets(e);t<n.length;++t)n[t].draw(i.chartArea);i._drawTooltip(e),Ot.notify(i,"afterDraw",[e])}},transition:function(e){for(var t=this,n=0,i=(t.data.datasets||[]).length;n<i;++n)t.isDatasetVisible(n)&&t.getDatasetMeta(n).controller.transition(e);t.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,n,i=this,r=[];for(t=0,n=(i.data.datasets||[]).length;t<n;++t)e&&!i.isDatasetVisible(t)||r.push(i.getDatasetMeta(t));return r.sort(Xt("order","index")),r},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,n,i=this;if(!1!==Ot.notify(i,"beforeDatasetsDraw",[e])){for(n=(t=i._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)i.drawDataset(t[n],e);Ot.notify(i,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n={meta:e,index:e.index,easingValue:t};!1!==Ot.notify(this,"beforeDatasetDraw",[n])&&(e.controller.draw(t),Ot.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(e){var t=this,n=t.tooltip,i={tooltip:n,easingValue:e};!1!==Ot.notify(t,"beforeTooltipDraw",[i])&&(n.draw(),Ot.notify(t,"afterTooltipDraw",[i]))},getElementAtEvent:function(e){return it.modes.single(this,e)},getElementsAtEvent:function(e){return it.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return it.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var i=it.modes[t];return"function"==typeof i?i(this,e,n):[]},getDatasetAtEvent:function(e){return it.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,n=t.data.datasets[e];n._meta||(n._meta={});var i=n._meta[t.id];return i||(i=n._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n.order||0,index:e}),i},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],i=n._meta&&n._meta[t];i&&(i.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,i=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);i&&(n.unbindEvents(),Y.canvas.clear(n),Nt.releaseContext(n.ctx),n.canvas=null,n.ctx=null),Ot.notify(n,"destroy"),delete Kt.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Vt({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};Y.each(e.options.events,(function(i){Nt.addEventListener(e,i,n),t[i]=n})),e.options.responsive&&(n=function(){e.resize()},Nt.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,Y.each(t,(function(t,n){Nt.removeEventListener(e,n,t)})))},updateHoverStyle:function(e,t,n){var i,r,o,a=n?"set":"remove";for(r=0,o=e.length;r<o;++r)(i=e[r])&&this.getDatasetMeta(i._datasetIndex).controller[a+"HoverStyle"](i);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+a+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==Ot.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var i=t.handleEvent(e);n&&(i=n._start?n.handleEvent(e):i|n.handleEvent(e)),Ot.notify(t,"afterEvent",[e]);var r=t._bufferedRequest;return r?t.render(r):i&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,n=this,i=n.options||{},r=i.hover;return n.lastActive=n.lastActive||[],"mouseout"===e.type?n.active=[]:n.active=n.getElementsAtEventForMode(e,r.mode,r),Y.callback(i.onHover||i.hover.onHover,[e.native,n.active],n),"mouseup"!==e.type&&"click"!==e.type||i.onClick&&i.onClick.call(n,e.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,r.mode,!1),n.active.length&&r.mode&&n.updateHoverStyle(n.active,r.mode,!0),t=!Y.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),Kt.instances={};var $t=Kt;Kt.Controller=Kt,Kt.types={},Y.configMerge=Qt,Y.scaleMerge=Gt;function en(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function tn(e){this.options=e||{}}Y.extend(tn.prototype,{formats:en,parse:en,format:en,add:en,diff:en,startOf:en,endOf:en,_create:function(e){return e}}),tn.override=function(e){Y.extend(tn.prototype,e)};var nn={_date:tn},rn={formatters:{values:function(e){return Y.isArray(e)?e:""+e},linear:function(e,t,n){var i=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(i)>1&&e!==Math.floor(e)&&(i=e-Math.floor(e));var r=Y.log10(Math.abs(i)),o="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var a=Y.log10(Math.abs(e)),s=Math.floor(a)-Math.floor(r);s=Math.max(Math.min(s,20),0),o=e.toExponential(s)}else{var l=-1*Math.floor(r);l=Math.max(Math.min(l,20),0),o=e.toFixed(l)}else o="0";return o},logarithmic:function(e,t,n){var i=e/Math.pow(10,Math.floor(Y.log10(e)));return 0===e?"0":1===i||2===i||5===i||0===t||t===n.length-1?e.toExponential():""}}},on=Y.isArray,an=Y.isNullOrUndef,sn=Y.valueOrDefault,ln=Y.valueAtIndexOrDefault;function cn(e,t,n){var i,r=e.getTicks().length,o=Math.min(t,r-1),a=e.getPixelForTick(o),s=e._startPixel,l=e._endPixel,c=1e-6;if(!(n&&(i=1===r?Math.max(a-s,l-a):0===t?(e.getPixelForTick(1)-a)/2:(a-e.getPixelForTick(o-1))/2,(a+=o<t?i:-i)<s-c||a>l+c)))return a}function un(e,t,n,i){var r,o,a,s,l,c,u,d,h,f,p,g,m,v=n.length,y=[],b=[],x=[],w=0,A=0;for(r=0;r<v;++r){if(s=n[r].label,l=n[r].major?t.major:t.minor,e.font=c=l.string,u=i[c]=i[c]||{data:{},gc:[]},d=l.lineHeight,h=f=0,an(s)||on(s)){if(on(s))for(o=0,a=s.length;o<a;++o)p=s[o],an(p)||on(p)||(h=Y.measureText(e,u.data,u.gc,h,p),f+=d)}else h=Y.measureText(e,u.data,u.gc,h,s),f=d;y.push(h),b.push(f),x.push(d/2),w=Math.max(h,w),A=Math.max(f,A)}function C(e){return{width:y[e]||0,height:b[e]||0,offset:x[e]||0}}return function(e,t){Y.each(e,(function(e){var n,i=e.gc,r=i.length/2;if(r>t){for(n=0;n<r;++n)delete e.data[i[n]];i.splice(0,r)}}))}(i,v),g=y.indexOf(w),m=b.indexOf(A),{first:C(0),last:C(v-1),widest:C(g),highest:C(m)}}function dn(e){return e.drawTicks?e.tickMarkLength:0}function hn(e){var t,n;return e.display?(t=Y.options._parseFont(e),n=Y.options.toPadding(e.padding),t.lineHeight+n.height):0}function fn(e,t){return Y.extend(Y.options._parseFont({fontFamily:sn(t.fontFamily,e.fontFamily),fontSize:sn(t.fontSize,e.fontSize),fontStyle:sn(t.fontStyle,e.fontStyle),lineHeight:sn(t.lineHeight,e.lineHeight)}),{color:Y.options.resolve([t.fontColor,e.fontColor,P.global.defaultFontColor])})}function pn(e){var t=fn(e,e.minor);return{minor:t,major:e.major.enabled?fn(e,e.major):t}}function gn(e){var t,n,i,r=[];for(n=0,i=e.length;n<i;++n)void 0!==(t=e[n])._index&&r.push(t);return r}function mn(e,t,n,i){var r,o,a,s,l=sn(n,0),c=Math.min(sn(i,e.length),e.length),u=0;for(t=Math.ceil(t),i&&(t=(r=i-n)/Math.floor(r/t)),s=l;s<0;)u++,s=Math.round(l+u*t);for(o=Math.max(l,0);o<c;o++)a=e[o],o===s?(a._index=o,u++,s=Math.round(l+u*t)):delete a.label}P._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:rn.formatters.values,minor:{},major:{}}});var vn=J.extend({zeroLineIndex:0,getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){Y.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var i,r,o,a,s,l=this,c=l.options.ticks,u=c.sampleSize;if(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=Y.extend({left:0,right:0,top:0,bottom:0},n),l._ticks=null,l.ticks=null,l._labelSizes=null,l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l._gridLineItems=null,l._labelItems=null,l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),a=l.buildTicks()||[],(!(a=l.afterBuildTicks(a)||a)||!a.length)&&l.ticks)for(a=[],i=0,r=l.ticks.length;i<r;++i)a.push({value:l.ticks[i],major:!1});return l._ticks=a,s=u<a.length,o=l._convertTicksToLabels(s?function(e,t){for(var n=[],i=e.length/t,r=0,o=e.length;r<o;r+=i)n.push(e[Math.floor(r)]);return n}(a,u):a),l._configure(),l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l._ticksToDraw=c.display&&(c.autoSkip||"auto"===c.source)?l._autoSkip(a):a,s&&(o=l._convertTicksToLabels(l._ticksToDraw)),l.ticks=o,l.afterUpdate(),l.minSize},_configure:function(){var e,t,n=this,i=n.options.ticks.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,i=!i),n._startPixel=e,n._endPixel=t,n._reversePixels=i,n._length=t-e},afterUpdate:function(){Y.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){Y.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){Y.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){Y.callback(this.options.beforeDataLimits,[this])},determineDataLimits:Y.noop,afterDataLimits:function(){Y.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){Y.callback(this.options.beforeBuildTicks,[this])},buildTicks:Y.noop,afterBuildTicks:function(e){var t=this;return on(e)&&e.length?Y.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=Y.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){Y.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this,t=e.options.ticks;e.ticks=e.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){Y.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){Y.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,n,i,r,o,a,s=this,l=s.options,c=l.ticks,u=s.getTicks().length,d=c.minRotation||0,h=c.maxRotation,f=d;!s._isVisible()||!c.display||d>=h||u<=1||!s.isHorizontal()?s.labelRotation=d:(t=(e=s._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,i=Math.min(s.maxWidth,s.chart.width-t),t+6>(r=l.offset?s.maxWidth/u:i/(u-1))&&(r=i/(u-(l.offset?.5:1)),o=s.maxHeight-dn(l.gridLines)-c.padding-hn(l.scaleLabel),a=Math.sqrt(t*t+n*n),f=Y.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/r,1)),Math.asin(Math.min(o/a,1))-Math.asin(n/a))),f=Math.max(d,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){Y.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){Y.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,i=e.options,r=i.ticks,o=i.scaleLabel,a=i.gridLines,s=e._isVisible(),l="bottom"===i.position,c=e.isHorizontal();if(c?t.width=e.maxWidth:s&&(t.width=dn(a)+hn(o)),c?s&&(t.height=dn(a)+hn(o)):t.height=e.maxHeight,r.display&&s){var u=pn(r),d=e._getLabelSizes(),h=d.first,f=d.last,p=d.widest,g=d.highest,m=.4*u.minor.lineHeight,v=r.padding;if(c){var y=0!==e.labelRotation,b=Y.toRadians(e.labelRotation),x=Math.cos(b),w=Math.sin(b),A=w*p.width+x*(g.height-(y?g.offset:0))+(y?0:m);t.height=Math.min(e.maxHeight,t.height+A+v);var C,_,k=e.getPixelForTick(0)-e.left,M=e.right-e.getPixelForTick(e.getTicks().length-1);y?(C=l?x*h.width+w*h.offset:w*(h.height-h.offset),_=l?w*(f.height-f.offset):x*f.width+w*f.offset):(C=h.width/2,_=f.width/2),e.paddingLeft=Math.max((C-k)*e.width/(e.width-k),0)+3,e.paddingRight=Math.max((_-M)*e.width/(e.width-M),0)+3}else{var S=r.mirror?0:p.width+v+m;t.width=Math.min(e.maxWidth,t.width+S),e.paddingTop=h.height/2,e.paddingBottom=f.height/2}}e.handleMargins(),c?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){Y.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(an(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,i,r=this;for(r.ticks=e.map((function(e){return e.value})),r.beforeTickToLabelConversion(),t=r.convertTicksToLabels(e)||r.ticks,r.afterTickToLabelConversion(),n=0,i=e.length;n<i;++n)e[n].label=t[n];return t},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=un(e.ctx,pn(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,n,i,r;return on(e)?(t=+this.getRightValue(e[0]),n=+this.getRightValue(e[1]),i=Math.min(t,n),r=Math.max(t,n)):(t=void 0,n=e=+this.getRightValue(e),i=e,r=e),{min:i,max:r,start:t,end:n}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:Y.noop,getPixelForValue:Y.noop,getValueForPixel:Y.noop,getPixelForTick:function(e){var t=this,n=t.options.offset,i=t._ticks.length,r=1/Math.max(i-(n?0:1),1);return e<0||e>i-1?null:t.getPixelForDecimal(e*r+(n?r/2:0))},getPixelForDecimal:function(e){var t=this;return t._reversePixels&&(e=1-e),t._startPixel+e*t._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,n=e.max;return e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0},_autoSkip:function(e){var t,n,i,r,o=this,a=o.options.ticks,s=o._length,l=a.maxTicksLimit||s/o._tickSize()+1,c=a.major.enabled?function(e){var t,n,i=[];for(t=0,n=e.length;t<n;t++)e[t].major&&i.push(t);return i}(e):[],u=c.length,d=c[0],h=c[u-1];if(u>l)return function(e,t,n){var i,r,o=0,a=t[0];for(n=Math.ceil(n),i=0;i<e.length;i++)r=e[i],i===a?(r._index=i,a=t[++o*n]):delete r.label}(e,c,u/l),gn(e);if(i=function(e,t,n,i){var r,o,a,s,l=function(e){var t,n,i=e.length;if(i<2)return!1;for(n=e[0],t=1;t<i;++t)if(e[t]-e[t-1]!==n)return!1;return n}(e),c=(t.length-1)/i;if(!l)return Math.max(c,1);for(a=0,s=(r=Y.math._factorize(l)).length-1;a<s;a++)if((o=r[a])>c)return o;return Math.max(c,1)}(c,e,0,l),u>0){for(t=0,n=u-1;t<n;t++)mn(e,i,c[t],c[t+1]);return r=u>1?(h-d)/(u-1):null,mn(e,i,Y.isNullOrUndef(r)?0:d-r,d),mn(e,i,h,Y.isNullOrUndef(r)?e.length:h+r),gn(e)}return mn(e,i),gn(e)},_tickSize:function(){var e=this,t=e.options.ticks,n=Y.toRadians(e.labelRotation),i=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),o=e._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return e.isHorizontal()?l*i>s*r?s/i:l/r:l*r<s*i?l/i:s/r},_isVisible:function(){var e,t,n,i=this,r=i.chart,o=i.options.display;if("auto"!==o)return!!o;for(e=0,t=r.data.datasets.length;e<t;++e)if(r.isDatasetVisible(e)&&((n=r.getDatasetMeta(e)).xAxisID===i.id||n.yAxisID===i.id))return!0;return!1},_computeGridLineItems:function(e){var t,n,i,r,o,a,s,l,c,u,d,h,f,p,g,m,v,y=this,b=y.chart,x=y.options,w=x.gridLines,A=x.position,C=w.offsetGridLines,_=y.isHorizontal(),k=y._ticksToDraw,M=k.length+(C?1:0),S=dn(w),I=[],L=w.drawBorder?ln(w.lineWidth,0,0):0,T=L/2,D=Y._alignPixel,N=function(e){return D(b,e,L)};for("top"===A?(t=N(y.bottom),s=y.bottom-S,c=t-T,d=N(e.top)+T,f=e.bottom):"bottom"===A?(t=N(y.top),d=e.top,f=N(e.bottom)-T,s=t+T,c=y.top+S):"left"===A?(t=N(y.right),a=y.right-S,l=t-T,u=N(e.left)+T,h=e.right):(t=N(y.left),u=e.left,h=N(e.right)-T,a=t+T,l=y.left+S),n=0;n<M;++n)i=k[n]||{},an(i.label)&&n<k.length||(n===y.zeroLineIndex&&x.offset===C?(p=w.zeroLineWidth,g=w.zeroLineColor,m=w.zeroLineBorderDash||[],v=w.zeroLineBorderDashOffset||0):(p=ln(w.lineWidth,n,1),g=ln(w.color,n,"rgba(0,0,0,0.1)"),m=w.borderDash||[],v=w.borderDashOffset||0),void 0!==(r=cn(y,i._index||n,C))&&(o=D(b,r,p),_?a=l=u=h=o:s=c=d=f=o,I.push({tx1:a,ty1:s,tx2:l,ty2:c,x1:u,y1:d,x2:h,y2:f,width:p,color:g,borderDash:m,borderDashOffset:v})));return I.ticksLength=M,I.borderValue=t,I},_computeLabelItems:function(){var e,t,n,i,r,o,a,s,l,c,u,d,h=this,f=h.options,p=f.ticks,g=f.position,m=p.mirror,v=h.isHorizontal(),y=h._ticksToDraw,b=pn(p),x=p.padding,w=dn(f.gridLines),A=-Y.toRadians(h.labelRotation),C=[];for("top"===g?(o=h.bottom-w-x,a=A?"left":"center"):"bottom"===g?(o=h.top+w+x,a=A?"right":"center"):"left"===g?(r=h.right-(m?0:w)-x,a=m?"left":"right"):(r=h.left+(m?0:w)+x,a=m?"right":"left"),e=0,t=y.length;e<t;++e)i=(n=y[e]).label,an(i)||(s=h.getPixelForTick(n._index||e)+p.labelOffset,c=(l=n.major?b.major:b.minor).lineHeight,u=on(i)?i.length:1,v?(r=s,d="top"===g?((A?1:.5)-u)*c:(A?0:.5)*c):(o=s,d=(1-u)*c/2),C.push({x:r,y:o,rotation:A,label:i,font:l,textOffset:d,textAlign:a}));return C},_drawGrid:function(e){var t=this,n=t.options.gridLines;if(n.display){var i,r,o,a,s,l=t.ctx,c=t.chart,u=Y._alignPixel,d=n.drawBorder?ln(n.lineWidth,0,0):0,h=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(o=0,a=h.length;o<a;++o)i=(s=h[o]).width,r=s.color,i&&r&&(l.save(),l.lineWidth=i,l.strokeStyle=r,l.setLineDash&&(l.setLineDash(s.borderDash),l.lineDashOffset=s.borderDashOffset),l.beginPath(),n.drawTicks&&(l.moveTo(s.tx1,s.ty1),l.lineTo(s.tx2,s.ty2)),n.drawOnChartArea&&(l.moveTo(s.x1,s.y1),l.lineTo(s.x2,s.y2)),l.stroke(),l.restore());if(d){var f,p,g,m,v=d,y=ln(n.lineWidth,h.ticksLength-1,1),b=h.borderValue;t.isHorizontal()?(f=u(c,t.left,v)-v/2,p=u(c,t.right,y)+y/2,g=m=b):(g=u(c,t.top,v)-v/2,m=u(c,t.bottom,y)+y/2,f=p=b),l.lineWidth=d,l.strokeStyle=ln(n.color,0),l.beginPath(),l.moveTo(f,g),l.lineTo(p,m),l.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var t,n,i,r,o,a,s,l,c=e.ctx,u=e._labelItems||(e._labelItems=e._computeLabelItems());for(t=0,i=u.length;t<i;++t){if(a=(o=u[t]).font,c.save(),c.translate(o.x,o.y),c.rotate(o.rotation),c.font=a.string,c.fillStyle=a.color,c.textBaseline="middle",c.textAlign=o.textAlign,s=o.label,l=o.textOffset,on(s))for(n=0,r=s.length;n<r;++n)c.fillText(""+s[n],0,l),l+=a.lineHeight;else c.fillText(s,0,l);c.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,n=e.options,i=n.scaleLabel;if(i.display){var r,o,a=sn(i.fontColor,P.global.defaultFontColor),s=Y.options._parseFont(i),l=Y.options.toPadding(i.padding),c=s.lineHeight/2,u=n.position,d=0;if(e.isHorizontal())r=e.left+e.width/2,o="bottom"===u?e.bottom-c-l.bottom:e.top+c+l.top;else{var h="left"===u;r=h?e.left+c+l.top:e.right-c-l.top,o=e.top+e.height/2,d=h?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(r,o),t.rotate(d),t.textAlign="center",t.textBaseline="middle",t.fillStyle=a,t.font=s.string,t.fillText(i.labelString,0,0),t.restore()}},draw:function(e){var t=this;t._isVisible()&&(t._drawGrid(e),t._drawTitle(),t._drawLabels())},_layers:function(){var e=this,t=e.options,n=t.ticks&&t.ticks.z||0,i=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&n!==i&&e.draw===e._draw?[{z:i,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:n,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:n,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,n=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter((function(i){return(!e||i.type===e)&&(n?i.xAxisID===t.id:i.yAxisID===t.id)}))}});vn.prototype._draw=vn.prototype.draw;var yn=vn,bn=Y.isNullOrUndef,xn=yn.extend({determineDataLimits:function(){var e,t=this,n=t._getLabels(),i=t.options.ticks,r=i.min,o=i.max,a=0,s=n.length-1;void 0!==r&&(e=n.indexOf(r))>=0&&(a=e),void 0!==o&&(e=n.indexOf(o))>=0&&(s=e),t.minIndex=a,t.maxIndex=s,t.min=n[a],t.max=n[s]},buildTicks:function(){var e=this,t=e._getLabels(),n=e.minIndex,i=e.maxIndex;e.ticks=0===n&&i===t.length-1?t:t.slice(n,i+1)},getLabelForIndex:function(e,t){var n=this,i=n.chart;return i.getDatasetMeta(t).controller._getValueScaleId()===n.id?n.getRightValue(i.data.datasets[t].data[e]):n._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;yn.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var i,r,o,a=this;return bn(t)||bn(n)||(e=a.chart.data.datasets[n].data[t]),bn(e)||(i=a.isHorizontal()?e.x:e.y),(void 0!==i||void 0!==e&&isNaN(t))&&(r=a._getLabels(),e=Y.valueOrDefault(i,e),t=-1!==(o=r.indexOf(e))?o:t,isNaN(t)&&(t=e)),a.getPixelForDecimal((t-a._startValue)/a._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=this,n=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(n,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}}),wn={position:"bottom"};xn._defaults=wn;var An=Y.noop,Cn=Y.isNullOrUndef;var _n=yn.extend({getRightValue:function(e){return"string"==typeof e?+e:yn.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=Y.sign(e.min),i=Y.sign(e.max);n<0&&i<0?e.max=0:n>0&&i>0&&(e.min=0)}var r=void 0!==t.min||void 0!==t.suggestedMin,o=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),r!==o&&e.min>=e.max&&(r?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this,n=t.options.ticks,i=n.stepSize,r=n.maxTicksLimit;return i?e=Math.ceil(t.max/i)-Math.floor(t.min/i)+1:(e=t._computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:An,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:Y.valueOrDefault(t.fixedStepSize,t.stepSize)},r=e.ticks=function(e,t){var n,i,r,o,a=[],s=e.stepSize,l=s||1,c=e.maxTicks-1,u=e.min,d=e.max,h=e.precision,f=t.min,p=t.max,g=Y.niceNum((p-f)/c/l)*l;if(g<1e-14&&Cn(u)&&Cn(d))return[f,p];(o=Math.ceil(p/g)-Math.floor(f/g))>c&&(g=Y.niceNum(o*g/c/l)*l),s||Cn(h)?n=Math.pow(10,Y._decimalPlaces(g)):(n=Math.pow(10,h),g=Math.ceil(g*n)/n),i=Math.floor(f/g)*g,r=Math.ceil(p/g)*g,s&&(!Cn(u)&&Y.almostWhole(u/g,g/1e3)&&(i=u),!Cn(d)&&Y.almostWhole(d/g,g/1e3)&&(r=d)),o=(r-i)/g,o=Y.almostEquals(o,Math.round(o),g/1e3)?Math.round(o):Math.ceil(o),i=Math.round(i*n)/n,r=Math.round(r*n)/n,a.push(Cn(u)?i:u);for(var m=1;m<o;++m)a.push(Math.round((i+m*g)*n)/n);return a.push(Cn(d)?r:d),a}(i,e);e.handleDirectionalChanges(),e.max=Y.max(r),e.min=Y.min(r),t.reverse?(r.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),yn.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,n=t.getTicks(),i=t.min,r=t.max;yn.prototype._configure.call(t),t.options.offset&&n.length&&(i-=e=(r-i)/Math.max(n.length-1,1)/2,r+=e),t._startValue=i,t._endValue=r,t._valueRange=r-i}}),kn={position:"left",ticks:{callback:rn.formatters.linear}};function Mn(e,t,n,i){var r,o,a=e.options,s=function(e,t,n){var i=[n.type,void 0===t&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===e[i]&&(e[i]={pos:[],neg:[]}),e[i]}(t,a.stacked,n),l=s.pos,c=s.neg,u=i.length;for(r=0;r<u;++r)o=e._parseValue(i[r]),isNaN(o.min)||isNaN(o.max)||n.data[r].hidden||(l[r]=l[r]||0,c[r]=c[r]||0,a.relativePoints?l[r]=100:o.min<0||o.max<0?c[r]+=o.min:l[r]+=o.max)}function Sn(e,t,n){var i,r,o=n.length;for(i=0;i<o;++i)r=e._parseValue(n[i]),isNaN(r.min)||isNaN(r.max)||t.data[i].hidden||(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}var In=_n.extend({determineDataLimits:function(){var e,t,n,i,r=this,o=r.options,a=r.chart.data.datasets,s=r._getMatchingVisibleMetas(),l=o.stacked,c={},u=s.length;if(r.min=Number.POSITIVE_INFINITY,r.max=Number.NEGATIVE_INFINITY,void 0===l)for(e=0;!l&&e<u;++e)l=void 0!==(t=s[e]).stack;for(e=0;e<u;++e)n=a[(t=s[e]).index].data,l?Mn(r,c,t,n):Sn(r,t,n);Y.each(c,(function(e){i=e.pos.concat(e.neg),r.min=Math.min(r.min,Y.min(i)),r.max=Math.max(r.max,Y.max(i))})),r.min=Y.isFinite(r.min)&&!isNaN(r.min)?r.min:0,r.max=Y.isFinite(r.max)&&!isNaN(r.max)?r.max:1,r.handleTickRangeOptions()},_computeTickLimit:function(){var e,t=this;return t.isHorizontal()?Math.ceil(t.width/40):(e=Y.options._parseFont(t.options.ticks),Math.ceil(t.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this;return t.getPixelForDecimal((+t.getRightValue(e)-t._startValue)/t._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}}),Ln=kn;In._defaults=Ln;var Tn=Y.valueOrDefault,Dn=Y.math.log10;var Nn={position:"left",ticks:{callback:rn.formatters.logarithmic}};function On(e,t){return Y.isFinite(e)&&e>=0?e:t}var jn=yn.extend({determineDataLimits:function(){var e,t,n,i,r,o,a=this,s=a.options,l=a.chart,c=l.data.datasets,u=a.isHorizontal();function d(e){return u?e.xAxisID===a.id:e.yAxisID===a.id}a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,a.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(e=0;e<c.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t)&&void 0!==t.stack){h=!0;break}if(s.stacked||h){var f={};for(e=0;e<c.length;e++){var p=[(t=l.getDatasetMeta(e)).type,void 0===s.stacked&&void 0===t.stack?e:"",t.stack].join(".");if(l.isDatasetVisible(e)&&d(t))for(void 0===f[p]&&(f[p]=[]),r=0,o=(i=c[e].data).length;r<o;r++){var g=f[p];n=a._parseValue(i[r]),isNaN(n.min)||isNaN(n.max)||t.data[r].hidden||n.min<0||n.max<0||(g[r]=g[r]||0,g[r]+=n.max)}}Y.each(f,(function(e){if(e.length>0){var t=Y.min(e),n=Y.max(e);a.min=Math.min(a.min,t),a.max=Math.max(a.max,n)}}))}else for(e=0;e<c.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t))for(r=0,o=(i=c[e].data).length;r<o;r++)n=a._parseValue(i[r]),isNaN(n.min)||isNaN(n.max)||t.data[r].hidden||n.min<0||n.max<0||(a.min=Math.min(n.min,a.min),a.max=Math.max(n.max,a.max),0!==n.min&&(a.minNotZero=Math.min(n.min,a.minNotZero)));a.min=Y.isFinite(a.min)?a.min:null,a.max=Y.isFinite(a.max)?a.max:null,a.minNotZero=Y.isFinite(a.minNotZero)?a.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=On(t.min,e.min),e.max=On(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(Dn(e.min))-1),e.max=Math.pow(10,Math.floor(Dn(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(Dn(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(Dn(e.min))+1):10),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Dn(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),i={min:On(t.min),max:On(t.max)},r=e.ticks=function(e,t){var n,i,r=[],o=Tn(e.min,Math.pow(10,Math.floor(Dn(t.min)))),a=Math.floor(Dn(t.max)),s=Math.ceil(t.max/Math.pow(10,a));0===o?(n=Math.floor(Dn(t.minNotZero)),i=Math.floor(t.minNotZero/Math.pow(10,n)),r.push(o),o=i*Math.pow(10,n)):(n=Math.floor(Dn(o)),i=Math.floor(o/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{r.push(o),10==++i&&(i=1,l=++n>=0?1:l),o=Math.round(i*Math.pow(10,n)*l)/l}while(n<a||n===a&&i<s);var c=Tn(e.max,o);return r.push(c),r}(i,e);e.max=Y.max(r),e.min=Y.min(r),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&r.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),yn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(Dn(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;yn.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=Tn(e.options.ticks.fontSize,P.global.defaultFontSize)/e._length),e._startValue=Dn(t),e._valueOffset=n,e._valueRange=(Dn(e.max)-Dn(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(Dn(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}}),En=Nn;jn._defaults=En;var Fn=Y.valueOrDefault,Pn=Y.valueAtIndexOrDefault,zn=Y.options.resolve,Rn={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:rn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Bn(e){var t=e.ticks;return t.display&&e.display?Fn(t.fontSize,P.global.defaultFontSize)+2*t.backdropPaddingY:0}function Wn(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:e<i||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function Yn(e){return 0===e||180===e?"center":e<180?"left":"right"}function Un(e,t,n,i){var r,o,a=n.y+i/2;if(Y.isArray(t))for(r=0,o=t.length;r<o;++r)e.fillText(t[r],n.x,a),a+=i;else e.fillText(t,n.x,a)}function Hn(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function Vn(e){return Y.isNumber(e)?e:0}var Zn=_n.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Bn(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;Y.each(t.data.datasets,(function(r,o){if(t.isDatasetVisible(o)){var a=t.getDatasetMeta(o);Y.each(r.data,(function(t,r){var o=+e.getRightValue(t);isNaN(o)||a.data[r].hidden||(n=Math.min(o,n),i=Math.max(o,i))}))}})),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=i===Number.NEGATIVE_INFINITY?0:i,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Bn(this.options))},convertTicksToLabels:function(){var e=this;_n.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=Y.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""}))},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this,t=e.options;t.display&&t.pointLabels.display?function(e){var t,n,i,r=Y.options._parseFont(e.options.pointLabels),o={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={};e.ctx.font=r.string,e._pointLabelSizes=[];var s,l,c,u=e.chart.data.labels.length;for(t=0;t<u;t++){i=e.getPointPosition(t,e.drawingArea+5),s=e.ctx,l=r.lineHeight,c=e.pointLabels[t],n=Y.isArray(c)?{w:Y.longestText(s,s.font,c),h:c.length*l}:{w:s.measureText(c).width,h:l},e._pointLabelSizes[t]=n;var d=e.getIndexAngle(t),h=Y.toDegrees(d)%360,f=Wn(h,i.x,n.w,0,180),p=Wn(h,i.y,n.h,90,270);f.start<o.l&&(o.l=f.start,a.l=d),f.end>o.r&&(o.r=f.end,a.r=d),p.start<o.t&&(o.t=p.start,a.t=d),p.end>o.b&&(o.b=p.end,a.b=d)}e.setReductions(e.drawingArea,o,a)}(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var i=this,r=t.l/Math.sin(n.l),o=Math.max(t.r-i.width,0)/Math.sin(n.r),a=-t.t/Math.cos(n.t),s=-Math.max(t.b-(i.height-i.paddingTop),0)/Math.cos(n.b);r=Vn(r),o=Vn(o),a=Vn(a),s=Vn(s),i.drawingArea=Math.min(Math.floor(e-(r+o)/2),Math.floor(e-(a+s)/2)),i.setCenterPoint(r,o,a,s)},setCenterPoint:function(e,t,n,i){var r=this,o=r.width-t-r.drawingArea,a=e+r.drawingArea,s=n+r.drawingArea,l=r.height-r.paddingTop-i-r.drawingArea;r.xCenter=Math.floor((a+o)/2+r.left),r.yCenter=Math.floor((s+l)/2+r.top+r.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(Y.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this,i=n.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(i)*t+n.xCenter,y:Math.sin(i)*t+n.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this,n=t.min,i=t.max;return t.getPointPositionForValue(e||0,t.beginAtZero?0:n<0&&i<0?i:n>0&&i>0?n:0)},_drawGrid:function(){var e,t,n,i=this,r=i.ctx,o=i.options,a=o.gridLines,s=o.angleLines,l=Fn(s.lineWidth,a.lineWidth),c=Fn(s.color,a.color);if(o.pointLabels.display&&function(e){var t=e.ctx,n=e.options,i=n.pointLabels,r=Bn(n),o=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),a=Y.options._parseFont(i);t.save(),t.font=a.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var l=0===s?r/2:0,c=e.getPointPosition(s,o+l+5),u=Pn(i.fontColor,s,P.global.defaultFontColor);t.fillStyle=u;var d=e.getIndexAngle(s),h=Y.toDegrees(d);t.textAlign=Yn(h),Hn(h,e._pointLabelSizes[s],c),Un(t,e.pointLabels[s],c,a.lineHeight)}t.restore()}(i),a.display&&Y.each(i.ticks,(function(e,n){0!==n&&(t=i.getDistanceFromCenterForValue(i.ticksAsNumbers[n]),function(e,t,n,i){var r,o=e.ctx,a=t.circular,s=e.chart.data.labels.length,l=Pn(t.color,i-1),c=Pn(t.lineWidth,i-1);if((a||s)&&l&&c){if(o.save(),o.strokeStyle=l,o.lineWidth=c,o.setLineDash&&(o.setLineDash(t.borderDash||[]),o.lineDashOffset=t.borderDashOffset||0),o.beginPath(),a)o.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{r=e.getPointPosition(0,n),o.moveTo(r.x,r.y);for(var u=1;u<s;u++)r=e.getPointPosition(u,n),o.lineTo(r.x,r.y)}o.closePath(),o.stroke(),o.restore()}}(i,a,t,n))})),s.display&&l&&c){for(r.save(),r.lineWidth=l,r.strokeStyle=c,r.setLineDash&&(r.setLineDash(zn([s.borderDash,a.borderDash,[]])),r.lineDashOffset=zn([s.borderDashOffset,a.borderDashOffset,0])),e=i.chart.data.labels.length-1;e>=0;e--)t=i.getDistanceFromCenterForValue(o.ticks.reverse?i.min:i.max),n=i.getPointPosition(e,t),r.beginPath(),r.moveTo(i.xCenter,i.yCenter),r.lineTo(n.x,n.y),r.stroke();r.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var i,r,o=e.getIndexAngle(0),a=Y.options._parseFont(n),s=Fn(n.fontColor,P.global.defaultFontColor);t.save(),t.font=a.string,t.translate(e.xCenter,e.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",Y.each(e.ticks,(function(o,l){(0!==l||n.reverse)&&(i=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]),n.showLabelBackdrop&&(r=t.measureText(o).width,t.fillStyle=n.backdropColor,t.fillRect(-r/2-n.backdropPaddingX,-i-a.size/2-n.backdropPaddingY,r+2*n.backdropPaddingX,a.size+2*n.backdropPaddingY)),t.fillStyle=s,t.fillText(o,0,-i))})),t.restore()}},_drawTitle:Y.noop}),Gn=Rn;Zn._defaults=Gn;var Qn=Y._deprecated,Jn=Y.options.resolve,qn=Y.valueOrDefault,Xn=Number.MIN_SAFE_INTEGER||-9007199254740991,Kn=Number.MAX_SAFE_INTEGER||9007199254740991,$n={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ei=Object.keys($n);function ti(e,t){return e-t}function ni(e){return Y.valueOrDefault(e.time.min,e.ticks.min)}function ii(e){return Y.valueOrDefault(e.time.max,e.ticks.max)}function ri(e,t,n,i){var r=function(e,t,n){for(var i,r,o,a=0,s=e.length-1;a>=0&&a<=s;){if(r=e[(i=a+s>>1)-1]||null,o=e[i],!r)return{lo:null,hi:o};if(o[t]<n)a=i+1;else{if(!(r[t]>n))return{lo:r,hi:o};s=i-1}}return{lo:o,hi:null}}(e,t,n),o=r.lo?r.hi?r.lo:e[e.length-2]:e[0],a=r.lo?r.hi?r.hi:e[e.length-1]:e[1],s=a[t]-o[t],l=s?(n-o[t])/s:0,c=(a[i]-o[i])*l;return o[i]+c}function oi(e,t){var n=e._adapter,i=e.options.time,r=i.parser,o=r||i.format,a=t;return"function"==typeof r&&(a=r(a)),Y.isFinite(a)||(a="string"==typeof o?n.parse(a,o):n.parse(a)),null!==a?+a:(r||"function"!=typeof o||(a=o(t),Y.isFinite(a)||(a=n.parse(a))),a)}function ai(e,t){if(Y.isNullOrUndef(t))return null;var n=e.options.time,i=oi(e,e.getRightValue(t));return null===i||n.round&&(i=+e._adapter.startOf(i,n.round)),i}function si(e,t,n,i){var r,o,a,s=ei.length;for(r=ei.indexOf(e);r<s-1;++r)if(a=(o=$n[ei[r]]).steps?o.steps:Kn,o.common&&Math.ceil((n-t)/(a*o.size))<=i)return ei[r];return ei[s-1]}function li(e,t,n){var i,r,o=[],a={},s=t.length;for(i=0;i<s;++i)a[r=t[i]]=i,o.push({value:r,major:!1});return 0!==s&&n?function(e,t,n,i){var r,o,a=e._adapter,s=+a.startOf(t[0].value,i),l=t[t.length-1].value;for(r=s;r<=l;r=+a.add(r,1,i))(o=n[r])>=0&&(t[o].major=!0);return t}(e,o,a,n):o}var ci=yn.extend({initialize:function(){this.mergeTicksOptions(),yn.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),i=e._adapter=new nn._date(t.adapters.date);return Qn("time scale",n.format,"time.format","time.parser"),Qn("time scale",n.min,"time.min","ticks.min"),Qn("time scale",n.max,"time.max","ticks.max"),Y.mergeIf(n.displayFormats,i.formats()),yn.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),yn.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,i,r,o,a,s=this,l=s.chart,c=s._adapter,u=s.options,d=u.time.unit||"day",h=Kn,f=Xn,p=[],g=[],m=[],v=s._getLabels();for(e=0,n=v.length;e<n;++e)m.push(ai(s,v[e]));for(e=0,n=(l.data.datasets||[]).length;e<n;++e)if(l.isDatasetVisible(e))if(r=l.data.datasets[e].data,Y.isObject(r[0]))for(g[e]=[],t=0,i=r.length;t<i;++t)o=ai(s,r[t]),p.push(o),g[e][t]=o;else g[e]=m.slice(0),a||(p=p.concat(m),a=!0);else g[e]=[];m.length&&(h=Math.min(h,m[0]),f=Math.max(f,m[m.length-1])),p.length&&(p=n>1?function(e){var t,n,i,r={},o=[];for(t=0,n=e.length;t<n;++t)r[i=e[t]]||(r[i]=!0,o.push(i));return o}(p).sort(ti):p.sort(ti),h=Math.min(h,p[0]),f=Math.max(f,p[p.length-1])),h=ai(s,ni(u))||h,f=ai(s,ii(u))||f,h=h===Kn?+c.startOf(Date.now(),d):h,f=f===Xn?+c.endOf(Date.now(),d)+1:f,s.min=Math.min(h,f),s.max=Math.max(h+1,f),s._table=[],s._timestamps={data:p,datasets:g,labels:m}},buildTicks:function(){var e,t,n,i=this,r=i.min,o=i.max,a=i.options,s=a.ticks,l=a.time,c=i._timestamps,u=[],d=i.getLabelCapacity(r),h=s.source,f=a.distribution;for(c="data"===h||"auto"===h&&"series"===f?c.data:"labels"===h?c.labels:function(e,t,n,i){var r,o=e._adapter,a=e.options,s=a.time,l=s.unit||si(s.minUnit,t,n,i),c=Jn([s.stepSize,s.unitStepSize,1]),u="week"===l&&s.isoWeekday,d=t,h=[];if(u&&(d=+o.startOf(d,"isoWeek",u)),d=+o.startOf(d,u?"day":l),o.diff(n,t,l)>1e5*c)throw t+" and "+n+" are too far apart with stepSize of "+c+" "+l;for(r=d;r<n;r=+o.add(r,c,l))h.push(r);return r!==n&&"ticks"!==a.bounds||h.push(r),h}(i,r,o,d),"ticks"===a.bounds&&c.length&&(r=c[0],o=c[c.length-1]),r=ai(i,ni(a))||r,o=ai(i,ii(a))||o,e=0,t=c.length;e<t;++e)(n=c[e])>=r&&n<=o&&u.push(n);return i.min=r,i.max=o,i._unit=l.unit||(s.autoSkip?si(l.minUnit,i.min,i.max,d):function(e,t,n,i,r){var o,a;for(o=ei.length-1;o>=ei.indexOf(n);o--)if(a=ei[o],$n[a].common&&e._adapter.diff(r,i,a)>=t-1)return a;return ei[n?ei.indexOf(n):0]}(i,u.length,l.minUnit,i.min,i.max)),i._majorUnit=s.major.enabled&&"year"!==i._unit?function(e){for(var t=ei.indexOf(e)+1,n=ei.length;t<n;++t)if($n[ei[t]].common)return ei[t]}(i._unit):void 0,i._table=function(e,t,n,i){if("linear"===i||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var r,o,a,s,l,c=[],u=[t];for(r=0,o=e.length;r<o;++r)(s=e[r])>t&&s<n&&u.push(s);for(u.push(n),r=0,o=u.length;r<o;++r)l=u[r+1],a=u[r-1],s=u[r],void 0!==a&&void 0!==l&&Math.round((l+a)/2)===s||c.push({time:s,pos:r/(o-1)});return c}(i._timestamps.data,r,o,f),i._offsets=function(e,t,n,i,r){var o,a,s=0,l=0;return r.offset&&t.length&&(o=ri(e,"time",t[0],"pos"),s=1===t.length?1-o:(ri(e,"time",t[1],"pos")-o)/2,a=ri(e,"time",t[t.length-1],"pos"),l=1===t.length?a:(a-ri(e,"time",t[t.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}}(i._table,u,0,0,a),s.reverse&&u.reverse(),li(i,u,i._majorUnit)},getLabelForIndex:function(e,t){var n=this,i=n._adapter,r=n.chart.data,o=n.options.time,a=r.labels&&e<r.labels.length?r.labels[e]:"",s=r.datasets[t].data[e];return Y.isObject(s)&&(a=n.getRightValue(s)),o.tooltipFormat?i.format(oi(n,a),o.tooltipFormat):"string"==typeof a?a:i.format(oi(n,a),o.displayFormats.datetime)},tickFormatFunction:function(e,t,n,i){var r=this,o=r._adapter,a=r.options,s=a.time.displayFormats,l=s[r._unit],c=r._majorUnit,u=s[c],d=n[t],h=a.ticks,f=c&&u&&d&&d.major,p=o.format(e,i||(f?u:l)),g=f?h.major:h.minor,m=Jn([g.callback,g.userCallback,h.callback,h.userCallback]);return m?m(p,t,n):p},convertTicksToLabels:function(e){var t,n,i=[];for(t=0,n=e.length;t<n;++t)i.push(this.tickFormatFunction(e[t].value,t,e));return i},getPixelForOffset:function(e){var t=this,n=t._offsets,i=ri(t._table,"time",e,"pos");return t.getPixelForDecimal((n.start+i)*n.factor)},getPixelForValue:function(e,t,n){var i=this,r=null;if(void 0!==t&&void 0!==n&&(r=i._timestamps.datasets[n][t]),null===r&&(r=ai(i,e)),null!==r)return i.getPixelForOffset(r)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._offsets,i=t.getDecimalForPixel(e)/n.factor-n.end,r=ri(t._table,"pos",i,"time");return t._adapter._create(r)},_getLabelSize:function(e){var t=this,n=t.options.ticks,i=t.ctx.measureText(e).width,r=Y.toRadians(t.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(r),a=Math.sin(r),s=qn(n.fontSize,P.global.defaultFontSize);return{w:i*o+s*a,h:i*a+s*o}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,n=t.options.time,i=n.displayFormats,r=i[n.unit]||i.millisecond,o=t.tickFormatFunction(e,0,li(t,[e],t._majorUnit),r),a=t._getLabelSize(o),s=Math.floor(t.isHorizontal()?t.width/a.w:t.height/a.h);return t.options.offset&&s--,s>0?s:1}}),ui={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};ci._defaults=ui;var di={category:xn,linear:In,logarithmic:jn,radialLinear:Zn,time:ci},hi={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};nn._date.override("function"==typeof e?{_id:"moment",formats:function(){return hi},parse:function(t,n){return"string"==typeof t&&"string"==typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,i){return e(t).add(n,i).valueOf()},diff:function(t,n,i){return e(t).diff(e(n),i)},startOf:function(t,n,i){return t=e(t),"isoWeek"===n?t.isoWeekday(i).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),P._set("global",{plugins:{filler:{propagate:!0}}});var fi={dataset:function(e){var t=e.fill,n=e.chart,i=n.getDatasetMeta(t),r=i&&n.isDatasetVisible(t)&&i.dataset._children||[],o=r.length||0;return o?function(e,t){return t<o&&r[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,i=t?t.y:null;return Y.isArray(t)?function(e,n){return t[n]}:function(e){return{x:null===n?e.x:n,y:null===i?e.y:i}}}};function pi(e,t,n){var i,r=e._model||{},o=r.fill;if(void 0===o&&(o=!!r.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(i=parseFloat(o,10),isFinite(i)&&Math.floor(i)===i)return"-"!==o[0]&&"+"!==o[0]||(i=t+i),!(i===t||i<0||i>=n)&&i;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function gi(e){return(e.el._scale||{}).getPointPositionForValue?function(e){var t,n,i,r,o,a=e.el._scale,s=a.options,l=a.chart.data.labels.length,c=e.fill,u=[];if(!l)return null;for(t=s.ticks.reverse?a.max:a.min,n=s.ticks.reverse?a.min:a.max,i=a.getPointPositionForValue(0,t),r=0;r<l;++r)o="start"===c||"end"===c?a.getPointPositionForValue(r,"start"===c?t:n):a.getBasePosition(r),s.gridLines.circular&&(o.cx=i.x,o.cy=i.y,o.angle=a.getIndexAngle(r)-Math.PI/2),u.push(o);return u}(e):function(e){var t,n=e.el._model||{},i=e.el._scale||{},r=e.fill,o=null;if(isFinite(r))return null;if("start"===r?o=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===r?o=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:i.getBasePixel&&(o=i.getBasePixel()),null!=o){if(void 0!==o.x&&void 0!==o.y)return o;if(Y.isFinite(o))return{x:(t=i.isHorizontal())?o:null,y:t?null:o}}return null}(e)}function mi(e,t,n){var i,r=e[t].fill,o=[t];if(!n)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!isFinite(r))return r;if(!(i=e[r]))return!1;if(i.visible)return r;o.push(r),r=i.fill}return!1}function vi(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),fi[n](e))}function yi(e){return e&&!e.skip}function bi(e,t,n,i,r){var o,a,s,l;if(i&&r){for(e.moveTo(t[0].x,t[0].y),o=1;o<i;++o)Y.canvas.lineTo(e,t[o-1],t[o]);if(void 0===n[0].angle)for(e.lineTo(n[r-1].x,n[r-1].y),o=r-1;o>0;--o)Y.canvas.lineTo(e,n[o],n[o-1],!0);else for(a=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-a,2)+Math.pow(n[0].y-s,2)),o=r-1;o>0;--o)e.arc(a,s,l,n[o].angle,n[o-1].angle,!0)}}function xi(e,t,n,i,r,o){var a,s,l,c,u,d,h,f,p=t.length,g=i.spanGaps,m=[],v=[],y=0,b=0;for(e.beginPath(),a=0,s=p;a<s;++a)u=n(c=t[l=a%p]._view,l,i),d=yi(c),h=yi(u),o&&void 0===f&&d&&(s=p+(f=a+1)),d&&h?(y=m.push(c),b=v.push(u)):y&&b&&(g?(d&&m.push(c),h&&v.push(u)):(bi(e,m,v,y,b),y=b=0,m=[],v=[]));bi(e,m,v,y,b),e.closePath(),e.fillStyle=r,e.fill()}var wi={id:"filler",afterDatasetsUpdate:function(e,t){var n,i,r,o,a=(e.data.datasets||[]).length,s=t.propagate,l=[];for(i=0;i<a;++i)o=null,(r=(n=e.getDatasetMeta(i)).dataset)&&r._model&&r instanceof Ae.Line&&(o={visible:e.isDatasetVisible(i),fill:pi(r,i,a),chart:e,el:r}),n.$filler=o,l.push(o);for(i=0;i<a;++i)(o=l[i])&&(o.fill=mi(l,i,s),o.boundary=gi(o),o.mapper=vi(o))},beforeDatasetsDraw:function(e){var t,n,i,r,o,a,s,l=e._getSortedVisibleDatasetMetas(),c=e.ctx;for(n=l.length-1;n>=0;--n)(t=l[n].$filler)&&t.visible&&(r=(i=t.el)._view,o=i._children||[],a=t.mapper,s=r.backgroundColor||P.global.defaultColor,a&&s&&o.length&&(Y.canvas.clipArea(c,e.chartArea),xi(c,o,a,r,s,i._loop),Y.canvas.unclipArea(c)))}},Ai=Y.rtl.getRtlAdapter,Ci=Y.noop,_i=Y.valueOrDefault;function ki(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}P._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,i=this.chart,r=i.getDatasetMeta(n);r.hidden=null===r.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},i=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(n){var r=n.controller.getStyle(i?0:void 0);return{text:t[n.index].label,fillStyle:r.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:r.borderWidth,strokeStyle:r.borderColor,pointStyle:r.pointStyle,rotation:r.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(e){var t,n,i,r=document.createElement("ul"),o=e.data.datasets;for(r.setAttribute("class",e.id+"-legend"),t=0,n=o.length;t<n;t++)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[t].backgroundColor,o[t].label&&i.appendChild(document.createTextNode(o[t].label));return r.outerHTML}});var Mi=J.extend({initialize:function(e){var t=this;Y.extend(t,e),t.legendHitBoxes=[],t._hoveredItem=null,t.doughnutMode=!1},beforeUpdate:Ci,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:Ci,beforeSetDimensions:Ci,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Ci,beforeBuildLabels:Ci,buildLabels:function(){var e=this,t=e.options.labels||{},n=Y.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:Ci,beforeFit:Ci,fit:function(){var e=this,t=e.options,n=t.labels,i=t.display,r=e.ctx,o=Y.options._parseFont(n),a=o.size,s=e.legendHitBoxes=[],l=e.minSize,c=e.isHorizontal();if(c?(l.width=e.maxWidth,l.height=i?10:0):(l.width=i?10:0,l.height=e.maxHeight),i){if(r.font=o.string,c){var u=e.lineWidths=[0],d=0;r.textAlign="left",r.textBaseline="middle",Y.each(e.legendItems,(function(e,t){var i=ki(n,a)+a/2+r.measureText(e.text).width;(0===t||u[u.length-1]+i+2*n.padding>l.width)&&(d+=a+n.padding,u[u.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:i,height:a},u[u.length-1]+=i+n.padding})),l.height+=d}else{var h=n.padding,f=e.columnWidths=[],p=e.columnHeights=[],g=n.padding,m=0,v=0;Y.each(e.legendItems,(function(e,t){var i=ki(n,a)+a/2+r.measureText(e.text).width;t>0&&v+a+2*h>l.height&&(g+=m+n.padding,f.push(m),p.push(v),m=0,v=0),m=Math.max(m,i),v+=a+h,s[t]={left:0,top:0,width:i,height:a}})),g+=m,f.push(m),p.push(v),l.width+=g}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:Ci,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,i=P.global,r=i.defaultColor,o=i.elements.line,a=e.height,s=e.columnHeights,l=e.width,c=e.lineWidths;if(t.display){var u,d=Ai(t.rtl,e.left,e.minSize.width),h=e.ctx,f=_i(n.fontColor,i.defaultFontColor),p=Y.options._parseFont(n),g=p.size;h.textAlign=d.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=p.string;var m=ki(n,g),v=e.legendHitBoxes,y=function(e,i){switch(t.align){case"start":return n.padding;case"end":return e-i;default:return(e-i+n.padding)/2}},b=e.isHorizontal();u=b?{x:e.left+y(l,c[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+y(a,s[0]),line:0},Y.rtl.overrideTextDirection(e.ctx,t.textDirection);var x=g+n.padding;Y.each(e.legendItems,(function(t,i){var f=h.measureText(t.text).width,p=m+g/2+f,w=u.x,A=u.y;d.setWidth(e.minSize.width),b?i>0&&w+p+n.padding>e.left+e.minSize.width&&(A=u.y+=x,u.line++,w=u.x=e.left+y(l,c[u.line])):i>0&&A+x>e.top+e.minSize.height&&(w=u.x=w+e.columnWidths[u.line]+n.padding,u.line++,A=u.y=e.top+y(a,s[u.line]));var C=d.x(w);(function(e,t,i){if(!(isNaN(m)||m<=0)){h.save();var a=_i(i.lineWidth,o.borderWidth);if(h.fillStyle=_i(i.fillStyle,r),h.lineCap=_i(i.lineCap,o.borderCapStyle),h.lineDashOffset=_i(i.lineDashOffset,o.borderDashOffset),h.lineJoin=_i(i.lineJoin,o.borderJoinStyle),h.lineWidth=a,h.strokeStyle=_i(i.strokeStyle,r),h.setLineDash&&h.setLineDash(_i(i.lineDash,o.borderDash)),n&&n.usePointStyle){var s=m*Math.SQRT2/2,l=d.xPlus(e,m/2),c=t+g/2;Y.canvas.drawPoint(h,i.pointStyle,s,l,c,i.rotation)}else h.fillRect(d.leftForLtr(e,m),t,m,g),0!==a&&h.strokeRect(d.leftForLtr(e,m),t,m,g);h.restore()}})(C,A,t),v[i].left=d.leftForLtr(C,v[i].width),v[i].top=A,function(e,t,n,i){var r=g/2,o=d.xPlus(e,m+r),a=t+r;h.fillText(n.text,o,a),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(o,a),h.lineTo(d.xPlus(o,i),a),h.stroke())}(C,A,t,f),b?u.x+=p+n.padding:u.y+=x})),Y.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,i,r,o=this;if(e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom)for(r=o.legendHitBoxes,n=0;n<r.length;++n)if(e>=(i=r[n]).left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height)return o.legendItems[n];return null},handleEvent:function(e){var t,n=this,i=n.options,r="mouseup"===e.type?"click":e.type;if("mousemove"===r){if(!i.onHover&&!i.onLeave)return}else{if("click"!==r)return;if(!i.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===r?t&&i.onClick&&i.onClick.call(n,e.native,t):(i.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&i.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),i.onHover&&t&&i.onHover.call(n,e.native,t))}});function Si(e,t){var n=new Mi({ctx:e.ctx,options:t,chart:e});ft.configure(e,n,t),ft.addBox(e,n),e.legend=n}var Ii={id:"legend",_element:Mi,beforeInit:function(e){var t=e.options.legend;t&&Si(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(Y.mergeIf(t,P.global.legend),n?(ft.configure(e,n,t),n.options=t):Si(e,t)):n&&(ft.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},Li=Y.noop;P._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Ti=J.extend({initialize:function(e){Y.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:Li,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:Li,beforeSetDimensions:Li,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Li,beforeBuildLabels:Li,buildLabels:Li,afterBuildLabels:Li,beforeFit:Li,fit:function(){var e,t=this,n=t.options,i=t.minSize={},r=t.isHorizontal();n.display?(e=(Y.isArray(n.text)?n.text.length:1)*Y.options._parseFont(n).lineHeight+2*n.padding,t.width=i.width=r?t.maxWidth:e,t.height=i.height=r?e:t.maxHeight):t.width=i.width=t.height=i.height=0},afterFit:Li,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var i,r,o,a=Y.options._parseFont(n),s=a.lineHeight,l=s/2+n.padding,c=0,u=e.top,d=e.left,h=e.bottom,f=e.right;t.fillStyle=Y.valueOrDefault(n.fontColor,P.global.defaultFontColor),t.font=a.string,e.isHorizontal()?(r=d+(f-d)/2,o=u+l,i=f-d):(r="left"===n.position?d+l:f-l,o=u+(h-u)/2,i=h-u,c=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(r,o),t.rotate(c),t.textAlign="center",t.textBaseline="middle";var p=n.text;if(Y.isArray(p))for(var g=0,m=0;m<p.length;++m)t.fillText(p[m],0,g,i),g+=s;else t.fillText(p,0,0,i);t.restore()}}});function Di(e,t){var n=new Ti({ctx:e.ctx,options:t,chart:e});ft.configure(e,n,t),ft.addBox(e,n),e.titleBlock=n}var Ni={},Oi=wi,ji=Ii,Ei={id:"title",_element:Ti,beforeInit:function(e){var t=e.options.title;t&&Di(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(Y.mergeIf(t,P.global.title),n?(ft.configure(e,n,t),n.options=t):Di(e,t)):n&&(ft.removeBox(e,n),delete e.titleBlock)}};for(var Fi in Ni.filler=Oi,Ni.legend=ji,Ni.title=Ei,$t.helpers=Y,function(){function e(e,t,n){var i;return"string"==typeof e?(i=parseInt(e,10),-1!==e.indexOf("%")&&(i=i/100*t.parentNode[n])):i=e,i}function t(e){return null!=e&&"none"!==e}function n(n,i,r){var o=document.defaultView,a=Y._getParentNode(n),s=o.getComputedStyle(n)[i],l=o.getComputedStyle(a)[i],c=t(s),u=t(l),d=Number.POSITIVE_INFINITY;return c||u?Math.min(c?e(s,n,r):d,u?e(l,a,r):d):"none"}Y.where=function(e,t){if(Y.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return Y.each(e,(function(e){t(e)&&n.push(e)})),n},Y.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var i=0,r=e.length;i<r;++i)if(t.call(n,e[i],i,e))return i;return-1},Y.findNextWhere=function(e,t,n){Y.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<e.length;i++){var r=e[i];if(t(r))return r}},Y.findPreviousWhere=function(e,t,n){Y.isNullOrUndef(n)&&(n=e.length);for(var i=n-1;i>=0;i--){var r=e[i];if(t(r))return r}},Y.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},Y.almostEquals=function(e,t,n){return Math.abs(e-t)<n},Y.almostWhole=function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e},Y.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},Y.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},Y.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},Y.toRadians=function(e){return e*(Math.PI/180)},Y.toDegrees=function(e){return e*(180/Math.PI)},Y._decimalPlaces=function(e){if(Y.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},Y.getAngleFromPoint=function(e,t){var n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i),o=Math.atan2(i,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:r}},Y.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Y.aliasPixel=function(e){return e%2==0?0:.5},Y._alignPixel=function(e,t,n){var i=e.currentDevicePixelRatio,r=n/2;return Math.round((t-r)*i)/i+r},Y.splineCurve=function(e,t,n,i){var r=e.skip?t:e,o=t,a=n.skip?t:n,s=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),l=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),c=s/(s+l),u=l/(s+l),d=i*(c=isNaN(c)?0:c),h=i*(u=isNaN(u)?0:u);return{previous:{x:o.x-d*(a.x-r.x),y:o.y-d*(a.y-r.y)},next:{x:o.x+h*(a.x-r.x),y:o.y+h*(a.y-r.y)}}},Y.EPSILON=Number.EPSILON||1e-14,Y.splineCurveMonotone=function(e){var t,n,i,r,o,a,s,l,c,u=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),d=u.length;for(t=0;t<d;++t)if(!(i=u[t]).model.skip){if(n=t>0?u[t-1]:null,(r=t<d-1?u[t+1]:null)&&!r.model.skip){var h=r.model.x-i.model.x;i.deltaK=0!==h?(r.model.y-i.model.y)/h:0}!n||n.model.skip?i.mK=i.deltaK:!r||r.model.skip?i.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(i.deltaK)?i.mK=0:i.mK=(n.deltaK+i.deltaK)/2}for(t=0;t<d-1;++t)i=u[t],r=u[t+1],i.model.skip||r.model.skip||(Y.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=r.mK=0:(o=i.mK/i.deltaK,a=r.mK/i.deltaK,(l=Math.pow(o,2)+Math.pow(a,2))<=9||(s=3/Math.sqrt(l),i.mK=o*s*i.deltaK,r.mK=a*s*i.deltaK)));for(t=0;t<d;++t)(i=u[t]).model.skip||(n=t>0?u[t-1]:null,r=t<d-1?u[t+1]:null,n&&!n.model.skip&&(c=(i.model.x-n.model.x)/3,i.model.controlPointPreviousX=i.model.x-c,i.model.controlPointPreviousY=i.model.y-c*i.mK),r&&!r.model.skip&&(c=(r.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+c,i.model.controlPointNextY=i.model.y+c*i.mK))},Y.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},Y.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},Y.niceNum=function(e,t){var n=Math.floor(Y.log10(e)),i=e/Math.pow(10,n);return(t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},Y.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},Y.getRelativePosition=function(e,t){var n,i,r=e.originalEvent||e,o=e.target||e.srcElement,a=o.getBoundingClientRect(),s=r.touches;s&&s.length>0?(n=s[0].clientX,i=s[0].clientY):(n=r.clientX,i=r.clientY);var l=parseFloat(Y.getStyle(o,"padding-left")),c=parseFloat(Y.getStyle(o,"padding-top")),u=parseFloat(Y.getStyle(o,"padding-right")),d=parseFloat(Y.getStyle(o,"padding-bottom")),h=a.right-a.left-l-u,f=a.bottom-a.top-c-d;return{x:n=Math.round((n-a.left-l)/h*o.width/t.currentDevicePixelRatio),y:i=Math.round((i-a.top-c)/f*o.height/t.currentDevicePixelRatio)}},Y.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},Y.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},Y._calculatePadding=function(e,t,n){return(t=Y.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},Y._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},Y.getMaximumWidth=function(e){var t=Y._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,i=n-Y._calculatePadding(t,"padding-left",n)-Y._calculatePadding(t,"padding-right",n),r=Y.getConstraintWidth(e);return isNaN(r)?i:Math.min(i,r)},Y.getMaximumHeight=function(e){var t=Y._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,i=n-Y._calculatePadding(t,"padding-top",n)-Y._calculatePadding(t,"padding-bottom",n),r=Y.getConstraintHeight(e);return isNaN(r)?i:Math.min(i,r)},Y.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},Y.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=e.canvas,r=e.height,o=e.width;i.height=r*n,i.width=o*n,e.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=r+"px",i.style.width=o+"px")}},Y.fontString=function(e,t,n){return t+" "+e+"px "+n},Y.longestText=function(e,t,n,i){var r=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},o=i.garbageCollect=[],i.font=t),e.font=t;var a,s,l,c,u,d=0,h=n.length;for(a=0;a<h;a++)if(null!=(c=n[a])&&!0!==Y.isArray(c))d=Y.measureText(e,r,o,d,c);else if(Y.isArray(c))for(s=0,l=c.length;s<l;s++)null==(u=c[s])||Y.isArray(u)||(d=Y.measureText(e,r,o,d,u));var f=o.length/2;if(f>n.length){for(a=0;a<f;a++)delete r[o[a]];o.splice(0,f)}return d},Y.measureText=function(e,t,n,i,r){var o=t[r];return o||(o=t[r]=e.measureText(r).width,n.push(r)),o>i&&(i=o),i},Y.numberOfLabelLines=function(e){var t=1;return Y.each(e,(function(e){Y.isArray(e)&&e.length>t&&(t=e.length)})),t},Y.color=w?function(e){return e instanceof CanvasGradient&&(e=P.global.defaultColor),w(e)}:function(e){return console.error("Color.js not found!"),e},Y.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:Y.color(e).saturate(.5).darken(.1).rgbString()}}(),$t._adapters=nn,$t.Animation=X,$t.animationService=K,$t.controllers=qe,$t.DatasetController=ie,$t.defaults=P,$t.Element=J,$t.elements=Ae,$t.Interaction=it,$t.layouts=ft,$t.platform=Nt,$t.plugins=Ot,$t.Scale=yn,$t.scaleService=jt,$t.Ticks=rn,$t.Tooltip=Vt,$t.helpers.each(di,(function(e,t){$t.scaleService.registerScaleType(t,e,e._defaults)})),Ni)Ni.hasOwnProperty(Fi)&&$t.plugins.register(Ni[Fi]);$t.platform.initialize();var Pi=$t;return"undefined"!=typeof window&&(window.Chart=$t),$t.Chart=$t,$t.Legend=Ni.legend._element,$t.Title=Ni.title._element,$t.pluginService=$t.plugins,$t.PluginBase=$t.Element.extend({}),$t.canvasHelpers=$t.helpers.canvas,$t.layoutService=$t.layouts,$t.LinearScaleBase=_n,$t.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){$t[e]=function(t,n){return new $t(t,$t.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),Pi}(function(){try{return n(420)}catch(e){}}())},145:(e,t,n)=>{var i=n(935),r=n(62),o=n(987);t=i(!1);var a=r(o);t.push([e.id,"@font-face {\n font-family: viewericons;\n src: url("+a+');\n font-weight: normal;\n font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n}\n.linked-highlight-cell {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight) {\n background-color: hsl(90 69% 85%) !important;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-1 {\n background-color: #eaa8ff !important;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-2 {\n background-color: hsl(48 100% 85%) !important;\n}\n.review.review-highlight-untagged-numbers .review-untagged-number {\n background-color: #eaa8ff;\n}\n.review.review-highlight-untagged-dates .review-untagged-date {\n background-color: hsl(48 100% 85%);\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight) {\n background-color: hsl(90 69% 85%) !important;\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-1 {\n background-color: hsl(90 69% 85%) !important;\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-2 {\n background-color: hsl(90 69% 85%) !important;\n}\ndiv:not(.ixbrl-no-highlight).ixbrl-selected,\nspan:not(.ixbrl-no-highlight).ixbrl-selected {\n outline: solid 0.125em #0094ff;\n outline-offset: 0.0625em;\n}\ndiv:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\nspan:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\ndiv:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected),\nspan:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected) {\n outline: dashed 0.125em #0094ff;\n outline-offset: 0.0625em;\n}\n:not(.ixbrl-no-highlight).ixbrl-element,\n:not(.ixbrl-no-highlight).ixbrl-sub-element {\n cursor: pointer;\n}\n:not(.ixbrl-no-highlight).ixbrl-element.ixbrl-related,\n:not(.ixbrl-no-highlight).ixbrl-sub-element.ixbrl-related {\n outline: dashed 0.125em #0eb30e;\n}\n:not(.ixbrl-no-highlight).ixbrl-element.ixbrl-related:not(td, th),\n:not(.ixbrl-no-highlight).ixbrl-sub-element.ixbrl-related:not(td, th) {\n outline-offset: 0.0625em;\n}\ntd:not(.ixbrl-no-highlight).ixbrl-selected,\nth:not(.ixbrl-no-highlight).ixbrl-selected {\n outline: solid 0.125em #0094ff !important;\n outline-offset: -0.0625em !important;\n}\ntd:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\nth:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\ntd:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected),\nth:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected) {\n outline: dashed 0.125em #0094ff !important;\n outline-offset: -0.0625em !important;\n}\ntd.ixbrl-related,\nth.ixbrl-related {\n outline-offset: -0.0625em !important;\n}\n.ixbrl-related.ixbrl-linked-highlight:not(.ixbrl-no-highlight),\n.ixbrl-linked-highlight:not(.ixbrl-no-highlight) {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n}\ntd.ixbrl-related.ixbrl-linked-highlight:not(.ixbrl-no-highlight),\ntd.ixbrl-linked-highlight:not(.ixbrl-no-highlight) {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\ndiv.ixbrl-table-handle {\n position: absolute;\n left: 0;\n cursor: pointer;\n width: 0;\n height: 0;\n border: 0.4rem solid transparent;\n border-bottom-color: #66ca00;\n top: -0.8rem;\n}\ndiv.ixbrl-table-handle::after {\n content: "";\n position: absolute;\n left: -0.4rem;\n top: 0.4rem;\n width: 0;\n height: 0;\n border: 0.4rem solid transparent;\n border-top-color: #66ca00;\n}\ndiv.ixbrl-table-handle > span {\n display: none;\n white-space: nowrap;\n}\ndiv.ixbrl-table-handle:hover {\n border: none;\n color: #fff;\n transition: width 0.3s;\n width: 9rem;\n height: initial;\n left: -0.1rem;\n padding: 0;\n z-index: 1;\n}\ndiv.ixbrl-table-handle:hover::after {\n display: none;\n}\ndiv.ixbrl-table-handle:hover > span {\n border: solid 0.1rem #fff;\n font-family: sans-serif;\n display: block;\n padding: 0.7rem 1.5rem 0.7rem 2.5rem;\n background-color: #66ca00;\n}\ndiv.ixbrl-table-handle:hover > span::before {\n font-family: viewericons;\n content: "\\ea0f";\n position: absolute;\n left: 0.8rem;\n font-size: 1.2rem;\n}\n',""]),e.exports=t},28:(e,t,n)=>{var i=n(935),r=n(62),o=n(987);t=i(!1);var a=r(o);t.push([e.id,"html {\n font-size: 62.5%;\n}\nbody {\n margin: 0;\n}\n@font-face {\n font-family: viewericons;\n src: url("+a+');\n font-weight: normal;\n font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n}\n.linked-highlight-cell {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\ninput[type="text"],\nselect,\nbutton {\n padding: 7px 5px;\n border: solid 1px #cbcbcb;\n border-radius: 5px;\n color: #595959;\n background-color: #fff;\n box-sizing: border-box;\n}\n.square-button-bare {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n}\n.square-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n.square-button:last-of-type {\n margin-right: 0;\n}\n.square-button:first-of-type {\n margin-left: 0;\n}\n.square-button.primary {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n.wk-checkbox,\nlabel.checkbox {\n position: relative;\n padding-left: 2.2rem;\n cursor: pointer;\n user-select: none;\n line-height: 1.6rem;\n}\n.wk-checkbox input,\nlabel.checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n.wk-checkbox .checkmark,\nlabel.checkbox .checkmark {\n position: absolute;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 1.6rem;\n height: 1.6rem;\n border-radius: 0.4rem;\n border: solid 0.1rem #cbcbcb;\n}\n.wk-checkbox input:checked ~ .checkmark::before,\nlabel.checkbox input:checked ~ .checkmark::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0.4rem;\n width: 0.4rem;\n height: 1.1rem;\n border: solid #026dce;\n border-width: 0 0.2rem 0.2rem 0;\n transform: rotate(45deg);\n}\ninput:disabled {\n background-color: #eee;\n}\n#ixv .dialog.chart {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n color: #595959;\n}\n#ixv .dialog.chart .chart-container {\n position: relative;\n width: 100%;\n}\n#ixv .dialog.chart .other-aspects {\n width: 100%;\n position: absolute;\n bottom: 0;\n}\n#ixv .dialog.chart .other-aspects .other-aspect {\n display: inline-block;\n padding: 5px 10px;\n margin: 10px;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.selected,\n#ixv .dialog.chart .other-aspects .other-aspect.addable {\n cursor: pointer;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.addable {\n color: #026dce;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.addable:hover {\n color: #0094ff;\n text-decoration: underline;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.selected {\n background-color: #0094ff;\n border-radius: 0.4rem;\n border: 0.1rem solid #0085e6;\n /* border: solid 1px #399; */\n color: #fff;\n}\n.dialog {\n z-index: 15;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border: solid 1px #000;\n background-color: #fff;\n display: none;\n}\n.dialog.full-screen {\n width: calc(100vw - 5em);\n height: calc(100vh - 5em);\n}\n.dialog.full-width {\n width: calc(100vw - 5em);\n}\n.dialog.message-box {\n max-width: 800px;\n width: 100%;\n}\n.dialog .contents {\n padding: 2rem;\n position: relative;\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n}\n.dialog .contents > h2:first-child {\n margin-top: 0;\n}\n.dialog .close {\n position: absolute;\n top: 0;\n right: 0;\n padding: 1.8rem 2rem 0;\n font-size: 2.6rem;\n z-index: 20;\n cursor: pointer;\n line-height: 2.2rem;\n opacity: 0.2;\n}\n.dialog .close::before {\n content: "\\00d7";\n}\n.dialog .close:hover {\n opacity: 1;\n}\n.dialog .buttons button {\n border-radius: 0;\n min-width: 10rem;\n margin-right: 1.5rem;\n border: solid 0.1rem #cbcbcb;\n color: #595959;\n background-color: #f8f8f8;\n cursor: pointer;\n}\n.dialog .buttons button.dialog-button-primary {\n color: #fff;\n background-color: #66ca00;\n border: none;\n}\n#ixv #inspector .menu {\n position: absolute;\n right: 0;\n top: 0;\n line-height: 3.5rem;\n cursor: pointer;\n}\n#ixv #inspector .menu .menu-title {\n padding-right: 3.2rem;\n position: relative;\n}\n#ixv #inspector .menu .menu-title::after {\n font-family: viewericons;\n content: "\\ea04";\n font-size: 1.8rem;\n position: absolute;\n right: 1rem;\n}\n#ixv #inspector .menu .content-container {\n position: fixed;\n top: 8.3rem;\n right: 0;\n bottom: 0;\n display: none;\n z-index: 5;\n}\n#ixv #inspector .menu .content-container .content {\n line-height: initial;\n background: #fff;\n border: solid 1px #cbcbcb;\n max-height: 100%;\n overflow-y: auto;\n}\n#ixv #inspector .menu .content-container .content .group {\n border-bottom: solid 1px #cbcbcb;\n border-top: solid 1px #cbcbcb;\n}\n#ixv #inspector .menu .content-container .content .item {\n position: relative;\n padding: 10px 25px 10px 30px;\n white-space: nowrap;\n text-align: left;\n}\n#ixv #inspector .menu .content-container .content .item:hover {\n background: #cbcbcb;\n}\n#ixv #inspector .menu .content-container .content .item.menu-checkbox {\n cursor: pointer;\n user-select: none;\n position: relative;\n display: block;\n}\n#ixv #inspector .menu .content-container .content .item.menu-checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n#ixv #inspector .menu .content-container .content .item.menu-checkbox input:checked ~ .checkmark::before {\n font-family: viewericons;\n content: "\\ea1c";\n position: absolute;\n top: 1.1rem;\n left: 1rem;\n}\n#ixv #inspector .menu .content-container .content a.item {\n display: block;\n color: #595959;\n}\n#ixv #inspector .menu .content-container .content a.item:hover {\n text-decoration: none;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox {\n position: relative;\n padding-left: 2.2rem;\n cursor: pointer;\n user-select: none;\n line-height: 1.6rem;\n margin-left: 1.8rem;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox .checkmark {\n position: absolute;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 1.6rem;\n height: 1.6rem;\n border-radius: 0.4rem;\n border: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox input:checked ~ .checkmark::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0.4rem;\n width: 0.4rem;\n height: 1.1rem;\n border: solid #026dce;\n border-width: 0 0.2rem 0.2rem 0;\n transform: rotate(45deg);\n}\n.accordian .card {\n margin-top: 0.4rem;\n background-color: #f8f8f8;\n}\n.accordian .card .card-body {\n display: none;\n padding-left: 1.6rem;\n padding-right: 1.6rem;\n padding-bottom: 0.8rem;\n}\n.accordian .card .card-body > h4:first-child {\n margin-top: 0.8rem;\n}\n.accordian .card .title {\n padding: 1.2rem 1.6rem;\n cursor: pointer;\n line-height: 1.8rem;\n}\n.accordian .card .title:hover {\n background-color: #f3f3f3;\n}\n.accordian .card.active {\n background-color: #f3f3f3;\n}\n.accordian .card.active .title {\n font-weight: bold;\n}\n.accordian .card.active .card-body {\n display: block;\n}\n#ixv .loader {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgb(0 0 0 / 85%);\n z-index: 10;\n}\n#ixv .loader .text {\n padding-top: 80px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n color: #fff;\n font-size: large;\n font-family: sans-serif;\n}\n#ixv .loader.loading .text::after,\n#ixv .loader.loading .text::before {\n margin: 0 0 0 -30px;\n height: 60px;\n width: 60px;\n position: absolute;\n content: "";\n top: 0;\n left: 50%;\n border-radius: 500rem;\n border-style: solid;\n border-width: 3px;\n box-shadow: 0 0 0 1px transparent;\n}\n#ixv .loader.loading .text::before {\n border: 3px solid rgb(255 255 255 / 10%);\n}\n#ixv .loader.loading .text::after {\n -webkit-animation: loader 4s steps(64);\n animation: loader 4s steps(64);\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n border-color: #fff transparent transparent;\n}\n@keyframes loader {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.tab-area {\n background-color: #e3e3e3;\n width: 100%;\n box-sizing: border-box;\n border-bottom: solid 0.1rem #cbcbcb;\n display: flex;\n}\n.tab-area::after {\n content: "";\n clear: both;\n display: table;\n}\n.tab-area .tab {\n float: left;\n padding: 1.2rem;\n cursor: pointer;\n color: #444;\n border: solid 0.1rem #cbcbcb;\n border-top-left-radius: 0.6rem;\n border-top-right-radius: 0.6rem;\n margin-bottom: -0.1rem;\n flex-shrink: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: 20em;\n}\n.tab-area .tab.active {\n padding: 1.2rem;\n border-bottom-color: #fff;\n background-color: #fff;\n border-top: solid 0.4rem #0085e6;\n}\n.tab-area .tab:not(.active) {\n padding-top: 1.5rem;\n}\n.block-list-item {\n margin: 0.5rem 0;\n padding: 0.3rem 0.9rem;\n background-color: #f8f8f8;\n cursor: pointer;\n position: relative;\n border-left: solid 0.4rem #f8f8f8;\n}\n.block-list-item > * {\n margin: 0.8rem 0;\n}\n.block-list-item > .tags {\n margin: 0.6rem 0;\n}\n.block-list-item:hover {\n background-color: #f3f3f3;\n}\n.block-list-item.selected {\n border-left: solid 0.4rem #0085e6;\n background-color: #f3f3f3;\n}\n.block-list-item.linked-highlight {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n#ixv .dialog.validation-report {\n width: calc(100vw - 5em);\n}\n#ixv .dialog.validation-report table {\n display: block;\n margin: 2rem 0;\n border-collapse: collapse;\n max-height: calc(90vh - 150px);\n overflow-y: auto;\n}\n#ixv .dialog.validation-report table td,\n#ixv .dialog.validation-report table th {\n padding: 0.5rem;\n border: solid 0.1rem #cbcbcb;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace {\n border-spacing: 1rem 0;\n padding-bottom: 1.5rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace th.value-column {\n width: 8rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td {\n padding: 1rem 0;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.figure {\n text-align: right;\n white-space: nowrap;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace.calc11 td.icons,\n#ixv .dialog.calculation-inspector table.calculation-trace.calc11 th.icons {\n border-right: solid 1px;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace.has-icons td.icons,\n#ixv .dialog.calculation-inspector table.calculation-trace.has-icons th.icons {\n padding-right: 1rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace tr.total td.figure,\n#ixv .dialog.calculation-inspector table.calculation-trace tr.total td.line-item {\n border-top: solid 1px;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status .message {\n font-style: italic;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status .icon::before {\n position: relative;\n top: 0.1rem;\n padding-right: 0.1rem;\n font-weight: bold;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.unchecked .icon::before {\n font-family: viewericons;\n content: "\\ea16";\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.consistent .icon::before {\n font-family: viewericons;\n content: "\\ea09";\n color: #66ca00;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.inconsistent .icon::before {\n font-family: viewericons;\n content: "\\ea08";\n color: #d8ae15;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace span.duplicate-facts::before {\n font-family: viewericons;\n content: "\\ea13";\n}\n#ixv .dialog.calculation-inspector table.calculation-trace:not(.calc11) td.calc11-only,\n#ixv .dialog.calculation-inspector table.calculation-trace:not(.calc11) th.calc11-only {\n display: none;\n}\n#ixv .dialog.text-block-viewer {\n max-width: 120rem;\n width: 90vw;\n height: 90vh;\n}\n#ixv .dialog.text-block-viewer .contents {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n#ixv .dialog.text-block-viewer .contents .title,\n#ixv .dialog.text-block-viewer .contents .buttons {\n flex-grow: 0;\n}\n#ixv .dialog.text-block-viewer .contents iframe {\n margin: 1.4rem 0;\n border: solid 1px #ccc;\n flex-grow: 1;\n width: 100%;\n height: 100%;\n}\n#ixv .dialog.text-block-viewer .contents .controls {\n height: 3.2rem;\n}\n#inspector .summary .body .total-facts-title,\n#inspector .summary .body .files-summary-title {\n font-weight: bold;\n}\n#inspector .summary .body .file-summary-container {\n display: flex;\n flex-flow: row wrap;\n}\n#inspector .summary .body .file-summary-container .files {\n flex: 1 1 auto;\n}\n#inspector .summary .body .tag-summary-body {\n overflow-x: auto;\n}\n#inspector .summary .body .tag-summary-body sup {\n font-size: 0.9rem;\n display: block;\n}\n#inspector .summary .body .tag-summary-body table {\n width: 100%;\n border-collapse: collapse;\n}\n#inspector .summary .body .tag-summary-body table td,\n#inspector .summary .body .tag-summary-body table th {\n padding: 0.2rem;\n text-align: left;\n}\n#inspector .summary .body .tag-summary-body table thead th {\n white-space: nowrap;\n position: relative;\n height: 10rem;\n}\n#inspector .summary .body .tag-summary-body table thead th.namespace {\n text-align: left;\n vertical-align: bottom;\n}\n#inspector .summary .body .tag-summary-body table thead th.figure {\n width: 5rem;\n}\n#inspector .summary .body .tag-summary-body table thead th.figure > div {\n position: absolute;\n transform: translate(100px, -50%) rotate(45deg) translate(-50%, 50%);\n text-align: right;\n width: 200px;\n right: 0;\n bottom: 0;\n}\n#inspector .summary .body .tag-summary-body table tbody th {\n font-weight: normal;\n}\n#inspector .summary .body .tag-summary-body table tbody tr,\n#inspector .summary .body .tag-summary-body table tfoot tr {\n transition: background-color 0.25s ease;\n}\n#inspector .summary .body .tag-summary-body table tbody tr:nth-child(odd),\n#inspector .summary .body .tag-summary-body table tfoot tr:nth-child(odd) {\n background-color: rgb(248 248 248);\n}\n#inspector .summary .body .tag-summary-body table tbody tr:hover,\n#inspector .summary .body .tag-summary-body table tfoot tr:hover {\n background-color: rgb(230 230 230);\n}\n#inspector .summary .body .tag-summary-body table tbody tr td.figure,\n#inspector .summary .body .tag-summary-body table tfoot tr td.figure {\n text-align: right;\n}\n#ixv {\n /* Specify these here, not on body in case the iXBRL document has its own\n * style attribute */\n}\n#ixv,\n#ixv table {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n color: #595959;\n font-size: 1.4rem;\n}\n#ixv #ixv-progress {\n position: fixed;\n top: 20px;\n left: 20px;\n width: 500px;\n height: 200px;\n background-color: #fff;\n border: solid #000 1px;\n text-align: center;\n}\n#ixv #viewer-pane {\n width: 75%;\n box-sizing: border-box;\n position: fixed;\n left: 0;\n top: 3.5rem;\n bottom: 0;\n z-index: 0;\n display: flex;\n flex-flow: column;\n /* This spacer stops drag events getting lost to the iframe */\n}\n#ixv #viewer-pane .ixds-tabs {\n display: none;\n flex: 0 1 auto;\n}\n#ixv #viewer-pane #iframe-container {\n position: relative;\n flex: 1 1 auto;\n}\n#ixv #viewer-pane #iframe-container > iframe {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in,\n#ixv #viewer-pane #iframe-container .zoom-out,\n#ixv #viewer-pane #iframe-container .print {\n position: absolute;\n right: 30px;\n width: 20px;\n height: 20px;\n border: solid 1px #bbb;\n background-color: rgb(225 225 225 / 70%);\n justify-content: center;\n display: flex;\n align-items: center;\n color: #777;\n cursor: pointer;\n user-select: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in {\n top: 15px;\n}\n#ixv #viewer-pane #iframe-container .zoom-out {\n top: 40px;\n}\n#ixv #viewer-pane #iframe-container .print {\n top: 75px;\n}\n#ixv #viewer-pane #iframe-container .print::after {\n font-family: viewericons;\n content: "\\ea15";\n font-size: 20px;\n}\n#ixv #viewer-pane #iframe-container .zoom-in:hover,\n#ixv #viewer-pane #iframe-container .zoom-out:hover,\n#ixv #viewer-pane #iframe-container .print:hover {\n background-color: rgb(128 128 128 / 70%);\n}\n#ixv #viewer-pane .resize {\n position: absolute;\n top: 0;\n width: 5px;\n right: -5px;\n bottom: 0;\n z-index: 20;\n}\n#ixv #viewer-pane .resize-spacer {\n position: absolute;\n top: 0;\n width: 3px;\n right: 0;\n bottom: 0;\n z-index: 20;\n}\n#ixv #top-bar {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 1.4rem;\n color: #595959;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n height: 3.5rem;\n border-bottom: solid 1px #ccc;\n z-index: 5;\n}\n#ixv #top-bar .header {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n}\n#ixv #top-bar .document-title {\n position: absolute;\n box-sizing: border-box;\n left: 160px;\n top: 0;\n padding-right: 1.6rem;\n padding-top: 1.3rem;\n border-right: solid 0.1rem #ccc;\n height: 3.5rem;\n overflow: hidden;\n}\n#ixv #top-bar .top-bar-controls {\n position: absolute;\n right: 1.8rem;\n top: 0;\n line-height: 3.5rem;\n}\n#ixv #top-bar .top-bar-controls * {\n vertical-align: middle;\n}\n#ixv #top-bar .top-bar-controls .content input {\n position: relative;\n top: -0.1rem;\n margin-right: 0.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key {\n margin-left: 0.6rem;\n margin-right: 1.5rem;\n position: relative;\n}\n#ixv #top-bar .top-bar-controls .highlight-key::before {\n font-family: viewericons;\n content: "\\ea16";\n font-size: 1.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content {\n position: absolute;\n top: 3.2rem;\n left: -2rem;\n background: #fff;\n border: solid 1px #595959;\n border-radius: 0.3rem;\n line-height: 1.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .arrow {\n position: absolute;\n top: 0;\n left: 1.1rem;\n width: 1.5rem;\n height: 1.5rem;\n border-top: solid 0.1rem #595959;\n border-left: solid 0.1rem #595959;\n transform: translate(50%, -50%) rotate(45deg);\n background: #fff;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item {\n white-space: nowrap;\n margin: 1rem;\n position: relative;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample {\n display: inline-block;\n width: 3.2rem;\n height: 1.6rem;\n margin-right: 1rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-0 {\n background: hsl(90 69% 85% / 1);\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-1 {\n background: #eaa8ff;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-2 {\n background: hsl(48 100% 85% / 1);\n}\n#ixv #top-bar .top-bar-controls .validation-warning {\n margin-left: 0.5rem;\n font-size: 1.6rem;\n display: none;\n cursor: pointer;\n}\n#ixv #top-bar .top-bar-controls .validation-warning::before {\n font-family: viewericons;\n content: "\\ea1d";\n}\n#ixv #inspector {\n display: flex;\n flex-direction: column;\n /* inspector body */\n width: 25%;\n position: absolute;\n top: 3.5rem;\n right: 0;\n bottom: 0;\n box-sizing: border-box;\n overflow: hidden;\n border-left: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector h1,\n#ixv #inspector h2,\n#ixv #inspector h3 {\n font-weight: normal;\n border-bottom: solid 1px #cbcbcb;\n width: 100%;\n box-sizing: border-box;\n padding-bottom: 5px;\n color: #444444;\n}\n#ixv #inspector h2 {\n text-align: center;\n}\n#ixv #inspector h3 {\n font-size: 1.4rem;\n}\n#ixv #inspector h4 {\n font-weight: bold;\n color: #444444;\n margin-bottom: 1.4em;\n}\n#ixv #inspector #inspector-head {\n padding: 0;\n position: relative;\n border-bottom: solid 1px #cbcbcb;\n}\n#ixv #inspector #inspector-head .title {\n text-align: center;\n position: relative;\n border-bottom: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector #inspector-head .title h1 {\n margin: 0.8rem 0;\n border: none;\n padding: 0;\n font-size: 1.8rem;\n line-height: 3.2rem;\n}\n#ixv #inspector #inspector-head .title .back {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n top: 0;\n left: 0;\n position: absolute;\n}\n#ixv #inspector #inspector-head .title .back::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector #inspector-head .title .menu {\n top: 0;\n right: 0;\n position: absolute;\n}\n#ixv #inspector #inspector-head .title .menu .menu-title::before {\n font-family: viewericons;\n content: "\\ea0c";\n font-size: 2rem;\n}\n#ixv #inspector #inspector-head .controls {\n position: relative;\n height: 3.2rem;\n margin: 0.8rem 0.9rem;\n}\n#ixv #inspector #inspector-head .controls .search-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: absolute;\n top: 0;\n left: 7.7rem;\n}\n#ixv #inspector #inspector-head .controls .search-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button::before {\n font-family: viewericons;\n content: "\\ea17";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .outline-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: absolute;\n top: 0;\n left: 3.6rem;\n}\n#ixv #inspector #inspector-head .controls .outline-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .outline-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .outline-button::before {\n font-family: viewericons;\n content: "\\ea14";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .summary-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: absolute;\n top: 0;\n left: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button::before {\n font-family: viewericons;\n content: "\\ea19";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .next-prev {\n position: absolute;\n top: 0;\n right: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: relative;\n display: inline-block;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag:last-of-type,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag:first-of-type,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag::before {\n font-family: viewericons;\n content: "\\ea06";\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector #inspector-head .search-controls {\n margin: 0.8rem 0.9rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input {\n display: flex;\n padding: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input input#ixbrl-search {\n flex-grow: 1;\n margin-right: 1rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle::before {\n font-family: viewericons;\n content: "\\ea10";\n}\n#ixv #inspector #inspector-head .search-controls:not(.show-filters) .search-filters {\n display: none;\n}\n#ixv #inspector #inspector-head .search-controls.show-filters .filter-toggle {\n color: #026dce;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters {\n position: relative;\n max-height: 60vh;\n overflow-y: auto;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .reset {\n cursor: pointer;\n color: #026dce;\n position: absolute;\n right: 0;\n top: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters h3 {\n border: none;\n font-weight: bold;\n padding-bottom: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n margin-bottom: 0.4em;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group .control-label {\n white-space: nowrap;\n margin-right: 2em;\n width: 6em;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group input,\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group select,\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group textarea {\n flex-basis: 12em;\n flex-grow: 2;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .control-label {\n font-weight: bold;\n margin-bottom: 0.6em;\n margin-top: 0.8em;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters select {\n width: 100%;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes {\n display: flex;\n flex-wrap: wrap;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes > div {\n margin: 1.2rem 0;\n flex-grow: 1;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes > div input {\n vertical-align: middle;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-info {\n text-align: center;\n font-style: italic;\n font-size: 1.1rem;\n}\n#ixv #inspector .inspector-body {\n flex-grow: 1;\n width: 100%;\n position: relative;\n overflow: hidden;\n /* search results */\n}\n#ixv #inspector .inspector-body .no-fact-overlay,\n#ixv #inspector .inspector-body .no-outline-overlay {\n display: block;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 80%;\n text-align: center;\n color: #b2b2b2;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .no-fact-overlay-icon::before,\n#ixv #inspector .inspector-body .no-outline-overlay .no-fact-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea1a";\n font-size: 10rem;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .no-outline-overlay-icon::before,\n#ixv #inspector .inspector-body .no-outline-overlay .no-outline-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea14";\n font-size: 10rem;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .title,\n#ixv #inspector .inspector-body .no-outline-overlay .title {\n font-size: x-large;\n}\n#ixv #inspector .inspector-body .inspector-body-fact {\n overflow-y: auto;\n height: 100%;\n position: relative;\n}\n#ixv #inspector .inspector-body .search-results {\n overflow-y: auto;\n height: 100%;\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay {\n transform: translate(-50%, -50%);\n position: absolute;\n top: 50%;\n left: 50%;\n color: #b2b2b2;\n width: 85%;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-icon {\n text-align: center;\n font-size: 10rem;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea17";\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-text {\n text-align: center;\n font-size: medium;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-text .title {\n font-size: x-large;\n}\n#ixv #inspector .inspector-body .search-results .select-icon {\n float: right;\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n cursor: pointer;\n color: #026dce;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:first-of-type {\n margin-left: 0.5rem;\n}\n#ixv #inspector .inspector-body .search-results .select-icon::before {\n font-family: viewericons;\n content: "\\ea18";\n}\n#ixv #inspector .inspector-body .search-results .more-results {\n cursor: pointer;\n color: #026dce;\n padding: 1rem;\n text-align: center;\n}\n#ixv #inspector .inspector-body .outline {\n overflow-y: auto;\n height: 100%;\n}\n#ixv #inspector .inspector-body .summary {\n overflow-y: auto;\n height: 100%;\n}\n#ixv #inspector .inspector-body .body {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .std-label {\n margin-left: 30px;\n min-height: 20px;\n position: relative;\n}\n#ixv #inspector .std-label::before {\n color: #026dce;\n content: "\\2022";\n position: absolute;\n top: -5px;\n left: -20px;\n font-size: x-large;\n}\n#ixv #inspector #concept {\n margin-top: 20px;\n font-size: small;\n min-height: 25px;\n}\n#ixv #inspector #dimensions {\n margin-left: 2rem;\n margin-right: 2rem;\n margin-bottom: 1rem;\n}\n#ixv #inspector #dimensions .dimension {\n position: relative;\n margin: 1.5rem 0 1.5rem 1rem;\n}\n#ixv #inspector #dimensions .dimension::before {\n font-family: viewericons;\n content: "\\ea0d";\n color: #026dce;\n position: absolute;\n top: 0;\n left: -2.3rem;\n font-size: 120%;\n}\n#ixv #inspector #dimensions .dimension-value {\n position: relative;\n margin: 1.5rem 0 1.5rem 3.5rem;\n}\n#ixv #inspector #dimensions .dimension-value::before {\n font-family: viewericons;\n content: "\\ea0e";\n position: absolute;\n color: #026dce;\n top: 0;\n left: -2.3rem;\n font-size: 120%;\n}\n#ixv #inspector .analyse {\n cursor: pointer;\n padding-left: 0.7rem;\n color: #026dce;\n}\n#ixv #inspector .analyse::before {\n font-family: viewericons;\n content: "\\ea11";\n position: relative;\n top: 1px;\n}\n#ixv #inspector .inspector-body-fact .tags {\n position: absolute;\n top: 1.5rem;\n right: 0.9rem;\n}\n#ixv #inspector .target-document-tag {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: #8a8a8a;\n padding: 0.15em 0.5em;\n color: #fff;\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv #inspector .hidden-fact-tag,\n#ixv #inspector .html-hidden-fact-tag {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: #8a8a8a;\n padding: 0.15em 0.5em;\n color: #fff;\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv #inspector .hidden-fact-tag.html-hidden-fact-tag,\n#ixv #inspector .html-hidden-fact-tag.html-hidden-fact-tag {\n background-color: #c63018;\n}\n#ixv #inspector table.fact-properties {\n table-layout: fixed;\n width: 100%;\n}\n#ixv #inspector table.fact-properties th {\n width: 75px;\n text-align: right;\n padding-right: 20px;\n color: #444444;\n}\n#ixv #inspector table.fact-properties th,\n#ixv #inspector table.fact-properties td {\n padding-top: 2px;\n padding-bottom: 2px;\n}\n#ixv #inspector table.fact-properties tr.value .show-all {\n color: #026dce;\n cursor: pointer;\n}\n#ixv #inspector table.fact-properties tr.value:not(.truncated) .show-all {\n display: none;\n}\n#ixv #inspector table.fact-properties tr.value.text-block .expand-text-block {\n color: #026dce;\n cursor: pointer;\n}\n#ixv #inspector table.fact-properties tr.value.text-block .expand-text-block::before {\n font-family: viewericons;\n content: "\\ea1b";\n}\n#ixv #inspector table.fact-properties td {\n overflow: hidden;\n text-overflow: ellipsis;\n color: #7d7d7d;\n}\n#ixv #inspector table.fact-properties tr.uri > td {\n white-space: nowrap;\n}\n#ixv #inspector .duplicates {\n text-align: center;\n width: 100%;\n height: 3.2rem;\n line-height: 3.2rem;\n}\n#ixv #inspector .duplicates > * {\n vertical-align: middle;\n}\n#ixv #inspector .duplicates .text {\n margin: 0 5px;\n}\n#ixv #inspector .duplicates .next,\n#ixv #inspector .duplicates .prev {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n position: relative;\n display: inline-block;\n}\n#ixv #inspector .duplicates .prev::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector .duplicates .next::before {\n font-family: viewericons;\n content: "\\ea06";\n}\n#ixv #inspector .concept td > div {\n display: flex;\n}\n#ixv #inspector .concept td > div span.text {\n white-space: nowrap;\n position: relative;\n flex-shrink: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n#ixv #inspector .concept td > div span.filler {\n width: 0.7rem;\n display: inline-block;\n flex-shrink: 1000;\n}\n#ixv #inspector .concept td > div span.copy-icon {\n flex-shrink: 0;\n}\n#ixv #inspector .documentation {\n margin-top: 10px;\n margin-left: 30px;\n font-style: italic;\n font-family: serif;\n}\n#ixv #inspector a {\n text-decoration: none;\n color: #026dce;\n}\n#ixv #inspector a:hover {\n text-decoration: underline;\n}\n#ixv #inspector .inspector-section {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-body {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-header {\n position: relative;\n padding-left: 12px;\n cursor: pointer;\n user-select: none;\n white-space: nowrap;\n}\n#ixv #inspector .collapsible-section .collapsible-header::before {\n font-family: viewericons;\n content: "\\ea06";\n font-size: 1.8rem;\n position: relative;\n top: 0.4rem;\n left: -0.3rem;\n transform: rotate(90deg);\n transition: all 0.25s ease;\n display: inline-block;\n}\n#ixv #inspector .collapsible-section .collapsible-header .collapsible-subheader {\n user-select: none;\n font-weight: normal;\n font-style: italic;\n font-size: 1.3rem;\n color: #7d7d7d;\n}\n#ixv #inspector .collapsible-section.collapsed .collapsible-header::before {\n transform: rotate(0);\n top: 0.3rem;\n left: -0.2rem;\n}\n#ixv #inspector .collapsible-section.collapsed .collapsible-subheader {\n color: #026dce;\n}\n#ixv #inspector .collapsible-section .footnote-details {\n display: none;\n}\n#ixv #inspector .collapsible-section .calculations .card .title {\n position: relative;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .inconsistent-flag {\n padding-right: 0.75rem;\n position: relative;\n top: 0.2rem;\n color: #d8ae15;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .inconsistent-flag::before {\n font-family: viewericons;\n content: "\\ea08";\n}\n#ixv #inspector .collapsible-section .calculations .card .title .consistent-flag {\n padding-right: 0.75rem;\n position: relative;\n top: 0.2rem;\n color: #66ca00;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .consistent-flag::before {\n font-family: viewericons;\n content: "\\ea09";\n}\n#ixv #inspector .collapsible-section .calculations .card .title .unchecked-flag {\n padding-right: 0.5rem;\n position: relative;\n top: 0.2rem;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .unchecked-flag::before {\n font-family: viewericons;\n content: "\\ea16";\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table {\n width: 100%;\n border-collapse: collapse;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item td {\n padding: 5px 0;\n line-height: 1.8rem;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item td.value {\n text-align: right;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item:not(.calc-fact-link, .total) .concept-name {\n color: #777;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link {\n cursor: pointer;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .concept-name,\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .value {\n color: #026dce;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.linked-highlight,\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link:hover {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.total td {\n border-top: solid 1px #cbcbcb;\n padding-bottom: 1.2rem;\n}\n#ixv #inspector .collapsible-section .calculations .calculation-details-link {\n color: #026dce;\n cursor: pointer;\n}\n#ixv #inspector .reset-multiselect {\n float: right;\n line-height: 0;\n position: relative;\n bottom: 1rem;\n cursor: pointer;\n}\n#ixv #inspector .reset-multiselect::after {\n font-family: viewericons;\n content: "\\ea0b";\n}\n#ixv #inspector:not(.no-fact-selected) .no-fact-overlay {\n display: none;\n}\n#ixv #inspector.no-fact-selected .fact-selected-only {\n display: none;\n}\n#ixv #inspector:not(.hidden-fact) .hidden-fact-tag {\n display: none;\n}\n#ixv #inspector:not(.html-hidden-fact) .html-hidden-fact-tag {\n display: none;\n}\n#ixv #inspector.search-mode #inspector-head .controls .search-button {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n#ixv #inspector.outline-mode #inspector-head .controls .outline-button {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n#ixv #inspector.summary-mode #inspector-head .controls .summary-button {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n#ixv #inspector .powered-by {\n font-size: 1.2rem;\n text-align: center;\n flex-shrink: 0;\n background: #fff;\n width: 100%;\n height: 3rem;\n margin: 0;\n box-sizing: border-box;\n border-top: solid 0.1rem #cbcbcb;\n position: relative;\n}\n#ixv #inspector .powered-by img {\n box-sizing: border-box;\n height: 3rem;\n padding: 0.5rem;\n}\n#ixv #inspector .powered-by .version {\n position: absolute;\n top: 0;\n right: 5px;\n font-size: small;\n line-height: 3rem;\n color: #999;\n}\n#ixv #inspector:not(.search-mode) .search-mode-only {\n display: none;\n}\n#ixv #inspector:not(.outline-mode) .outline-mode-only {\n display: none;\n}\n#ixv #inspector:not(.summary-mode) .summary-mode-only {\n display: none;\n}\n#ixv #inspector.search-mode .fact-mode-only,\n#ixv #inspector.summary-mode .fact-mode-only,\n#ixv #inspector.outline-mode .fact-mode-only {\n display: none;\n}\n#ixv #inspector:not(.footnote-mode) .footnote-mode-only {\n display: none;\n}\n#ixv #inspector.footnote-mode .footnote-mode-off {\n display: none;\n}\n#ixv #inspector .failed-to-load-mask {\n display: none;\n}\n#ixv #inspector.failed-to-load .failed-to-load-mask {\n display: block;\n background-color: rgb(0 0 0 / 50%);\n position: absolute;\n width: 100%;\n height: 100%;\n}\n#ixv #inspector.search-ready .search-not-ready-only {\n display: none;\n}\n#ixv #inspector:not(.search-ready) .search-ready-only {\n display: none;\n}\n#ixv #inspector:not(.search-ready) .search-results {\n background-color: rgb(0 0 0 / 50%);\n}\n#ixv .fact-link {\n cursor: pointer;\n color: #026dce;\n}\n#ixv .fact-link:hover {\n outline: solid 0.125em #026dce;\n outline-offset: 0.0625em;\n}\n#ixv .fact-list .fact-list-item {\n margin: 0.5rem 0;\n padding: 0.3rem 0.9rem;\n background-color: #f8f8f8;\n cursor: pointer;\n position: relative;\n border-left: solid 0.4rem #f8f8f8;\n}\n#ixv .fact-list .fact-list-item > * {\n margin: 0.8rem 0;\n}\n#ixv .fact-list .fact-list-item > .tags {\n margin: 0.6rem 0;\n}\n#ixv .fact-list .fact-list-item:hover {\n background-color: #f3f3f3;\n}\n#ixv .fact-list .fact-list-item.selected {\n border-left: solid 0.4rem #0085e6;\n background-color: #f3f3f3;\n}\n#ixv .fact-list .fact-list-item.linked-highlight {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n#ixv .fact-list .fact-list-item .title {\n color: #444444;\n font-weight: bold;\n}\n#ixv .fact-list .fact-list-item .dimension {\n color: #595959;\n margin: 0.6rem 0;\n}\n#ixv .fact-list .fact-list-item .hidden {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: #8a8a8a;\n padding: 0.15em 0.5em;\n color: #fff;\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv .fact-list .fact-list-item.selected .title {\n font-weight: bold;\n}\n#ixv .fact-list .fact-list-item.selected .dimension {\n color: #595959;\n}\n#ixv .dialog-mask {\n background-color: rgb(0 0 0 / 60%);\n position: fixed;\n inset: 0;\n z-index: 10;\n display: none;\n}\n#ixv .popup-content {\n display: none;\n}\n#ixv .copy-icon {\n color: #026dce;\n border-radius: 0.3rem;\n}\n#ixv .copy-icon:active {\n background-color: #026dce;\n color: #fff;\n}\n#ixv .copy-icon::before {\n font-family: viewericons;\n content: "\\ea0a";\n cursor: pointer;\n}\n',""]),e.exports=t},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,i,r,o=e[1]||"",a=e[3];if(!a)return o;if(t&&"function"==typeof btoa){var s=(n=a,i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(r," */")),l=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(l).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},62:e=>{"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},60:function(e,t,n){var i,r;void 0===(r="function"==typeof(i=function(){"use strict";function t(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){s(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,a=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,n,a){var s=o.URL||o.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?r(l):i(l.href)?t(e,n,a):r(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){r(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),n);else if(i(e))t(e,n,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){r(a)}))}}:function(e,n,i,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,i);var s="application/octet-stream"===e.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&l||a)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},u.readAsDataURL(e)}else{var d=o.URL||o.webkitURL,h=d.createObjectURL(e);r?r.location=h:location.href=h,r=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});o.saveAs=s.saveAs=s,e.exports=s})?i.apply(t,[]):i)||(e.exports=r)},454:e=>{e.exports=' <div class="fact-details"> <h4 data-i18n="factDetails.concept">Concept</h4> <div class="std-label"></div> <div class="documentation"></div> <h4 id="dimensions-label" data-i18n="factDetails.dimensions">Dimensions</h4> <div id="dimensions"></div> <h4 data-i18n="factDetails.properties">Properties</h4> <table class="fact-properties"> <tr class="period"> <th data-i18n="factDetails.date">Date</th> <td></td> </tr> <tr class="value"> <th data-i18n="factDetails.factValue">Fact Value</th> <td><span class="value"></span> <span class="show-all">[...]</span> <span class="expand-text-block"></span></td> </tr> <tr class="accuracy"> <th data-i18n="factDetails.accuracy">Accuracy</th> <td></td> </tr> <tr class="scale"> <th data-i18n="factDetails.scale">Scale</th> <td></td> </tr> <tr class="change"> <th data-i18n="factDetails.change">Change</th> <td></td> </tr> <tr class="entity-identifier"> <th data-i18n="factDetails.entity">Entity</th> <td></td> </tr> <tr class="concept"> <th data-i18n="factDetails.concept">Concept</th> <td><div><span class="text"></span><span class="filler"></span><span class="clipboard-copy copy-icon"></span></div></td> </tr> </table> <div class="duplicates"> <span class="prev"></span> <span class="text"></span> <span class="next"></span> </div> </div> '},276:e=>{e.exports=' <div> <table class="fact-properties"> <tr class="value"> <th data-i18n="footnotes.footnote">Footnote</th> <td><span class="value"></span> <span class="show-all">[...]</span></td> </tr> </table> </div> '},730:(e,t,n)=>{e.exports=' <div id="ixv" xmlns="http://www.w3.org/1999/xhtml"> <div class="loader loading"> <span class="text" data-i18n="inspector.loadingViewer">Loading iXBRL Viewer</span> </div> <div id="top-bar"> <img class="header" alt="Inline Viewer logo" src="'+n(778)+'"/> <div class="document-title"></div> <div class="top-bar-controls" id="toolbar-highlight-menu"> <b data-i18n="inspector.highlight">Highlight:</b><span class="highlight-key popup-trigger"><div class="popup-content"> <div class="arrow"></div> <div class="items"></div> </div></span><span class="content"></span> <span class="validation-warning" title="Report has validation errors"></span> </div> </div> <div id="inspector" class="no-fact-selected"> <div id="inspector-head"> <div class="title"> <h1 class="footnote-mode-off" data-i18n="inspector.factProperties">Fact Properties</h1> <h1 class="footnote-mode-only" data-i18n="inspector.footnoteProperties">Footnote Properties</h1> <div class="back search-mode-only"> </div> <div class="back summary-mode-only"> </div> <div class="back outline-mode-only"> </div> <div class="menu" id="display-options-menu"> <div class="menu-title"></div> <div class="content-container"> <div class="content"></div> </div> </div> </div> <div class="controls"> <div class="summary-button" data-i18n="[title]inspector.documentSummary" title="Document summary"> </div> <div class="outline-button" data-i18n="[title]inspector.documentOutline" title="Document outline"> </div> <div class="search-button" data-i18n="[title]inspector.searchTitle" title="Search"> </div> <div class="next-prev"> <span class="ixbrl-prev-tag" data-i18n="[title]inspector.previousTag" title="Previous tag"></span><span class="ixbrl-next-tag" data-i18n="[title]inspector.nextTag" title="Next tag"></span> </div> </div> <div class="search-controls search-mode-only"> <div class="search-input"> <input id="ixbrl-search" type="text" aria-label="Search iXBRL report" disabled="disabled"/> <div class="filter-toggle"></div> </div> <div class="search-filters"> <div class="reset" data-i18n="inspector.reset">Reset</div> <h3 data-i18n="inspector.filter">Filter</h3> <div class="filter-group"> <div class="control-label" data-i18n="inspector.conceptType"> Concept Type </div> <select id="search-filter-concept-type"> <option value="*">-</option> <option value="numeric" data-i18n="inspector.numericOption">Numeric</option> <option value="text" data-i18n="inspector.textOption">Text</option> </select> </div> <div class="filter-group"> <div class="control-label" data-i18n="inspector.factValue"> Fact Value </div> <select id="search-filter-fact-value"> <option value="*">-</option> <option value="negative" data-i18n="inspector.negative">Negative</option> <option value="positive" data-i18n="inspector.positive">Positive</option> </select> </div> <div class="checkboxes"> <div> <label class="checkbox"> <input id="search-hidden-fact-filter" type="checkbox" checked="checked"/> <span data-i18n="inspector.hiddenFacts">Hidden Facts</span> <span class="checkmark"></span> </label> </div> <div> <label class="checkbox"> <input id="search-visible-fact-filter" type="checkbox" checked="checked"/> <span data-i18n="inspector.visibleFacts">Visible Facts</span> <span class="checkmark"></span> </label> </div> </div> <div id="search-filter-period" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.period">Period</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple"> </select> </div> </div> <div id="search-filter-namespaces" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.namespaces">Namespaces</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body namespaces" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple"> </select> </div> </div> <div id="search-filter-target-document" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.targetDocument">Target Document</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body target-document" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple"> </select> </div> </div> <div id="search-filter-units" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.units">Units</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body units" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple"> </select> </div> </div> <div id="search-filter-scales" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.scales">Scales</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body scales" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple"> </select> </div> </div> <div id="search-filter-dimension-type" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.dimensions">Dimension Type</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body dimensions" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple" size="2"> <option value="explicit" data-i18n="inspector.explicitDimension">Explicit Dimensions</option> <option value="typed" data-i18n="inspector.typedDimensions">Typed Dimensions</option> </select> </div> </div> <div id="search-filter-calculations" class="collapsible-section collapsible-only collapsed"> <h3 class="collapsible-header"> <span data-i18n="inspector.calculations">Calculations</span> <span class="collapsible-subheader"></span> </h3> <div class="collapsible-body calculations" style="display:none"> <span class="reset-multiselect"></span> <select multiple="multiple" size="2"> <option value="summation" data-i18n="inspector.summation">Summation</option> <option value="contributor" data-i18n="inspector.contributor">Contributor</option> </select> </div> </div> <div class="filter-info"> <span id="matching-facts-count">?</span> <span data-i18n="inspector.matchingFacts"> matching facts(s)</span> </div> </div> </div> </div> <div class="inspector-body"> <div class="fact-mode-only inspector-body-fact"> <div class="no-fact-overlay"> <div class="no-fact-overlay-icon"></div> <p class="title" data-i18n="inspector.noFactSelected">No Fact Selected</p> </div> <div class="fact-selected-only"> <div class="tags"> <div class="target-document-tag"></div> <div class="hidden-fact-tag" data-i18n="inspector.hiddenFact">Hidden Fact</div> <div class="html-hidden-fact-tag" data-i18n="inspector.concealedFact">Concealed Fact</div> </div> <div class="collapsible-section"> <div class="fact-inspector collapsible-body"> </div> </div> <div class="footnote-mode-off"> <div class="collapsible-section anchoring"> <h3 class="collapsible-header" data-i18n="inspector.anchoring">Anchoring</h3> <div class="collapsible-body"> <h4 data-i18n="inspector.widerAnchor">Wider anchor</h4> <div class="anchors-wider"> </div> <h4 data-i18n="inspector.narrowerAnchor">Narrower anchors</h4> <div class="anchors-narrower"> </div> </div> </div> <div class="collapsible-section"> <h3 class="collapsible-header" data-i18n="inspector.references">References</h3> <div class="collapsible-body references"> </div> </div> <div class="collapsible-section"> <h3 class="collapsible-header" data-i18n="inspector.calculations">Calculations</h3> <div class="collapsible-body calculations"> <div class="tree"></div> </div> </div> <div class="collapsible-section"> <h3 class="collapsible-header" data-i18n="inspector.footnotes">Footnotes</h3> <div class="collapsible-body footnotes fact-list"> </div> </div> <div class="collapsible-section footnote-facts-section"> <h3 class="collapsible-header" data-i18n="inspector.associatedFacts">Associated Facts</h3> <div class="collapsible-body footnote-facts fact-list"> </div> </div> <div class="collapsible-section"> <h3 class="collapsible-header" data-i18n="inspector.fact-groups">Sections</h3> <div class="collapsible-body fact-groups fact-list"> </div> </div> </div> <div class="footnote-details footnote-mode-only"> <div class="collapsible-section"> <h3 class="collapsible-header" data-i18n="inspector.associatedFacts">Associated facts</h3> <div class="collapsible-body footnote-facts fact-list"> </div> </div> </div> </div> </div> <div class="search-results search-mode-only"> <div class="results fact-list"> </div> <div class="search-overlay"> <div class="search-overlay-icon"></div> <div class="search-overlay-text search-ready-only"><p class="title" data-i18n="inspector.factSearch">Fact Search</p><p class="text">Please enter some search terms</p></div> <div class="search-overlay-text search-not-ready-only"><p class="title" data-i18n="inspector.factSearch">Fact Search</p><p class="text">Please wait - building index...</p></div> </div> </div> <div class="outline outline-mode-only"> <div class="no-outline-overlay"> <div class="no-outline-overlay-icon"></div> <p class="title" data-i18n="inspector.outlineUnavailable">Outline Unavailable</p> </div> <div class="body"> </div> </div> <div class="summary summary-mode-only"> <div class="body"> <div class="collapsible-section fact-summary"> <h3 class="collapsible-header" data-i18n="inspector.summary.fact.header">Fact Summary</h3> <div class="collapsible-body"> <div class="total-facts-value"> <span class="total-facts-title" data-i18n="inspector.summary.fact.title">Total Facts:</span> </div> </div> </div> <div class="collapsible-section tag-summary"> <h3 class="collapsible-header" data-i18n="inspector.summary.tag.header">Tag Summary</h3> <div class="collapsible-body"> <div class="tag-summary-body"> <table> <thead> <tr> <th scope="col" class="namespace"><div data-i18n="inspector.summary.tag.colNamespace">Namespace</div></th> <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colPrimaryItems">Primary Items</div></th> <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colDimensions">Dimensions</div></th> <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colMembers">Members</div></th> <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colTotal">Total</div></th> </tr> </thead> <tbody class="tag-summary-table-body"> </tbody> <tfoot> <tr class="tag-summary-table-footer-row"> <th scope="row" data-i18n="inspector.summary.tag.rowTotal">Total</th> </tr> </tfoot> </table> </div> </div> </div> <div class="collapsible-section files-summary"> <h3 class="collapsible-header" data-i18n="inspector.summary.file.header">File Summary</h3> <div class="collapsible-body"> <div class="file-summary-container"> <div class="files inline-docs"> <span class="files-summary-title" data-i18n="inspector.summary.file.inline">Inline Documents</span> <ul></ul> </div> <div class="files schemas"> <span class="files-summary-title" data-i18n="inspector.summary.file.schemas">Schemas</span> <ul></ul> </div> <div class="files pres-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.presentation">Presentation Linkbases</span> <ul></ul> </div> <div class="files calc-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.calculations">Calculation Linkbases</span> <ul></ul> </div> <div class="files def-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.definitions">Definition Linkbases</span> <ul></ul> </div> <div class="files label-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.labels">Label Linkbases</span> <ul></ul> </div> <div class="files ref-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.references">Reference Linkbases</span> <ul></ul> </div> <div class="files other-links"> <span class="files-summary-title" data-i18n="inspector.summary.file.other">Other Linkbases</span> <ul></ul> </div> </div> </div> </div> </div> </div> </div> <div class="inspector-foot powered-by"> <a href="https://arelle.org" target="_blank"><img alt="Arelle logo (opens in new window)" src="'+n(59)+'"/></a> <div class="version"></div> </div> <div class="failed-to-load-mask"></div> </div> <div class="dialog-mask"> </div> <div id="dialog-container"></div> <div id="dialog-templates"> <div class="dialog full-screen chart"> <div class="close"></div> <div class="contents"> <div class="chart-container"><canvas id="chart-canvas"></canvas></div> <div class="other-aspects"></div> </div> </div> <div class="dialog validation-report"> <div class="close"></div> <div class="contents"> <h2 data-i18n="inspector.validationResults">Validation results</h2> <table> <thead> <th data-i18n="inspector.validationSeverity">Severity</th> <th data-i18n="inspector.validationCode">Code</th> <th data-i18n="inspector.validationMessage">Message</th> </thead> <tbody> </tbody> </table> <div class="buttons"> </div> </div> </div> <div class="dialog calculation-inspector"> <div class="close"></div> <div class="contents"> <h2 data-i18n="inspector.calculationDetails">Calculation details</h2> <table class="calculation-trace"> <thead> <tr> <th class="weight"></th> <th class="line-item" data-i18n="calculation.concept">Concept</th> <th class="value-column" data-i18n="calculation.reported-value">Reported Value</th> <th class="icons"></th> <th class="value-column calc11-only" data-i18n="calculation.mininum">Minimum</th> <th class="value-column calc11-only" data-i18n="calculation.maximum">Maximum</th> </tr> </thead> <tbody> </tbody> <tfoot> <tr> <td colspan="6" class="status"><span class="icon"></span> <span class="message"></span></td> </tr> </tfoot> </table> <div class="buttons"> </div> </div> </div> <div class="dialog text-block-viewer"> <div class="close"></div> <div class="contents"> <h2 class="title"></h2> <iframe id="text-block-viewer-iframe"></iframe> <div class="controls"> <label class="checkbox"> <input id="text-block-viewer-plain-text" type="checkbox"/> <span data-i18n="inspector.showTextOnly">Show text only</span> <span class="checkmark"></span> </label> </div> <div class="buttons"> </div> </div> </div> <div class="dialog message-box"> <div class="close"></div> <div class="contents"> <h2 class="title"></h2> <div class="message"> </div> <div class="buttons"> </div> </div> </div> </div> <div id="viewer-pane"> <div class="ixds-tabs"><div class="tab-area"></div></div> <div id="iframe-container"> <div class="zoom-in">+</div> <div class="zoom-out">-</div> <div class="print" title="Print Document" data-i18n="[title]inspector.printDocument"></div> </div> <div class="resize"></div> <div class="resize-spacer"></div> </div> </div> '},806:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function n(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?t(Object(i),!0).forEach((function(t){s(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,p(i.key),i)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=c(e);if(t){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}(this,n)}}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},f.apply(this,arguments)}function p(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var g=function(e){return!(!e||!e.Window)&&e instanceof e.Window},m=void 0,v=void 0;function y(e){m=e;var t=e.document.createTextNode("");t.ownerDocument!==e.document&&"function"==typeof e.wrap&&e.wrap(t)===t&&(e=e.wrap(e)),v=e}function b(e){return g(e)?e:(e.ownerDocument||e).defaultView||v.window}"undefined"!=typeof window&&window&&y(window);var x=function(e){return!!e&&"object"===i(e)},w=function(e){return"function"==typeof e},A={window:function(e){return e===v||g(e)},docFrag:function(e){return x(e)&&11===e.nodeType},object:x,func:w,number:function(e){return"number"==typeof e},bool:function(e){return"boolean"==typeof e},string:function(e){return"string"==typeof e},element:function(e){if(!e||"object"!==i(e))return!1;var t=b(e)||v;return/object|function/.test("undefined"==typeof Element?"undefined":i(Element))?e instanceof Element||e instanceof t.Element:1===e.nodeType&&"string"==typeof e.nodeName},plainObject:function(e){return x(e)&&!!e.constructor&&/function Object\b/.test(e.constructor.toString())},array:function(e){return x(e)&&void 0!==e.length&&w(e.splice)}};function C(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.prepared.axis;"x"===n?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):"y"===n&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}}function _(e){var t=e.iEvent,n=e.interaction;if("drag"===n.prepared.name){var i=n.prepared.axis;if("x"===i||"y"===i){var r="x"===i?"y":"x";t.page[r]=n.coords.start.page[r],t.client[r]=n.coords.start.client[r],t.delta[r]=0}}}var k={id:"actions/drag",install:function(e){var t=e.actions,n=e.Interactable,i=e.defaults;n.prototype.draggable=k.draggable,t.map.drag=k,t.methodDict.drag="draggable",i.actions.drag=k.defaults},listeners:{"interactions:before-action-move":C,"interactions:action-resume":C,"interactions:action-move":_,"auto-start:check":function(e){var t=e.interaction,n=e.interactable,i=e.buttons,r=n.options.drag;if(r&&r.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||0!=(i&n.options.drag.mouseButtons)))return e.action={name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis},!1}},draggable:function(e){return A.object(e)?(this.options.drag.enabled=!1!==e.enabled,this.setPerAction("drag",e),this.setOnEvents("drag",e),/^(xy|x|y|start)$/.test(e.lockAxis)&&(this.options.drag.lockAxis=e.lockAxis),/^(xy|x|y)$/.test(e.startAxis)&&(this.options.drag.startAxis=e.startAxis),this):A.bool(e)?(this.options.drag.enabled=e,this):this.options.drag},beforeMove:C,move:_,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(e){return 0===e.search("drag")}},M=k,S={init:function(e){var t=e;S.document=t.document,S.DocumentFragment=t.DocumentFragment||I,S.SVGElement=t.SVGElement||I,S.SVGSVGElement=t.SVGSVGElement||I,S.SVGElementInstance=t.SVGElementInstance||I,S.Element=t.Element||I,S.HTMLElement=t.HTMLElement||S.Element,S.Event=t.Event,S.Touch=t.Touch||I,S.PointerEvent=t.PointerEvent||t.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function I(){}var L=S,T={init:function(e){var t=L.Element,n=e.navigator||{};T.supportsTouch="ontouchstart"in e||A.func(e.DocumentTouch)&&L.document instanceof e.DocumentTouch,T.supportsPointerEvent=!1!==n.pointerEnabled&&!!L.PointerEvent,T.isIOS=/iP(hone|od|ad)/.test(n.platform),T.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),T.isIe9=/MSIE 9/.test(n.userAgent),T.isOperaMobile="Opera"===n.appName&&T.supportsTouch&&/Presto/.test(n.userAgent),T.prefixedMatchesSelector="matches"in t.prototype?"matches":"webkitMatchesSelector"in t.prototype?"webkitMatchesSelector":"mozMatchesSelector"in t.prototype?"mozMatchesSelector":"oMatchesSelector"in t.prototype?"oMatchesSelector":"msMatchesSelector",T.pEventTypes=T.supportsPointerEvent?L.PointerEvent===e.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,T.wheelEvent=L.document&&"onmousewheel"in L.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},D=T;function N(e,t){if(e.contains)return e.contains(t);for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function O(e,t){for(;A.element(e);){if(E(e,t))return e;e=j(e)}return null}function j(e){var t=e.parentNode;if(A.docFrag(t)){for(;(t=t.host)&&A.docFrag(t););return t}return t}function E(e,t){return v!==m&&(t=t.replace(/\/deep\//g," ")),e[D.prefixedMatchesSelector](t)}var F=function(e){return e.parentNode||e.host};function P(e,t){for(var n,i=[],r=e;(n=F(r))&&r!==t&&n!==r.ownerDocument;)i.unshift(r),r=n;return i}function z(e,t,n){for(;A.element(e);){if(E(e,t))return!0;if((e=j(e))===n)return E(e,t)}return!1}function R(e){return e.correspondingUseElement||e}function B(e){var t=e instanceof L.SVGElement?e.getBoundingClientRect():e.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}}function W(e){var t,n=B(e);if(!D.isIOS7&&n){var i={x:(t=(t=b(e))||v).scrollX||t.document.documentElement.scrollLeft,y:t.scrollY||t.document.documentElement.scrollTop};n.left+=i.x,n.right+=i.x,n.top+=i.y,n.bottom+=i.y}return n}function Y(e){for(var t=[];e;)t.push(e),e=j(e);return t}function U(e){return!!A.string(e)&&(L.document.querySelector(e),!0)}function H(e,t){for(var n in t)e[n]=t[n];return e}function V(e,t,n){return"parent"===e?j(n):"self"===e?t.getRect(n):O(n,e)}function Z(e,t,n,i){var r=e;return A.string(r)?r=V(r,t,n):A.func(r)&&(r=r.apply(void 0,i)),A.element(r)&&(r=W(r)),r}function G(e){return e&&{x:"x"in e?e.x:e.left,y:"y"in e?e.y:e.top}}function Q(e){return!e||"x"in e&&"y"in e||((e=H({},e)).x=e.left||0,e.y=e.top||0,e.width=e.width||(e.right||0)-e.x,e.height=e.height||(e.bottom||0)-e.y),e}function J(e,t,n){e.left&&(t.left+=n.x),e.right&&(t.right+=n.x),e.top&&(t.top+=n.y),e.bottom&&(t.bottom+=n.y),t.width=t.right-t.left,t.height=t.bottom-t.top}function q(e,t,n){var i=n&&e.options[n];return G(Z(i&&i.origin||e.options.origin,e,t,[e&&t]))||{x:0,y:0}}function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return!0},i=arguments.length>3?arguments[3]:void 0;if(i=i||{},A.string(e)&&-1!==e.search(" ")&&(e=K(e)),A.array(e))return e.forEach((function(e){return X(e,t,n,i)})),i;if(A.object(e)&&(t=e,e=""),A.func(t)&&n(e))i[e]=i[e]||[],i[e].push(t);else if(A.array(t))for(var r=0,o=t;r<o.length;r++){var a=o[r];X(e,a,n,i)}else if(A.object(t))for(var s in t)X(K(s).map((function(t){return"".concat(e).concat(t)})),t[s],n,i);return i}function K(e){return e.trim().split(/ +/)}var $=function(e,t){return Math.sqrt(e*e+t*t)},ee=["webkit","moz"];function te(e,t){e.__set||(e.__set={});var n=function(n){if(ee.some((function(e){return 0===n.indexOf(e)})))return 1;"function"!=typeof e[n]&&"__set"!==n&&Object.defineProperty(e,n,{get:function(){return n in e.__set?e.__set[n]:e.__set[n]=t[n]},set:function(t){e.__set[n]=t},configurable:!0})};for(var i in t)n(i);return e}function ne(e,t){e.page=e.page||{},e.page.x=t.page.x,e.page.y=t.page.y,e.client=e.client||{},e.client.x=t.client.x,e.client.y=t.client.y,e.timeStamp=t.timeStamp}function ie(e){e.page.x=0,e.page.y=0,e.client.x=0,e.client.y=0}function re(e){return e instanceof L.Event||e instanceof L.Touch}function oe(e,t,n){return e=e||"page",(n=n||{}).x=t[e+"X"],n.y=t[e+"Y"],n}function ae(e,t){return t=t||{x:0,y:0},D.isOperaMobile&&re(e)?(oe("screen",e,t),t.x+=window.scrollX,t.y+=window.scrollY):oe("page",e,t),t}function se(e){return A.number(e.pointerId)?e.pointerId:e.identifier}function le(e){var t=[];return A.array(e)?(t[0]=e[0],t[1]=e[1]):"touchend"===e.type?1===e.touches.length?(t[0]=e.touches[0],t[1]=e.changedTouches[0]):0===e.touches.length&&(t[0]=e.changedTouches[0],t[1]=e.changedTouches[1]):(t[0]=e.touches[0],t[1]=e.touches[1]),t}function ce(e){for(var t={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<e.length;n++){var i=e[n];for(var r in t)t[r]+=i[r]}for(var o in t)t[o]/=e.length;return t}function ue(e){if(!e.length)return null;var t=le(e),n=Math.min(t[0].pageX,t[1].pageX),i=Math.min(t[0].pageY,t[1].pageY),r=Math.max(t[0].pageX,t[1].pageX),o=Math.max(t[0].pageY,t[1].pageY);return{x:n,y:i,left:n,top:i,right:r,bottom:o,width:r-n,height:o-i}}function de(e,t){var n=t+"X",i=t+"Y",r=le(e),o=r[0][n]-r[1][n],a=r[0][i]-r[1][i];return $(o,a)}function he(e,t){var n=t+"X",i=t+"Y",r=le(e),o=r[1][n]-r[0][n],a=r[1][i]-r[0][i];return 180*Math.atan2(a,o)/Math.PI}function fe(e){return A.string(e.pointerType)?e.pointerType:A.number(e.pointerType)?[void 0,void 0,"touch","pen","mouse"][e.pointerType]:/touch/.test(e.type||"")||e instanceof L.Touch?"touch":"mouse"}function pe(e){var t=A.func(e.composedPath)?e.composedPath():e.path;return[R(t?t[0]:e.target),R(e.currentTarget)]}var ge=function(){function e(t){r(this,e),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=t}return a(e,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),e}();Object.defineProperty(ge.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var me=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];e.push(i)}return e},ve=function(e){return me([],e)},ye=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1},be=function(e,t){return e[ye(e,t)]},xe=function(e){l(n,e);var t=h(n);function n(e,i,o){var a;r(this,n),(a=t.call(this,i._interaction)).dropzone=void 0,a.dragEvent=void 0,a.relatedTarget=void 0,a.draggable=void 0,a.propagationStopped=!1,a.immediatePropagationStopped=!1;var s="dragleave"===o?e.prev:e.cur,l=s.element,c=s.dropzone;return a.type=o,a.target=l,a.currentTarget=l,a.dropzone=c,a.dragEvent=i,a.relatedTarget=i.target,a.draggable=i.interactable,a.timeStamp=i.timeStamp,a}return a(n,[{key:"reject",value:function(){var e=this,t=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&t.cur.dropzone===this.dropzone&&t.cur.element===this.target)if(t.prev.dropzone=this.dropzone,t.prev.element=this.target,t.rejected=!0,t.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var i=t.activeDrops,r=ye(i,(function(t){var n=t.dropzone,i=t.element;return n===e.dropzone&&i===e.target}));t.activeDrops.splice(r,1);var o=new n(t,this.dragEvent,"dropdeactivate");o.dropzone=this.dropzone,o.target=this.target,this.dropzone.fire(o)}else this.dropzone.fire(new n(t,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),n}(ge);function we(e,t){for(var n=0,i=e.slice();n<i.length;n++){var r=i[n],o=r.dropzone,a=r.element;t.dropzone=o,t.target=a,o.fire(t),t.propagationStopped=t.immediatePropagationStopped=!1}}function Ae(e,t){for(var n=function(e,t){for(var n=[],i=0,r=e.interactables.list;i<r.length;i++){var o=r[i];if(o.options.drop.enabled){var a=o.options.drop.accept;if(!(A.element(a)&&a!==t||A.string(a)&&!E(t,a)||A.func(a)&&!a({dropzone:o,draggableElement:t})))for(var s=0,l=o.getAllElements();s<l.length;s++){var c=l[s];c!==t&&n.push({dropzone:o,element:c,rect:o.getRect(c)})}}}return n}(e,t),i=0;i<n.length;i++){var r=n[i];r.rect=r.dropzone.getRect(r.element)}return n}function Ce(e,t,n){for(var i=e.dropState,r=e.interactable,o=e.element,a=[],s=0,l=i.activeDrops;s<l.length;s++){var c=l[s],u=c.dropzone,d=c.element,h=c.rect,f=u.dropCheck(t,n,r,o,d,h);a.push(f?d:null)}var p=function(e){for(var t,n,i,r=[],o=0;o<e.length;o++){var a=e[o],s=e[t];if(a&&o!==t)if(s){var l=F(a),c=F(s);if(l!==a.ownerDocument)if(c!==a.ownerDocument)if(l!==c){r=r.length?r:P(s);var u=void 0;if(s instanceof L.HTMLElement&&a instanceof L.SVGElement&&!(a instanceof L.SVGSVGElement)){if(a===c)continue;u=a.ownerSVGElement}else u=a;for(var d=P(u,s.ownerDocument),h=0;d[h]&&d[h]===r[h];)h++;var f=[d[h-1],d[h],r[h]];if(f[0])for(var p=f[0].lastChild;p;){if(p===f[1]){t=o,r=d;break}if(p===f[2])break;p=p.previousSibling}}else i=s,(parseInt(b(n=a).getComputedStyle(n).zIndex,10)||0)>=(parseInt(b(i).getComputedStyle(i).zIndex,10)||0)&&(t=o);else t=o}else t=o}return t}(a);return i.activeDrops[p]||null}function _e(e,t,n){var i=e.dropState,r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===n.type&&(r.activate=new xe(i,n,"dropactivate"),r.activate.target=null,r.activate.dropzone=null),"dragend"===n.type&&(r.deactivate=new xe(i,n,"dropdeactivate"),r.deactivate.target=null,r.deactivate.dropzone=null),i.rejected||(i.cur.element!==i.prev.element&&(i.prev.dropzone&&(r.leave=new xe(i,n,"dragleave"),n.dragLeave=r.leave.target=i.prev.element,n.prevDropzone=r.leave.dropzone=i.prev.dropzone),i.cur.dropzone&&(r.enter=new xe(i,n,"dragenter"),n.dragEnter=i.cur.element,n.dropzone=i.cur.dropzone)),"dragend"===n.type&&i.cur.dropzone&&(r.drop=new xe(i,n,"drop"),n.dropzone=i.cur.dropzone,n.relatedTarget=i.cur.element),"dragmove"===n.type&&i.cur.dropzone&&(r.move=new xe(i,n,"dropmove"),n.dropzone=i.cur.dropzone)),r}function ke(e,t){var n=e.dropState,i=n.activeDrops,r=n.cur,o=n.prev;t.leave&&o.dropzone.fire(t.leave),t.enter&&r.dropzone.fire(t.enter),t.move&&r.dropzone.fire(t.move),t.drop&&r.dropzone.fire(t.drop),t.deactivate&&we(i,t.deactivate),n.prev.dropzone=r.dropzone,n.prev.element=r.element}function Me(e,t){var n=e.interaction,i=e.iEvent,r=e.event;if("dragmove"===i.type||"dragend"===i.type){var o=n.dropState;t.dynamicDrop&&(o.activeDrops=Ae(t,n.element));var a=i,s=Ce(n,a,r);o.rejected=o.rejected&&!!s&&s.dropzone===o.cur.dropzone&&s.element===o.cur.element,o.cur.dropzone=s&&s.dropzone,o.cur.element=s&&s.element,o.events=_e(n,0,a)}}var Se={id:"actions/drop",install:function(e){var t=e.actions,n=e.interactStatic,i=e.Interactable,r=e.defaults;e.usePlugin(M),i.prototype.dropzone=function(e){return function(e,t){if(A.object(t)){if(e.options.drop.enabled=!1!==t.enabled,t.listeners){var n=X(t.listeners),i=Object.keys(n).reduce((function(e,t){return e[/^(enter|leave)/.test(t)?"drag".concat(t):/^(activate|deactivate|move)/.test(t)?"drop".concat(t):t]=n[t],e}),{}),r=e.options.drop.listeners;r&&e.off(r),e.on(i),e.options.drop.listeners=i}return A.func(t.ondrop)&&e.on("drop",t.ondrop),A.func(t.ondropactivate)&&e.on("dropactivate",t.ondropactivate),A.func(t.ondropdeactivate)&&e.on("dropdeactivate",t.ondropdeactivate),A.func(t.ondragenter)&&e.on("dragenter",t.ondragenter),A.func(t.ondragleave)&&e.on("dragleave",t.ondragleave),A.func(t.ondropmove)&&e.on("dropmove",t.ondropmove),/^(pointer|center)$/.test(t.overlap)?e.options.drop.overlap=t.overlap:A.number(t.overlap)&&(e.options.drop.overlap=Math.max(Math.min(1,t.overlap),0)),"accept"in t&&(e.options.drop.accept=t.accept),"checker"in t&&(e.options.drop.checker=t.checker),e}return A.bool(t)?(e.options.drop.enabled=t,e):e.options.drop}(this,e)},i.prototype.dropCheck=function(e,t,n,i,r,o){return function(e,t,n,i,r,o,a){var s=!1;if(!(a=a||e.getRect(o)))return!!e.options.drop.checker&&e.options.drop.checker(t,n,s,e,o,i,r);var l=e.options.drop.overlap;if("pointer"===l){var c=q(i,r,"drag"),u=ae(t);u.x+=c.x,u.y+=c.y;var d=u.x>a.left&&u.x<a.right,h=u.y>a.top&&u.y<a.bottom;s=d&&h}var f=i.getRect(r);if(f&&"center"===l){var p=f.left+f.width/2,g=f.top+f.height/2;s=p>=a.left&&p<=a.right&&g>=a.top&&g<=a.bottom}return f&&A.number(l)&&(s=Math.max(0,Math.min(a.right,f.right)-Math.max(a.left,f.left))*Math.max(0,Math.min(a.bottom,f.bottom)-Math.max(a.top,f.top))/(f.width*f.height)>=l),e.options.drop.checker&&(s=e.options.drop.checker(t,n,s,e,o,i,r)),s}(this,e,t,n,i,r,o)},n.dynamicDrop=function(t){return A.bool(t)?(e.dynamicDrop=t,n):e.dynamicDrop},H(t.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),t.methodDict.drop="dropzone",e.dynamicDrop=!1,r.actions.drop=Se.defaults},listeners:{"interactions:before-action-start":function(e){var t=e.interaction;"drag"===t.prepared.name&&(t.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(e,t){var n=e.interaction,i=(e.event,e.iEvent);if("drag"===n.prepared.name){var r=n.dropState;r.activeDrops=[],r.events={},r.activeDrops=Ae(t,n.element),r.events=_e(n,0,i),r.events.activate&&(we(r.activeDrops,r.events.activate),t.fire("actions/drop:start",{interaction:n,dragEvent:i}))}},"interactions:action-move":Me,"interactions:after-action-move":function(e,t){var n=e.interaction,i=e.iEvent;if("drag"===n.prepared.name){var r=n.dropState;ke(n,r.events),t.fire("actions/drop:move",{interaction:n,dragEvent:i}),r.events={}}},"interactions:action-end":function(e,t){if("drag"===e.interaction.prepared.name){var n=e.interaction,i=e.iEvent;Me(e,t),ke(n,n.dropState.events),t.fire("actions/drop:end",{interaction:n,dragEvent:i})}},"interactions:stop":function(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:Ae,getDrop:Ce,getDropEvents:_e,fireDropEvents:ke,filterEventType:function(e){return 0===e.search("drag")||0===e.search("drop")},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Ie=Se;function Le(e){var t=e.interaction,n=e.iEvent,i=e.phase;if("gesture"===t.prepared.name){var r=t.pointers.map((function(e){return e.pointer})),o="start"===i,a="end"===i,s=t.interactable.options.deltaSource;if(n.touches=[r[0],r[1]],o)n.distance=de(r,s),n.box=ue(r),n.scale=1,n.ds=0,n.angle=he(r,s),n.da=0,t.gesture.startDistance=n.distance,t.gesture.startAngle=n.angle;else if(a||t.pointers.length<2){var l=t.prevEvent;n.distance=l.distance,n.box=l.box,n.scale=l.scale,n.ds=0,n.angle=l.angle,n.da=0}else n.distance=de(r,s),n.box=ue(r),n.scale=n.distance/t.gesture.startDistance,n.angle=he(r,s),n.ds=n.scale-t.gesture.scale,n.da=n.angle-t.gesture.angle;t.gesture.distance=n.distance,t.gesture.angle=n.angle,A.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(t.gesture.scale=n.scale)}}var Te={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(e){var t=e.actions,n=e.Interactable,i=e.defaults;n.prototype.gesturable=function(e){return A.object(e)?(this.options.gesture.enabled=!1!==e.enabled,this.setPerAction("gesture",e),this.setOnEvents("gesture",e),this):A.bool(e)?(this.options.gesture.enabled=e,this):this.options.gesture},t.map.gesture=Te,t.methodDict.gesture="gesturable",i.actions.gesture=Te.defaults},listeners:{"interactions:action-start":Le,"interactions:action-move":Le,"interactions:action-end":Le,"interactions:new":function(e){e.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(e){if(!(e.interaction.pointers.length<2)){var t=e.interactable.options.gesture;if(t&&t.enabled)return e.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(e){return 0===e.search("gesture")}},De=Te;function Ne(e,t,n,i,r,o,a){if(!t)return!1;if(!0===t){var s=A.number(o.width)?o.width:o.right-o.left,l=A.number(o.height)?o.height:o.bottom-o.top;if(a=Math.min(a,Math.abs(("left"===e||"right"===e?s:l)/2)),s<0&&("left"===e?e="right":"right"===e&&(e="left")),l<0&&("top"===e?e="bottom":"bottom"===e&&(e="top")),"left"===e){var c=s>=0?o.left:o.right;return n.x<c+a}if("top"===e){var u=l>=0?o.top:o.bottom;return n.y<u+a}if("right"===e)return n.x>(s>=0?o.right:o.left)-a;if("bottom"===e)return n.y>(l>=0?o.bottom:o.top)-a}return!!A.element(i)&&(A.element(t)?t===i:z(i,t,r))}function Oe(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.resizeAxes){var i=t;n.interactable.options.resize.square?("y"===n.resizeAxes?i.delta.x=i.delta.y:i.delta.y=i.delta.x,i.axes="xy"):(i.axes=n.resizeAxes,"x"===n.resizeAxes?i.delta.y=0:"y"===n.resizeAxes&&(i.delta.x=0))}}var je,Ee,Fe={id:"actions/resize",before:["actions/drag"],install:function(e){var t=e.actions,n=e.browser,i=e.Interactable,r=e.defaults;Fe.cursors=function(e){return e.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),Fe.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,i.prototype.resizable=function(t){return function(e,t,n){return A.object(t)?(e.options.resize.enabled=!1!==t.enabled,e.setPerAction("resize",t),e.setOnEvents("resize",t),A.string(t.axis)&&/^x$|^y$|^xy$/.test(t.axis)?e.options.resize.axis=t.axis:null===t.axis&&(e.options.resize.axis=n.defaults.actions.resize.axis),A.bool(t.preserveAspectRatio)?e.options.resize.preserveAspectRatio=t.preserveAspectRatio:A.bool(t.square)&&(e.options.resize.square=t.square),e):A.bool(t)?(e.options.resize.enabled=t,e):e.options.resize}(this,t,e)},t.map.resize=Fe,t.methodDict.resize="resizable",r.actions.resize=Fe.defaults},listeners:{"interactions:new":function(e){e.interaction.resizeAxes="xy"},"interactions:action-start":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=t,r=n.rect;n._rects={start:H({},r),corrected:H({},r),previous:H({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}}(e),Oe(e)},"interactions:action-move":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=t,r=n.interactable.options.resize.invert,o="reposition"===r||"negate"===r,a=n.rect,s=n._rects,l=s.start,c=s.corrected,u=s.delta,d=s.previous;if(H(d,c),o){if(H(c,a),"reposition"===r){if(c.top>c.bottom){var h=c.top;c.top=c.bottom,c.bottom=h}if(c.left>c.right){var f=c.left;c.left=c.right,c.right=f}}}else c.top=Math.min(a.top,l.bottom),c.bottom=Math.max(a.bottom,l.top),c.left=Math.min(a.left,l.right),c.right=Math.max(a.right,l.left);for(var p in c.width=c.right-c.left,c.height=c.bottom-c.top,c)u[p]=c[p]-d[p];i.edges=n.prepared.edges,i.rect=c,i.deltaRect=u}}(e),Oe(e)},"interactions:action-end":function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=t;i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}},"auto-start:check":function(e){var t=e.interaction,n=e.interactable,i=e.element,r=e.rect,o=e.buttons;if(r){var a=H({},t.coords.cur.page),s=n.options.resize;if(s&&s.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||0!=(o&s.mouseButtons))){if(A.object(s.edges)){var l={left:!1,right:!1,top:!1,bottom:!1};for(var c in l)l[c]=Ne(c,s.edges[c],a,t._latestPointer.eventTarget,i,r,s.margin||Fe.defaultMargin);l.left=l.left&&!l.right,l.top=l.top&&!l.bottom,(l.left||l.right||l.top||l.bottom)&&(e.action={name:"resize",edges:l})}else{var u="y"!==s.axis&&a.x>r.right-Fe.defaultMargin,d="x"!==s.axis&&a.y>r.bottom-Fe.defaultMargin;(u||d)&&(e.action={name:"resize",axes:(u?"x":"")+(d?"y":"")})}return!e.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(e){var t=e.edges,n=e.axis,i=e.name,r=Fe.cursors,o=null;if(n)o=r[i+n];else if(t){for(var a="",s=0,l=["top","bottom","left","right"];s<l.length;s++){var c=l[s];t[c]&&(a+=c)}o=r[a]}return o},filterEventType:function(e){return 0===e.search("resize")},defaultMargin:null},Pe=Fe,ze={id:"actions",install:function(e){e.usePlugin(De),e.usePlugin(Pe),e.usePlugin(M),e.usePlugin(Ie)}},Re=0,Be=function(e){return je(e)},We=function(e){return Ee(e)},Ye=function(e){if(je=e.requestAnimationFrame,Ee=e.cancelAnimationFrame,!je)for(var t=["ms","moz","webkit","o"],n=0;n<t.length;n++){var i=t[n];je=e["".concat(i,"RequestAnimationFrame")],Ee=e["".concat(i,"CancelAnimationFrame")]||e["".concat(i,"CancelRequestAnimationFrame")]}je=je&&je.bind(e),Ee=Ee&&Ee.bind(e),je||(je=function(t){var n=Date.now(),i=Math.max(0,16-(n-Re)),r=e.setTimeout((function(){t(n+i)}),i);return Re=n+i,r},Ee=function(e){return clearTimeout(e)})},Ue={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(e){Ue.isScrolling=!0,We(Ue.i),e.autoScroll=Ue,Ue.interaction=e,Ue.prevTime=Ue.now(),Ue.i=Be(Ue.scroll)},stop:function(){Ue.isScrolling=!1,Ue.interaction&&(Ue.interaction.autoScroll=null),We(Ue.i)},scroll:function(){var e=Ue.interaction,t=e.interactable,n=e.element,i=e.prepared.name,r=t.options[i].autoScroll,o=He(r.container,t,n),a=Ue.now(),s=(a-Ue.prevTime)/1e3,l=r.speed*s;if(l>=1){var c={x:Ue.x*l,y:Ue.y*l};if(c.x||c.y){var u=Ve(o);A.window(o)?o.scrollBy(c.x,c.y):o&&(o.scrollLeft+=c.x,o.scrollTop+=c.y);var d=Ve(o),h={x:d.x-u.x,y:d.y-u.y};(h.x||h.y)&&t.fire({type:"autoscroll",target:n,interactable:t,delta:h,interaction:e,container:o})}Ue.prevTime=a}Ue.isScrolling&&(We(Ue.i),Ue.i=Be(Ue.scroll))},check:function(e,t){var n;return null==(n=e.options[t].autoScroll)?void 0:n.enabled},onInteractionMove:function(e){var t=e.interaction,n=e.pointer;if(t.interacting()&&Ue.check(t.interactable,t.prepared.name))if(t.simulation)Ue.x=Ue.y=0;else{var i,r,o,a,s=t.interactable,l=t.element,c=t.prepared.name,u=s.options[c].autoScroll,d=He(u.container,s,l);if(A.window(d))a=n.clientX<Ue.margin,i=n.clientY<Ue.margin,r=n.clientX>d.innerWidth-Ue.margin,o=n.clientY>d.innerHeight-Ue.margin;else{var h=B(d);a=n.clientX<h.left+Ue.margin,i=n.clientY<h.top+Ue.margin,r=n.clientX>h.right-Ue.margin,o=n.clientY>h.bottom-Ue.margin}Ue.x=r?1:a?-1:0,Ue.y=o?1:i?-1:0,Ue.isScrolling||(Ue.margin=u.margin,Ue.speed=u.speed,Ue.start(t))}}};function He(e,t,n){return(A.string(e)?V(e,t,n):e)||b(n)}function Ve(e){return A.window(e)&&(e=window.document.body),{x:e.scrollLeft,y:e.scrollTop}}var Ze={id:"auto-scroll",install:function(e){var t=e.defaults,n=e.actions;e.autoScroll=Ue,Ue.now=function(){return e.now()},n.phaselessTypes.autoscroll=!0,t.perAction.autoScroll=Ue.defaults},listeners:{"interactions:new":function(e){e.interaction.autoScroll=null},"interactions:destroy":function(e){e.interaction.autoScroll=null,Ue.stop(),Ue.interaction&&(Ue.interaction=null)},"interactions:stop":Ue.stop,"interactions:action-move":function(e){return Ue.onInteractionMove(e)}}},Ge=Ze;function Qe(e,t){var n=!1;return function(){return n||(v.console.warn(t),n=!0),e.apply(this,arguments)}}function Je(e,t){return e.name=t.name,e.axis=t.axis,e.edges=t.edges,e}function qe(e){return A.bool(e)?(this.options.styleCursor=e,this):null===e?(delete this.options.styleCursor,this):this.options.styleCursor}function Xe(e){return A.func(e)?(this.options.actionChecker=e,this):null===e?(delete this.options.actionChecker,this):this.options.actionChecker}var Ke={id:"auto-start/interactableMethods",install:function(e){var t=e.Interactable;t.prototype.getAction=function(t,n,i,r){var o=function(e,t,n,i,r){var o=e.getRect(i),a={action:null,interactable:e,interaction:n,element:i,rect:o,buttons:t.buttons||{0:1,1:4,3:8,4:16}[t.button]};return r.fire("auto-start:check",a),a.action}(this,n,i,r,e);return this.options.actionChecker?this.options.actionChecker(t,n,o,this,r,i):o},t.prototype.ignoreFrom=Qe((function(e){return this._backCompatOption("ignoreFrom",e)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),t.prototype.allowFrom=Qe((function(e){return this._backCompatOption("allowFrom",e)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),t.prototype.actionChecker=Xe,t.prototype.styleCursor=qe}};function $e(e,t,n,i,r){return t.testIgnoreAllow(t.options[e.name],n,i)&&t.options[e.name].enabled&&it(t,n,e,r)?e:null}function et(e,t,n,i,r,o,a){for(var s=0,l=i.length;s<l;s++){var c=i[s],u=r[s],d=c.getAction(t,n,e,u);if(d){var h=$e(d,c,u,o,a);if(h)return{action:h,interactable:c,element:u}}}return{action:null,interactable:null,element:null}}function tt(e,t,n,i,r){var o=[],a=[],s=i;function l(e){o.push(e),a.push(s)}for(;A.element(s);){o=[],a=[],r.interactables.forEachMatch(s,l);var c=et(e,t,n,o,a,i,r);if(c.action&&!c.interactable.options[c.action.name].manualStart)return c;s=j(s)}return{action:null,interactable:null,element:null}}function nt(e,t,n){var i=t.action,r=t.interactable,o=t.element;i=i||{name:null},e.interactable=r,e.element=o,Je(e.prepared,i),e.rect=r&&i.name?r.getRect(o):null,at(e,n),n.fire("autoStart:prepared",{interaction:e})}function it(e,t,n,i){var r=e.options,o=r[n.name].max,a=r[n.name].maxPerElement,s=i.autoStart.maxInteractions,l=0,c=0,u=0;if(!(o&&a&&s))return!1;for(var d=0,h=i.interactions.list;d<h.length;d++){var f=h[d],p=f.prepared.name;if(f.interacting()){if(++l>=s)return!1;if(f.interactable===e){if((c+=p===n.name?1:0)>=o)return!1;if(f.element===t&&(u++,p===n.name&&u>=a))return!1}}}return s>0}function rt(e,t){return A.number(e)?(t.autoStart.maxInteractions=e,this):t.autoStart.maxInteractions}function ot(e,t,n){var i=n.autoStart.cursorElement;i&&i!==e&&(i.style.cursor=""),e.ownerDocument.documentElement.style.cursor=t,e.style.cursor=t,n.autoStart.cursorElement=t?e:null}function at(e,t){var n=e.interactable,i=e.element,r=e.prepared;if("mouse"===e.pointerType&&n&&n.options.styleCursor){var o="";if(r.name){var a=n.options[r.name].cursorChecker;o=A.func(a)?a(r,n,i,e._interacting):t.actions.map[r.name].getCursor(r)}ot(e.element,o||"",t)}else t.autoStart.cursorElement&&ot(t.autoStart.cursorElement,"",t)}var st={id:"auto-start/base",before:["actions"],install:function(e){var t=e.interactStatic,n=e.defaults;e.usePlugin(Ke),n.base.actionChecker=null,n.base.styleCursor=!0,H(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),t.maxInteractions=function(t){return rt(t,e)},e.autoStart={maxInteractions:1/0,withinInteractionLimit:it,cursorElement:null}},listeners:{"interactions:down":function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;n.interacting()||nt(n,tt(n,i,r,o,t),t)},"interactions:move":function(e,t){!function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;"mouse"!==n.pointerType||n.pointerIsDown||n.interacting()||nt(n,tt(n,i,r,o,t),t)}(e,t),function(e,t){var n=e.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){t.fire("autoStart:before-start",e);var i=n.interactable,r=n.prepared.name;r&&i&&(i.options[r].manualStart||!it(i,n.element,n.prepared,t)?n.stop():(n.start(n.prepared,i,n.element),at(n,t)))}}(e,t)},"interactions:stop":function(e,t){var n=e.interaction,i=n.interactable;i&&i.options.styleCursor&&ot(n.element,"",t)}},maxInteractions:rt,withinInteractionLimit:it,validateAction:$e},lt=st,ct={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(e,t){var n=e.interaction,i=e.eventTarget,r=e.dx,o=e.dy;if("drag"===n.prepared.name){var a=Math.abs(r),s=Math.abs(o),l=n.interactable.options.drag,c=l.startAxis,u=a>s?"x":a<s?"y":"xy";if(n.prepared.axis="start"===l.lockAxis?u[0]:l.lockAxis,"xy"!==u&&"xy"!==c&&c!==u){n.prepared.name=null;for(var d=i,h=function(e){if(e!==n.interactable){var r=n.interactable.options.drag;if(!r.manualStart&&e.testIgnoreAllow(r,d,i)){var o=e.getAction(n.downPointer,n.downEvent,n,d);if(o&&"drag"===o.name&&function(e,t){if(!t)return!1;var n=t.options.drag.startAxis;return"xy"===e||"xy"===n||n===e}(u,e)&<.validateAction(o,e,d,i,t))return e}}};A.element(d);){var f=t.interactables.forEachMatch(d,h);if(f){n.prepared.name="drag",n.interactable=f,n.element=d;break}d=j(d)}}}}}};function ut(e){var t=e.prepared&&e.prepared.name;if(!t)return null;var n=e.interactable.options;return n[t].hold||n[t].delay}var dt={id:"auto-start/hold",install:function(e){var t=e.defaults;e.usePlugin(lt),t.perAction.hold=0,t.perAction.delay=0},listeners:{"interactions:new":function(e){e.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(e){var t=e.interaction,n=ut(t);n>0&&(t.autoStartHoldTimer=setTimeout((function(){t.start(t.prepared,t.interactable,t.element)}),n))},"interactions:move":function(e){var t=e.interaction,n=e.duplicate;t.autoStartHoldTimer&&t.pointerWasMoved&&!n&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":function(e){var t=e.interaction;ut(t)>0&&(t.prepared.name=null)}},getHoldDuration:ut},ht=dt,ft={id:"auto-start",install:function(e){e.usePlugin(lt),e.usePlugin(ht),e.usePlugin(ct)}},pt=function(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):A.bool(e)?(this.options.preventDefault=e?"always":"never",this):this.options.preventDefault};function gt(e){var t=e.interaction,n=e.event;t.interactable&&t.interactable.checkAndPreventDefault(n)}var mt={id:"core/interactablePreventDefault",install:function(e){var t=e.Interactable;t.prototype.preventDefault=pt,t.prototype.checkAndPreventDefault=function(t){return function(e,t,n){var i=e.options.preventDefault;if("never"!==i)if("always"!==i){if(t.events.supportsPassive&&/^touch(start|move)$/.test(n.type)){var r=b(n.target).document,o=t.getDocOptions(r);if(!o||!o.events||!1!==o.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(n.type)||A.element(n.target)&&E(n.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||n.preventDefault()}else n.preventDefault()}(this,e,t)},e.interactions.docEvents.push({type:"dragstart",listener:function(t){for(var n=0,i=e.interactions.list;n<i.length;n++){var r=i[n];if(r.element&&(r.element===t.target||N(r.element,t.target)))return void r.interactable.checkAndPreventDefault(t)}}})},listeners:["down","move","up","cancel"].reduce((function(e,t){return e["interactions:".concat(t)]=gt,e}),{})};function vt(e,t){if(t.phaselessTypes[e])return!0;for(var n in t.map)if(0===e.indexOf(n)&&e.substr(n.length)in t.phases)return!0;return!1}function yt(e){var t={};for(var n in e){var i=e[n];A.plainObject(i)?t[n]=yt(i):A.array(i)?t[n]=ve(i):t[n]=i}return t}var bt=function(){function e(t){r(this,e),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=t,this.result=xt(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return a(e,[{key:"start",value:function(e,t){var n,i,r=e.phase,o=this.interaction,a=function(e){var t=e.interactable.options[e.prepared.name],n=t.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(e){var n=t[e];return n&&n.enabled&&{options:n,methods:n._methods}})).filter((function(e){return!!e}))}(o);this.prepareStates(a),this.startEdges=H({},o.edges),this.edges=H({},this.startEdges),this.startOffset=(i=t,(n=o.rect)?{left:i.x-n.left,top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var s=this.fillArg({phase:r,pageCoords:t,preEnd:!1});return this.result=xt(),this.startAll(s),this.result=this.setAll(s)}},{key:"fillArg",value:function(e){var t=this.interaction;return e.interaction=t,e.interactable=t.interactable,e.element=t.element,e.rect||(e.rect=t.rect),e.edges||(e.edges=this.startEdges),e.startOffset=this.startOffset,e}},{key:"startAll",value:function(e){for(var t=0,n=this.states;t<n.length;t++){var i=n[t];i.methods.start&&(e.state=i,i.methods.start(e))}}},{key:"setAll",value:function(e){var t=e.phase,n=e.preEnd,i=e.skipModifiers,r=e.rect,o=e.edges;e.coords=H({},e.pageCoords),e.rect=H({},r),e.edges=H({},o);for(var a=i?this.states.slice(i):this.states,s=xt(e.coords,e.rect),l=0;l<a.length;l++){var c,u=a[l],d=u.options,h=H({},e.coords),f=null;null!=(c=u.methods)&&c.set&&this.shouldDo(d,n,t)&&(e.state=u,f=u.methods.set(e),J(e.edges,e.rect,{x:e.coords.x-h.x,y:e.coords.y-h.y})),s.eventProps.push(f)}H(this.edges,e.edges),s.delta.x=e.coords.x-e.pageCoords.x,s.delta.y=e.coords.y-e.pageCoords.y,s.rectDelta.left=e.rect.left-r.left,s.rectDelta.right=e.rect.right-r.right,s.rectDelta.top=e.rect.top-r.top,s.rectDelta.bottom=e.rect.bottom-r.bottom;var p=this.result.coords,g=this.result.rect;if(p&&g){var m=s.rect.left!==g.left||s.rect.right!==g.right||s.rect.top!==g.top||s.rect.bottom!==g.bottom;s.changed=m||p.x!==s.coords.x||p.y!==s.coords.y}return s}},{key:"applyToInteraction",value:function(e){var t=this.interaction,n=e.phase,i=t.coords.cur,r=t.coords.start,o=this.result,a=this.startDelta,s=o.delta;"start"===n&&H(this.startDelta,o.delta);for(var l=0,c=[[r,a],[i,s]];l<c.length;l++){var u=c[l],d=u[0],h=u[1];d.page.x+=h.x,d.page.y+=h.y,d.client.x+=h.x,d.client.y+=h.y}var f=this.result.rectDelta,p=e.rect||t.rect;p.left+=f.left,p.right+=f.right,p.top+=f.top,p.bottom+=f.bottom,p.width=p.right-p.left,p.height=p.bottom-p.top}},{key:"setAndApply",value:function(e){var t=this.interaction,n=e.phase,i=e.preEnd,r=e.skipModifiers,o=this.setAll(this.fillArg({preEnd:i,phase:n,pageCoords:e.modifiedCoords||t.coords.cur.page}));if(this.result=o,!o.changed&&(!r||r<this.states.length)&&t.interacting())return!1;if(e.modifiedCoords){var a=t.coords.cur.page,s={x:e.modifiedCoords.x-a.x,y:e.modifiedCoords.y-a.y};o.coords.x+=s.x,o.coords.y+=s.y,o.delta.x+=s.x,o.delta.y+=s.y}this.applyToInteraction(e)}},{key:"beforeEnd",value:function(e){var t=e.interaction,n=e.event,i=this.states;if(i&&i.length){for(var r=!1,o=0;o<i.length;o++){var a=i[o];e.state=a;var s=a.options,l=a.methods,c=l.beforeEnd&&l.beforeEnd(e);if(c)return this.endResult=c,!1;r=r||!r&&this.shouldDo(s,!0,e.phase,!0)}r&&t.move({event:n,preEnd:!0})}}},{key:"stop",value:function(e){var t=e.interaction;if(this.states&&this.states.length){var n=H({states:this.states,interactable:t.interactable,element:t.element,rect:null},e);this.fillArg(n);for(var i=0,r=this.states;i<r.length;i++){var o=r[i];n.state=o,o.methods.stop&&o.methods.stop(n)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(e){this.states=[];for(var t=0;t<e.length;t++){var n=e[t],i=n.options,r=n.methods,o=n.name;this.states.push({options:i,methods:r,index:t,name:o})}return this.states}},{key:"restoreInteractionCoords",value:function(e){var t=e.interaction,n=t.coords,i=t.rect,r=t.modification;if(r.result){for(var o=r.startDelta,a=r.result,s=a.delta,l=a.rectDelta,c=0,u=[[n.start,o],[n.cur,s]];c<u.length;c++){var d=u[c],h=d[0],f=d[1];h.page.x-=f.x,h.page.y-=f.y,h.client.x-=f.x,h.client.y-=f.y}i.left-=l.left,i.right-=l.right,i.top-=l.top,i.bottom-=l.bottom}}},{key:"shouldDo",value:function(e,t,n,i){return!(!e||!1===e.enabled||i&&!e.endOnly||e.endOnly&&!t||"start"===n&&!e.setStart)}},{key:"copyFrom",value:function(e){this.startOffset=e.startOffset,this.startDelta=e.startDelta,this.startEdges=e.startEdges,this.edges=e.edges,this.states=e.states.map((function(e){return yt(e)})),this.result=xt(H({},e.result.coords),H({},e.result.rect))}},{key:"destroy",value:function(){for(var e in this)this[e]=null}}]),e}();function xt(e,t){return{rect:t,coords:e,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function wt(e,t){var n=e.defaults,i={start:e.start,set:e.set,beforeEnd:e.beforeEnd,stop:e.stop},r=function(e){var r=e||{};for(var o in r.enabled=!1!==r.enabled,n)o in r||(r[o]=n[o]);var a={options:r,methods:i,name:t,enable:function(){return r.enabled=!0,a},disable:function(){return r.enabled=!1,a}};return a};return t&&"string"==typeof t&&(r._defaults=n,r._methods=i),r}function At(e){var t=e.iEvent,n=e.interaction.modification.result;n&&(t.modifiers=n.eventProps)}var Ct={id:"modifiers/base",before:["actions"],install:function(e){e.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(e){var t=e.interaction;t.modification=new bt(t)},"interactions:before-action-start":function(e){var t=e.interaction,n=e.interaction.modification;n.start(e,t.coords.start.page),t.edges=n.edges,n.applyToInteraction(e)},"interactions:before-action-move":function(e){var t=e.interaction,n=t.modification,i=n.setAndApply(e);return t.edges=n.edges,i},"interactions:before-action-end":function(e){var t=e.interaction,n=t.modification,i=n.beforeEnd(e);return t.edges=n.startEdges,i},"interactions:action-start":At,"interactions:action-move":At,"interactions:action-end":At,"interactions:after-action-start":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-move":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:stop":function(e){return e.interaction.modification.stop(e)}}},_t=Ct,kt={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Mt=function(e){l(n,e);var t=h(n);function n(e,i,o,a,s,l,c){var u;r(this,n),(u=t.call(this,e)).relatedTarget=null,u.screenX=void 0,u.screenY=void 0,u.button=void 0,u.buttons=void 0,u.ctrlKey=void 0,u.shiftKey=void 0,u.altKey=void 0,u.metaKey=void 0,u.page=void 0,u.client=void 0,u.delta=void 0,u.rect=void 0,u.x0=void 0,u.y0=void 0,u.t0=void 0,u.dt=void 0,u.duration=void 0,u.clientX0=void 0,u.clientY0=void 0,u.velocity=void 0,u.speed=void 0,u.swipe=void 0,u.axes=void 0,u.preEnd=void 0,s=s||e.element;var h=e.interactable,f=(h&&h.options||kt).deltaSource,p=q(h,s,o),g="start"===a,m="end"===a,v=g?d(u):e.prevEvent,y=g?e.coords.start:m?{page:v.page,client:v.client,timeStamp:e.coords.cur.timeStamp}:e.coords.cur;return u.page=H({},y.page),u.client=H({},y.client),u.rect=H({},e.rect),u.timeStamp=y.timeStamp,m||(u.page.x-=p.x,u.page.y-=p.y,u.client.x-=p.x,u.client.y-=p.y),u.ctrlKey=i.ctrlKey,u.altKey=i.altKey,u.shiftKey=i.shiftKey,u.metaKey=i.metaKey,u.button=i.button,u.buttons=i.buttons,u.target=s,u.currentTarget=s,u.preEnd=l,u.type=c||o+(a||""),u.interactable=h,u.t0=g?e.pointers[e.pointers.length-1].downTime:v.t0,u.x0=e.coords.start.page.x-p.x,u.y0=e.coords.start.page.y-p.y,u.clientX0=e.coords.start.client.x-p.x,u.clientY0=e.coords.start.client.y-p.y,u.delta=g||m?{x:0,y:0}:{x:u[f].x-v[f].x,y:u[f].y-v[f].y},u.dt=e.coords.delta.timeStamp,u.duration=u.timeStamp-u.t0,u.velocity=H({},e.coords.velocity[f]),u.speed=$(u.velocity.x,u.velocity.y),u.swipe=m||"inertiastart"===a?u.getSwipe():null,u}return a(n,[{key:"getSwipe",value:function(){var e=this._interaction;if(e.prevEvent.speed<600||this.timeStamp-e.prevEvent.timeStamp>150)return null;var t=180*Math.atan2(e.prevEvent.velocityY,e.prevEvent.velocityX)/Math.PI;t<0&&(t+=360);var n=112.5<=t&&t<247.5,i=202.5<=t&&t<337.5;return{up:i,down:!i&&22.5<=t&&t<157.5,left:n,right:!n&&(292.5<=t||t<67.5),angle:t,speed:e.prevEvent.speed,velocity:{x:e.prevEvent.velocityX,y:e.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),n}(ge);Object.defineProperties(Mt.prototype,{pageX:{get:function(){return this.page.x},set:function(e){this.page.x=e}},pageY:{get:function(){return this.page.y},set:function(e){this.page.y=e}},clientX:{get:function(){return this.client.x},set:function(e){this.client.x=e}},clientY:{get:function(){return this.client.y},set:function(e){this.client.y=e}},dx:{get:function(){return this.delta.x},set:function(e){this.delta.x=e}},dy:{get:function(){return this.delta.y},set:function(e){this.delta.y=e}},velocityX:{get:function(){return this.velocity.x},set:function(e){this.velocity.x=e}},velocityY:{get:function(){return this.velocity.y},set:function(e){this.velocity.y=e}}});var St=a((function e(t,n,i,o,a){r(this,e),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=t,this.pointer=n,this.event=i,this.downTime=o,this.downTarget=a})),It=function(e){return e.interactable="",e.element="",e.prepared="",e.pointerIsDown="",e.pointerWasMoved="",e._proxy="",e}({}),Lt=function(e){return e.start="",e.move="",e.end="",e.stop="",e.interacting="",e}({}),Tt=0,Dt=function(){function e(t){var n=this,i=t.pointerType,o=t.scopeFire;r(this,e),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=Qe((function(e){this.move(e)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Tt++,this._scopeFire=o,this.pointerType=i;var a=this;this._proxy={};var s=function(e){Object.defineProperty(n._proxy,e,{get:function(){return a[e]}})};for(var l in It)s(l);var c=function(e){Object.defineProperty(n._proxy,e,{value:function(){return a[e].apply(a,arguments)}})};for(var u in Lt)c(u);this._scopeFire("interactions:new",{interaction:this})}return a(e,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(e,t,n){var i=this.updatePointer(e,t,n,!0),r=this.pointers[i];this._scopeFire("interactions:down",{pointer:e,event:t,eventTarget:n,pointerIndex:i,pointerInfo:r,type:"down",interaction:this})}},{key:"start",value:function(e,t,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===e.name?2:1)||!t.options[e.name].enabled)&&(Je(this.prepared,e),this.interactable=t,this.element=n,this.rect=t.getRect(n),this.edges=this.prepared.edges?H({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(e,t,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(e,t,n,!1);var i,r,o=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,r=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=$(i,r)>this.pointerMoveTolerance);var a,s,l,c=this.getPointerIndex(e),u={pointer:e,pointerIndex:c,pointerInfo:this.pointers[c],event:t,type:"move",eventTarget:n,dx:i,dy:r,duplicate:o,interaction:this};o||(a=this.coords.velocity,s=this.coords.delta,l=Math.max(s.timeStamp/1e3,.001),a.page.x=s.page.x/l,a.page.y=s.page.y/l,a.client.x=s.client.x/l,a.client.y=s.client.y/l,a.timeStamp=l),this._scopeFire("interactions:move",u),o||this.simulation||(this.interacting()&&(u.type=null,this.move(u)),this.pointerWasMoved&&ne(this.coords.prev,this.coords.cur))}},{key:"move",value:function(e){e&&e.event||ie(this.coords.delta),(e=H({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},e||{})).phase="move",this._doPhase(e)}},{key:"pointerUp",value:function(e,t,n,i){var r=this.getPointerIndex(e);-1===r&&(r=this.updatePointer(e,t,n,!1));var o=/cancel$/i.test(t.type)?"cancel":"up";this._scopeFire("interactions:".concat(o),{pointer:e,pointerIndex:r,pointerInfo:this.pointers[r],event:t,eventTarget:n,type:o,curEventTarget:i,interaction:this}),this.simulation||this.end(t),this.removePointer(e,t)}},{key:"documentBlur",value:function(e){this.end(e),this._scopeFire("interactions:blur",{event:e,type:"blur",interaction:this})}},{key:"end",value:function(e){var t;this._ending=!0,e=e||this._latestPointer.event,this.interacting()&&(t=this._doPhase({event:e,interaction:this,phase:"end"})),this._ending=!1,!0===t&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(e){var t=se(e);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:ye(this.pointers,(function(e){return e.id===t}))}},{key:"getPointerInfo",value:function(e){return this.pointers[this.getPointerIndex(e)]}},{key:"updatePointer",value:function(e,t,n,i){var r,o,a,s=se(e),l=this.getPointerIndex(e),c=this.pointers[l];return i=!1!==i&&(i||/(down|start)$/i.test(t.type)),c?c.pointer=e:(c=new St(s,e,t,null,null),l=this.pointers.length,this.pointers.push(c)),function(e,t,n){var i=t.length>1?ce(t):t[0];ae(i,e.page),function(e,t){t=t||{},D.isOperaMobile&&re(e)?oe("screen",e,t):oe("client",e,t)}(i,e.client),e.timeStamp=n}(this.coords.cur,this.pointers.map((function(e){return e.pointer})),this._now()),r=this.coords.delta,o=this.coords.prev,a=this.coords.cur,r.page.x=a.page.x-o.page.x,r.page.y=a.page.y-o.page.y,r.client.x=a.client.x-o.client.x,r.client.y=a.client.y-o.client.y,r.timeStamp=a.timeStamp-o.timeStamp,i&&(this.pointerIsDown=!0,c.downTime=this.coords.cur.timeStamp,c.downTarget=n,te(this.downPointer,e),this.interacting()||(ne(this.coords.start,this.coords.cur),ne(this.coords.prev,this.coords.cur),this.downEvent=t,this.pointerWasMoved=!1)),this._updateLatestPointer(e,t,n),this._scopeFire("interactions:update-pointer",{pointer:e,event:t,eventTarget:n,down:i,pointerInfo:c,pointerIndex:l,interaction:this}),l}},{key:"removePointer",value:function(e,t){var n=this.getPointerIndex(e);if(-1!==n){var i=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:e,event:t,eventTarget:null,pointerIndex:n,pointerInfo:i,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(e,t,n){this._latestPointer.pointer=e,this._latestPointer.event=t,this._latestPointer.eventTarget=n}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(e,t,n,i){return new Mt(this,e,this.prepared.name,t,this.element,n,i)}},{key:"_fireEvent",value:function(e){var t;null==(t=this.interactable)||t.fire(e),(!this.prevEvent||e.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=e)}},{key:"_doPhase",value:function(e){var t=e.event,n=e.phase,i=e.preEnd,r=e.type,o=this.rect;if(o&&"move"===n&&(J(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top),!1===this._scopeFire("interactions:before-action-".concat(n),e))return!1;var a=e.iEvent=this._createPreparedEvent(t,n,i,r);return this._scopeFire("interactions:action-".concat(n),e),"start"===n&&(this.prevEvent=a),this._fireEvent(a),this._scopeFire("interactions:after-action-".concat(n),e),!0}},{key:"_now",value:function(){return Date.now()}}]),e}();function Nt(e){Ot(e.interaction)}function Ot(e){if(!function(e){return!(!e.offset.pending.x&&!e.offset.pending.y)}(e))return!1;var t=e.offset.pending;return Et(e.coords.cur,t),Et(e.coords.delta,t),J(e.edges,e.rect,t),t.x=0,t.y=0,!0}function jt(e){var t=e.x,n=e.y;this.offset.pending.x+=t,this.offset.pending.y+=n,this.offset.total.x+=t,this.offset.total.y+=n}function Et(e,t){var n=e.page,i=e.client,r=t.x,o=t.y;n.x+=r,n.y+=o,i.x+=r,i.y+=o}Lt.offsetBy="";var Ft={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(e){e.Interaction.prototype.offsetBy=jt},listeners:{"interactions:new":function(e){e.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(e){return function(e){e.pointerIsDown&&(Et(e.coords.cur,e.offset.total),e.offset.pending.x=0,e.offset.pending.y=0)}(e.interaction)},"interactions:before-action-start":Nt,"interactions:before-action-move":Nt,"interactions:before-action-end":function(e){var t=e.interaction;if(Ot(t))return t.move({offset:!0}),t.end(),!1},"interactions:stop":function(e){var t=e.interaction;t.offset.total.x=0,t.offset.total.y=0,t.offset.pending.x=0,t.offset.pending.y=0}}},Pt=Ft,zt=function(){function e(t){r(this,e),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=t}return a(e,[{key:"start",value:function(e){var t=this.interaction,n=Rt(t);if(!n||!n.enabled)return!1;var i=t.coords.velocity.client,r=$(i.x,i.y),o=this.modification||(this.modification=new bt(t));if(o.copyFrom(t.modification),this.t0=t._now(),this.allowResume=n.allowResume,this.v0=r,this.currentOffset={x:0,y:0},this.startCoords=t.coords.cur.page,this.modifierArg=o.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-t.coords.cur.timeStamp<50&&r>n.minSpeed&&r>n.endSpeed)this.startInertia();else{if(o.result=o.setAll(this.modifierArg),!o.result.changed)return!1;this.startSmoothEnd()}return t.modification.result.rect=null,t.offsetBy(this.targetOffset),t._doPhase({interaction:t,event:e,phase:"inertiastart"}),t.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),t.modification.result.rect=null,this.active=!0,t.simulation=this,!0}},{key:"startInertia",value:function(){var e=this,t=this.interaction.coords.velocity.client,n=Rt(this.interaction),i=n.resistance,r=-Math.log(n.endSpeed/this.v0)/i;this.targetOffset={x:(t.x-r)/i,y:(t.y-r)/i},this.te=r,this.lambda_v0=i/this.v0,this.one_ve_v0=1-n.endSpeed/this.v0;var o=this.modification,a=this.modifierArg;a.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},o.result=o.setAll(a),o.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+o.result.delta.x,y:this.targetOffset.y+o.result.delta.y}),this.onNextFrame((function(){return e.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var e=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return e.smoothEndTick()}))}},{key:"onNextFrame",value:function(e){var t=this;this.timeout=Be((function(){t.active&&e()}))}},{key:"inertiaTick",value:function(){var e,t,n,i,r,o=this,a=this.interaction,s=Rt(a).resistance,l=(a._now()-this.t0)/1e3;if(l<this.te){var c,u=1-(Math.exp(-s*l)-this.lambda_v0)/this.one_ve_v0;this.isModified?(0,0,e=this.targetOffset.x,t=this.targetOffset.y,n=this.modifiedOffset.x,i=this.modifiedOffset.y,c={x:Wt(r=u,0,e,n),y:Wt(r,0,t,i)}):c={x:this.targetOffset.x*u,y:this.targetOffset.y*u};var d={x:c.x-this.currentOffset.x,y:c.y-this.currentOffset.y};this.currentOffset.x+=d.x,this.currentOffset.y+=d.y,a.offsetBy(d),a.move(),this.onNextFrame((function(){return o.inertiaTick()}))}else a.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var e=this,t=this.interaction,n=t._now()-this.t0,i=Rt(t).smoothEndDuration;if(n<i){var r={x:Yt(n,0,this.targetOffset.x,i),y:Yt(n,0,this.targetOffset.y,i)},o={x:r.x-this.currentOffset.x,y:r.y-this.currentOffset.y};this.currentOffset.x+=o.x,this.currentOffset.y+=o.y,t.offsetBy(o),t.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return e.smoothEndTick()}))}else t.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(e){var t=e.pointer,n=e.event,i=e.eventTarget,r=this.interaction;r.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),r.updatePointer(t,n,i,!0),r._doPhase({interaction:r,event:n,phase:"resume"}),ne(r.coords.prev,r.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,We(this.timeout)}}]),e}();function Rt(e){var t=e.interactable,n=e.prepared;return t&&t.options&&n.name&&t.options[n.name].inertia}var Bt={id:"inertia",before:["modifiers","actions"],install:function(e){var t=e.defaults;e.usePlugin(Pt),e.usePlugin(_t),e.actions.phases.inertiastart=!0,e.actions.phases.resume=!0,t.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(e){var t=e.interaction;t.inertia=new zt(t)},"interactions:before-action-end":function(e){var t=e.interaction,n=e.event;return(!t._interacting||t.simulation||!t.inertia.start(n))&&null},"interactions:down":function(e){var t=e.interaction,n=e.eventTarget,i=t.inertia;if(i.active)for(var r=n;A.element(r);){if(r===t.element){i.resume(e);break}r=j(r)}},"interactions:stop":function(e){var t=e.interaction.inertia;t.active&&t.stop()},"interactions:before-action-resume":function(e){var t=e.interaction.modification;t.stop(e),t.start(e,e.interaction.coords.cur.page),t.applyToInteraction(e)},"interactions:before-action-inertiastart":function(e){return e.interaction.modification.setAndApply(e)},"interactions:action-resume":At,"interactions:action-inertiastart":At,"interactions:after-action-inertiastart":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-resume":function(e){return e.interaction.modification.restoreInteractionCoords(e)}}};function Wt(e,t,n,i){var r=1-e;return r*r*t+2*r*e*n+e*e*i}function Yt(e,t,n,i){return-n*(e/=i)*(e-2)+t}var Ut=Bt;function Ht(e,t){for(var n=0;n<t.length;n++){var i=t[n];if(e.immediatePropagationStopped)break;i(e)}}var Vt=function(){function e(t){r(this,e),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=H({},t||{})}return a(e,[{key:"fire",value:function(e){var t,n=this.global;(t=this.types[e.type])&&Ht(e,t),!e.propagationStopped&&n&&(t=n[e.type])&&Ht(e,t)}},{key:"on",value:function(e,t){var n=X(e,t);for(e in n)this.types[e]=me(this.types[e]||[],n[e])}},{key:"off",value:function(e,t){var n=X(e,t);for(e in n){var i=this.types[e];if(i&&i.length)for(var r=0,o=n[e];r<o.length;r++){var a=o[r],s=i.indexOf(a);-1!==s&&i.splice(s,1)}}}},{key:"getRect",value:function(e){return null}}]),e}(),Zt=function(){function e(t){r(this,e),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=t,te(this,t)}return a(e,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),e}();function Gt(e){return A.object(e)?{capture:!!e.capture,passive:!!e.passive}:{capture:!!e,passive:!1}}function Qt(e,t){return e===t||("boolean"==typeof e?!!t.capture===e&&0==!!t.passive:!!e.capture==!!t.capture&&!!e.passive==!!t.passive)}var Jt={id:"events",install:function(e){var t,n=[],i={},r=[],o={add:a,remove:s,addDelegate:function(e,t,n,o,s){var u=Gt(s);if(!i[n]){i[n]=[];for(var d=0;d<r.length;d++){var h=r[d];a(h,n,l),a(h,n,c,!0)}}var f=i[n],p=be(f,(function(n){return n.selector===e&&n.context===t}));p||(p={selector:e,context:t,listeners:[]},f.push(p)),p.listeners.push({func:o,options:u})},removeDelegate:function(e,t,n,r,o){var a,u=Gt(o),d=i[n],h=!1;if(d)for(a=d.length-1;a>=0;a--){var f=d[a];if(f.selector===e&&f.context===t){for(var p=f.listeners,g=p.length-1;g>=0;g--){var m=p[g];if(m.func===r&&Qt(m.options,u)){p.splice(g,1),p.length||(d.splice(a,1),s(t,n,l),s(t,n,c,!0)),h=!0;break}}if(h)break}}},delegateListener:l,delegateUseCapture:c,delegatedEvents:i,documents:r,targets:n,supportsOptions:!1,supportsPassive:!1};function a(e,t,i,r){if(e.addEventListener){var a=Gt(r),s=be(n,(function(t){return t.eventTarget===e}));s||(s={eventTarget:e,events:{}},n.push(s)),s.events[t]||(s.events[t]=[]),be(s.events[t],(function(e){return e.func===i&&Qt(e.options,a)}))||(e.addEventListener(t,i,o.supportsOptions?a:a.capture),s.events[t].push({func:i,options:a}))}}function s(e,t,i,r){if(e.addEventListener&&e.removeEventListener){var a=ye(n,(function(t){return t.eventTarget===e})),l=n[a];if(l&&l.events)if("all"!==t){var c=!1,u=l.events[t];if(u){if("all"===i){for(var d=u.length-1;d>=0;d--){var h=u[d];s(e,t,h.func,h.options)}return}for(var f=Gt(r),p=0;p<u.length;p++){var g=u[p];if(g.func===i&&Qt(g.options,f)){e.removeEventListener(t,i,o.supportsOptions?f:f.capture),u.splice(p,1),0===u.length&&(delete l.events[t],c=!0);break}}}c&&!Object.keys(l.events).length&&n.splice(a,1)}else for(t in l.events)l.events.hasOwnProperty(t)&&s(e,t,"all")}}function l(e,t){for(var n=Gt(t),r=new Zt(e),o=i[e.type],a=pe(e)[0],s=a;A.element(s);){for(var l=0;l<o.length;l++){var c=o[l],u=c.selector,d=c.context;if(E(s,u)&&N(d,a)&&N(d,s)){var h=c.listeners;r.currentTarget=s;for(var f=0;f<h.length;f++){var p=h[f];Qt(p.options,n)&&p.func(r)}}}s=j(s)}}function c(e){return l(e,!0)}return null==(t=e.document)||t.createElement("div").addEventListener("test",null,{get capture(){return o.supportsOptions=!0},get passive(){return o.supportsPassive=!0}}),e.events=o,o}},qt={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(e){for(var t=0,n=qt.methodOrder;t<n.length;t++){var i=n[t],r=qt[i](e);if(r)return r}return null},simulationResume:function(e){var t=e.pointerType,n=e.eventType,i=e.eventTarget,r=e.scope;if(!/down|start/i.test(n))return null;for(var o=0,a=r.interactions.list;o<a.length;o++){var s=a[o],l=i;if(s.simulation&&s.simulation.allowResume&&s.pointerType===t)for(;l;){if(l===s.element)return s;l=j(l)}}return null},mouseOrPen:function(e){var t,n=e.pointerId,i=e.pointerType,r=e.eventType,o=e.scope;if("mouse"!==i&&"pen"!==i)return null;for(var a=0,s=o.interactions.list;a<s.length;a++){var l=s[a];if(l.pointerType===i){if(l.simulation&&!Xt(l,n))continue;if(l.interacting())return l;t||(t=l)}}if(t)return t;for(var c=0,u=o.interactions.list;c<u.length;c++){var d=u[c];if(!(d.pointerType!==i||/down/i.test(r)&&d.simulation))return d}return null},hasPointer:function(e){for(var t=e.pointerId,n=0,i=e.scope.interactions.list;n<i.length;n++){var r=i[n];if(Xt(r,t))return r}return null},idle:function(e){for(var t=e.pointerType,n=0,i=e.scope.interactions.list;n<i.length;n++){var r=i[n];if(1===r.pointers.length){var o=r.interactable;if(o&&(!o.options.gesture||!o.options.gesture.enabled))continue}else if(r.pointers.length>=2)continue;if(!r.interacting()&&t===r.pointerType)return r}return null}};function Xt(e,t){return e.pointers.some((function(e){return e.id===t}))}var Kt=qt,$t=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function en(e,t){return function(n){var i=t.interactions.list,r=fe(n),o=pe(n),a=o[0],s=o[1],l=[];if(/^touch/.test(n.type)){t.prevTouchTime=t.now();for(var c=0,u=n.changedTouches;c<u.length;c++){var d=u[c],h={pointer:d,pointerId:se(d),pointerType:r,eventType:n.type,eventTarget:a,curEventTarget:s,scope:t},f=tn(h);l.push([h.pointer,h.eventTarget,h.curEventTarget,f])}}else{var p=!1;if(!D.supportsPointerEvent&&/mouse/.test(n.type)){for(var g=0;g<i.length&&!p;g++)p="mouse"!==i[g].pointerType&&i[g].pointerIsDown;p=p||t.now()-t.prevTouchTime<500||0===n.timeStamp}if(!p){var m={pointer:n,pointerId:se(n),pointerType:r,eventType:n.type,curEventTarget:s,eventTarget:a,scope:t},v=tn(m);l.push([m.pointer,m.eventTarget,m.curEventTarget,v])}}for(var y=0;y<l.length;y++){var b=l[y],x=b[0],w=b[1],A=b[2];b[3][e](x,n,w,A)}}}function tn(e){var t=e.pointerType,n=e.scope,i={interaction:Kt.search(e),searchDetails:e};return n.fire("interactions:find",i),i.interaction||n.interactions.new({pointerType:t})}function nn(e,t){var n=e.doc,i=e.scope,r=e.options,o=i.interactions.docEvents,a=i.events,s=a[t];for(var l in i.browser.isIOS&&!r.events&&(r.events={passive:!1}),a.delegatedEvents)s(n,l,a.delegateListener),s(n,l,a.delegateUseCapture,!0);for(var c=r&&r.events,u=0;u<o.length;u++){var d=o[u];s(n,d.type,d.listener,c)}}var rn={id:"core/interactions",install:function(e){for(var t={},n=0;n<$t.length;n++){var i=$t[n];t[i]=en(i,e)}var o,s=D.pEventTypes;function c(){for(var t=0,n=e.interactions.list;t<n.length;t++){var i=n[t];if(i.pointerIsDown&&"touch"===i.pointerType&&!i._interacting)for(var r=function(){var t=a[o];e.documents.some((function(e){return N(e.doc,t.downTarget)}))||i.removePointer(t.pointer,t.event)},o=0,a=i.pointers;o<a.length;o++)r()}}(o=L.PointerEvent?[{type:s.down,listener:c},{type:s.down,listener:t.pointerDown},{type:s.move,listener:t.pointerMove},{type:s.up,listener:t.pointerUp},{type:s.cancel,listener:t.pointerUp}]:[{type:"mousedown",listener:t.pointerDown},{type:"mousemove",listener:t.pointerMove},{type:"mouseup",listener:t.pointerUp},{type:"touchstart",listener:c},{type:"touchstart",listener:t.pointerDown},{type:"touchmove",listener:t.pointerMove},{type:"touchend",listener:t.pointerUp},{type:"touchcancel",listener:t.pointerUp}]).push({type:"blur",listener:function(t){for(var n=0,i=e.interactions.list;n<i.length;n++)i[n].documentBlur(t)}}),e.prevTouchTime=0,e.Interaction=function(t){l(i,t);var n=h(i);function i(){return r(this,i),n.apply(this,arguments)}return a(i,[{key:"pointerMoveTolerance",get:function(){return e.interactions.pointerMoveTolerance},set:function(t){e.interactions.pointerMoveTolerance=t}},{key:"_now",value:function(){return e.now()}}]),i}(Dt),e.interactions={list:[],new:function(t){t.scopeFire=function(t,n){return e.fire(t,n)};var n=new e.Interaction(t);return e.interactions.list.push(n),n},listeners:t,docEvents:o,pointerMoveTolerance:1},e.usePlugin(mt)},listeners:{"scope:add-document":function(e){return nn(e,"add")},"scope:remove-document":function(e){return nn(e,"remove")},"interactable:unset":function(e,t){for(var n=e.interactable,i=t.interactions.list.length-1;i>=0;i--){var r=t.interactions.list[i];r.interactable===n&&(r.stop(),t.fire("interactions:destroy",{interaction:r}),r.destroy(),t.interactions.list.length>2&&t.interactions.list.splice(i,1))}}},onDocSignal:nn,doOnInteractions:en,methodNames:$t},on=rn,an=function(e){return e[e.On=0]="On",e[e.Off=1]="Off",e}(an||{}),sn=function(){function e(t,n,i,o){r(this,e),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Vt,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=n.actions,this.target=t,this._context=n.context||i,this._win=b(U(t)?this._context:t),this._doc=this._win.document,this._scopeEvents=o,this.set(n)}return a(e,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(e,t){return A.func(t.onstart)&&this.on("".concat(e,"start"),t.onstart),A.func(t.onmove)&&this.on("".concat(e,"move"),t.onmove),A.func(t.onend)&&this.on("".concat(e,"end"),t.onend),A.func(t.oninertiastart)&&this.on("".concat(e,"inertiastart"),t.oninertiastart),this}},{key:"updatePerActionListeners",value:function(e,t,n){var i,r=this,o=null==(i=this._actions.map[e])?void 0:i.filterEventType,a=function(e){return(null==o||o(e))&&vt(e,r._actions)};(A.array(t)||A.object(t))&&this._onOff(an.Off,e,t,void 0,a),(A.array(n)||A.object(n))&&this._onOff(an.On,e,n,void 0,a)}},{key:"setPerAction",value:function(e,t){var n=this._defaults;for(var i in t){var r=i,o=this.options[e],a=t[r];"listeners"===r&&this.updatePerActionListeners(e,o.listeners,a),A.array(a)?o[r]=ve(a):A.plainObject(a)?(o[r]=H(o[r]||{},yt(a)),A.object(n.perAction[r])&&"enabled"in n.perAction[r]&&(o[r].enabled=!1!==a.enabled)):A.bool(a)&&A.object(n.perAction[r])?o[r].enabled=a:o[r]=a}}},{key:"getRect",value:function(e){return e=e||(A.element(this.target)?this.target:null),A.string(this.target)&&(e=e||this._context.querySelector(this.target)),W(e)}},{key:"rectChecker",value:function(e){var t=this;return A.func(e)?(this.getRect=function(n){var i=H({},e.apply(t,n));return"width"in i||(i.width=i.right-i.left,i.height=i.bottom-i.top),i},this):null===e?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(e,t){if(U(t)||A.object(t)){for(var n in this.options[e]=t,this._actions.map)this.options[n][e]=t;return this}return this.options[e]}},{key:"origin",value:function(e){return this._backCompatOption("origin",e)}},{key:"deltaSource",value:function(e){return"page"===e||"client"===e?(this.options.deltaSource=e,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var e=this.target;return A.string(e)?Array.from(this._context.querySelectorAll(e)):A.func(e)&&e.getAllElements?e.getAllElements():A.element(e)?[e]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(e){return this._context===e.ownerDocument||N(this._context,e)}},{key:"testIgnoreAllow",value:function(e,t,n){return!this.testIgnore(e.ignoreFrom,t,n)&&this.testAllow(e.allowFrom,t,n)}},{key:"testAllow",value:function(e,t,n){return!e||!!A.element(n)&&(A.string(e)?z(n,e,t):!!A.element(e)&&N(e,n))}},{key:"testIgnore",value:function(e,t,n){return!(!e||!A.element(n))&&(A.string(e)?z(n,e,t):!!A.element(e)&&N(e,n))}},{key:"fire",value:function(e){return this.events.fire(e),this}},{key:"_onOff",value:function(e,t,n,i,r){A.object(t)&&!A.array(t)&&(i=n,n=null);var o=X(t,n,r);for(var a in o){"wheel"===a&&(a=D.wheelEvent);for(var s=0,l=o[a];s<l.length;s++){var c=l[s];vt(a,this._actions)?this.events[e===an.On?"on":"off"](a,c):A.string(this.target)?this._scopeEvents[e===an.On?"addDelegate":"removeDelegate"](this.target,this._context,a,c,i):this._scopeEvents[e===an.On?"add":"remove"](this.target,a,c,i)}}return this}},{key:"on",value:function(e,t,n){return this._onOff(an.On,e,t,n)}},{key:"off",value:function(e,t,n){return this._onOff(an.Off,e,t,n)}},{key:"set",value:function(e){var t=this._defaults;for(var n in A.object(e)||(e={}),this.options=yt(t.base),this._actions.methodDict){var i=n,r=this._actions.methodDict[i];this.options[i]={},this.setPerAction(i,H(H({},t.perAction),t.actions[i])),this[r](e[i])}for(var o in e)"getRect"!==o?A.func(this[o])&&this[o](e[o]):this.rectChecker(e.getRect);return this}},{key:"unset",value:function(){if(A.string(this.target))for(var e in this._scopeEvents.delegatedEvents)for(var t=this._scopeEvents.delegatedEvents[e],n=t.length-1;n>=0;n--){var i=t[n],r=i.selector,o=i.context,a=i.listeners;r===this.target&&o===this._context&&t.splice(n,1);for(var s=a.length-1;s>=0;s--)this._scopeEvents.removeDelegate(this.target,this._context,e,a[s][0],a[s][1])}else this._scopeEvents.remove(this.target,"all")}}]),e}(),ln=function(){function e(t){var n=this;r(this,e),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=t,t.addListeners({"interactable:unset":function(e){var t=e.interactable,i=t.target,r=A.string(i)?n.selectorMap[i]:i[n.scope.id],o=ye(r,(function(e){return e===t}));r.splice(o,1)}})}return a(e,[{key:"new",value:function(e,t){t=H(t||{},{actions:this.scope.actions});var n=new this.scope.Interactable(e,t,this.scope.document,this.scope.events);return this.scope.addDocument(n._doc),this.list.push(n),A.string(e)?(this.selectorMap[e]||(this.selectorMap[e]=[]),this.selectorMap[e].push(n)):(n.target[this.scope.id]||Object.defineProperty(e,this.scope.id,{value:[],configurable:!0}),e[this.scope.id].push(n)),this.scope.fire("interactable:new",{target:e,options:t,interactable:n,win:this.scope._win}),n}},{key:"getExisting",value:function(e,t){var n=t&&t.context||this.scope.document,i=A.string(e),r=i?this.selectorMap[e]:e[this.scope.id];if(r)return be(r,(function(t){return t._context===n&&(i||t.inContext(e))}))}},{key:"forEachMatch",value:function(e,t){for(var n=0,i=this.list;n<i.length;n++){var r=i[n],o=void 0;if((A.string(r.target)?A.element(e)&&E(e,r.target):e===r.target)&&r.inContext(e)&&(o=t(r)),void 0!==o)return o}}}]),e}(),cn=function(){function e(){var t=this;r(this,e),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=D,this.defaults=yt(kt),this.Eventable=Vt,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(e){var t=function t(n,i){var r=e.interactables.getExisting(n,i);return r||((r=e.interactables.new(n,i)).events.global=t.globalEvents),r};return t.getPointerAverage=ce,t.getTouchBBox=ue,t.getTouchDistance=de,t.getTouchAngle=he,t.getElementRect=W,t.getElementClientRect=B,t.matchesSelector=E,t.closest=O,t.globalEvents={},t.version="1.10.26",t.scope=e,t.use=function(e,t){return this.scope.usePlugin(e,t),this},t.isSet=function(e,t){return!!this.scope.interactables.get(e,t&&t.context)},t.on=Qe((function(e,t,n){if(A.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),A.array(e)){for(var i=0,r=e;i<r.length;i++){var o=r[i];this.on(o,t,n)}return this}if(A.object(e)){for(var a in e)this.on(a,e[a],t);return this}return vt(e,this.scope.actions)?this.globalEvents[e]?this.globalEvents[e].push(t):this.globalEvents[e]=[t]:this.scope.events.add(this.scope.document,e,t,{options:n}),this}),"The interact.on() method is being deprecated"),t.off=Qe((function(e,t,n){if(A.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),A.array(e)){for(var i=0,r=e;i<r.length;i++){var o=r[i];this.off(o,t,n)}return this}if(A.object(e)){for(var a in e)this.off(a,e[a],t);return this}var s;return vt(e,this.scope.actions)?e in this.globalEvents&&-1!==(s=this.globalEvents[e].indexOf(t))&&this.globalEvents[e].splice(s,1):this.scope.events.remove(this.scope.document,e,t,n),this}),"The interact.off() method is being deprecated"),t.debug=function(){return this.scope},t.supportsTouch=function(){return D.supportsTouch},t.supportsPointerEvent=function(){return D.supportsPointerEvent},t.stop=function(){for(var e=0,t=this.scope.interactions.list;e<t.length;e++)t[e].stop();return this},t.pointerMoveTolerance=function(e){return A.number(e)?(this.scope.interactions.pointerMoveTolerance=e,this):this.scope.interactions.pointerMoveTolerance},t.addDocument=function(e,t){this.scope.addDocument(e,t)},t.removeDocument=function(e){this.scope.removeDocument(e)},t}(this),this.InteractEvent=Mt,this.Interactable=void 0,this.interactables=new ln(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(e){return t.removeDocument(e.target)};var n=this;this.Interactable=function(e){l(i,e);var t=h(i);function i(){return r(this,i),t.apply(this,arguments)}return a(i,[{key:"_defaults",get:function(){return n.defaults}},{key:"set",value:function(e){return f(c(i.prototype),"set",this).call(this,e),n.fire("interactable:set",{options:e,interactable:this}),this}},{key:"unset",value:function(){f(c(i.prototype),"unset",this).call(this);var e=n.interactables.list.indexOf(this);e<0||(n.interactables.list.splice(e,1),n.fire("interactable:unset",{interactable:this}))}}]),i}(sn)}return a(e,[{key:"addListeners",value:function(e,t){this.listenerMaps.push({id:t,map:e})}},{key:"fire",value:function(e,t){for(var n=0,i=this.listenerMaps;n<i.length;n++){var r=i[n].map[e];if(r&&!1===r(t,this,e))return!1}}},{key:"init",value:function(e){return this.isInitialized?this:function(e,t){return e.isInitialized=!0,A.window(t)&&y(t),L.init(t),D.init(t),Ye(t),e.window=t,e.document=t.document,e.usePlugin(on),e.usePlugin(Jt),e}(this,e)}},{key:"pluginIsInstalled",value:function(e){var t=e.id;return t?!!this._plugins.map[t]:-1!==this._plugins.list.indexOf(e)}},{key:"usePlugin",value:function(e,t){if(!this.isInitialized)return this;if(this.pluginIsInstalled(e))return this;if(e.id&&(this._plugins.map[e.id]=e),this._plugins.list.push(e),e.install&&e.install(this,t),e.listeners&&e.before){for(var n=0,i=this.listenerMaps.length,r=e.before.reduce((function(e,t){return e[t]=!0,e[un(t)]=!0,e}),{});n<i;n++){var o=this.listenerMaps[n].id;if(o&&(r[o]||r[un(o)]))break}this.listenerMaps.splice(n,0,{id:e.id,map:e.listeners})}else e.listeners&&this.listenerMaps.push({id:e.id,map:e.listeners});return this}},{key:"addDocument",value:function(e,t){if(-1!==this.getDocIndex(e))return!1;var n=b(e);t=t?H({},t):{},this.documents.push({doc:e,options:t}),this.events.documents.push(e),e!==this.document&&this.events.add(n,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:e,window:n,scope:this,options:t})}},{key:"removeDocument",value:function(e){var t=this.getDocIndex(e),n=b(e),i=this.documents[t].options;this.events.remove(n,"unload",this.onWindowUnload),this.documents.splice(t,1),this.events.documents.splice(t,1),this.fire("scope:remove-document",{doc:e,window:n,scope:this,options:i})}},{key:"getDocIndex",value:function(e){for(var t=0;t<this.documents.length;t++)if(this.documents[t].doc===e)return t;return-1}},{key:"getDocOptions",value:function(e){var t=this.getDocIndex(e);return-1===t?null:this.documents[t].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),e}();function un(e){return e&&e.replace(/\/.*$/,"")}var dn=new cn,hn=dn.interactStatic,fn="undefined"!=typeof globalThis?globalThis:window;dn.init(fn);var pn=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(e){var t=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(t){var n=t[0],i=t[1];return n in e||i in e})),n=function(n,i){for(var r=e.range,o=e.limits,a=void 0===o?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:o,s=e.offset,l=void 0===s?{x:0,y:0}:s,c={range:r,grid:e,x:null,y:null},u=0;u<t.length;u++){var d=t[u],h=d[0],f=d[1],p=Math.round((n-l.x)/e[h]),g=Math.round((i-l.y)/e[f]);c[h]=Math.max(a.left,Math.min(a.right,p*e[h]+l.x)),c[f]=Math.max(a.top,Math.min(a.bottom,g*e[f]+l.y))}return c};return n.grid=e,n.coordFields=t,n}}),gn={id:"snappers",install:function(e){var t=e.interactStatic;t.snappers=H(t.snappers||{},pn),t.createSnapGrid=t.snappers.grid}},mn=gn,vn={start:function(e){var t=e.state,i=e.rect,r=e.edges,o=e.pageCoords,a=t.options,s=a.ratio,l=a.enabled,c=t.options,u=c.equalDelta,d=c.modifiers;"preserve"===s&&(s=i.width/i.height),t.startCoords=H({},o),t.startRect=H({},i),t.ratio=s,t.equalDelta=u;var h=t.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(t.xIsPrimaryAxis=!(!r.left&&!r.right),t.equalDelta){var f=(h.left?1:-1)*(h.top?1:-1);t.edgeSign={x:f,y:f}}else t.edgeSign={x:h.left?-1:1,y:h.top?-1:1};if(!1!==l&&H(r,h),null!=d&&d.length){var p=new bt(e.interaction);p.copyFrom(e.interaction.modification),p.prepareStates(d),t.subModification=p,p.startAll(n({},e))}},set:function(e){var t=e.state,i=e.rect,r=e.coords,o=t.linkedEdges,a=H({},r),s=t.equalDelta?yn:bn;if(H(e.edges,o),s(t,t.xIsPrimaryAxis,r,i),!t.subModification)return null;var l=H({},i);J(o,l,{x:r.x-a.x,y:r.y-a.y});var c=t.subModification.setAll(n(n({},e),{},{rect:l,edges:o,pageCoords:r,prevCoords:r,prevRect:l})),u=c.delta;return c.changed&&(s(t,Math.abs(u.x)>Math.abs(u.y),c.coords,c.rect),H(r,c.coords)),c.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function yn(e,t,n){var i=e.startCoords,r=e.edgeSign;t?n.y=i.y+(n.x-i.x)*r.y:n.x=i.x+(n.y-i.y)*r.x}function bn(e,t,n,i){var r=e.startRect,o=e.startCoords,a=e.ratio,s=e.edgeSign;if(t){var l=i.width/a;n.y=o.y+(l-r.height)*s.y}else{var c=i.height*a;n.x=o.x+(c-r.width)*s.x}}var xn=wt(vn,"aspectRatio"),wn=function(){};wn._defaults={};var An=wn;function Cn(e,t,n){return A.func(e)?Z(e,t.interactable,t.element,[n.x,n.y,t]):Z(e,t.interactable,t.element)}var _n={start:function(e){var t=e.rect,n=e.startOffset,i=e.state,r=e.interaction,o=e.pageCoords,a=i.options,s=a.elementRect,l=H({left:0,top:0,right:0,bottom:0},a.offset||{});if(t&&s){var c=Cn(a.restriction,r,o);if(c){var u=c.right-c.left-t.width,d=c.bottom-c.top-t.height;u<0&&(l.left+=u,l.right+=u),d<0&&(l.top+=d,l.bottom+=d)}l.left+=n.left-t.width*s.left,l.top+=n.top-t.height*s.top,l.right+=n.right-t.width*(1-s.right),l.bottom+=n.bottom-t.height*(1-s.bottom)}i.offset=l},set:function(e){var t=e.coords,n=e.interaction,i=e.state,r=i.options,o=i.offset,a=Cn(r.restriction,n,t);if(a){var s=function(e){return!e||"left"in e&&"top"in e||((e=H({},e)).left=e.x||0,e.top=e.y||0,e.right=e.right||e.left+e.width,e.bottom=e.bottom||e.top+e.height),e}(a);t.x=Math.max(Math.min(s.right-o.right,t.x),s.left+o.left),t.y=Math.max(Math.min(s.bottom-o.bottom,t.y),s.top+o.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},kn=wt(_n,"restrict"),Mn={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Sn={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function In(e,t){for(var n=0,i=["top","left","bottom","right"];n<i.length;n++){var r=i[n];r in e||(e[r]=t[r])}return e}var Ln={noInner:Mn,noOuter:Sn,start:function(e){var t,n=e.interaction,i=e.startOffset,r=e.state,o=r.options;o&&(t=G(Cn(o.offset,n,n.coords.start.page))),t=t||{x:0,y:0},r.offset={top:t.y+i.top,left:t.x+i.left,bottom:t.y-i.bottom,right:t.x-i.right}},set:function(e){var t=e.coords,n=e.edges,i=e.interaction,r=e.state,o=r.offset,a=r.options;if(n){var s=H({},t),l=Cn(a.inner,i,s)||{},c=Cn(a.outer,i,s)||{};In(l,Mn),In(c,Sn),n.top?t.y=Math.min(Math.max(c.top+o.top,s.y),l.top+o.top):n.bottom&&(t.y=Math.max(Math.min(c.bottom+o.bottom,s.y),l.bottom+o.bottom)),n.left?t.x=Math.min(Math.max(c.left+o.left,s.x),l.left+o.left):n.right&&(t.x=Math.max(Math.min(c.right+o.right,s.x),l.right+o.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Tn=wt(Ln,"restrictEdges"),Dn=H({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(e){}},_n.defaults),Nn=wt({start:_n.start,set:_n.set,defaults:Dn},"restrictRect"),On={width:-1/0,height:-1/0},jn={width:1/0,height:1/0},En=wt({start:function(e){return Ln.start(e)},set:function(e){var t=e.interaction,n=e.state,i=e.rect,r=e.edges,o=n.options;if(r){var a=Q(Cn(o.min,t,e.coords))||On,s=Q(Cn(o.max,t,e.coords))||jn;n.options={endOnly:o.endOnly,inner:H({},Ln.noInner),outer:H({},Ln.noOuter)},r.top?(n.options.inner.top=i.bottom-a.height,n.options.outer.top=i.bottom-s.height):r.bottom&&(n.options.inner.bottom=i.top+a.height,n.options.outer.bottom=i.top+s.height),r.left?(n.options.inner.left=i.right-a.width,n.options.outer.left=i.right-s.width):r.right&&(n.options.inner.right=i.left+a.width,n.options.outer.right=i.left+s.width),Ln.set(e),n.options=o}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Fn={start:function(e){var t,n=e.interaction,i=e.interactable,r=e.element,o=e.rect,a=e.state,s=e.startOffset,l=a.options,c=l.offsetWithOrigin?function(e){var t=e.interaction.element;return G(Z(e.state.options.origin,null,null,[t]))||q(e.interactable,t,e.interaction.prepared.name)}(e):{x:0,y:0};if("startCoords"===l.offset)t={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var u=Z(l.offset,i,r,[n]);(t=G(u)||{x:0,y:0}).x+=c.x,t.y+=c.y}var d=l.relativePoints;a.offsets=o&&d&&d.length?d.map((function(e,n){return{index:n,relativePoint:e,x:s.left-o.width*e.x+t.x,y:s.top-o.height*e.y+t.y}})):[{index:0,relativePoint:null,x:t.x,y:t.y}]},set:function(e){var t=e.interaction,n=e.coords,i=e.state,r=i.options,o=i.offsets,a=q(t.interactable,t.element,t.prepared.name),s=H({},n),l=[];r.offsetWithOrigin||(s.x-=a.x,s.y-=a.y);for(var c=0,u=o;c<u.length;c++)for(var d=u[c],h=s.x-d.x,f=s.y-d.y,p=0,g=r.targets.length;p<g;p++){var m,v=r.targets[p];(m=A.func(v)?v(h,f,t._proxy,d,p):v)&&l.push({x:(A.number(m.x)?m.x:h)+d.x,y:(A.number(m.y)?m.y:f)+d.y,range:A.number(m.range)?m.range:r.range,source:v,index:p,offset:d})}for(var y={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<l.length;b++){var x=l[b],w=x.range,C=x.x-s.x,_=x.y-s.y,k=$(C,_),M=k<=w;w===1/0&&y.inRange&&y.range!==1/0&&(M=!1),y.target&&!(M?y.inRange&&w!==1/0?k/w<y.distance/y.range:w===1/0&&y.range!==1/0||k<y.distance:!y.inRange&&k<y.distance)||(y.target=x,y.distance=k,y.range=w,y.inRange=M,y.delta.x=C,y.delta.y=_)}return y.inRange&&(n.x=y.target.x,n.y=y.target.y),i.closest=y,y},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Pn=wt(Fn,"snap"),zn={start:function(e){var t=e.state,n=e.edges,i=t.options;if(!n)return null;e.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:i.offset||"self",origin:{x:0,y:0},range:i.range}},t.targetFields=t.targetFields||[["width","height"],["x","y"]],Fn.start(e),t.offsets=e.state.offsets,e.state=t},set:function(e){var t=e.interaction,n=e.state,i=e.coords,r=n.options,o=n.offsets,a={x:i.x-o[0].x,y:i.y-o[0].y};n.options=H({},r),n.options.targets=[];for(var s=0,l=r.targets||[];s<l.length;s++){var c=l[s],u=void 0;if(u=A.func(c)?c(a.x,a.y,t):c){for(var d=0,h=n.targetFields;d<h.length;d++){var f=h[d],p=f[0],g=f[1];if(p in u||g in u){u.x=u[p],u.y=u[g];break}}n.options.targets.push(u)}}var m=Fn.set(e);return n.options=r,m},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Rn=wt(zn,"snapSize"),Bn={aspectRatio:xn,restrictEdges:Tn,restrict:kn,restrictRect:Nn,restrictSize:En,snapEdges:wt({start:function(e){var t=e.edges;return t?(e.state.targetFields=e.state.targetFields||[[t.left?"left":"right",t.top?"top":"bottom"]],zn.start(e)):null},set:zn.set,defaults:H(yt(zn.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Pn,snapSize:Rn,spring:An,avoid:An,transform:An,rubberband:An},Wn={id:"modifiers",install:function(e){var t=e.interactStatic;for(var n in e.usePlugin(_t),e.usePlugin(mn),t.modifiers=Bn,Bn){var i=Bn[n],r=i._defaults,o=i._methods;r._methods=o,e.defaults.perAction[n]=r}}},Yn=Wn,Un=function(e){l(n,e);var t=h(n);function n(e,i,o,a,s,l){var c;if(r(this,n),te(d(c=t.call(this,s)),o),o!==i&&te(d(c),i),c.timeStamp=l,c.originalEvent=o,c.type=e,c.pointerId=se(i),c.pointerType=fe(i),c.target=a,c.currentTarget=null,"tap"===e){var u=s.getPointerIndex(i);c.dt=c.timeStamp-s.pointers[u].downTime;var h=c.timeStamp-s.tapTime;c.double=!!s.prevTap&&"doubletap"!==s.prevTap.type&&s.prevTap.target===c.target&&h<500}else"doubletap"===e&&(c.dt=i.timeStamp-s.tapTime,c.double=!0);return c}return a(n,[{key:"_subtractOrigin",value:function(e){var t=e.x,n=e.y;return this.pageX-=t,this.pageY-=n,this.clientX-=t,this.clientY-=n,this}},{key:"_addOrigin",value:function(e){var t=e.x,n=e.y;return this.pageX+=t,this.pageY+=n,this.clientX+=t,this.clientY+=n,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),n}(ge),Hn={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(e){e.pointerEvents=Hn,e.defaults.actions.pointerEvents=Hn.defaults,H(e.actions.phaselessTypes,Hn.types)},listeners:{"interactions:new":function(e){var t=e.interaction;t.prevTap=null,t.tapTime=0},"interactions:update-pointer":function(e){var t=e.down,n=e.pointerInfo;!t&&n.hold||(n.hold={duration:1/0,timeout:null})},"interactions:move":function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;e.duplicate||n.pointerIsDown&&!n.pointerWasMoved||(n.pointerIsDown&&Gn(e),Vn({interaction:n,pointer:i,event:r,eventTarget:o,type:"move"},t))},"interactions:down":function(e,t){!function(e,t){for(var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget,a=e.pointerIndex,s=n.pointers[a].hold,l=Y(o),c={interaction:n,pointer:i,event:r,eventTarget:o,type:"hold",targets:[],path:l,node:null},u=0;u<l.length;u++){var d=l[u];c.node=d,t.fire("pointerEvents:collect-targets",c)}if(c.targets.length){for(var h=1/0,f=0,p=c.targets;f<p.length;f++){var g=p[f].eventable.options.holdDuration;g<h&&(h=g)}s.duration=h,s.timeout=setTimeout((function(){Vn({interaction:n,eventTarget:o,pointer:i,event:r,type:"hold"},t)}),h)}}(e,t),Vn(e,t)},"interactions:up":function(e,t){Gn(e),Vn(e,t),function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;n.pointerWasMoved||Vn({interaction:n,eventTarget:o,pointer:i,event:r,type:"tap"},t)}(e,t)},"interactions:cancel":function(e,t){Gn(e),Vn(e,t)}},PointerEvent:Un,fire:Vn,collectEventTargets:Zn,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function Vn(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget,a=e.type,s=e.targets,l=void 0===s?Zn(e,t):s,c=new Un(a,i,r,o,n,t.now());t.fire("pointerEvents:new",{pointerEvent:c});for(var u={interaction:n,pointer:i,event:r,eventTarget:o,targets:l,type:a,pointerEvent:c},d=0;d<l.length;d++){var h=l[d];for(var f in h.props||{})c[f]=h.props[f];var p=q(h.eventable,h.node);if(c._subtractOrigin(p),c.eventable=h.eventable,c.currentTarget=h.node,h.eventable.fire(c),c._addOrigin(p),c.immediatePropagationStopped||c.propagationStopped&&d+1<l.length&&l[d+1].node!==c.currentTarget)break}if(t.fire("pointerEvents:fired",u),"tap"===a){var g=c.double?Vn({interaction:n,pointer:i,event:r,eventTarget:o,type:"doubletap"},t):c;n.prevTap=g,n.tapTime=g.timeStamp}return c}function Zn(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget,a=e.type,s=n.getPointerIndex(i),l=n.pointers[s];if("tap"===a&&(n.pointerWasMoved||!l||l.downTarget!==o))return[];for(var c=Y(o),u={interaction:n,pointer:i,event:r,eventTarget:o,type:a,path:c,targets:[],node:null},d=0;d<c.length;d++){var h=c[d];u.node=h,t.fire("pointerEvents:collect-targets",u)}return"hold"===a&&(u.targets=u.targets.filter((function(e){var t,i;return e.eventable.options.holdDuration===(null==(t=n.pointers[s])||null==(i=t.hold)?void 0:i.duration)}))),u.targets}function Gn(e){var t=e.interaction,n=e.pointerIndex,i=t.pointers[n].hold;i&&i.timeout&&(clearTimeout(i.timeout),i.timeout=null)}var Qn=Object.freeze({__proto__:null,default:Hn});function Jn(e){var t=e.interaction;t.holdIntervalHandle&&(clearInterval(t.holdIntervalHandle),t.holdIntervalHandle=null)}var qn={id:"pointer-events/holdRepeat",install:function(e){e.usePlugin(Hn);var t=e.pointerEvents;t.defaults.holdRepeatInterval=0,t.types.holdrepeat=e.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(e,t){return e["pointerEvents:".concat(t)]=Jn,e}),{"pointerEvents:new":function(e){var t=e.pointerEvent;"hold"===t.type&&(t.count=(t.count||0)+1)},"pointerEvents:fired":function(e,t){var n=e.interaction,i=e.pointerEvent,r=e.eventTarget,o=e.targets;if("hold"===i.type&&o.length){var a=o[0].eventable.options.holdRepeatInterval;a<=0||(n.holdIntervalHandle=setTimeout((function(){t.pointerEvents.fire({interaction:n,eventTarget:r,type:"hold",pointer:i,event:i},t)}),a))}}})},Xn=qn,Kn={id:"pointer-events/interactableTargets",install:function(e){var t=e.Interactable;t.prototype.pointerEvents=function(e){return H(this.events.options,e),this};var n=t.prototype._backCompatOption;t.prototype._backCompatOption=function(e,t){var i=n.call(this,e,t);return i===this&&(this.events.options[e]=t),i}},listeners:{"pointerEvents:collect-targets":function(e,t){var n=e.targets,i=e.node,r=e.type,o=e.eventTarget;t.interactables.forEachMatch(i,(function(e){var t=e.events,a=t.options;t.types[r]&&t.types[r].length&&e.testIgnoreAllow(a,i,o)&&n.push({node:i,eventable:t,props:{interactable:e}})}))},"interactable:new":function(e){var t=e.interactable;t.events.getRect=function(e){return t.getRect(e)}},"interactable:set":function(e,t){var n=e.interactable,i=e.options;H(n.events.options,t.pointerEvents.defaults),H(n.events.options,i.pointerEvents||{})}}},$n=Kn,ei={id:"pointer-events",install:function(e){e.usePlugin(Qn),e.usePlugin(Xn),e.usePlugin($n)}},ti=ei,ni={id:"reflow",install:function(e){var t=e.Interactable;e.actions.phases.reflow=!0,t.prototype.reflow=function(t){return function(e,t,n){for(var i=e.getAllElements(),r=n.window.Promise,o=r?[]:null,a=function(){var a=i[s],l=e.getRect(a);if(!l)return 1;var c,u=be(n.interactions.list,(function(n){return n.interacting()&&n.interactable===e&&n.element===a&&n.prepared.name===t.name}));if(u)u.move(),o&&(c=u._reflowPromise||new r((function(e){u._reflowResolve=e})));else{var d=Q(l),h=function(e){return{coords:e,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:d.x,y:d.y},client:{x:d.x,y:d.y},timeStamp:n.now()});c=function(e,t,n,i,r){var o=e.interactions.new({pointerType:"reflow"}),a={interaction:o,event:r,pointer:r,eventTarget:n,phase:"reflow"};o.interactable=t,o.element=n,o.prevEvent=r,o.updatePointer(r,r,n,!0),ie(o.coords.delta),Je(o.prepared,i),o._doPhase(a);var s=e.window.Promise,l=s?new s((function(e){o._reflowResolve=e})):void 0;return o._reflowPromise=l,o.start(i,t,n),o._interacting?(o.move(a),o.end(r)):(o.stop(),o._reflowResolve()),o.removePointer(r,r),l}(n,e,a,t,h)}o&&o.push(c)},s=0;s<i.length&&!a();s++);return o&&r.all(o).then((function(){return e}))}(this,t,e)}},listeners:{"interactions:stop":function(e,t){var n=e.interaction;"reflow"===n.pointerType&&(n._reflowResolve&&n._reflowResolve(),function(e,t){e.splice(e.indexOf(t),1)}(t.interactions.list,n))}}},ii=ni;if(hn.use(mt),hn.use(Pt),hn.use(ti),hn.use(Ut),hn.use(Yn),hn.use(ft),hn.use(ze),hn.use(Ge),hn.use(ii),hn.default=hn,"object"===i(e)&&e)try{e.exports=hn}catch(t){}return hn.default=hn,hn}()},194:(e,t)=>{"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},i={tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",optionsAttr:"i18n-options",useOptionsAttr:!1,parseDefaultValueFromContent:!0};t.default={init:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function o(t,i,o){if(0!==i.length){var a="text";if(0===i.indexOf("[")){var s=i.split("]");i=s[1],a=s[0].substr(1,s[0].length-1)}if(i.indexOf(";")===i.length-1&&(i=i.substr(0,i.length-2)),"html"===a)t.html(e.t(i,u(o,t.html())));else if("text"===a)t.text(e.t(i,u(o,t.text())));else if("prepend"===a)t.prepend(e.t(i,u(o,t.html())));else if("append"===a)t.append(e.t(i,u(o,t.html())));else if(0===a.indexOf("data-")){var l=a.substr(5),c=e.t(i,u(o,t.data(l)));t.data(l,c),t.attr(a,c)}else t.attr(a,e.t(i,u(o,t.attr(a))))}function u(e,t){return r.parseDefaultValueFromContent?n({},e,{defaultValue:t}):e}}function a(e,i){var a=e.attr(r.selectorAttr);if(a||void 0===a||!1===a||(a=e.text()||e.val()),a){var s=e,l=e.data(r.targetAttr);if(l&&(s=e.find(l)||e),i||!0!==r.useOptionsAttr||(i=e.data(r.optionsAttr)),i=i||{},a.indexOf(";")>=0){var c=a.split(";");t.each(c,(function(e,t){""!==t&&o(s,t.trim(),i)}))}else o(s,a,i);if(!0===r.useOptionsAttr){var u={};delete(u=n({clone:u},i)).lng,e.data(r.optionsAttr,u)}}}r=n({},i,r),t[r.tName]=e.t.bind(e),t[r.i18nName]=e,t.fn[r.handleName]=function(e){return this.each((function(){a(t(this),e),t(this).find("["+r.selectorAttr+"]").each((function(){a(t(this),e)}))}))}}}},790:(e,t,n)=>{e.exports=n(194).default},651:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},c=o.push,u=o.indexOf,d={},h=d.toString,f=d.hasOwnProperty,p=f.toString,g=p.call(Object),m={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=i.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var i,r,o=(n=n||b).createElement("script");if(o.text=e,t)for(i in x)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function A(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var C="3.7.1",_=/HTML$/i,k=function(e,t){return new k.fn.init(e,t)};function M(e){var t=!!e&&"length"in e&&e.length,n=A(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}k.fn=k.prototype={jquery:C,constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},k.extend=k.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)i=e[t],"__proto__"!==t&&a!==i&&(c&&i&&(k.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[t],o=r&&!Array.isArray(n)?[]:r||k.isPlainObject(n)?n:{},r=!1,a[t]=k.extend(c,o,i)):void 0!==i&&(a[t]=i));return a},k.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e)||(t=a(e))&&("function"!=typeof(n=f.call(t,"constructor")&&t.constructor)||p.call(n)!==g))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(M(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,r=e.nodeType;if(!r)for(;t=e[i++];)n+=k.text(t);return 1===r||11===r?e.textContent:9===r?e.documentElement.textContent:3===r||4===r?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?k.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!_.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,a=!n;r<o;r++)!t(e[r],r)!==a&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,a=[];if(M(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&a.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&a.push(r);return l(a)},guid:1,support:m}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=o[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var I=o.pop,L=o.sort,T=o.splice,D="[\\x20\\t\\r\\n\\f]",N=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");k.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var O=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function j(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}k.escapeSelector=function(e){return(e+"").replace(O,j)};var E=b,F=c;!function(){var e,t,n,r,a,l,c,d,h,p,g=F,v=k.expando,y=0,b=0,x=ee(),w=ee(),A=ee(),C=ee(),_=function(e,t){return e===t&&(a=!0),0},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",j="\\["+D+"*("+O+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+D+"*\\]",P=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",z=new RegExp(D+"+","g"),R=new RegExp("^"+D+"*,"+D+"*"),B=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),W=new RegExp(D+"|>"),Y=new RegExp(P),U=new RegExp("^"+O+"$"),H={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,J=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),q=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},X=function(){le()},K=he((function(e){return!0===e.disabled&&S(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(o=s.call(E.childNodes),E.childNodes),o[E.childNodes.length].nodeType}catch(e){g={apply:function(e,t){F.apply(e,s.call(t))},call:function(e){F.apply(e,s.call(arguments,1))}}}function $(e,t,n,i){var r,o,a,s,c,u,f,p=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!i&&(le(t),t=t||l,d)){if(11!==y&&(c=G.exec(e)))if(r=c[1]){if(9===y){if(!(a=t.getElementById(r)))return n;if(a.id===r)return g.call(n,a),n}else if(p&&(a=p.getElementById(r))&&$.contains(t,a)&&a.id===r)return g.call(n,a),n}else{if(c[2])return g.apply(n,t.getElementsByTagName(e)),n;if((r=c[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(r)),n}if(!(C[e+" "]||h&&h.test(e))){if(f=e,p=t,1===y&&(W.test(e)||B.test(e))){for((p=Q.test(e)&&se(t.parentNode)||t)==t&&m.scope||((s=t.getAttribute("id"))?s=k.escapeSelector(s):t.setAttribute("id",s=v)),o=(u=ue(e)).length;o--;)u[o]=(s?"#"+s:":scope")+" "+de(u[o]);f=u.join(",")}try{return g.apply(n,p.querySelectorAll(f)),n}catch(t){C(e,!0)}finally{s===v&&t.removeAttribute("id")}}}return ye(e.replace(N,"$1"),t,n,i)}function ee(){var e=[];return function n(i,r){return e.push(i+" ")>t.cacheLength&&delete n[e.shift()],n[i+" "]=r}}function te(e){return e[v]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ie(e){return function(t){return S(t,"input")&&t.type===e}}function re(e){return function(t){return(S(t,"input")||S(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&K(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,i=e?e.ownerDocument||e:E;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,d=!k.isXMLDoc(l),p=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&E!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",X),m.getById=ne((function(e){return c.appendChild(e).id=k.expando,!l.getElementsByName||!l.getElementsByName(k.expando).length})),m.disconnectedMatch=ne((function(e){return p.call(e,"*")})),m.scope=ne((function(){return l.querySelectorAll(":scope")})),m.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),m.getById?(t.filter.ID=function(e){var t=e.replace(J,q);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(J,q);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},h=[],ne((function(e){var t;c.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+D+"*(?:value|"+M+")"),e.querySelectorAll("[id~="+v+"-]").length||h.push("~="),e.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")})),m.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),_=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==E&&$.contains(E,e)?-1:t===l||t.ownerDocument==E&&$.contains(E,t)?1:r?u.call(r,e)-u.call(r,t):0:4&n?-1:1)},l):l}for(e in $.matches=function(e,t){return $(e,null,null,t)},$.matchesSelector=function(e,t){if(le(e),d&&!C[t+" "]&&(!h||!h.test(t)))try{var n=p.call(e,t);if(n||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){C(t,!0)}return $(t,l,null,[e]).length>0},$.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),k.contains(e,t)},$.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var i=t.attrHandle[n.toLowerCase()],r=i&&f.call(t.attrHandle,n.toLowerCase())?i(e,n,!d):void 0;return void 0!==r?r:e.getAttribute(n)},$.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},k.uniqueSort=function(e){var t,n=[],i=0,o=0;if(a=!m.sortStable,r=!m.sortStable&&s.call(e,0),L.call(e,_),a){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)T.call(e,n[i],1)}return r=null,e},k.fn.uniqueSort=function(){return this.pushStack(k.uniqueSort(s.apply(this)))},t=k.expr={cacheLength:50,createPseudo:te,match:H,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(J,q),e[3]=(e[3]||e[4]||e[5]||"").replace(J,q),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||$.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&$.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return H.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Y.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(J,q).toLowerCase();return"*"===e?function(){return!0}:function(e){return S(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&x(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=$.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(z," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,f,p=o!==a?"nextSibling":"previousSibling",g=t.parentNode,m=s&&t.nodeName.toLowerCase(),b=!l&&!s,x=!1;if(g){if(o){for(;p;){for(d=t;d=d[p];)if(s?S(d,m):1===d.nodeType)return!1;f=p="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&b){for(x=(h=(c=(u=g[v]||(g[v]={}))[e]||[])[0]===y&&c[1])&&c[2],d=h&&g.childNodes[h];d=++h&&d&&d[p]||(x=h=0)||f.pop();)if(1===d.nodeType&&++x&&d===t){u[e]=[y,h,x];break}}else if(b&&(x=h=(c=(u=t[v]||(t[v]={}))[e]||[])[0]===y&&c[1]),!1===x)for(;(d=++h&&d&&d[p]||(x=h=0)||f.pop())&&(!(s?S(d,m):1===d.nodeType)||!++x||(b&&((u=d[v]||(d[v]={}))[e]=[y,x]),d!==t)););return(x-=r)===i||x%i==0&&x/i>=0}}},PSEUDO:function(e,n){var i,r=t.pseudos[e]||t.setFilters[e.toLowerCase()]||$.error("unsupported pseudo: "+e);return r[v]?r(n):r.length>1?(i=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var i,o=r(e,n),a=o.length;a--;)e[i=u.call(e,o[a])]=!(t[i]=o[a])})):function(e){return r(e,0,i)}):r}},pseudos:{not:te((function(e){var t=[],n=[],i=ve(e.replace(N,"$1"));return i[v]?te((function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return $(e,t).length>0}})),contains:te((function(e){return e=e.replace(J,q),function(t){return(t.textContent||k.text(t)).indexOf(e)>-1}})),lang:te((function(e){return U.test(e||"")||$.error("unsupported lang: "+e),e=e.replace(J,q).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=i.location&&i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return S(e,"input")&&!!e.checked||S(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){return S(e,"input")&&"button"===e.type||S(e,"button")},text:function(e){var t;return S(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,n){return[n<0?n+t:n]})),even:ae((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ae((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ae((function(e,t,n){var i;for(i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:ae((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=ie(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=re(e);function ce(){}function ue(e,n){var i,r,o,a,s,l,c,u=w[e+" "];if(u)return n?0:u.slice(0);for(s=e,l=[],c=t.preFilter;s;){for(a in i&&!(r=R.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=B.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(N," ")}),s=s.slice(i.length)),t.filter)!(r=H[a].exec(s))||c[a]&&!(r=c[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?$.error(e):w(e,l).slice(0)}function de(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function he(e,t,n){var i=t.dir,r=t.next,o=r||i,a=n&&"parentNode"===o,s=b++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||a)return e(t,n,r);return!1}:function(t,n,l){var c,u,d=[y,s];if(l){for(;t=t[i];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||a)if(u=t[v]||(t[v]={}),r&&S(t,r))t=t[i]||t;else{if((c=u[o])&&c[0]===y&&c[1]===s)return d[2]=c[2];if(u[o]=d,d[2]=e(t,n,l))return!0}return!1}}function fe(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function pe(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),c&&t.push(s)));return a}function ge(e,t,n,i,r,o){return i&&!i[v]&&(i=ge(i)),r&&!r[v]&&(r=ge(r,o)),te((function(o,a,s,l){var c,d,h,f,p=[],m=[],v=a.length,y=o||function(e,t,n){for(var i=0,r=t.length;i<r;i++)$(e,t[i],n);return n}(t||"*",s.nodeType?[s]:s,[]),b=!e||!o&&t?y:pe(y,p,e,s,l);if(n?n(b,f=r||(o?e:v||i)?[]:a,s,l):f=b,i)for(c=pe(f,m),i(c,[],s,l),d=c.length;d--;)(h=c[d])&&(f[m[d]]=!(b[m[d]]=h));if(o){if(r||e){if(r){for(c=[],d=f.length;d--;)(h=f[d])&&c.push(b[d]=h);r(null,f=[],c,l)}for(d=f.length;d--;)(h=f[d])&&(c=r?u.call(o,h):p[d])>-1&&(o[c]=!(a[c]=h))}}else f=pe(f===a?f.splice(v,f.length):f),r?r(null,a,f,l):g.apply(a,f)}))}function me(e){for(var i,r,o,a=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,d=he((function(e){return e===i}),l,!0),h=he((function(e){return u.call(i,e)>-1}),l,!0),f=[function(e,t,r){var o=!s&&(r||t!=n)||((i=t).nodeType?d(e,t,r):h(e,t,r));return i=null,o}];c<a;c++)if(r=t.relative[e[c].type])f=[he(fe(f),r)];else{if((r=t.filter[e[c].type].apply(null,e[c].matches))[v]){for(o=++c;o<a&&!t.relative[e[o].type];o++);return ge(c>1&&fe(f),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(N,"$1"),r,c<o&&me(e.slice(c,o)),o<a&&me(e=e.slice(o)),o<a&&de(e))}f.push(r)}return fe(f)}function ve(e,i){var r,o=[],a=[],s=A[e+" "];if(!s){for(i||(i=ue(e)),r=i.length;r--;)(s=me(i[r]))[v]?o.push(s):a.push(s);s=A(e,function(e,i){var r=i.length>0,o=e.length>0,a=function(a,s,c,u,h){var f,p,m,v=0,b="0",x=a&&[],w=[],A=n,C=a||o&&t.find.TAG("*",h),_=y+=null==A?1:Math.random()||.1,M=C.length;for(h&&(n=s==l||s||h);b!==M&&null!=(f=C[b]);b++){if(o&&f){for(p=0,s||f.ownerDocument==l||(le(f),c=!d);m=e[p++];)if(m(f,s||l,c)){g.call(u,f);break}h&&(y=_)}r&&((f=!m&&f)&&v--,a&&x.push(f))}if(v+=b,r&&b!==v){for(p=0;m=i[p++];)m(x,w,s,c);if(a){if(v>0)for(;b--;)x[b]||w[b]||(w[b]=I.call(u));w=pe(w)}g.apply(u,w),h&&!a&&w.length>0&&v+i.length>1&&k.uniqueSort(u)}return h&&(y=_,n=A),x};return r?te(a):a}(a,o)),s.selector=e}return s}function ye(e,n,i,r){var o,a,s,l,c,u="function"==typeof e&&e,h=!r&&ue(e=u.selector||e);if(i=i||[],1===h.length){if((a=h[0]=h[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&d&&t.relative[a[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(J,q),n)||[])[0]))return i;u&&(n=n.parentNode),e=e.slice(a.shift().value.length)}for(o=H.needsContext.test(e)?0:a.length;o--&&(s=a[o],!t.relative[l=s.type]);)if((c=t.find[l])&&(r=c(s.matches[0].replace(J,q),Q.test(a[0].type)&&se(n.parentNode)||n))){if(a.splice(o,1),!(e=r.length&&de(a)))return g.apply(i,r),i;break}}return(u||ve(e,h))(r,n,!d,i,!n||Q.test(e)&&se(n.parentNode)||n),i}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,m.sortStable=v.split("").sort(_).join("")===v,le(),m.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),k.find=$,k.expr[":"]=k.expr.pseudos,k.unique=k.uniqueSort,$.compile=ve,$.select=ye,$.setDocument=le,$.tokenize=ue,$.escape=k.escapeSelector,$.getText=k.text,$.isXML=k.isXMLDoc,$.selectors=k.expr,$.support=k.support,$.uniqueSort=k.uniqueSort}();var P=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&k(e).is(n))break;i.push(e)}return i},z=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},R=k.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function W(e,t,n){return v(t)?k.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?k.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?k.grep(e,(function(e){return u.call(t,e)>-1!==n})):k.filter(t,e,n)}k.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?k.find.matchesSelector(i,e)?[i]:[]:k.find.matches(e,k.grep(t,(function(e){return 1===e.nodeType})))},k.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(k(e).filter((function(){for(t=0;t<i;t++)if(k.contains(r[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)k.find(e,r[t],n);return i>1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(W(this,e||[],!1))},not:function(e){return this.pushStack(W(this,e||[],!0))},is:function(e){return!!W(this,"string"==typeof e&&R.test(e)?k(e):e||[],!1).length}});var Y,U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||Y,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:U.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),B.test(i[1])&&k.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=b.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,Y=k(b);var H=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function Z(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,r=this.length,o=[],a="string"!=typeof e&&k(e);if(!R.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(k(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return P(e,"parentNode")},parentsUntil:function(e,t,n){return P(e,"parentNode",n)},next:function(e){return Z(e,"nextSibling")},prev:function(e){return Z(e,"previousSibling")},nextAll:function(e){return P(e,"nextSibling")},prevAll:function(e){return P(e,"previousSibling")},nextUntil:function(e,t,n){return P(e,"nextSibling",n)},prevUntil:function(e,t,n){return P(e,"previousSibling",n)},siblings:function(e){return z((e.parentNode||{}).firstChild,e)},children:function(e){return z(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},(function(e,t){k.fn[e]=function(n,i){var r=k.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=k.filter(i,r)),this.length>1&&(V[e]||k.uniqueSort(r),H.test(e)&&r.reverse()),this.pushStack(r)}}));var G=/[^\x20\t\r\n\f]+/g;function Q(e){return e}function J(e){throw e}function q(e,t,n,i){var r;try{e&&v(r=e.promise)?r.call(e).done(t).fail(n):e&&v(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(G)||[],(function(e,n){t[n]=!0})),t}(e):k.extend({},e);var t,n,i,r,o=[],a=[],s=-1,l=function(){for(r=r||e.once,i=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,r&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){k.each(n,(function(n,i){v(i)?e.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==A(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return k.each(arguments,(function(e,t){for(var n;(n=k.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?k.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||t||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return k.Deferred((function(n){k.each(t,(function(t,i){var r=v(e[i[4]])&&e[i[4]];o[i[1]]((function(){var e=r&&r.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,r){var o=0;function a(e,t,n,r){return function(){var s=this,l=arguments,c=function(){var i,c;if(!(e<o)){if((i=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(c)?r?c.call(i,a(o,t,Q,r),a(o,t,J,r)):(o++,c.call(i,a(o,t,Q,r),a(o,t,J,r),a(o,t,Q,t.notifyWith))):(n!==Q&&(s=void 0,l=[i]),(r||t.resolveWith)(s,l))}},u=r?c:function(){try{c()}catch(i){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(i,u.error),e+1>=o&&(n!==J&&(s=void 0,l=[i]),t.rejectWith(s,l))}};e?u():(k.Deferred.getErrorHook?u.error=k.Deferred.getErrorHook():k.Deferred.getStackHook&&(u.error=k.Deferred.getStackHook()),i.setTimeout(u))}}return k.Deferred((function(i){t[0][3].add(a(0,i,v(r)?r:Q,i.notifyWith)),t[1][3].add(a(0,i,v(e)?e:Q)),t[2][3].add(a(0,i,v(n)?n:J))})).promise()},promise:function(e){return null!=e?k.extend(e,r):r}},o={};return k.each(t,(function(e,i){var a=i[2],s=i[5];r[i[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=a.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),r=s.call(arguments),o=k.Deferred(),a=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(i,r)}};if(t<=1&&(q(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||v(r[n]&&r[n].then)))return o.then();for(;n--;)q(r[n],a(n),o.reject);return o.promise()}});var X=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&X.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){i.setTimeout((function(){throw e}))};var K=k.Deferred();function $(){b.removeEventListener("DOMContentLoaded",$),i.removeEventListener("load",$),k.ready()}k.fn.ready=function(e){return K.then(e).catch((function(e){k.readyException(e)})),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||K.resolveWith(b,[k]))}}),k.ready.then=K.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(k.ready):(b.addEventListener("DOMContentLoaded",$),i.addEventListener("load",$));var ee=function(e,t,n,i,r,o,a){var s=0,l=e.length,c=null==n;if("object"===A(n))for(s in r=!0,n)ee(e,t,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,v(i)||(a=!0),c&&(a?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(k(e),n)})),t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):l?t(e[0],n):o},te=/^-ms-/,ne=/-([a-z])/g;function ie(e,t){return t.toUpperCase()}function re(e){return e.replace(te,"ms-").replace(ne,ie)}var oe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=k.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},oe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[re(t)]=n;else for(i in t)r[re(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][re(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(re):(t=re(t))in i?[t]:t.match(G)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||k.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var se=new ae,le=new ae,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),k.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(r=le.get(o),1===o.nodeType&&!se.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=re(i.slice(5)),de(o,i,r[i]));se.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=le.get(o,e))||void 0!==(n=de(o,e))?n:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),k.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=se.get(e,t),n&&(!i||Array.isArray(n)?i=se.access(e,t,k.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),i=n.length,r=n.shift(),o=k._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,(function(){k.dequeue(e,t)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:k.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",n])}))})}}),k.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?k.queue(this[0],e):void 0===t?this:this.each((function(){var n=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&k.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){k.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=k.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=se.get(o[a],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}});var he=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,fe=new RegExp("^(?:([+-])=|)("+he+")([a-z%]*)$","i"),pe=["Top","Right","Bottom","Left"],ge=b.documentElement,me=function(e){return k.contains(e.ownerDocument,e)},ve={composed:!0};ge.getRootNode&&(me=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&me(e)&&"none"===k.css(e,"display")};function be(e,t,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return k.css(e,t,"")},l=s(),c=n&&n[3]||(k.cssNumber[t]?"":"px"),u=e.nodeType&&(k.cssNumber[t]||"px"!==c&&+l)&&fe.exec(k.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)k.style(e,t,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,k.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var xe={};function we(e){var t,n=e.ownerDocument,i=e.nodeName,r=xe[i];return r||(t=n.body.appendChild(n.createElement(i)),r=k.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),xe[i]=r,r)}function Ae(e,t){for(var n,i,r=[],o=0,a=e.length;o<a;o++)(i=e[o]).style&&(n=i.style.display,t?("none"===n&&(r[o]=se.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&ye(i)&&(r[o]=we(i))):"none"!==n&&(r[o]="none",se.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(e[o].style.display=r[o]);return e}k.fn.extend({show:function(){return Ae(this,!0)},hide:function(){return Ae(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?k(this).show():k(this).hide()}))}});var Ce,_e,ke=/^(?:checkbox|radio)$/i,Me=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Se=/^$|^module$|\/(?:java|ecma)script/i;Ce=b.createDocumentFragment().appendChild(b.createElement("div")),(_e=b.createElement("input")).setAttribute("type","radio"),_e.setAttribute("checked","checked"),_e.setAttribute("name","t"),Ce.appendChild(_e),m.checkClone=Ce.cloneNode(!0).cloneNode(!0).lastChild.checked,Ce.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!Ce.cloneNode(!0).lastChild.defaultValue,Ce.innerHTML="<option></option>",m.option=!!Ce.lastChild;var Ie={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Le(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?k.merge([e],n):n}function Te(e,t){for(var n=0,i=e.length;n<i;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}Ie.tbody=Ie.tfoot=Ie.colgroup=Ie.caption=Ie.thead,Ie.th=Ie.td,m.option||(Ie.optgroup=Ie.option=[1,"<select multiple='multiple'>","</select>"]);var De=/<|&#?\w+;/;function Ne(e,t,n,i,r){for(var o,a,s,l,c,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((o=e[f])||0===o)if("object"===A(o))k.merge(h,o.nodeType?[o]:o);else if(De.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(Me.exec(o)||["",""])[1].toLowerCase(),l=Ie[s]||Ie._default,a.innerHTML=l[1]+k.htmlPrefilter(o)+l[2],u=l[0];u--;)a=a.lastChild;k.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(i&&k.inArray(o,i)>-1)r&&r.push(o);else if(c=me(o),a=Le(d.appendChild(o),"script"),c&&Te(a),n)for(u=0;o=a[u++];)Se.test(o.type||"")&&n.push(o);return d}var Oe=/^([^.]*)(?:\.(.+)|)/;function je(){return!0}function Ee(){return!1}function Fe(e,t,n,i,r,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)Fe(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Ee;else if(!r)return e;return 1===o&&(a=r,r=function(e){return k().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=k.guid++)),e.each((function(){k.event.add(this,t,r,i,n)}))}function Pe(e,t,n){n?(se.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var n,i=se.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),se.set(this,t,i),this[t](),n=se.get(this,t),se.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(se.set(this,t,k.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=je)}})):void 0===se.get(e,t)&&k.event.add(e,t,je)}k.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,c,u,d,h,f,p,g,m=se.get(e);if(oe(e))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&k.find.matchesSelector(ge,r),n.guid||(n.guid=k.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(G)||[""]).length;c--;)f=g=(s=Oe.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=k.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=k.event.special[f]||{},u=k.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&k.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,p,a)||e.addEventListener&&e.addEventListener(f,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),k.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,a,s,l,c,u,d,h,f,p,g,m=se.hasData(e)&&se.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(G)||[""]).length;c--;)if(f=g=(s=Oe.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=k.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)u=h[o],!r&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,m.handle)||k.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)k.event.remove(e,f+t[c],n,i,!0);k.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,a,s=new Array(arguments.length),l=k.event.fix(e),c=(se.get(this,"events")||Object.create(null))[l.type]||[],u=k.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=k.event.handlers.call(this,l,c),t=0;(r=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((k.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,o,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=t[n]).selector+" "]&&(a[r]=i.needsContext?k(r,this).index(c)>-1:k.find(r,this,null,[c]).length),a[r]&&o.push(i);o.length&&s.push({elem:c,handlers:o})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ke.test(t.type)&&t.click&&S(t,"input")&&Pe(t,"click",!0),!1},trigger:function(e){var t=this||e;return ke.test(t.type)&&t.click&&S(t,"input")&&Pe(t,"click"),!0},_default:function(e){var t=e.target;return ke.test(t.type)&&t.click&&S(t,"input")&&se.get(t,"click")||S(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?je:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=je,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=je,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=je,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=se.get(this,"handle"),i=k.event.fix(e);i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,n(e),i.target===i.currentTarget&&n(i)}else k.event.simulate(t,e.target,k.event.fix(e))}k.event.special[e]={setup:function(){var i;if(Pe(this,e,!0),!b.documentMode)return!1;(i=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(i||0)+1)},trigger:function(){return Pe(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},k.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=se.get(r,t);o||(b.documentMode?this.addEventListener(t,n):i.addEventListener(e,n,!0)),se.set(r,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=se.get(r,t)-1;o?se.set(r,t,o):(b.documentMode?this.removeEventListener(t,n):i.removeEventListener(e,n,!0),se.remove(r,t))}}})),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||k.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}})),k.fn.extend({on:function(e,t,n,i){return Fe(this,e,t,n,i)},one:function(e,t,n,i){return Fe(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,k(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each((function(){k.event.remove(this,e,n,t)}))}});var ze=/<script|<style|<link/i,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,Be=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function We(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Ye(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ue(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,i,r,o,a,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(r in se.remove(t,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)k.event.add(t,r,s[r][n]);le.hasData(e)&&(o=le.access(e),a=k.extend({},o),le.set(t,a))}}function Ve(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ke.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ze(e,t,n,i){t=l(t);var r,o,a,s,c,u,d=0,h=e.length,f=h-1,p=t[0],g=v(p);if(g||h>1&&"string"==typeof p&&!m.checkClone&&Re.test(p))return e.each((function(r){var o=e.eq(r);g&&(t[0]=p.call(this,r,o.html())),Ze(o,t,n,i)}));if(h&&(o=(r=Ne(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(s=(a=k.map(Le(r,"script"),Ye)).length;d<h;d++)c=r,d!==f&&(c=k.clone(c,!0,!0),s&&k.merge(a,Le(c,"script"))),n.call(e[d],c,d);if(s)for(u=a[a.length-1].ownerDocument,k.map(a,Ue),d=0;d<s;d++)c=a[d],Se.test(c.type||"")&&!se.access(c,"globalEval")&&k.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?k._evalUrl&&!c.noModule&&k._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(Be,""),c,u))}return e}function Ge(e,t,n){for(var i,r=t?k.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||k.cleanData(Le(i)),i.parentNode&&(n&&me(i)&&Te(Le(i,"script")),i.parentNode.removeChild(i));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,o,a,s=e.cloneNode(!0),l=me(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=Le(s),i=0,r=(o=Le(e)).length;i<r;i++)Ve(o[i],a[i]);if(t)if(n)for(o=o||Le(e),a=a||Le(s),i=0,r=o.length;i<r;i++)He(o[i],a[i]);else He(e,s);return(a=Le(s,"script")).length>0&&Te(a,!l&&Le(e,"script")),s},cleanData:function(e){for(var t,n,i,r=k.event.special,o=0;void 0!==(n=e[o]);o++)if(oe(n)){if(t=n[se.expando]){if(t.events)for(i in t.events)r[i]?k.event.remove(n,i):k.removeEvent(n,i,t.handle);n[se.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Ge(this,e,!0)},remove:function(e){return Ge(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ze(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||We(this,e).appendChild(e)}))},prepend:function(){return Ze(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=We(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(Le(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return k.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ze.test(e)&&!Ie[(Me.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(Le(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ze(this,arguments,(function(t){var n=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(Le(this)),n&&n.replaceChild(t,this))}),e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){k.fn[e]=function(e){for(var n,i=[],r=k(e),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),k(r[a])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var Qe=new RegExp("^("+he+")(?!px)[a-z%]+$","i"),Je=/^--/,qe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},Xe=function(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=o[r];return i},Ke=new RegExp(pe.join("|"),"i");function $e(e,t,n){var i,r,o,a,s=Je.test(t),l=e.style;return(n=n||qe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(N,"$1")||void 0),""!==a||me(e)||(a=k.style(e,t)),!m.pixelBoxStyles()&&Qe.test(a)&&Ke.test(t)&&(i=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=i,l.minWidth=r,l.maxWidth=o)),void 0!==a?a+"":a}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ge.appendChild(c).appendChild(u);var e=i.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),r=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),ge.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,r,o,a,s,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,k.extend(m,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,r;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ge.appendChild(e).appendChild(t).appendChild(n),r=i.getComputedStyle(t),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,ge.removeChild(e)),s}}))}();var tt=["Webkit","Moz","ms"],nt=b.createElement("div").style,it={};function rt(e){return k.cssProps[e]||it[e]||(e in nt?e:it[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var i=fe.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function ct(e,t,n,i,r,o){var a="width"===t?1:0,s=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=k.css(e,n+pe[a],!0,r)),i?("content"===n&&(l-=k.css(e,"padding"+pe[a],!0,r)),"margin"!==n&&(l-=k.css(e,"border"+pe[a]+"Width",!0,r))):(l+=k.css(e,"padding"+pe[a],!0,r),"padding"!==n?l+=k.css(e,"border"+pe[a]+"Width",!0,r):s+=k.css(e,"border"+pe[a]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l+c}function ut(e,t,n){var i=qe(e),r=(!m.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,i),o=r,a=$e(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(Qe.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&S(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===k.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===k.css(e,"boxSizing",!1,i),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ct(e,t,n||(r?"border":"content"),o,i,a)+"px"}function dt(e,t,n,i,r){return new dt.prototype.init(e,t,n,i,r)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=$e(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=re(t),l=Je.test(t),c=e.style;if(l||(t=rt(s)),a=k.cssHooks[t]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:c[t];"string"==(o=typeof n)&&(r=fe.exec(n))&&r[1]&&(n=be(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(k.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var r,o,a,s=re(t);return Je.test(t)||(t=rt(s)),(a=k.cssHooks[t]||k.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=$e(e,t,i)),"normal"===r&&t in st&&(r=st[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),k.each(["height","width"],(function(e,t){k.cssHooks[t]={get:function(e,n,i){if(n)return!ot.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,i):Xe(e,at,(function(){return ut(e,t,i)}))},set:function(e,n,i){var r,o=qe(e),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||i)&&"border-box"===k.css(e,"boxSizing",!1,o),l=i?ct(e,t,i,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ct(e,t,"border",!1,o)-.5)),l&&(r=fe.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),lt(0,n,l)}}})),k.cssHooks.marginLeft=et(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat($e(e,"marginLeft"))||e.getBoundingClientRect().left-Xe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(e,t){k.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+pe[i]+t]=o[i]||o[i-2]||o[0];return r}},"margin"!==e&&(k.cssHooks[e+t].set=lt)})),k.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var i,r,o={},a=0;if(Array.isArray(t)){for(i=qe(e),r=t.length;a<r;a++)o[t[a]]=k.css(e,t[a],!1,i);return o}return void 0!==n?k.style(e,t,n):k.css(e,t)}),e,t,arguments.length>1)}}),k.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[rt(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=dt.prototype.init,k.fx.step={};var ht,ft,pt=/^(?:toggle|show|hide)$/,gt=/queueHooks$/;function mt(){ft&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(mt):i.setTimeout(mt,k.fx.interval),k.fx.tick())}function vt(){return i.setTimeout((function(){ht=void 0})),ht=Date.now()}function yt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=pe[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function bt(e,t,n){for(var i,r=(xt.tweeners[t]||[]).concat(xt.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function xt(e,t,n){var i,r,o=0,a=xt.prefilters.length,s=k.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=ht||vt(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(i);return s.notifyWith(e,[c,i,n]),i<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:t,originalOptions:n,startTime:ht||vt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=k.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,i,r,o,a;for(n in e)if(r=t[i=re(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(a=k.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(u,c.opts.specialEasing);o<a;o++)if(i=xt.prefilters[o].call(c,e,u,c.opts))return v(i.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return k.map(u,bt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),k.fx.timer(k.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}k.Animation=k.extend(xt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,fe.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(G);for(var n,i=0,r=e.length;i<r;i++)n=e[i],xt.tweeners[n]=xt.tweeners[n]||[],xt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,o,a,s,l,c,u,d="width"in t||"height"in t,h=this,f={},p=e.style,g=e.nodeType&&ye(e),m=se.get(e,"fxshow");for(i in n.queue||(null==(a=k._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,k.queue(e,"fx").length||a.empty.fire()}))}))),t)if(r=t[i],pt.test(r)){if(delete t[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}f[i]=m&&m[i]||k.style(e,i)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=se.get(e,"display")),"none"===(u=k.css(e,"display"))&&(c?u=c:(Ae([e],!0),c=e.style.display||c,u=k.css(e,"display"),Ae([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===k.css(e,"float")&&(l||(h.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=se.access(e,"fxshow",{display:c}),o&&(m.hidden=!g),g&&Ae([e],!0),h.done((function(){for(i in g||Ae([e]),se.remove(e,"fxshow"),f)k.style(e,i,f[i])}))),l=bt(g?m[i]:0,i,h),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?xt.prefilters.unshift(e):xt.prefilters.push(e)}}),k.speed=function(e,t,n){var i=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return k.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in k.fx.speeds?i.duration=k.fx.speeds[i.duration]:i.duration=k.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&k.dequeue(this,i.queue)},i},k.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=k.isEmptyObject(e),o=k.speed(t,n,i),a=function(){var t=xt(this,k.extend({},e),o);(r||se.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",o=k.timers,a=se.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&>.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||k.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=se.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=k.timers,a=i?i.length:0;for(n.finish=!0,k.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),k.each(["toggle","show","hide"],(function(e,t){var n=k.fn[t];k.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(yt(t,!0),e,i,r)}})),k.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){k.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(ht=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),ht=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){ft||(ft=!0,mt())},k.fx.stop=function(){ft=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(r)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var wt,At=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return ee(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){k.removeAttr(this,e)}))}}),k.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?k.prop(e,t,n):(1===o&&k.isXMLDoc(e)||(r=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?wt:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=k.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&S(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(G);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),wt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=At[t]||k.find.attr;At[t]=function(e,t,i){var r,o,a=t.toLowerCase();return i||(o=At[a],At[a]=r,r=null!=n(e,t,i)?a:null,At[a]=o),r}}));var Ct=/^(?:input|select|textarea|button)$/i,_t=/^(?:a|area)$/i;function kt(e){return(e.match(G)||[]).join(" ")}function Mt(e){return e.getAttribute&&e.getAttribute("class")||""}function St(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(G)||[]}k.fn.extend({prop:function(e,t){return ee(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[k.propFix[e]||e]}))}}),k.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(e)||(t=k.propFix[t]||t,r=k.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||_t.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(e){var t,n,i,r,o,a;return v(e)?this.each((function(t){k(this).addClass(e.call(this,t,Mt(this)))})):(t=St(e)).length?this.each((function(){if(i=Mt(this),n=1===this.nodeType&&" "+kt(i)+" "){for(o=0;o<t.length;o++)r=t[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");a=kt(n),i!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,n,i,r,o,a;return v(e)?this.each((function(t){k(this).removeClass(e.call(this,t,Mt(this)))})):arguments.length?(t=St(e)).length?this.each((function(){if(i=Mt(this),n=1===this.nodeType&&" "+kt(i)+" "){for(o=0;o<t.length;o++)for(r=t[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");a=kt(n),i!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,i,r,o,a=typeof e,s="string"===a||Array.isArray(e);return v(e)?this.each((function(n){k(this).toggleClass(e.call(this,n,Mt(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=St(e),this.each((function(){if(s)for(o=k(this),r=0;r<n.length;r++)i=n[r],o.hasClass(i)?o.removeClass(i):o.addClass(i);else void 0!==e&&"boolean"!==a||((i=Mt(this))&&se.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":se.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+kt(Mt(n))+" ").indexOf(t)>-1)return!0;return!1}});var It=/\r/g;k.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=v(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,k(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=k.map(r,(function(e){return null==e?"":e+""}))),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=k.valHooks[r.type]||k.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(It,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:kt(k.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(t=k(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,i,r=e.options,o=k.makeArray(t),a=r.length;a--;)((i=r[a]).selected=k.inArray(k.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},m.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Lt=i.location,Tt={guid:Date.now()},Dt=/\?/;k.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||k.error("Invalid XML: "+(n?k.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Nt=/^(?:focusinfocus|focusoutblur)$/,Ot=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,n,r){var o,a,s,l,c,u,d,h,p=[n||b],g=f.call(e,"type")?e.type:e,m=f.call(e,"namespace")?e.namespace.split("."):[];if(a=h=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Nt.test(g+k.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[k.expando]?e:new k.Event(g,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:k.makeArray(t,[e]),d=k.event.special[g]||{},r||!d.trigger||!1!==d.trigger.apply(n,t))){if(!r&&!d.noBubble&&!y(n)){for(l=d.delegateType||g,Nt.test(l+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||i)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)h=a,e.type=o>1?l:d.bindType||g,(u=(se.get(a,"events")||Object.create(null))[e.type]&&se.get(a,"handle"))&&u.apply(a,t),(u=c&&a[c])&&u.apply&&oe(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!oe(n)||c&&v(n[g])&&!y(n)&&((s=n[c])&&(n[c]=null),k.event.triggered=g,e.isPropagationStopped()&&h.addEventListener(g,Ot),n[g](),e.isPropagationStopped()&&h.removeEventListener(g,Ot),k.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var i=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(i,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each((function(){k.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}});var jt=/\[\]$/,Et=/\r?\n/g,Ft=/^(?:submit|button|image|reset|file)$/i,Pt=/^(?:input|select|textarea|keygen)/i;function zt(e,t,n,i){var r;if(Array.isArray(t))k.each(t,(function(t,r){n||jt.test(e)?i(e,r):zt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==A(t))i(e,t);else for(r in t)zt(e+"["+r+"]",t[r],n,i)}k.param=function(e,t){var n,i=[],r=function(e,t){var n=v(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,(function(){r(this.name,this.value)}));else for(n in e)zt(n,e[n],t,r);return i.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Pt.test(this.nodeName)&&!Ft.test(e)&&(this.checked||!ke.test(e))})).map((function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,(function(e){return{name:t.name,value:e.replace(Et,"\r\n")}})):{name:t.name,value:n.replace(Et,"\r\n")}})).get()}});var Rt=/%20/g,Bt=/#.*$/,Wt=/([?&])_=[^&]*/,Yt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ut=/^(?:GET|HEAD)$/,Ht=/^\/\//,Vt={},Zt={},Gt="*/".concat("*"),Qt=b.createElement("a");function Jt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(G)||[];if(v(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function qt(e,t,n,i){var r={},o=e===Zt;function a(s){var l;return r[s]=!0,k.each(e[s]||[],(function(e,s){var c=s(t,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!r["*"]&&a("*")}function Xt(e,t){var n,i,r=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&k.extend(!0,e,i),e}Qt.href=Lt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Lt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Lt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Gt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Xt(Xt(e,k.ajaxSettings),t):Xt(k.ajaxSettings,e)},ajaxPrefilter:Jt(Vt),ajaxTransport:Jt(Zt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,o,a,s,l,c,u,d,h,f=k.ajaxSetup({},t),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?k(p):k.event,m=k.Deferred(),v=k.Callbacks("once memory"),y=f.statusCode||{},x={},w={},A="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Yt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||A;return n&&n.abort(t),_(0,t),this}};if(m.promise(C),f.url=((e||f.url||Lt.href)+"").replace(Ht,Lt.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(G)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Qt.protocol+"//"+Qt.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=k.param(f.data,f.traditional)),qt(Vt,f,t,C),c)return C;for(d in(u=k.event&&f.global)&&0==k.active++&&k.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ut.test(f.type),r=f.url.replace(Bt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Rt,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Dt.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Wt,"$1"),h=(Dt.test(r)?"&":"?")+"_="+Tt.guid+++h),f.url=r+h),f.ifModified&&(k.lastModified[r]&&C.setRequestHeader("If-Modified-Since",k.lastModified[r]),k.etag[r]&&C.setRequestHeader("If-None-Match",k.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Gt+"; q=0.01":""):f.accepts["*"]),f.headers)C.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,C,f)||c))return C.abort();if(A="abort",v.add(f.complete),C.done(f.success),C.fail(f.error),n=qt(Zt,f,t,C)){if(C.readyState=1,u&&g.trigger("ajaxSend",[C,f]),c)return C;f.async&&f.timeout>0&&(s=i.setTimeout((function(){C.abort("timeout")}),f.timeout));try{c=!1,n.send(x,_)}catch(e){if(c)throw e;_(-1,e)}}else _(-1,"No Transport");function _(e,t,a,l){var d,h,b,x,w,A=t;c||(c=!0,s&&i.clearTimeout(s),n=void 0,o=l||"",C.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(x=function(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,C,a)),!d&&k.inArray("script",f.dataTypes)>-1&&k.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(e,t,n,i){var r,o,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(f,x,C,d),d?(f.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(k.lastModified[r]=w),(w=C.getResponseHeader("etag"))&&(k.etag[r]=w)),204===e||"HEAD"===f.type?A="nocontent":304===e?A="notmodified":(A=x.state,h=x.data,d=!(b=x.error))):(b=A,!e&&A||(A="error",e<0&&(e=0))),C.status=e,C.statusText=(t||A)+"",d?m.resolveWith(p,[h,A,C]):m.rejectWith(p,[C,A,b]),C.statusCode(y),y=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[C,f,d?h:b]),v.fireWith(p,[C,A]),u&&(g.trigger("ajaxComplete",[C,f]),--k.active||k.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],(function(e,t){k[t]=function(e,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:r,data:n,success:i},k.isPlainObject(e)&&e))}})),k.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),k._evalUrl=function(e,t,n){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,n)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){k(this).wrapInner(e.call(this,t))})):this.each((function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){k(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},$t=k.ajaxSettings.xhr();m.cors=!!$t&&"withCredentials"in $t,m.ajax=$t=!!$t,k.ajaxTransport((function(e){var t,n;if(m.cors||$t&&!e.crossDomain)return{send:function(r,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Kt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),k.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),k.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||k.expando+"_"+Tt.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",(function(e,t,n){var r,o,a,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(nn,"$1"+r):!1!==e.jsonp&&(e.url+=(Dt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||k.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=i[r],i[r]=function(){a=arguments},n.always((function(){void 0===o?k(i).removeProp(r):i[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,tn.push(r)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),m.createHTMLDocument=((en=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((i=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(i)):t=b),o=!n&&[],(r=B.exec(e))?[t.createElement(r[1])]:(r=Ne([e],t,o),o&&o.length&&k(o).remove(),k.merge([],r.childNodes)));var i,r,o},k.fn.load=function(e,t,n){var i,r,o,a=this,s=e.indexOf(" ");return s>-1&&(i=kt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&k.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(i?k("<div>").append(k.parseHTML(e)).find(i):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,(function(t){return e===t.elem})).length},k.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,c=k.css(e,"position"),u=k(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=k.css(e,"top"),l=k.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(i=u.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),v(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):u.css(d)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){k.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===k.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),r.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-k.css(i,"marginTop",!0),left:t.left-r.left-k.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||ge}))}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;k.fn[e]=function(i){return ee(this,(function(e,i,r){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r}),e,i,arguments.length)}})),k.each(["top","left"],(function(e,t){k.cssHooks[t]=et(m.pixelPosition,(function(e,n){if(n)return n=$e(e,t),Qe.test(n)?k(e).position()[t]+"px":n}))})),k.each({Height:"height",Width:"width"},(function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){k.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return ee(this,(function(t,n,r){var o;return y(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?k.css(t,n,s):k.style(t,n,r,s)}),t,a?r:void 0,a)}}))})),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){k.fn[t]=function(e){return this.on(t,e)}})),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){k.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return i=s.call(arguments,2),r=function(){return e.apply(t||this,i.concat(s.call(arguments)))},r.guid=e.guid=e.guid||k.guid++,r},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=S,k.isFunction=v,k.isWindow=y,k.camelCase=re,k.type=A,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(n=function(){return k}.apply(t,[]))||(e.exports=n);var on=i.jQuery,an=i.$;return k.noConflict=function(e){return i.$===k&&(i.$=an),e&&i.jQuery===k&&(i.jQuery=on),k},void 0===r&&(i.jQuery=i.$=k),k}))},461:(e,t,n)=>{e.exports=function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return r(t[a][1][e]||e)}),c,c.exports,e,t,n,i)}return n[a].exports}for(var o=void 0,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(e,t,n){"use strict";var i=e("./utils"),r=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,r,a,s,l,c,u=[],d=0,h=e.length,f=h,p="string"!==i.getTypeOf(e);d<e.length;)f=h-d,r=p?(t=e[d++],n=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),n=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|n>>4,l=1<f?(15&n)<<2|r>>6:64,c=2<f?63&r:64,u.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(c));return u.join("")},n.decode=function(e){var t,n,i,a,s,l,c=0,u=0,d="data:";if(e.substr(0,5)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&f--,e.charAt(e.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=r.uint8array?new Uint8Array(0|f):new Array(0|f);c<e.length;)t=o.indexOf(e.charAt(c++))<<2|(a=o.indexOf(e.charAt(c++)))>>4,n=(15&a)<<4|(s=o.indexOf(e.charAt(c++)))>>2,i=(3&s)<<6|(l=o.indexOf(e.charAt(c++))),h[u++]=t,64!==s&&(h[u++]=n),64!==l&&(h[u++]=i);return h}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var i=e("./external"),r=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,i,r){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=i,this.compressedContent=r}s.prototype={getContentWorker:function(){var e=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var i=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var i=e("./utils"),r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==i.getTypeOf(e)?function(e,t,n,i){var o=r,a=0+n;e^=-1;for(var s=0;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length):function(e,t,n,i){var o=r,a=0+n;e^=-1;for(var s=0;s<a;s++)e=e>>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var i;i="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:i}},{lie:37}],7:[function(e,t,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=i?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function i(e,t){var n,i="";for(n=0;n<t;n++)i+=String.fromCharCode(255&e),e>>>=8;return i}function r(e,t,n,r,a,u){var d,h,f=e.file,p=e.compression,g=u!==s.utf8encode,m=o.transformTo("string",u(f.name)),v=o.transformTo("string",s.utf8encode(f.name)),y=f.comment,b=o.transformTo("string",u(y)),x=o.transformTo("string",s.utf8encode(y)),w=v.length!==f.name.length,A=x.length!==y.length,C="",_="",k="",M=f.dir,S=f.date,I={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(I.crc32=e.crc32,I.compressedSize=e.compressedSize,I.uncompressedSize=e.uncompressedSize);var L=0;t&&(L|=8),g||!w&&!A||(L|=2048);var T=0,D=0;M&&(T|=16),"UNIX"===a?(D=798,T|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(f.unixPermissions,M)):(D=20,T|=function(e){return 63&(e||0)}(f.dosPermissions)),d=S.getUTCHours(),d<<=6,d|=S.getUTCMinutes(),d<<=5,d|=S.getUTCSeconds()/2,h=S.getUTCFullYear()-1980,h<<=4,h|=S.getUTCMonth()+1,h<<=5,h|=S.getUTCDate(),w&&(_=i(1,1)+i(l(m),4)+v,C+="up"+i(_.length,2)+_),A&&(k=i(1,1)+i(l(b),4)+x,C+="uc"+i(k.length,2)+k);var N="";return N+="\n\0",N+=i(L,2),N+=p.magic,N+=i(d,2),N+=i(h,2),N+=i(I.crc32,4),N+=i(I.compressedSize,4),N+=i(I.uncompressedSize,4),N+=i(m.length,2),N+=i(C.length,2),{fileRecord:c.LOCAL_FILE_HEADER+N+m+C,dirRecord:c.CENTRAL_FILE_HEADER+i(D,2)+N+i(b.length,2)+"\0\0\0\0"+i(T,4)+i(r,4)+m+C+b}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,n,i){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(u,a),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-i-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=r(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=r(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+i(e.crc32,4)+i(e.compressedSize,4)+i(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,r=function(e,t,n,r,a){var s=o.transformTo("string",a(r));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(e,2)+i(e,2)+i(t,4)+i(n,4)+i(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},u.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},u.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var i=e("../compressions"),r=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var o=new r(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,n){a++;var r=function(e,t){var n=e||t,r=i[n];if(!r)throw new Error(n+" is not a valid compression method !");return r}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(r,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(i.prototype=e("./object")).loadAsync=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.version="3.10.1",i.loadAsync=function(e,t){return(new i).loadAsync(e,t)},i.external=e("./external"),t.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var i=e("./utils"),r=e("./external"),o=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new r.Promise((function(t,n){var i=e.decompressed.getContentWorker().pipe(new s);i.on("error",(function(e){n(e)})).on("end",(function(){i.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=i.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(e)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new a(t);return n.load(e),n})).then((function(e){var n=[r.Promise.resolve(e)],i=e.files;if(t.checkCRC32)for(var o=0;o<i.length;o++)n.push(c(i[o]));return r.Promise.all(n)})).then((function(e){for(var r=e.shift(),o=r.files,a=0;a<o.length;a++){var s=o[a],l=s.fileNameStr,c=i.resolve(s.fileNameStr);n.file(c,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(c).unsafeOriginalName=l)}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){"use strict";var i=e("../utils"),r=e("../stream/GenericWorker");function o(e,t){r.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}i.inherits(o,r),o.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},o.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var i=e("readable-stream").Readable;function r(e,t,n){i.call(this,t),this._helper=e;var r=this;e.on("data",(function(e,t){r.push(e)||r._helper.pause(),n&&n(t)})).on("error",(function(e){r.emit("error",e)})).on("end",(function(){r.push(null)}))}e("../utils").inherits(r,i),r.prototype._read=function(){this._helper.resume()},t.exports=r},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){"use strict";function i(e,t,n){var i,r=o.getTypeOf(t),s=o.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=g(e)),s.createFolders&&(i=p(e))&&m.call(this,i,!0);var d="string"===r&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!d),(t instanceof c&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",r="string");var v;v=t instanceof c||t instanceof a?t:h.isNode&&h.isStream(t)?new f(e,t):o.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new u(e,v,s);this.files[e]=y}var r=e("./utf8"),o=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},g=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:l.createFolders,e=g(e),this.files[e]||i.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,i;for(t in this.files)i=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,i)},filter:function(e){var t=[];return this.forEach((function(n,i){e(n,i)&&t.push(i)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,i.call(this,e,t,n),this;if(v(e)){var r=e;return this.filter((function(e,t){return!t.dir&&r.test(e)}))}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=m.call(this,t),i=this.clone();return i.root=n.name,i},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var i=n.comment||this.comment||"";t=d.generateWorker(this,n,i)}catch(e){(t=new a("error")).error(e)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){"use strict";var i=e("./DataReader");function r(e){i.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(r,i),r.prototype.byteAt=function(e){return this.data[this.zero+e]},r.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===i&&this.data[o+3]===r)return o-this.zero;return-1},r.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&i===o[2]&&r===o[3]},r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var i=e("../utils");function r(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=r},{"../utils":32}],19:[function(e,t,n){"use strict";var i=e("./Uint8ArrayReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var i=e("./DataReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},r.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},r.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var i=e("./ArrayReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var i=e("../utils"),r=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=i.getTypeOf(e);return i.checkSupport(t),"string"!==t||r.uint8array?"nodebuffer"===t?new s(e):r.uint8array?new l(i.transformTo("uint8array",e)):new o(i.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){"use strict";var i=e("./GenericWorker"),r=e("../utils");function o(e){i.call(this,"ConvertWorker to "+e),this.destType=e}r.inherits(o,i),o.prototype.processChunk=function(e){this.push({data:r.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var i=e("./GenericWorker"),r=e("../crc32");function o(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,i),o.prototype.processChunk=function(e){this.streamInfo.crc32=r(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var i=e("../utils"),r=e("./GenericWorker");function o(e){r.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}i.inherits(o,r),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}r.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var i=e("../utils"),r=e("./GenericWorker");function o(e){r.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=i.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}i.inherits(o,r),o.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function i(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=i},{}],29:[function(e,t,n){"use strict";var i=e("../utils"),r=e("./ConvertWorker"),o=e("./GenericWorker"),a=e("../base64"),s=e("../support"),l=e("../external"),c=null;if(s.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function u(e,t,n){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=n,i.checkSupport(a),this._worker=e.pipe(new r(a)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}u.prototype={accumulate:function(e){return function(e,t){return new l.Promise((function(n,r){var o=[],s=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",(function(e,n){o.push(e),t&&t(n)})).on("error",(function(e){o=[],r(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return i.transformTo(e,t)}}(l,function(e,t){var n,i=0,r=null,o=0;for(n=0;n<t.length;n++)o+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(r=new Uint8Array(o),n=0;n<t.length;n++)r.set(t[n],i),i+=t[n].length;return r;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,o),c);n(e)}catch(e){r(e)}o=[]})).resume()}))}(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){i.delay(t,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=u},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),n.blob=0===r.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var i=e("./utils"),r=e("./support"),o=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function u(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return r.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,i,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=r.uint8array?new Uint8Array(l):new Array(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return r.nodebuffer?i.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,r,o,a=e.length,l=new Array(2*a);for(t=n=0;t<a;)if((r=e[t++])<128)l[n++]=r;else if(4<(o=s[r]))l[n++]=65533,t+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&t<a;)r=r<<6|63&e[t++],o--;1<o?l[n++]=65533:r<65536?l[n++]=r:(r-=65536,l[n++]=55296|r>>10&1023,l[n++]=56320|1023&r)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),i.applyFromCharCode(l)}(e=i.transformTo(r.uint8array?"uint8array":"array",e))},i.inherits(c,a),c.prototype.processChunk=function(e){var t=i.transformTo(r.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),l=t;a!==t.length&&(r.uint8array?(l=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(l=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,i.inherits(u,a),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var i=e("./support"),r=e("./base64"),o=e("./nodejsUtils"),a=e("./external");function s(e){return e}function l(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(n){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(e),i.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,n){var i=[],r=0,o=e.length;if(o<=n)return String.fromCharCode.apply(null,e);for(;r<o;)"array"===t||"nodebuffer"===t?i.push(String.fromCharCode.apply(null,e.slice(r,Math.min(r+n,o)))):i.push(String.fromCharCode.apply(null,e.subarray(r,Math.min(r+n,o)))),r+=n;return i.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,i=n.getTypeOf(e),r=!0;if("uint8array"===i?r=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=c.applyCanBeUsed.nodebuffer),r)for(;1<t;)try{return c.stringifyByChunk(e,i,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=u;var h={};h.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,o.allocBuffer(e.length))}},h.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},h.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return o.newBufferFrom(e)}},h.nodebuffer={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var i=n.getTypeOf(t);return h[i][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],i=0;i<t.length;i++){var r=t[i];"."===r||""===r&&0!==i&&i!==t.length-1||(".."===r?n.pop():n.push(r))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":i.nodebuffer&&o.isBuffer(e)?"nodebuffer":i.uint8array&&e instanceof Uint8Array?"uint8array":i.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!i[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,i="";for(n=0;n<(e||"").length;n++)i+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return i},n.delay=function(e,t,n){setImmediate((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,o,s,c){return a.Promise.resolve(t).then((function(e){return i.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise((function(t,n){var i=new FileReader;i.onload=function(e){t(e.target.result)},i.onerror=function(e){n(e.target.error)},i.readAsArrayBuffer(e)})):e})).then((function(t){var u=n.getTypeOf(t);return u?("arraybuffer"===u?t=n.transformTo("uint8array",t):"string"===u&&(c?t=r.decode(t):o&&!0!==s&&(t=function(e){return l(e,i.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):a.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){"use strict";var i=e("./reader/readerFor"),r=e("./utils"),o=e("./signature"),a=e("./zipEntry"),s=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(t)+", expected "+r.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4)===t;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=r.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,i=this.zip64EndOfCentralSize-44;0<i;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=t-n;if(0<i)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=i(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var i=e("./reader/readerFor"),r=e("./utils"),o=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,i,r=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<r;)t=e.readInt(2),n=e.readInt(2),i=e.readData(n),this.extraFields[t]={id:t,length:n,value:i};e.setIndex(r)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=r.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var o=r.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=i(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=i(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";function i(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var r=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");i.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var i="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!i&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&i&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new r(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)i.prototype[c[d]]=u;t.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,i){(function(e){"use strict";var n,i,r=e.MutationObserver||e.WebKitMutationObserver;if(r){var o=0,a=new r(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;i=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}i=!1}t.exports=function(e){1!==c.push(e)||i||n()}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var i=e("immediate");function r(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==r&&f(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){i((function(){var i;try{i=t(n)}catch(i){return o.reject(e,i)}i===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,i)}))}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var n=!1;function i(t){n||(n=!0,o.reject(e,t))}function r(t){n||(n=!0,o.resolve(e,t))}var a=p((function(){t(r,i)}));"error"===a.status&&i(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(r);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(h,t);if("error"===n.status)return o.reject(e,n.value);var i=n.value;if(i)f(e,i);else{e.state=s,e.outcome=t;for(var r=-1,a=e.queue.length;++r<a;)e.queue[r].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,i=e.queue.length;++n<i;)e.queue[n].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:o.resolve(new this(r),e)},c.reject=function(e){var t=new this(r);return o.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,c=new this(r);++l<n;)u(e[l],l);return c;function u(e,r){t.resolve(e).then((function(e){a[r]=e,++s!==n||i||(i=!0,o.resolve(c,a))}),(function(e){i||(i=!0,o.reject(c,e))}))}},c.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,n=!1;if(!t)return this.resolve([]);for(var i,a=-1,s=new this(r);++a<t;)i=e[a],this.resolve(i).then((function(e){n||(n=!0,o.resolve(s,e))}),(function(e){n||(n=!0,o.reject(s,e))}));return s}},{immediate:36}],38:[function(e,t,n){"use strict";var i={};(0,e("./lib/utils/common").assign)(i,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var i=e("./zlib/deflate"),r=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,h=8;function f(e){if(!(this instanceof f))return new f(e);this.options=r.assign({level:u,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==c)throw new Error(a[n]);if(t.header&&i.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=i.deflateSetDictionary(this.strm,p))!==c)throw new Error(a[n]);this._dict_set=!0}}function p(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}f.prototype.push=function(e,t){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new r.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=i.deflate(s,a))&&n!==c)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(s.output,s.next_out))):this.onData(r.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c):2!==a||(this.onEnd(c),!(s.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=f,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";var i=e("./zlib/inflate"),r=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new c,i.inflateGetHeader(this.strm,this.header)}function h(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,l,c,d,h,f=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?f.input=o.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new r.Buf8(p),f.next_out=0,f.avail_out=p),(n=i.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(h="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=i.inflateSetDictionary(this.strm,h)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==a.Z_STREAM_END&&(0!==f.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(f.output,f.next_out),c=f.next_out-l,d=o.buf2string(f.output,l),f.next_out=c,f.avail_out=p-c,c&&r.arraySet(f.output,f.output,l,c,0),this.onData(d)):this.onData(r.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=h,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},n.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,i,r){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+i),r);else for(var o=0;o<i;o++)e[r+o]=t[n+o]},flattenChunks:function(e){var t,n,i,r,o,a;for(t=i=0,n=e.length;t<n;t++)i+=e[t].length;for(a=new Uint8Array(i),t=r=0,n=e.length;t<n;t++)o=e[t],a.set(o,r),r+=o.length;return a}},o={arraySet:function(e,t,n,i,r){for(var o=0;o<i;o++)e[r+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,r)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(i)},{}],42:[function(e,t,n){"use strict";var i=e("./common"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var a=new i.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,r,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new i.Buf8(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new i.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,i,r,o,s=t||e.length,c=new Array(2*s);for(n=i=0;n<s;)if((r=e[n++])<128)c[i++]=r;else if(4<(o=a[r]))c[i++]=65533,n+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&n<s;)r=r<<6|63&e[n++],o--;1<o?c[i++]=65533:r<65536?c[i++]=r:(r-=65536,c[i++]=55296|r>>10&1023,c[i++]=56320|1023&r)}return l(c,i)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,i){for(var r=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(r=r+t[i++]|0)|0,--a;);r%=65521,o%=65521}return r|o<<16|0}},{}],44:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){"use strict";var i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){"use strict";var i,r=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=0,d=-2,h=2,f=8,p=286,g=30,m=19,v=2*p+1,y=15,b=3,x=258,w=x+b+1,A=42,C=113;function _(e,t){return e.msg=l[t],t}function k(e){return(e<<1)-(4<e?9:0)}function M(e){for(var t=e.length;0<=--t;)e[t]=0}function S(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(r.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function I(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,S(e.strm)}function L(e,t){e.pending_buf[e.pending++]=t}function T(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function D(e,t){var n,i,r=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-w?e.strstart-(e.w_size-w):0,c=e.window,u=e.w_mask,d=e.prev,h=e.strstart+x,f=c[o+a-1],p=c[o+a];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===p&&c[n+a-1]===f&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<h);if(i=x-(h-o),o=h-x,a<i){if(e.match_start=t,s<=(a=i))break;f=c[o+a-1],p=c[o+a]}}}while((t=d[t&u])>l&&0!=--r);return a<=e.lookahead?a:e.lookahead}function N(e){var t,n,i,o,l,c,u,d,h,f,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-w)){for(r.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;i=e.head[--t],e.head[t]=p<=i?i-p:0,--n;);for(t=n=p;i=e.prev[--t],e.prev[t]=p<=i?i-p:0,--n;);o+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,f=void 0,(h=o)<(f=c.avail_in)&&(f=h),n=0===f?0:(c.avail_in-=f,r.arraySet(u,c.input,c.next_in,f,d),1===c.state.wrap?c.adler=a(c.adler,u,f,d):2===c.state.wrap&&(c.adler=s(c.adler,u,f,d)),c.next_in+=f,c.total_in+=f,f),e.lookahead+=n,e.lookahead+e.insert>=b)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+b-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<b)););}while(e.lookahead<w&&0!==e.strm.avail_in)}function O(e,t){for(var n,i;;){if(e.lookahead<w){if(N(e),e.lookahead<w&&t===c)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=b&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-w&&(e.match_length=D(e,n)),e.match_length>=b)if(i=o._tr_tally(e,e.strstart-e.match_start,e.match_length-b),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=b){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(I(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<b-1?e.strstart:b-1,4===t?(I(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?1:2}function j(e,t){for(var n,i,r;;){if(e.lookahead<w){if(N(e),e.lookahead<w&&t===c)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=b&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=b-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-w&&(e.match_length=D(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===b&&4096<e.strstart-e.match_start)&&(e.match_length=b-1)),e.prev_length>=b&&e.match_length<=e.prev_length){for(r=e.strstart+e.lookahead-b,i=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-b),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=r&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=b-1,e.strstart++,i&&(I(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((i=o._tr_tally(e,0,e.window[e.strstart-1]))&&I(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<b-1?e.strstart:b-1,4===t?(I(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?1:2}function E(e,t,n,i,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=r}function F(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=f,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(2*v),this.dyn_dtree=new r.Buf16(2*(2*g+1)),this.bl_tree=new r.Buf16(2*(2*m+1)),M(this.dyn_ltree),M(this.dyn_dtree),M(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(y+1),this.heap=new r.Buf16(2*p+1),M(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*p+1),M(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function P(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=h,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?A:C,e.adler=2===t.wrap?0:1,t.last_flush=c,o._tr_init(t),u):_(e,d)}function z(e){var t=P(e);return t===u&&function(e){e.window_size=2*e.w_size,M(e.head),e.max_lazy_match=i[e.level].max_lazy,e.good_match=i[e.level].good_length,e.nice_match=i[e.level].nice_length,e.max_chain_length=i[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=b-1,e.match_available=0,e.ins_h=0}(e.state),t}function R(e,t,n,i,o,a){if(!e)return d;var s=1;if(-1===t&&(t=6),i<0?(s=0,i=-i):15<i&&(s=2,i-=16),o<1||9<o||n!==f||i<8||15<i||t<0||9<t||a<0||4<a)return _(e,d);8===i&&(i=9);var l=new F;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+b-1)/b),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=n,z(e)}i=[new E(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(N(e),0===e.lookahead&&t===c)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+n;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,I(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-w&&(I(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(I(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(I(e,!1),e.strm.avail_out),1)})),new E(4,4,8,4,O),new E(4,5,16,8,O),new E(4,6,32,32,O),new E(4,4,16,16,j),new E(8,16,32,32,j),new E(8,16,128,128,j),new E(8,32,128,256,j),new E(32,128,258,1024,j),new E(32,258,258,4096,j)],n.deflateInit=function(e,t){return R(e,t,f,15,8,0)},n.deflateInit2=R,n.deflateReset=z,n.deflateResetKeep=P,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,u):d},n.deflate=function(e,t){var n,r,a,l;if(!e||!e.state||5<t||t<0)return e?_(e,d):d;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||666===r.status&&4!==t)return _(e,0===e.avail_out?-5:d);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===A)if(2===r.wrap)e.adler=0,L(r,31),L(r,139),L(r,8),r.gzhead?(L(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),L(r,255&r.gzhead.time),L(r,r.gzhead.time>>8&255),L(r,r.gzhead.time>>16&255),L(r,r.gzhead.time>>24&255),L(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),L(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(L(r,255&r.gzhead.extra.length),L(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=s(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(L(r,0),L(r,0),L(r,0),L(r,0),L(r,0),L(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),L(r,3),r.status=C);else{var h=f+(r.w_bits-8<<4)<<8;h|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=C,T(r,h),0!==r.strstart&&(T(r,e.adler>>>16),T(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),S(e),a=r.pending,r.pending!==r.pending_buf_size));)L(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),S(e),a=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,L(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),S(e),a=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,L(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&S(e),r.pending+2<=r.pending_buf_size&&(L(r,255&e.adler),L(r,e.adler>>8&255),e.adler=0,r.status=C)):r.status=C),0!==r.pending){if(S(e),0===e.avail_out)return r.last_flush=-1,u}else if(0===e.avail_in&&k(t)<=k(n)&&4!==t)return _(e,-5);if(666===r.status&&0!==e.avail_in)return _(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==c&&666!==r.status){var p=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(N(e),0===e.lookahead)){if(t===c)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(I(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(I(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var n,i,r,a,s=e.window;;){if(e.lookahead<=x){if(N(e),e.lookahead<=x&&t===c)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=b&&0<e.strstart&&(i=s[r=e.strstart-1])===s[++r]&&i===s[++r]&&i===s[++r]){a=e.strstart+x;do{}while(i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&r<a);e.match_length=x-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=b?(n=o._tr_tally(e,1,e.match_length-b),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(I(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(I(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?1:2}(r,t):i[r.level].func(r,t);if(3!==p&&4!==p||(r.status=666),1===p||3===p)return 0===e.avail_out&&(r.last_flush=-1),u;if(2===p&&(1===t?o._tr_align(r):5!==t&&(o._tr_stored_block(r,0,0,!1),3===t&&(M(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),S(e),0===e.avail_out))return r.last_flush=-1,u}return 4!==t?u:r.wrap<=0?1:(2===r.wrap?(L(r,255&e.adler),L(r,e.adler>>8&255),L(r,e.adler>>16&255),L(r,e.adler>>24&255),L(r,255&e.total_in),L(r,e.total_in>>8&255),L(r,e.total_in>>16&255),L(r,e.total_in>>24&255)):(T(r,e.adler>>>16),T(r,65535&e.adler)),S(e),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?u:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==A&&69!==t&&73!==t&&91!==t&&103!==t&&t!==C&&666!==t?_(e,d):(e.state=null,t===C?_(e,-3):u):d},n.deflateSetDictionary=function(e,t){var n,i,o,s,l,c,h,f,p=t.length;if(!e||!e.state)return d;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==A||n.lookahead)return d;for(1===s&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(M(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new r.Buf8(n.w_size),r.arraySet(f,t,p-n.w_size,n.w_size,0),t=f,p=n.w_size),l=e.avail_in,c=e.next_in,h=e.input,e.avail_in=p,e.next_in=0,e.input=t,N(n);n.lookahead>=b;){for(i=n.strstart,o=n.lookahead-(b-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+b-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--o;);n.strstart=i,n.lookahead=b-1,N(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=b-1,n.match_available=0,e.next_in=c,e.input=h,e.avail_in=l,n.wrap=s,u},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){"use strict";t.exports=function(e,t){var n,i,r,o,a,s,l,c,u,d,h,f,p,g,m,v,y,b,x,w,A,C,_,k,M;n=e.state,i=e.next_in,k=e.input,r=i+(e.avail_in-5),o=e.next_out,M=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,h=n.window,f=n.hold,p=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(f+=k[i++]<<p,p+=8,f+=k[i++]<<p,p+=8),b=g[f&v];t:for(;;){if(f>>>=x=b>>>24,p-=x,0==(x=b>>>16&255))M[o++]=65535&b;else{if(!(16&x)){if(0==(64&x)){b=g[(65535&b)+(f&(1<<x)-1)];continue t}if(32&x){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&b,(x&=15)&&(p<x&&(f+=k[i++]<<p,p+=8),w+=f&(1<<x)-1,f>>>=x,p-=x),p<15&&(f+=k[i++]<<p,p+=8,f+=k[i++]<<p,p+=8),b=m[f&y];n:for(;;){if(f>>>=x=b>>>24,p-=x,!(16&(x=b>>>16&255))){if(0==(64&x)){b=m[(65535&b)+(f&(1<<x)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(A=65535&b,p<(x&=15)&&(f+=k[i++]<<p,(p+=8)<x&&(f+=k[i++]<<p,p+=8)),l<(A+=f&(1<<x)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=x,p-=x,(x=o-a)<A){if(u<(x=A-x)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(_=h,(C=0)===d){if(C+=c-x,x<w){for(w-=x;M[o++]=h[C++],--x;);C=o-A,_=M}}else if(d<x){if(C+=c+d-x,(x-=d)<w){for(w-=x;M[o++]=h[C++],--x;);if(C=0,d<w){for(w-=x=d;M[o++]=h[C++],--x;);C=o-A,_=M}}}else if(C+=d-x,x<w){for(w-=x;M[o++]=h[C++],--x;);C=o-A,_=M}for(;2<w;)M[o++]=_[C++],M[o++]=_[C++],M[o++]=_[C++],w-=3;w&&(M[o++]=_[C++],1<w&&(M[o++]=_[C++]))}else{for(C=o-A;M[o++]=M[C++],M[o++]=M[C++],M[o++]=M[C++],2<(w-=3););w&&(M[o++]=M[C++],1<w&&(M[o++]=M[C++]))}break}}break}}while(i<r&&o<s);i-=w=p>>3,f&=(1<<(p-=w<<3))-1,e.next_in=i,e.next_out=o,e.avail_in=i<r?r-i+5:5-(i-r),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=f,n.bits=p}},{}],49:[function(e,t,n){"use strict";var i=e("../utils/common"),r=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),l=0,c=-2,u=1,d=852,h=592;function f(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function p(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function g(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=u,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new i.Buf32(d),t.distcode=t.distdyn=new i.Buf32(h),t.sane=1,t.back=-1,l):c}function m(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,g(e)):c}function v(e,t){var n,i;return e&&e.state?(i=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?c:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,m(e))):c}function y(e,t){var n,i;return e?(i=new p,(e.state=i).window=null,(n=v(e,t))!==l&&(e.state=null),n):c}var b,x,w=!0;function A(e){if(w){var t;for(b=new i.Buf32(512),x=new i.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,b,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,x,0,e.work,{bits:5}),w=!1}e.lencode=b,e.lenbits=9,e.distcode=x,e.distbits=5}function C(e,t,n,r){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new i.Buf8(a.wsize)),r>=a.wsize?(i.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(r<(o=a.wsize-a.wnext)&&(o=r),i.arraySet(a.window,t,n-r,o,a.wnext),(r-=o)?(i.arraySet(a.window,t,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=m,n.inflateReset2=v,n.inflateResetKeep=g,n.inflateInit=function(e){return y(e,15)},n.inflateInit2=y,n.inflate=function(e,t){var n,d,h,p,g,m,v,y,b,x,w,_,k,M,S,I,L,T,D,N,O,j,E,F,P=0,z=new i.Buf8(4),R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return c;12===(n=e.state).mode&&(n.mode=13),g=e.next_out,h=e.output,v=e.avail_out,p=e.next_in,d=e.input,m=e.avail_in,y=n.hold,b=n.bits,x=m,w=v,j=l;e:for(;;)switch(n.mode){case u:if(0===n.wrap){n.mode=13;break}for(;b<16;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(2&n.wrap&&35615===y){z[n.check=0]=255&y,z[1]=y>>>8&255,n.check=o(n.check,z,2,0),b=y=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&y)<<8)+(y>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&y)){e.msg="unknown compression method",n.mode=30;break}if(b-=4,O=8+(15&(y>>>=4)),0===n.wbits)n.wbits=O;else if(O>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<O,e.adler=n.check=1,n.mode=512&y?10:12,b=y=0;break;case 2:for(;b<16;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(n.flags=y,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=y>>8&1),512&n.flags&&(z[0]=255&y,z[1]=y>>>8&255,n.check=o(n.check,z,2,0)),b=y=0,n.mode=3;case 3:for(;b<32;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.head&&(n.head.time=y),512&n.flags&&(z[0]=255&y,z[1]=y>>>8&255,z[2]=y>>>16&255,z[3]=y>>>24&255,n.check=o(n.check,z,4,0)),b=y=0,n.mode=4;case 4:for(;b<16;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.head&&(n.head.xflags=255&y,n.head.os=y>>8),512&n.flags&&(z[0]=255&y,z[1]=y>>>8&255,n.check=o(n.check,z,2,0)),b=y=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.length=y,n.head&&(n.head.extra_len=y),512&n.flags&&(z[0]=255&y,z[1]=y>>>8&255,n.check=o(n.check,z,2,0)),b=y=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(m<(_=n.length)&&(_=m),_&&(n.head&&(O=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,d,p,_,O)),512&n.flags&&(n.check=o(n.check,d,_,p)),m-=_,p+=_,n.length-=_),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===m)break e;for(_=0;O=d[p+_++],n.head&&O&&n.length<65536&&(n.head.name+=String.fromCharCode(O)),O&&_<m;);if(512&n.flags&&(n.check=o(n.check,d,_,p)),m-=_,p+=_,O)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===m)break e;for(_=0;O=d[p+_++],n.head&&O&&n.length<65536&&(n.head.comment+=String.fromCharCode(O)),O&&_<m;);if(512&n.flags&&(n.check=o(n.check,d,_,p)),m-=_,p+=_,O)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;b<16;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(y!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}b=y=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;b<32;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}e.adler=n.check=f(y),b=y=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=g,e.avail_out=v,e.next_in=p,e.avail_in=m,n.hold=y,n.bits=b,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){y>>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}switch(n.last=1&y,b-=1,3&(y>>>=1)){case 0:n.mode=14;break;case 1:if(A(n),n.mode=20,6!==t)break;y>>>=2,b-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}y>>>=2,b-=2;break;case 14:for(y>>>=7&b,b-=7&b;b<32;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if((65535&y)!=(y>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&y,b=y=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(_=n.length){if(m<_&&(_=m),v<_&&(_=v),0===_)break e;i.arraySet(h,d,p,_,g),m-=_,p+=_,v-=_,g+=_,n.length-=_;break}n.mode=12;break;case 17:for(;b<14;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(n.nlen=257+(31&y),y>>>=5,b-=5,n.ndist=1+(31&y),y>>>=5,b-=5,n.ncode=4+(15&y),y>>>=4,b-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;b<3;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.lens[R[n.have++]]=7&y,y>>>=3,b-=3}for(;n.have<19;)n.lens[R[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},j=s(0,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,j){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;I=(P=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,L=65535&P,!((S=P>>>24)<=b);){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(L<16)y>>>=S,b-=S,n.lens[n.have++]=L;else{if(16===L){for(F=S+2;b<F;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(y>>>=S,b-=S,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}O=n.lens[n.have-1],_=3+(3&y),y>>>=2,b-=2}else if(17===L){for(F=S+3;b<F;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}b-=S,O=0,_=3+(7&(y>>>=S)),y>>>=3,b-=3}else{for(F=S+7;b<F;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}b-=S,O=0,_=11+(127&(y>>>=S)),y>>>=7,b-=7}if(n.have+_>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;_--;)n.lens[n.have++]=O}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,E={bits:n.lenbits},j=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,j){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},j=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,j){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=m&&258<=v){e.next_out=g,e.avail_out=v,e.next_in=p,e.avail_in=m,n.hold=y,n.bits=b,a(e,w),g=e.next_out,h=e.output,v=e.avail_out,p=e.next_in,d=e.input,m=e.avail_in,y=n.hold,b=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;I=(P=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,L=65535&P,!((S=P>>>24)<=b);){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(I&&0==(240&I)){for(T=S,D=I,N=L;I=(P=n.lencode[N+((y&(1<<T+D)-1)>>T)])>>>16&255,L=65535&P,!(T+(S=P>>>24)<=b);){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}y>>>=T,b-=T,n.back+=T}if(y>>>=S,b-=S,n.back+=S,n.length=L,0===I){n.mode=26;break}if(32&I){n.back=-1,n.mode=12;break}if(64&I){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&I,n.mode=22;case 22:if(n.extra){for(F=n.extra;b<F;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.length+=y&(1<<n.extra)-1,y>>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;I=(P=n.distcode[y&(1<<n.distbits)-1])>>>16&255,L=65535&P,!((S=P>>>24)<=b);){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(0==(240&I)){for(T=S,D=I,N=L;I=(P=n.distcode[N+((y&(1<<T+D)-1)>>T)])>>>16&255,L=65535&P,!(T+(S=P>>>24)<=b);){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}y>>>=T,b-=T,n.back+=T}if(y>>>=S,b-=S,n.back+=S,64&I){e.msg="invalid distance code",n.mode=30;break}n.offset=L,n.extra=15&I,n.mode=24;case 24:if(n.extra){for(F=n.extra;b<F;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}n.offset+=y&(1<<n.extra)-1,y>>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===v)break e;if(_=w-v,n.offset>_){if((_=n.offset-_)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}k=_>n.wnext?(_-=n.wnext,n.wsize-_):n.wnext-_,_>n.length&&(_=n.length),M=n.window}else M=h,k=g-n.offset,_=n.length;for(v<_&&(_=v),v-=_,n.length-=_;h[g++]=M[k++],--_;);0===n.length&&(n.mode=21);break;case 26:if(0===v)break e;h[g++]=n.length,v--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===m)break e;m--,y|=d[p++]<<b,b+=8}if(w-=v,e.total_out+=w,n.total+=w,w&&(e.adler=n.check=n.flags?o(n.check,h,w,g-w):r(n.check,h,w,g-w)),w=v,(n.flags?y:f(y))!==n.check){e.msg="incorrect data check",n.mode=30;break}b=y=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;b<32;){if(0===m)break e;m--,y+=d[p++]<<b,b+=8}if(y!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}b=y=0}n.mode=29;case 29:j=1;break e;case 30:j=-3;break e;case 31:return-4;default:return c}return e.next_out=g,e.avail_out=v,e.next_in=p,e.avail_in=m,n.hold=y,n.bits=b,(n.wsize||w!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&C(e,e.output,e.next_out,w-e.avail_out)?(n.mode=31,-4):(x-=e.avail_in,w-=e.avail_out,e.total_in+=x,e.total_out+=w,n.total+=w,n.wrap&&w&&(e.adler=n.check=n.flags?o(n.check,h,w,e.next_out-w):r(n.check,h,w,e.next_out-w)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==x&&0===w||4===t)&&j===l&&(j=-5),j)},n.inflateEnd=function(e){if(!e||!e.state)return c;var t=e.state;return t.window&&(t.window=null),e.state=null,l},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?c:((n.head=t).done=!1,l):c},n.inflateSetDictionary=function(e,t){var n,i=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?c:11===n.mode&&r(1,t,i,0)!==n.check?-3:C(e,t,i,i)?(n.mode=31,-4):(n.havedict=1,l):c},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var i=e("../utils/common"),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,l,c,u,d,h){var f,p,g,m,v,y,b,x,w,A=h.bits,C=0,_=0,k=0,M=0,S=0,I=0,L=0,T=0,D=0,N=0,O=null,j=0,E=new i.Buf16(16),F=new i.Buf16(16),P=null,z=0;for(C=0;C<=15;C++)E[C]=0;for(_=0;_<l;_++)E[t[n+_]]++;for(S=A,M=15;1<=M&&0===E[M];M--);if(M<S&&(S=M),0===M)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(k=1;k<M&&0===E[k];k++);for(S<k&&(S=k),C=T=1;C<=15;C++)if(T<<=1,(T-=E[C])<0)return-1;if(0<T&&(0===e||1!==M))return-1;for(F[1]=0,C=1;C<15;C++)F[C+1]=F[C]+E[C];for(_=0;_<l;_++)0!==t[n+_]&&(d[F[t[n+_]]++]=_);if(y=0===e?(O=P=d,19):1===e?(O=r,j-=257,P=o,z-=257,256):(O=a,P=s,-1),C=k,v=u,L=_=N=0,g=-1,m=(D=1<<(I=S))-1,1===e&&852<D||2===e&&592<D)return 1;for(;;){for(b=C-L,w=d[_]<y?(x=0,d[_]):d[_]>y?(x=P[z+d[_]],O[j+d[_]]):(x=96,0),f=1<<C-L,k=p=1<<I;c[v+(N>>L)+(p-=f)]=b<<24|x<<16|w|0,0!==p;);for(f=1<<C-1;N&f;)f>>=1;if(0!==f?(N&=f-1,N+=f):N=0,_++,0==--E[C]){if(C===M)break;C=t[n+d[_]]}if(S<C&&(N&m)!==g){for(0===L&&(L=S),v+=k,T=1<<(I=C-L);I+L<M&&!((T-=E[I+L])<=0);)I++,T<<=1;if(D+=1<<I,1===e&&852<D||2===e&&592<D)return 1;c[g=N&m]=S<<24|I<<16|v-u|0}}return 0!==N&&(c[v+N]=C-L<<24|64<<16|0),h.bits=S,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){"use strict";var i=e("../utils/common");function r(e){for(var t=e.length;0<=--t;)e[t]=0}var o=256,a=286,s=30,l=15,c=16,u=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],d=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],f=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);r(p);var g=new Array(60);r(g);var m=new Array(512);r(m);var v=new Array(256);r(v);var y=new Array(29);r(y);var b,x,w,A=new Array(s);function C(e,t,n,i,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}function _(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function k(e){return e<256?m[e]:m[256+(e>>>7)]}function M(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function S(e,t,n){e.bi_valid>c-n?(e.bi_buf|=t<<e.bi_valid&65535,M(e,e.bi_buf),e.bi_buf=t>>c-e.bi_valid,e.bi_valid+=n-c):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function I(e,t,n){S(e,n[2*t],n[2*t+1])}function L(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function T(e,t,n){var i,r,o=new Array(l+1),a=0;for(i=1;i<=l;i++)o[i]=a=a+n[i-1]<<1;for(r=0;r<=t;r++){var s=e[2*r+1];0!==s&&(e[2*r]=L(o[s]++,s))}}function D(e){var t;for(t=0;t<a;t++)e.dyn_ltree[2*t]=0;for(t=0;t<s;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function N(e){8<e.bi_valid?M(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function O(e,t,n,i){var r=2*t,o=2*n;return e[r]<e[o]||e[r]===e[o]&&i[t]<=i[n]}function j(e,t,n){for(var i=e.heap[n],r=n<<1;r<=e.heap_len&&(r<e.heap_len&&O(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!O(t,i,e.heap[r],e.depth));)e.heap[n]=e.heap[r],n=r,r<<=1;e.heap[n]=i}function E(e,t,n){var i,r,a,s,l=0;if(0!==e.last_lit)for(;i=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],r=e.pending_buf[e.l_buf+l],l++,0===i?I(e,r,t):(I(e,(a=v[r])+o+1,t),0!==(s=u[a])&&S(e,r-=y[a],s),I(e,a=k(--i),n),0!==(s=d[a])&&S(e,i-=A[a],s)),l<e.last_lit;);I(e,256,t)}function F(e,t){var n,i,r,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<c;n++)0!==o[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(r=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[r]=0,e.opt_len--,s&&(e.static_len-=a[2*r+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)j(e,o,n);for(r=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],j(e,o,1),i=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=i,o[2*r]=o[2*n]+o[2*i],e.depth[r]=(e.depth[n]>=e.depth[i]?e.depth[n]:e.depth[i])+1,o[2*n+1]=o[2*i+1]=r,e.heap[1]=r++,j(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,i,r,o,a,s,c=t.dyn_tree,u=t.max_code,d=t.stat_desc.static_tree,h=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,g=t.stat_desc.max_length,m=0;for(o=0;o<=l;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)g<(o=c[2*c[2*(i=e.heap[n])+1]+1]+1)&&(o=g,m++),c[2*i+1]=o,u<i||(e.bl_count[o]++,a=0,p<=i&&(a=f[i-p]),s=c[2*i],e.opt_len+=s*(o+a),h&&(e.static_len+=s*(d[2*i+1]+a)));if(0!==m){do{for(o=g-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[g]--,m-=2}while(0<m);for(o=g;0!==o;o--)for(i=e.bl_count[o];0!==i;)u<(r=e.heap[--n])||(c[2*r+1]!==o&&(e.opt_len+=(o-c[2*r+1])*c[2*r],c[2*r+1]=o),i--)}}(e,t),T(o,u,e.bl_count)}function P(e,t,n){var i,r,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,i=0;i<=n;i++)r=a,a=t[2*(i+1)+1],++s<l&&r===a||(s<c?e.bl_tree[2*r]+=s:0!==r?(r!==o&&e.bl_tree[2*r]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=r,c=(s=0)===a?(l=138,3):r===a?(l=6,3):(l=7,4))}function z(e,t,n){var i,r,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),i=0;i<=n;i++)if(r=a,a=t[2*(i+1)+1],!(++s<l&&r===a)){if(s<c)for(;I(e,r,e.bl_tree),0!=--s;);else 0!==r?(r!==o&&(I(e,r,e.bl_tree),s--),I(e,16,e.bl_tree),S(e,s-3,2)):s<=10?(I(e,17,e.bl_tree),S(e,s-3,3)):(I(e,18,e.bl_tree),S(e,s-11,7));o=r,c=(s=0)===a?(l=138,3):r===a?(l=6,3):(l=7,4)}}r(A);var R=!1;function B(e,t,n,r){S(e,0+(r?1:0),3),function(e,t,n,r){N(e),M(e,n),M(e,~n),i.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}n._tr_init=function(e){R||(function(){var e,t,n,i,r,o=new Array(l+1);for(i=n=0;i<28;i++)for(y[i]=n,e=0;e<1<<u[i];e++)v[n++]=i;for(v[n-1]=i,i=r=0;i<16;i++)for(A[i]=r,e=0;e<1<<d[i];e++)m[r++]=i;for(r>>=7;i<s;i++)for(A[i]=r<<7,e=0;e<1<<d[i]-7;e++)m[256+r++]=i;for(t=0;t<=l;t++)o[t]=0;for(e=0;e<=143;)p[2*e+1]=8,e++,o[8]++;for(;e<=255;)p[2*e+1]=9,e++,o[9]++;for(;e<=279;)p[2*e+1]=7,e++,o[7]++;for(;e<=287;)p[2*e+1]=8,e++,o[8]++;for(T(p,287,o),e=0;e<s;e++)g[2*e+1]=5,g[2*e]=L(e,5);b=new C(p,u,257,a,l),x=new C(g,d,0,s,l),w=new C(new Array(0),h,0,19,7)}(),R=!0),e.l_desc=new _(e.dyn_ltree,b),e.d_desc=new _(e.dyn_dtree,x),e.bl_desc=new _(e.bl_tree,w),e.bi_buf=0,e.bi_valid=0,D(e)},n._tr_stored_block=B,n._tr_flush_block=function(e,t,n,i){var r,a,s=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),F(e,e.l_desc),F(e,e.d_desc),s=function(e){var t;for(P(e,e.dyn_ltree,e.l_desc.max_code),P(e,e.dyn_dtree,e.d_desc.max_code),F(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*f[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),r=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=r&&(r=a)):r=a=n+5,n+4<=r&&-1!==t?B(e,t,n,i):4===e.strategy||a===r?(S(e,2+(i?1:0),3),E(e,p,g)):(S(e,4+(i?1:0),3),function(e,t,n,i){var r;for(S(e,t-257,5),S(e,n-1,5),S(e,i-4,4),r=0;r<i;r++)S(e,e.bl_tree[2*f[r]+1],3);z(e,e.dyn_ltree,t-1),z(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),E(e,e.dyn_ltree,e.dyn_dtree)),D(e),i&&N(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(v[n]+o+1)]++,e.dyn_dtree[2*k(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){S(e,2,3),I(e,256,p),function(e){16===e.bi_valid?(M(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,i){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var n,i,r,o,a=1,s={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,n="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick((function(){h(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){r.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(i=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(h,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var r={callback:e,args:t};return s[a]=r,n(a),a++},u.clearImmediate=d}function d(e){delete s[e]}function h(e){if(l)setTimeout(h,0,e);else{var n=s[e];if(n){l=!0;try{!function(e){var n=e.callback,i=e.args;switch(i.length){case 0:n();break;case 1:n(i[0]);break;case 2:n(i[0],i[1]);break;case 3:n(i[0],i[1],i[2]);break;default:n.apply(t,i)}}(n)}finally{d(e),l=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&h(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},998:(e,t,n)=>{var i,r;!function(){var o,a,s,l,c,u,d,h,f,p,g,m,v,y,b,x,w,A,C,_,k,M,S,I,L,T,D,N,O,j,E=function(e){var t=new E.Builder;return t.pipeline.add(E.trimmer,E.stopWordFilter,E.stemmer),t.searchPipeline.add(E.stemmer),e.call(t,t),t.build()};E.version="2.3.9",E.utils={},E.utils.warn=(o=this,function(e){o.console&&console.warn&&console.warn(e)}),E.utils.asString=function(e){return null==e?"":e.toString()},E.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),i=0;i<n.length;i++){var r=n[i],o=e[r];if(Array.isArray(o))t[r]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[r]=o}}return t},E.FieldRef=function(e,t,n){this.docRef=e,this.fieldName=t,this._stringValue=n},E.FieldRef.joiner="/",E.FieldRef.fromString=function(e){var t=e.indexOf(E.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var n=e.slice(0,t),i=e.slice(t+1);return new E.FieldRef(i,n,e)},E.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+E.FieldRef.joiner+this.docRef),this._stringValue},E.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},E.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},E.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},E.Set.prototype.contains=function(e){return!!this.elements[e]},E.Set.prototype.intersect=function(e){var t,n,i,r=[];if(e===E.Set.complete)return this;if(e===E.Set.empty)return e;this.length<e.length?(t=this,n=e):(t=e,n=this),i=Object.keys(t.elements);for(var o=0;o<i.length;o++){var a=i[o];a in n.elements&&r.push(a)}return new E.Set(r)},E.Set.prototype.union=function(e){return e===E.Set.complete?E.Set.complete:e===E.Set.empty?this:new E.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},E.idf=function(e,t){var n=0;for(var i in e)"_index"!=i&&(n+=Object.keys(e[i]).length);var r=(t-n+.5)/(n+.5);return Math.log(1+Math.abs(r))},E.Token=function(e,t){this.str=e||"",this.metadata=t||{}},E.Token.prototype.toString=function(){return this.str},E.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},E.Token.prototype.clone=function(e){return e=e||function(e){return e},new E.Token(e(this.str,this.metadata),this.metadata)},E.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new E.Token(E.utils.asString(e).toLowerCase(),E.utils.clone(t))}));for(var n=e.toString().toLowerCase(),i=n.length,r=[],o=0,a=0;o<=i;o++){var s=o-a;if(n.charAt(o).match(E.tokenizer.separator)||o==i){if(s>0){var l=E.utils.clone(t)||{};l.position=[a,s],l.index=r.length,r.push(new E.Token(n.slice(a,o),l))}a=o+1}}return r},E.tokenizer.separator=/[\s\-]+/,E.Pipeline=function(){this._stack=[]},E.Pipeline.registeredFunctions=Object.create(null),E.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&E.utils.warn("Overwriting existing registered function: "+t),e.label=t,E.Pipeline.registeredFunctions[e.label]=e},E.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||E.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},E.Pipeline.load=function(e){var t=new E.Pipeline;return e.forEach((function(e){var n=E.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},E.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){E.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},E.Pipeline.prototype.after=function(e,t){E.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},E.Pipeline.prototype.before=function(e,t){E.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},E.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},E.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n<t;n++){for(var i=this._stack[n],r=[],o=0;o<e.length;o++){var a=i(e[o],o,e);if(null!=a&&""!==a)if(Array.isArray(a))for(var s=0;s<a.length;s++)r.push(a[s]);else r.push(a)}e=r}return e},E.Pipeline.prototype.runString=function(e,t){var n=new E.Token(e,t);return this.run([n]).map((function(e){return e.toString()}))},E.Pipeline.prototype.reset=function(){this._stack=[]},E.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return E.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},E.Vector=function(e){this._magnitude=0,this.elements=e||[]},E.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,n=this.elements.length/2,i=n-t,r=Math.floor(i/2),o=this.elements[2*r];i>1&&(o<e&&(t=r),o>e&&(n=r),o!=e);)i=n-t,r=t+Math.floor(i/2),o=this.elements[2*r];return o==e||o>e?2*r:o<e?2*(r+1):void 0},E.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},E.Vector.prototype.upsert=function(e,t,n){this._magnitude=0;var i=this.positionForIndex(e);this.elements[i]==e?this.elements[i+1]=n(this.elements[i+1],t):this.elements.splice(i,0,e,t)},E.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,n=1;n<t;n+=2){var i=this.elements[n];e+=i*i}return this._magnitude=Math.sqrt(e)},E.Vector.prototype.dot=function(e){for(var t=0,n=this.elements,i=e.elements,r=n.length,o=i.length,a=0,s=0,l=0,c=0;l<r&&c<o;)(a=n[l])<(s=i[c])?l+=2:a>s?c+=2:a==s&&(t+=n[l+1]*i[c+1],l+=2,c+=2);return t},E.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},E.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t<this.elements.length;t+=2,n++)e[n]=this.elements[t];return e},E.Vector.prototype.toJSON=function(){return this.elements},E.stemmer=(a={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},s={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(c="[^aeiou][^aeiouy]*")+")?"+(u=(l="[aeiouy]")+"[aeiou]*")+c+"("+u+")?$",h="^("+c+")?"+u+c+u+c,f="^("+c+")?"+l,p=new RegExp("^("+c+")?"+u+c),g=new RegExp(h),m=new RegExp(d),v=new RegExp(f),y=/^(.+?)(ss|i)es$/,b=/^(.+?)([^s])s$/,x=/^(.+?)eed$/,w=/^(.+?)(ed|ing)$/,A=/.$/,C=/(at|bl|iz)$/,_=new RegExp("([^aeiouylsz])\\1$"),k=new RegExp("^"+c+l+"[^aeiouwxy]$"),M=/^(.+?[^aeiou])y$/,S=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,I=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,L=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,T=/^(.+?)(s|t)(ion)$/,D=/^(.+?)e$/,N=/ll$/,O=new RegExp("^"+c+l+"[^aeiouwxy]$"),j=function(e){var t,n,i,r,o,l,c;if(e.length<3)return e;if("y"==(i=e.substr(0,1))&&(e=i.toUpperCase()+e.substr(1)),o=b,(r=y).test(e)?e=e.replace(r,"$1$2"):o.test(e)&&(e=e.replace(o,"$1$2")),o=w,(r=x).test(e)){var u=r.exec(e);(r=p).test(u[1])&&(r=A,e=e.replace(r,""))}else o.test(e)&&(t=(u=o.exec(e))[1],(o=v).test(t)&&(l=_,c=k,(o=C).test(e=t)?e+="e":l.test(e)?(r=A,e=e.replace(r,"")):c.test(e)&&(e+="e")));return(r=M).test(e)&&(e=(t=(u=r.exec(e))[1])+"i"),(r=S).test(e)&&(t=(u=r.exec(e))[1],n=u[2],(r=p).test(t)&&(e=t+a[n])),(r=I).test(e)&&(t=(u=r.exec(e))[1],n=u[2],(r=p).test(t)&&(e=t+s[n])),o=T,(r=L).test(e)?(t=(u=r.exec(e))[1],(r=g).test(t)&&(e=t)):o.test(e)&&(t=(u=o.exec(e))[1]+u[2],(o=g).test(t)&&(e=t)),(r=D).test(e)&&(t=(u=r.exec(e))[1],o=m,l=O,((r=g).test(t)||o.test(t)&&!l.test(t))&&(e=t)),o=g,(r=N).test(e)&&o.test(e)&&(r=A,e=e.replace(r,"")),"y"==i&&(e=i.toLowerCase()+e.substr(1)),e},function(e){return e.update(j)}),E.Pipeline.registerFunction(E.stemmer,"stemmer"),E.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},E.stopWordFilter=E.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),E.Pipeline.registerFunction(E.stopWordFilter,"stopWordFilter"),E.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},E.Pipeline.registerFunction(E.trimmer,"trimmer"),E.TokenSet=function(){this.final=!1,this.edges={},this.id=E.TokenSet._nextId,E.TokenSet._nextId+=1},E.TokenSet._nextId=1,E.TokenSet.fromArray=function(e){for(var t=new E.TokenSet.Builder,n=0,i=e.length;n<i;n++)t.insert(e[n]);return t.finish(),t.root},E.TokenSet.fromClause=function(e){return"editDistance"in e?E.TokenSet.fromFuzzyString(e.term,e.editDistance):E.TokenSet.fromString(e.term)},E.TokenSet.fromFuzzyString=function(e,t){for(var n=new E.TokenSet,i=[{node:n,editsRemaining:t,str:e}];i.length;){var r=i.pop();if(r.str.length>0){var o,a=r.str.charAt(0);a in r.node.edges?o=r.node.edges[a]:(o=new E.TokenSet,r.node.edges[a]=o),1==r.str.length&&(o.final=!0),i.push({node:o,editsRemaining:r.editsRemaining,str:r.str.slice(1)})}if(0!=r.editsRemaining){if("*"in r.node.edges)var s=r.node.edges["*"];else s=new E.TokenSet,r.node.edges["*"]=s;if(0==r.str.length&&(s.final=!0),i.push({node:s,editsRemaining:r.editsRemaining-1,str:r.str}),r.str.length>1&&i.push({node:r.node,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)}),1==r.str.length&&(r.node.final=!0),r.str.length>=1){if("*"in r.node.edges)var l=r.node.edges["*"];else l=new E.TokenSet,r.node.edges["*"]=l;1==r.str.length&&(l.final=!0),i.push({node:l,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)})}if(r.str.length>1){var c,u=r.str.charAt(0),d=r.str.charAt(1);d in r.node.edges?c=r.node.edges[d]:(c=new E.TokenSet,r.node.edges[d]=c),1==r.str.length&&(c.final=!0),i.push({node:c,editsRemaining:r.editsRemaining-1,str:u+r.str.slice(2)})}}}return n},E.TokenSet.fromString=function(e){for(var t=new E.TokenSet,n=t,i=0,r=e.length;i<r;i++){var o=e[i],a=i==r-1;if("*"==o)t.edges[o]=t,t.final=a;else{var s=new E.TokenSet;s.final=a,t.edges[o]=s,t=s}}return n},E.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var n=t.pop(),i=Object.keys(n.node.edges),r=i.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var o=0;o<r;o++){var a=i[o];t.push({prefix:n.prefix.concat(a),node:n.node.edges[a]})}}return e},E.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),n=t.length,i=0;i<n;i++){var r=t[i];e=e+r+this.edges[r].id}return e},E.TokenSet.prototype.intersect=function(e){for(var t=new E.TokenSet,n=void 0,i=[{qNode:e,output:t,node:this}];i.length;){n=i.pop();for(var r=Object.keys(n.qNode.edges),o=r.length,a=Object.keys(n.node.edges),s=a.length,l=0;l<o;l++)for(var c=r[l],u=0;u<s;u++){var d=a[u];if(d==c||"*"==c){var h=n.node.edges[d],f=n.qNode.edges[c],p=h.final&&f.final,g=void 0;d in n.output.edges?(g=n.output.edges[d]).final=g.final||p:((g=new E.TokenSet).final=p,n.output.edges[d]=g),i.push({qNode:f,output:g,node:h})}}}return t},E.TokenSet.Builder=function(){this.previousWord="",this.root=new E.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},E.TokenSet.Builder.prototype.insert=function(e){var t,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var i=0;i<e.length&&i<this.previousWord.length&&e[i]==this.previousWord[i];i++)n++;for(this.minimize(n),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child,i=n;i<e.length;i++){var r=new E.TokenSet,o=e[i];t.edges[o]=r,this.uncheckedNodes.push({parent:t,char:o,child:r}),t=r}t.final=!0,this.previousWord=e},E.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},E.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var n=this.uncheckedNodes[t],i=n.child.toString();i in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[i]:(n.child._str=i,this.minimizedNodes[i]=n.child),this.uncheckedNodes.pop()}},E.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},E.Index.prototype.search=function(e){return this.query((function(t){new E.QueryParser(e,t).parse()}))},E.Index.prototype.query=function(e){for(var t=new E.Query(this.fields),n=Object.create(null),i=Object.create(null),r=Object.create(null),o=Object.create(null),a=Object.create(null),s=0;s<this.fields.length;s++)i[this.fields[s]]=new E.Vector;for(e.call(t,t),s=0;s<t.clauses.length;s++){var l,c=t.clauses[s],u=E.Set.empty;l=c.usePipeline?this.pipeline.runString(c.term,{fields:c.fields}):[c.term];for(var d=0;d<l.length;d++){var h=l[d];c.term=h;var f=E.TokenSet.fromClause(c),p=this.tokenSet.intersect(f).toArray();if(0===p.length&&c.presence===E.Query.presence.REQUIRED){for(var g=0;g<c.fields.length;g++)o[D=c.fields[g]]=E.Set.empty;break}for(var m=0;m<p.length;m++){var v=p[m],y=this.invertedIndex[v],b=y._index;for(g=0;g<c.fields.length;g++){var x=y[D=c.fields[g]],w=Object.keys(x),A=v+"/"+D,C=new E.Set(w);if(c.presence==E.Query.presence.REQUIRED&&(u=u.union(C),void 0===o[D]&&(o[D]=E.Set.complete)),c.presence!=E.Query.presence.PROHIBITED){if(i[D].upsert(b,c.boost,(function(e,t){return e+t})),!r[A]){for(var _=0;_<w.length;_++){var k,M=w[_],S=new E.FieldRef(M,D),I=x[M];void 0===(k=n[S])?n[S]=new E.MatchData(v,D,I):k.add(v,D,I)}r[A]=!0}}else void 0===a[D]&&(a[D]=E.Set.empty),a[D]=a[D].union(C)}}}if(c.presence===E.Query.presence.REQUIRED)for(g=0;g<c.fields.length;g++)o[D=c.fields[g]]=o[D].intersect(u)}var L=E.Set.complete,T=E.Set.empty;for(s=0;s<this.fields.length;s++){var D;o[D=this.fields[s]]&&(L=L.intersect(o[D])),a[D]&&(T=T.union(a[D]))}var N=Object.keys(n),O=[],j=Object.create(null);if(t.isNegated())for(N=Object.keys(this.fieldVectors),s=0;s<N.length;s++){S=N[s];var F=E.FieldRef.fromString(S);n[S]=new E.MatchData}for(s=0;s<N.length;s++){var P=(F=E.FieldRef.fromString(N[s])).docRef;if(L.contains(P)&&!T.contains(P)){var z,R=this.fieldVectors[F],B=i[F.fieldName].similarity(R);if(void 0!==(z=j[P]))z.score+=B,z.matchData.combine(n[F]);else{var W={ref:P,score:B,matchData:n[F]};j[P]=W,O.push(W)}}}return O.sort((function(e,t){return t.score-e.score}))},E.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:E.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},E.Index.load=function(e){var t={},n={},i=e.fieldVectors,r=Object.create(null),o=e.invertedIndex,a=new E.TokenSet.Builder,s=E.Pipeline.load(e.pipeline);e.version!=E.version&&E.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+E.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<i.length;l++){var c=(d=i[l])[0],u=d[1];n[c]=new E.Vector(u)}for(l=0;l<o.length;l++){var d,h=(d=o[l])[0],f=d[1];a.insert(h),r[h]=f}return a.finish(),t.fields=e.fields,t.fieldVectors=n,t.invertedIndex=r,t.tokenSet=a.root,t.pipeline=s,new E.Index(t)},E.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=E.tokenizer,this.pipeline=new E.Pipeline,this.searchPipeline=new E.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},E.Builder.prototype.ref=function(e){this._ref=e},E.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},E.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},E.Builder.prototype.k1=function(e){this._k1=e},E.Builder.prototype.add=function(e,t){var n=e[this._ref],i=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var r=0;r<i.length;r++){var o=i[r],a=this._fields[o].extractor,s=a?a(e):e[o],l=this.tokenizer(s,{fields:[o]}),c=this.pipeline.run(l),u=new E.FieldRef(n,o),d=Object.create(null);this.fieldTermFrequencies[u]=d,this.fieldLengths[u]=0,this.fieldLengths[u]+=c.length;for(var h=0;h<c.length;h++){var f=c[h];if(null==d[f]&&(d[f]=0),d[f]+=1,null==this.invertedIndex[f]){var p=Object.create(null);p._index=this.termIndex,this.termIndex+=1;for(var g=0;g<i.length;g++)p[i[g]]=Object.create(null);this.invertedIndex[f]=p}null==this.invertedIndex[f][o][n]&&(this.invertedIndex[f][o][n]=Object.create(null));for(var m=0;m<this.metadataWhitelist.length;m++){var v=this.metadataWhitelist[m],y=f.metadata[v];null==this.invertedIndex[f][o][n][v]&&(this.invertedIndex[f][o][n][v]=[]),this.invertedIndex[f][o][n][v].push(y)}}}},E.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,n={},i={},r=0;r<t;r++){var o=E.FieldRef.fromString(e[r]),a=o.fieldName;i[a]||(i[a]=0),i[a]+=1,n[a]||(n[a]=0),n[a]+=this.fieldLengths[o]}var s=Object.keys(this._fields);for(r=0;r<s.length;r++){var l=s[r];n[l]=n[l]/i[l]}this.averageFieldLength=n},E.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),n=t.length,i=Object.create(null),r=0;r<n;r++){for(var o=E.FieldRef.fromString(t[r]),a=o.fieldName,s=this.fieldLengths[o],l=new E.Vector,c=this.fieldTermFrequencies[o],u=Object.keys(c),d=u.length,h=this._fields[a].boost||1,f=this._documents[o.docRef].boost||1,p=0;p<d;p++){var g,m,v,y=u[p],b=c[y],x=this.invertedIndex[y]._index;void 0===i[y]?(g=E.idf(this.invertedIndex[y],this.documentCount),i[y]=g):g=i[y],m=g*((this._k1+1)*b)/(this._k1*(1-this._b+this._b*(s/this.averageFieldLength[a]))+b),m*=h,m*=f,v=Math.round(1e3*m)/1e3,l.insert(x,v)}e[o]=l}this.fieldVectors=e},E.Builder.prototype.createTokenSet=function(){this.tokenSet=E.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},E.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new E.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},E.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},E.MatchData=function(e,t,n){for(var i=Object.create(null),r=Object.keys(n||{}),o=0;o<r.length;o++){var a=r[o];i[a]=n[a].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=i)},E.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),n=0;n<t.length;n++){var i=t[n],r=Object.keys(e.metadata[i]);null==this.metadata[i]&&(this.metadata[i]=Object.create(null));for(var o=0;o<r.length;o++){var a=r[o],s=Object.keys(e.metadata[i][a]);null==this.metadata[i][a]&&(this.metadata[i][a]=Object.create(null));for(var l=0;l<s.length;l++){var c=s[l];null==this.metadata[i][a][c]?this.metadata[i][a][c]=e.metadata[i][a][c]:this.metadata[i][a][c]=this.metadata[i][a][c].concat(e.metadata[i][a][c])}}}},E.MatchData.prototype.add=function(e,t,n){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=n);if(t in this.metadata[e])for(var i=Object.keys(n),r=0;r<i.length;r++){var o=i[r];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(n[o]):this.metadata[e][t][o]=n[o]}else this.metadata[e][t]=n},E.Query=function(e){this.clauses=[],this.allFields=e},E.Query.wildcard=new String("*"),E.Query.wildcard.NONE=0,E.Query.wildcard.LEADING=1,E.Query.wildcard.TRAILING=2,E.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},E.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=E.Query.wildcard.NONE),e.wildcard&E.Query.wildcard.LEADING&&e.term.charAt(0)!=E.Query.wildcard&&(e.term="*"+e.term),e.wildcard&E.Query.wildcard.TRAILING&&e.term.slice(-1)!=E.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=E.Query.presence.OPTIONAL),this.clauses.push(e),this},E.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=E.Query.presence.PROHIBITED)return!1;return!0},E.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,E.utils.clone(t))}),this),this;var n=t||{};return n.term=e.toString(),this.clause(n),this},E.QueryParseError=function(e,t,n){this.name="QueryParseError",this.message=e,this.start=t,this.end=n},E.QueryParseError.prototype=new Error,E.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},E.QueryLexer.prototype.run=function(){for(var e=E.QueryLexer.lexText;e;)e=e(this)},E.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,n=this.pos,i=0;i<this.escapeCharPositions.length;i++)n=this.escapeCharPositions[i],e.push(this.str.slice(t,n)),t=n+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},E.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},E.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},E.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return E.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},E.QueryLexer.prototype.width=function(){return this.pos-this.start},E.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},E.QueryLexer.prototype.backup=function(){this.pos-=1},E.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=E.QueryLexer.EOS&&this.backup()},E.QueryLexer.prototype.more=function(){return this.pos<this.length},E.QueryLexer.EOS="EOS",E.QueryLexer.FIELD="FIELD",E.QueryLexer.TERM="TERM",E.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",E.QueryLexer.BOOST="BOOST",E.QueryLexer.PRESENCE="PRESENCE",E.QueryLexer.lexField=function(e){return e.backup(),e.emit(E.QueryLexer.FIELD),e.ignore(),E.QueryLexer.lexText},E.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(E.QueryLexer.TERM)),e.ignore(),e.more())return E.QueryLexer.lexText},E.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(E.QueryLexer.EDIT_DISTANCE),E.QueryLexer.lexText},E.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(E.QueryLexer.BOOST),E.QueryLexer.lexText},E.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(E.QueryLexer.TERM)},E.QueryLexer.termSeparator=E.tokenizer.separator,E.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==E.QueryLexer.EOS)return E.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return E.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(E.QueryLexer.TERM),E.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(E.QueryLexer.TERM),E.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if(t.match(E.QueryLexer.termSeparator))return E.QueryLexer.lexTerm}else e.escapeCharacter()}},E.QueryParser=function(e,t){this.lexer=new E.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},E.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=E.QueryParser.parseClause;e;)e=e(this);return this.query},E.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},E.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},E.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},E.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case E.QueryLexer.PRESENCE:return E.QueryParser.parsePresence;case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new E.QueryParseError(n,t.start,t.end)}},E.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=E.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=E.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new E.QueryParseError(n,t.start,t.end)}var i=e.peekLexeme();if(null==i)throw n="expecting term or field, found nothing",new E.QueryParseError(n,t.start,t.end);switch(i.type){case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:throw n="expecting term or field, found '"+i.type+"'",new E.QueryParseError(n,i.start,i.end)}}},E.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),i="unrecognised field '"+t.str+"', possible fields: "+n;throw new E.QueryParseError(i,t.start,t.end)}e.currentClause.fields=[t.str];var r=e.peekLexeme();if(null==r)throw i="expecting term, found nothing",new E.QueryParseError(i,t.start,t.end);if(r.type===E.QueryLexer.TERM)return E.QueryParser.parseTerm;throw i="expecting term, found '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}},E.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case E.QueryLexer.TERM:return e.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return e.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return e.nextClause(),E.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+n.type+"'";throw new E.QueryParseError(i,n.start,n.end)}else e.nextClause()}},E.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var i="edit distance must be numeric";throw new E.QueryParseError(i,t.start,t.end)}e.currentClause.editDistance=n;var r=e.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return e.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return e.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return e.nextClause(),E.QueryParser.parsePresence;default:throw i="Unexpected lexeme type '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}else e.nextClause()}},E.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var i="boost must be numeric";throw new E.QueryParseError(i,t.start,t.end)}e.currentClause.boost=n;var r=e.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return e.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return e.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return e.nextClause(),E.QueryParser.parsePresence;default:throw i="Unexpected lexeme type '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}else e.nextClause()}},void 0===(r="function"==typeof(i=function(){return E})?i.call(t,n,t,e):i)||(e.exports=r)}()},420:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,n;function i(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function l(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,i=[],r=e.length;for(n=0;n<r;++n)i.push(t(e[n],n));return i}function h(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,i){return Ot(e,t,n,i,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){var t=null,i=!1,r=e._d&&!isNaN(e._d.getTime());return r&&(t=p(e),i=n.call(t.parsedDateParts,(function(e){return null!=e})),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i),e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?r:(e._isValid=r,e._isValid)}function m(e){var t=f(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=i.momentProperties=[],y=!1;function b(e,t){var n,i,r,o=v.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=p(t)),l(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)l(r=t[i=v[n]])||(e[i]=r);return e}function x(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,i.updateOffset(this),y=!1)}function w(e){return e instanceof x||null!=e&&null!=e._isAMomentObject}function A(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,t){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,o,s,l=[],c=arguments.length;for(o=0;o<c;o++){if(r="","object"==typeof arguments[o]){for(s in r+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[o];l.push(r)}A(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var _,k={};function M(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),k[e]||(A(t),k[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function I(e,t){var n,i=h({},e);for(n in t)a(t,n)&&(o(e[n])&&o(t[n])?(i[n]={},h(i[n],e[n]),h(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)a(e,n)&&!a(t,n)&&o(e[n])&&(i[n]=h({},i[n]));return i}function L(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,_=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};function T(e,t,n){var i=""+Math.abs(e),r=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,O={},j={};function E(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(j[e]=r),t&&(j[t[0]]=function(){return T(r.apply(this,arguments),t[1],t[2])}),n&&(j[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function F(e,t){return e.isValid()?(t=P(t,e.localeData()),O[t]=O[t]||function(e){var t,n,i,r=e.match(D);for(t=0,n=r.length;t<n;t++)j[r[t]]?r[t]=j[r[t]]:r[t]=(i=r[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,o="";for(i=0;i<n;i++)o+=S(r[i])?r[i].call(t,e):r[i];return o}}(t),O[t](e)):e.localeData().invalidDate()}function P(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(N.lastIndex=0;n>=0&&N.test(e);)e=e.replace(N,i),N.lastIndex=0,n-=1;return e}var z={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function R(e){return"string"==typeof e?z[e]||z[e.toLowerCase()]:void 0}function B(e){var t,n,i={};for(n in e)a(e,n)&&(t=R(n))&&(i[t]=e[n]);return i}var W={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var Y,U=/\d/,H=/\d\d/,V=/\d{3}/,Z=/\d{4}/,G=/[+-]?\d{6}/,Q=/\d\d?/,J=/\d\d\d\d?/,q=/\d\d\d\d\d\d?/,X=/\d{1,3}/,K=/\d{1,4}/,$=/[+-]?\d{1,6}/,ee=/\d+/,te=/[+-]?\d+/,ne=/Z|[+-]\d\d:?\d\d/gi,ie=/Z|[+-]\d\d(?::?\d\d)?/gi,re=/[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,oe=/^[1-9]\d?/,ae=/^([1-9]\d|\d)/;function se(e,t,n){Y[e]=S(t)?t:function(e,i){return e&&n?n:t}}function le(e,t){return a(Y,e)?Y[e](t._strict,t._locale):new RegExp(ce(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,r){return t||n||i||r}))))}function ce(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ue(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ue(t)),n}Y={};var he={};function fe(e,t){var n,i,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=de(e)}),i=e.length,n=0;n<i;n++)he[e[n]]=r}function pe(e,t){fe(e,(function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)}))}function ge(e,t,n){null!=t&&a(he,e)&&he[e](t,n._a,n,e)}function me(e){return e%4==0&&e%100!=0||e%400==0}var ve=0,ye=1,be=2,xe=3,we=4,Ae=5,Ce=6,_e=7,ke=8;function Me(e){return me(e)?366:365}E("Y",0,0,(function(){var e=this.year();return e<=9999?T(e,4):"+"+e})),E(0,["YY",2],0,(function(){return this.year()%100})),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),se("Y",te),se("YY",Q,H),se("YYYY",K,Z),se("YYYYY",$,G),se("YYYYYY",$,G),fe(["YYYYY","YYYYYY"],ve),fe("YYYY",(function(e,t){t[ve]=2===e.length?i.parseTwoDigitYear(e):de(e)})),fe("YY",(function(e,t){t[ve]=i.parseTwoDigitYear(e)})),fe("Y",(function(e,t){t[ve]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var Se,Ie=Le("FullYear",!0);function Le(e,t){return function(n){return null!=n?(De(this,e,n),i.updateOffset(this,t),this):Te(this,e)}}function Te(e,t){if(!e.isValid())return NaN;var n=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function De(e,t,n){var i,r,o,a,s;if(e.isValid()&&!isNaN(n)){switch(i=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),s=29!==(s=e.date())||1!==a||me(o)?s:28,r?i.setUTCFullYear(o,a,s):i.setFullYear(o,a,s)}}function Ne(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,i=(t%(n=12)+n)%n;return e+=(t-i)/12,1===i?me(e)?29:28:31-i%7%2}Se=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},E("M",["MM",2],"Mo",(function(){return this.month()+1})),E("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),E("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),se("M",Q,oe),se("MM",Q,H),se("MMM",(function(e,t){return t.monthsShortRegex(e)})),se("MMMM",(function(e,t){return t.monthsRegex(e)})),fe(["M","MM"],(function(e,t){t[ye]=de(e)-1})),fe(["MMM","MMMM"],(function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[ye]=r:p(n).invalidMonth=e}));var Oe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),je="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ee=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Fe=re,Pe=re;function ze(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=Se.call(this._shortMonthsParse,a))?r:null:-1!==(r=Se.call(this._longMonthsParse,a))?r:null:"MMM"===t?-1!==(r=Se.call(this._shortMonthsParse,a))||-1!==(r=Se.call(this._longMonthsParse,a))?r:null:-1!==(r=Se.call(this._longMonthsParse,a))||-1!==(r=Se.call(this._shortMonthsParse,a))?r:null}function Re(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=de(t);else if(!c(t=e.localeData().monthsParse(t)))return e;var n=t,i=e.date();return i=i<29?i:Math.min(i,Ne(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,i):e._d.setMonth(n,i),e}function Be(e){return null!=e?(Re(this,e),i.updateOffset(this,!0),this):Te(this,"Month")}function We(){function e(e,t){return t.length-e.length}var t,n,i,r,o=[],a=[],s=[];for(t=0;t<12;t++)n=f([2e3,t]),i=ce(this.monthsShort(n,"")),r=ce(this.months(n,"")),o.push(i),a.push(r),s.push(r),s.push(i);o.sort(e),a.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ye(e,t,n,i,r,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,i,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,r,o,a),s}function Ue(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function He(e,t,n){var i=7+t-n;return-(7+Ue(e,0,i).getUTCDay()-t)%7+i-1}function Ve(e,t,n,i,r){var o,a,s=1+7*(t-1)+(7+n-i)%7+He(e,i,r);return s<=0?a=Me(o=e-1)+s:s>Me(e)?(o=e+1,a=s-Me(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Ze(e,t,n){var i,r,o=He(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?i=a+Ge(r=e.year()-1,t,n):a>Ge(e.year(),t,n)?(i=a-Ge(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Ge(e,t,n){var i=He(e,t,n),r=He(e+1,t,n);return(Me(e)-i+r)/7}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),se("w",Q,oe),se("ww",Q,H),se("W",Q,oe),se("WW",Q,H),pe(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=de(e)}));function Qe(e,t){return e.slice(t,7).concat(e.slice(0,t))}E("d",0,"do","day"),E("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),E("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),E("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),se("d",Q),se("e",Q),se("E",Q),se("dd",(function(e,t){return t.weekdaysMinRegex(e)})),se("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),se("dddd",(function(e,t){return t.weekdaysRegex(e)})),pe(["dd","ddd","dddd"],(function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e})),pe(["d","e","E"],(function(e,t,n,i){t[i]=de(e)}));var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=re,$e=re,et=re;function tt(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=Se.call(this._weekdaysParse,a))?r:null:"ddd"===t?-1!==(r=Se.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Se.call(this._minWeekdaysParse,a))?r:null:"dddd"===t?-1!==(r=Se.call(this._weekdaysParse,a))||-1!==(r=Se.call(this._shortWeekdaysParse,a))||-1!==(r=Se.call(this._minWeekdaysParse,a))?r:null:"ddd"===t?-1!==(r=Se.call(this._shortWeekdaysParse,a))||-1!==(r=Se.call(this._weekdaysParse,a))||-1!==(r=Se.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Se.call(this._minWeekdaysParse,a))||-1!==(r=Se.call(this._weekdaysParse,a))||-1!==(r=Se.call(this._shortWeekdaysParse,a))?r:null}function nt(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),i=ce(this.weekdaysMin(n,"")),r=ce(this.weekdaysShort(n,"")),o=ce(this.weekdays(n,"")),a.push(i),s.push(r),l.push(o),c.push(i),c.push(r),c.push(o);a.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function it(){return this.hours()%12||12}function rt(e,t){E(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function ot(e,t){return t._meridiemParse}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,it),E("k",["kk",2],0,(function(){return this.hours()||24})),E("hmm",0,0,(function(){return""+it.apply(this)+T(this.minutes(),2)})),E("hmmss",0,0,(function(){return""+it.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)})),E("Hmm",0,0,(function(){return""+this.hours()+T(this.minutes(),2)})),E("Hmmss",0,0,(function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)})),rt("a",!0),rt("A",!1),se("a",ot),se("A",ot),se("H",Q,ae),se("h",Q,oe),se("k",Q,oe),se("HH",Q,H),se("hh",Q,H),se("kk",Q,H),se("hmm",J),se("hmmss",q),se("Hmm",J),se("Hmmss",q),fe(["H","HH"],xe),fe(["k","kk"],(function(e,t,n){var i=de(e);t[xe]=24===i?0:i})),fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),fe(["h","hh"],(function(e,t,n){t[xe]=de(e),p(n).bigHour=!0})),fe("hmm",(function(e,t,n){var i=e.length-2;t[xe]=de(e.substr(0,i)),t[we]=de(e.substr(i)),p(n).bigHour=!0})),fe("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[xe]=de(e.substr(0,i)),t[we]=de(e.substr(i,2)),t[Ae]=de(e.substr(r)),p(n).bigHour=!0})),fe("Hmm",(function(e,t,n){var i=e.length-2;t[xe]=de(e.substr(0,i)),t[we]=de(e.substr(i))})),fe("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[xe]=de(e.substr(0,i)),t[we]=de(e.substr(i,2)),t[Ae]=de(e.substr(r))}));var at=Le("Hours",!0);var st,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Oe,monthsShort:je,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Xe,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},ct={},ut={};function dt(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function ht(e){return e?e.toLowerCase().replace("_","-"):e}function ft(t){var n=null;if(void 0===ct[t]&&e&&e.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(t))try{n=st._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),pt(n)}catch(e){ct[t]=null}return ct[t]}function pt(e,t){var n;return e&&((n=l(t)?mt(e):gt(e,t))?st=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),st._abbr}function gt(e,t){if(null!==t){var n,i=lt;if(t.abbr=e,null!=ct[e])M("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."),i=ct[e]._config;else if(null!=t.parentLocale)if(null!=ct[t.parentLocale])i=ct[t.parentLocale]._config;else{if(null==(n=ft(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;i=n._config}return ct[e]=new L(I(i,t)),ut[e]&&ut[e].forEach((function(e){gt(e.name,e.config)})),pt(e),ct[e]}return delete ct[e],null}function mt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return st;if(!r(e)){if(t=ft(e))return t;e=[e]}return function(e){for(var t,n,i,r,o=0;o<e.length;){for(t=(r=ht(e[o]).split("-")).length,n=(n=ht(e[o+1]))?n.split("-"):null;t>0;){if(i=ft(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&dt(r,n)>=t-1)break;t--}o++}return st}(e)}function vt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[be]<1||n[be]>Ne(n[ve],n[ye])?be:n[xe]<0||n[xe]>24||24===n[xe]&&(0!==n[we]||0!==n[Ae]||0!==n[Ce])?xe:n[we]<0||n[we]>59?we:n[Ae]<0||n[Ae]>59?Ae:n[Ce]<0||n[Ce]>999?Ce:-1,p(e)._overflowDayOfYear&&(t<ve||t>be)&&(t=be),p(e)._overflowWeeks&&-1===t&&(t=_e),p(e)._overflowWeekday&&-1===t&&(t=ke),p(e).overflow=t),e}var yt=/^\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)?)?$/,bt=/^\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)?)?$/,xt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],At=[["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/]],Ct=/^\/?Date\((-?\d+)/i,_t=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,kt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mt(e){var t,n,i,r,o,a,s=e._i,l=yt.exec(s)||bt.exec(s),c=wt.length,u=At.length;if(l){for(p(e).iso=!0,t=0,n=c;t<n;t++)if(wt[t][1].exec(l[1])){r=wt[t][0],i=!1!==wt[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(At[t][1].exec(l[3])){o=(l[2]||" ")+At[t][0];break}if(null==o)return void(e._isValid=!1)}if(!i&&null!=o)return void(e._isValid=!1);if(l[4]){if(!xt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=r+(o||"")+(a||""),Dt(e)}else e._isValid=!1}function St(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function It(e){var t,n,i,r,o,a,s,l,c=_t.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],i=c[3],r=c[2],o=c[5],a=c[6],s=c[7],l=[St(n),je.indexOf(i),parseInt(r,10),parseInt(o,10),parseInt(a,10)],s&&l.push(parseInt(s,10)),t=l,!function(e,t,n){return!e||qe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(p(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return kt[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(c[8],c[9],c[10]),e._d=Ue.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function Lt(e,t,n){return null!=e?e:null!=t?t:n}function Tt(e){var t,n,r,o,a,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[be]&&null==e._a[ye]&&function(e){var t,n,i,r,o,a,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=Lt(t.GG,e._a[ve],Ze(jt(),1,4).year),i=Lt(t.W,1),((r=Lt(t.E,1))<1||r>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=Ze(jt(),o,a),n=Lt(t.gg,e._a[ve],c.year),i=Lt(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o),i<1||i>Ge(n,o,a)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=Ve(n,i,r,o,a),e._a[ve]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=Lt(e._a[ve],r[ve]),(e._dayOfYear>Me(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ue(a,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[xe]&&0===e._a[we]&&0===e._a[Ae]&&0===e._a[Ce]&&(e._nextDay=!0,e._a[xe]=0),e._d=(e._useUTC?Ue:Ye).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[xe]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(p(e).weekdayMismatch=!0)}}function Dt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],p(e).empty=!0;var t,n,r,o,a,s,l,c=""+e._i,u=c.length,d=0;for(l=(r=P(e._f,e._locale).match(D)||[]).length,t=0;t<l;t++)o=r[t],(n=(c.match(le(o,e))||[])[0])&&((a=c.substr(0,c.indexOf(n))).length>0&&p(e).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),d+=n.length),j[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),ge(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=u-d,c.length>0&&p(e).unusedInput.push(c),e._a[xe]<=12&&!0===p(e).bigHour&&e._a[xe]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[xe]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[xe],e._meridiem),null!==(s=p(e).era)&&(e._a[ve]=e._locale.erasConvertYear(s,e._a[ve])),Tt(e),vt(e)}else It(e);else Mt(e)}function Nt(e){var t=e._i,n=e._f;return e._locale=e._locale||mt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new x(vt(t)):(u(t)?e._d=t:r(n)?function(e){var t,n,i,r,o,a,s=!1,l=e._f.length;if(0===l)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<l;r++)o=0,a=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Dt(t),g(t)&&(a=!0),o+=p(t).charsLeftOver,o+=10*p(t).unusedTokens.length,p(t).score=o,s?o<i&&(i=o,n=t):(null==i||o<i||a)&&(i=o,n=t,a&&(s=!0));h(e,n||t)}(e):n?Dt(e):function(e){var t=e._i;l(t)?e._d=new Date(i.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=Ct.exec(e._i);null===t?(Mt(e),!1===e._isValid&&(delete e._isValid,It(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):r(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Tt(e)):o(t)?function(e){if(!e._d){var t=B(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Tt(e)}}(e):c(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function Ot(e,t,n,i,a){var l,c={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(o(e)&&s(e)||r(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=a,c._l=n,c._i=e,c._f=t,c._strict=i,(l=new x(vt(Nt(c))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function jt(e,t,n,i){return Ot(e,t,n,i,!1)}i.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Et=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=jt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()})),Ft=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=jt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()}));function Pt(e,t){var n,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return jt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var zt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Rt(e){var t=B(e),n=t.year||0,i=t.quarter||0,r=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,i=!1,r=zt.length;for(t in e)if(a(e,t)&&(-1===Se.call(zt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<r;++n)if(e[zt[n]]){if(i)return!1;parseFloat(e[zt[n]])!==de(e[zt[n]])&&(i=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+s+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=mt(),this._bubble()}function Bt(e){return e instanceof Rt}function Wt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Yt(e,t){E(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+T(~~(e/60),2)+t+T(~~e%60,2)}))}Yt("Z",":"),Yt("ZZ",""),se("Z",ie),se("ZZ",ie),fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Ht(ie,e)}));var Ut=/([\+\-]|\d\d)/gi;function Ht(e,t){var n,i,r=(t||"").match(e);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(Ut)||["-",0,0])[1]+de(n[2]))?0:"+"===n[0]?i:-i}function Vt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||u(e)?e.valueOf():jt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):jt(e).local()}function Zt(e){return-Math.round(e._d.getTimezoneOffset())}function Gt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Qt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qt(e,t){var n,i,r,o,s,l,u=e,d=null;return Bt(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(u={},t?u[t]=+e:u.milliseconds=+e):(d=Qt.exec(e))?(n="-"===d[1]?-1:1,u={y:0,d:de(d[be])*n,h:de(d[xe])*n,m:de(d[we])*n,s:de(d[Ae])*n,ms:de(Wt(1e3*d[Ce]))*n}):(d=Jt.exec(e))?(n="-"===d[1]?-1:1,u={y:Xt(d[2],n),M:Xt(d[3],n),w:Xt(d[4],n),d:Xt(d[5],n),h:Xt(d[6],n),m:Xt(d[7],n),s:Xt(d[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=jt(u.from),s=jt(u.to),r=o.isValid()&&s.isValid()?(s=Vt(s,o),o.isBefore(s)?l=Kt(o,s):((l=Kt(s,o)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),i=new Rt(u),Bt(e)&&a(e,"_locale")&&(i._locale=e._locale),Bt(e)&&a(e,"_isValid")&&(i._isValid=e._isValid),i}function Xt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Kt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function $t(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(M(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),en(this,qt(n,i),e),this}}function en(e,t,n,r){var o=t._milliseconds,a=Wt(t._days),s=Wt(t._months);e.isValid()&&(r=null==r||r,s&&Re(e,Te(e,"Month")+s*n),a&&De(e,"Date",Te(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,a||s))}qt.fn=Rt.prototype,qt.invalid=function(){return qt(NaN)};var tn=$t(1,"add"),nn=$t(-1,"subtract");function rn(e){return"string"==typeof e||e instanceof String}function on(e){return w(e)||u(e)||rn(e)||c(e)||function(e){var t=r(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&rn(e)})).length),t&&n}(e)||function(e){var t,n,i=o(e)&&!s(e),r=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=l.length;for(t=0;t<c;t+=1)n=l[t],r=r||a(e,n);return i&&r}(e)||null==e}function an(e,t){if(e.date()<t.date())return-an(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function sn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=mt(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ln=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function cn(){return this._locale}var un=1e3,dn=6e4,hn=36e5,fn=126227808e5;function pn(e,t){return(e%t+t)%t}function gn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fn:new Date(e,t,n).valueOf()}function mn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fn:Date.UTC(e,t,n)}function vn(e,t){return t.erasAbbrRegex(e)}function yn(){var e,t,n,i,r,o=[],a=[],s=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=ce(c[e].name),i=ce(c[e].abbr),r=ce(c[e].narrow),a.push(n),o.push(i),s.push(r),l.push(n),l.push(i),l.push(r);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function bn(e,t){E(0,[e,e.length],0,t)}function xn(e,t,n,i,r){var o;return null==e?Ze(this,i,r).year:(t>(o=Ge(e,i,r))&&(t=o),wn.call(this,e,t,n,i,r))}function wn(e,t,n,i,r){var o=Ve(e,t,n,i,r),a=Ue(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),se("N",vn),se("NN",vn),se("NNN",vn),se("NNNN",(function(e,t){return t.erasNameRegex(e)})),se("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?p(n).era=r:p(n).invalidEra=e})),se("y",ee),se("yy",ee),se("yyy",ee),se("yyyy",ee),se("yo",(function(e,t){return t._eraYearOrdinalRegex||ee})),fe(["y","yy","yyy","yyyy"],ve),fe(["yo"],(function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ve]=n._locale.eraYearOrdinalParse(e,r):t[ve]=parseInt(e,10)})),E(0,["gg",2],0,(function(){return this.weekYear()%100})),E(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),bn("gggg","weekYear"),bn("ggggg","weekYear"),bn("GGGG","isoWeekYear"),bn("GGGGG","isoWeekYear"),se("G",te),se("g",te),se("GG",Q,H),se("gg",Q,H),se("GGGG",K,Z),se("gggg",K,Z),se("GGGGG",$,G),se("ggggg",$,G),pe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=de(e)})),pe(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),E("Q",0,"Qo","quarter"),se("Q",U),fe("Q",(function(e,t){t[ye]=3*(de(e)-1)})),E("D",["DD",2],"Do","date"),se("D",Q,oe),se("DD",Q,H),se("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),fe(["D","DD"],be),fe("Do",(function(e,t){t[be]=de(e.match(Q)[0])}));var An=Le("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),se("DDD",X),se("DDDD",V),fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=de(e)})),E("m",["mm",2],0,"minute"),se("m",Q,ae),se("mm",Q,H),fe(["m","mm"],we);var Cn=Le("Minutes",!1);E("s",["ss",2],0,"second"),se("s",Q,ae),se("ss",Q,H),fe(["s","ss"],Ae);var _n,kn,Mn=Le("Seconds",!1);for(E("S",0,0,(function(){return~~(this.millisecond()/100)})),E(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),E(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),E(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),E(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),E(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),E(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),se("S",X,U),se("SS",X,H),se("SSS",X,V),_n="SSSS";_n.length<=9;_n+="S")se(_n,ee);function Sn(e,t){t[Ce]=de(1e3*("0."+e))}for(_n="S";_n.length<=9;_n+="S")fe(_n,Sn);kn=Le("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var In=x.prototype;function Ln(e){return e}In.add=tn,In.calendar=function(e,t){1===arguments.length&&(arguments[0]?on(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=o(e)&&!s(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<r.length;t+=1)i=i||a(e,r[t]);return n&&i}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||jt(),r=Vt(n,this).startOf("day"),l=i.calendarFormat(this,r)||"sameElse",c=t&&(S(t[l])?t[l].call(this,n):t[l]);return this.format(c||this.localeData().calendar(l,this,jt(n)))},In.clone=function(){return new x(this)},In.diff=function(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=Vt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=R(t)){case"year":o=an(this,i)/12;break;case"month":o=an(this,i);break;case"quarter":o=an(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:ue(o)},In.endOf=function(e){var t,n;if(void 0===(e=R(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mn:gn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hn-pn(t+(this._isUTC?0:this.utcOffset()*dn),hn)-1;break;case"minute":t=this._d.valueOf(),t+=dn-pn(t,dn)-1;break;case"second":t=this._d.valueOf(),t+=un-pn(t,un)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},In.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=F(this,e);return this.localeData().postformat(t)},In.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||jt(e).isValid())?qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},In.fromNow=function(e){return this.from(jt(),e)},In.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||jt(e).isValid())?qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},In.toNow=function(e){return this.to(jt(),e)},In.get=function(e){return S(this[e=R(e)])?this[e]():this},In.invalidAt=function(){return p(this).overflow},In.isAfter=function(e,t){var n=w(e)?e:jt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},In.isBefore=function(e,t){var n=w(e)?e:jt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},In.isBetween=function(e,t,n,i){var r=w(e)?e:jt(e),o=w(t)?t:jt(t);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n))},In.isSame=function(e,t){var n,i=w(e)?e:jt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},In.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},In.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},In.isValid=function(){return g(this)},In.lang=ln,In.locale=sn,In.localeData=cn,In.max=Ft,In.min=Et,In.parsingFlags=function(){return h({},p(this))},In.set=function(e,t){if("object"==typeof e){var n,i=function(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:W[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=B(e)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](e[i[n].unit])}else if(S(this[e=R(e)]))return this[e](t);return this},In.startOf=function(e){var t,n;if(void 0===(e=R(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mn:gn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pn(t+(this._isUTC?0:this.utcOffset()*dn),hn);break;case"minute":t=this._d.valueOf(),t-=pn(t,dn);break;case"second":t=this._d.valueOf(),t-=pn(t,un)}return this._d.setTime(t),i.updateOffset(this,!0),this},In.subtract=nn,In.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},In.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},In.toDate=function(){return new Date(this.valueOf())},In.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?F(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(n,"Z")):F(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},In.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",n=r+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(In[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),In.toJSON=function(){return this.isValid()?this.toISOString():null},In.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},In.unix=function(){return Math.floor(this.valueOf()/1e3)},In.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},In.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},In.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""},In.eraNarrow=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""},In.eraAbbr=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""},In.eraYear=function(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-i(o[e].since).year())*n+o[e].offset;return this.year()},In.year=Ie,In.isLeapYear=function(){return me(this.year())},In.weekYear=function(e){return xn.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},In.isoWeekYear=function(e){return xn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},In.quarter=In.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},In.month=Be,In.daysInMonth=function(){return Ne(this.year(),this.month())},In.week=In.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},In.isoWeek=In.isoWeeks=function(e){var t=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},In.weeksInYear=function(){var e=this.localeData()._week;return Ge(this.year(),e.dow,e.doy)},In.weeksInWeekYear=function(){var e=this.localeData()._week;return Ge(this.weekYear(),e.dow,e.doy)},In.isoWeeksInYear=function(){return Ge(this.year(),1,4)},In.isoWeeksInISOWeekYear=function(){return Ge(this.isoWeekYear(),1,4)},In.date=An,In.day=In.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=Te(this,"Day");return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},In.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},In.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},In.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},In.hour=In.hours=at,In.minute=In.minutes=Cn,In.second=In.seconds=Mn,In.millisecond=In.milliseconds=kn,In.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ht(ie,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?en(this,qt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Zt(this)},In.utc=function(e){return this.utcOffset(0,e)},In.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Zt(this),"m")),this},In.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(ne,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},In.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?jt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},In.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},In.isLocal=function(){return!!this.isValid()&&!this._isUTC},In.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},In.isUtc=Gt,In.isUTC=Gt,In.zoneAbbr=function(){return this._isUTC?"UTC":""},In.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},In.dates=C("dates accessor is deprecated. Use date instead.",An),In.months=C("months accessor is deprecated. Use month instead",Be),In.years=C("years accessor is deprecated. Use year instead",Ie),In.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),In.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Nt(t))._a?(e=t._isUTC?f(t._a):jt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&de(e[i])!==de(t[i]))&&a++;return a+o}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Tn=L.prototype;function Dn(e,t,n,i){var r=mt(),o=f().set(i,t);return r[n](o,e)}function Nn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return Dn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Dn(e,i,n,"month");return r}function On(e,t,n,i){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var r,o=mt(),a=e?o._week.dow:0,s=[];if(null!=n)return Dn(t,(n+a)%7,i,"day");for(r=0;r<7;r++)s[r]=Dn(t,(r+a)%7,i,"day");return s}Tn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return S(i)?i.call(t,n):i},Tn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},Tn.invalidDate=function(){return this._invalidDate},Tn.ordinal=function(e){return this._ordinal.replace("%d",e)},Tn.preparse=Ln,Tn.postformat=Ln,Tn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return S(r)?r(e,t,n,i):r.replace(/%d/i,e)},Tn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)},Tn.set=function(e){var t,n;for(n in e)a(e,n)&&(S(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Tn.eras=function(e,t){var n,r,o,a=this._eras||mt("en")._eras;for(n=0,r=a.length;n<r;++n)switch("string"==typeof a[n].since&&(o=i(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=i(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a},Tn.erasParse=function(e,t,n){var i,r,o,a,s,l=this.eras();for(e=e.toUpperCase(),i=0,r=l.length;i<r;++i)if(o=l[i].name.toUpperCase(),a=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[i];break;case"NNNN":if(o===e)return l[i];break;case"NNNNN":if(s===e)return l[i]}else if([o,a,s].indexOf(e)>=0)return l[i]},Tn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n},Tn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||yn.call(this),e?this._erasAbbrRegex:this._erasRegex},Tn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||yn.call(this),e?this._erasNameRegex:this._erasRegex},Tn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||yn.call(this),e?this._erasNarrowRegex:this._erasRegex},Tn.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ee).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},Tn.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ee.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Tn.monthsParse=function(e,t,n){var i,r,o;if(this._monthsParseExact)return ze.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},Tn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||We.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Pe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Tn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||We.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Tn.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},Tn.firstDayOfYear=function(){return this._week.doy},Tn.firstDayOfWeek=function(){return this._week.dow},Tn.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Qe(n,this._week.dow):e?n[e.day()]:n},Tn.weekdaysMin=function(e){return!0===e?Qe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Tn.weekdaysShort=function(e){return!0===e?Qe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Tn.weekdaysParse=function(e,t,n){var i,r,o;if(this._weekdaysParseExact)return tt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},Tn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Tn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Tn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=et),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Tn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Tn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},pt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===de(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=C("moment.lang is deprecated. Use moment.locale instead.",pt),i.langData=C("moment.langData is deprecated. Use moment.localeData instead.",mt);var jn=Math.abs;function En(e,t,n,i){var r=qt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Fn(e){return e<0?Math.floor(e):Math.ceil(e)}function Pn(e){return 4800*e/146097}function zn(e){return 146097*e/4800}function Rn(e){return function(){return this.as(e)}}var Bn=Rn("ms"),Wn=Rn("s"),Yn=Rn("m"),Un=Rn("h"),Hn=Rn("d"),Vn=Rn("w"),Zn=Rn("M"),Gn=Rn("Q"),Qn=Rn("y"),Jn=Bn;function qn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Xn=qn("milliseconds"),Kn=qn("seconds"),$n=qn("minutes"),ei=qn("hours"),ti=qn("days"),ni=qn("months"),ii=qn("years");var ri=Math.round,oi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ai(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var si=Math.abs;function li(e){return(e>0)-(e<0)||+e}function ci(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,o,a,s,l=si(this._milliseconds)/1e3,c=si(this._days),u=si(this._months),d=this.asSeconds();return d?(e=ue(l/60),t=ue(e/60),l%=60,e%=60,n=ue(u/12),u%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=li(this._months)!==li(d)?"-":"",a=li(this._days)!==li(d)?"-":"",s=li(this._milliseconds)!==li(d)?"-":"",r+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?a+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+i+"S":"")):"P0D"}var ui=Rt.prototype;return ui.isValid=function(){return this._isValid},ui.abs=function(){var e=this._data;return this._milliseconds=jn(this._milliseconds),this._days=jn(this._days),this._months=jn(this._months),e.milliseconds=jn(e.milliseconds),e.seconds=jn(e.seconds),e.minutes=jn(e.minutes),e.hours=jn(e.hours),e.months=jn(e.months),e.years=jn(e.years),this},ui.add=function(e,t){return En(this,e,t,1)},ui.subtract=function(e,t){return En(this,e,t,-1)},ui.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=R(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Pn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(zn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},ui.asMilliseconds=Bn,ui.asSeconds=Wn,ui.asMinutes=Yn,ui.asHours=Un,ui.asDays=Hn,ui.asWeeks=Vn,ui.asMonths=Zn,ui.asQuarters=Gn,ui.asYears=Qn,ui.valueOf=Jn,ui._bubble=function(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Fn(zn(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=ue(o/1e3),l.seconds=e%60,t=ue(e/60),l.minutes=t%60,n=ue(t/60),l.hours=n%24,a+=ue(n/24),s+=r=ue(Pn(a)),a-=Fn(zn(r)),i=ue(s/12),s%=12,l.days=a,l.months=s,l.years=i,this},ui.clone=function(){return qt(this)},ui.get=function(e){return e=R(e),this.isValid()?this[e+"s"]():NaN},ui.milliseconds=Xn,ui.seconds=Kn,ui.minutes=$n,ui.hours=ei,ui.days=ti,ui.weeks=function(){return ue(this.days()/7)},ui.months=ni,ui.years=ii,ui.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=oi;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(o=Object.assign({},oi,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),i=function(e,t,n,i){var r=qt(e).abs(),o=ri(r.as("s")),a=ri(r.as("m")),s=ri(r.as("h")),l=ri(r.as("d")),c=ri(r.as("M")),u=ri(r.as("w")),d=ri(r.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=i,ai.apply(null,h)}(this,!r,o,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ui.toISOString=ci,ui.toString=ci,ui.toJSON=ci,ui.locale=sn,ui.localeData=cn,ui.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ci),ui.lang=ln,E("X",0,0,"unix"),E("x",0,0,"valueOf"),se("x",te),se("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),fe("x",(function(e,t,n){n._d=new Date(de(e))})),i.version="2.30.1",t=jt,i.fn=In,i.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},i.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(e){return jt(1e3*e)},i.months=function(e,t){return Nn(e,t,"months")},i.isDate=u,i.locale=pt,i.invalid=m,i.duration=qt,i.isMoment=w,i.weekdays=function(e,t,n){return On(e,t,n,"weekdays")},i.parseZone=function(){return jt.apply(null,arguments).parseZone()},i.localeData=mt,i.isDuration=Bt,i.monthsShort=function(e,t){return Nn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return On(e,t,n,"weekdaysMin")},i.defineLocale=gt,i.updateLocale=function(e,t){if(null!=t){var n,i,r=lt;null!=ct[e]&&null!=ct[e].parentLocale?ct[e].set(I(ct[e]._config,t)):(null!=(i=ft(e))&&(r=i._config),t=I(r,t),null==i&&(t.abbr=e),(n=new L(t)).parentLocale=ct[e],ct[e]=n),pt(e)}else null!=ct[e]&&(null!=ct[e].parentLocale?(ct[e]=ct[e].parentLocale,e===pt()&&pt(e)):null!=ct[e]&&delete ct[e]);return ct[e]},i.locales=function(){return _(ct)},i.weekdaysShort=function(e,t,n){return On(e,t,n,"weekdaysShort")},i.normalizeUnits=R,i.relativeTimeRounding=function(e){return void 0===e?ri:"function"==typeof e&&(ri=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==oi[e]&&(void 0===t?oi[e]:(oi[e]=t,"s"===e&&(oi.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=In,i.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"},i}()},85:e=>{"use strict";e.exports=JSON.parse('{"unitFormatGBP":"£","unitFormatUSD":"US $","unitFormatEUR":"€","unitFormatMXN":"MXN $","unitFormatUAH":"₴","centsUSD":"cents","centsEUR":"cents","centsAUD":"cents","centsZAR":"cents","centsMXN":"cents","centsGBP":"pence"}')},343:e=>{"use strict";e.exports=JSON.parse('{"Name":"Name","Number":"Number","IssueDate":"IssueDate","Paragraph":"Paragraph","Subparagraph":"Subparagraph","URI":"URI","URIDate":"URIDate","Note":"Note"}')},997:e=>{"use strict";e.exports=JSON.parse('{"calculation":{"calculated-total":"Calculated","concept":"Concept","consistent-duplicate-facts-present":"{{nfacts}} consistent duplicate facts present","inconsistent-duplicate-facts-present":"{{nfacts}} inconsistent duplicate facts present","maximum":"Maximum","mininum":"Minimum","reported-total":"Reported","reported-value":"Reported value","useCalculations11":"Use Calculations v1.1"},"common":{"accuracyInfinite":"Infinite precision","none":"None","notApplicable":"n/a","unscaled":"Unscaled","unspecified":"Unspecified"},"factDetails":{"accuracy":"Accuracy","calculationIsConsistent":"Calculation is consistent","calculationIsInconsistent":"Calculation is inconsistent","calculationUnchecked":"Calculation not checked due to presence of duplicate facts","change":"Change","changeFromIn":"From {{from}} in ","changePercentageDecrease":"{{decrease}}% decrease on ","changePercentageIncrease":"{{increase}}% increase on ","concept":"Concept","date":"Date","dimensions":"Dimensions","duplicatesCount":"{{current}} of {{total}}","entity":"Entity","factValue":"Fact Value","nonNumericFact":"non-numeric fact","noPriorFactInThisReport":"No prior fact in this report","noUnit":"<NOUNIT>","properties":"Properties","scale":"Scale","viewCalculationDetails":"View calculation details"},"footnotes":{"footnote":"Footnote"},"inspector":{"anchoring":"Anchoring","associatedFacts":"Associated facts","calculationDetails":"","calculations":"Calculations","concealedFact":"Concealed fact","conceptType":"Concept Type","contributor":"Contributor","documentOutline":"Document outline","documentSummary":"Document summary","fact-groups":"Sections","factProperties":"Fact Properties","factSearch":"Fact Search","factValue":"Fact Value","filter":"Filter","footnoteProperties":"Footnote Properties","footnotes":"Footnotes","hiddenFact":"Hidden Fact","hiddenFacts":"Hidden Facts","highlight":"Highlight","initializing":"Initializing","loadingViewer":"Loading iXBRL Viewer","matchingFacts":" matching facts(s)","namespaces":"Namespaces","narrowerAnchor":"Narrower anchors","negative":"Negative","nextTag":"Next tag","noFactSelected":"No Fact Selected","numericOption":"Numeric","outlineUnavailable":"Outline Unavailable","period":"Period","positive":"Positive","previousTag":"Previous tag","printDocument":"Print Document","references":"References","reset":"Reset","scales":"Scales","searchTitle":"Search","showTextOnly":"Show text only","summary":{"fact":{"header":"Fact Summary","title":"Total Facts:"},"file":{"calculations":"Calculation Linkbases","definitions":"Definition Linkbases","header":"File Summary","inline":"Inline Documents","labels":"Label Linkbases","other":"Other Linkbases","presentation":"Presentation Linkbases","references":"Reference Linkbases","schemas":"Schemas"},"tag":{"colDimensions":"Dimensions","colMembers":"Members","colNamespace":"Namespace","colPrimaryItems":"Primary Items","colTotal":"Total","header":"Tag Summary","rowTotal":"Total"}},"summation":"Summation","textOption":"Text","units":"Units","validationCode":"Code","validationMessage":"Message","validationResults":"Validation results","validationSeverity":"Severity","visibleFacts":"Visible Facts","widerAnchor":"Wider anchor"},"scale":{"0":"ones","1":"tens","2":"hundreds","3":"thousands","4":"ten thousands","5":"hundred thousands","6":"millions","7":"ten millions","8":"hundred millions","9":"billions","-3":"thousandths","-2":"hundredths","-1":"tenths"},"search":{"concealedFact":"Concealed fact","default":"default","hiddenFact":"Hidden fact","noMatchFound":"No match found","selected":"selected","showMoreResults":"Show more results","tryAgainDifferentKeywords":"Try again with different keywords"},"toolbar":{"xbrlElements":"XBRL Elements"}}')},476:e=>{"use strict";e.exports=JSON.parse('{"centsUSD":"centavos","centsEUR":"centavos","centsAUD":"centavos","centsZAR":"centavos","centsMXN":"centavos","centsGBP":"centavos"}')},6:e=>{"use strict";e.exports=JSON.parse('{"Name":"Nombre","Number":"Número","IssueDate":"Fecha de Emisión","Paragraph":"Párrafo","Subparagraph":"Subpárrafo","URI":"URI","URIDate":"Fecha de URI","Note":"Nota"}')},702:e=>{"use strict";e.exports=JSON.parse('{"calculation":{"calculated-total":"","concept":"","consistent-duplicate-facts-present":"","inconsistent-duplicate-facts-present":"","maximum":"","mininum":"","reported-total":"","reported-value":"","useCalculations11":""},"common":{"accuracyInfinite":"Precisió infinita","none":"Ninguno","notApplicable":"n/d","unscaled":"Sin escala","unspecified":"Sin especificar"},"factDetails":{"accuracy":"Precisión","calculationIsConsistent":"","calculationIsInconsistent":"","calculationUnchecked":"","change":"Cambio","changeFromIn":"Anteriormente {{from}} en ","changePercentageDecrease":"{{decrease}}% menos que en ","changePercentageIncrease":"{{increase}}% más que en ","concept":"Concepto","date":"Fecha","dimensions":"Dimensiones","duplicatesCount":"{{current}} de {{total}}","entity":"Entidad","factValue":"Valor del hecho","nonNumericFact":"","noPriorFactInThisReport":"No hay un hecho previo","noUnit":"Sin unidad","properties":"Características","scale":"Escala","viewCalculationDetails":""},"footnotes":{"footnote":"Nota al pie de página"},"inspector":{"anchoring":"Anclaje","associatedFacts":"Hechos asociados","calculationDetails":"","calculations":"Cálculos","concealedFact":"","conceptType":"Tipo de concepto","contributor":"","documentOutline":"","documentSummary":"","fact-groups":"","factProperties":"Propiedades del hecho","factSearch":"Búsqueda de hechos","factValue":"","filter":"Filtro","footnoteProperties":"Propiedades de la nota al pie de página","footnotes":"Notas al pie de página","hiddenFact":"Hecho oculto","hiddenFacts":"Hechos ocultos","highlight":"Destacar","initializing":"","loadingViewer":"Preparando el visor iXBRL","matchingFacts":"","namespaces":"","narrowerAnchor":"Anclaje angosto","negative":"","nextTag":"","noFactSelected":"Ningún hecho seleccionado","numericOption":"Numérico","outlineUnavailable":"","period":"Periodo","positive":"","previousTag":"","printDocument":"","references":"Referencias","reset":"Limpiar","scales":"Escalas","searchTitle":"Búsqueda de hechos","showTextOnly":"","summary":{"fact":{"header":"","title":""},"file":{"calculations":"","definitions":"","header":"","inline":"","labels":"","other":"","presentation":"","references":"","schemas":""},"tag":{"colDimensions":"","colMembers":"","colNamespace":"","colPrimaryItems":"","colTotal":"","header":"","rowTotal":""}},"summation":"","textOption":"Texto","units":"Unidads","validationCode":"","validationMessage":"","validationResults":"","validationSeverity":"","visibleFacts":"Hechos visibles","widerAnchor":"Anclaje amplio"},"scale":{"0":"unidades","1":"décimos","2":"cientos","3":"miles","4":"diez miles","5":"cien miles","6":"millones","7":"diez millones","8":"cien millones","9":"billones","-3":"milésimos","-2":"centésimos","-1":"décimas"},"search":{"concealedFact":"","hiddenFact":"Hecho oculto","noMatchFound":"No se encontró ninguna coincidencia","selected":"seleccionados","showMoreResults":"Mostrar más resultados","tryAgainDifferentKeywords":"Intente nuevamente con palabras clave diferentes"},"toolbar":{"xbrlElements":"Elementos XBRL"}}')}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=n(651),t=n.n(e),i=n(806),r=n.n(i);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:String(t)}function s(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&i.push.apply(i,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach((function(t){s(e,t,n[t])}))}return e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,a(i.key),i)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}var v={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},y=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.init(t,n)}return d(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||v,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,i){return i&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,l({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),b=function(){function e(){c(this,e),this.observers={}}return d(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function x(){var e,t,n=new Promise((function(n,i){e=n,t=i}));return n.resolve=e,n.reject=t,n}function w(e){return null==e?"":""+e}function A(e,t,n){function i(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(r())return{};var a=i(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return r()?{}:{obj:e,k:i(o.shift())}}function C(e,t,n){var i=A(e,t,Object);i.obj[i.k]=n}function _(e,t){var n=A(e,t),i=n.obj,r=n.k;if(i)return i[r]}function k(e,t,n){var i=_(e,n);return void 0!==i?i:_(t,n)}function M(e,t,n){for(var i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof t[i]||t[i]instanceof String?n&&(e[i]=t[i]):M(e[i],t[i],n):e[i]=t[i]);return e}function S(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var I={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function L(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return I[e]})):e}var T="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var i=t.split(n),r=e,o=0;o<i.length;++o){if(!r)return;if("string"==typeof r[i[o]]&&o+1<i.length)return;if(void 0===r[i[o]]){for(var a=2,s=i.slice(o,o+a).join(n),l=r[s];void 0===l&&i.length>o+a;)a++,l=r[s=i.slice(o,o+a).join(n)];if(void 0===l)return;if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s];var c=i.slice(o+a).join(n);return c?D(l,c,n):void 0}r=r[i[o]]}return r}}var N=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return c(this,t),n=f(this,p(t).call(this)),T&&b.call(h(n)),n.data=e||{},n.options=i,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return m(t,e),d(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=_(this.data,a);return s||!o||"string"!=typeof n?s:D(this.data&&this.data[e]&&this.data[e][t],n,r)}},{key:"addResource",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=t,t=(a=e.split("."))[1]),this.addNamespaces(t),C(this.data,a,i),r.silent||this.emit("added",e,t,n,i)}},{key:"addResources",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});i.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(i=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=_(this.data,a)||{};i?M(s,n,r):s=l({},s,n),C(this.data,a,s),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?l({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(b),O={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,i,r){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,i,r))})),t}},j={},E=function(e){function t(e){var n,i,r,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(this,t),n=f(this,p(t).call(this)),T&&b.call(h(n)),i=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=e,o=h(n),i.forEach((function(e){r[e]&&(o[e]=r[e])})),n.options=a,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=y.create("translator"),n}return m(t,e),d(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:r};var a=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(a[0])>-1)&&(r=a.shift()),e=a.join(i)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,n,i){var r=this;if("object"!==o(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],n),c=s.key,u=s.namespaces,d=u[u.length-1],h=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&"cimode"===h.toLowerCase()){if(f){var p=n.nsSeparator||this.options.nsSeparator;return d+p+c}return c}var g=this.resolve(e,n),m=g&&g.res,v=g&&g.usedKey||c,y=g&&g.exactUsedKey||c,b=Object.prototype.toString.apply(m),x=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject;if(w&&m&&"string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m&&["[object Number]","[object Function]","[object RegExp]"].indexOf(b)<0&&("string"!=typeof x||"[object Array]"!==b)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,l({},n,{ns:u})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(a){var A="[object Array]"===b,C=A?[]:{},_=A?y:v;for(var k in m)if(Object.prototype.hasOwnProperty.call(m,k)){var M="".concat(_).concat(a).concat(k);C[k]=this.translate(M,l({},n,{joinArrays:!1,ns:u})),C[k]===M&&(C[k]=m[k])}m=C}}else if(w&&"string"==typeof x&&"[object Array]"===b)(m=m.join(x))&&(m=this.extendTranslation(m,e,n,i));else{var S=!1,I=!1,L=void 0!==n.count&&"string"!=typeof n.count,T=t.hasDefaultValue(n),D=L?this.pluralResolver.getSuffix(h,n.count):"",N=n["defaultValue".concat(D)]||n.defaultValue;!this.isValidLookup(m)&&T&&(S=!0,m=N),this.isValidLookup(m)||(I=!0,m=c);var O=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&I?void 0:m,j=T&&N!==m&&this.options.updateMissing;if(I||S||j){if(this.logger.log(j?"updateKey":"missingKey",h,d,c,j?N:m),a){var E=this.resolve(c,l({},n,{keySeparator:!1}));E&&E.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var F=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&P&&P[0])for(var z=0;z<P.length;z++)F.push(P[z]);else"all"===this.options.saveMissingTo?F=this.languageUtils.toResolveHierarchy(n.lng||this.language):F.push(n.lng||this.language);var R=function(e,t,i){r.options.missingKeyHandler?r.options.missingKeyHandler(e,d,t,j?i:O,j,n):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,d,t,j?i:O,j,n),r.emit("missingKey",e,d,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&L?F.forEach((function(e){r.pluralResolver.getSuffixes(e).forEach((function(t){R([e],c+t,n["defaultValue".concat(t)]||N)}))})):R(F,c,N))}m=this.extendTranslation(m,e,n,g,i),I&&m===c&&this.options.appendNamespaceToMissingKey&&(m="".concat(d,":").concat(c)),(I||S)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(e,t,n,i,r){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(l({},n,{interpolation:l({},this.options.interpolation,n.interpolation)}));var a,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var c=e.match(this.interpolator.nestingRegexp);a=c&&c.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=l({},this.options.interpolation.defaultVariables,u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),s){var d=e.match(this.interpolator.nestingRegexp);a<(d&&d.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];return r&&r[0]===i[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(t[0])),null):o.translate.apply(o,i.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var h=n.postProcess||this.options.postProcess,f="string"==typeof h?[h]:h;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=O.handle(f,e,t,this.options&&this.options.postProcessPassResolved?l({i18nResolved:i},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,i,r,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;a.options.fallbackNS&&(u=u.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);u.forEach((function(e){a.isValidLookup(t)||(o=e,!j["".concat(f[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(j["".concat(f[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((function(n){if(!a.isValidLookup(t)){r=n;var o,l,u=c,f=[u];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(f,c,n,e,s):(d&&(o=a.pluralResolver.getSuffix(n,s.count)),d&&h&&f.push(u+o),h&&f.push(u+="".concat(a.options.contextSeparator).concat(s.context)),d&&f.push(u+=o));l=f.pop();)a.isValidLookup(t)||(i=l,t=a.getResource(n,e,l,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:i,usedLng:r,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),t}(b);function F(e){return e.charAt(0).toUpperCase()+e.slice(1)}var P=function(){function e(t){c(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=y.create("languageUtils")}return d(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=F(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=F(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=F(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var i=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(i)||(t=i)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var i=n.getLanguagePartFromCode(e);if(n.isSupportedCode(i))return t=i;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(i))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=function(e){e&&(n.isSupportedCode(e)?r.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),i.forEach((function(e){r.indexOf(e)<0&&o(n.formatLanguageCode(e))})),r}}]),e}(),z=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},B=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.languageUtils=t,this.options=i,this.logger=y.create("pluralResolver"),this.rules=(n={},z.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:R[e.fc]}}))})),n)}return d(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,i=this.getRule(e);if(i){var r=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[r];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),W=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this.logger=y.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return d(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:L,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?S(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?S(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?S(t.nestingPrefix):t.nestingPrefixEscaped||S("$t("),this.nestingSuffix=t.nestingSuffix?S(t.nestingSuffix):t.nestingSuffixEscaped||S(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,i){var r,o,a,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(e.indexOf(s.formatSeparator)<0){var r=k(t,c,e);return s.alwaysFormat?s.format(r,void 0,n,l({},i,t,{interpolationkey:e})):r}var o=e.split(s.formatSeparator),a=o.shift().trim(),u=o.join(s.formatSeparator).trim();return s.format(k(t,c,a),u,n,l({},i,t,{interpolationkey:a}))};this.resetRegExp();var h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,f=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;r=t.regex.exec(e);){if(void 0===(o=d(r[1].trim())))if("function"==typeof h){var n=h(e,r,i);o="string"==typeof n?n:""}else{if(f){o=r[0];continue}s.logger.warn("missed to pass in variable ".concat(r[1]," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=w(o));var l=t.safeValue(o);if(e=e.replace(r[0],l),f?(t.regex.lastIndex+=l.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,i,r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=l({},o);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var i=e.split(new RegExp("".concat(n,"[ ]*{"))),r="{".concat(i[1]);e=i[0],r=(r=this.interpolate(r,a)).replace(/'/g,'"');try{a=JSON.parse(r),t&&(a=l({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(r)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=d.shift(),c=d,u=!0}if((i=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=w(i)),i||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),i=""),u&&(i=c.reduce((function(e,t){return r.format(e,t,o.lng,l({},o,{interpolationkey:n[1].trim()}))}),i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}]),e}(),Y=function(e){function t(e,n,i){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return c(this,t),r=f(this,p(t).call(this)),T&&b.call(h(r)),r.backend=e,r.store=n,r.services=i,r.languageUtils=i.languageUtils,r.options=o,r.logger=y.create("backendConnector"),r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(i,o.backend,o),r}return m(t,e),d(t,[{key:"queueLoad",value:function(e,t,n,i){var r=this,o=[],a=[],s=[],l=[];return e.forEach((function(e){var i=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&r.store.hasResourceBundle(e,t)?r.state[s]=2:r.state[s]<0||(1===r.state[s]?a.indexOf(s)<0&&a.push(s):(r.state[s]=1,i=!1,a.indexOf(s)<0&&a.push(s),o.indexOf(s)<0&&o.push(s),l.indexOf(t)<0&&l.push(t)))})),i||s.push(e)})),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:i}),{toLoad:o,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var i=e.split("|"),r=i[0],o=i[1];t&&this.emit("failedLoading",r,o,t),n&&this.store.addResourceBundle(r,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var i,s,l,c,u;i=n.loaded,s=o,(c=(l=A(i,[r],Object)).obj)[u=l.k]=c[u]||[],c[u].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,l){s&&l&&r<5?setTimeout((function(){i.read.call(i,e,t,n,r+1,2*o,a)}),o):a(s,l)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,i,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),r=i[0],o=i[1];this.read(r,o,"read",void 0,void 0,(function(i,a){i&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(r," failed"),i),!i&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(r),a),t.loaded(e,i,a)}))}},{key:"saveMissing",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,i,null,l({},o,{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,i))}}]),t}(b);function U(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function H(){}const V=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(c(this,t),e=f(this,p(t).call(this)),T&&b.call(h(e)),e.options=U(n),e.services={},e.logger=y,e.modules={external:[]},i&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,i),f(e,h(e));setTimeout((function(){e.init(n,i)}),0)}return e}return m(t,e),d(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function i(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=l({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===o(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===o(e[2])||"object"===o(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,U(t)),this.format=this.options.interpolation.format,n||(n=H),!this.options.isClone){this.modules.logger?y.init(i(this.modules.logger),this.options):y.init(null,this.options);var r=new P(this.options);this.store=new N(this.options.resources,this.options);var a=this.services;a.logger=y,a.resourceStore=this.store,a.languageUtils=r,a.pluralResolver=new B(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new W(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Y(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];e.emit.apply(e,[t].concat(i))})),this.modules.languageDetector&&(a.languageDetector=i(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=i(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new E(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];e.emit.apply(e,[t].concat(i))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var c=x(),u=function(){var t=function(t,i){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(i),n(t,i)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H,i="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return n();var r=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){r.indexOf(e)<0&&r.push(e)}))};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return o(e)})),this.options.preload&&this.options.preload.forEach((function(e){return o(e)})),this.services.backendConnector.load(r,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var i=x();return e||(e=this.languages),t||(t=this.options.ns),n||(n=H),this.services.backendConnector.reload(e,t,(function(e){i.resolve(),n(e)})),i}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&O.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var i=x();this.emit("languageChanging",e);var r=function(r){e||r||!n.services.languageDetector||(r=[]);var o="string"==typeof r?r:n.services.languageUtils.getBestMatchFromCodes(r);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,r){r?(n.language=r,n.languages=n.services.languageUtils.toResolveHierarchy(r),n.translator.changeLanguage(r),n.isLanguageChangingTo=void 0,n.emit("languageChanged",r),n.logger.log("languageChanged",r)):n.isLanguageChangingTo=void 0,i.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t,n){var i=this,r=function e(t,r){var a;if("object"!==o(r)){for(var s=arguments.length,c=new Array(s>2?s-2:0),u=2;u<s;u++)c[u-2]=arguments[u];a=i.options.overloadTranslationOptionHandler([t,r].concat(c))}else a=l({},r);a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns;var d=i.options.keySeparator||".",h=n?"".concat(n).concat(d).concat(t):t;return i.t(h,a)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function(e,n){var i=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===i||2===i};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||!(!a(i,e)||r&&!a(o,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,i=x();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),t&&t(e)})),i):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=x();"string"==typeof e&&(e=[e]);var i=this.options.preload||[],r=e.filter((function(e){return i.indexOf(e)<0}));return r.length?(this.options.preload=i.concat(r),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H,r=l({},this.options,n,{isClone:!0}),o=new t(r);return["store","services","language"].forEach((function(t){o[t]=e[t]})),o.services=l({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new E(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];o.emit.apply(o,[e].concat(n))})),o.init(r,i),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(b));var Z,G,Q=n(420),J=n.n(Q),q=9e15,X=1e9,K="0123456789abcdef",$="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",ee="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",te={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-q,maxE:q,crypto:!1},ne=!0,ie="[DecimalError] ",re=ie+"Invalid argument: ",oe=ie+"Precision limit exceeded",ae=ie+"crypto unavailable",se="[object Decimal]",le=Math.floor,ce=Math.pow,ue=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,de=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,he=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,fe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,pe=1e7,ge=7,me=$.length-1,ve=ee.length-1,ye={toStringTag:se};function be(e){var t,n,i,r=e.length-1,o="",a=e[0];if(r>0){for(o+=a,t=1;t<r;t++)i=e[t]+"",(n=ge-i.length)&&(o+=Te(n)),o+=i;a=e[t],(n=ge-(i=a+"").length)&&(o+=Te(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function xe(e,t,n){if(e!==~~e||e<t||e>n)throw Error(re+e)}function we(e,t,n,i){var r,o,a,s;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=ge,r=0):(r=Math.ceil((t+1)/ge),t%=ge),o=ce(10,ge-t),s=e[r]%o|0,null==i?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),a=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):a=(n<4&&s+1==o||n>3&&s+1==o/2)&&(e[r+1]/o/100|0)==ce(10,t-2)-1||(s==o/2||0==s)&&0==(e[r+1]/o/100|0):t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),a=(i||n<4)&&9999==s||!i&&n>3&&4999==s):a=((i||n<4)&&s+1==o||!i&&n>3&&s+1==o/2)&&(e[r+1]/o/1e3|0)==ce(10,t-3)-1,a}function Ae(e,t,n){for(var i,r,o=[0],a=0,s=e.length;a<s;){for(r=o.length;r--;)o[r]*=t;for(o[0]+=K.indexOf(e.charAt(a++)),i=0;i<o.length;i++)o[i]>n-1&&(void 0===o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}ye.absoluteValue=ye.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),_e(e)},ye.ceil=function(){return _e(new this.constructor(this),this.e+1,2)},ye.clampedTo=ye.clamp=function(e,t){var n=this,i=n.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(re+t);return n.cmp(e)<0?e:n.cmp(t)>0?t:new i(n)},ye.comparedTo=ye.cmp=function(e){var t,n,i,r,o=this,a=o.d,s=(e=new o.constructor(e)).d,l=o.s,c=e.s;if(!a||!s)return l&&c?l!==c?l:a===s?0:!a^l<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?l:s[0]?-c:0;if(l!==c)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(t=0,n=(i=a.length)<(r=s.length)?i:r;t<n;++t)if(a[t]!==s[t])return a[t]>s[t]^l<0?1:-1;return i===r?0:i>r^l<0?1:-1},ye.cosine=ye.cos=function(){var e,t,n=this,i=n.constructor;return n.d?n.d[0]?(e=i.precision,t=i.rounding,i.precision=e+Math.max(n.e,n.sd())+ge,i.rounding=1,n=function(e,t){var n,i,r;if(t.isZero())return t;(i=t.d.length)<32?r=(1/Be(4,n=Math.ceil(i/3))).toString():(n=16,r="2.3283064365386962890625e-10"),e.precision+=n,t=Re(e,1,t.times(r),new e(1));for(var o=n;o--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=n,t}(i,We(i,n)),i.precision=e,i.rounding=t,_e(2==G||3==G?n.neg():n,e,t,!0)):new i(1):new i(NaN)},ye.cubeRoot=ye.cbrt=function(){var e,t,n,i,r,o,a,s,l,c,u=this,d=u.constructor;if(!u.isFinite()||u.isZero())return new d(u);for(ne=!1,(o=u.s*ce(u.s*u,1/3))&&Math.abs(o)!=1/0?i=new d(o.toString()):(n=be(u.d),(o=((e=u.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=ce(n,1/3),e=le((e+1)/3)-(e%3==(e<0?-1:2)),(i=new d(n=o==1/0?"5e"+e:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=u.s),a=(e=d.precision)+3;;)if(c=(l=(s=i).times(s).times(s)).plus(u),i=Ce(c.plus(u).times(s),c.plus(l),a+2,1),be(s.d).slice(0,a)===(n=be(i.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(r||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(_e(i,e+1,1),t=!i.times(i).times(i).eq(u));break}if(!r&&(_e(s,e+1,0),s.times(s).times(s).eq(u))){i=s;break}a+=4,r=1}return ne=!0,_e(i,e,d.rounding,t)},ye.decimalPlaces=ye.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=((e=t.length-1)-le(this.e/ge))*ge,e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},ye.dividedBy=ye.div=function(e){return Ce(this,new this.constructor(e))},ye.dividedToIntegerBy=ye.divToInt=function(e){var t=this.constructor;return _e(Ce(this,new t(e),0,1,1),t.precision,t.rounding)},ye.equals=ye.eq=function(e){return 0===this.cmp(e)},ye.floor=function(){return _e(new this.constructor(this),this.e+1,3)},ye.greaterThan=ye.gt=function(e){return this.cmp(e)>0},ye.greaterThanOrEqualTo=ye.gte=function(e){var t=this.cmp(e);return 1==t||0===t},ye.hyperbolicCosine=ye.cosh=function(){var e,t,n,i,r,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;n=a.precision,i=a.rounding,a.precision=n+Math.max(o.e,o.sd())+4,a.rounding=1,(r=o.d.length)<32?t=(1/Be(4,e=Math.ceil(r/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=Re(a,1,o.times(t),new a(1),!0);for(var l,c=e,u=new a(8);c--;)l=o.times(o),o=s.minus(l.times(u.minus(l.times(u))));return _e(o,a.precision=n,a.rounding=i,!0)},ye.hyperbolicSine=ye.sinh=function(){var e,t,n,i,r=this,o=r.constructor;if(!r.isFinite()||r.isZero())return new o(r);if(t=o.precision,n=o.rounding,o.precision=t+Math.max(r.e,r.sd())+4,o.rounding=1,(i=r.d.length)<3)r=Re(o,2,r,r,!0);else{e=(e=1.4*Math.sqrt(i))>16?16:0|e,r=Re(o,2,r=r.times(1/Be(5,e)),r,!0);for(var a,s=new o(5),l=new o(16),c=new o(20);e--;)a=r.times(r),r=r.times(s.plus(a.times(l.times(a).plus(c))))}return o.precision=t,o.rounding=n,_e(r,t,n,!0)},ye.hyperbolicTangent=ye.tanh=function(){var e,t,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+7,i.rounding=1,Ce(n.sinh(),n.cosh(),i.precision=e,i.rounding=t)):new i(n.s)},ye.inverseCosine=ye.acos=function(){var e,t=this,n=t.constructor,i=t.abs().cmp(1),r=n.precision,o=n.rounding;return-1!==i?0===i?t.isNeg()?Ie(n,r,o):new n(0):new n(NaN):t.isZero()?Ie(n,r+4,o).times(.5):(n.precision=r+6,n.rounding=1,t=t.asin(),e=Ie(n,r+4,o).times(.5),n.precision=r,n.rounding=o,e.minus(t))},ye.inverseHyperbolicCosine=ye.acosh=function(){var e,t,n=this,i=n.constructor;return n.lte(1)?new i(n.eq(1)?0:NaN):n.isFinite()?(e=i.precision,t=i.rounding,i.precision=e+Math.max(Math.abs(n.e),n.sd())+4,i.rounding=1,ne=!1,n=n.times(n).minus(1).sqrt().plus(n),ne=!0,i.precision=e,i.rounding=t,n.ln()):new i(n)},ye.inverseHyperbolicSine=ye.asinh=function(){var e,t,n=this,i=n.constructor;return!n.isFinite()||n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,i.rounding=1,ne=!1,n=n.times(n).plus(1).sqrt().plus(n),ne=!0,i.precision=e,i.rounding=t,n.ln())},ye.inverseHyperbolicTangent=ye.atanh=function(){var e,t,n,i,r=this,o=r.constructor;return r.isFinite()?r.e>=0?new o(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(e=o.precision,t=o.rounding,i=r.sd(),Math.max(i,e)<2*-r.e-1?_e(new o(r),e,t,!0):(o.precision=n=i-r.e,r=Ce(r.plus(1),new o(1).minus(r),n+e,1),o.precision=e+4,o.rounding=1,r=r.ln(),o.precision=e,o.rounding=t,r.times(.5))):new o(NaN)},ye.inverseSine=ye.asin=function(){var e,t,n,i,r=this,o=r.constructor;return r.isZero()?new o(r):(t=r.abs().cmp(1),n=o.precision,i=o.rounding,-1!==t?0===t?((e=Ie(o,n+4,i).times(.5)).s=r.s,e):new o(NaN):(o.precision=n+6,o.rounding=1,r=r.div(new o(1).minus(r.times(r)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=i,r.times(2)))},ye.inverseTangent=ye.atan=function(){var e,t,n,i,r,o,a,s,l,c=this,u=c.constructor,d=u.precision,h=u.rounding;if(c.isFinite()){if(c.isZero())return new u(c);if(c.abs().eq(1)&&d+4<=ve)return(a=Ie(u,d+4,h).times(.25)).s=c.s,a}else{if(!c.s)return new u(NaN);if(d+4<=ve)return(a=Ie(u,d+4,h).times(.5)).s=c.s,a}for(u.precision=s=d+10,u.rounding=1,e=n=Math.min(28,s/ge+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(ne=!1,t=Math.ceil(s/ge),i=1,l=c.times(c),a=new u(c),r=c;-1!==e;)if(r=r.times(l),o=a.minus(r.div(i+=2)),r=r.times(l),void 0!==(a=o.plus(r.div(i+=2))).d[t])for(e=t;a.d[e]===o.d[e]&&e--;);return n&&(a=a.times(2<<n-1)),ne=!0,_e(a,u.precision=d,u.rounding=h,!0)},ye.isFinite=function(){return!!this.d},ye.isInteger=ye.isInt=function(){return!!this.d&&le(this.e/ge)>this.d.length-2},ye.isNaN=function(){return!this.s},ye.isNegative=ye.isNeg=function(){return this.s<0},ye.isPositive=ye.isPos=function(){return this.s>0},ye.isZero=function(){return!!this.d&&0===this.d[0]},ye.lessThan=ye.lt=function(e){return this.cmp(e)<0},ye.lessThanOrEqualTo=ye.lte=function(e){return this.cmp(e)<1},ye.logarithm=ye.log=function(e){var t,n,i,r,o,a,s,l,c=this,u=c.constructor,d=u.precision,h=u.rounding;if(null==e)e=new u(10),t=!0;else{if(n=(e=new u(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(n=c.d,c.s<0||!n||!n[0]||c.eq(1))return new u(n&&!n[0]?-1/0:1!=c.s?NaN:n?0:1/0);if(t)if(n.length>1)o=!0;else{for(r=n[0];r%10==0;)r/=10;o=1!==r}if(ne=!1,a=Ee(c,s=d+5),i=t?Se(u,s+10):Ee(e,s),we((l=Ce(a,i,s,1)).d,r=d,h))do{if(a=Ee(c,s+=10),i=t?Se(u,s+10):Ee(e,s),l=Ce(a,i,s,1),!o){+be(l.d).slice(r+1,r+15)+1==1e14&&(l=_e(l,d+1,0));break}}while(we(l.d,r+=10,h));return ne=!0,_e(l,d,h)},ye.minus=ye.sub=function(e){var t,n,i,r,o,a,s,l,c,u,d,h,f=this,p=f.constructor;if(e=new p(e),!f.d||!e.d)return f.s&&e.s?f.d?e.s=-e.s:e=new p(e.d||f.s!==e.s?f:NaN):e=new p(NaN),e;if(f.s!=e.s)return e.s=-e.s,f.plus(e);if(c=f.d,h=e.d,s=p.precision,l=p.rounding,!c[0]||!h[0]){if(h[0])e.s=-e.s;else{if(!c[0])return new p(3===l?-0:0);e=new p(f)}return ne?_e(e,s,l):e}if(n=le(e.e/ge),u=le(f.e/ge),c=c.slice(),o=u-n){for((d=o<0)?(t=c,o=-o,a=h.length):(t=h,n=u,a=c.length),o>(i=Math.max(Math.ceil(s/ge),a)+2)&&(o=i,t.length=1),t.reverse(),i=o;i--;)t.push(0);t.reverse()}else{for((d=(i=c.length)<(a=h.length))&&(a=i),i=0;i<a;i++)if(c[i]!=h[i]){d=c[i]<h[i];break}o=0}for(d&&(t=c,c=h,h=t,e.s=-e.s),a=c.length,i=h.length-a;i>0;--i)c[a++]=0;for(i=h.length;i>o;){if(c[--i]<h[i]){for(r=i;r&&0===c[--r];)c[r]=pe-1;--c[r],c[i]+=pe}c[i]-=h[i]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(e.d=c,e.e=Me(c,n),ne?_e(e,s,l):e):new p(3===l?-0:0)},ye.modulo=ye.mod=function(e){var t,n=this,i=n.constructor;return e=new i(e),!n.d||!e.s||e.d&&!e.d[0]?new i(NaN):!e.d||n.d&&!n.d[0]?_e(new i(n),i.precision,i.rounding):(ne=!1,9==i.modulo?(t=Ce(n,e.abs(),0,3,1)).s*=e.s:t=Ce(n,e,0,i.modulo,1),t=t.times(e),ne=!0,n.minus(t))},ye.naturalExponential=ye.exp=function(){return je(this)},ye.naturalLogarithm=ye.ln=function(){return Ee(this)},ye.negated=ye.neg=function(){var e=new this.constructor(this);return e.s=-e.s,_e(e)},ye.plus=ye.add=function(e){var t,n,i,r,o,a,s,l,c,u,d=this,h=d.constructor;if(e=new h(e),!d.d||!e.d)return d.s&&e.s?d.d||(e=new h(e.d||d.s===e.s?d:NaN)):e=new h(NaN),e;if(d.s!=e.s)return e.s=-e.s,d.minus(e);if(c=d.d,u=e.d,s=h.precision,l=h.rounding,!c[0]||!u[0])return u[0]||(e=new h(d)),ne?_e(e,s,l):e;if(o=le(d.e/ge),i=le(e.e/ge),c=c.slice(),r=o-i){for(r<0?(n=c,r=-r,a=u.length):(n=u,i=o,a=c.length),r>(a=(o=Math.ceil(s/ge))>a?o+1:a+1)&&(r=a,n.length=1),n.reverse();r--;)n.push(0);n.reverse()}for((a=c.length)-(r=u.length)<0&&(r=a,n=u,u=c,c=n),t=0;r;)t=(c[--r]=c[r]+u[r]+t)/pe|0,c[r]%=pe;for(t&&(c.unshift(t),++i),a=c.length;0==c[--a];)c.pop();return e.d=c,e.e=Me(c,i),ne?_e(e,s,l):e},ye.precision=ye.sd=function(e){var t,n=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(re+e);return n.d?(t=Le(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},ye.round=function(){var e=this,t=e.constructor;return _e(new t(e),e.e+1,t.rounding)},ye.sine=ye.sin=function(){var e,t,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+Math.max(n.e,n.sd())+ge,i.rounding=1,n=function(e,t){var n,i=t.d.length;if(i<3)return t.isZero()?t:Re(e,2,t,t);n=(n=1.4*Math.sqrt(i))>16?16:0|n,t=Re(e,2,t=t.times(1/Be(5,n)),t);for(var r,o=new e(5),a=new e(16),s=new e(20);n--;)r=t.times(t),t=t.times(o.plus(r.times(a.times(r).minus(s))));return t}(i,We(i,n)),i.precision=e,i.rounding=t,_e(G>2?n.neg():n,e,t,!0)):new i(NaN)},ye.squareRoot=ye.sqrt=function(){var e,t,n,i,r,o,a=this,s=a.d,l=a.e,c=a.s,u=a.constructor;if(1!==c||!s||!s[0])return new u(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);for(ne=!1,0==(c=Math.sqrt(+a))||c==1/0?(((t=be(s)).length+l)%2==0&&(t+="0"),c=Math.sqrt(t),l=le((l+1)/2)-(l<0||l%2),i=new u(t=c==1/0?"5e"+l:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+l)):i=new u(c.toString()),n=(l=u.precision)+3;;)if(i=(o=i).plus(Ce(a,o,n+2,1)).times(.5),be(o.d).slice(0,n)===(t=be(i.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(r||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(_e(i,l+1,1),e=!i.times(i).eq(a));break}if(!r&&(_e(o,l+1,0),o.times(o).eq(a))){i=o;break}n+=4,r=1}return ne=!0,_e(i,l,u.rounding,e)},ye.tangent=ye.tan=function(){var e,t,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+10,i.rounding=1,(n=n.sin()).s=1,n=Ce(n,new i(1).minus(n.times(n)).sqrt(),e+10,0),i.precision=e,i.rounding=t,_e(2==G||4==G?n.neg():n,e,t,!0)):new i(NaN)},ye.times=ye.mul=function(e){var t,n,i,r,o,a,s,l,c,u=this,d=u.constructor,h=u.d,f=(e=new d(e)).d;if(e.s*=u.s,!(h&&h[0]&&f&&f[0]))return new d(!e.s||h&&!h[0]&&!f||f&&!f[0]&&!h?NaN:h&&f?0*e.s:e.s/0);for(n=le(u.e/ge)+le(e.e/ge),(l=h.length)<(c=f.length)&&(o=h,h=f,f=o,a=l,l=c,c=a),o=[],i=a=l+c;i--;)o.push(0);for(i=c;--i>=0;){for(t=0,r=l+i;r>i;)s=o[r]+f[i]*h[r-i-1]+t,o[r--]=s%pe|0,t=s/pe|0;o[r]=(o[r]+t)%pe|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=Me(o,n),ne?_e(e,d.precision,d.rounding):e},ye.toBinary=function(e,t){return Ye(this,2,e,t)},ye.toDecimalPlaces=ye.toDP=function(e,t){var n=this,i=n.constructor;return n=new i(n),void 0===e?n:(xe(e,0,X),void 0===t?t=i.rounding:xe(t,0,8),_e(n,e+n.e+1,t))},ye.toExponential=function(e,t){var n,i=this,r=i.constructor;return void 0===e?n=ke(i,!0):(xe(e,0,X),void 0===t?t=r.rounding:xe(t,0,8),n=ke(i=_e(new r(i),e+1,t),!0,e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},ye.toFixed=function(e,t){var n,i,r=this,o=r.constructor;return void 0===e?n=ke(r):(xe(e,0,X),void 0===t?t=o.rounding:xe(t,0,8),n=ke(i=_e(new o(r),e+r.e+1,t),!1,e+i.e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},ye.toFraction=function(e){var t,n,i,r,o,a,s,l,c,u,d,h,f=this,p=f.d,g=f.constructor;if(!p)return new g(f);if(c=n=new g(1),i=l=new g(0),a=(o=(t=new g(i)).e=Le(p)-f.e-1)%ge,t.d[0]=ce(10,a<0?ge+a:a),null==e)e=o>0?t:c;else{if(!(s=new g(e)).isInt()||s.lt(c))throw Error(re+s);e=s.gt(t)?o>0?t:c:s}for(ne=!1,s=new g(be(p)),u=g.precision,g.precision=o=p.length*ge*2;d=Ce(s,t,0,1,1),1!=(r=n.plus(d.times(i))).cmp(e);)n=i,i=r,r=c,c=l.plus(d.times(r)),l=r,r=t,t=s.minus(d.times(r)),s=r;return r=Ce(e.minus(n),i,0,1,1),l=l.plus(r.times(c)),n=n.plus(r.times(i)),l.s=c.s=f.s,h=Ce(c,i,o,1).minus(f).abs().cmp(Ce(l,n,o,1).minus(f).abs())<1?[c,i]:[l,n],g.precision=u,ne=!0,h},ye.toHexadecimal=ye.toHex=function(e,t){return Ye(this,16,e,t)},ye.toNearest=function(e,t){var n=this,i=n.constructor;if(n=new i(n),null==e){if(!n.d)return n;e=new i(1),t=i.rounding}else{if(e=new i(e),void 0===t?t=i.rounding:xe(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(ne=!1,n=Ce(n,e,0,t,1).times(e),ne=!0,_e(n)):(e.s=n.s,n=e),n},ye.toNumber=function(){return+this},ye.toOctal=function(e,t){return Ye(this,8,e,t)},ye.toPower=ye.pow=function(e){var t,n,i,r,o,a,s=this,l=s.constructor,c=+(e=new l(e));if(!(s.d&&e.d&&s.d[0]&&e.d[0]))return new l(ce(+s,c));if((s=new l(s)).eq(1))return s;if(i=l.precision,o=l.rounding,e.eq(1))return _e(s,i,o);if((t=le(e.e/ge))>=e.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return r=De(l,s,n,i),e.s<0?new l(1).div(r):_e(r,i,o);if((a=s.s)<0){if(t<e.d.length-1)return new l(NaN);if(0==(1&e.d[t])&&(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(t=0!=(n=ce(+s,c))&&isFinite(n)?new l(n+"").e:le(c*(Math.log("0."+be(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?a/0:0):(ne=!1,l.rounding=s.s=1,n=Math.min(12,(t+"").length),(r=je(e.times(Ee(s,i+n)),i)).d&&we((r=_e(r,i+5,1)).d,i,o)&&(t=i+10,+be((r=_e(je(e.times(Ee(s,t+n)),t),t+5,1)).d).slice(i+1,i+15)+1==1e14&&(r=_e(r,i+1,0))),r.s=a,ne=!0,l.rounding=o,_e(r,i,o))},ye.toPrecision=function(e,t){var n,i=this,r=i.constructor;return void 0===e?n=ke(i,i.e<=r.toExpNeg||i.e>=r.toExpPos):(xe(e,1,X),void 0===t?t=r.rounding:xe(t,0,8),n=ke(i=_e(new r(i),e,t),e<=i.e||i.e<=r.toExpNeg,e)),i.isNeg()&&!i.isZero()?"-"+n:n},ye.toSignificantDigits=ye.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(xe(e,1,X),void 0===t?t=n.rounding:xe(t,0,8)),_e(new n(this),e,t)},ye.toString=function(){var e=this,t=e.constructor,n=ke(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},ye.truncated=ye.trunc=function(){return _e(new this.constructor(this),this.e+1,1)},ye.valueOf=ye.toJSON=function(){var e=this,t=e.constructor,n=ke(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};var Ce=function(){function e(e,t,n){var i,r=0,o=e.length;for(e=e.slice();o--;)i=e[o]*t+r,e[o]=i%n|0,r=i/n|0;return r&&e.unshift(r),e}function t(e,t,n,i){var r,o;if(n!=i)o=n>i?1:-1;else for(r=o=0;r<n;r++)if(e[r]!=t[r]){o=e[r]>t[r]?1:-1;break}return o}function n(e,t,n,i){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*i+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(i,r,o,a,s,l){var c,u,d,h,f,p,g,m,v,y,b,x,w,A,C,_,k,M,S,I,L=i.constructor,T=i.s==r.s?1:-1,D=i.d,N=r.d;if(!(D&&D[0]&&N&&N[0]))return new L(i.s&&r.s&&(D?!N||D[0]!=N[0]:N)?D&&0==D[0]||!N?0*T:T/0:NaN);for(l?(f=1,u=i.e-r.e):(l=pe,f=ge,u=le(i.e/f)-le(r.e/f)),S=N.length,k=D.length,y=(v=new L(T)).d=[],d=0;N[d]==(D[d]||0);d++);if(N[d]>(D[d]||0)&&u--,null==o?(A=o=L.precision,a=L.rounding):A=s?o+(i.e-r.e)+1:o,A<0)y.push(1),p=!0;else{if(A=A/f+2|0,d=0,1==S){for(h=0,N=N[0],A++;(d<k||h)&&A--;d++)C=h*l+(D[d]||0),y[d]=C/N|0,h=C%N|0;p=h||d<k}else{for((h=l/(N[0]+1)|0)>1&&(N=e(N,h,l),D=e(D,h,l),S=N.length,k=D.length),_=S,x=(b=D.slice(0,S)).length;x<S;)b[x++]=0;(I=N.slice()).unshift(0),M=N[0],N[1]>=l/2&&++M;do{h=0,(c=t(N,b,S,x))<0?(w=b[0],S!=x&&(w=w*l+(b[1]||0)),(h=w/M|0)>1?(h>=l&&(h=l-1),1==(c=t(g=e(N,h,l),b,m=g.length,x=b.length))&&(h--,n(g,S<m?I:N,m,l))):(0==h&&(c=h=1),g=N.slice()),(m=g.length)<x&&g.unshift(0),n(b,g,x,l),-1==c&&(c=t(N,b,S,x=b.length))<1&&(h++,n(b,S<x?I:N,x,l)),x=b.length):0===c&&(h++,b=[0]),y[d++]=h,c&&b[0]?b[x++]=D[_]||0:(b=[D[_]],x=1)}while((_++<k||void 0!==b[0])&&A--);p=void 0!==b[0]}y[0]||y.shift()}if(1==f)v.e=u,Z=p;else{for(d=1,h=y[0];h>=10;h/=10)d++;v.e=d+u*f-1,_e(v,s?o+v.e+1:o,a,p)}return v}}();function _e(e,t,n,i){var r,o,a,s,l,c,u,d,h,f=e.constructor;e:if(null!=t){if(!(d=e.d))return e;for(r=1,s=d[0];s>=10;s/=10)r++;if((o=t-r)<0)o+=ge,a=t,l=(u=d[h=0])/ce(10,r-a-1)%10|0;else if((h=Math.ceil((o+1)/ge))>=(s=d.length)){if(!i)break e;for(;s++<=h;)d.push(0);u=l=0,r=1,a=(o%=ge)-ge+1}else{for(u=s=d[h],r=1;s>=10;s/=10)r++;l=(a=(o%=ge)-ge+r)<0?0:u/ce(10,r-a-1)%10|0}if(i=i||t<0||void 0!==d[h+1]||(a<0?u:u%ce(10,r-a-1)),c=n<4?(l||i)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||i||6==n&&(o>0?a>0?u/ce(10,r-a):0:d[h-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,c?(t-=e.e+1,d[0]=ce(10,(ge-t%ge)%ge),e.e=-t||0):d[0]=e.e=0,e;if(0==o?(d.length=h,s=1,h--):(d.length=h+1,s=ce(10,ge-o),d[h]=a>0?(u/ce(10,r-a)%ce(10,a)|0)*s:0),c)for(;;){if(0==h){for(o=1,a=d[0];a>=10;a/=10)o++;for(a=d[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(e.e++,d[0]==pe&&(d[0]=1));break}if(d[h]+=s,d[h]!=pe)break;d[h--]=0,s=1}for(o=d.length;0===d[--o];)d.pop()}return ne&&(e.e>f.maxE?(e.d=null,e.e=NaN):e.e<f.minE&&(e.e=0,e.d=[0])),e}function ke(e,t,n){if(!e.isFinite())return Fe(e);var i,r=e.e,o=be(e.d),a=o.length;return t?(n&&(i=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+Te(i):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):r<0?(o="0."+Te(-r-1)+o,n&&(i=n-a)>0&&(o+=Te(i))):r>=a?(o+=Te(r+1-a),n&&(i=n-r-1)>0&&(o=o+"."+Te(i))):((i=r+1)<a&&(o=o.slice(0,i)+"."+o.slice(i)),n&&(i=n-a)>0&&(r+1===a&&(o+="."),o+=Te(i))),o}function Me(e,t){var n=e[0];for(t*=ge;n>=10;n/=10)t++;return t}function Se(e,t,n){if(t>me)throw ne=!0,n&&(e.precision=n),Error(oe);return _e(new e($),t,1,!0)}function Ie(e,t,n){if(t>ve)throw Error(oe);return _e(new e(ee),t,n,!0)}function Le(e){var t=e.length-1,n=t*ge+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function Te(e){for(var t="";e--;)t+="0";return t}function De(e,t,n,i){var r,o=new e(1),a=Math.ceil(i/ge+4);for(ne=!1;;){if(n%2&&Ue((o=o.times(t)).d,a)&&(r=!0),0===(n=le(n/2))){n=o.d.length-1,r&&0===o.d[n]&&++o.d[n];break}Ue((t=t.times(t)).d,a)}return ne=!0,o}function Ne(e){return 1&e.d[e.d.length-1]}function Oe(e,t,n){for(var i,r=new e(t[0]),o=0;++o<t.length;){if(!(i=new e(t[o])).s){r=i;break}r[n](i)&&(r=i)}return r}function je(e,t){var n,i,r,o,a,s,l,c=0,u=0,d=0,h=e.constructor,f=h.rounding,p=h.precision;if(!e.d||!e.d[0]||e.e>17)return new h(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(ne=!1,l=p):l=t,s=new h(.03125);e.e>-2;)e=e.times(s),d+=5;for(l+=i=Math.log(ce(2,d))/Math.LN10*2+5|0,n=o=a=new h(1),h.precision=l;;){if(o=_e(o.times(e),l,1),n=n.times(++u),be((s=a.plus(Ce(o,n,l,1))).d).slice(0,l)===be(a.d).slice(0,l)){for(r=d;r--;)a=_e(a.times(a),l,1);if(null!=t)return h.precision=p,a;if(!(c<3&&we(a.d,l-i,f,c)))return _e(a,h.precision=p,f,ne=!0);h.precision=l+=10,n=o=s=new h(1),u=0,c++}a=s}}function Ee(e,t){var n,i,r,o,a,s,l,c,u,d,h,f=1,p=e,g=p.d,m=p.constructor,v=m.rounding,y=m.precision;if(p.s<0||!g||!g[0]||!p.e&&1==g[0]&&1==g.length)return new m(g&&!g[0]?-1/0:1!=p.s?NaN:g?0:p);if(null==t?(ne=!1,u=y):u=t,m.precision=u+=10,i=(n=be(g)).charAt(0),!(Math.abs(o=p.e)<15e14))return c=Se(m,u+2,y).times(o+""),p=Ee(new m(i+"."+n.slice(1)),u-10).plus(c),m.precision=y,null==t?_e(p,y,v,ne=!0):p;for(;i<7&&1!=i||1==i&&n.charAt(1)>3;)i=(n=be((p=p.times(e)).d)).charAt(0),f++;for(o=p.e,i>1?(p=new m("0."+n),o++):p=new m(i+"."+n.slice(1)),d=p,l=a=p=Ce(p.minus(1),p.plus(1),u,1),h=_e(p.times(p),u,1),r=3;;){if(a=_e(a.times(h),u,1),be((c=l.plus(Ce(a,new m(r),u,1))).d).slice(0,u)===be(l.d).slice(0,u)){if(l=l.times(2),0!==o&&(l=l.plus(Se(m,u+2,y).times(o+""))),l=Ce(l,new m(f),u,1),null!=t)return m.precision=y,l;if(!we(l.d,u-10,v,s))return _e(l,m.precision=y,v,ne=!0);m.precision=u+=10,c=a=p=Ce(d.minus(1),d.plus(1),u,1),h=_e(p.times(p),u,1),r=s=1}l=c,r+=2}}function Fe(e){return String(e.s*e.s/0)}function Pe(e,t){var n,i,r;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(n<0&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):n<0&&(n=t.length),i=0;48===t.charCodeAt(i);i++);for(r=t.length;48===t.charCodeAt(r-1);--r);if(t=t.slice(i,r)){if(r-=i,e.e=n=n-i-1,e.d=[],i=(n+1)%ge,n<0&&(i+=ge),i<r){for(i&&e.d.push(+t.slice(0,i)),r-=ge;i<r;)e.d.push(+t.slice(i,i+=ge));t=t.slice(i),i=ge-t.length}else i-=r;for(;i--;)t+="0";e.d.push(+t),ne&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function ze(e,t){var n,i,r,o,a,s,l,c,u;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),fe.test(t))return Pe(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(de.test(t))n=16,t=t.toLowerCase();else if(ue.test(t))n=2;else{if(!he.test(t))throw Error(re+t);n=8}for((o=t.search(/p/i))>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),a=(o=t.indexOf("."))>=0,i=e.constructor,a&&(o=(s=(t=t.replace(".","")).length)-o,r=De(i,new i(n),o,2*o)),o=u=(c=Ae(t,n,pe)).length-1;0===c[o];--o)c.pop();return o<0?new i(0*e.s):(e.e=Me(c,u),e.d=c,ne=!1,a&&(e=Ce(e,r,4*s)),l&&(e=e.times(Math.abs(l)<54?ce(2,l):Tt.pow(2,l))),ne=!0,e)}function Re(e,t,n,i,r){var o,a,s,l,c=e.precision,u=Math.ceil(c/ge);for(ne=!1,l=n.times(n),s=new e(i);;){if(a=Ce(s.times(l),new e(t++*t++),c,1),s=r?i.plus(a):i.minus(a),i=Ce(a.times(l),new e(t++*t++),c,1),void 0!==(a=s.plus(i)).d[u]){for(o=u;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=i,i=a,a=o}return ne=!0,a.d.length=u+1,a}function Be(e,t){for(var n=e;--t;)n*=e;return n}function We(e,t){var n,i=t.s<0,r=Ie(e,e.precision,1),o=r.times(.5);if((t=t.abs()).lte(o))return G=i?4:1,t;if((n=t.divToInt(r)).isZero())G=i?3:2;else{if((t=t.minus(n.times(r))).lte(o))return G=Ne(n)?i?2:3:i?4:1,t;G=Ne(n)?i?1:4:i?3:2}return t.minus(r).abs()}function Ye(e,t,n,i){var r,o,a,s,l,c,u,d,h,f=e.constructor,p=void 0!==n;if(p?(xe(n,1,X),void 0===i?i=f.rounding:xe(i,0,8)):(n=f.precision,i=f.rounding),e.isFinite()){for(p?(r=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):r=t,(a=(u=ke(e)).indexOf("."))>=0&&(u=u.replace(".",""),(h=new f(1)).e=u.length-a,h.d=Ae(ke(h),10,r),h.e=h.d.length),o=l=(d=Ae(u,10,r)).length;0==d[--l];)d.pop();if(d[0]){if(a<0?o--:((e=new f(e)).d=d,e.e=o,d=(e=Ce(e,h,n,i,0,r)).d,o=e.e,c=Z),a=d[n],s=r/2,c=c||void 0!==d[n+1],c=i<4?(void 0!==a||c)&&(0===i||i===(e.s<0?3:2)):a>s||a===s&&(4===i||c||6===i&&1&d[n-1]||i===(e.s<0?8:7)),d.length=n,c)for(;++d[--n]>r-1;)d[n]=0,n||(++o,d.unshift(1));for(l=d.length;!d[l-1];--l);for(a=0,u="";a<l;a++)u+=K.charAt(d[a]);if(p){if(l>1)if(16==t||8==t){for(a=16==t?4:3,--l;l%a;l++)u+="0";for(l=(d=Ae(u,r,t)).length;!d[l-1];--l);for(a=1,u="1.";a<l;a++)u+=K.charAt(d[a])}else u=u.charAt(0)+"."+u.slice(1);u=u+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)u="0"+u;u="0."+u}else if(++o>l)for(o-=l;o--;)u+="0";else o<l&&(u=u.slice(0,o)+"."+u.slice(o))}else u=p?"0p+0":"0";u=(16==t?"0x":2==t?"0b":8==t?"0o":"")+u}else u=Fe(e);return e.s<0?"-"+u:u}function Ue(e,t){if(e.length>t)return e.length=t,!0}function He(e){return new this(e).abs()}function Ve(e){return new this(e).acos()}function Ze(e){return new this(e).acosh()}function Ge(e,t){return new this(e).plus(t)}function Qe(e){return new this(e).asin()}function Je(e){return new this(e).asinh()}function qe(e){return new this(e).atan()}function Xe(e){return new this(e).atanh()}function Ke(e,t){e=new this(e),t=new this(t);var n,i=this.precision,r=this.rounding,o=i+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?Ie(this,i,r):new this(0)).s=e.s:!e.d||t.isZero()?(n=Ie(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,n=this.atan(Ce(e,t,o,1)),t=Ie(this,o,1),this.precision=i,this.rounding=r,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(Ce(e,t,o,1)):(n=Ie(this,o,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function $e(e){return new this(e).cbrt()}function et(e){return _e(e=new this(e),e.e+1,2)}function tt(e,t,n){return new this(e).clamp(t,n)}function nt(e){if(!e||"object"!=typeof e)throw Error(ie+"Object expected");var t,n,i,r=!0===e.defaults,o=["precision",1,X,"rounding",0,8,"toExpNeg",-q,0,"toExpPos",0,q,"maxE",0,q,"minE",-q,0,"modulo",0,9];for(t=0;t<o.length;t+=3)if(n=o[t],r&&(this[n]=te[n]),void 0!==(i=e[n])){if(!(le(i)===i&&i>=o[t+1]&&i<=o[t+2]))throw Error(re+n+": "+i);this[n]=i}if(n="crypto",r&&(this[n]=te[n]),void 0!==(i=e[n])){if(!0!==i&&!1!==i&&0!==i&&1!==i)throw Error(re+n+": "+i);if(i){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(ae);this[n]=!0}else this[n]=!1}return this}function it(e){return new this(e).cos()}function rt(e){return new this(e).cosh()}function ot(e,t){return new this(e).div(t)}function at(e){return new this(e).exp()}function st(e){return _e(e=new this(e),e.e+1,3)}function lt(){var e,t,n=new this(0);for(ne=!1,e=0;e<arguments.length;)if((t=new this(arguments[e++])).d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return ne=!0,new this(1/0);n=t}return ne=!0,n.sqrt()}function ct(e){return e instanceof Tt||e&&e.toStringTag===se||!1}function ut(e){return new this(e).ln()}function dt(e,t){return new this(e).log(t)}function ht(e){return new this(e).log(2)}function ft(e){return new this(e).log(10)}function pt(){return Oe(this,arguments,"lt")}function gt(){return Oe(this,arguments,"gt")}function mt(e,t){return new this(e).mod(t)}function vt(e,t){return new this(e).mul(t)}function yt(e,t){return new this(e).pow(t)}function bt(e){var t,n,i,r,o=0,a=new this(1),s=[];if(void 0===e?e=this.precision:xe(e,1,X),i=Math.ceil(e/ge),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(i));o<i;)(r=t[o])>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=r%1e7;else{if(!crypto.randomBytes)throw Error(ae);for(t=crypto.randomBytes(i*=4);o<i;)(r=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((127&t[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,o):(s.push(r%1e7),o+=4);o=i/4}else for(;o<i;)s[o++]=1e7*Math.random()|0;for(i=s[--o],e%=ge,i&&e&&(r=ce(10,ge-e),s[o]=(i/r|0)*r);0===s[o];o--)s.pop();if(o<0)n=0,s=[0];else{for(n=-1;0===s[0];n-=ge)s.shift();for(i=1,r=s[0];r>=10;r/=10)i++;i<ge&&(n-=ge-i)}return a.e=n,a.d=s,a}function xt(e){return _e(e=new this(e),e.e+1,this.rounding)}function wt(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function At(e){return new this(e).sin()}function Ct(e){return new this(e).sinh()}function _t(e){return new this(e).sqrt()}function kt(e,t){return new this(e).sub(t)}function Mt(){var e=0,t=arguments,n=new this(t[e]);for(ne=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return ne=!0,_e(n,this.precision,this.rounding)}function St(e){return new this(e).tan()}function It(e){return new this(e).tanh()}function Lt(e){return _e(e=new this(e),e.e+1,1)}ye[Symbol.for("nodejs.util.inspect.custom")]=ye.toString,ye[Symbol.toStringTag]="Decimal";var Tt=ye.constructor=function e(t){var n,i,r;function o(e){var t,n,i,r=this;if(!(r instanceof o))return new o(e);if(r.constructor=o,ct(e))return r.s=e.s,void(ne?!e.d||e.e>o.maxE?(r.e=NaN,r.d=null):e.e<o.minE?(r.e=0,r.d=[0]):(r.e=e.e,r.d=e.d.slice()):(r.e=e.e,r.d=e.d?e.d.slice():e.d));if("number"==(i=typeof e)){if(0===e)return r.s=1/e<0?-1:1,r.e=0,void(r.d=[0]);if(e<0?(e=-e,r.s=-1):r.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;return void(ne?t>o.maxE?(r.e=NaN,r.d=null):t<o.minE?(r.e=0,r.d=[0]):(r.e=t,r.d=[e]):(r.e=t,r.d=[e]))}return 0*e!=0?(e||(r.s=NaN),r.e=NaN,void(r.d=null)):Pe(r,e.toString())}if("string"!==i)throw Error(re+e);return 45===(n=e.charCodeAt(0))?(e=e.slice(1),r.s=-1):(43===n&&(e=e.slice(1)),r.s=1),fe.test(e)?Pe(r,e):ze(r,e)}if(o.prototype=ye,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=nt,o.clone=e,o.isDecimal=ct,o.abs=He,o.acos=Ve,o.acosh=Ze,o.add=Ge,o.asin=Qe,o.asinh=Je,o.atan=qe,o.atanh=Xe,o.atan2=Ke,o.cbrt=$e,o.ceil=et,o.clamp=tt,o.cos=it,o.cosh=rt,o.div=ot,o.exp=at,o.floor=st,o.hypot=lt,o.ln=ut,o.log=dt,o.log10=ft,o.log2=ht,o.max=pt,o.min=gt,o.mod=mt,o.mul=vt,o.pow=yt,o.random=bt,o.round=xt,o.sign=wt,o.sin=At,o.sinh=Ct,o.sqrt=_t,o.sub=kt,o.sum=Mt,o.tan=St,o.tanh=It,o.trunc=Lt,void 0===t&&(t={}),t&&!0!==t.defaults)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<r.length;)t.hasOwnProperty(i=r[n++])||(t[i]=this[i]);return o.config(t),o}(te);$=new Tt($),ee=new Tt(ee);const Dt=Tt,Nt="http://www.xbrl.org/2003/iso4217";function Ot(e,t){return e.hours()+e.minutes()+e.seconds()===0?(t&&(e=e.clone().subtract(1,"day")),e.format("D MMM Y")):e.format("D MMM Y HH:mm:ss")}function jt(e,t){const n=Dt(e),i=(void 0===t?n.toFixed():n.toFixed(Math.max(0,t))).split(".");return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),i.join(".")}function Et(e,t){const n=[],i=e.split(" ");let r="";return i.forEach(((e,o)=>{if(r.length>0){const a=r+" "+e;if(!(a.length>t))return o===i.length-1?void n.push(a):void(r=a);n.push(r),r=""}o!==i.length-1&&e.length<t?r=e:n.push(e)})),n}function Ft(e,t){let n=Et(e,t),i=n[0];return n.length>1&&(i+=" …"),i}function Pt(e){return e=e.replace(/^(\d{4,}-\d{2}-\d{2})(?!T|$)/,((e,t)=>t+"T00:00:00")),J().utc(e)}function zt(e,t,n){return e.hasOwnProperty(t)||(e[t]=n),e[t]}function Rt(e){setTimeout((function t(){e.next().done||setTimeout(t,0)}),0)}function Bt(e,t){return null==t?null:e.toString()+"-"+t}class Wt{constructor(e){this._p=e}type(){if(this._p)return"f"==this._p?"f":this._p.includes("/")?"d":"i"}toString(){let e;return e=this._p?"f"===this._p?"None":this._p.includes("/")?Ot(this.from(),!1)+" to "+Ot(this.to(),!0):Ot(this.to(),!0):"Undefined",e}to(){return this._p&&"f"!==this._p?this._p.includes("/")?Pt(this._p.split("/")[1]):Pt(this._p):null}from(){return this._p&&this._p.includes("/")?Pt(this._p.split("/")[0]):null}isEquivalentDuration(e){const t=e.type(),n=this.type();if(!t||!n)return!1;if(t!==n)return!1;if("d"!==t)return!0;const i=e.to().toDate()-e.from().toDate(),r=this.to().toDate()-this.from().toDate();return Math.abs(i-r)<.1*(i+r)}key(){return this._p}}const Yt={"http://standards.iso.org/iso/17442":{name:"LEI",url:"https://search.gleif.org/#/record/%s"},"http://www.sec.gov/CIK":{name:"CIK",url:"https://www.sec.gov/cgi-bin/browse-edgar?CIK=%s"},"http://www.companieshouse.gov.uk/":{name:"UK CRN",url:"https://beta.companieshouse.gov.uk/company/%08d"},"https://www.minfin.gov.ua":{name:"EDRPOU"}};class Ut{static identifierURL(e){const t=Yt[e.namespace];if(void 0!==t&&void 0!==t.url){let n=t.url.replace("%s",e.localname);return n=n.replace(/%0(\d+)d/,((t,n)=>e.localname.padStart(n,"0"))),n}}static identifierNameForFact(e){const t=Yt[e.identifier().namespace];if(void 0!==t)return t.name}static readableName(e){const t=Yt[e.namespace];return void 0!==t?"["+t.name+"] "+e.localname:e.qname}static readableNameHTML(e){const t=Yt[e.namespace],n=document.createElement("span");if(void 0!==t){n.appendChild(document.createElement("span")).textContent="["+t.name+"] ";const i=Ut.identifierURL(e);if(void 0!==i){const t=n.appendChild(document.createElement("a"));t.textContent=e.localname,t.setAttribute("target","_blank"),t.setAttribute("href",i)}else n.appendChild(document.createElement("span")).textContent=e.localname}else n.textContent=e.qname;return n}}const Ht={c:"Concept",e:"Entity",p:"Period",u:"Unit"};class Vt{constructor(e,t,n){this._aspect=e,this._value=t,this._report=n}name(){return this._aspect}label(){return Ht[this._aspect]??this._report.getLabel(this._aspect)}value(){return this._value}equalTo(e){return void 0!==e&&this._aspect===e._aspect&&this._value===e._value}isTaxonomyDefined(){return this._aspect.includes(":")}isNil(){return null===this._value}valueLabel(e){return"c"===this._aspect?this._report.getLabel(this._value,e)||this._value:this.isTaxonomyDefined()?this._report.getConcept(this._aspect).isTypedDimension()?null===this._value?"nil":this._value:this._report.getLabel(this._value,e)||this._value:"u"===this._aspect?this._report.reportSet.getUnit(this._value).label():"p"===this._aspect?new Wt(this._value).toString():"e"===this._aspect?Ut.readableName(this._report.qname(this._value)):this._value}}class Zt{constructor(e){this._aspectSet=e||[]}add(e){this._aspectSet.push(e)}uniqueValues(){let e={};for(const t of Object.values(this._aspectSet))e[t.value()]=t;return Object.values(e)}}class Gt{constructor(e,t){this.a="object"==typeof e?e:new Dt(e),this.b="object"==typeof t?t:new Dt(t)}static fromFact(e){if(!e.isNumeric())return;const t=e.decimals();let n,i=0;void 0!==t&&(i=new Dt(10).pow(0-t).times(.5));const r=e.value();try{n=new Dt(r)}catch(e){if(e instanceof Error&&/DecimalError/.test(e.message))return;throw e}return new Gt(n.minus(i),n.plus(i))}intersection(e){return Gt.intersection(this,e)}static intersection(...e){if(e.includes(void 0)||0==e.length)return;const t=e.map((e=>e.a)),n=e.map((e=>e.b)),i=Dt.max(...t),r=Dt.min(...n);return r.lessThan(i)?void 0:new Gt(i,r)}plus(e){return new Gt(this.a.plus(e.a),this.b.plus(e.b))}times(e){return e>0?new Gt(this.a.times(e),this.b.times(e)):new Gt(this.b.times(e),this.a.times(e))}midpoint(){return Dt.add(this.a,this.b).div(2)}}class Qt{constructor(e,t,n){this.f=n,this.ixNode=e.reportSet.getIXNodeForItemId(t),this.report=e,this.vuid=t,this.linkedFacts=[],this._footnotes=[]}localId(){return function(e){return e.replace(/^\d+-/,"")}(this.vuid)}getLabel(e,t){return this.report.getLabel(this.f.a.c,e,t)}getLabelOrName(e,t){return this.report.getLabelOrName(this.f.a.c,e,t)}conceptName(){return this.f.a.c}concept(){return this.report.getConcept(this.f.a.c)}conceptQName(){return this.report.qname(this.f.a.c)}period(){return new Wt(this.f.a.p)}periodString(){return this.period().toString()}periodTo(){return this.period().to()}periodFrom(){return this.period().from()}value(){return this.f.v}readableValue(e){let n=void 0===e?this.f.v:e;if(this.isInvalidIXValue())n="Invalid value";else if(this.isNumeric()){const e=this.decimals();let t;t=this.isNil()?"nil":jt(n,e),n=this.isMonetaryValue()?this.unitLabel()+" "+t:t+" "+this.unitLabel()}else if(this.isNil())n="nil";else if(this.escaped()){const e=t()("<div>").append(t()(t().parseHTML(n,null,!1)));e.find("p, td, th, h1, h2, h3, h4, ol, ul, pre, blockquote, dl, div").append(document.createTextNode(" ")).prepend(document.createTextNode(" ")),n=e.text().replace(/[\u00a0\s]+/g," ").trim()}else if(this.isEnumeration()){const e=[];for(const t of n.split(" "))e.push(this.report.getLabelOrName(t,"std"));n=e.join(", ")}return n}unit(){if(void 0===this._unit){const e=this.aspect("u")?.value();if(!e)return;this._unit=this.report.reportSet.getUnit(e)}return this._unit}unitLabel(){return this.unit()?.label()??V.t("factDetails.noUnit")}getConceptPrefix(){return this.conceptName().split(":")[0]}isCalculationContributor(){return void 0===this._isCalculationContributor&&(this._isCalculationContributor=this.report.isCalculationContributor(this.f.a.c)),this._isCalculationContributor}isCalculationSummation(){return void 0===this._isCalculationSummation&&(this._isCalculationSummation=this.report.isCalculationSummation(this.f.a.c)),this._isCalculationSummation}isNumeric(){return void 0!==this.f.a.u}dimensions(){const e={};for(const[t,n]of Object.entries(this.f.a))t.indexOf(":")>-1&&(e[t]=n);return e}hasExplicitDimension(){return Object.keys(this.dimensions()).some((e=>!this.report.getConcept(e).isTypedDimension()))}hasTypedDimension(){return Object.keys(this.dimensions()).some((e=>this.report.getConcept(e).isTypedDimension()))}isMonetaryValue(){return this.unit()?.isMonetary()??!1}isTextBlock(){return this.concept().isTextBlock()}aspects(){return Object.keys(this.f.a).map((e=>this.aspect(e)))}aspect(e){return void 0===this._aspects&&(this._aspects={}),void 0===this._aspects[e]&&void 0!==this.f.a[e]&&(this._aspects[e]=new Vt(e,this.f.a[e],this.report)),this._aspects[e]}isAligned(e,t){if(Object.keys(this.f.a).length!=Object.keys(e.f.a).length)return!1;for(const n in this.f.a)if(t.hasOwnProperty(n)){if(null!==t[n])if(t[n].constructor===Array){if(!t[n].includes(this.f.a[n]))return!1}else if(this.f.a[n]!=t[n])return!1}else if(this.f.a[n]!=e.f.a[n])return!1;return!0}isEquivalentDuration(e){return this.period().isEquivalentDuration(e.period())}decimals(){return this.f.d}scale(){return this.ixNode.scale}duplicates(){return this.report.getAlignedFacts(this)}isNil(){return null===this.f.v}isNegative(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Dt(this.value()).isNegative()&&!this.isZero()}isPositive(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Dt(this.value()).isPositive()&&!this.isZero()}isZero(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Dt(this.value()).isZero()}isInvalidIXValue(){return"INVALID_IX_VALUE"==this.f.err}getScaleLabel(e,t=!1){return this.report.getScaleLabel(t?-e:e,this.unit())}readableAccuracy(){if(!this.isNumeric()||this.isNil())return V.t("common.notApplicable");const e=this.decimals();if(void 0===e)return V.t("common.accuracyInfinite");if(null===e)return V.t("common.unspecified");const t=this.getScaleLabel(e,!0);return null!=t?t:e.toString()}readableScale(){if(!this.isNumeric()||this.isNil())return V.t("common.notApplicable");const e=this.scale();if(null==e)return V.t("common.unscaled");const t=this.getScaleLabel(e);return null!=t?t:e.toString()}identifier(){return this.report.qname(this.f.a.e)}escaped(){return this.ixNode.escaped}isEnumeration(){return this.concept().isEnumeration()}addFootnote(e){this._footnotes.push(e)}footnotes(){return this._footnotes}isHidden(){return this.ixNode.isHidden}isHTMLHidden(){return this.ixNode.htmlHidden()}widerConcepts(){const e=[],n=this.report.getParentRelationships(this.conceptName(),"w-n");for(const i in n)e.push(...t().map(n[i],(e=>e.src)));return e}narrowerConcepts(){const e=[],n=this.report.getChildRelationships(this.conceptName(),"w-n");for(const i in n)e.push(...t().map(n[i],(e=>e.t)));return e}addLinkedFact(e){this.linkedFacts.push(e)}roundedValue(){Dt.rounding=Dt.ROUND_HALF_UP;const e=new Dt(this.value()),t=this.decimals();return void 0===t?e:e.mul(10**t).round().mul(10**(0-t))}isCompleteDuplicate(e){return this.value()===e.value()&&this.decimals()===e.decimals()}addLinkedFact(e){this.linkedFacts.push(e)}valueInterval(){return Gt.fromFact(this)}isMorePrecise(e){return void 0!==e.decimals()&&(void 0===this.decimals()||this.decimals()>e.decimals())}targetDocument(){return this.report.targetDocument()}}class Jt{constructor(e,t){this._c=e.concepts()[t]||{},this.name=t,this.report=e}referenceValuesAsString(){return this._c.r?this._c.r.flatMap((e=>e.map((e=>e[1])))).join(" "):""}references(){return this._c.r?this._c.r.map((e=>e.map((e=>({part:e[0],value:e[1]}))))):[]}isTypedDimension(){return"t"===this._c.d}isExplicitDimension(){return"e"===this._c.d}isDimension(){return"d"in this._c}isEnumeration(){return Boolean(this._c&&this._c.e)}label(){return this.report.getLabelOrName(this.name)}isTextBlock(){return Boolean(this._c.t)}typedDomainElement(){return this._c.td}}class qt{constructor(e,t){this.reportSet=e,this._reportData=t,this._reverseRelationshipCache={}}availableLanguages(){if(!this._availableLanguages){this._availableLanguages=new Set;for(const e of Object.values(this._reportData.concepts))for(const t of Object.values(e.labels))for(const e of Object.keys(t))this._availableLanguages.add(e)}return this._availableLanguages}facts(){return this.reportSet.factsForReport(this)}targetDocument(){return this._reportData.target??null}getChildRelationships(e,t){const n={},i=this._reportData.rels[t]||{};for(const t in i)e in i[t]&&(n[t]=i[t][e]);return n}_reverseRelationships(e){if(!(e in this._reverseRelationshipCache)){const t={},n=this._reportData.rels[e]||{};for(const[e,i]of Object.entries(n))for(const[n,r]of Object.entries(i))for(const i of r)i.src=n,zt(zt(t,e,{}),i.t,[]).push(i);this._reverseRelationshipCache[e]=t}return this._reverseRelationshipCache[e]}getParentRelationships(e,t){const n={};for(const[i,r]of Object.entries(this._reverseRelationships(t)))e in r&&(n[i]=r[e]);return n}getParentRelationshipsInGroup(e,t,n){return(this._reverseRelationships(t)[n]||{})[e]||[]}dimensionDefault(e){for(const t of Object.values(this._reportData.rels["d-d"]||{}))if(e in t)return t[e][0].t}relationshipGroups(e){return Object.keys(this._reportData.rels[e]||{})}relationshipGroupRoots(e,t){const n=[];for(const i in this._reportData.rels[e][t])t in this.getParentRelationships(i,e)||n.push(i);return n}getAlignedFacts(e,t){const n=this.reportSet.facts(),i=[];t||(t={});for(const r of n)r.isAligned(e,t)&&i.push(r);return i}deduplicate(e){const t=[];for(const n of e){let e=!1;for(const i of t)i.isAligned(n,{})&&(e=!0);e||t.push(n)}return t}getConcept(e){return new Jt(this,e)}getRoleLabel(e){const t=this._reportData.roleDefs[e];if(void 0!==t){const e=t.en;if(null!=e)return e}return this.reportSet.roleMap()[e]}localDocuments(){return void 0===this._reportData.localDocs?{}:this._reportData.localDocs}qname(e){return this.reportSet.qname(e)}getScaleLabel(e,t){let n=V.t(`scale.${e}`,{defaultValue:"noName"});if(t&&t.isMonetary()&&-2===e){let e=t.value()??"";e&&(e=this.qname(e).localname),n=V.t(`currencies:cents${e}`,{defaultValue:n})}return"noName"===n?null:n}concepts(){return this._reportData.concepts}getLabel(e,t,n){t=t||"std";const i=this.reportSet.viewerOptions.language,r=this._reportData.concepts[e];if(void 0===r)return console.log("Attempt to get label for undefined concept: "+e),"<no label>";const o=r.labels[t];if(void 0!==o&&0!=Object.keys(o).length){let t;if(t=i&&o[i]?o[i]:o.en||o["en-us"]||o[Object.keys(o).sort()[0]],void 0===t)return;let r="";return n&&this.reportSet.viewerOptions.showPrefixes&&(r="("+this.qname(e).prefix+") "),r+=t,r}}getLabelOrName(e,t,n){const i=this.getLabel(e,t,n);return void 0===i?e:i}isCalculationContributor(e){return void 0===this._calculationContributors&&(this._reportData.rels?.calc?this._calculationContributors=new Set(Object.values(this._reportData.rels.calc).flatMap((e=>Object.values(e).flatMap((e=>e.map((e=>e.t))))))):this._calculationContributors=new Set),this._calculationContributors.has(e)}isCalculationSummation(e){return void 0===this._calculationSummations&&(this._reportData.rels?.calc?this._calculationSummations=new Set(Object.values(this._reportData.rels.calc).flatMap((e=>Object.keys(e)))):this._calculationSummations=new Set),this._calculationSummations.has(e)}}class Xt{constructor(e,t,n){this.vuid=t,this.linkedFacts=[],this.title=n,this.ixNode=e.reportSet.getIXNodeForItemId(t)}addLinkedFact(e){this.linkedFacts.push(e)}textContent(){return this.ixNode.textContent()}readableValue(){return this.textContent()}isTextBlock(){return!1}}class Kt{constructor(e,t){this._reportSet=e,this._value=t;const n=t.split(/[()]/gi).join("").split("/");this._numerators=n[0].split("*"),this._denominators=n.length>1?n[1].split("*"):[],this._isMonetary=0===this._denominators.length&&1===this._numerators.length&&this._reportSet.qname(this._numerators[0]).namespace===Nt,this._label=n.map((e=>{const t=e.split("*").map((e=>function(e,t){const n=e.qname(t);return n.namespace===Nt?t=V.t(`currencies:unitFormat${n.localname}`,{defaultValue:n.localname}):t.includes(":")&&(t=t.split(":")[1]),t}(this._reportSet,e))).join("*");return t.includes("*")?`(${t})`:t})).join("/")}isMonetary(){return this._isMonetary}label(){return this._label}value(){return this._value}}class $t{constructor(e,t){const n=t.split(":",2);this.localname=n[1],this.prefix=n[0],this.namespace=e[n[0]],this.qname=t}}function en(){this.showPrefixes=!0,this.language=null}class tn{constructor(e){this._data=e,this._ixNodeMap={},this.viewerOptions=new en}setIXNodeMap(e){this._ixNodeMap=e,this._initialize()}_initialize(){this._items={},this.reports=[];const e=Object.keys(this._ixNodeMap).filter((e=>this._ixNodeMap[e].footnote));e.sort(((e,t)=>this._ixNodeMap[e].docOrderindex-this._ixNodeMap[t].docOrderindex));for(const[t,n]of(this._data.sourceReports??[{targetReports:[this._data]}]).entries())for(const i of n.targetReports){const n=new qt(this,i);this.reports.push(n);for(const[e,r]of Object.entries(i.facts)){const i=Bt(t,e);this._items[i]=new Qt(n,i,r)}for(const[n,r]of Object.entries(i.facts)){const i=Bt(t,n),o=this._items[i];(r.fn||[]).forEach((n=>{const i=Bt(t,n);var r=this._items[i];void 0===r&&(r=new Xt(o.report,i,"Footnote "+(e.indexOf(i)+1)),this._items[i]=r),r.addLinkedFact(o),o.addFootnote(r)}))}}}availableLanguages(){return Array.from(this.reports.reduce(((e,t)=>new Set([...e,...t.availableLanguages()])),new Set))}getItemById(e){return this._items[e]}getIXNodeForItemId(e){return this._ixNodeMap[e]||{}}facts(){return Object.values(this._items).filter((e=>e instanceof Qt))}filingDocuments(){return this._data.filingDocuments}prefixMap(){return this._data.prefixes}namespaceGroups(){const e={};for(const t of this.facts())e[t.conceptQName().prefix]=(e[t.conceptQName().prefix]||0)+1;const t=Object.keys(e);return t.sort(((t,n)=>e[n]-e[t])),t}getUsedConceptPrefixes(){return void 0===this._usedPrefixes&&(this._usedPrefixes=new Set(Object.values(this._items).filter((e=>e instanceof Qt)).map((e=>e.getConceptPrefix())))),this._usedPrefixes}getTargetDocuments(){return void 0===this._targetDocuments&&(this._targetDocuments=new Set(Object.values(this._items).filter((e=>e instanceof Qt)).map((e=>e.targetDocument())))),this._targetDocuments}getUsedUnits(){return void 0===this._usedUnits&&(this._usedUnits=new Set(Object.values(this._items).filter((e=>e instanceof Qt)).map((e=>e.unit()?.value())).filter((e=>e)).sort())),this._usedUnits}getUnit(e){return void 0===this._unitsMap&&(this._unitsMap={}),void 0===this._unitsMap[e]&&(this._unitsMap[e]=new Kt(this,e)),this._unitsMap[e]}getUsedScalesMap(){const e={};return Object.values(this._items).filter((e=>e instanceof Qt)).forEach((t=>{const n=t.scale();if(null!=n){n in e||(e[n]=new Set);const r=e[n],o=(i=t.getScaleLabel(n))?i.split(" ").map((e=>Array.from(e).map(((e,t)=>0===t?e.toUpperCase():e)).join(""))).join(" "):i;o&&!r.has(o)&&r.add(o)}var i})),e}roleMap(){return this._data.roles}qname(e){return new $t(this.prefixMap(),e)}reportsData(){return this._data.sourceReports?.flatMap((e=>e.targetReports))??[this._data]}reportFiles(){return(this._data.sourceReports??[this._data]).map(((e,t)=>(e.docSetFiles??[]).map((e=>({index:t,file:e}))))).flat()}isMultiDocumentViewer(){return this.reportFiles().length>1}usesAnchoring(){return this.reportsData().some((e=>void 0!==e.rels?.["w-n"]))}hasValidationErrors(){return void 0!==this._data.validation&&this._data.validation.length>0}validation(){return this._data.validation}factsForReport(e){return Object.values(this._items).filter((t=>t instanceof Qt&&t.report==e))}}function nn(e){return"(?:"+e.join("|")+")"}function rn(e){return"(?:"+e+")?"}function on(e){return"(?:"+e+")*"}const an=nn(["$","¢","\\bUS$","€","£","¥","\\bC$","\\bA$","\\bNT$","\\bS$","₩","₱","₨","\\bkr","\\bFr.","\\bRM","\\bR$","\\bR"]).replace(/([$.])/g,"\\$1"),sn="[ \t\n\r]",ln=sn+"*",cn="[-—]",un="(?:^|(?<=(?:[/“—(]|"+sn+"|"+cn+")))",dn="(?:$|(?=(?:[/,.:;”—)]|"+sn+"|"+cn+")))",hn="(?:st|nd|rd|th)",fn="[123]?\\d"+hn+"?",pn="(?:jan|january|feb|february|mar|march|apr|april|may|jun|june|jul|july|aug|august|sep|september|sept|oct|october|nov|november|dec|december)",gn="(?:[01]?\\d)",mn="(?:19|20)\\d\\d",vn="year"+ln+mn,yn=pn+ln+fn+ln+","+ln+mn,bn=mn+ln+pn+ln+fn,xn="\\d{4}-\\d{2}-\\d{2}",wn=nn([yn,bn,pn+ln+mn,pn+ln+fn,xn]),An=(nn([yn,bn,xn]),"\\b"+nn([wn,mn,vn])+"\\b"),Cn="\\d+"+ln+"months?",_n="(?:\\b(?:zero|one|two|three|four(?:teen)?|five|six(?:ty|teen)?|seven(?:ty|teen)?|eight(?:y|een)?|nine(?:ty|teen)?|ten|eleven|twelve|thirteen|fifteen|twenty|thirty|forty|fifty)\\b)",kn="section"+ln+"\\d{1,3}\\(?:?\\w\\)?",Mn="topic"+ln+"\\d{1,3}(?:\\.[\\w\\d])*",Sn="form"+ln+"\\d{1,2}-\\w",In="asc"+ln+"\\w\\d{1,3}(?:-\\w?\\d{1,3})*",Ln="item"+ln+"\\d{1,2}\\w?",Tn="rule"+ln+"\\d{1,3}\\w?(?:-\\d{1,3}\\w?)*",Dn="note"+ln+"\\d{1,3}",Nn="level"+ln+"\\d{1,3}",On="page"+ln+"\\d{1,3}",jn="tier"+ln+"\\d{1,3}",En=nn([_n,"\\d+"])+ln+"months ended",Fn=nn([kn,Mn,Sn,In,Ln,Tn,Dn,Nn,On,jn,En,gn+"/[0-3]?d/"+mn,gn+"/\\d\\d"]),Pn=nn([rn(ln+cn+ln),ln]),zn=_n+on(Pn+_n),Rn=zn+on(Pn+"(\\b(hundred|thousand|million|billion|trillion)\\b)"+rn(Pn+zn)),Bn=nn([nn(["\\d{1,3}(?:,\\d{3})+","\\d+"])+rn("\\.\\d+"),"\\.\\d+"]),Wn=nn([rn(an+ln)+rn("[-+(]"+ln)+rn(an+ln)+Bn+rn(hn)+rn(ln+nn([an,"\\%"]))+ln+"\\)?"+rn(ln+nn([an,"\\%"])),Rn,"\\b(?:no|none)\\b","[-֊־‐-―﹘﹣]"]),Yn=un+nn(["("+An+")","("+Fn+")",Cn,Wn])+dn,Un=new RegExp(Yn,"gi");var Hn=n(60),Vn=n(461);function Zn(e,t){var n=t.attribute;return e=e.replace(Gn,"&").replace(Qn,">").replace(Jn,"<"),n&&(e=e.replace(qn,"'").replace(Xn,""")),e}var Gn=/&/g,Qn=/>/g,Jn=/</g,qn=/'/g,Xn=/"/g,Kn=/((?:[\0-\x08\x0B\f\x0E-\x1F\uFFFD\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g,$n=new RegExp("([\\x7F-\\x84]|[\\x86-\\x9F]|[\\uFDD0-\\uFDEF]|(?:\\uD83F[\\uDFFE\\uDFFF])|(?:\\uD87F[\\uDFFE\\uDFFF])|(?:\\uD8BF[\\uDFFE\\uDFFF])|(?:\\uD8FF[\\uDFFE\\uDFFF])|(?:\\uD93F[\\uDFFE\\uDFFF])|(?:\\uD97F[\\uDFFE\\uDFFF])|(?:\\uD9BF[\\uDFFE\\uDFFF])|(?:\\uD9FF[\\uDFFE\\uDFFF])|(?:\\uDA3F[\\uDFFE\\uDFFF])|(?:\\uDA7F[\\uDFFE\\uDFFF])|(?:\\uDABF[\\uDFFE\\uDFFF])|(?:\\uDAFF[\\uDFFE\\uDFFF])|(?:\\uDB3F[\\uDFFE\\uDFFF])|(?:\\uDB7F[\\uDFFE\\uDFFF])|(?:\\uDBBF[\\uDFFE\\uDFFF])|(?:\\uDBFF[\\uDFFE\\uDFFF])(?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]))","g");function ei(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).removeDiscouragedCharacters,n=void 0===t||t;return e=e.replace(Kn,""),n&&(e=e.replace($n,"")),e}function ti(e){return Zn(ei(e),{attribute:!1})}function ni(e,t){return"".concat(ri(e)).concat(t)}var ii=26;function ri(e){if("number"!=typeof e)return"";var t=Math.floor(e/ii),n=String.fromCharCode(97+e%ii).toUpperCase();return 0===t?n:ri(t-1)+n}var oi=25569,ai=864e5;function si(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function li(e,t,n,i,r,o){if(null===n&&!r)return"";var a='<c r="'.concat(ni(t,e),'"');if(r&&(a+=' s="'.concat(r,'"')),null===n)return a+"/>";if(i===Date&&!r)throw new Error('No "format" has been specified for a Date cell');n=function(e,t,n){switch(e){case String:if("string"!=typeof t)throw new Error("Invalid cell value: ".concat(t,". Expected a string"));return n(t);case Number:if("number"!=typeof t)throw new Error("Invalid cell value: ".concat(t,". Expected a number"));return String(t);case Date:if(!(t instanceof Date))throw new Error("Invalid cell value: ".concat(t,". Expected a Date"));return String(function(e){return e.getTime()/ai+oi}(t));case Boolean:if("boolean"!=typeof t)throw new Error("Invalid cell value: ".concat(t,". Expected a boolean"));return t?"1":"0";case"Formula":if("string"!=typeof t)throw new Error("Invalid cell value: ".concat(t,". Expected a string"));return ti(t);default:throw new Error("Unknown schema type: ".concat(e&&e.name||e))}}(i,n,o),(i=function(e){switch(e){case String:return"s";case Number:case Date:return;case Boolean:return"b";case"Formula":return"f";default:throw new Error("Unknown schema type: ".concat(e&&e.name||e))}}(i))&&(a+=' t="'.concat(i,'"'));var s,l,c,u,d=(c=function(e){switch(e){case"inlineStr":return"<is><t>";case"f":return"<f>";default:return"<v>"}}(i),u=c.replace(ci,"</"),[c,u]),h=(l=2,function(e){if(Array.isArray(e))return e}(s=d)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(s,l)||function(e,t){if(e){if("string"==typeof e)return si(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?si(e,t):void 0}}(s,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return a+">"+h[0]+n+h[1]+"</c>"}var ci=/</g;function ui(e){var t=e.align,n=e.alignVertical,i=e.textRotation,r=e.wrap,o=e.fontFamily,a=e.fontSize,s=e.fontWeight,l=e.fontStyle,c=e.color,u=e.backgroundColor,d=e.borderColor,h=e.borderStyle,f=e.leftBorderColor,p=e.leftBorderStyle,g=e.rightBorderColor,m=e.rightBorderStyle,v=e.topBorderColor,y=e.topBorderStyle,b=e.bottomBorderColor,x=e.bottomBorderStyle;if(t||n||i||r||o||a||s||l||c||u||d||h||f||p||g||m||v||y||b||x)return function(e){var t={};for(var n in e)void 0!==e[n]&&(t[n]=e[n]);return t}({align:t,alignVertical:n,textRotation:i,wrap:r,fontFamily:o,fontSize:a,fontWeight:s,fontStyle:l,color:c,backgroundColor:u,borderColor:d,borderStyle:h,leftBorderColor:f,leftBorderStyle:p,rightBorderColor:g,rightBorderStyle:m,topBorderColor:v,topBorderStyle:y,bottomBorderColor:b,bottomBorderStyle:x})}function di(e){return di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},di(e)}function hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function fi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hi(Object(n),!0).forEach((function(t){pi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var mi={fontWeight:"bold"},vi=14;function yi(e,t){if(!e)return"";if(e.type!==Date||e.width||(e.width=vi),!e.width)return"";var n=t+1;return'<col min="'.concat(n,'" max="').concat(n,'" width="').concat(e.width,'" customWidth="1"/>')}function bi(e){var t=e.data,n=e.rowIndex,i=e.columnIndex,r=e.span,o=e.rowSpan,a=e.cloneData,s=ui(t[n][i]);s&&(t=a());for(var l=n;l<=n+(o-1);){for(var c=i;c<=i+(r-1);){var u=t[l][c];if(l>n||c>i){if(null!=u)throw new Error("[write-excel-file] When using `span` or `rowSpan` parameters, all hidden overlapped cells should be represented by `null`s or `undefined`s. Cell at row ".concat(n+1," and column ").concat(i+1," is configured with `span` ").concat(r," and `rowSpan` ").concat(o,". Cell at row ").concat(l+1," and column ").concat(c+1," is neither `null` nor `undefined`: ").concat(JSON.stringify(u)));s&&(t[l][c]=s)}c++}l++}}function xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function wi(e){return Zn(ei(e),{attribute:!0})}var Ai='<?xml version="1.0" ?>\n<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">{views}{columnsDescription}<sheetData>{data}</sheetData>{mergedCellsDescription}{layout}</worksheet>';function Ci(e,t){var n=t.schema,i=t.columns,r=t.headerStyle,o=t.getStyle,a=t.getSharedString,s=t.customFont,l=t.dateFormat,c=t.orientation,u=t.stickyRowsCount,d=t.stickyColumnsCount,h=t.sheetId;!function(e,t){if(t.schema){if(!Array.isArray(e))throw new TypeError("Expected an array of objects")}else{if(!Array.isArray(e))throw new TypeError("Expected an array of arrays");if(e.length>0&&!Array.isArray(e[0]))throw new TypeError("Expected an array of arrays")}}(e,{schema:n});var f=function(e,t){var n=[];if(t.schema)return{data:e,mergedCells:n};for(var i=function(){e=e.slice();for(var t=0;t<e.length;)e[t]=e[t].slice(),t++;return i=function(){return e},e},r=0;r<e.length;){for(var o=e[r],a=0;a<o.length;){var s=o[a];if(s){var l=s.span,c=void 0===l?1:l,u=s.rowSpan,d=void 0===u?1:u;(c>1||d>1)&&(bi({data:e,rowIndex:r,columnIndex:a,span:c,rowSpan:d,cloneData:i}),n.push([[r,a],[r+(d?d-1:0),a+(c?c-1:0)]]))}a++}r++}return{data:e,mergedCells:n}}(e,{schema:n}),p=f.data,g=f.mergedCells;return Ai.replace("{data}",function(e,t){var n=t.schema,i=t.headerStyle,r=t.getStyle,o=t.getSharedString,a=t.customFont,s=t.dateFormat;if(n){for(var l,c=[],u=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return gi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(l=u()).done;)if(l.value.column){c=[n.map((function(e){return fi({type:String,value:e.column,align:e.align},i||mi)}))];break}e=c.concat(e.map((function(e){return n.map((function(t){return fi(fi({},t),{},{value:t.value(e)})}))})))}return e.map((function(e,t){return function(e,t,n){var i,r=n.getStyle,o=n.getSharedString,a=n.customFont,s=n.dateFormat,l=n.usesSchema,c=t+1,u=e.map((function(e,t){if(null==e)return"";var n,u=e.height,d=ui(e),h=e.type,f=e.value,p=e.format;if(function(e){return null==e||""===e}(f)?f=null:void 0===h&&(l||(h=function(e){switch(di(e)){case"string":return String;case"number":return Number;case"boolean":return Boolean;default:if(e instanceof Date)return Date}}(f)),void 0===h&&(h=String,f=String(f))),p){if(h!==Date&&h!==Number&&"Formula"!==h)throw new Error('`format` can only be used on `Date`, `Number` or `"Formula"` cells')}else h===Date&&(p=s);return(p||a||d)&&(n=r(d||{},{format:p})),u&&(void 0===i||i<u)&&(i=u),li(c,t,f,h,n,o)})).join("");return'<row r="'.concat(c,'"')+(i?' ht="'.concat(i,'" customHeight="1"'):"")+">"+u+"</row>"}(e,t,{getStyle:r,getSharedString:o,customFont:a,dateFormat:s,usesSchema:void 0!==n})})).join("")}(p,{schema:n,headerStyle:r,getStyle:o,getSharedString:a,customFont:s,dateFormat:l})).replace("{views}",function(e){var t=e.stickyRowsCount,n=e.stickyColumnsCount;if(!t&&!n)return"";var i="";return i+="<sheetViews>",i+='<sheetView tabSelected="1" workbookViewId="0">',i+='<pane ySplit="'.concat(t||0,'" xSplit="').concat(n||0,'" topLeftCell="').concat(ni(n||0,(t||0)+1),'" activePane="bottomRight" state="frozen"/>'),(i+="</sheetView>")+"</sheetViews>"}({stickyRowsCount:u,stickyColumnsCount:d})).replace("{columnsDescription}",function(e){var t=e.schema,n=e.columns;if(t||n){var i=(t||n).map(yi).join("");if(i)return"<cols>".concat(i,"</cols>")}return""}({schema:n,columns:i})).replace("{mergedCellsDescription}",function(e){return 0===e.length?"":'<mergeCells count="'.concat(e.length,'">')+e.map((function(e){var t,n,i=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return xi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xi(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=i[0],o=i[1],a=ni(r[1],r[0]+1)+":"+ni(o[1],o[0]+1);return'<mergeCell ref="'.concat(a,'"/>')})).join("")+"</mergeCells>"}(g)).replace("{layout}",function(e){var t=e.sheetId,n=e.orientation,i="";return n&&(i+="<pageMargins",i+=' left="'.concat(.7,'"'),i+=' right="'.concat(.7,'"'),i+=' top="'.concat(.75,'"'),i+=' bottom="'.concat(.75,'"'),i+=' header="'.concat(.3,'"'),i+=' footer="'.concat(.3,'"'),i+="/>"),n&&(i+="<pageSetup",i+=' paperSize="'.concat(9,'"'),i+=' orientation="'.concat(wi(n),'"'),i+=' r:id="rId'.concat(t,'"'),i+="/>"),i}({sheetId:h,orientation:c}))}function _i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ki(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ki(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ki(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Mi=100;function Si(e){if("#"!==e[0])throw new Error('Color "'.concat(e,'" must start with a "#"'));return"FF".concat(e.slice(1).toUpperCase())}function Ii(e){if(!(e>=-90&&e<=90))throw new Error("Unsupported text rotation angle: ".concat(e,". Values from -90 to 90 are supported."));return e}function Li(e){return e<0?90-e:e}function Ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Di(){var e=[],t={};return{getSharedStringsXml:function(){return function(e){var t='<?xml version="1.0"?>';t+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ti(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(n=i()).done;){var r=n.value,o=r.trim().length===r.length?"":' xml:space="preserve"';t+="<si><t".concat(o,">"),t+=ti(r),t+="</t></si>"}return t+"</sst>"}(e)},getSharedString:function(n){var i=t[n];return void 0===i&&(i=String(e.length),t[n]=i,e.push(n)),i}}}var Ni=/[\[\]\/\\:*?]+/;function Oi(e){if(!e)throw new Error("Sheet name can't be empty");if(e.length>31)throw new Error('Sheet name "'.concat(e,"\" can't be longer than 31 characters"));if(Ni.test(e))throw new Error('Sheet name "'.concat(e,'" contains illegal characters: []/\\:*?'))}function ji(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ei(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Fi=["fileName"];function Pi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function zi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fileName;return function(e,t){var n=t.sheet,i=t.sheets,r=t.schema,o=t.columns,a=t.headerStyle,s=t.fontFamily,l=t.fontSize,c=t.orientation,u=t.stickyRowsCount,d=t.stickyColumnsCount,h=t.dateFormat,f=new Vn;f.file("_rels/.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>'),f.file("[Content_Types].xml",'<?xml version="1.0" ?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default ContentType="application/xml" Extension="xml"/><Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" PartName="/xl/sharedStrings.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" PartName="/xl/styles.xml"/></Types>');var p=function(e){var t=e.data,n=e.sheetName,i=e.sheetNames,r=e.schema,o=e.columns,a=e.headerStyle,s=e.fontFamily,l=e.fontSize,c=e.orientation,u=e.stickyRowsCount,d=e.stickyColumnsCount,h=e.dateFormat,f=Di(),p=f.getSharedStringsXml,g=f.getSharedString,m=function(e){var t=e.fontFamily,n=e.fontSize,i=Boolean(t||n);void 0===t&&(t="Calibri"),void 0===n&&(n=12);var r=[],o={},a=[],s={},l=[],c={},u=[],d={},h=[],f={};function p(e,p){var g,m=e.align,v=e.alignVertical,y=e.textRotation,b=e.wrap,x=e.fontFamily,w=e.fontSize,A=e.fontWeight,C=e.fontStyle,_=e.color,k=e.backgroundColor,M=e.borderColor,S=e.borderStyle,I=e.leftBorderColor,L=e.leftBorderStyle,T=e.rightBorderColor,D=e.rightBorderStyle,N=e.topBorderColor,O=e.topBorderStyle,j=e.bottomBorderColor,E=e.bottomBorderStyle,F=p.format,P="".concat(x||"-",":").concat(w||"-",":").concat(A||"-",":").concat(C||"-",":").concat(_||"-"),z=k||"-",R="".concat(N||M||"-",":").concat(O||S||"-")+"/"+"".concat(T||M||"-",":").concat(D||S||"-")+"/"+"".concat(j||M||"-",":").concat(E||S||"-")+"/"+"".concat(I||M||"-",":").concat(L||S||"-"),B="".concat(m||"-","/").concat(v||"-","/").concat(y||"-","/").concat(F||"-","/").concat(b||"-","/").concat(P,"/").concat(z,"/").concat(R),W=s[B];if(void 0!==W)return W;F&&void 0===(g=o[F])&&(g=o[F]=String(Mi+r.length),r.push(F));var Y,U,H=i?0:void 0;return(x||w||A||C||_)&&void 0===(H=c[P])&&(H=c[P]=String(l.length),l.push({custom:!0,size:w||n,family:x||t,weight:A,style:C,color:_})),k&&void 0===(Y=d[z])&&(Y=d[z]=String(u.length),u.push({color:k})),(M||S||I||L||T||D||N||O||j||E)&&void 0===(U=f[R])&&(U=f[R]=String(h.length),h.push({left:{style:L||S,color:I||M},right:{style:D||S,color:T||M},top:{style:O||S,color:N||M},bottom:{style:E||S,color:j||M}})),a.push({fontId:H,fillId:Y,borderId:U,align:m,alignVertical:v,textRotation:y,wrap:b,formatId:g}),s[B]=String(a.length-1)}return l.push({size:n,family:t,custom:i}),c["-:-"]=0,u.push({}),d["-"]=0,h.push({left:{},right:{},top:{},bottom:{}}),f["-:-/-:-/-:-/-:-"]=0,u.push({gray125:!0}),p({},{}),{getStylesXml:function(){return function(e){var t=e.formats,n=e.styles,i=e.fonts,r=e.fills,o=e.borders,a='<?xml version="1.0" ?>';if(a+='<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',t.length>0){a+='<numFmts count="'.concat(t.length,'">');for(var s=0;s<t.length;s++)a+='<numFmt numFmtId="'.concat(Mi+s,'" formatCode="').concat(wi(t[s]),'"/>');a+="</numFmts>"}a+='<fonts count="'.concat(i.length,'">');for(var l,c=_i(i);!(l=c()).done;){var u=l.value,d=u.size,h=u.family,f=u.color,p=u.weight,g=u.style,m=u.custom;a+="<font>",a+='<sz val="'.concat(d,'"/>'),a+="<color ".concat(f?'rgb="'+wi(Si(f))+'"':'theme="1"',"/>"),a+='<name val="'.concat(wi(h),'"/>'),a+='<family val="2"/>',m||(a+='<scheme val="minor"/>'),"bold"===p&&(a+="<b/>"),"italic"===g&&(a+="<i/>"),a+="</font>"}a+="</fonts>",a+='<fills count="'.concat(r.length,'">');for(var v,y=_i(r);!(v=y()).done;){var b=v.value,x=b.color,w=b.gray125;a+="<fill>",x?(a+='<patternFill patternType="solid">',a+='<fgColor rgb="'.concat(wi(Si(x)),'"/>'),a+='<bgColor indexed="64"/>',a+="</patternFill>"):a+=w?'<patternFill patternType="gray125"/>':'<patternFill patternType="none"/>',a+="</fill>"}a+="</fills>",a+='<borders count="'.concat(o.length,'">');for(var A,C=_i(o);!(A=C()).done;){var _=A.value,k=_.left,M=_.right,S=_.top,I=_.bottom,L=function(e,t){var n=t.style,i=t.color;i&&!n&&(n="thin");var r=!!i;return"<".concat(e)+(n?' style="'.concat(wi(n),'"'):"")+(r?">":"/>")+(i?'<color rgb="'.concat(wi(Si(i)),'"/>'):"")+(r?"</".concat(e,">"):"")};a+="<border>",a+=L("left",k),a+=L("right",M),a+=L("top",S),a+=L("bottom",I),a+="<diagonal/>",a+="</border>"}a+="</borders>",a+='<cellXfs count="'.concat(n.length,'">');for(var T,D=_i(n);!(T=D()).done;){var N=T.value,O=N.fontId,j=N.fillId,E=N.borderId,F=N.align,P=N.alignVertical,z=N.textRotation,R=N.wrap,B=N.formatId;a+="<xf "+[void 0!==B?'numFmtId="'.concat(B,'"'):void 0,void 0!==B?'applyNumberFormat="1"':void 0,void 0!==O?'fontId="'.concat(O,'"'):void 0,void 0!==O?'applyFont="1"':void 0,void 0!==j?'fillId="'.concat(j,'"'):void 0,void 0!==j?'applyFill="1"':void 0,void 0!==E?'borderId="'.concat(E,'"'):void 0,void 0!==E?'applyBorder="1"':void 0,F||P||z||R?'applyAlignment="1"':void 0].filter((function(e){return e})).join(" ")+">"+(F||P||z||R?"<alignment"+(F?' horizontal="'.concat(wi(F),'"'):"")+(P?' vertical="'.concat(wi(P),'"'):"")+(R?' wrapText="1"':"")+(z?' textRotation="'.concat(Li(Ii(z)),'"'):"")+"/>":"")+"</xf>"}return(a+="</cellXfs>")+"</styleSheet>"}({formats:r,styles:a,fonts:l,fills:u,borders:h})},getStyle:p}}({fontFamily:s,fontSize:l}),v=m.getStylesXml,y=m.getStyle;if(i&&o&&!Array.isArray(o[0]))throw new Error('In a "write multiple sheets" scenario, `columns` parameter must be an array of `columns` for each sheet.');i||(i=[n||"Sheet1"],t=[t],o&&(o=[o]),r&&(r=[r]));for(var b,x=ji(i);!(b=x()).done;)Oi(b.value);for(var w,A=[],C=0,_=ji(i);!(w=_()).done;)w.value,A.push(Ci(t[C],{schema:r&&r[C],columns:o&&o[C],headerStyle:a,getStyle:y,getSharedString:g,customFont:s||l,dateFormat:h,orientation:c,stickyRowsCount:u,stickyColumnsCount:d,sheetId:C+1})),C++;return{sheets:i.map((function(e,t){return{id:t+1,name:e,data:A[t]}})),getSharedStringsXml:p,getStylesXml:v}}({data:e,sheetName:n,sheetNames:i,schema:r,columns:o,headerStyle:a,fontFamily:s,fontSize:l,orientation:c,stickyRowsCount:u,stickyColumnsCount:d,dateFormat:h}),g=p.sheets,m=p.getSharedStringsXml,v=p.getStylesXml,y=f.folder("xl");y.file("_rels/workbook.xml.rels",function(e){var t=e.sheets;return'<?xml version="1.0" ?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+t.map((function(e){var t=e.id;return'<Relationship Id="rId'.concat(t,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet').concat(t,'.xml"/>')})).join("")+'<Relationship Id="rId'.concat(t.length+1,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/>')+'<Relationship Id="rId'.concat(t.length+2,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>')+"</Relationships>"}({sheets:g})),y.file("workbook.xml",function(e){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"><workbookPr/>'+(e.stickyRowsCount||e.stickyColumnsCount?"<bookViews><workbookView/></bookViews>":"")+"<sheets>"+e.sheets.map((function(e){var t=e.id,n=e.name;return'<sheet name="'.concat(n,'" sheetId="').concat(t,'" r:id="rId').concat(t,'"/>')})).join("")+"</sheets><definedNames/><calcPr/></workbook>"}({sheets:g,stickyRowsCount:u,stickyColumnsCount:d})),y.file("styles.xml",v()),y.file("sharedStrings.xml",m());for(var b,x=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Pi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(g);!(b=x()).done;){var w=b.value,A=w.id,C=w.data;y.file("worksheets/sheet".concat(A,".xml"),C)}return f.generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})}(e,function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,Fi)).then((function(e){return n?Hn.saveAs(e,n):e}))}class Ri{constructor(e,t){this._table=e,this._reportSet=t}static addHandles(e,n){t()("table",e).each((function(){const e=t()(this);if(e.find(".ixbrl-element").length>0){e.css("position","relative");const i=new Ri(e,n);t()('<div class="ixbrl-table-handle"><span>Export table</span></div>').appendTo(e).click((()=>i.exportTable()))}}))}_getRawTable(){const e=this._table,n=this._reportSet;let i=0;const r=[];e.find("tr").each((function(){const e=[];t()(this).find("td:visible, th:visible").each((function(){const i=t()(this).attr("colspan");if(i)for(let t=0;t<i-1;t++)e.push({type:"static",value:""});const r=t()(this).find(".ixbrl-element").addBack(".ixbrl-element");let o=null;if(r.length>0){const e=r.first().data("ivids");o=n.getItemById(e)}if(o instanceof Qt){const n={type:"fact",fact:o},i=t()(this)[0];let a=r[0],s=a.textContent;for(;a!==i;)a=null!==a.previousSibling?a.previousSibling:a.parentNode,3==a.nodeType&&(s=a.textContent+s);null!==s.match(/[\(-]\s*\d/)&&(n.negative=!0),n.topBorder=null!==t()(this).css("border-top-style").match(/(solid|double)/),n.bottomBorder=null!==t()(this).css("border-bottom-style").match(/(solid|double)/),e.push(n)}else{const n=t()(this).text();e.push({type:"static",value:n})}})),e.length>i&&(i=e.length),r.push(e)}));for(const e of r)for(;e.length<i;)e.push({type:"static",value:""});return r}_getFactsInSlice(e){return e.filter((e=>"fact"===e.type)).map((e=>e.fact))}_getConstantAspectsForSlice(e,t){const n=this._getFactsInSlice(e);if(0==n.length)return null;const i=new Set;for(const e of n)for(const t of e.aspects())i.add(t.name());const r=new Map;for(const e of i){r.set(e,n[0].aspect(e));for(let t=1;t<n.length;t++)void 0!==r.get(e)&&r.get(e).equalTo(n[t].aspect(e))||r.delete(e)}return r}_writeTable(e){const t=[],n=[];for(const[i,r]of e.entries()){const e=[];for(const[t,i]of r.entries()){const r={};"fact"===i.type?(n[t]={width:18},r.value=Number(i.fact.value()),r.type=Number,r.format="#,##0",i.negative?r.value=-1*Math.abs(r.value):r.value=Math.abs(r.value),i.topBorder&&(r.topBorderStyle="medium",r.topBorderColor="#000000"),i.bottomBorder&&(r.bottomBorderStyle="medium",r.bottomBorderColor="#000000")):"aspectLabel"===i.type?(r.value=i.value,r.type=String):(r.value=i.value,r.type=String,r.color="#707070"),e.push(r)}t.push(e)}return{columns:n,data:t}}exportTable(){const e=this._getRawTable();let t=0;const n=[],i=new Set;for(const r of e){const e=this._getConstantAspectsForSlice(r);if(n.push(e),null!==e)for(const[t,n]of e)i.add(t);r.length>t&&(t=r.length)}const r=[],o=new Set;for(let n=0;n<t;n++){const t=e.map((e=>e[n])),i=this._getConstantAspectsForSlice(t);if(r.push(i),null!==i)for(const[e,t]of i)o.add(e)}const a=new Set(o);for(const e of o)for(const[t,n]of Object.entries(r))null===n||n.get(e)||a.delete(e);for(const e of o)i.delete(e);for(const n of o){const o=Array.from(i).map((()=>""));for(let e=0;e<t;e++){let t=(r[e]||new Map).get(n);void 0!==t&&(t=t.valueLabel("std")),o.push({type:"aspectLabel",value:t||""})}e.unshift(o)}for(let t=o.size;t<e.length;t++){const r=[];for(const e of i){let i=(n[t-o.size]||new Map).get(e);void 0!==i&&(i=i.valueLabel("std")),r.push({type:"aspectLabel",value:i||""})}e[t]=r.concat(e[t])}const s=this._writeTable(e);zi(s.data,{columns:s.columns,fileName:"table.xlsx"})}}var Bi=0;class Wi{constructor(e,t,n){this.wrapperNodes=t,this.escaped=!1,this.continuations=[],this.docIndex=n,this.footnote=!1,this.id=e,this.isHidden=!1,this.docOrderindex=Bi++}continuationIds(){return this.continuations.map((e=>e.id))}chainIXIds(){return[this.id].concat(this.continuationIds())}textContent(){return[this].concat(this.continuations).map((e=>e.wrapperNodes.first().text())).join(" ")}htmlHidden(){return this.wrapperNodes.is(":hidden")||this.wrapperNodes.is(((e,n)=>function(e){const t=parseFloat(e.split(",")[3]);return!isNaN(t)&&t<.1}(t()(n).css("color"))))}}class Yi{constructor(){this.index=[]}addItem(e,t){this.index.push({vuid:e,docIndex:t})}getAdjacentItem(e,t){const n=this.index.findIndex((t=>t.vuid===e)),i=this.index.length;return this.index[(n+t+i)%i].vuid}getFirstInDocument(e){return this.index.filter((t=>t.docIndex===e))[0].vuid}getLastInDocument(e){return this.index.filter((t=>t.docIndex===e)).at(-1).vuid}}class Ui{constructor(e){this.node=t()("#dialog-templates").find(e).clone().appendTo("#ixv #dialog-container"),t()(".close",this.node).click((()=>this.close())),t()(document).bind("keyup",(e=>{27===e.keyCode&&this.close()}))}addButton(e,n,i){const r=this.node.find(".buttons"),o=t()("<button></button>").text(e).addClass(n?"dialog-button-primary":"dialog-button-cancel");r.append(o),o.on("click",(()=>{i&&!i()||this.close()}))}close(){t()(".dialog-mask").hide(),this.node.remove()}show(){t()(".dialog-mask").show(),this.node.show()}}class Hi extends Ui{constructor(e,t,n,i){super(".dialog.message-box"),this.title=e,this.message=t,this.okText=n,this.cancelText=i}show(e,n){this.node.find(".title").text(this.title),this.node.find(".message").empty().append(this.message);const i=this.node.find(".buttons").empty(),r=t()("<button></button>").text(this.okText).addClass("dialog-button-primary");if(i.append(r),r.on("click",(()=>{this.close(),e&&e()})),this.cancelText){const e=t()("<button></button>").text(this.cancelText).addClass("dialog-button-cancel");i.append(e),e.on("click",(()=>{this.close(),n&&n()}))}super.show(this)}showAsync(){return new Promise(((e,t)=>{this.show((()=>e(!0)),(()=>e(!1)))}))}}class Vi extends Error{}function Zi(e){return-1==e.indexOf(":")?e:e.substring(e.indexOf(":")+1)}class Gi{constructor(e,n,i){this._iv=e,this._reportSet=i,this._iframes=n,this._contents=n.contents(),this.onSelect=t().Callbacks(),this.onMouseEnter=t().Callbacks(),this.onMouseLeave=t().Callbacks(),this._ixNodeMap={},this._docOrderItemIndex=new Yi,this._currentDocumentIndex=0}_checkContinuationCount(){const e=Object.keys(this.continuationOfMap).length;if(e>this._iv.options.continuationElementLimit){const n=t()("<div></div>").append(t()("<p></p>").text(`This document contains a very large number of iXBRL elements (found ${e} ix:continuation elements).`)).append(t()("<p></p>").text("You may experience performance problems viewing this document, or the viewer may not load at all.")).append(t()("<p></p>").text("Do you want to continue trying to load this document?"));return new Hi("Large document warning",n,"Continue","Cancel").showAsync().then((e=>{if(!e)throw new Vi("Too many continuations")}))}return Promise.resolve()}initialize(){return new Promise((async(e,n)=>{const i=this;i._buildContinuationMaps(),i._checkContinuationCount().catch((e=>{throw e})).then((()=>i._iv.setProgress("Pre-processing document"))).then((()=>{i._iframes.each((function(e){t()(this).data("selected",e==i._currentDocumentIndex);const n=t()(this).data("report-index");i._preProcessiXBRL(t()(this).contents().find("body").get(0),n,e)})),async function(){for(const[e,n]of i._iframes.toArray().entries()){const r=t()(n).contents().find("body").get(0);await i._iv.pluginPromise("preProcessiXBRL",r,e),i._iv.isReviewModeEnabled()&&await new Promise(((n,o)=>{i._iv.setProgress("Finding untagged numbers and dates").then((()=>{const o=t()(r).children(":visible");o.hide(),t()(r).addClass("review"),i._wrapUntaggedNumbers(t()(r),e,!1),o.show(),n()}))}))}}().then((()=>i._iv.setProgress("Preparing document"))).then((()=>{this._reportSet.setIXNodeMap(this._ixNodeMap),this._applyStyles(),this._bindHandlers(),this.scale=1,this._setTitle(0),this._addDocumentSetTabs(),e()}))})).catch((e=>n(e)))}))}_addDocumentSetTabs(){if(this._reportSet.isMultiDocumentViewer()){t()("#ixv .ixds-tabs").show();for(const[e,n]of this._reportSet.reportFiles().entries())t()('<div class="tab"></div>').text(n.file).prop("title",n.file).data("ix-doc-id",e).click((()=>this.selectDocument(e))).appendTo(t()("#ixv #viewer-pane .ixds-tabs .tab-area"));t()("#ixv #viewer-pane .ixds-tabs .tab-area .tab").eq(0).addClass("active")}}_wrapNode(e){var n="<span>";const i=e.getElementsByTagName("*");for(var r=0;r<i.length;r++)if("block"===getComputedStyle(i[r]).getPropertyValue("display")){n="<div>";break}return t()(e).wrap(n),e.parentNode}_wrapUntaggedNumbers(e,n,i){const r=this,o=/(?:^|\s|;)-(?:sec|esef)-ix-hidden:\s*([^\s;]+)/;e.contents().each((function(){if(this.nodeType===Node.ELEMENT_NODE){const e=Zi(this.nodeName.toUpperCase());"NONFRACTION"===e||"NONNUMERIC"===e&&null!==this.getAttribute("format")||this.hasAttribute("style")&&this.getAttribute("style").match(o)||r._wrapUntaggedNumbers(t()(this),n,"NONNUMERIC"===e)}else if(this.nodeType===Node.TEXT_NODE){const n=this.nodeValue,r=t()("<div></div>");let o=0;!function(e,t){for(var n;null!==(n=Un.exec(e));)t(n,void 0!==n[2],void 0!==n[1])}(n,(function(a,s,l){if(a.index>o&&r.append(document.createTextNode(n.substring(o,a.index))),s||i&&0===a.index&&a.index+a[0].length===n.length&&n===e.text())r.append(document.createTextNode(a[0]));else{const e=l?"review-untagged-date":"review-untagged-number";t()("<span></span>").text(a[0]).addClass(e).appendTo(r)}o=a.index+a[0].length})),o<n.length&&r.append(document.createTextNode(n.substring(o,n.length))),t()(this).replaceWith(r.contents())}}))}_showDocumentAndElement(e,n){if(this.selectDocument(e),void 0!==n&&""!=n)for(const i of[n,decodeURIComponent(n)]){const n=t().escapeSelector(i),r=this._iframes.eq(e).contents().find("#"+n+', a[name="'+n+'"]');if(r.length>0)return void this.showElement(r.eq(0))}}_updateLink(e){const n=t()(e).attr("href");if(void 0!==n){const[i,r]=n.split("#",2),o=this._reportSet.reportFiles().indexOf(i);n.includes("/")||-1==o?i&&t()(e).attr("target","_blank"):t()(e).click((e=>{this._showDocumentAndElement(o,r),e.preventDefault()}))}}_findOrCreateWrapperNode(e,n){if(n)return t()(e).addClass("ixbrl-element-hidden");const i=e.closest("td,th"),r=[],o=t()(e).text();if(null!==i&&o.length>0){const e=t()(i).text(),n=e.indexOf(o),a=e.substring(0,n)+e.substring(n+o.length);/[0-9A-Za-z]/.test(a)||r.push(i)}0==r.length&&r.push(this._wrapNode(e));for(const e of r[0].querySelectorAll("*"))"absolute"===getComputedStyle(e).getPropertyValue("position")&&r.push(e);for(const[e,t]of r.entries())r.length>1&&t.classList.add("ixbrl-contains-absolute"),0==e?t.classList.add("ixbrl-element"):t.classList.add("ixbrl-sub-element");return t()(r)}_addIdToNode(e,t){const n=e.data("ivids")||[];n.push(t),e.data("ivids",n)}_buildContinuationMaps(){const e={},n={};this._iframes.each(((i,r)=>{const o=t()(r).data("report-index");t()(r).contents().find("body *").each(((t,i)=>{const r=Zi(i.nodeName).toUpperCase();if(["NONNUMERIC","NONFRACTION","FOOTNOTE","CONTINUATION"].includes(r)&&i.hasAttribute("id")){const t=Bt(o,i.getAttribute("id")),a=Bt(o,i.getAttribute("continuedAt"));null!==a&&(e[t]=a),"CONTINUATION"!=r&&(n[t]=[])}}))})),this.continuationOfMap={};for(const[t,r]of Object.entries(n))for(var i=t;void 0!==e[i];)i=e[i],r.push(i),void 0!==this.continuationOfMap[i]&&console.log("Continuation '"+i+"' is a continuation of multiple items."),this.continuationOfMap[i]=t;this.itemContinuationMap=n}_getOrCreateIXNode(e,t,n,i){let r=this._ixNodeMap[e];return r||(r=new Wi(e,t,n),this._ixNodeMap[e]=r,r.isHidden=i),r}_preProcessiXBRL(e,n,i,r){const o=Zi(e.nodeName).toUpperCase(),a="FOOTNOTE"===o,s="CONTINUATION"===o,l="NONNUMERIC"===o,c="NONFRACTION"===o,u=l||c;if(1===e.nodeType){const d=Bt(n,e.getAttribute("id"));if(u||a){if(e.hasAttribute("id")){let t=this._findOrCreateWrapperNode(e,r);this._addIdToNode(t.first(),d);let n=this._getOrCreateIXNode(d,t,i,r);if(this._docOrderItemIndex.addItem(d,i),c&&(t.addClass("ixbrl-element-nonfraction"),e.hasAttribute("scale"))){const t=Number(e.getAttribute("scale"));Number.isNaN(t)||0===t||(n.scale=t)}l&&(t.addClass("ixbrl-element-nonnumeric"),e.hasAttribute("escape")&&e.getAttribute("escape").match(/^(true|1)$/)&&(n.escaped=!0)),a&&(t.addClass("ixbrl-element-footnote"),n.footnote=!0)}}else if(s){if(e.hasAttribute("id")&&void 0!==this.continuationOfMap[d]){let t=this._findOrCreateWrapperNode(e,r);this._addIdToNode(t.first(),this.continuationOfMap[d]),this._getOrCreateIXNode(d,t,i,r),t.addClass("ixbrl-continuation")}}else if("HIDDEN"==o)r=!0;else{const r=Bt(n,function(e){if(e.hasAttribute("style")){const t=/(?:^|\s|;)-(?:sec|esef)-ix-hidden:\s*([^\s;]+)/,n=e.getAttribute("style").match(t);if(n)return n[1]}return null}(e));if(null!==r){let n=t()(e);n.addClass("ixbrl-element").data("ivids",[r]),this._docOrderItemIndex.addItem(r,i);const o=this._ixNodeMap[r];o?(o.wrapperNodes=n,o.docIndex=i):this._ixNodeMap[r]=new Wi(r,n,i)}"A"==o&&this._updateLink(e)}}this._preProcessChildNodes(e,n,i,r)}_preProcessChildNodes(e,t,n,i){for(const r of e.childNodes)this._preProcessiXBRL(r,t,n,i)}_applyStyles(){const e=t()("<style>").prop("type","text/css").text(n(145).toString()).appendTo(this._iframes.contents().find("head"));this._iv.callPluginMethod("updateViewerStyleElements",e)}contents(){return this._iframes.contents()}_selectAdjacentTag(e,t){var n;null!==t?(n=this._docOrderItemIndex.getAdjacentItem(t.vuid,e),this.showDocumentForItemId(n)):n=e>0?this._docOrderItemIndex.getFirstInDocument(this._currentDocumentIndex):this._docOrderItemIndex.getLastInDocument(this._currentDocumentIndex);const i=this.elementsForItemId(n);this.showElement(i),this.selectElement(n,this._ixIdsForElement(i))}_bindHandlers(){const e=this;t()(".ixbrl-element",this._contents).click((function(n){n.stopPropagation(),e.selectElementByClick(t()(this))})).mouseenter((function(n){e._mouseEnter(t()(this))})).mouseleave((function(n){e._mouseLeave(t()(this))})),t()("body",this._contents).click((()=>e.selectElement(null))),t()("#iframe-container .zoom-in").click((()=>this.zoomIn())),t()("#iframe-container .zoom-out").click((()=>this.zoomOut())),t()("#iframe-container .print").click((()=>this.currentDocument().get(0).contentWindow.print())),Ri.addHandles(this._contents,this._reportSet)}selectNextTag(e){this._selectAdjacentTag(1,e)}selectPrevTag(e){this._selectAdjacentTag(-1,e)}intersect(e,t){const n={left:Math.max(e.left,t.left),top:Math.max(e.top,t.top),right:Math.min(e.right,t.right),bottom:Math.min(e.bottom,t.bottom)};return n.width=n.right-n.left,n.height=n.bottom-n.top,n}isScrollableElement(e){const n=t()(e).css("overflow-y");if(e.clientHeight>0&&e.clientHeight<e.scrollHeight&&("auto"==n||"scroll"==n))return!0;const i=t()(e).css("overflow-x");return e.clientWidth>0&&e.clientWidth<e.scrollWidth&&("auto"==i||"scroll"==i)}isFullyVisible(e){var n=e.getBoundingClientRect();const i=e.getBoundingClientRect();for(var r=t()(e.parentElement);!r.is("body");){if(this.isScrollableElement(r[0])&&(n=this.intersect(n,r[0].getBoundingClientRect())),n.width<i.width||n.height<i.height)return!1;r=r.parent()}const o="CSS1Compat"!=e.ownerDocument.compatMode?r:r.closest("html").get(0);return n.left>0&&n.top>0&&n.right<o.clientWidth&&n.bottom<o.clientHeight}showElement(e){const t=e.get(0);this.isFullyVisible(t)||t.scrollIntoView({block:"center",inline:"center"})}clearHighlighting(){t()("body",this._iframes.contents()).find(".ixbrl-element, .ixbrl-sub-element").removeClass("ixbrl-selected").removeClass("ixbrl-related").removeClass("ixbrl-linked-highlight")}_ixIdsForElement(e){return e.data("ivids")}selectElement(e,t,n){null!==e?this.onSelect.fire(e,t,n):this.onSelect.fire(null)}selectElementByClick(e){let n=[];const i=this;let r;e.hasClass(".ixbrl-element")||(e=e.closest(".ixbrl-element")),e.parents(".ixbrl-element").addBack().each((function(){const o=i._ixIdsForElement(t()(this));n=n.concat(o),t()(this).text()==e.text()&&void 0===r&&(r=o[0])})),this.selectElement(r,n,!0)}_mouseEnter(e){const t=e.data("ivids")[0];this.onMouseEnter.fire(t)}_mouseLeave(e){const t=e.data("ivids")[0];this.onMouseLeave.fire(t)}highlightRelatedFact(e){this.changeItemClass(e.vuid,"ixbrl-related")}highlightRelatedFacts(e){for(const t of e)this.changeItemClass(t.vuid,"ixbrl-related")}clearRelatedHighlighting(e){t()(".ixbrl-related",this._contents).removeClass("ixbrl-related")}elementsForItemId(e){if(!(e in this._ixNodeMap))throw new Error(`Attempting to retrieve IXNode with missing key: ${e}`);return this._ixNodeMap[e].wrapperNodes}elementsForItemIds(e){return t()(e.map((e=>this.elementsForItemId(e).get())).flat())}changeItemClass(e,t,n){const i=this.elementsForItemIds([e].concat(this.itemContinuationMap[e]));n?i.removeClass(t):i.addClass(t)}highlightItem(e){this.clearHighlighting(),this.changeItemClass(e,"ixbrl-selected")}showItemById(e){if(null!==e){let t=this.elementsForItemId(e);this.showDocumentForItemId(e),t.length>0&&this.showElement(t)}}highlightAllTags(e,n){const i={};t().each(n,(function(e,t){i[t]=e%3}));const r=this._reportSet,o=this;e?(t()(".ixbrl-element",this._contents).addClass("ixbrl-highlight").each((function(){const e=t()(this).data("ivids").map((e=>o._ixNodeMap[e])).filter((e=>!e.footnote))[0];if(null!=e){const t=o.elementsForItemIds(e.chainIXIds()),n=i[r.getItemById(e.id).conceptQName().prefix];void 0!==n&&t.addClass("ixbrl-highlight-"+n)}})),t()(".ixbrl-sub-element",this._contents).addClass("ixbrl-highlight")):t()(".ixbrl-element, .ixbrl-sub-element",this._contents).removeClass(((e,t)=>(t.match(/(^|\s)ixbrl-highlight\S*/g)||[]).join(" ")))}_zoom(){const e=this._contents.scrollTop(),n=t()("html",this._contents).height();t()("body",this._contents).css("zoom",this.scale);const i=t()("html",this._contents).height();this._contents.scrollTop(i*e/n)}zoomIn(){this.scale*=1.1,this._zoom()}zoomOut(){this.scale/=1.1,this._zoom()}factsInSameTable(e){var n=[];return this.elementsForItemId(e.vuid).closest("table").find(".ixbrl-element").each((function(){n=n.concat(t()(this).data("ivids"))})),n}linkedHighlightFact(e){this.changeItemClass(e.vuid,"ixbrl-linked-highlight")}clearLinkedHighlightFact(e){this.changeItemClass(e.vuid,"ixbrl-linked-highlight",!0)}_setTitle(e){t()("#top-bar .document-title").text(t()("head title",this._iframes.eq(e).contents()).text())}showDocumentForItemId(e){this.selectDocument(this._ixNodeMap[e].docIndex)}currentDocument(){return this._iframes.eq(this._currentDocumentIndex)}selectDocument(e){this._currentDocumentIndex=e,t()("#ixv #viewer-pane .ixds-tabs .tab").removeClass("active").eq(e).addClass("active"),this._iframes.height(0).data("selected",!1).eq(e).height("100%").data("selected",!0),this._setTitle(e)}*postProcess(){for(const e of this._iframes.get()){const n=t()(e).contents().get(0).querySelectorAll(".ixbrl-contains-absolute");for(const[e,t]of n.entries())"inline"!==getComputedStyle(t).getPropertyValue("display")&&t.getBoundingClientRect().height,e%100==0&&(yield);for(const[e,t]of n.entries())"inline"!==getComputedStyle(t).getPropertyValue("display")&&0==t.getBoundingClientRect().height&&t.classList.add("ixbrl-no-highlight"),e%100==0&&(yield)}}postLoadAsync(){Rt(this.postProcess())}}var Qi=n(790),Ji=n.n(Qi),qi=n(998),Xi=n.n(qi);class Ki{constructor(e){this._reportSet=e,this.ready=!1}*buildSearchIndex(e){var t=[],n={},i=this._reportSet.facts();this.periods={};for(var r=0;r<i.length;r++){var o=i[r],a={id:o.vuid},s=o.getLabel("std");for(var l in a.concept=o.conceptQName().localname,a.doc=o.getLabel("doc"),a.date=o.periodTo(),a.startDate=o.periodFrom(),n=o.dimensions())o.report.getConcept(l).isTypedDimension()?null!==n[l]&&(s+=" "+n[l]):s+=" "+o.report.getLabel(n[l],"std");a.label=s,a.ref=o.concept().referenceValuesAsString();const e=o.widerConcepts();e.length>0&&(a.widerConcept=o.report.qname(e[0]).localname,a.widerLabel=o.report.getLabel(e[0],"std"),a.widerDoc=o.report.getLabel(e[0],"doc")),t.push(a);var c=o.period();c&&(this.periods[c.key()]=c.toString()),r%100==0&&(yield)}const u=new(Xi().Builder);u.pipeline.add(Xi().trimmer,Xi().stopWordFilter,Xi().stemmer),u.searchPipeline.add(Xi().stemmer),u.ref("id"),u.field("label"),u.field("concept"),u.field("startDate"),u.field("date"),u.field("doc"),u.field("ref"),u.field("widerLabel"),u.field("widerDoc"),u.field("widerConcept");for(const[e,n]of t.entries())u.add(n),e%100==0&&(yield);this._searchIndex=u.build(),this.ready=!0,e()}visibilityFilter(e,t){return t.isHidden()?e.showHiddenFacts:e.showVisibleFacts}periodFilter(e,t){return 0===e.periodFilter.length||e.periodFilter.some((e=>t.period().key()===e))}conceptTypeFilter(e,t){return"*"===e.conceptTypeFilter||e.conceptTypeFilter===(t.isNumeric()?"numeric":"text")}dimensionTypeFilter(e,t){const n=e.dimensionTypeFilter.includes("typed"),i=e.dimensionTypeFilter.includes("explicit");return 0===e.dimensionTypeFilter.length||n&&t.hasTypedDimension()||i&&t.hasExplicitDimension()}factValueFilter(e,t){return"*"===e.factValueFilter||"positive"===e.factValueFilter&&t.isPositive()||"negative"===e.factValueFilter&&t.isNegative()}calculationsFilter(e,t){const n=e.calculationsFilter.includes("summation"),i=e.calculationsFilter.includes("contributor");return 0===e.calculationsFilter.length||n&&t.isCalculationSummation()||i&&t.isCalculationContributor()}namespacesFilter(e,t){return 0===e.namespacesFilter.length||e.namespacesFilter.some((e=>t.getConceptPrefix()===e))}unitsFilter(e,t){return 0===e.unitsFilter.length||e.unitsFilter.some((e=>t.unit()?.value()===e))}scalesFilter(e,t){return 0===e.scalesFilter.length||e.scalesFilter.some((e=>t.scale()===Number(e)))}targetDocumentFilter(e,t){return 0===e.targetDocumentFilter.length||e.targetDocumentFilter.some((e=>(t.targetDocument()??":default")===e))}search(e){if(!this.ready)return;const t=this._searchIndex.search(e.searchString),n=[],i=this,r=[this.visibilityFilter,this.periodFilter,this.conceptTypeFilter,this.dimensionTypeFilter,this.factValueFilter,this.calculationsFilter,this.namespacesFilter,this.unitsFilter,this.scalesFilter,this.targetDocumentFilter];return t.forEach(((t,o)=>{const a=i._reportSet.getItemById(t.ref);r.every((t=>t(e,a)))&&n.push({fact:a,score:t.score})})),n}}var $i=n(556),er=n.n($i);class tr extends Ui{constructor(){super(".dialog.chart")}_multiplierDescription(e){return{0:"",3:"'000s",6:"millions",9:"billions"}[e]}_chooseMultiplier(e){let t=Math.max(...e.map((e=>Math.abs(Number(e.value()))))),n=0;for(;t>=1e3&&n<9;)t/=1e3,n+=3;return n}dataSetColour(e){return["#66cc00","#0094ff","#fbad17"][e]}addAspect(e){this._analyseDims.push(e),this._showAnalyseDimensionChart()}removeAspect(e){this._analyseDims=this._analyseDims.filter((t=>t!=e)),this._showAnalyseDimensionChart()}analyseDimension(e,t){this._analyseFact=e,this._analyseDims=t,this._showAnalyseDimensionChart()}_showAnalyseDimensionChart(){const e=this._analyseFact,n=this._analyseDims,i=this.node;t()("canvas",i).remove(),t()("<canvas>").appendTo(t()(".chart-container",i)),this.show();const r={};n[0]&&(r[n[0]]=null),n[1]&&(r[n[1]]=null);const o=e.report.deduplicate(e.report.getAlignedFacts(e,r)),a=new Zt,s=new Zt;for(const e of o)n[0]&&a.add(e.aspect(n[0])),n[1]&&s.add(e.aspect(n[1]));const l=a.uniqueValues(),c=s.uniqueValues(),u=this._chooseMultiplier(o),d=e.unitLabel()+" "+this._multiplierDescription(u),h=[],f=[];for(let t=0;t<(n[0]?l.length:1);t++){h.push(n[0]?Et(l[t].valueLabel("std")||"",40):"");for(let i=0;i<(n[1]?c.length:1);i++){f[i]=f[i]||{label:n[1]?c[i].valueLabel():"",data:[],backgroundColor:this.dataSetColour(i),borderColor:this.dataSetColour(i)};const r={};n[0]&&(r[n[0]]=l[t].value()),n[1]&&(r[n[1]]=c[i].value());const o=e.report.getAlignedFacts(e,r);o.length>0?f[i].data[t]=o[0].value()/10**u:f[i].data[t]=0}}t()(".other-aspects",i).empty();const p=[];for(const r of e.aspects())if("c"!=r.name()){const e=t()("<div>").addClass("other-aspect").appendTo(t()(".other-aspects",i));n.includes(r.name())?e.addClass("selected").text(r.label()+": *").click((()=>this.removeAspect(r.name()))):("u"!=r.name()&&p.push(r.valueLabel()),e.text(r.label()+": "+r.valueLabel()),n.length<2&&e.addClass("addable").click((()=>this.addAspect(r.name()))))}n[1]||(n[0]||(h[0]=p.join(", ")),f[0].label=p.join(", ")),this.setChartSize();const g=t()("canvas",i),m=new(er())(g,{type:"bar",data:{labels:h,datasets:f},options:{responsive:!0,maintainAspectRatio:!1,scales:{yAxes:[{ticks:{beginAtZero:!0},scaleLabel:{display:!0,labelString:d}}],xAxes:[{ticks:{autoSkip:!1}}]}}});t()(window).resize((()=>{this.setChartSize(),m.resize()}))}setChartSize(){const e=this.node,n=e.height()-t()(".other-aspects",this.node).outerHeight()-16;t()(".chart-container",e).height(n),t()("canvas",e).attr("height",n).height(n)}}class nr{constructor(e,n){this._elt=e,n=n||{},this.type=n.type||"dropdown",e.find(".menu-title").click((t=>{e.find(".content-container").toggle(),t.stopPropagation()})),t()("html").click((n=>{0===t()(".content",e).find(t()(n.target)).length&&this.close()}))}reset(){this._elt.find(".content").empty()}close(){"dropdown"==this.type&&this._elt.find(".content-container").hide()}_add(e,n){if(void 0!==n){const i=this._elt.find(".content > div").filter((()=>t()(this).data("iv-menu-item-name")===n));if(void 0!==i&&i.length>0)return void i.after(e)}e.appendTo(this._elt.find(".content"))}addDownloadButton(e,n){const i=this,r=t()("<a></a>").addClass("item").attr({href:n}).text(e).click((()=>i.close()));this._add(r)}addCheckboxItem(e,n,i,r,o){const a=this,s=t()("<label></label>").addClass("menu-checkbox").addClass("item").text(e).data("iv-menu-item-name",i).prepend(t()('<input type="checkbox"></input>').prop("checked",o).change((function(){n(t()(this).prop("checked")),a.close()}))).append(t()("<span></span>").addClass("checkmark"));this._add(s,r),o&&n(!0)}addCheckboxGroup(e,n,i,r,o,a){const s=this,l=t()('<div class="group"></div>').data("iv-menu-item-name",o);this._add(l,a);for(const a of e){const e=t()("<label></label>").addClass("menu-checkbox").addClass("item").text(n[a]).prepend(t()('<input type="radio"></input>').attr({name:o,value:a}).change((function(){r(t()(this).val()),s.close()}))).append(t()("<span></span>").addClass("checkmark")).appendTo(l);a===i&&e.find("input").prop("checked",!0)}}}class ir{constructor(e){this._contents=t()('<div class="accordian"></div>'),this.onSelect=t().Callbacks(),this.options=e||{},this.options.onSelect&&this.onSelect.add(e.onSelect)}addCard(e,n,i,r){const o=this,a=t()('<div class="card"></div>').append(t()('<div class="title"></div>').append(e).click((function(){var e=t()(this).closest(".card");e.hasClass("active")?o.options.alwaysOpen||e.removeClass("active"):(e.closest(".accordian").find(".card").removeClass("active"),e.addClass("active"),o.onSelect.fire(e.data("accordian-card-id")))}))).append(t()('<div class="card-body"></div>').append(n)).appendTo(this._contents);null!==r&&a.data("accordian-card-id",r),i&&a.addClass("active")}contents(){return this.options.alwaysOpen&&0==this._contents.find(".card.active").length&&this._contents.find(".card").first().addClass("active"),this.options.dissolveSingle&&1==this._contents.children().length?this._contents.children().first().find(".card-body"):this._contents}}class rr{constructor(e){this.itemMap=new Map;for(const t of e??[])this.add(t)}add(e){this.itemMap.set(e.vuid,e)}items(){return Array.from(this.itemMap.values())}_allDimensions(){const e={},t=this.items().filter((e=>e instanceof Qt));for(const i of t){const t=Object.keys(i.dimensions());for(var n=0;n<t.length;n++)e[t[n]]=!0}return Object.keys(e)}minimallyUniqueLabel(e){if(!this._minimallyUniqueLabels){for(var t=this.items().filter((e=>e instanceof Qt)),n={},i=["c","p"].concat(this._allDimensions()),r=0;r<t.length;r++){var o=t[r];n[o.vuid]=[];for(var a=0;a<i.length;a++){var s=o.aspect(i[a]);n[o.vuid].push(s?s.valueLabel():null)}}var l={};for(a=0;a<i.length;a++){var c={};for(r=0;r<t.length;r++)c[n[t[r].vuid][a]]=!0;var u={};if(Object.keys(c).length>1){for(r=0;r<t.length;r++){var d=n[f=t[r].vuid][a],h=l[f]||[];null!==d&&h.push(d),h.length>0&&(l[f]=h,u[h.join(", ")]=!0)}if(Object.keys(u).length==t.length)break}}if(Object.keys(l).length<t.length)for(r=0;r<t.length;r++){var f=t[r].vuid;(h=l[f]||[]).unshift(n[f][0]),l[f]=h}this.items().filter((e=>e instanceof Xt)).forEach((e=>{l[e.vuid]=[e.title]})),this._minimallyUniqueLabels=l}return this._minimallyUniqueLabels[e.vuid].join(", ")}isEmpty(){return 0==this.itemMap.size}valueIntersection(){const e=this.items().map((e=>Gt.fromFact(e)));return Gt.intersection(...e)}completeDuplicates(){return this.items().every((e=>e.isCompleteDuplicate(this.items()[0])))}isConsistent(){if(0==this.itemMap.size)return!0;const e=this.items().map((e=>Gt.fromFact(e)));return void 0!==Gt.intersection(...e)}size(){return this.itemMap.size}mostPrecise(){return this.items().reduce(((e,t)=>t.isMorePrecise(e)?t:e))}}class or extends Ui{constructor(){super(".dialog.validation-report"),this.addButton("Dismiss",!0)}displayErrors(e){const n=this.node.find("tbody");n.empty();for(const i of e)t()("<tr></tr>").append(t()("<td></td>").text(i.sev)).append(t()("<td></td>").text(i.code)).append(t()("<td></td>").text(i.msg)).appendTo(n)}}class ar extends Ui{constructor(e){super(".dialog.text-block-viewer"),this.addButton("Dismiss",!0),this.fact=e,this.node.find("#text-block-viewer-plain-text").off("change.dialog").on("change.dialog",(e=>this.displayTextBlock(e.target.checked)))}htmlWrapString(e){return"<!DOCTYPE html><html><head><title></title></head><body>"+e+"</body></html>"}static canRender(e){return e.isTextBlock()&&e.escaped()}textOnly(){return this.node.find("#text-block-viewer-plain-text").prop("checked")}displayTextBlock(){const e=this.node.find("iframe").get(0),t=e.contentDocument||e.contentWindow.document;if(t.open(),this.textOnly()){const e=document.createElement("div");e.append(document.createTextNode(this.fact.readableValue())),t.write(this.htmlWrapString(e.outerHTML))}else t.write(this.htmlWrapString(this.fact.value()));t.close()}}class sr{constructor(e,t){this.fact=e,this.calc11=t}calculationFacts(){const e=this.fact,t=e.report;if(!this._conceptToFact){const n=t.getChildRelationships(e.conceptName(),"calc"),i={};for(const[r,o]of Object.entries(n))i[r]={},o.length>0&&t.getAlignedFacts(e,{c:o.map((e=>e.t))}).forEach((e=>zt(i[r],e.conceptName(),new rr).add(e)));this._conceptToFact=i}return this._conceptToFact}hasCalculations(){const e=this.calculationFacts();return Object.keys(e).length>0}resolvedCalculations(){const e=[],t=this.calculationFacts();for(const[n,i]of Object.entries(t))Object.keys(i).length>0&&e.push(this.resolvedCalculation(n));return e}bestELRForFactSet(e){const t=this.calculationFacts();let n="",i=-1;for(const[r,o]of Object.entries(t)){let t=0;for(const[n,i]of Object.entries(o)){let n=0;for(const t of i.items())e.includes(t.vuid)&&(n=1);t+=n}t/Object.keys(o).length>i&&(i=t/Object.keys(o).length,n=r)}return n}resolvedCalculation(e){const t=this.calculationFacts()[e],n=this.fact.report,i=n.getChildRelationships(this.fact.conceptName(),"calc")[e],r=new(this.calc11?ur:dr)(e,this.fact);for(const e of i){const i=t[e.t]??new rr;r.addRow(new lr(n.getConcept(e.t),e.w,i))}return r}}class lr{constructor(e,t,n){this.concept=e,this.weight=t,this.facts=n,this.weightSign=1==t?"+":-1==t?"-":t.toString()}contributionInterval(){const e=this.facts.valueIntersection();if(void 0!==e)return e.times(this.weight)}}class cr{constructor(e,t){this.totalFact=t,this.totalFactSet=new rr(t.report.getAlignedFacts(t)),this.elr=e,this.rows=[]}addRow(e){this.rows.push(e)}binds(){return this.rows.some((e=>!e.facts.isEmpty()))}unchecked(){return!1}}class ur extends cr{calculatedTotalInterval(){let e=new Gt(0,0);for(const t of this.rows)if(!t.facts.isEmpty()){const n=t.contributionInterval();if(void 0===n)return;e=e.plus(n)}return e}isConsistent(){const e=this.calculatedTotalInterval(),t=this.totalFactSet.valueIntersection();return void 0!==e&&void 0!==e.intersection(t)}}class dr extends cr{binds(){return super.binds()&&this.rows.every((e=>e.facts.completeDuplicates()))}unchecked(){return super.binds()&&!this.binds()}calculatedTotal(){let e=new Dt(0);for(const t of this.rows){if(!t.facts.isConsistent())return;t.facts.isEmpty()||(e=e.plus(t.facts.items()[0].roundedValue().times(t.weight)))}return e}isConsistent(){return this.calculatedTotal().equals(this.totalFact.roundedValue())}}class hr extends Ui{constructor(){super(".dialog.calculation-inspector"),this.addButton("Dismiss",!0)}duplicateFactIcons(e){const n=t()("<td></td>").addClass("icons");return e.size()>1&&!e.completeDuplicates()&&(e.isConsistent()?n.append(t()("<span></span>").addClass("duplicate-facts").attr("title",V.t("calculation.consistent-duplicate-facts-present",{nfacts:e.size()}))):n.append(t()("<span></span>").addClass("duplicate-facts").attr("title",V.t("calculation.inconsistent-duplicate-facts-present",{nfacts:e.size()})))),n}populateCalc11Table(e,n){n.addClass("calc11");const i=n.find("tbody");let r=!1;for(const n of e.rows){let e="",o="",a="";if(!n.facts.isEmpty()){let t=n.facts.items()[0];const i=n.facts.valueIntersection();if(void 0===i)e="n/a",o="n/a",a="n/a";else{e=t.readableValue(i.midpoint().toNumber());const r=n.contributionInterval();o=t.readableValue(r.a.toNumber()),a=t.readableValue(r.b.toNumber())}}const s=this.duplicateFactIcons(n.facts);r=r||s.find("span").length>0,t()("<tr></tr>").append(t()("<td></td>").addClass("weight").text(n.weightSign)).append(t()("<td></td>").text(n.concept.label()).addClass("line-item")).append(t()("<td></td>").addClass("figure").text(e)).append(s).append(t()("<td></td>").addClass("figure").text(o)).append(t()("<td></td>").addClass("figure").text(a)).appendTo(i)}const o=e.totalFact,a=e.calculatedTotalInterval();t()("<tr></tr>").addClass("total").append(t()("<td></td>")).append(t()("<td></td>").text(`${o.concept().label()} (${V.t("calculation.calculated-total")})`).addClass("line-item")).append(t()("<td></td>").text(void 0===a?"n/a":o.readableValue(a.midpoint().toNumber())).addClass("figure")).append(t()("<td></td>").addClass("icons")).append(t()("<td></td>").text(void 0===a?"n/a":o.readableValue(a.a.toNumber())).addClass("figure")).append(t()("<td></td>").text(void 0===a?"n/a":o.readableValue(a.b.toNumber())).addClass("figure")).appendTo(i);const s=e.totalFactSet.valueIntersection(),l=this.duplicateFactIcons(e.totalFactSet);t()("<tr></tr>").append(t()("<td></td>")).append(t()("<td></td>").text(`${o.concept().label()} (${V.t("calculation.reported-total")})`).addClass("line-item")).append(t()("<td></td>").text(void 0===s?"n/a":o.readableValue(s.midpoint().toNumber())).addClass("figure")).append(l).append(t()("<td></td>").text(void 0===s?"n/a":o.readableValue(s.a.toNumber())).addClass("figure")).append(t()("<td></td>").text(void 0===s?"n/a":o.readableValue(s.b.toNumber())).addClass("figure")).appendTo(i),r&&n.addClass("has-icons")}populateLegacyCalcTable(e,n){n.removeClass("calc11");const i=n.find("tbody");let r=!1;for(const n of e.rows){let e="";if(!n.facts.isEmpty()){let t=n.facts.items()[0];e=void 0===n.facts.valueIntersection()?"Inconsistent duplicates":n.facts.completeDuplicates()?t.readableValue():"Duplicate facts"}const o=this.duplicateFactIcons(n.facts);r=r||o.find("span").length>0,t()("<tr></tr>").append(t()("<td></td>").addClass("weight").text(n.weightSign)).append(t()("<td></td>").text(n.concept.label()).addClass("line-item")).append(t()("<td></td>").addClass("figure").text(e)).append(o).appendTo(i)}const o=e.totalFact,a=e.calculatedTotal();t()("<tr></tr>").addClass("total").append(t()("<td></td>")).append(t()("<td></td>").text(`${o.concept().label()} (${V.t("calculation.calculated-total")})`).addClass("line-item")).append(t()("<td></td>").text(o.readableValue(a)).addClass("figure")).append(t()("<td></td>").addClass("icons")).appendTo(i),t()("<tr></tr>").append(t()("<td></td>")).append(t()("<td></td>").text(`${o.concept().label()} (${V.t("calculation.reported-total")})`).addClass("line-item")).append(t()("<td></td>").text(o.readableValue()).addClass("figure")).append(t()("<td></td>").addClass("icons")).appendTo(i),r&&n.addClass("has-icons")}displayCalculation(e){const t=this.node.find("table.calculation-trace");t.find("tbody").empty(),t.removeClass("has-icons"),e instanceof ur?this.populateCalc11Table(e,t):this.populateLegacyCalcTable(e,t);const n=t.find("td.status");n.removeClass("inconsistent").removeClass("consistent").removeClass("unchecked"),e.unchecked()?n.addClass("unchecked").find(".message").text("Calculation does not bind"):e.isConsistent()?n.addClass("consistent").find(".message").text("Calculation is consistent"):n.addClass("inconsistent").find(".message").text("Calculation is inconsistent")}}class fr{constructor(e){this._reportSet=e,this.outlines=e.reports.map((e=>new pr(e)))}hasOutline(){return this.outlines.some((e=>Object.keys(e.sections).length>0))}sortedSections(){return this.outlines.flatMap((e=>e.sortedSections()))}groupsForFact(e){return this.outlines.find((t=>t.report==e.report)).groupsForFact(e)}}class pr{constructor(e){this.report=e;const t=e.facts().sort(((e,t)=>e.ixNode.docOrderindex-t.ixNode.docOrderindex)),n={},i={},r={},o={};this._buildDimensionMap();const a=e.relationshipGroups("pres");for(const e of t)if(!e.isHidden())for(const t of a)this.factInGroup(e,t)?(t in n||(n[t]=0,i[t]=e),n[t]++):t in n&&((!(t in r)||r[t]<n[t])&&(r[t]=n[t],o[t]=i[t]),delete n[t],delete i[t]);for(const e in n)(!(e in r)||r[e]<n[e])&&(r[e]=n[e],o[e]=i[e]);this.sections=o}factInGroup(e,t){if(0==this.report.getParentRelationshipsInGroup(e.conceptName(),"pres",t).length)return!1;const n=e.dimensions(),i=this.dimensionMap[t];for(const[e,t]of Object.entries(i))if(t.typed){if(!(e in n))return!1}else if(e in n?!(n[e]in t.members):!t.allowDefault)return!1;return!0}_buildDimensionMap(){const e=this.report.relationshipGroups("pres");this.dimensionMap={};for(const t of e){this.dimensionMap[t]={};for(const e of this.report.relationshipGroupRoots("pres",t))this.buildDimensionMapFromSubTree("pres",t,null,e)}}buildDimensionMapFromSubTree(e,t,n,i){const r=this.report.getConcept(i);if(r.isTypedDimension())this.dimensionMap[t][i]={typed:!0};else{r.isExplicitDimension()&&(n=i,this.dimensionMap[t][n]={members:{},allowDefault:!1});var o=this.report.getChildRelationships(i,e);if(t in o)for(var a of o[t])n&&(this.report.dimensionDefault(n)==a.t?this.dimensionMap[t][n].allowDefault=!0:this.dimensionMap[t][n].members[a.t]=!0),this.buildDimensionMapFromSubTree(e,t,n,a.t)}}groupsForFact(e){const t=[];for(const n of this.report.relationshipGroups("pres"))this.factInGroup(e,n)&&t.push({elr:n,fact:this.sections[n],report:this.report});return t}hasOutline(){return Object.keys(this.sections).length>0}sortedSections(){const e=Object.keys(this.sections),t=/\(parenthetical\)\s*$/i;return e.filter((e=>!t.test(this.report.getRoleLabel(e)))).sort(((e,t)=>this.report.getRoleLabel(e).localeCompare(this.report.getRoleLabel(t)))).map((e=>({report:this.report,fact:this.sections[e],elr:e})))}}const gr="dimensions",mr="members",vr="primaryItems",yr="total";class br{constructor(){this._dimensions=new Set,this._members=new Set,this._primaryItems=new Set}addDimension(e){this._dimensions.add(e)}addMember(e){this._members.add(e)}addPrimaryItem(e){this._primaryItems.add(e)}getCounts(){return{[gr]:this._dimensions.size,[mr]:this._members.size,[vr]:this._primaryItems.size,[yr]:this._dimensions.size+this._members.size+this._primaryItems.size}}}class xr{constructor(){this._documentsByType={inline:new Set,schema:new Set,calcLinkbase:new Set,defLinkbase:new Set,labelLinkbase:new Set,presLinkbase:new Set,refLinkbase:new Set,unrecognizedLinkbase:new Set}}addDocument(e,t){for(const n of t){if(!(n in this._documentsByType))throw new Error(`Document ${e} with unrecognized type ${n}.`);this._documentsByType[n].add(e)}}getDocuments(){const e={};for(const[t,n]of Object.entries(this._documentsByType))e[t]=[...n].sort();return e}}class wr{constructor(e){this._reportSet=e}_getTagCounter(e,t){const n=t.indexOf(":");if(-1===n)throw new Error(`Element ${t} is not a concept.`);const i=t.substring(0,n);return e.has(i)||e.set(i,new br),e.get(i)}_buildTagCounts(){const e=new Map;for(const t of this._reportSet.facts()){let n=this._getTagCounter(e,t.conceptName());n.addPrimaryItem(t.conceptName());for(const[i,r]of Object.entries(t.dimensions())){n=this._getTagCounter(e,i),n.addDimension(i);const o=t.report.getConcept(i);if(o.isTypedDimension()){const t=o.typedDomainElement();t&&(n=this._getTagCounter(e,t),n.addMember(t))}else n=this._getTagCounter(e,r),n.addMember(r)}}this._tagCounts=new Map([...e].map((([e,t])=>[e,t.getCounts()])))}_buildLocalFileSummary(){this._localFileSummary=new xr;for(const[e,t]of this._reportSet.reports.flatMap((e=>Object.entries(e.localDocuments()))))this._localFileSummary.addDocument(e,t)}totalFacts(){return void 0===this._totalFacts&&(this._totalFacts=this._reportSet.facts().length),this._totalFacts}tagCounts(){return void 0===this._tagCounts&&this._buildTagCounts(),this._tagCounts}getLocalDocuments(){return void 0===this._localFileSummary&&this._buildLocalFileSummary(),this._localFileSummary.getDocuments()}}class Ar{constructor(e){this._iv=e,this._viewerOptions=new en,this._currentItem=null,this._useCalc11=!0}i18nInit(){return V.init({lng:this.preferredLanguages()[0],returnEmptyString:!1,fallbackLng:"en",debug:!1,resources:{en:{translation:n(997),referenceParts:n(343),currencies:n(85)},es:{translation:n(702),referenceParts:n(6),currencies:n(476)}}}).then((e=>{Ji().init(V,t(),{tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",useOptionsAttr:!1,parseDefaultValueFromContent:!0})}))}initialize(e,n){const i=this;return this._viewer=n,new Promise((function(n,r){i._chart=new tr,i._reportSet=e,i.i18nInit().then((r=>{t()(".collapsible-header").on("click",(function(){const e=t()(this).closest(".collapsible-section");e.toggleClass("collapsed"),e.hasClass("collapsed")?e.find(".collapsible-body").slideUp(250):(e.find(".collapsible-body").slideDown(250),e.hasClass("collapsible-only")&&e.siblings(".collapsible-section:not(.collapsed)").each((function(){const e=t()(this);e.addClass("collapsed"),e.find(".collapsible-body").slideUp(250)})))})),t()("#inspector .controls .search-button").on("click",(function(){t()(this).closest("#inspector").removeClass(["summary-mode","outline-mode"]).toggleClass("search-mode")})),t()("#inspector .controls .summary-button").on("click",(function(){t()(this).closest("#inspector").removeClass(["outline-mode","search-mode"]).toggleClass("summary-mode")})),t()("#inspector .controls .outline-button").on("click",(function(){t()(this).closest("#inspector").removeClass(["summary-mode","search-mode"]).toggleClass("outline-mode")})),t()("#inspector-head .back").on("click",(function(){t()(this).closest("#inspector").removeClass(["summary-mode","outline-mode","search-mode"])})),t()(".popup-trigger").hover((function(){t()(this).find(".popup-content").show()}),(function(){t()(this).find(".popup-content").hide()})),t()("#inspector").on("click",".clipboard-copy",(function(){navigator.clipboard.writeText(t()(this).data("cb-text"))})),i._toolbarMenu=new nr(t()("#toolbar-highlight-menu")),i.buildToolbarHighlightMenu(),i._optionsMenu=new nr(t()("#display-options-menu")),i.buildDisplayOptionsMenu(),t()("#ixv").localize(),t()(window).on("message",(e=>i.handleMessage(e))),e.viewerOptions=i._viewerOptions,i.summary=new wr(e),i.createSummary(),i.outline=new fr(e),i.createOutline(),i._iv.setProgress(V.t("inspector.initializing")).then((()=>{i._search=new Ki(e),i.buildDisplayOptionsMenu(),i.buildToolbarHighlightMenu(),i.buildHighlightKey(),i.setupValidationReportIcon(),i.initializeViewer(),n()}))}))}))}initializeViewer(){this._viewer.onSelect.add(((e,t,n)=>this.selectItem(e,t,n))),this._viewer.onMouseEnter.add((e=>this.viewerMouseEnter(e))),this._viewer.onMouseLeave.add((e=>this.viewerMouseLeave(e))),t()(".ixbrl-next-tag").click((()=>this._viewer.selectNextTag(this._currentItem))),t()(".ixbrl-prev-tag").click((()=>this._viewer.selectPrevTag(this._currentItem)))}postLoadAsync(){Rt(this._search.buildSearchIndex((()=>this.searchReady())))}handleFactDeepLink(){const e=location.hash.match(/^#f([0-9]+)?-(.*)$/);if(null!==e){const t=Bt(e[1]??0,e[2]);void 0!==this._reportSet.getItemById(t)&&this.selectItem(t)}}handleMessage(e){const t=e.originalEvent.data;let n;try{n=JSON.parse(t)}catch(e){return}if("SHOW_FACT"===n.task){let e=Number(n.docSetId);e||(e=0);const t=Bt(e,n.factId);this.selectItem(t)}else console.log("Not handling unsupported task message: "+t)}updateURLFragment(){this._currentItem?location.hash="#f"+this._currentItem.vuid.replace(/^0-/,"-"):location.hash=""}buildDisplayOptionsMenu(){if(this._optionsMenu.reset(),this._reportSet){const e=this.selectDefaultLanguage(),t=this._reportSet.availableLanguages(),n=new Intl.DisplayNames(this.preferredLanguages(),{type:"language"});this._optionsMenu.addCheckboxGroup(t,Object.fromEntries(t.map((e=>[e,n.of(e)]))),e,(e=>{this.setLanguage(e),this.update()}),"select-language"),this.setLanguage(e),this._reportSet.filingDocuments()&&this._optionsMenu.addDownloadButton("Download filing documents",this._reportSet.filingDocuments()),this._optionsMenu.addCheckboxItem(V.t("calculation.useCalculations11"),(e=>this.setCalculationMode(e)),"calculation-mode","select-language",this._useCalc11)}this._iv.callPluginMethod("extendDisplayOptionsMenu",this._optionsMenu)}buildToolbarHighlightMenu(){const e=this._iv;this._toolbarMenu.reset(),this._toolbarMenu.addCheckboxItem(V.t("toolbar.xbrlElements"),(e=>this.highlightAllTags(e)),"highlight-tags",null,this._iv.options.highlightTagsOnStartup),e.isReviewModeEnabled()&&(this._toolbarMenu.addCheckboxItem("Untagged Numbers",(function(t){const n=e.viewer.contents().find("body");t?n.addClass("review-highlight-untagged-numbers"):n.removeClass("review-highlight-untagged-numbers")}),"highlight-untagged-numbers","highlight-tags"),this._toolbarMenu.addCheckboxItem("Untagged Dates",(function(t){const n=e.viewer.contents().find("body");t?n.addClass("review-highlight-untagged-dates"):n.removeClass("review-highlight-untagged-dates")}),"highlight-untagged-dates","highlight-untagged-numbers")),this._iv.callPluginMethod("extendToolbarHighlightMenu",this._toolbarMenu)}buildHighlightKey(){let e;t()(".highlight-key .items").empty(),e=this._iv.isReviewModeEnabled()?["XBRL Elements","Untagged Numbers","Untagged Dates"]:this._reportSet.namespaceGroups(),this._iv.callPluginMethod("extendHighlightKey",e);for(const[n,i]of e.entries())t()("<div>").addClass("item").append(t()("<span></span>").addClass("sample").addClass("sample-"+n%3)).append(t()("<span></span>").text(i)).appendTo(t()(".highlight-key .items"))}setCalculationMode(e){this._useCalc11=e,this._currentItem instanceof Qt&&this.updateCalculation(this._currentItem)}highlightAllTags(e){this._viewer.highlightAllTags(e,this._reportSet.namespaceGroups())}factListRow(e){const n=t()('<div class="fact-list-item"></div>').click((()=>this.selectItem(e.vuid))).dblclick((()=>t()("#inspector").removeClass("search-mode"))).mousedown((e=>{e.detail>1&&e.preventDefault()})).mouseenter((()=>this._viewer.linkedHighlightFact(e))).mouseleave((()=>this._viewer.clearLinkedHighlightFact(e))).data("ivid",e.vuid);t()('<div class="select-icon"></div>').click((()=>{this.selectItem(e.vuid),t()("#inspector").removeClass("search-mode")})).appendTo(n),t()('<div class="title"></div>').text(e.getLabelOrName("std")).appendTo(n),t()('<div class="dimension"></div>').text(e.period().toString()).appendTo(n);for(const i of e.aspects())i.isTaxonomyDefined()&&!i.isNil()&&t()('<div class="dimension"></div>').text(i.valueLabel()).appendTo(n);const i=t()("<div></div>").addClass("tags").appendTo(n);return null!==e.targetDocument()&&t()('<div class="hidden"></div>').text(e.targetDocument()).appendTo(i),e.isHidden()?t()('<div class="hidden"></div>').text(V.t("search.hiddenFact")).appendTo(i):e.isHTMLHidden()&&t()('<div class="hidden"></div>').text(V.t("search.concealedFact")).appendTo(i),n}addResults(e,n,i){t()(".more-results",e).remove();for(var r=i;r<n.length;r++){if(r-i>=100){t()('<div class="more-results"></div>').text(V.t("search.showMoreResults")).on("click",(()=>this.addResults(e,n,r))).appendTo(e);break}this.factListRow(n[r].fact).appendTo(e)}}searchSpec(){const e={};return e.searchString=t()("#ixbrl-search").val(),e.showVisibleFacts=t()("#search-visible-fact-filter").prop("checked"),e.showHiddenFacts=t()("#search-hidden-fact-filter").prop("checked"),e.namespacesFilter=t()("#search-filter-namespaces select").val(),e.unitsFilter=t()("#search-filter-units select").val(),e.scalesFilter=t()("#search-filter-scales select").val(),e.periodFilter=t()("#search-filter-period select").val(),e.conceptTypeFilter=t()("#search-filter-concept-type").val(),e.factValueFilter=t()("#search-filter-fact-value").val(),e.calculationsFilter=t()("#search-filter-calculations select").val(),e.dimensionTypeFilter=t()("#search-filter-dimension-type select").val(),e.targetDocumentFilter=t()("#search-filter-target-document select").val(),e}setupSearchControls(e){const n=this;t()(".search-controls input, .search-controls select").change((()=>this.search())),t()(".search-controls div.filter-toggle").click((()=>t()(".search-controls").toggleClass("show-filters"))),t()(".search-controls .search-filters .reset").click((()=>this.resetSearchFilters())),t()(".search-controls .search-filters .reset-multiselect").on("click",(function(){t()(this).siblings().children("select option:selected").prop("selected",!1),n.search()}));for(const e of Object.keys(this._search.periods))t()("<option>").attr("value",e).text(this._search.periods[e]).appendTo("#search-filter-period select");for(const e of this._reportSet.getUsedConceptPrefixes())t()("<option>").attr("value",e).text(`${e} (${this._reportSet.prefixMap()[e]})`).appendTo("#search-filter-namespaces select");const i=Array.from(this._reportSet.getTargetDocuments());if(1==i.length&&null==i[0])t()("#search-filter-target-document").hide();else for(const e of i)t()("<option>").attr("value",e??":default").text(e??`<${V.t("search.default")}>`).appendTo("#search-filter-target-document select");for(const e of this._reportSet.getUsedUnits())t()("<option>").attr("value",e).text(`${this._reportSet.getUnit(e)?.label()} (${e})`).appendTo("#search-filter-units select");const r=this._getScalesOptions();for(const e of Object.keys(r).sort())t()("<option>").attr("value",e).text(r[e]).appendTo("#search-filter-scales select")}_getScalesOptions(){const e={},t=this._reportSet.getUsedScalesMap();return Object.keys(t).sort().forEach((n=>{const i=Array.from(t[n]).sort();i.length>0?e[n]=i.join(", "):e[n]=n.toString()})),e}resetSearchFilters(){t()("#search-filter-period select option:selected").prop("selected",!1),t()("#search-filter-concept-type").val("*"),t()("#search-filter-fact-value").val("*"),t()("#search-filter-calculations select option:selected").prop("selected",!1),t()("#search-filter-dimension-type select option:selected").prop("selected",!1),t()("#search-hidden-fact-filter").prop("checked",!0),t()("#search-visible-fact-filter").prop("checked",!0),t()("#search-filter-namespaces select option:selected").prop("selected",!1),t()("#search-filter-target-document select option:selected").prop("selected",!1),t()("#search-filter-units select option:selected").prop("selected",!1),t()("#search-filter-scales select option:selected").prop("selected",!1),this.search()}searchReady(){this.setupSearchControls(),t()("#inspector").addClass("search-ready"),t()("#ixbrl-search").prop("disabled",!1),this.search()}search(){const e=this.searchSpec(),n=this._search.search(e);if(void 0===n)return;const i=t()("#inspector .search-results .results");t()("div",i).remove(),this._viewer.clearRelatedHighlighting();const r=t()("#inspector .search-results .search-overlay");n.length>0?(r.hide(),this.addResults(i,n,0)):(t()(".title",r).text(V.t("search.noMatchFound")),t()(".text",r).text(V.t("search.tryAgainDifferentKeywords")),r.show()),t()("#matching-facts-count").text(n.length),""!=e.searchString&&this._viewer.highlightRelatedFacts(n.map((e=>e.fact))),this.updateMultiSelectSubheader("search-filter-scales"),this.updateMultiSelectSubheader("search-filter-units"),this.updateMultiSelectSubheader("search-filter-namespaces"),this.updateMultiSelectSubheader("search-filter-target-document"),this.updateMultiSelectSubheader("search-filter-dimension-type"),this.updateMultiSelectSubheader("search-filter-calculations"),this.updateMultiSelectSubheader("search-filter-period")}updateMultiSelectSubheader(e){const n=t()(`#${e} .collapsible-subheader`),i=t()(`#${e} select option:selected`);if(1===i.length)n.text(` ${i.text()}`);else if(i.length>0){const r=t()(`#${e} select option`).length;n.text(` (${i.length}/${r} ${V.t("search.selected")})`)}else n.empty()}updateCalculation(e,n){t()(".calculations .tree").empty().append(this._calculationHTML(e))}createSummary(){const e=t()("#inspector .summary .body");this._populateFactSummary(e),this._populateTagSummary(e),this._populateFileSummary(e)}_populateFactSummary(e){const n=this.summary.totalFacts();t()("<span></span>").text(n).appendTo(e.find(".total-facts-value"))}_populateTagSummary(e){const n=e.find(".tag-summary-table-body"),i=this.summary.tagCounts();let r=0,o=0,a=0,s=0;for(const e of i.values())r+=e[vr],o+=e[gr],a+=e[mr],s+=e[yr];function l(e,n,i){let r=0;i>0&&(r=n/i);let o=r.toLocaleString(void 0,{style:"percent"});o=` (${o})`,t()("<td></td>").text(n).addClass("figure").append(t()("<sup></sup>").text(o)).appendTo(e)}const c=[...i.entries()].sort(((e,t)=>e[0].localeCompare(t[0])));for(const[e,i]of c){const c=t()("<tr></tr>").appendTo(n);c.append(t()("<th></th>").attr("scope","row").text(e)),l(c,i[vr],r),l(c,i[gr],o),l(c,i[mr],a),l(c,i[yr],s)}const u=e.find(".tag-summary-table-footer-row");l(u,r,r),l(u,o,o),l(u,a,a),l(u,s,s)}_populateFileSummary(e){const{inline:n,schema:i,calcLinkbase:r,defLinkbase:o,labelLinkbase:a,presLinkbase:s,refLinkbase:l,unrecognizedLinkbase:c}=this.summary.getLocalDocuments(),u=e.find(".files-summary");let d=0;function h(e,n){if(0===e.length)u.find(n).hide();else{const i=u.find(n+" ul");d+=1;for(const n of e)i.append(t()("<li></li>").text(n))}}h(n,".inline-docs"),h(i,".schemas"),h(s,".pres-links"),h(r,".calc-links"),h(o,".def-links"),h(a,".label-links"),h(l,".ref-links"),h(c,".other-links"),0==d&&u.hide()}createOutline(){if(this.outline.hasOutline()){t()(".outline .no-outline-overlay").hide();const e=t()('<div class="fact-list"></div>').appendTo(t()(".outline .body"));for(const n of this.outline.sortedSections())t()('<div class="fact-list-item"></div>').text(n.report.getRoleLabel(n.elr)).click((()=>this.selectItem(n.fact.vuid))).dblclick((()=>t()("#inspector").removeClass("outline-mode"))).mousedown((e=>{e.detail>1&&e.preventDefault()})).appendTo(e)}}updateOutline(e){t()(".fact-groups").empty();for(const n of this.outline.groupsForFact(e))t()('<div class="fact-list-item"></div>').text(e.report.getRoleLabel(n.elr)).click((()=>this.selectItem(n.fact.vuid))).appendTo(t()(".fact-groups"))}updateFootnotes(e){t()(".footnotes").empty().append(this._footnotesHTML(e)),e.linkedFacts.length>0?t()("#inspector .footnote-facts-section").show().find(".footnote-facts").empty().append(this._footnoteFactsHTML(e)):t()("#inspector .footnote-facts-section").hide()}_anchorList(e,n){const i=t()("<ul></ul>");if(n.length>0)for(const r of n){const n=e.report.getAlignedFacts(e,{c:r}),o=e.report.getLabel(r,"std",!0);t()("<li></li>").appendTo(i).append(this.factLinkHTML(o,n))}else t()("<li></li>").append(t()("<i></i>").text(V.t("common.none"))).appendTo(i);return i}updateAnchoring(e){this._reportSet.usesAnchoring()?(t()(".anchoring").show(),t()(".anchoring .collapsible-body .anchors-wider").empty().append(this._anchorList(e,e.widerConcepts())),t()(".anchoring .collapsible-body .anchors-narrower").empty().append(this._anchorList(e,e.narrowerConcepts()))):t()(".anchoring").hide()}_referencesHTML(e){e.concept();const n=new ir;for(const[i,r]of e.concept().references().entries()){const e=t()("<span></span>").text(r[0].value),o=t()('<table class="fact-properties"><tbody></tbody></table>'),a=o.find("tbody");for(const e of r){const n=t()("<tr>").append(t()("<th></th>").text(V.t(`referenceParts:${e.part}`,{defaultValue:e.part}))).append(t()("<td></td>").text(e.value)).appendTo(a);"URI"==e.part&&(n.addClass("uri"),n.find("td").wrapInner(t()("<a>").attr("href",e.value)))}n.addCard(e,o,0==i)}return n.contents()}_calculationHTML(e,n){const i=new sr(e,this._useCalc11);if(!i.hasCalculations())return"";const r=this._viewer.factsInSameTable(e),o=i.bestELRForFactSet(r),a=e.report,s=new ir;for(const n of i.resolvedCalculations()){const i=a.getRoleLabel(n.elr),r=t()("<div></div>"),l=t()("<table></table>").addClass("calculation-table").appendTo(r);for(const e of n.rows){const n=t()("<tr></tr>").addClass("item").append(t()("<td></td>").addClass("weight").text(e.weightSign+" ")).append(t()("<td></td>").addClass("concept-name").text(e.concept.label())).append(t()("<td></td>").addClass("value")).appendTo(l);e.facts.isEmpty()||(n.addClass("calc-fact-link"),n.addClass("calc-fact-link"),n.data("ivids",e.facts.items().map((e=>e.vuid))),n.click((()=>this.selectItem(e.facts.items[0].vuid))),n.mouseenter((()=>e.facts.items().forEach((e=>this._viewer.linkedHighlightFact(e))))),n.mouseleave((()=>e.facts.items().forEach((e=>this._viewer.clearLinkedHighlightFact(e))))),e.facts.items().forEach((e=>this._viewer.highlightRelatedFact(e))),n.find(".value").text(e.facts.mostPrecise().readableValue()))}t()("<tr></tr>").addClass("item").addClass("total").append(t()("<td></td>").addClass("weight")).append(t()("<td></td>").addClass("concept-name").text(e.concept().label())).append(t()("<td></td>").addClass("value").text(e.readableValue())).appendTo(l);const c=t()("<span></span>"),u=t()("<span></span>").append(c).append(t()("<span></span>").text(i)),d=t()("<span></span>"),h=t()("<span></span>").addClass("calculation-details-link").attr("title",V.t("factDetails.viewCalculationDetails")).text("details").click((e=>{const t=new hr;t.displayCalculation(n),t.show(),e.stopPropagation()}));t()("<p></p>").append(d).append(t()("<span></span>").text(" (")).append(h).append(t()("<span></span>").text(")")).appendTo(r),n.binds()?n.isConsistent()?(c.addClass("consistent-flag").attr("title",V.t("factDetails.calculationIsConsistent")),d.text(V.t("factDetails.calculationIsConsistent"))):(c.addClass("inconsistent-flag").attr("title",V.t("factDetails.calculationIsInconsistent")),d.text(V.t("factDetails.calculationIsInconsistent"))):n.unchecked()&&(c.addClass("unchecked-flag").attr("title",V.t("factDetails.calculationUnchecked")),d.text(V.t("factDetails.calculationUnchecked"))),s.addCard(u,r,n.elr==o)}return s.contents()}_footnotesHTML(e){const n=t()("<div></div>").addClass("fact-list");for(const i of e.footnotes())i instanceof Xt?t()("<div></div>").addClass("block-list-item").text(Ft(i.textContent(),120)).mouseenter((()=>this._viewer.linkedHighlightFact(i))).mouseleave((()=>this._viewer.clearLinkedHighlightFact(i))).click((()=>this.selectItem(i.vuid))).appendTo(n):i instanceof Qt&&n.append(this.factListRow(i));return n}viewerMouseEnter(e){t()(".calculations .item").filter(((n,i)=>(t()(i).data("ivids")??[]).includes(e))).addClass("linked-highlight"),t()("#inspector .search .results tr").filter(((n,i)=>t()(i).data("ivid")==e)).addClass("linked-highlight")}viewerMouseLeave(e){t()(".calculations .item").removeClass("linked-highlight"),t()("#inspector .search .results tr").removeClass("linked-highlight")}describeChange(e,t){if(t.value()>0==e.value()>0&&Math.abs(e.value())+Math.abs(t.value())>0){const n=100*(t.value()-e.value())/e.value();let i=0;return i=n>=0?V.t("factDetails.changePercentageIncrease",{increase:jt(n,1)}):V.t("factDetails.changePercentageDecrease",{decrease:jt(-1*n,1)}),i}return V.t("factDetails.changeFromIn",{from:e.readableValue()})}factLinkHTML(e,n){const i=t()("<span></span>").text(e);return n.length>0&&i.addClass("fact-link").click((()=>this.selectItem(n[0].vuid))).mouseenter((()=>n.forEach((e=>this._viewer.linkedHighlightFact(e))))).mouseleave((()=>n.forEach((e=>this._viewer.clearLinkedHighlightFact(e))))),i}getPeriodIncrease(e){let n="";if(e.isNumeric()){const r=e.report.getAlignedFacts(e,{p:null});var i;if(e.periodTo())for(const t of r)t.periodTo()&&t.periodTo()<e.periodTo()&&(!i||t.periodTo()>i.periodTo())&&e.isEquivalentDuration(t)&&(i=t);if(i){const r=e.report.getAlignedFacts(i);n=t()("<span></span>").text(this.describeChange(i,e)).append(this.factLinkHTML(i.periodString(),r))}else n=t()("<i>").text(V.t("factDetails.noPriorFactInThisReport"))}else n=t()("<i>").text("n/a").attr("title",V.t("factDetails.nonNumericFact"));t()(".fact-properties tr.change td").html(n)}_updateValue(e,n,i){const r=e.readableValue(),o=t()("tr.value",i);let a=r;if(n)o.removeClass("truncated");else{const t=Et(r,120);t.length>1?(o.addClass("truncated"),o.find(".show-all").off("click").on("click",(()=>this._updateValue(e,!0,i)))):o.removeClass("truncated"),a=t[0]}ar.canRender(e)?o.addClass("text-block").find(".expand-text-block").off().click((()=>this.showTextBlock(e))):o.removeClass("text-block");const s=o.find("td .value").empty().text(a);e instanceof Qt&&(e.isNil()||e.isInvalidIXValue())&&s.wrapInner("<i></i>")}showTextBlock(e){const t=new ar(e);t.displayTextBlock(),t.show()}_updateEntityIdentifier(e,n){t()("tr.entity-identifier td",n).empty().append(Ut.readableNameHTML(e.identifier()))}_footnoteFactsHTML(e){const n=t()("<div></div>");return e.linkedFacts.forEach((e=>{n.append(this.factListRow(e))})),n}_selectionSummaryAccordian(){const e=this._currentItem,i=new ir({onSelect:e=>this.switchItem(e),alwaysOpen:!0,dissolveSingle:!0}),r=new rr(this._currentItemList);for(const o of this._currentItemList){let a;const s=r.minimallyUniqueLabel(o);if(o instanceof Qt){a=t()(n(454)),t()(".std-label",a).text(o.getLabelOrName("std",!0)),t()(".documentation",a).text(o.getLabel("doc")||""),t()("tr.concept td",a).find(".text").text(o.conceptName()).attr("title",o.conceptName()).end().find(".clipboard-copy").data("cb-text",o.conceptName()).end(),t()("tr.period td",a).text(o.periodString()),o.isNumeric()&&t()("tr.period td",a).append(t()("<span></span>").addClass("analyse").text("").click((()=>this.analyseDimension(o,["p"])))),this._updateEntityIdentifier(o,a),this._updateValue(o,!1,a);const e=t()("tr.accuracy td",a).empty().append(o.readableAccuracy());o.isNumeric()&&!o.isNil()||e.wrapInner("<i></i>");const i=t()("tr.scale td",a).empty().append(o.readableScale());o.isNumeric()&&!o.isNil()||i.wrapInner("<i></i>"),t()("#dimensions",a).empty();const r=o.aspects().filter((e=>e.isTaxonomyDefined()));0===r.length&&t()("#dimensions-label",a).hide();for(const e of r){const n=t()('<div class="dimension"></div>').text(e.label()||e.name()).appendTo(t()("#dimensions",a));o.isNumeric()&&n.append(t()("<span></span>").addClass("analyse").text("").on("click",(()=>this.analyseDimension(o,[e.name()]))));const i=t()('<div class="dimension-value"></div>').text(e.valueLabel()).appendTo(n);e.isNil()&&i.wrapInner("<i></i>")}}else o instanceof Xt&&(a=t()(n(276)),this._updateValue(o,!1,a));i.addCard(s,a,o.vuid==e.vuid,o.vuid)}return i}analyseDimension(e,t){(new tr).analyseDimension(e,t)}update(){const e=this._currentItem;if(e){if(t()("#inspector").removeClass("no-fact-selected").removeClass("hidden-fact").removeClass("html-hidden-fact"),t()("#inspector .fact-inspector").empty().append(this._selectionSummaryAccordian().contents()),e instanceof Qt){t()("#inspector").removeClass("footnote-mode"),this.updateCalculation(e),this.updateOutline(e),this.updateFootnotes(e),this.updateAnchoring(e),t()("div.references").empty().append(this._referencesHTML(e)),t()("#inspector .search-results .fact-list-item").removeClass("selected"),t()("#inspector .search-results .fact-list-item").filter(((n,i)=>t()(i).data("ivid")==e.vuid)).addClass("selected");const i=e.duplicates();let r=0;const o=i.length;for(var n=0;n<o;n++)e.vuid==i[n].vuid&&(r=n);t()(".duplicates .text").text(V.t("factDetails.duplicatesCount",{current:r+1,total:o})),t()(".duplicates .prev").off().click((()=>this.selectItem(i[(r+o-1)%o].vuid))),t()(".duplicates .next").off().click((()=>this.selectItem(i[(r+1)%o].vuid))),this.getPeriodIncrease(e),e.isHidden()?t()("#inspector").addClass("hidden-fact"):e.isHTMLHidden()&&t()("#inspector").addClass("html-hidden-fact");const a=e.targetDocument();null!==a?t()("#inspector .target-document-tag").text(a).show():t()("#inspector .target-document-tag").hide()}else e instanceof Xt&&(t()("#inspector").addClass("footnote-mode"),t()("#inspector .footnote-details .footnote-facts").empty().append(this._footnoteFactsHTML(e)));t()(".fact-details").localize()}else t()("#inspector").removeClass("footnote-mode"),t()("#inspector").addClass("no-fact-selected");this.updateURLFragment()}selectItem(e,t,n){if(void 0===t)this._currentItemList=[this._reportSet.getItemById(e)];else{this._currentItemList=[];for(const e of t)this._currentItemList.push(this._reportSet.getItemById(e))}this.switchItem(e,n)}switchItem(e,t){null!==e?(this._currentItem=this._reportSet.getItemById(e),t||this._viewer.showItemById(e),this._viewer.highlightItem(e)):(this._currentItem=null,this._viewer.clearHighlighting()),this.update()}preferredLanguages(){const e=new URLSearchParams(window.location.search);if(e.has("lang"))return[e.get("lang")];const t=window.navigator.languages||[window.navigator.language||window.navigator.userLanguage];return 0!=t.length&&t[0]?t:["en"]}selectDefaultLanguage(){const e=this._reportSet.availableLanguages();for(const t of this.preferredLanguages())for(const n of e)if(n.toLowerCase()==t.toLowerCase())return n;return this._reportSet.availableLanguages()[0]}setLanguage(e){this._viewerOptions.language=e}showValidationReport(){const e=new or;e.displayErrors(this._reportSet.validation()),e.show()}setupValidationReportIcon(){this._reportSet.hasValidationErrors()&&t()("#ixv .validation-warning").show().on("click",(()=>this.showValidationReport()))}showValidationWarning(){if(this._reportSet.hasValidationErrors()){const e=t()("<div></div>").append("<p>This report contains <b>XBRL validation errors</b>. These errors may prevent this document from opening correctly in other XBRL software.</p>");new Hi("Validation errors",e,"View Details","Dismiss").show((()=>this.showValidationReport()))}}}class Cr{constructor(e){this._features=new Set,this._plugins=[],this.inspector=new Ar(this),this.viewer=null,e=e||{},this.options={continuationElementLimit:1e4,showValidationWarningOnStart:!1,...e}}registerPlugin(e){this._plugins.push(e)}callPluginMethod(e,...t){for(const n of this._plugins)"function"==typeof n[e]&&n[e](...t)}pluginPromise(e,...t){return new Promise(((n,i)=>{(async()=>{for(const n of this._plugins)"function"==typeof n[e]&&await n[e](...t)})().then((()=>{n()}))}))}setFeatures(e,t){const n={};e.forEach((e=>{n[e]=!0})),new URLSearchParams(t).forEach(((e,t)=>{!1!==n[t]&&(n[t]="false"!==e)})),this._features.size>0&&(this._features=new Set);for(const[e,t]of Object.entries(n))t&&this._features.add(e)}isFeatureEnabled(e){return this._features.has(e)}isReviewModeEnabled(){return this.isFeatureEnabled("review")}isViewerEnabled(){return"false"===(new URLSearchParams(window.location.search).get("disable-viewer")??"false")}_loadInspectorHTML(){t()(n(730)).prependTo("body");const e=n(28).toString();t()('<style id="ixv-style"></style>').prop("type","text/css").text(e).appendTo("head"),t()('<link id="ixv-favicon" type="image/x-icon" rel="shortcut icon" />').attr("href",n(285)).appendTo("head");try{t()(".inspector-foot .version").text("1.4.20")}catch(e){}}_reparentDocument(){const e=t()("#ixv #iframe-container"),n=t()('<iframe title="iXBRL document view"/>').data("report-index",0).appendTo(e)[0],i=n.contentDocument||n.contentWindow.document;i.open(),i.write("<!DOCTYPE html><html><head><title></title></head><body></body></html>"),i.close();let r=t()("title").text();r=""!=r?"Inline Viewer - "+r:"Inline Viewer",void 0===t()("html").attr("lang")&&t()("html").attr("lang","en-US"),t()("head").children().not("script").not("style#ixv-style").not("link#ixv-favicon").appendTo(t()(n).contents().find("head")),t()("<title>").text(r).appendTo(t()("head")),t()("body script").appendTo(t()("body"));const o=t()(n).contents().find("body");t()("body").children().not("script").not("#ixv").not(e).appendTo(o);for(const e of[...t()("body").prop("attributes")])o.attr(e.name,e.value),t()("body").removeAttr(e.name);return t()("body").removeAttr("style"),n}_getTaxonomyData(){for(let e=document.body.children.length-1;e>=0;e--){const t=document.body.children[e];if("SCRIPT"==t.tagName.toUpperCase()&&"application/x.ixbrl-viewer+json"==t.getAttribute("type"))return t.innerHTML}return null}_checkDocumentSetBrowserSupport(){"file:"==document.location.protocol&&alert("Displaying iXBRL document sets from local files is not supported. Please view the viewer files using a web server.")}load(){const e=this,n=this.inspector;setTimeout((function(){const i=t()("body").hasClass("ixv-stub-viewer");if(!e.isViewerEnabled()&&!i)return;e._loadInspectorHTML();let o=t()();const a=e._getTaxonomyData(),s=a&&JSON.parse(a);e.setFeatures(s&&s.features||[],window.location.search);const l=new tn(s);if(!e.isViewerEnabled())return void window.location.replace(l.reportFiles()[0].file);if(null===s)return t()("#ixv .loader .text").text("Error: Could not find viewer data"),void t()("#ixv .loader").removeClass("loading");i||(o=t()(e._reparentDocument()));const c=l.reportFiles();let u=!1;for(let e=i?0:1;e<c.length;e++){const n=t()("<iframe />").attr("src",c[e].file).data("report-index",c[e].index).appendTo("#ixv #iframe-container");o=o.add(n),u=!0}u&&e._checkDocumentSetBrowserSupport();const d=i?"Loading iXBRL Report":"Loading iXBRL Viewer";e.setProgress(d).then((()=>{let i=setInterval((function(){let a=!0;if(o.each((function(e){const n=this,i=n.contentDocument||n.contentWindow.document;("complete"!=i.readyState&&"interactive"!=i.readyState||0==t()(n).contents().find("body").children().length)&&(a=!1)})),a){clearInterval(i);const a=e.viewer=new Gi(e,o,l);a.initialize().then((()=>n.initialize(l,a))).then((()=>{r()("#viewer-pane").resizable({edges:{left:!1,right:".resize",bottom:!1,top:!1},restrictEdges:{outer:"parent",endOnly:!0},restrictSize:{min:{width:100}}}).on("resizestart",(()=>t()("#ixv").css("pointer-events","none"))).on("resizemove",(e=>{const n=e.target,i=100*e.rect.width/t()(n).parent().width();n.style.width=i+"%",t()("#inspector").css("width",100-i+"%")})).on("resizeend",(e=>t()("#ixv").css("pointer-events","auto"))),t()("#ixv .loader").remove(),n.handleFactDeepLink(),e.options.showValidationWarningOnStart&&n.showValidationWarning(),a.postLoadAsync(),n.postLoadAsync()})).catch((e=>{if(!(e instanceof Vi))throw e;t()("#ixv .loader").remove(),t()("#inspector").addClass("failed-to-load")}))}}),250)}))}),0)}setProgress(e){return new Promise(((n,i)=>{window.requestAnimationFrame((function(){console.log(`%c [Progress] ${e} `,"background: #77d1c8; color: black;"),t()("#ixv .loader .text").text(e),window.requestAnimationFrame((()=>n()))}))}))}}t()((()=>{new Cr({showValidationWarningOnStart:!0}).load()}))})()})();
|
|
2
|
+
(()=>{var t={918:(t,e,n)=>{var i={"./cy/balancetypes.json":366,"./cy/currencies.json":768,"./cy/datatypes.json":220,"./cy/labelroles.json":800,"./cy/referenceparts.json":10,"./cy/scale.json":407,"./cy/tooltips.json":711,"./cy/translation.json":474,"./en/balancetypes.json":531,"./en/currencies.json":85,"./en/datatypes.json":335,"./en/labelroles.json":113,"./en/referenceparts.json":343,"./en/scale.json":292,"./en/tooltips.json":694,"./en/translation.json":997,"./es/balancetypes.json":746,"./es/currencies.json":476,"./es/datatypes.json":120,"./es/labelroles.json":364,"./es/referenceparts.json":6,"./es/scale.json":3,"./es/tooltips.json":971,"./es/translation.json":702};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id=918},987:t=>{t.exports="data:font/woff;charset=utf-8;base64,d09GRgABAAAAABCQAAsAAAAAH4AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAa8AAAMAQOlEZk9TLzIAAAK4AAAAQQAAAGBW70w3Y21hcAAAAvwAAAGMAAAEfNTg0uJnbHlmAAAEiAAACMkAABEU102GOGhlYWQAAA1UAAAAJwAAADZjKUTdaGhlYQAADXwAAAAZAAAAJAgLBExobXR4AAANmAAAACAAAADcdRgAAGxvY2EAAA24AAAARwAAAHCi9KZsbWF4cAAADgAAAAAdAAAAIAFLAKJuYW1lAAAOIAAAATAAAAI6/H8bLXBvc3QAAA9QAAABPgAAAc566iDIeJxlkk1u03AQxZ/dJqRuGlo+QkiL4+ajtpPWMQ2wrLqoWGWZJQuyaYUUddUDsOAQiENwip4BIdZd9RT8ZqJIIcRS/v958+a9mbEVSIpU6kLh1cfpTI3F/O5WbW1r+bP8+j1YfLmZq7aKyG37WVMQ/lBdsab6rDv90WPwK6yGrTALP4XfFKqqI3iROjyJjtVVz88+udoaOtCJ677UE+65MhVwRo69AYth9h0bg0Q61aVmeqp9sAm8PtMUaPXRsniic/472tOO1751PMF9pAbYZtU+3Sz7yjhjeObcVIVac83xbKI51bW+6rt+6l6/9cB8exqidOqTmLvxx2A59fWN3Gr2yn+ZjOiMmhqZAjR1pMtpjJJnR7v/ZHKilLm26CwGS9lbxi2H32Fj0YaDbThCxTZ7wiSJ76WHasVnLmHXUUvofos+TLNNxUgf0OxSYSxzPGKypfchzBi+7eqAXRRwct+7Ic98ezFuQ1dscWv7+53wmPt7sCr82Oca6rVHNl+Kjn09bb2g54HrFj61+T133uodm9cr9AdEpfNs4sC/S9t3D1/TO6OypOrdX51VN58AeJxjYGFSZJzAwMrAwDSN6QwDA0M/hGZ8zWDEyAEUZWBlZsAKAtJcUxgOMMS/kmMBcWNYYhgUgDQjiiIBACtZCcEAAAB4nLXTaVIaURSG4bcBURHneWCSGUQQ0CzHMpOxjGaOup9UFpRfWUNvwnyHcxaQP96uh6/7VDenu+69wByQlRPJQfKXBBt/VE1m9SyFWT3Hb10XWCCj45IbntLy87Nql1xxmyazcx+J7itwwIXOjykzpk2dPgOG9DjljA4TGlRpMaXCiC5N9arpiXM9nVHXnN4tz7z6Leq/liiyzAqrrLHOBptssc0Ou+yxr06HckRJrfO89NAXjdv1/mDY05d0Jo1qa1oZdZsntYvzF+/9f6NoP5lfcfUKmyN3LFehLK/DWN6EtrwNdXkX+vI+DOQ6DOVD6MlNOJXbcCYfQ0fuwkTuQ0M+hap8Di35EqbyNVTkWxjJ99CVH6EpP4Ot8YdQk8dgq/QpaAbTxNn6TzMOy6yz/ZLmnO2ZdM7ZXkrzDst5h+WCw3LRYVlwtsfSJYdl0dlMpssOyxWH5arDcs1hue6w3HBYbjostxyW2w7LHYflrsNyz2G577A8cFgeOiyP3Kxeclit7Cj9A0z4bQF4nM0XS2wb1/F9lrsktUtyuRRpUrXI3RV3GdKlZP5Wslx5Zad2JRm2EtS2/JVT17Hrg+C0KtCcvIcaBhz40kAFigSJkaBFYR3aHnxoU6Csm4tZA3bRTw5pa196KHJqbgHEdec9fiS5VtSeGnJ35n1mdmbnzW8RRvAjLdpEIkJ4AFfVqkpaT540Xdz0PewR5DMKtDUdcbHnez4inC7MAL0JdFGUQ2PIRfPoPLqKPPR9tAKcleSgmhBN3bDqaq1RzeuGCAvJql5pwIJlYtOwvoJrjUmg3IkTYnWbeeB/pMf6oG4PdgTCumUyBWg4Y1kZHzHIXrg+N1cnHPrTJJPPZxj4yXNG/qufv32RmcbND2FvKJ8f8gFSz8q0PS4IoDtXb3tcGsB2s8O1Fdhmm7iex8Vw0D8zKpOfIQUmtlVrVLLYaVSSCYmEPwvFh0IPHoQyWgh7n4WG4mwCS/2z/iUlnI8zRHEqmRANG9/cQErQhof0+W52+STRsGr7OmJTZFs+0NPjfFzQaIfdWdcTuMkzelLGJ4QFhGLIQGXmXcMkESFGmdSmiGNESGKYVKZIrUxMzZZsKSWlnJRjk/DZ918/dOj193/VQWevfPDG/PwbH/ypg648KL/zTvnddzmkzXU6htx1Oob8PiFA9B86FT5XJ2o7KZzaTpv9fz95HYdObqNIO/fk1A2snGLiRa7ILMQgRRIaQDoqoWmE8nq9/9fMMjZEydwcfbQXmYyGxUwZA4KQTYhSFRBp+SwtdO/chYGF5YWBC4Xx8QJBAIOa4iNFI267qSn3guHR/aPh4D1Fa7rsh11nZsYZL7Q9zgCwnVM0TSE5F3B4R0QfHdUjO8Kasu67YTCnzn2wZhlR8CVDTGTBNRKpYVxp7MMcwaZNnFZIy4Tv3w+DS7VaoVBAluXA/fschcDjehtdorAQCAitFoMwYW7L5TXBZlXIWQg3aqPYsh3LliwYgGxRskUpJcIANEimpGTKScKgsg83nFTDsRtOwCjj2hScN05EMP21INyQky/lx5as4qDe0AeL1tJY/qWkfGOrDf/39YVqdeFbDOAP/yuWjRtLtYXLjPXyQq3/Pj5dg/PPw/uohm1BKDpgLceQIl0bppIVZ4pZ1y6DcU2ClxbPNMbHG2cWly4tnr5lFQrWrdOLD8+dvmUXCvat0+cu0x+u/dGB/b+dA8JX+drDZylRX/5dugJ1IAnyn8nzGvM0VaeL7eMjlcoIuQNQSsehipToSsVsHzMrFZOsmpU2UtOkiMCP0dMn9M/UQ3Fko73oZXQJfQ+9wd4MnBNHsGHZ2Go4eApDUZlgzg2LKcwdBBbreVhhR8cXpvAo+La5W9q4uPu5q73FZ+JYBBumugQ226erQdEfFaNqTPT/IGMZfyQpQZb+Yztl/4UMTuOyktOHFfxIifhIkARRfESDwSAVsfRQCApnBIlK/SU2CDxniUSCMVmUZBDDUSiWVdJ4Bzw5K6dJWsnF6DH/vSDoMCWKYIIxxVTwh6JYkmV/csehtP9QUWQZ35Nz6rcpFePiXwTK8UeUnuwNtlzAM5IcU6OyKCrROCB4avpQmj0xfTCjKP1zF8K8T4Ccg80hbKpmvoTLFJKNBE7WSYGTzGqQXCCtQE2CQwPzwmAYQ66JwgwC3iThJm9EXEzE3Ye/MX74mp2U5frZg4XCwbP1bHn20mtHg2q4mMp+c6J0eNIKSPtqM9Nj5ez81avzYPomcCK3cfarhZm9AgaeK8C6P7A0d/Q1QqSRMWe4MVPcg/FcbffXAvuv3r7azzvMb+F1tEHwgZ3YAT0dXF+EA9fv6BA1dMXzfzN8tNg+9tPi0WE87XXzPm11cy7wOtBopKFN0iDHq/os9dY8122CSm3Xc9mMQs/U9GDu9esGlxuDvmk3KNJ3NrCMtl3bRB7re44sHNmjd5EXT6fj7eMMkjsbYmwEf7LryB7DYFQThjFxBH8d6I6p6bRKVuPp4sbQQ0K/l5PRl0CrL3fjWFc7Up8N6gBE9CYCOuu7Q3mCoCHx/8GG0Ak12STPKghx+7u0Cd0R6uw+BbxOCzTEW99EoU12HoDsoqEUGkJZZMJ5VVVzEG6GpS7mN5yF2r1nc/A7v+HyWL3q3bT5FLlPwQv6iN2UTdiFUIDL/y3IT4NEGzrcvSwH1SAF6EYED6qbTQKdJwzh8MAwqi4lWFMDBRXr3MHBVokk9YxJ00fmpMG6Qsqa0DbvQzNW2yPNNpOeb+Th8nPYZRXTbwLETewBD+OFlvIp710xQMybS595P2KdIHDiH2sZDS4emlz/x6D/TmShcTQL2kNcpqYwL/NRljQHq3VW1SBpgo5aT2e6MQFW65s6GRJ+8eBALlZxTU0uJpN4MTgUjw8Ov3ygZNXz+bpVWnh7+cCB5bd/3kELr6x6MzPe6r0OeoV8UpRno8lUMpoIZmMFvRQb2plQteKuyhHuCXXLIvMHlt/6xVuMnaPS7LXV361em+2iDfUmy6Inz3M+qNZRs8qKgNNL17gTVJ2XqdNV7H+aNasnlq8vn6gC2u9cKIAZIMfFRBmH1x7vmrv4nYtzu7roOsbKCxcaB5ZPVCrA893jVTPrf4oDAVGUdRk/2rNOCmiib/MWdbs+mwFPBU/s/VkFK+G6gutV5jSzrGhwzwNMXU25zRLZ7cI4YQnEhXDwb0NPBZlxvIDPs0cHus/3+DfXLjjVFyH/dFOF3k0dgV6q6AWttsEHU1uMW70PFfbRQviXSud75Txuck/k/rjFuNlx4s6Hldv/ogJIUMchvU2I1fiub35Ra/zdL0iNX/m/1vhOjXyTGszzQtiWQphO+JN3T+EoyVLD33v3tP8vku36/T/hPDU0AtVjgn//p3AyQsC9yoQfZJ2dosgTps0PoZ9w6mzAfJh9eYRpRMBvClQIhdf+Gg4JNIB/IESoqof8pbht0RHLjvtLoVy8lB5J9y+6IgTXPg4qYigkKiFqhoRSXF372JieNmhejbdRnBP+iNVJXGQQNP43b4UzmwAAAHicY2BkYGAA4nve9qbx/DZfGbhZGDDB/wcsXGBxDgYmEAUAqn0FSQB4nGNgZGBgYQABFhEwycXAyIAKzAEEeQBkAAAAeJxjYGBgYOHCg0WgGMZngGIYWwSHPgLm0gMAAPl0AY14nGNgAAIRBg2Gd4xcjGqMToxxjCsYXzH5MLUwvWHWYQ5h0WDpYFnCcoSVjzWCdQbrD7YUtk1sj9jdOKQ49Di6SIcAaAkbkAB4nGNgZGBgMGeYxsDFAAJMQMwFZv8H8xkAHaMB7gAAAHicdc9NSsNAHAXwl36JLYgouBNmJYKQtHXXhct256KL7pN0kqakmTCZfoGn8ASewiO48hSewqWv8b8oUjPkn9+8vAwEwCU+4OFweejV83A1cMbdr5vUlbhF34rb9L24Qz+Ku3jAk7iHa2Q8wWudM7nBi7iBC7yKm8zfxC36XdymP8Ud+kvcxQzf4h7uvOdsF9l8k+mttlOdrvPQHiVHnGlbZaZQA79/lE50oW3o9FxFe1Vt0qFziUqsWamxKZzOc6NKa5Y6dv7CuXIUBInkfmxW/LsdIljk2NAaW94WU84Ua6Yhd6c7p9NZPSsmBgUUBvDR/6c74SxqhXB8ztmPsOes2EsxZOqQcJ+wY7CixvW5h3bOZZiU9bslk5i5j0X9VYkRAq7kT99niyf9AMXJamZ4nG2OWVfbMBCF/RGy2IQWukAX6EoX2pql0MK/6VFkxdaJLJmxTODfEwjw1Psy9zszc2eSlWSpLPm/zlihxyp9BgwZkZKxxph1nvCUDTZ5xnNe8JIttnnFa97wlh12ecd7PvCRT3xmjy985Rvf2ecHP/lFzgGHHHHMb0445Q9/OeM8yZRImOdFmPvR0nZNppXTnVMxyFhX5lKCvxt4BGemcf0BxJZVzB6oa8bainYm1xLadu0eotWzVDvbTIKSoq9daE1PhzItlMzyOhQmLWxtfGuD33h0eW3qiZHR7XEXVDGYWheN9EtRTTVYNtO6c9HmUZXD0EVnvek3Yn0cXXSmjYuQQWuU6GpRnNFx2HZ1reS6t1hYvf1qOFfirS9RCIE5/yjwdDRoHJEKwyVTLCUtMybUXHDNVZLcACPHcvMAAA=="},600:t=>{t.exports="data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiCiAgIHhtbG5zOmlua3NjYXBlPSJodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy9uYW1lc3BhY2VzL2lua3NjYXBlIgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmcyIgogICB4bWw6c3BhY2U9InByZXNlcnZlIgogICB3aWR0aD0iNTM2LjM2NDc1IgogICBoZWlnaHQ9IjE1MC4zMTAwMyIKICAgdmlld0JveD0iMCAwIDUzNi4zNjQ3MyAxNTAuMzEwMDMiCiAgIHNvZGlwb2RpOmRvY25hbWU9ImFyZWxsZS1sb2dvLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMC45Mi41ICgyMDYwZWMxZjlmLCAyMDIwLTA0LTA4KSI+PG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhOCI+PHJkZjpSREY+PGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPjxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PjxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz48ZGM6dGl0bGU+PC9kYzp0aXRsZT48L2NjOldvcms+PC9yZGY6UkRGPjwvbWV0YWRhdGE+PGRlZnMKICAgICBpZD0iZGVmczYiPjxjbGlwUGF0aAogICAgICAgY2xpcFBhdGhVbml0cz0idXNlclNwYWNlT25Vc2UiCiAgICAgICBpZD0iY2xpcFBhdGgxOCI+PHBhdGgKICAgICAgICAgZD0iTSAwLDEyMiBIIDc2OC41MDUgViAwIEggMCBaIgogICAgICAgICBpZD0icGF0aDE2IgogICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBwYWdlY29sb3I9IiMwMDAwMDAiCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiCiAgICAgYm9yZGVyb3BhY2l0eT0iMSIKICAgICBvYmplY3R0b2xlcmFuY2U9IjEwIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwIgogICAgIGd1aWRldG9sZXJhbmNlPSIxMCIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTg2NCIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMDI0IgogICAgIGlkPSJuYW1lZHZpZXc0IgogICAgIHNob3dncmlkPSJmYWxzZSIKICAgICBpbmtzY2FwZTp6b29tPSIwLjcyMDIyOTUzIgogICAgIGlua3NjYXBlOmN4PSI3ODguNzIwNTgiCiAgICAgaW5rc2NhcGU6Y3k9Ii04NC40NDIyMDQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjU2IgogICAgIGlua3NjYXBlOndpbmRvdy15PSIyNyIKICAgICBpbmtzY2FwZTp3aW5kb3ctbWF4aW1pemVkPSIxIgogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9ImcxMCIKICAgICBmaXQtbWFyZ2luLXRvcD0iMCIKICAgICBmaXQtbWFyZ2luLWxlZnQ9IjAiCiAgICAgZml0LW1hcmdpbi1yaWdodD0iMCIKICAgICBmaXQtbWFyZ2luLWJvdHRvbT0iMCIgLz48ZwogICAgIGlkPSJnMTAiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpbmtzY2FwZTpsYWJlbD0iYXJlbGxlLWxvZ28iCiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoMS4zMzMzMzMzLDAsMCwtMS4zMzMzMzMzLC0zLjY1MDgxNDEsMTU5LjMyNzc3KSI+PGcKICAgICAgIGlkPSJnMTIiPjxnCiAgICAgICAgIGlkPSJnMTQiCiAgICAgICAgIGNsaXAtcGF0aD0idXJsKCNjbGlwUGF0aDE4KSI+PGcKICAgICAgICAgICBpZD0iZzIwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwOS42Njg5LDY3LjE2MzEpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMS41OTgsMi42NTMgLTcuMjkyLDUuOTg3IC04LjgwOCwxNS4zMDcgLTAuODA0LDQuOTQ5IDAuNTY5LDcuOTk0IDEuOTU1LDEyLjE4MSAxLjQ4OCw0LjQ3MSAtMS4wNTksNy4yNDQgLTUuMzgsNy40MDggLTguNjQ0LDAuMzMgLTMxLjkwNywtMi4yMTEgLTU3LjYzOCwxMS4yODggLTEwLjA2Niw1LjI4IC0xMC43NTksMy45MjIgLTcuMDc2LC0yLjU2NiA1LjY0NSwtOS45NTIgMTkuMzc4LC0xNS4zMzQgMzUuNjg3LC0xOC4wMDUgLTQ1LjM5Nyw5LjgyNSAtMTcuMTY2LC0yLjE3NCA1LjA5OCwtNy4xMjcgLTQxLjA1Niw4LjQ4NCAtMTUuNjI1LC0zLjAzNSA0LjQ0OCwtNi43MTEgLTM4LjQ3NSw2LjgyMSAtMTEuMzg3LC0yLjk3OCAxLjQ3NywtNS40MjggMy44NjIsLTAuNzM2IDEyLjM5MSwtMTMuMDI2IDE4LjA1NCwtMTAuMjczIDYuMzE3LDMuMDY5IDQuNDg4LDAuNjg5IDcuNDc5LDIuMDI2IEMgMC41NjYsMC40NTggMCwwIDAsMCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNhYTExOGU7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDIyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzI0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwOS42Njg5LDY3LjE2MzEpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMS41OTgsMi42NTMgLTcuMjkyLDUuOTg3IC04LjgwOCwxNS4zMDcgLTAuODA0LDQuOTQ5IDAuNTY5LDcuOTk0IDEuOTU1LDEyLjE4MSAxLjQ4OCw0LjQ3MSAtMS4wNTksNy4yNDQgLTUuMzgsNy40MDggLTguNjQ0LDAuMzMgLTMxLjkwNywtMi4yMTEgLTU3LjYzOCwxMS4yODggLTEwLjA2Niw1LjI4IC0xMC43NTksMy45MjIgLTcuMDc2LC0yLjU2NiA1LjY0NSwtOS45NTIgMTkuMzc4LC0xNS4zMzQgMzUuNjg3LC0xOC4wMDUgLTQ1LjM5Nyw5LjgyNSAtMTcuMTY2LC0yLjE3NCA1LjA5OCwtNy4xMjcgLTQxLjA1Niw4LjQ4NCAtMTUuNjI1LC0zLjAzNSA0LjQ0OCwtNi43MTEgLTM4LjQ3NSw2LjgyMSAtMTEuMzg3LC0yLjk3OCAxLjQ3NywtNS40MjggMy44NjIsLTAuNzM2IDEyLjM5MSwtMTMuMDI2IDE4LjA1NCwtMTAuMjczIDYuMzE3LDMuMDY5IDQuNDg4LDAuNjg5IDcuNDc5LDIuMDI2IEMgMC41NjYsMC40NTggMCwwIDAsMCBaIgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MS4wMzEwMDAwMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoMjYiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnMjgiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTM3Ljg2MzMsNDMuMDIzNCkiPjxwYXRoCiAgICAgICAgICAgICBkPSJtIDAsMCBjIDAsLTE2LjcxMiAtMTMuNTQ4LC0zMC4yNjIgLTMwLjI2MywtMzAuMjYyIC0xNi43MTUsMCAtMzAuMjYzLDEzLjU1IC0zMC4yNjMsMzAuMjYyIDAsMTYuNzE0IDEzLjU0OCwzMC4yNjQgMzAuMjYzLDMwLjI2NCBDIC0xMy41NDgsMzAuMjY0IDAsMTYuNzE0IDAsMCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDMwIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzMyIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEzNy44NjMzLDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjMsLTMwLjI2MiAtMTYuNzE1LDAgLTMwLjI2MywxMy41NSAtMzAuMjYzLDMwLjI2MiAwLDE2LjcxNCAxMy41NDgsMzAuMjY0IDMwLjI2MywzMC4yNjQgQyAtMTMuNTQ4LDMwLjI2NCAwLDE2LjcxNCAwLDAgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDM0IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzM2IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyNi4xNTcyLDEwLjQzMjYpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgMTMuNDUyLDYzLjU4NiBIIDI0LjQ1OCBMIDIyLjAxMiwtMS4yMjIgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDM4IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzQwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0MCw3My42NzUzKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Ik0gMCwwIC0xMy4wODYsLTYxLjU1MyIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDQyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzQ0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIwOC43ODcxLDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjUsLTMwLjI2MiAtMTYuNzEsMCAtMzAuMjYsMTMuNTUgLTMwLjI2LDMwLjI2MiAwLDE2LjcxNCAxMy41NSwzMC4yNjQgMzAuMjYsMzAuMjY0IEMgLTEzLjU0OCwzMC4yNjQgMCwxNi43MTQgMCwwIFoiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg0NiIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc0OCIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNTAuNjE1Miw2NC4yMzczKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIDguNTU4LC03LjMzOSAzOS4xMzIsMi40NDcgMTEuMDA2LDMuNjY5IDQuODksLTMxLjc5MyAtMjMuMjMyLC0yNC40NTggSCAxNC42NzMgbCAtMjMuODQ4LDI1LjY3OSB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoNTAiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNTIiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTU3LjExOTEsNzMuNjc1MykiPjxwYXRoCiAgICAgICAgICAgICBkPSJNIDAsMCAtMTMuMDgzLC02MS41NTMiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg1NCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc1NiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzMDIuNDA1MywxMTIuODcwMSkiPjxwYXRoCiAgICAgICAgICAgICBkPSJNIDAsMCAtMjEuNDEzLC0xMDAuNzQ4IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2FhMTE4ZTtzdHJva2Utd2lkdGg6My44MDUwMDAwNztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoNTgiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNjAiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzIxLjk2ODgsMTEyLjg3MDEpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgLTIxLjQxMSwtMTAwLjc0OCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDYyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzY0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM4Ni4wOTc3LDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjIsLTMwLjI2MiAtMTYuNzE3LDAgLTMwLjI2NCwxMy41NSAtMzAuMjY0LDMwLjI2MiAwLDE2LjcxNCAxMy41NDcsMzAuMjY0IDMwLjI2NCwzMC4yNjQgQyAtMTMuNTQ4LDMwLjI2NCAwLDE2LjcxNCAwLDAgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDY2IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzY4IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM3My4yODMyLDY4LjM1MjUpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgLTM2LjAyOSwtNDkuNTg2IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2FhMTE4ZTtzdHJva2Utd2lkdGg6My44MDUwMDAwNztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoNzAiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNzIiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjcyLjM3NCw0My4wMjM0KSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIGMgMCwtMTYuNzEyIC0xMy41NDksLTMwLjI2MiAtMzAuMjYzLC0zMC4yNjIgLTE2LjcxMywwIC0zMC4yNjEsMTMuNTUgLTMwLjI2MSwzMC4yNjIgMCwxNi43MTQgMTMuNTQ4LDMwLjI2NCAzMC4yNjEsMzAuMjY0IEMgLTEzLjU0OSwzMC4yNjQgMCwxNi43MTQgMCwwIFoiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg3NCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc3NiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNTkuNTU5Niw2OC4zNTI1KSI+PHBhdGgKICAgICAgICAgICAgIGQ9Ik0gMCwwIC0zNi4wMjYsLTQ5LjU4NiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDc4IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzgwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI3NC43MzM0LDE3Ljc3MDUpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgLTE4LjM0Miw2LjExNCAxLjgzNiwzOC43MjEgNC44OSw3LjU0MiAxNC4wNjIsLTEyLjAyNCB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoODIiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnODQiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzg4LjI1MjksMTcuNTY1OSkiPjxwYXRoCiAgICAgICAgICAgICBkPSJtIDAsMCAtMTguMzQzLDYuMTE0IDEuODM3LDM4LjcyMSA0Ljg4OSw3LjU0MyAxNC4wNjMsLTEyLjAyNCB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoODYiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnODgiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOTcuMjYwNyw3Mi44NjUyKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIGMgLTIuMTIxLDIuNzgyIC04LjUzOSw1LjIzOSAtMTEuMzksMTUuNTIxIC0xLjUxNCw1LjQ1OCAtMC4zNDgsOS4wNDggMC42OTcsMTMuOTIgMS4xMTcsNS4yMDUgLTIuMDg4LDguMDA0IC02Ljk2MSw3LjY1NiAtOS43NDQsLTAuNjk2IC0zNS41NTksLTYuNDE4IC02Ni4xMjIsNS41NjkgLTExLjk1Niw0LjY4OCAtMTAuNzY1LDQuMDY4IC03LjYzLC0zLjc1NSA0Ljk4NCwtMTIuNDM5IDI2LjUwNywtMjEuNzg5IDQ1LjE1MiwtMjIuNzc3IC0xMC4xMDYsMC45MDkgLTIyLjE0LDMuMTI5IC0yNS41MDIsNC4wMDEgLTEzLjUsMy41IDcsLTEzLjUgMzQuNTAyLC0xNC4yNTEgLTcuNDg0LDAuMjM3IC0xOS41OTgsMS40ODYgLTIyLjUsMi4yNSAtMTksNSA0LC0xMS45OTkgMzIuMjUsLTEzLjUwMiA0LjQzNiwtMC4yMzYgMTUuNzMxLC02Ljg5MiAyMS44NjksLTMuMjk1IDMuODM0LDIuMjQ2IDEuMzc5LDAuODAxIDMuODM0LDIuMjQ2IEMgMy44ODgsLTMuMDY4IDAsMCAwLDAiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDojNzdkMWM4O2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIgogICAgICAgICAgICAgaWQ9InBhdGg5MCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc5MiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5Ny4yNjA3LDcyLjg2NTIpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMi4xMjEsMi43ODIgLTguNTM5LDUuMjM5IC0xMS4zOSwxNS41MjEgLTEuNTE0LDUuNDU4IC0wLjM0OCw5LjA0OCAwLjY5NywxMy45MiAxLjExNyw1LjIwNSAtMi4wODgsOC4wMDQgLTYuOTYxLDcuNjU2IC05Ljc0NCwtMC42OTYgLTM1LjU1OSwtNi40MTggLTY2LjEyMiw1LjU2OSAtMTEuOTU2LDQuNjg4IC0xMC43NjUsNC4wNjggLTcuNjMsLTMuNzU1IDQuOTg0LC0xMi40MzkgMjYuNTA3LC0yMS43ODkgNDUuMTUyLC0yMi43NzcgLTEwLjEwNiwwLjkwOSAtMjIuMTQsMy4xMjkgLTI1LjUwMiw0LjAwMSAtMTMuNSwzLjUgNywtMTMuNSAzNC41MDIsLTE0LjI1MSAtNy40ODQsMC4yMzcgLTE5LjU5OCwxLjQ4NiAtMjIuNSwyLjI1IC0xOSw1IDQsLTExLjk5OSAzMi4yNSwtMTMuNTAyIDQuNDM2LC0wLjIzNiAxNS43MzEsLTYuODkyIDIxLjg2OSwtMy4yOTUgMy44MzQsMi4yNDYgMS4zNzksMC44MDEgMy44MzQsMi4yNDYgQyAzLjg4OCwtMy4wNjggMCwwIDAsMCBaIgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoOTQiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48L2c+PC9nPjx0ZXh0CiAgICAgICB0cmFuc2Zvcm09Im1hdHJpeCgxLDAsMCwtMSwzODkuNDk5LDYyLjk5NjEpIgogICAgICAgc3R5bGU9ImZvbnQtdmFyaWFudDpub3JtYWw7Zm9udC13ZWlnaHQ6bm9ybWFsO2ZvbnQtc3RyZXRjaDpub3JtYWw7Zm9udC1zaXplOjE4cHg7Zm9udC1mYW1pbHk6J1RyZWJ1Y2hldCBNUyc7LWlua3NjYXBlLWZvbnQtc3BlY2lmaWNhdGlvbjpUcmVidWNoZXRNUzt3cml0aW5nLW1vZGU6bHItdGI7ZmlsbDojYWExMThlO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIgogICAgICAgaWQ9InRleHQ5OCI+PHRzcGFuCiAgICAgICAgIHg9IjAiCiAgICAgICAgIHk9IjAiCiAgICAgICAgIGlkPSJ0c3Bhbjk2Ij7CrjwvdHNwYW4+PC90ZXh0Pgo8L2c+PC9zdmc+Cg=="},59:t=>{t.exports="data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiCiAgIHhtbG5zOmlua3NjYXBlPSJodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy9uYW1lc3BhY2VzL2lua3NjYXBlIgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmcyIgogICB4bWw6c3BhY2U9InByZXNlcnZlIgogICB3aWR0aD0iNTM2LjM2NDc1IgogICBoZWlnaHQ9IjE1MC4zMTAwMyIKICAgdmlld0JveD0iMCAwIDUzNi4zNjQ3MyAxNTAuMzEwMDMiCiAgIHNvZGlwb2RpOmRvY25hbWU9ImFyZWxsZS1sb2dvLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMC45Mi41ICgyMDYwZWMxZjlmLCAyMDIwLTA0LTA4KSI+PG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhOCI+PHJkZjpSREY+PGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPjxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PjxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz48ZGM6dGl0bGU+PC9kYzp0aXRsZT48L2NjOldvcms+PC9yZGY6UkRGPjwvbWV0YWRhdGE+PGRlZnMKICAgICBpZD0iZGVmczYiPjxjbGlwUGF0aAogICAgICAgY2xpcFBhdGhVbml0cz0idXNlclNwYWNlT25Vc2UiCiAgICAgICBpZD0iY2xpcFBhdGgxOCI+PHBhdGgKICAgICAgICAgZD0iTSAwLDEyMiBIIDc2OC41MDUgViAwIEggMCBaIgogICAgICAgICBpZD0icGF0aDE2IgogICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiCiAgICAgYm9yZGVyb3BhY2l0eT0iMSIKICAgICBvYmplY3R0b2xlcmFuY2U9IjEwIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwIgogICAgIGd1aWRldG9sZXJhbmNlPSIxMCIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTg2NCIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMDI0IgogICAgIGlkPSJuYW1lZHZpZXc0IgogICAgIHNob3dncmlkPSJmYWxzZSIKICAgICBpbmtzY2FwZTp6b29tPSIwLjcyMDIyOTUzIgogICAgIGlua3NjYXBlOmN4PSI3ODguNzIwNTgiCiAgICAgaW5rc2NhcGU6Y3k9Ii04NC40NDIyMDQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjU2IgogICAgIGlua3NjYXBlOndpbmRvdy15PSIyNyIKICAgICBpbmtzY2FwZTp3aW5kb3ctbWF4aW1pemVkPSIxIgogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9ImcxMCIKICAgICBmaXQtbWFyZ2luLXRvcD0iMCIKICAgICBmaXQtbWFyZ2luLWxlZnQ9IjAiCiAgICAgZml0LW1hcmdpbi1yaWdodD0iMCIKICAgICBmaXQtbWFyZ2luLWJvdHRvbT0iMCIgLz48ZwogICAgIGlkPSJnMTAiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpbmtzY2FwZTpsYWJlbD0iYXJlbGxlLWxvZ28iCiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoMS4zMzMzMzMzLDAsMCwtMS4zMzMzMzMzLC0zLjY1MDgxNDEsMTU5LjMyNzc3KSI+PGcKICAgICAgIGlkPSJnMTIiPjxnCiAgICAgICAgIGlkPSJnMTQiCiAgICAgICAgIGNsaXAtcGF0aD0idXJsKCNjbGlwUGF0aDE4KSI+PGcKICAgICAgICAgICBpZD0iZzIwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwOS42Njg5LDY3LjE2MzEpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMS41OTgsMi42NTMgLTcuMjkyLDUuOTg3IC04LjgwOCwxNS4zMDcgLTAuODA0LDQuOTQ5IDAuNTY5LDcuOTk0IDEuOTU1LDEyLjE4MSAxLjQ4OCw0LjQ3MSAtMS4wNTksNy4yNDQgLTUuMzgsNy40MDggLTguNjQ0LDAuMzMgLTMxLjkwNywtMi4yMTEgLTU3LjYzOCwxMS4yODggLTEwLjA2Niw1LjI4IC0xMC43NTksMy45MjIgLTcuMDc2LC0yLjU2NiA1LjY0NSwtOS45NTIgMTkuMzc4LC0xNS4zMzQgMzUuNjg3LC0xOC4wMDUgLTQ1LjM5Nyw5LjgyNSAtMTcuMTY2LC0yLjE3NCA1LjA5OCwtNy4xMjcgLTQxLjA1Niw4LjQ4NCAtMTUuNjI1LC0zLjAzNSA0LjQ0OCwtNi43MTEgLTM4LjQ3NSw2LjgyMSAtMTEuMzg3LC0yLjk3OCAxLjQ3NywtNS40MjggMy44NjIsLTAuNzM2IDEyLjM5MSwtMTMuMDI2IDE4LjA1NCwtMTAuMjczIDYuMzE3LDMuMDY5IDQuNDg4LDAuNjg5IDcuNDc5LDIuMDI2IEMgMC41NjYsMC40NTggMCwwIDAsMCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNhYTExOGU7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDIyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzI0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwOS42Njg5LDY3LjE2MzEpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMS41OTgsMi42NTMgLTcuMjkyLDUuOTg3IC04LjgwOCwxNS4zMDcgLTAuODA0LDQuOTQ5IDAuNTY5LDcuOTk0IDEuOTU1LDEyLjE4MSAxLjQ4OCw0LjQ3MSAtMS4wNTksNy4yNDQgLTUuMzgsNy40MDggLTguNjQ0LDAuMzMgLTMxLjkwNywtMi4yMTEgLTU3LjYzOCwxMS4yODggLTEwLjA2Niw1LjI4IC0xMC43NTksMy45MjIgLTcuMDc2LC0yLjU2NiA1LjY0NSwtOS45NTIgMTkuMzc4LC0xNS4zMzQgMzUuNjg3LC0xOC4wMDUgLTQ1LjM5Nyw5LjgyNSAtMTcuMTY2LC0yLjE3NCA1LjA5OCwtNy4xMjcgLTQxLjA1Niw4LjQ4NCAtMTUuNjI1LC0zLjAzNSA0LjQ0OCwtNi43MTEgLTM4LjQ3NSw2LjgyMSAtMTEuMzg3LC0yLjk3OCAxLjQ3NywtNS40MjggMy44NjIsLTAuNzM2IDEyLjM5MSwtMTMuMDI2IDE4LjA1NCwtMTAuMjczIDYuMzE3LDMuMDY5IDQuNDg4LDAuNjg5IDcuNDc5LDIuMDI2IEMgMC41NjYsMC40NTggMCwwIDAsMCBaIgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2ZmZmZmZjtzdHJva2Utd2lkdGg6MS4wMzEwMDAwMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoMjYiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnMjgiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTM3Ljg2MzMsNDMuMDIzNCkiPjxwYXRoCiAgICAgICAgICAgICBkPSJtIDAsMCBjIDAsLTE2LjcxMiAtMTMuNTQ4LC0zMC4yNjIgLTMwLjI2MywtMzAuMjYyIC0xNi43MTUsMCAtMzAuMjYzLDEzLjU1IC0zMC4yNjMsMzAuMjYyIDAsMTYuNzE0IDEzLjU0OCwzMC4yNjQgMzAuMjYzLDMwLjI2NCBDIC0xMy41NDgsMzAuMjY0IDAsMTYuNzE0IDAsMCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDMwIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzMyIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEzNy44NjMzLDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjMsLTMwLjI2MiAtMTYuNzE1LDAgLTMwLjI2MywxMy41NSAtMzAuMjYzLDMwLjI2MiAwLDE2LjcxNCAxMy41NDgsMzAuMjY0IDMwLjI2MywzMC4yNjQgQyAtMTMuNTQ4LDMwLjI2NCAwLDE2LjcxNCAwLDAgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDM0IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzM2IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyNi4xNTcyLDEwLjQzMjYpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgMTMuNDUyLDYzLjU4NiBIIDI0LjQ1OCBMIDIyLjAxMiwtMS4yMjIgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDM4IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzQwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0MCw3My42NzUzKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Ik0gMCwwIC0xMy4wODYsLTYxLjU1MyIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDQyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzQ0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIwOC43ODcxLDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjUsLTMwLjI2MiAtMTYuNzEsMCAtMzAuMjYsMTMuNTUgLTMwLjI2LDMwLjI2MiAwLDE2LjcxNCAxMy41NSwzMC4yNjQgMzAuMjYsMzAuMjY0IEMgLTEzLjU0OCwzMC4yNjQgMCwxNi43MTQgMCwwIFoiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg0NiIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc0OCIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNTAuNjE1Miw2NC4yMzczKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIDguNTU4LC03LjMzOSAzOS4xMzIsMi40NDcgMTEuMDA2LDMuNjY5IDQuODksLTMxLjc5MyAtMjMuMjMyLC0yNC40NTggSCAxNC42NzMgbCAtMjMuODQ4LDI1LjY3OSB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoNTAiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNTIiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTU3LjExOTEsNzMuNjc1MykiPjxwYXRoCiAgICAgICAgICAgICBkPSJNIDAsMCAtMTMuMDgzLC02MS41NTMiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg1NCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc1NiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzMDIuNDA1MywxMTIuODcwMSkiPjxwYXRoCiAgICAgICAgICAgICBkPSJNIDAsMCAtMjEuNDEzLC0xMDAuNzQ4IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2FhMTE4ZTtzdHJva2Utd2lkdGg6My44MDUwMDAwNztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoNTgiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNjAiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzIxLjk2ODgsMTEyLjg3MDEpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgLTIxLjQxMSwtMTAwLjc0OCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDYyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzY0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM4Ni4wOTc3LDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjIsLTMwLjI2MiAtMTYuNzE3LDAgLTMwLjI2NCwxMy41NSAtMzAuMjY0LDMwLjI2MiAwLDE2LjcxNCAxMy41NDcsMzAuMjY0IDMwLjI2NCwzMC4yNjQgQyAtMTMuNTQ4LDMwLjI2NCAwLDE2LjcxNCAwLDAgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDY2IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzY4IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM3My4yODMyLDY4LjM1MjUpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgLTM2LjAyOSwtNDkuNTg2IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2FhMTE4ZTtzdHJva2Utd2lkdGg6My44MDUwMDAwNztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoNzAiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNzIiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjcyLjM3NCw0My4wMjM0KSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIGMgMCwtMTYuNzEyIC0xMy41NDksLTMwLjI2MiAtMzAuMjYzLC0zMC4yNjIgLTE2LjcxMywwIC0zMC4yNjEsMTMuNTUgLTMwLjI2MSwzMC4yNjIgMCwxNi43MTQgMTMuNTQ4LDMwLjI2NCAzMC4yNjEsMzAuMjY0IEMgLTEzLjU0OSwzMC4yNjQgMCwxNi43MTQgMCwwIFoiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg3NCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc3NiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNTkuNTU5Niw2OC4zNTI1KSI+PHBhdGgKICAgICAgICAgICAgIGQ9Ik0gMCwwIC0zNi4wMjYsLTQ5LjU4NiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDc4IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzgwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI3NC43MzM0LDE3Ljc3MDUpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgLTE4LjM0Miw2LjExNCAxLjgzNiwzOC43MjEgNC44OSw3LjU0MiAxNC4wNjIsLTEyLjAyNCB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoODIiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnODQiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzg4LjI1MjksMTcuNTY1OSkiPjxwYXRoCiAgICAgICAgICAgICBkPSJtIDAsMCAtMTguMzQzLDYuMTE0IDEuODM3LDM4LjcyMSA0Ljg4OSw3LjU0MyAxNC4wNjMsLTEyLjAyNCB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoODYiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnODgiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOTcuMjYwNyw3Mi44NjUyKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIGMgLTIuMTIxLDIuNzgyIC04LjUzOSw1LjIzOSAtMTEuMzksMTUuNTIxIC0xLjUxNCw1LjQ1OCAtMC4zNDgsOS4wNDggMC42OTcsMTMuOTIgMS4xMTcsNS4yMDUgLTIuMDg4LDguMDA0IC02Ljk2MSw3LjY1NiAtOS43NDQsLTAuNjk2IC0zNS41NTksLTYuNDE4IC02Ni4xMjIsNS41NjkgLTExLjk1Niw0LjY4OCAtMTAuNzY1LDQuMDY4IC03LjYzLC0zLjc1NSA0Ljk4NCwtMTIuNDM5IDI2LjUwNywtMjEuNzg5IDQ1LjE1MiwtMjIuNzc3IC0xMC4xMDYsMC45MDkgLTIyLjE0LDMuMTI5IC0yNS41MDIsNC4wMDEgLTEzLjUsMy41IDcsLTEzLjUgMzQuNTAyLC0xNC4yNTEgLTcuNDg0LDAuMjM3IC0xOS41OTgsMS40ODYgLTIyLjUsMi4yNSAtMTksNSA0LC0xMS45OTkgMzIuMjUsLTEzLjUwMiA0LjQzNiwtMC4yMzYgMTUuNzMxLC02Ljg5MiAyMS44NjksLTMuMjk1IDMuODM0LDIuMjQ2IDEuMzc5LDAuODAxIDMuODM0LDIuMjQ2IEMgMy44ODgsLTMuMDY4IDAsMCAwLDAiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDojNzdkMWM4O2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIgogICAgICAgICAgICAgaWQ9InBhdGg5MCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc5MiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5Ny4yNjA3LDcyLjg2NTIpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMi4xMjEsMi43ODIgLTguNTM5LDUuMjM5IC0xMS4zOSwxNS41MjEgLTEuNTE0LDUuNDU4IC0wLjM0OCw5LjA0OCAwLjY5NywxMy45MiAxLjExNyw1LjIwNSAtMi4wODgsOC4wMDQgLTYuOTYxLDcuNjU2IC05Ljc0NCwtMC42OTYgLTM1LjU1OSwtNi40MTggLTY2LjEyMiw1LjU2OSAtMTEuOTU2LDQuNjg4IC0xMC43NjUsNC4wNjggLTcuNjMsLTMuNzU1IDQuOTg0LC0xMi40MzkgMjYuNTA3LC0yMS43ODkgNDUuMTUyLC0yMi43NzcgLTEwLjEwNiwwLjkwOSAtMjIuMTQsMy4xMjkgLTI1LjUwMiw0LjAwMSAtMTMuNSwzLjUgNywtMTMuNSAzNC41MDIsLTE0LjI1MSAtNy40ODQsMC4yMzcgLTE5LjU5OCwxLjQ4NiAtMjIuNSwyLjI1IC0xOSw1IDQsLTExLjk5OSAzMi4yNSwtMTMuNTAyIDQuNDM2LC0wLjIzNiAxNS43MzEsLTYuODkyIDIxLjg2OSwtMy4yOTUgMy44MzQsMi4yNDYgMS4zNzksMC44MDEgMy44MzQsMi4yNDYgQyAzLjg4OCwtMy4wNjggMCwwIDAsMCBaIgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2ZmZmZmZjtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoOTQiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48L2c+PC9nPjx0ZXh0CiAgICAgICB0cmFuc2Zvcm09Im1hdHJpeCgxLDAsMCwtMSwzODkuNDk5LDYyLjk5NjEpIgogICAgICAgc3R5bGU9ImZvbnQtdmFyaWFudDpub3JtYWw7Zm9udC13ZWlnaHQ6bm9ybWFsO2ZvbnQtc3RyZXRjaDpub3JtYWw7Zm9udC1zaXplOjE4cHg7Zm9udC1mYW1pbHk6J1RyZWJ1Y2hldCBNUyc7LWlua3NjYXBlLWZvbnQtc3BlY2lmaWNhdGlvbjpUcmVidWNoZXRNUzt3cml0aW5nLW1vZGU6bHItdGI7ZmlsbDojYWExMThlO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIgogICAgICAgaWQ9InRleHQ5OCI+PHRzcGFuCiAgICAgICAgIHg9IjAiCiAgICAgICAgIHk9IjAiCiAgICAgICAgIGlkPSJ0c3Bhbjk2Ij7CrjwvdHNwYW4+PC90ZXh0Pgo8L2c+PC9zdmc+"},285:t=>{t.exports="data:image/vnd.microsoft.icon;charset=utf-8;base64,AAABAAEAEBAAAAEACABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAQAEAAAAAAAAAAAAAAAEAAAAAAADNm9sA6urFANvamwD7+/MA5cLuAPX04gDNzHUA+/v1APT04QDQz34AzMtxAOHhrQDe3aQA7+/TANbVjQDo6MAA/v79AM7NeQDn5rsA8/PdAPLy2wDi4a4A5uW6AO3tzgD5+fAA/v78APn57gD4+OwA9vbmAOXktgDc3J8A9fXkAOHgrADs2PEA5eW4AI4hqwDLym8A////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIyMlIyUlIyMlIyUjJSMjJQAjISMhJSMlJSMEIwQjISUlISMhIyUhIwAhIyEjISMAJSMjJSMjJSMjJSMlIyUjIyUlJSUlJSUlJSUjJSMlJSUlJSUlJSUlJSUlJSUcEiQdJSUlJSUlJRkNICQkJCQkJCUlJSUlByQkJCQkJCQkJAolJSUlGiIiIiIiIiQkJCQXJSUlJR8iAiQkJCQkJCQOJSUlJSQkBiQkJCQkJCQkFiUlJRAiIiIiIiQkJCQkJA8lJQMiAiQkJCQkJCQkJCQVJRgRJCQkJCQkJCQkJCQkDCUeJCQGAgEIBQcbBRMBAQMlCQsUJSUlJSUlJSUlJSUlJQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},587:t=>{t.exports="data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIyLjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMzQuOSAzMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTM0LjkgMzA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojYmNiY2JjO30KCS5zdDF7ZmlsbDojNjZDQzAwO30KPC9zdHlsZT4KPGc+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTYuMywyMS42aC0yLjR2LTEzaDIuNFYyMS42eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTIxLjMsMTMuNWMwLjItMC4yLDAuNC0wLjQsMC42LTAuNWMwLjItMC4yLDAuNC0wLjMsMC43LTAuNGMwLjItMC4xLDAuNS0wLjIsMC43LTAuM2MwLjMtMC4xLDAuNi0wLjEsMC45LTAuMQoJCWMwLjUsMCwxLDAuMSwxLjMsMC4zczAuNywwLjQsMSwwLjdzMC41LDAuNywwLjYsMS4xYzAuMSwwLjQsMC4yLDAuOSwwLjIsMS40djUuOWgtMi4ydi01LjljMC0wLjYtMC4xLTEtMC40LTEuM1MyNCwxNCwyMy41LDE0CgkJYy0wLjQsMC0wLjcsMC4xLTEuMSwwLjNjLTAuMywwLjItMC43LDAuNC0xLDAuN3Y2LjdoLTIuMnYtOS4yaDEuNGMwLjMsMCwwLjUsMC4xLDAuNiwwLjRMMjEuMywxMy41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTMyLjEsOC4ydjEzLjRoLTIuMlY4LjJIMzIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0zNy4zLDkuN2MwLDAuMiwwLDAuNC0wLjEsMC41cy0wLjIsMC4zLTAuMywwLjRzLTAuMywwLjItMC41LDAuM2MtMC4yLDAuMS0wLjQsMC4xLTAuNiwwLjEKCQljLTAuMiwwLTAuNCwwLTAuNS0wLjFjLTAuMi0wLjEtMC4zLTAuMi0wLjQtMC4zcy0wLjItMC4zLTAuMy0wLjRjLTAuMS0wLjItMC4xLTAuMy0wLjEtMC41YzAtMC4yLDAtMC40LDAuMS0wLjYKCQljMC4xLTAuMiwwLjItMC4zLDAuMy0wLjVzMC4zLTAuMiwwLjQtMC4zczAuNC0wLjEsMC41LTAuMWMwLjIsMCwwLjQsMCwwLjYsMC4xYzAuMiwwLjEsMC4zLDAuMiwwLjUsMC4zczAuMiwwLjMsMC4zLDAuNQoJCVMzNy4zLDkuNSwzNy4zLDkuN3ogTTM2LjksMTIuNHY5LjJoLTIuMnYtOS4ySDM2Ljl6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDEuNywxMy41YzAuMi0wLjIsMC40LTAuNCwwLjYtMC41YzAuMi0wLjIsMC40LTAuMywwLjctMC40YzAuMi0wLjEsMC41LTAuMiwwLjctMC4zYzAuMy0wLjEsMC42LTAuMSwwLjktMC4xCgkJYzAuNSwwLDEsMC4xLDEuMywwLjNjMC40LDAuMiwwLjcsMC40LDEsMC43YzAuMywwLjMsMC41LDAuNywwLjYsMS4xczAuMiwwLjksMC4yLDEuNHY1LjloLTIuMnYtNS45YzAtMC42LTAuMS0xLTAuNC0xLjMKCQljLTAuMy0wLjMtMC43LTAuNS0xLjItMC41Yy0wLjQsMC0wLjcsMC4xLTEuMSwwLjNjLTAuMywwLjItMC43LDAuNC0xLDAuN3Y2LjdoLTIuMnYtOS4yaDEuNGMwLjMsMCwwLjUsMC4xLDAuNiwwLjRMNDEuNywxMy41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTUxLjksMTcuM2MwLDAuNSwwLjEsMC45LDAuMywxLjJjMC4xLDAuMywwLjMsMC42LDAuNSwwLjlzMC41LDAuNCwwLjgsMC41czAuNiwwLjIsMSwwLjJjMC40LDAsMC43LDAsMC45LTAuMQoJCXMwLjUtMC4yLDAuNy0wLjNjMC4yLTAuMSwwLjQtMC4yLDAuNS0wLjNjMC4xLTAuMSwwLjMtMC4xLDAuNC0wLjFjMC4yLDAsMC4zLDAuMSwwLjQsMC4ybDAuNiwwLjhjLTAuMiwwLjMtMC41LDAuNS0wLjgsMC43CgkJcy0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJzLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM2MtMC42LTAuMi0xLTAuNS0xLjQtMC45cy0wLjctMC45LTEtMS41CgkJYy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40YzAuNC0wLjQsMC44LTAuNywxLjQtMWMwLjUtMC4yLDEuMi0wLjQsMS45LTAuNAoJCWMwLjYsMCwxLjEsMC4xLDEuNiwwLjNjMC41LDAuMiwwLjksMC41LDEuMywwLjhjMC40LDAuNCwwLjYsMC44LDAuOCwxLjNjMC4yLDAuNSwwLjMsMS4xLDAuMywxLjhjMCwwLjMsMCwwLjYtMC4xLDAuNwoJCWMtMC4xLDAuMS0wLjIsMC4yLTAuNCwwLjJINTEuOXogTTU2LjEsMTUuOWMwLTAuMywwLTAuNi0wLjEtMC44Yy0wLjEtMC4zLTAuMi0wLjUtMC40LTAuN2MtMC4yLTAuMi0wLjQtMC4zLTAuNi0wLjUKCQljLTAuMi0wLjEtMC41LTAuMi0wLjktMC4yYy0wLjYsMC0xLjEsMC4yLTEuNSwwLjVjLTAuNCwwLjQtMC42LDAuOS0wLjcsMS42SDU2LjF6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNzYuNSw4LjZsLTUuMywxM2gtMi4ybC01LjMtMTNoMS45YzAuMiwwLDAuNCwwLjEsMC41LDAuMnMwLjIsMC4yLDAuMywwLjRsMy4xLDcuOWMwLjEsMC4zLDAuMiwwLjUsMC4zLDAuOQoJCWMwLjEsMC4zLDAuMiwwLjYsMC4zLDFjMC4xLTAuMywwLjEtMC43LDAuMi0xczAuMi0wLjYsMC4zLTAuOWwzLjEtNy45YzAtMC4xLDAuMS0wLjMsMC4zLTAuNGMwLjEtMC4xLDAuMy0wLjIsMC41LTAuMkg3Ni41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTgwLjcsOS43YzAsMC4yLDAsMC40LTAuMSwwLjVjLTAuMSwwLjItMC4yLDAuMy0wLjMsMC40Yy0wLjEsMC4xLTAuMywwLjItMC41LDAuM2MtMC4yLDAuMS0wLjQsMC4xLTAuNiwwLjEKCQljLTAuMiwwLTAuNCwwLTAuNS0wLjFjLTAuMi0wLjEtMC4zLTAuMi0wLjQtMC4zcy0wLjItMC4zLTAuMy0wLjRzLTAuMS0wLjMtMC4xLTAuNWMwLTAuMiwwLTAuNCwwLjEtMC42czAuMi0wLjMsMC4zLTAuNQoJCXMwLjMtMC4yLDAuNC0wLjNzMC40LTAuMSwwLjUtMC4xYzAuMiwwLDAuNCwwLDAuNiwwLjFzMC4zLDAuMiwwLjUsMC4zYzAuMSwwLjEsMC4yLDAuMywwLjMsMC41QzgwLjcsOS4zLDgwLjcsOS41LDgwLjcsOS43egoJCSBNODAuNCwxMi40djkuMmgtMi4ydi05LjJIODAuNHoiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik04NC43LDE3LjNjMCwwLjUsMC4xLDAuOSwwLjMsMS4yYzAuMSwwLjMsMC4zLDAuNiwwLjUsMC45czAuNSwwLjQsMC44LDAuNXMwLjYsMC4yLDEsMC4yYzAuNCwwLDAuNywwLDAuOS0wLjEKCQljMC4zLTAuMSwwLjUtMC4yLDAuNy0wLjNzMC40LTAuMiwwLjUtMC4zYzAuMS0wLjEsMC4zLTAuMSwwLjQtMC4xYzAuMiwwLDAuMywwLjEsMC40LDAuMmwwLjYsMC44Yy0wLjIsMC4zLTAuNSwwLjUtMC44LDAuNwoJCWMtMC4zLDAuMi0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJjLTAuMywwLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM3MtMS0wLjUtMS40LTAuOQoJCWMtMC40LTAuNC0wLjctMC45LTEtMS41Yy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40czAuOC0wLjcsMS40LTEKCQljMC41LTAuMiwxLjItMC40LDEuOS0wLjRjMC42LDAsMS4xLDAuMSwxLjYsMC4zYzAuNSwwLjIsMC45LDAuNSwxLjMsMC44YzAuNCwwLjQsMC42LDAuOCwwLjgsMS4zYzAuMiwwLjUsMC4zLDEuMSwwLjMsMS44CgkJYzAsMC4zLDAsMC42LTAuMSwwLjdjLTAuMSwwLjEtMC4yLDAuMi0wLjQsMC4ySDg0Ljd6IE04OSwxNS45YzAtMC4zLDAtMC42LTAuMS0wLjhjLTAuMS0wLjMtMC4yLTAuNS0wLjQtMC43CgkJYy0wLjItMC4yLTAuNC0wLjMtMC42LTAuNWMtMC4yLTAuMS0wLjUtMC4yLTAuOS0wLjJjLTAuNiwwLTEuMSwwLjItMS41LDAuNWMtMC40LDAuNC0wLjYsMC45LTAuNywxLjZIODl6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTA2LDEyLjRsLTIuOSw5LjJoLTEuOGMtMC4yLDAtMC4zLTAuMS0wLjQtMC40bC0xLjctNS4zYy0wLjEtMC4yLTAuMS0wLjQtMC4xLTAuNWMwLTAuMi0wLjEtMC40LTAuMS0wLjUKCQljMCwwLjItMC4xLDAuNC0wLjEsMC41cy0wLjEsMC40LTAuMSwwLjVMOTcsMjEuMmMtMC4xLDAuMy0wLjIsMC40LTAuNSwwLjRoLTEuN2wtMi45LTkuMmgxLjhjMC4yLDAsMC4zLDAsMC40LDAuMQoJCWMwLjEsMC4xLDAuMiwwLjIsMC4yLDAuM2wxLjMsNC45YzAuMSwwLjMsMC4xLDAuNSwwLjIsMC44YzAuMSwwLjMsMC4xLDAuNSwwLjEsMC44YzAuMS0wLjMsMC4xLTAuNSwwLjItMC44CgkJYzAuMS0wLjMsMC4yLTAuNSwwLjItMC44bDEuNS00LjljMC0wLjEsMC4xLTAuMiwwLjItMC4zYzAuMS0wLjEsMC4yLTAuMSwwLjQtMC4xaDFjMC4yLDAsMC4zLDAsMC40LDAuMWMwLjEsMC4xLDAuMiwwLjIsMC4yLDAuMwoJCWwxLjUsNC45YzAuMSwwLjMsMC4yLDAuNSwwLjIsMC44YzAuMSwwLjMsMC4xLDAuNSwwLjIsMC44YzAuMS0wLjUsMC4yLTEsMC4zLTEuNmwxLjQtNC45YzAtMC4xLDAuMS0wLjIsMC4yLTAuMwoJCWMwLjEtMC4xLDAuMi0wLjEsMC40LTAuMUgxMDZ6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTA5LjEsMTcuM2MwLDAuNSwwLjEsMC45LDAuMywxLjJjMC4xLDAuMywwLjMsMC42LDAuNSwwLjlzMC41LDAuNCwwLjgsMC41czAuNiwwLjIsMSwwLjIKCQljMC40LDAsMC43LDAsMC45LTAuMXMwLjUtMC4yLDAuNy0wLjNjMC4yLTAuMSwwLjQtMC4yLDAuNS0wLjNjMC4xLTAuMSwwLjMtMC4xLDAuNC0wLjFjMC4yLDAsMC4zLDAuMSwwLjQsMC4ybDAuNiwwLjgKCQljLTAuMiwwLjMtMC41LDAuNS0wLjgsMC43cy0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJzLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM2MtMC42LTAuMi0xLTAuNS0xLjQtMC45CgkJcy0wLjctMC45LTEtMS41Yy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40YzAuNC0wLjQsMC44LTAuNywxLjQtMQoJCWMwLjUtMC4yLDEuMi0wLjQsMS45LTAuNGMwLjYsMCwxLjEsMC4xLDEuNiwwLjNjMC41LDAuMiwwLjksMC41LDEuMywwLjhjMC40LDAuNCwwLjYsMC44LDAuOCwxLjNjMC4yLDAuNSwwLjMsMS4xLDAuMywxLjgKCQljMCwwLjMsMCwwLjYtMC4xLDAuN2MtMC4xLDAuMS0wLjIsMC4yLTAuNCwwLjJIMTA5LjF6IE0xMTMuNCwxNS45YzAtMC4zLDAtMC42LTAuMS0wLjhjLTAuMS0wLjMtMC4yLTAuNS0wLjQtMC43CgkJYy0wLjItMC4yLTAuNC0wLjMtMC42LTAuNWMtMC4yLTAuMS0wLjUtMC4yLTAuOS0wLjJjLTAuNiwwLTEuMSwwLjItMS41LDAuNWMtMC40LDAuNC0wLjYsMC45LTAuNywxLjZIMTEzLjR6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTE5LjYsMTRjMC4zLTAuNiwwLjYtMSwxLTEuM2MwLjQtMC4zLDAuOS0wLjUsMS40LTAuNWMwLjQsMCwwLjgsMC4xLDEsMC4zbC0wLjEsMS43YzAsMC4xLTAuMSwwLjItMC4xLDAuMgoJCWMtMC4xLDAtMC4xLDAuMS0wLjIsMC4xYy0wLjEsMC0wLjIsMC0wLjQsMGMtMC4yLDAtMC4zLDAtMC41LDBjLTAuMiwwLTAuNSwwLTAuNywwLjFzLTAuNCwwLjItMC41LDAuM2MtMC4yLDAuMS0wLjMsMC4zLTAuNCwwLjUKCQljLTAuMSwwLjItMC4yLDAuNC0wLjMsMC43djUuN2gtMi4ydi05LjJoMS4zYzAuMiwwLDAuNCwwLDAuNSwwLjFjMC4xLDAuMSwwLjIsMC4yLDAuMiwwLjRMMTE5LjYsMTR6Ii8+CjwvZz4KPC9zdmc+Cg=="},778:t=>{t.exports="data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIyLjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMzQuOSAzMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTM0LjkgMzA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojNTk1OTU5O30KCS5zdDF7ZmlsbDojNjZDQzAwO30KPC9zdHlsZT4KPGc+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTYuMywyMS42aC0yLjR2LTEzaDIuNFYyMS42eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTIxLjMsMTMuNWMwLjItMC4yLDAuNC0wLjQsMC42LTAuNWMwLjItMC4yLDAuNC0wLjMsMC43LTAuNGMwLjItMC4xLDAuNS0wLjIsMC43LTAuM2MwLjMtMC4xLDAuNi0wLjEsMC45LTAuMQoJCWMwLjUsMCwxLDAuMSwxLjMsMC4zczAuNywwLjQsMSwwLjdzMC41LDAuNywwLjYsMS4xYzAuMSwwLjQsMC4yLDAuOSwwLjIsMS40djUuOWgtMi4ydi01LjljMC0wLjYtMC4xLTEtMC40LTEuM1MyNCwxNCwyMy41LDE0CgkJYy0wLjQsMC0wLjcsMC4xLTEuMSwwLjNjLTAuMywwLjItMC43LDAuNC0xLDAuN3Y2LjdoLTIuMnYtOS4yaDEuNGMwLjMsMCwwLjUsMC4xLDAuNiwwLjRMMjEuMywxMy41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTMyLjEsOC4ydjEzLjRoLTIuMlY4LjJIMzIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0zNy4zLDkuN2MwLDAuMiwwLDAuNC0wLjEsMC41cy0wLjIsMC4zLTAuMywwLjRzLTAuMywwLjItMC41LDAuM2MtMC4yLDAuMS0wLjQsMC4xLTAuNiwwLjEKCQljLTAuMiwwLTAuNCwwLTAuNS0wLjFjLTAuMi0wLjEtMC4zLTAuMi0wLjQtMC4zcy0wLjItMC4zLTAuMy0wLjRjLTAuMS0wLjItMC4xLTAuMy0wLjEtMC41YzAtMC4yLDAtMC40LDAuMS0wLjYKCQljMC4xLTAuMiwwLjItMC4zLDAuMy0wLjVzMC4zLTAuMiwwLjQtMC4zczAuNC0wLjEsMC41LTAuMWMwLjIsMCwwLjQsMCwwLjYsMC4xYzAuMiwwLjEsMC4zLDAuMiwwLjUsMC4zczAuMiwwLjMsMC4zLDAuNQoJCVMzNy4zLDkuNSwzNy4zLDkuN3ogTTM2LjksMTIuNHY5LjJoLTIuMnYtOS4ySDM2Ljl6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDEuNywxMy41YzAuMi0wLjIsMC40LTAuNCwwLjYtMC41YzAuMi0wLjIsMC40LTAuMywwLjctMC40YzAuMi0wLjEsMC41LTAuMiwwLjctMC4zYzAuMy0wLjEsMC42LTAuMSwwLjktMC4xCgkJYzAuNSwwLDEsMC4xLDEuMywwLjNjMC40LDAuMiwwLjcsMC40LDEsMC43YzAuMywwLjMsMC41LDAuNywwLjYsMS4xczAuMiwwLjksMC4yLDEuNHY1LjloLTIuMnYtNS45YzAtMC42LTAuMS0xLTAuNC0xLjMKCQljLTAuMy0wLjMtMC43LTAuNS0xLjItMC41Yy0wLjQsMC0wLjcsMC4xLTEuMSwwLjNjLTAuMywwLjItMC43LDAuNC0xLDAuN3Y2LjdoLTIuMnYtOS4yaDEuNGMwLjMsMCwwLjUsMC4xLDAuNiwwLjRMNDEuNywxMy41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTUxLjksMTcuM2MwLDAuNSwwLjEsMC45LDAuMywxLjJjMC4xLDAuMywwLjMsMC42LDAuNSwwLjlzMC41LDAuNCwwLjgsMC41czAuNiwwLjIsMSwwLjJjMC40LDAsMC43LDAsMC45LTAuMQoJCXMwLjUtMC4yLDAuNy0wLjNjMC4yLTAuMSwwLjQtMC4yLDAuNS0wLjNjMC4xLTAuMSwwLjMtMC4xLDAuNC0wLjFjMC4yLDAsMC4zLDAuMSwwLjQsMC4ybDAuNiwwLjhjLTAuMiwwLjMtMC41LDAuNS0wLjgsMC43CgkJcy0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJzLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM2MtMC42LTAuMi0xLTAuNS0xLjQtMC45cy0wLjctMC45LTEtMS41CgkJYy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40YzAuNC0wLjQsMC44LTAuNywxLjQtMWMwLjUtMC4yLDEuMi0wLjQsMS45LTAuNAoJCWMwLjYsMCwxLjEsMC4xLDEuNiwwLjNjMC41LDAuMiwwLjksMC41LDEuMywwLjhjMC40LDAuNCwwLjYsMC44LDAuOCwxLjNjMC4yLDAuNSwwLjMsMS4xLDAuMywxLjhjMCwwLjMsMCwwLjYtMC4xLDAuNwoJCWMtMC4xLDAuMS0wLjIsMC4yLTAuNCwwLjJINTEuOXogTTU2LjEsMTUuOWMwLTAuMywwLTAuNi0wLjEtMC44Yy0wLjEtMC4zLTAuMi0wLjUtMC40LTAuN2MtMC4yLTAuMi0wLjQtMC4zLTAuNi0wLjUKCQljLTAuMi0wLjEtMC41LTAuMi0wLjktMC4yYy0wLjYsMC0xLjEsMC4yLTEuNSwwLjVjLTAuNCwwLjQtMC42LDAuOS0wLjcsMS42SDU2LjF6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNzYuNSw4LjZsLTUuMywxM2gtMi4ybC01LjMtMTNoMS45YzAuMiwwLDAuNCwwLjEsMC41LDAuMnMwLjIsMC4yLDAuMywwLjRsMy4xLDcuOWMwLjEsMC4zLDAuMiwwLjUsMC4zLDAuOQoJCWMwLjEsMC4zLDAuMiwwLjYsMC4zLDFjMC4xLTAuMywwLjEtMC43LDAuMi0xczAuMi0wLjYsMC4zLTAuOWwzLjEtNy45YzAtMC4xLDAuMS0wLjMsMC4zLTAuNGMwLjEtMC4xLDAuMy0wLjIsMC41LTAuMkg3Ni41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTgwLjcsOS43YzAsMC4yLDAsMC40LTAuMSwwLjVjLTAuMSwwLjItMC4yLDAuMy0wLjMsMC40Yy0wLjEsMC4xLTAuMywwLjItMC41LDAuM2MtMC4yLDAuMS0wLjQsMC4xLTAuNiwwLjEKCQljLTAuMiwwLTAuNCwwLTAuNS0wLjFjLTAuMi0wLjEtMC4zLTAuMi0wLjQtMC4zcy0wLjItMC4zLTAuMy0wLjRzLTAuMS0wLjMtMC4xLTAuNWMwLTAuMiwwLTAuNCwwLjEtMC42czAuMi0wLjMsMC4zLTAuNQoJCXMwLjMtMC4yLDAuNC0wLjNzMC40LTAuMSwwLjUtMC4xYzAuMiwwLDAuNCwwLDAuNiwwLjFzMC4zLDAuMiwwLjUsMC4zYzAuMSwwLjEsMC4yLDAuMywwLjMsMC41QzgwLjcsOS4zLDgwLjcsOS41LDgwLjcsOS43egoJCSBNODAuNCwxMi40djkuMmgtMi4ydi05LjJIODAuNHoiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik04NC43LDE3LjNjMCwwLjUsMC4xLDAuOSwwLjMsMS4yYzAuMSwwLjMsMC4zLDAuNiwwLjUsMC45czAuNSwwLjQsMC44LDAuNXMwLjYsMC4yLDEsMC4yYzAuNCwwLDAuNywwLDAuOS0wLjEKCQljMC4zLTAuMSwwLjUtMC4yLDAuNy0wLjNzMC40LTAuMiwwLjUtMC4zYzAuMS0wLjEsMC4zLTAuMSwwLjQtMC4xYzAuMiwwLDAuMywwLjEsMC40LDAuMmwwLjYsMC44Yy0wLjIsMC4zLTAuNSwwLjUtMC44LDAuNwoJCWMtMC4zLDAuMi0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJjLTAuMywwLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM3MtMS0wLjUtMS40LTAuOQoJCWMtMC40LTAuNC0wLjctMC45LTEtMS41Yy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40czAuOC0wLjcsMS40LTEKCQljMC41LTAuMiwxLjItMC40LDEuOS0wLjRjMC42LDAsMS4xLDAuMSwxLjYsMC4zYzAuNSwwLjIsMC45LDAuNSwxLjMsMC44YzAuNCwwLjQsMC42LDAuOCwwLjgsMS4zYzAuMiwwLjUsMC4zLDEuMSwwLjMsMS44CgkJYzAsMC4zLDAsMC42LTAuMSwwLjdjLTAuMSwwLjEtMC4yLDAuMi0wLjQsMC4ySDg0Ljd6IE04OSwxNS45YzAtMC4zLDAtMC42LTAuMS0wLjhjLTAuMS0wLjMtMC4yLTAuNS0wLjQtMC43CgkJYy0wLjItMC4yLTAuNC0wLjMtMC42LTAuNWMtMC4yLTAuMS0wLjUtMC4yLTAuOS0wLjJjLTAuNiwwLTEuMSwwLjItMS41LDAuNWMtMC40LDAuNC0wLjYsMC45LTAuNywxLjZIODl6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTA2LDEyLjRsLTIuOSw5LjJoLTEuOGMtMC4yLDAtMC4zLTAuMS0wLjQtMC40bC0xLjctNS4zYy0wLjEtMC4yLTAuMS0wLjQtMC4xLTAuNWMwLTAuMi0wLjEtMC40LTAuMS0wLjUKCQljMCwwLjItMC4xLDAuNC0wLjEsMC41cy0wLjEsMC40LTAuMSwwLjVMOTcsMjEuMmMtMC4xLDAuMy0wLjIsMC40LTAuNSwwLjRoLTEuN2wtMi45LTkuMmgxLjhjMC4yLDAsMC4zLDAsMC40LDAuMQoJCWMwLjEsMC4xLDAuMiwwLjIsMC4yLDAuM2wxLjMsNC45YzAuMSwwLjMsMC4xLDAuNSwwLjIsMC44YzAuMSwwLjMsMC4xLDAuNSwwLjEsMC44YzAuMS0wLjMsMC4xLTAuNSwwLjItMC44CgkJYzAuMS0wLjMsMC4yLTAuNSwwLjItMC44bDEuNS00LjljMC0wLjEsMC4xLTAuMiwwLjItMC4zYzAuMS0wLjEsMC4yLTAuMSwwLjQtMC4xaDFjMC4yLDAsMC4zLDAsMC40LDAuMWMwLjEsMC4xLDAuMiwwLjIsMC4yLDAuMwoJCWwxLjUsNC45YzAuMSwwLjMsMC4yLDAuNSwwLjIsMC44YzAuMSwwLjMsMC4xLDAuNSwwLjIsMC44YzAuMS0wLjUsMC4yLTEsMC4zLTEuNmwxLjQtNC45YzAtMC4xLDAuMS0wLjIsMC4yLTAuMwoJCWMwLjEtMC4xLDAuMi0wLjEsMC40LTAuMUgxMDZ6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTA5LjEsMTcuM2MwLDAuNSwwLjEsMC45LDAuMywxLjJjMC4xLDAuMywwLjMsMC42LDAuNSwwLjlzMC41LDAuNCwwLjgsMC41czAuNiwwLjIsMSwwLjIKCQljMC40LDAsMC43LDAsMC45LTAuMXMwLjUtMC4yLDAuNy0wLjNjMC4yLTAuMSwwLjQtMC4yLDAuNS0wLjNjMC4xLTAuMSwwLjMtMC4xLDAuNC0wLjFjMC4yLDAsMC4zLDAuMSwwLjQsMC4ybDAuNiwwLjgKCQljLTAuMiwwLjMtMC41LDAuNS0wLjgsMC43cy0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJzLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM2MtMC42LTAuMi0xLTAuNS0xLjQtMC45CgkJcy0wLjctMC45LTEtMS41Yy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40YzAuNC0wLjQsMC44LTAuNywxLjQtMQoJCWMwLjUtMC4yLDEuMi0wLjQsMS45LTAuNGMwLjYsMCwxLjEsMC4xLDEuNiwwLjNjMC41LDAuMiwwLjksMC41LDEuMywwLjhjMC40LDAuNCwwLjYsMC44LDAuOCwxLjNjMC4yLDAuNSwwLjMsMS4xLDAuMywxLjgKCQljMCwwLjMsMCwwLjYtMC4xLDAuN2MtMC4xLDAuMS0wLjIsMC4yLTAuNCwwLjJIMTA5LjF6IE0xMTMuNCwxNS45YzAtMC4zLDAtMC42LTAuMS0wLjhjLTAuMS0wLjMtMC4yLTAuNS0wLjQtMC43CgkJYy0wLjItMC4yLTAuNC0wLjMtMC42LTAuNWMtMC4yLTAuMS0wLjUtMC4yLTAuOS0wLjJjLTAuNiwwLTEuMSwwLjItMS41LDAuNWMtMC40LDAuNC0wLjYsMC45LTAuNywxLjZIMTEzLjR6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTE5LjYsMTRjMC4zLTAuNiwwLjYtMSwxLTEuM2MwLjQtMC4zLDAuOS0wLjUsMS40LTAuNWMwLjQsMCwwLjgsMC4xLDEsMC4zbC0wLjEsMS43YzAsMC4xLTAuMSwwLjItMC4xLDAuMgoJCWMtMC4xLDAtMC4xLDAuMS0wLjIsMC4xYy0wLjEsMC0wLjIsMC0wLjQsMGMtMC4yLDAtMC4zLDAtMC41LDBjLTAuMiwwLTAuNSwwLTAuNywwLjFzLTAuNCwwLjItMC41LDAuM2MtMC4yLDAuMS0wLjMsMC4zLTAuNCwwLjUKCQljLTAuMSwwLjItMC4yLDAuNC0wLjMsMC43djUuN2gtMi4ydi05LjJoMS4zYzAuMiwwLDAuNCwwLDAuNSwwLjFjMC4xLDAuMSwwLjIsMC4yLDAuMiwwLjRMMTE5LjYsMTR6Ii8+CjwvZz4KPC9zdmc+Cg=="},864:(t,e,n)=>{var i=n(758),r=n(935),o=n(62),s=n(987),a=r(i),l=o(s);a.push([t.id,`html {\n font-size: 62.5%;\n}\nbody {\n background-color: var(--colour-bg);\n color: var(--colour-foreground);\n margin: 0;\n}\n@font-face {\n font-family: viewericons;\n src: url(${l});\n font-weight: normal;\n font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n}\n.linked-highlight-cell {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\ninput[type="text"],\nselect,\nbutton {\n padding: 7px 5px;\n border: solid 1px var(--colour-border-grey);\n border-radius: 5px;\n color: var(--colour-text);\n background-color: unset;\n box-sizing: border-box;\n}\n.square-button-bare {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n}\n.square-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n.square-button:last-of-type {\n margin-right: 0;\n}\n.square-button:first-of-type {\n margin-left: 0;\n}\n.square-button.primary {\n color: var(--colour-bg);\n border-color: var(--colour-button-primary-border);\n background-color: var(--colour-button-primary-bg);\n}\n.wk-checkbox,\nlabel.checkbox {\n position: relative;\n padding-left: 2.2rem;\n cursor: pointer;\n user-select: none;\n line-height: 1.6rem;\n}\n.wk-checkbox:focus-within,\nlabel.checkbox:focus-within {\n outline: solid 0.2rem #000;\n outline-offset: 0.3rem;\n}\n.wk-checkbox input,\nlabel.checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n.wk-checkbox .checkmark,\nlabel.checkbox .checkmark {\n position: absolute;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 1.6rem;\n height: 1.6rem;\n border-radius: 0.4rem;\n border: solid 0.1rem var(--colour-border-grey);\n}\n.wk-checkbox input:checked ~ .checkmark::before,\nlabel.checkbox input:checked ~ .checkmark::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0.4rem;\n width: 0.4rem;\n height: 1.1rem;\n border: solid var(--colour-primary);\n border-width: 0 0.2rem 0.2rem 0;\n transform: rotate(45deg);\n}\ninput:disabled {\n background-color: #eee;\n}\n.inline-button {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n}\n.bare-button {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n}\n#ixv .dialog.chart {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n color: var(--colour-text);\n}\n#ixv .dialog.chart .chart-container {\n position: relative;\n width: 100%;\n}\n#ixv .dialog.chart .other-aspects {\n width: 100%;\n position: absolute;\n bottom: 0;\n left: 0;\n padding: 1rem;\n box-sizing: border-box;\n}\n#ixv .dialog.chart .other-aspects .other-aspect {\n display: inline-block;\n padding: 5px 10px;\n margin: 10px;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.selected,\n#ixv .dialog.chart .other-aspects .other-aspect.addable {\n cursor: pointer;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.addable {\n color: var(--colour-primary);\n}\n#ixv .dialog.chart .other-aspects .other-aspect.addable:hover {\n color: var(--colour-primary) focus;\n text-decoration: underline;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.selected {\n background-color: var(--colour-button-primary-bg);\n border-radius: 0.4rem;\n border: 0.1rem solid var(--colour-button-primary-border);\n /* border: solid 1px #399; */\n color: var(--colour-bg);\n}\n.dialog {\n z-index: 15;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border: solid 1px #000;\n background-color: var(--colour-bg);\n display: none;\n padding: 0;\n margin: 0;\n}\n.dialog.full-screen {\n width: calc(100vw - 5em);\n height: calc(100vh - 5em);\n}\n.dialog.full-width {\n width: calc(100vw - 5em);\n}\n.dialog.message-box {\n max-width: 800px;\n width: 100%;\n}\n.dialog .contents {\n padding: 2rem;\n position: relative;\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n}\n.dialog .contents > h2:first-child {\n margin-top: 0;\n}\n.dialog .close {\n border: none;\n position: absolute;\n top: 1rem;\n right: 1.4rem;\n padding: 0.3rem;\n font-size: 2.6rem;\n z-index: 20;\n cursor: pointer;\n line-height: 2.2rem;\n color: var(--colour-border-grey);\n}\n.dialog .close::before {\n content: "\\00d7";\n}\n.dialog .close:hover {\n opacity: 1;\n}\n.dialog .buttons button {\n border-radius: 0;\n min-width: 10rem;\n margin-right: 1.5rem;\n border: solid 0.1rem var(--colour-border-grey);\n color: var(--colour-text);\n background-color: var(--colour-button-bg);\n cursor: pointer;\n}\n.dialog .buttons button.dialog-button-primary {\n color: var(--colour-bg);\n background-color: var(--colour-primary);\n border: none;\n}\n#ixv .menu {\n line-height: var(--top-bar-height);\n}\n#ixv .menu .menu-title {\n line-height: var(--top-bar-height);\n padding: 0 2.4rem 0 0.3rem;\n position: relative;\n border: none;\n}\n#ixv .menu .menu-title::after {\n font-family: viewericons;\n content: "\\ea04";\n cursor: pointer;\n font-size: 1.8rem;\n position: absolute;\n right: 0.2rem;\n}\n#ixv .menu .menu-title::before {\n cursor: pointer;\n}\n#ixv .menu .content-container {\n position: fixed;\n top: calc(var(--top-bar-height));\n right: 0;\n bottom: 0;\n display: none;\n z-index: 5;\n}\n#ixv .menu .content-container .content {\n line-height: initial;\n background: var(--colour-bg);\n border: solid 1px var(--colour-border-grey);\n max-height: 100%;\n overflow-y: auto;\n}\n#ixv .menu .content-container .content .group {\n margin-bottom: 1rem;\n}\n#ixv .menu .content-container .content .item {\n position: relative;\n padding: 10px 25px 10px 30px;\n white-space: nowrap;\n text-align: left;\n}\n#ixv .menu .content-container .content .item:hover {\n background: var(--colour-row-hover);\n}\n#ixv .menu .content-container .content .item:focus-within {\n outline: solid 2px var(--colour-foreground);\n outline-offset: -2px;\n}\n#ixv .menu .content-container .content .item.menu-checkbox {\n cursor: pointer;\n user-select: none;\n position: relative;\n display: block;\n}\n#ixv .menu .content-container .content .item.menu-checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n#ixv .menu .content-container .content .item.menu-checkbox input:checked ~ .checkmark::before {\n font-family: viewericons;\n content: "\\ea1d";\n position: absolute;\n top: 1.1rem;\n left: 1rem;\n}\n#ixv .menu .content-container .content a.item {\n display: block;\n color: var(--colour-text);\n}\n#ixv .menu .content-container .content a.item:hover {\n text-decoration: none;\n}\n#ixv .menu .content-container .content .label {\n text-transform: uppercase;\n font-weight: bold;\n font-size: 1.2rem;\n text-align: left;\n padding-top: 1rem;\n color: var(--colour-border-grey);\n border-bottom: solid 1px var(--colour-border-grey);\n padding-left: 1rem;\n}\n#ixv .toolbar-menu .menu-checkbox {\n position: relative;\n padding-left: 2.2rem;\n cursor: pointer;\n user-select: none;\n line-height: 1.6rem;\n margin-left: 1.8rem;\n}\n#ixv .toolbar-menu .menu-checkbox:focus-within {\n outline: solid 0.2rem #000;\n outline-offset: 0.3rem;\n}\n#ixv .toolbar-menu .menu-checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n#ixv .toolbar-menu .menu-checkbox .checkmark {\n position: absolute;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 1.6rem;\n height: 1.6rem;\n border-radius: 0.4rem;\n border: solid 0.1rem var(--colour-border-grey);\n}\n#ixv .toolbar-menu .menu-checkbox input:checked ~ .checkmark::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0.4rem;\n width: 0.4rem;\n height: 1.1rem;\n border: solid var(--colour-primary);\n border-width: 0 0.2rem 0.2rem 0;\n transform: rotate(45deg);\n}\n.accordian .card {\n margin-top: 0.4rem;\n background-color: var(--colour-button-bg);\n}\n.accordian .card .card-body {\n display: none;\n padding-left: 1.6rem;\n padding-right: 1.6rem;\n padding-bottom: 0.8rem;\n}\n.accordian .card .card-body > h4:first-child {\n margin-top: 0.8rem;\n}\n.accordian .card .title {\n font-size: 1.4rem;\n line-height: 1.8rem;\n padding: 1.2rem 1.6rem;\n border: none;\n width: 100%;\n text-align: left;\n cursor: pointer;\n}\n.accordian .card .title:hover {\n background-color: var(--colour-bg-selected);\n}\n.accordian .card.active {\n background-color: var(--colour-bg-selected);\n}\n.accordian .card.active .title {\n font-weight: bold;\n}\n.accordian .card.active .card-body {\n display: block;\n}\n#ixv .loader {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.85);\n z-index: 10;\n}\n#ixv .loader .text {\n padding-top: 80px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n color: var(--colour-loader);\n font-size: large;\n font-family: sans-serif;\n}\n#ixv .loader.loading .text::after,\n#ixv .loader.loading .text::before {\n margin: 0 0 0 -30px;\n height: 60px;\n width: 60px;\n position: absolute;\n content: "";\n top: 0;\n left: 50%;\n border-radius: 500rem;\n border-style: solid;\n border-width: 3px;\n box-shadow: 0 0 0 1px transparent;\n}\n#ixv .loader.loading .text::before {\n border: 3px solid rgba(255, 255, 255, 0.1);\n}\n#ixv .loader.loading .text::after {\n -webkit-animation: loader 4s steps(64);\n animation: loader 4s steps(64);\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n border-color: var(--colour-loader) transparent transparent;\n}\n@keyframes loader {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.tab-area {\n background-color: #e3e3e3;\n width: 100%;\n box-sizing: border-box;\n border-bottom: solid 0.1rem var(--colour-border-grey);\n display: flex;\n}\n.tab-area::after {\n content: "";\n clear: both;\n display: table;\n}\n.tab-area .tab {\n float: left;\n padding: 1.2rem;\n cursor: pointer;\n color: #444;\n border: solid 0.1rem #cbcbcb;\n border-radius: 0.6rem 0.6rem 0 0;\n margin-bottom: -0.1rem;\n flex-shrink: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: 20em;\n text-align: left;\n}\n.tab-area .tab.active {\n padding: 1.2rem;\n border-bottom-color: var(--colour-bg);\n background-color: var(--colour-bg);\n border-top: solid 0.4rem #0085e6;\n}\n.tab-area .tab:not(.active) {\n padding-top: 1.5rem;\n}\n.block-list-item {\n margin: 0.5rem 0;\n padding: 0.3rem 0.9rem;\n background-color: var(--colour-button-bg);\n cursor: pointer;\n position: relative;\n border-left: solid 0.4rem var(--colour-button-bg);\n border-right: none;\n border-top: none;\n border-bottom: none;\n border-radius: 0;\n text-align: left;\n width: 100%;\n}\n.block-list-item > * {\n margin: 0.8rem 0;\n}\n.block-list-item > .block-list-item-tags {\n margin: 0.6rem 0;\n}\n.block-list-item:hover {\n background-color: var(--colour-bg-selected);\n}\n.block-list-item.selected {\n border-left: solid 0.4rem var(--colour-primary);\n background-color: var(--colour-bg-selected);\n}\n.block-list-item.linked-highlight {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n#ixv .dialog.validation-report {\n width: calc(100vw - 5em);\n}\n#ixv .dialog.validation-report table {\n display: block;\n margin: 2rem 0;\n border-collapse: collapse;\n max-height: calc(90vh - 150px);\n overflow-y: auto;\n}\n#ixv .dialog.validation-report table td,\n#ixv .dialog.validation-report table th {\n padding: 0.5rem;\n border: solid 0.1rem var(--colour-border-grey);\n}\n#ixv .dialog.calculation-inspector table.calculation-trace {\n border-spacing: 1rem 0;\n padding-bottom: 1.5rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace th.value-column {\n width: 8rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td {\n padding: 1rem 0;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.figure {\n text-align: right;\n white-space: nowrap;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace.calc11 td.icons,\n#ixv .dialog.calculation-inspector table.calculation-trace.calc11 th.icons {\n border-right: solid 1px;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace.has-icons td.icons,\n#ixv .dialog.calculation-inspector table.calculation-trace.has-icons th.icons {\n padding-right: 1rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace tr.total td.figure,\n#ixv .dialog.calculation-inspector table.calculation-trace tr.total td.line-item {\n border-top: solid 1px;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status .message {\n font-style: italic;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status .icon::before {\n position: relative;\n top: 0.1rem;\n padding-right: 0.1rem;\n font-weight: bold;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.unchecked .icon::before {\n font-family: viewericons;\n content: "\\ea17";\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.consistent .icon::before {\n font-family: viewericons;\n content: "\\ea09";\n color: var(--colour-primary);\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.inconsistent .icon::before {\n font-family: viewericons;\n content: "\\ea08";\n color: var(--colour-warning);\n}\n#ixv .dialog.calculation-inspector table.calculation-trace span.duplicate-facts::before {\n font-family: viewericons;\n content: "\\ea14";\n}\n#ixv .dialog.calculation-inspector table.calculation-trace:not(.calc11) td.calc11-only,\n#ixv .dialog.calculation-inspector table.calculation-trace:not(.calc11) th.calc11-only {\n display: none;\n}\n#ixv .dialog.text-block-viewer {\n max-width: 120rem;\n width: 90vw;\n height: 90vh;\n}\n#ixv .dialog.text-block-viewer .contents {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n#ixv .dialog.text-block-viewer .contents .title,\n#ixv .dialog.text-block-viewer .contents .buttons {\n flex-grow: 0;\n}\n#ixv .dialog.text-block-viewer .contents iframe {\n margin: 1.4rem 0;\n border: solid 1px #ccc;\n flex-grow: 1;\n width: 100%;\n height: 100%;\n}\n#ixv .dialog.text-block-viewer .contents .controls {\n height: 3.2rem;\n}\n#inspector .summary .body .total-facts-value,\n#inspector .summary .body .mandatory-facts-value {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n}\n#inspector .summary .body .hidden-facts-value {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n}\n#inspector .summary .body .file-summary-container {\n display: flex;\n flex-flow: row wrap;\n}\n#inspector .summary .body .file-summary-container .files {\n flex: 1 1 auto;\n}\n#inspector .summary .body .tag-summary-body {\n overflow-x: auto;\n}\n#inspector .summary .body .tag-summary-body sup {\n font-size: 0.9rem;\n display: block;\n}\n#inspector .summary .body .tag-summary-body table {\n width: 100%;\n border-collapse: collapse;\n}\n#inspector .summary .body .tag-summary-body table td,\n#inspector .summary .body .tag-summary-body table th {\n padding: 0.2rem;\n text-align: left;\n}\n#inspector .summary .body .tag-summary-body table thead tr th {\n white-space: nowrap;\n position: relative;\n height: 10rem;\n}\n#inspector .summary .body .tag-summary-body table thead tr th.namespace {\n text-align: left;\n vertical-align: bottom;\n}\n#inspector .summary .body .tag-summary-body table thead tr th.figure {\n width: 5rem;\n}\n#inspector .summary .body .tag-summary-body table thead tr th.figure > div {\n position: absolute;\n transform: translate(100px, -50%) rotate(45deg) translate(-50%, 50%);\n text-align: right;\n width: 200px;\n right: 0;\n bottom: 0;\n}\n#inspector .summary .body .tag-summary-body table thead tr th.figure > div.has-tooltip {\n bottom: -0.8rem;\n}\n#inspector .summary .body .tag-summary-body table tbody th {\n font-weight: normal;\n}\n#inspector .summary .body .tag-summary-body table tbody tr,\n#inspector .summary .body .tag-summary-body table tfoot tr {\n transition: background-color 0.25s ease;\n}\n#inspector .summary .body .tag-summary-body table tbody tr:nth-child(odd),\n#inspector .summary .body .tag-summary-body table tfoot tr:nth-child(odd) {\n background-color: var(--colour-row-odd);\n}\n#inspector .summary .body .tag-summary-body table tbody tr:hover,\n#inspector .summary .body .tag-summary-body table tfoot tr:hover {\n background-color: var(--colour-row-hover);\n}\n#inspector .summary .body .tag-summary-body table tbody tr td.figure,\n#inspector .summary .body .tag-summary-body table tfoot tr td.figure {\n text-align: right;\n}\n:root {\n --colour-bg-selected: #f3f3f3;\n --colour-bg-tag: #595959;\n --colour-bg: #ffffff;\n --colour-bg-fade: rgba(0, 0, 0, 0.5);\n --colour-border-grey: #cbcbcb;\n --colour-button-bg: #f8f8f8;\n --colour-button-primary-bg: #005999;\n --colour-button-primary-border: #003b66;\n --colour-foreground: #000000;\n --colour-highlight-1: #dd73ff;\n --colour-highlight-2: #ffac29;\n --colour-highlight-default: #beea8f;\n --colour-icon-grey: #595959;\n --colour-linked-fact: #026dce;\n --colour-loader: #ffffff;\n --colour-primary-focus: #0094ff;\n --colour-primary: #026dce;\n --colour-related-fact: #0eb30e;\n --colour-row-odd: #f8f8f8;\n --colour-row-hover: #e6e6e6;\n --colour-text-form-value: #737373;\n --colour-text-light: #737373;\n --colour-text-title: #444444;\n --colour-text: #595959;\n --colour-warning: #7a4b06;\n --top-bar-height: 3.5rem;\n}\n:root .only-dark {\n display: none;\n}\n:root[data-theme="theme-dark"] {\n --colour-bg-selected: #242424;\n --colour-bg-tag: #ffffff;\n --colour-bg: #000000;\n --colour-bg-fade: rgba(255, 255, 255, 0.5);\n --colour-border-grey: #676767;\n --colour-button-bg: #151515;\n --colour-button-primary-bg: #4fb3fd;\n --colour-button-primary-border: #62bafd;\n --colour-foreground: #ffffff;\n --colour-highlight-1: #dd73ff;\n --colour-highlight-2: #ffea96;\n --colour-highlight-default: #beea8f;\n --colour-icon-grey: #bcbcbc;\n --colour-linked-fact: #72bafd;\n --colour-loader: #ffffff;\n --colour-primary-focus: #4fb3fd;\n --colour-primary: #72bafd;\n --colour-related-fact: #11dc11;\n --colour-row-odd: #151515;\n --colour-row-hover: #4b4b4b;\n --colour-text-form-value: #a1a1a1;\n --colour-text-light: #797979;\n --colour-text-title: #bcbcbc;\n --colour-text: #bcbcbc;\n --colour-warning: #d8ae15;\n --top-bar-height: 3.5rem;\n}\n:root[data-theme="theme-dark"] .only-dark {\n display: initial;\n}\n:root[data-theme="theme-dark"] .only-light {\n display: none;\n}\n#ixv {\n /* Specify these here, not on body in case the iXBRL document has its own\n * style attribute */\n}\n#ixv,\n#ixv table,\n#ixv dialog {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n color: var(--colour-text);\n font-size: 1.4rem;\n line-height: 1.8rem;\n}\n#ixv a {\n text-decoration: none;\n color: var(--colour-primary);\n}\n#ixv a:hover {\n text-decoration: underline;\n}\n#ixv #ixv-progress {\n position: fixed;\n top: 20px;\n left: 20px;\n width: 500px;\n height: 200px;\n background-color: var(--colour-bg);\n border: solid #000 1px;\n text-align: center;\n}\n#ixv #viewer-pane {\n width: 75%;\n box-sizing: border-box;\n position: fixed;\n left: 0;\n top: var(--top-bar-height);\n bottom: 0;\n z-index: 1;\n display: flex;\n flex-flow: column;\n /* This spacer stops drag events getting lost to the iframe */\n}\n#ixv #viewer-pane .ixds-tabs {\n display: none;\n flex: 0 1 auto;\n}\n#ixv #viewer-pane #iframe-container {\n background-color: white;\n color: black;\n position: relative;\n flex: 1 1 auto;\n}\n#ixv #viewer-pane #iframe-container > iframe {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in,\n#ixv #viewer-pane #iframe-container .zoom-out,\n#ixv #viewer-pane #iframe-container .print {\n position: absolute;\n right: 30px;\n width: 20px;\n height: 20px;\n border: solid 1px #bbb;\n background-color: rgba(225, 225, 225, 0.7);\n justify-content: center;\n display: flex;\n align-items: center;\n color: #777;\n cursor: pointer;\n user-select: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in {\n top: 15px;\n}\n#ixv #viewer-pane #iframe-container .zoom-out {\n top: 40px;\n}\n#ixv #viewer-pane #iframe-container .print {\n top: 75px;\n}\n#ixv #viewer-pane #iframe-container .print::after {\n font-family: viewericons;\n content: "\\ea16";\n font-size: 20px;\n}\n#ixv #viewer-pane #iframe-container .zoom-in:hover,\n#ixv #viewer-pane #iframe-container .zoom-out:hover,\n#ixv #viewer-pane #iframe-container .print:hover {\n background-color: rgba(128, 128, 128, 0.7);\n}\n#ixv #viewer-pane .resize {\n position: absolute;\n top: 0;\n width: 5px;\n right: -5px;\n bottom: 0;\n z-index: 20;\n}\n#ixv #viewer-pane .resize-spacer {\n position: absolute;\n top: 0;\n width: 3px;\n right: 0;\n bottom: 0;\n z-index: 20;\n}\n#ixv #top-bar {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 1.4rem;\n line-height: 1.8rem;\n display: flex;\n align-items: center;\n color: var(--colour-text);\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n height: var(--top-bar-height);\n border-bottom: solid 1px #ccc;\n z-index: 5;\n}\n#ixv #top-bar #home-link {\n font-size: 2.2rem;\n font-weight: bold;\n margin-left: 1rem;\n margin-right: 1rem;\n}\n#ixv #top-bar .header {\n height: 100%;\n}\n#ixv #top-bar .document-title {\n box-sizing: border-box;\n padding-right: 1.6rem;\n line-height: var(--top-bar-height);\n border-right: solid 0.1rem #ccc;\n height: var(--top-bar-height);\n overflow: hidden;\n font-size: inherit;\n font-weight: inherit;\n margin: 0;\n}\n#ixv #top-bar .top-bar-controls {\n position: absolute;\n display: flex;\n right: 0;\n top: 0;\n line-height: var(--top-bar-height);\n height: var(--top-bar-height);\n background: var(--colour-bg);\n padding-left: 1.8rem;\n}\n#ixv #top-bar .top-bar-controls > * {\n margin-right: 0.8rem;\n}\n#ixv #top-bar .top-bar-controls .horizontal-menu * {\n vertical-align: middle;\n}\n#ixv #top-bar .top-bar-controls .horizontal-menu .content > * {\n position: relative;\n top: -0.1rem;\n margin-right: 0.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key {\n margin-left: 0.6rem;\n margin-right: 1.5rem;\n position: relative;\n}\n#ixv #top-bar .top-bar-controls .highlight-key::before {\n font-family: viewericons;\n content: "\\ea17";\n font-size: 1.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content {\n position: absolute;\n top: 3.2rem;\n left: -2rem;\n background: white;\n color: black;\n border: solid 1px black;\n border-radius: 0.3rem;\n line-height: 1.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .arrow {\n position: absolute;\n top: 0;\n left: 1.1rem;\n width: 1.5rem;\n height: 1.5rem;\n border-top: solid 0.1rem black;\n border-left: solid 0.1rem black;\n transform: translate(50%, -50%) rotate(45deg);\n background: white;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item {\n white-space: nowrap;\n margin: 1rem;\n position: relative;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample {\n display: inline-block;\n width: 3.2rem;\n height: 1.6rem;\n margin-right: 1rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-0 {\n background: var(--colour-highlight-default);\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-1 {\n background: var(--colour-highlight-1);\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-2 {\n background: var(--colour-highlight-2);\n}\n#ixv #top-bar .top-bar-controls .validation-warning {\n margin-left: 0.5rem;\n font-size: 1.6rem;\n display: none;\n cursor: pointer;\n}\n#ixv #top-bar .top-bar-controls .validation-warning::before {\n font-family: viewericons;\n content: "\\ea1e";\n}\n#ixv #top-bar .top-bar-controls #toggle-dark-mode {\n border: none;\n}\n#ixv #top-bar .top-bar-controls #toggle-dark-mode::before {\n font-family: viewericons;\n content: "\\ea0d";\n cursor: pointer;\n}\n#ixv #top-bar .top-bar-controls .menu .menu-title::before {\n font-family: viewericons;\n content: "\\ea0c";\n font-size: 2rem;\n}\n#ixv #inspector {\n display: flex;\n flex-direction: column;\n /* inspector container */\n width: 25%;\n position: absolute;\n top: var(--top-bar-height);\n right: 0;\n bottom: 0;\n box-sizing: border-box;\n overflow: hidden;\n border-left: solid 0.1rem var(--colour-border-grey);\n}\n#ixv #inspector h1,\n#ixv #inspector h2,\n#ixv #inspector h3 {\n font-weight: normal;\n width: 100%;\n box-sizing: border-box;\n color: var(--colour-text-title);\n}\n#ixv #inspector h2 {\n text-align: center;\n font-size: 1.8rem;\n line-height: 3.2rem;\n margin: 0.8rem 0;\n}\n#ixv #inspector h3 {\n font-size: 1.4rem;\n line-height: 1.8rem;\n}\n#ixv #inspector h4 {\n font-weight: bold;\n color: var(--colour-text-title);\n margin-bottom: 1.4em;\n}\n#ixv #inspector #inspector-head {\n padding: 0;\n position: relative;\n border-bottom: solid 1px var(--colour-border-grey);\n}\n#ixv #inspector #inspector-head .controls {\n position: relative;\n height: 3.2rem;\n padding: 0.8rem 0.9rem;\n display: flex;\n}\n#ixv #inspector #inspector-head .controls > * {\n margin: 0.8rem 0.9rem;\n}\n#ixv #inspector #inspector-head .controls .search-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .controls .search-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button::before {\n font-family: viewericons;\n content: "\\ea18";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .outline-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .controls .outline-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .outline-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .outline-button::before {\n font-family: viewericons;\n content: "\\ea15";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .summary-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .controls .summary-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button::before {\n font-family: viewericons;\n content: "\\ea1a";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-prev-tag {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n margin-left: auto;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-prev-tag:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-prev-tag:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-prev-tag::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector #inspector-head .controls .ixbrl-next-tag {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-next-tag:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-next-tag:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-next-tag::before {\n font-family: viewericons;\n content: "\\ea06";\n}\n#ixv #inspector .inspector-container {\n flex-grow: 1;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n /* inspector body */\n}\n#ixv #inspector .inspector-container .inspector-title {\n text-align: center;\n position: relative;\n margin: 0.8rem 0;\n}\n#ixv #inspector .inspector-container .inspector-title h2 {\n margin: 0;\n padding: 0;\n}\n#ixv #inspector .inspector-container .inspector-title .back {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n top: 0;\n left: 0.9rem;\n position: absolute;\n}\n#ixv #inspector .inspector-container .inspector-title .back::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector .inspector-container .search-controls {\n margin: 0 0 0.8rem;\n}\n#ixv #inspector .inspector-container .search-controls .search-input {\n display: flex;\n padding: 0 0.9rem;\n}\n#ixv #inspector .inspector-container .search-controls .search-input input#ixbrl-search {\n flex-grow: 1;\n margin-right: 1rem;\n}\n#ixv #inspector .inspector-container .search-controls .search-input .filter-toggle {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector .inspector-container .search-controls .search-input .filter-toggle:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector .inspector-container .search-controls .search-input .filter-toggle:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector .inspector-container .search-controls .search-input .filter-toggle::before {\n font-family: viewericons;\n content: "\\ea11";\n}\n#ixv #inspector .inspector-container .search-controls .filter-info {\n text-align: center;\n font-style: italic;\n margin-top: 0.8rem;\n position: relative;\n}\n#ixv #inspector .inspector-container .search-controls .filter-info .reset {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n font-size: 1.4rem;\n line-height: 1.8rem;\n position: absolute;\n right: 0.8rem;\n top: -0.3rem;\n}\n#ixv #inspector .inspector-container .search-controls:not(.show-filters) .search-filters {\n display: none;\n}\n#ixv #inspector .inspector-container .search-controls.active-filters .filter-toggle {\n color: var(--colour-primary);\n}\n#ixv #inspector .inspector-container .search-controls:not(.active-filters) .reset {\n display: none;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters {\n position: relative;\n max-height: 60vh;\n overflow-y: auto;\n padding: 0 0.9rem;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters h3 {\n border: none;\n font-weight: bold;\n padding-bottom: 0;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters h3 button {\n font-weight: inherit;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .filter-group {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n margin-bottom: 0.4em;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .filter-group .control-label {\n white-space: nowrap;\n margin-right: 2em;\n width: 6em;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .filter-group input,\n#ixv #inspector .inspector-container .search-controls .search-filters .filter-group select,\n#ixv #inspector .inspector-container .search-controls .search-filters .filter-group textarea {\n flex-basis: 12em;\n flex-grow: 2;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .control-label {\n font-weight: bold;\n margin-bottom: 0.6em;\n margin-top: 0.8em;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters select {\n width: 100%;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .checkboxes {\n display: flex;\n flex-wrap: wrap;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .checkboxes > div {\n margin: 1.2rem 0;\n flex-grow: 1;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .checkboxes > div input {\n vertical-align: middle;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .datatype-conflict-warning {\n margin: 1rem 0;\n color: var(--colour-warning);\n display: none;\n}\n#ixv #inspector .inspector-container .inspector-body {\n border-top: solid 1px var(--colour-border-grey);\n width: 100%;\n position: relative;\n overflow-y: auto;\n flex-grow: 1;\n /* search results */\n}\n#ixv #inspector .inspector-container .inspector-body .no-fact-overlay,\n#ixv #inspector .inspector-container .inspector-body .no-outline-overlay {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 80%;\n text-align: center;\n color: var(--colour-text-light);\n}\n#ixv #inspector .inspector-container .inspector-body .no-fact-overlay .no-fact-overlay-icon::before,\n#ixv #inspector .inspector-container .inspector-body .no-outline-overlay .no-fact-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea1b";\n font-size: 10rem;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .no-fact-overlay .no-outline-overlay-icon::before,\n#ixv #inspector .inspector-container .inspector-body .no-outline-overlay .no-outline-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea15";\n font-size: 10rem;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .no-fact-overlay .title,\n#ixv #inspector .inspector-container .inspector-body .no-outline-overlay .title {\n font-size: x-large;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .inspector-body {\n overflow-y: auto;\n height: 100%;\n position: relative;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results {\n overflow-y: auto;\n height: 100%;\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .search-overlay {\n transform: translate(-50%, -50%);\n position: absolute;\n top: 50%;\n left: 50%;\n color: var(--colour-text-light);\n width: 85%;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .search-overlay .search-overlay-icon {\n text-align: center;\n font-size: 10rem;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .search-overlay .search-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea18";\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .search-overlay .search-overlay-text {\n text-align: center;\n font-size: medium;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .search-overlay .search-overlay-text .title {\n font-size: x-large;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .select-icon {\n float: right;\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n cursor: pointer;\n color: var(--colour-primary);\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .select-icon:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .select-icon:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .select-icon:first-of-type {\n margin-left: 0.5rem;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .select-icon::before {\n font-family: viewericons;\n content: "\\ea19";\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .more-results {\n cursor: pointer;\n color: var(--colour-primary);\n padding: 1rem;\n text-align: center;\n}\n#ixv #inspector .inspector-container .inspector-body .outline {\n overflow-y: auto;\n height: 100%;\n}\n#ixv #inspector .inspector-container .inspector-body .summary {\n overflow-y: auto;\n height: 100%;\n}\n#ixv #inspector .inspector-container .inspector-body .body {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .std-label {\n margin-left: 30px;\n min-height: 20px;\n position: relative;\n}\n#ixv #inspector .std-label::before {\n color: var(--colour-primary);\n content: "\\2022";\n position: absolute;\n left: -20px;\n font-size: x-large;\n}\n#ixv #inspector dt {\n font-weight: bold;\n color: var(--colour-text-title);\n margin-bottom: 1.4rem;\n margin-top: 1.4rem;\n}\n#ixv #inspector dd {\n margin-inline-start: 2rem;\n}\n#ixv #inspector #concept {\n margin-top: 20px;\n font-size: small;\n min-height: 25px;\n}\n#ixv #inspector #dimensions {\n margin-left: 2rem;\n margin-right: 2rem;\n margin-bottom: 1rem;\n}\n#ixv #inspector #dimensions .dimension {\n position: relative;\n margin: 1.5rem 0 1.5rem 1rem;\n}\n#ixv #inspector #dimensions .dimension::before {\n font-family: viewericons;\n content: "\\ea0e";\n color: var(--colour-primary);\n position: absolute;\n top: 0;\n left: -2.3rem;\n font-size: 120%;\n}\n#ixv #inspector #dimensions .dimension-value {\n position: relative;\n margin: 1.5rem 0 1.5rem 3.5rem;\n}\n#ixv #inspector #dimensions .dimension-value::before {\n font-family: viewericons;\n content: "\\ea0f";\n position: absolute;\n color: var(--colour-primary);\n top: 0;\n left: -2.3rem;\n font-size: 120%;\n}\n#ixv #inspector .inline-button {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n}\n#ixv #inspector .analyse {\n margin-left: 0.4rem;\n}\n#ixv #inspector .analyse::before {\n font-family: viewericons;\n content: "\\ea12";\n position: relative;\n top: 1px;\n}\n#ixv #inspector .inspector-body .tags {\n position: absolute;\n top: 1.5rem;\n right: 0.9rem;\n}\n#ixv #inspector .target-document-tag {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: var(--colour-bg-tag);\n padding: 0.15em 0.5em;\n color: var(--colour-bg);\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv #inspector .hidden-fact-tag,\n#ixv #inspector .html-hidden-fact-tag {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: var(--colour-bg-tag);\n padding: 0.15em 0.5em;\n color: var(--colour-bg);\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv #inspector .hidden-fact-tag.html-hidden-fact-tag,\n#ixv #inspector .html-hidden-fact-tag.html-hidden-fact-tag {\n background-color: #c63018;\n}\n#ixv #inspector .duplicates {\n text-align: center;\n width: 100%;\n height: 3.2rem;\n line-height: 3.2rem;\n}\n#ixv #inspector .duplicates > * {\n vertical-align: middle;\n}\n#ixv #inspector .duplicates .text {\n margin: 0 5px;\n}\n#ixv #inspector .duplicates .next,\n#ixv #inspector .duplicates .prev {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n position: relative;\n display: inline-block;\n}\n#ixv #inspector .duplicates .prev::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector .duplicates .next::before {\n font-family: viewericons;\n content: "\\ea06";\n}\n#ixv #inspector .concept td > div {\n display: flex;\n}\n#ixv #inspector .concept td > div span.text {\n white-space: nowrap;\n position: relative;\n flex-shrink: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n#ixv #inspector .concept td > div span.filler {\n width: 0.7rem;\n display: inline-block;\n flex-shrink: 1000;\n}\n#ixv #inspector .concept td > div span.copy-icon {\n flex-shrink: 0;\n}\n#ixv #inspector .documentation {\n margin-top: 10px;\n margin-left: 30px;\n font-style: italic;\n font-family: serif;\n}\n#ixv #inspector .inspector-section {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-body {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-header {\n position: relative;\n padding: 0 0 0.5rem 1.2rem;\n cursor: pointer;\n user-select: none;\n white-space: nowrap;\n border-bottom: solid 1px var(--colour-border-grey);\n}\n#ixv #inspector .collapsible-section .collapsible-header button:first-of-type {\n font-size: 1.4rem;\n line-height: 1.8rem;\n border: none;\n color: var(--colour-text-title);\n text-align: left;\n position: relative;\n padding: 0.4rem 0.9rem 0.4rem 2.3rem;\n}\n#ixv #inspector .collapsible-section .collapsible-header button:first-of-type::before {\n font-family: viewericons;\n content: "\\ea06";\n font-size: 1.8rem;\n position: absolute;\n top: 0.4rem;\n left: 0;\n transform: rotate(90deg);\n transition: all 0.25s ease;\n display: inline-block;\n}\n#ixv #inspector .collapsible-section .collapsible-header .collapsible-subheader {\n user-select: none;\n font-weight: normal;\n font-style: italic;\n font-size: 1.3rem;\n color: var(--colour-text-form-value);\n}\n#ixv #inspector .collapsible-section.collapsed .collapsible-header button::before {\n transform: rotate(0);\n top: 0.3rem;\n left: -0.2rem;\n}\n#ixv #inspector .collapsible-section.collapsed .collapsible-subheader {\n color: var(--colour-primary);\n}\n#ixv #inspector .collapsible-section .footnote-details {\n display: none;\n}\n#ixv #inspector .collapsible-section .calculations .card .title {\n position: relative;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .inconsistent-flag {\n padding-right: 0.75rem;\n position: relative;\n top: 0.2rem;\n color: var(--colour-warning);\n}\n#ixv #inspector .collapsible-section .calculations .card .title .inconsistent-flag::before {\n font-family: viewericons;\n content: "\\ea08";\n}\n#ixv #inspector .collapsible-section .calculations .card .title .consistent-flag {\n padding-right: 0.75rem;\n position: relative;\n top: 0.2rem;\n color: var(--colour-primary);\n}\n#ixv #inspector .collapsible-section .calculations .card .title .consistent-flag::before {\n font-family: viewericons;\n content: "\\ea09";\n}\n#ixv #inspector .collapsible-section .calculations .card .title .unchecked-flag {\n padding-right: 0.5rem;\n position: relative;\n top: 0.2rem;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .unchecked-flag::before {\n font-family: viewericons;\n content: "\\ea17";\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table {\n width: 100%;\n border-collapse: collapse;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item td {\n padding: 0.2rem 0;\n line-height: 1.8rem;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item td.weight {\n text-align: center;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item td.value {\n text-align: right;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item:not(.calc-fact-link, .total) .concept-name {\n color: #777;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item:not(.calc-fact-link) td {\n font-size: 1.4rem;\n line-height: 1.8rem;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item:not(.calc-fact-link) td.concept-name {\n padding: 0.3rem;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link {\n cursor: pointer;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .concept-name,\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .value {\n color: var(--colour-primary);\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .concept-name button,\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .value button {\n font-size: 1.4rem;\n line-height: 1.8rem;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.linked-highlight,\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link:hover {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.total td {\n border-top: solid 1px var(--colour-border-grey);\n padding-bottom: 1.2rem;\n}\n#ixv #inspector .collapsible-section .calculations .calculation-details-link {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n font-size: 1.4rem;\n line-height: 1.8rem;\n}\n#ixv #inspector .resetable-multiselect {\n position: relative;\n}\n#ixv #inspector .resetable-multiselect .reset-multiselect {\n position: absolute;\n top: -2.5rem;\n right: -0.5rem;\n cursor: pointer;\n border: none;\n padding: 0.3rem;\n}\n#ixv #inspector .resetable-multiselect .reset-multiselect::after {\n font-family: viewericons;\n content: "\\ea0b";\n}\n#ixv #inspector:not(.no-fact-selected) .no-fact-overlay {\n display: none;\n}\n#ixv #inspector.no-fact-selected .fact-selected-only {\n display: none;\n}\n#ixv #inspector:not(.hidden-fact) .hidden-fact-tag {\n display: none;\n}\n#ixv #inspector:not(.html-hidden-fact) .html-hidden-fact-tag {\n display: none;\n}\n#ixv #inspector.search-mode #inspector-head .controls .search-button {\n color: var(--colour-bg);\n border-color: var(--colour-button-primary-border);\n background-color: var(--colour-button-primary-bg);\n}\n#ixv #inspector.outline-mode #inspector-head .controls .outline-button {\n color: var(--colour-bg);\n border-color: var(--colour-button-primary-border);\n background-color: var(--colour-button-primary-bg);\n}\n#ixv #inspector.summary-mode #inspector-head .controls .summary-button {\n color: var(--colour-bg);\n border-color: var(--colour-button-primary-border);\n background-color: var(--colour-button-primary-bg);\n}\n#ixv #inspector .powered-by {\n font-size: 1.2rem;\n text-align: center;\n flex-shrink: 0;\n background: var(--colour-bg);\n width: 100%;\n height: 3rem;\n margin: 0;\n box-sizing: border-box;\n border-top: solid 0.1rem var(--colour-border-grey);\n position: relative;\n}\n#ixv #inspector .powered-by img {\n box-sizing: border-box;\n height: 3rem;\n padding: 0.5rem;\n}\n#ixv #inspector .powered-by .version {\n position: absolute;\n top: 0;\n right: 5px;\n font-size: small;\n line-height: 3rem;\n color: var(--colour-text-light);\n}\n#ixv #inspector:not(.search-mode) .search-mode-only {\n display: none;\n}\n#ixv #inspector:not(.outline-mode) .outline-mode-only {\n display: none;\n}\n#ixv #inspector:not(.summary-mode) .summary-mode-only {\n display: none;\n}\n#ixv #inspector.search-mode .fact-mode-only,\n#ixv #inspector.summary-mode .fact-mode-only,\n#ixv #inspector.outline-mode .fact-mode-only {\n display: none;\n}\n#ixv #inspector:not(.footnote-mode) .footnote-mode-only {\n display: none;\n}\n#ixv #inspector.footnote-mode .footnote-mode-off {\n display: none;\n}\n#ixv #inspector .failed-to-load-mask {\n display: none;\n}\n#ixv #inspector.failed-to-load .failed-to-load-mask {\n display: block;\n background-color: var(--colour-bg-fade);\n position: absolute;\n width: 100%;\n height: 100%;\n}\n#ixv #inspector.search-ready .search-not-ready-only {\n display: none;\n}\n#ixv #inspector:not(.search-ready) .search-ready-only {\n display: none;\n}\n#ixv #inspector:not(.search-ready) .search-results {\n background-color: rgba(0, 0, 0, 0.5);\n}\n#ixv #inspector table.property-table:not(.numeric) {\n table-layout: fixed;\n width: 100%;\n}\n#ixv #inspector table.property-table td,\n#ixv #inspector table.property-table th {\n padding: 0;\n line-height: 2.6rem;\n}\n#ixv #inspector table.property-table th {\n width: 90px;\n text-align: right;\n padding-right: 30px;\n color: var(--colour-text-title);\n}\n#ixv #inspector table.property-table th.has-tooltip {\n padding-right: 10px;\n}\n#ixv #inspector table.property-table tr.value .show-all {\n color: var(--colour-primary);\n cursor: pointer;\n}\n#ixv #inspector table.property-table tr.value:not(.truncated) .show-all {\n display: none;\n}\n#ixv #inspector table.property-table tr.value.text-block .expand-text-block {\n color: var(--colour-primary);\n cursor: pointer;\n}\n#ixv #inspector table.property-table tr.value.text-block .expand-text-block::before {\n font-family: viewericons;\n content: "\\ea1c";\n}\n#ixv #inspector table.property-table td {\n overflow: clip visible;\n text-overflow: ellipsis;\n color: var(--colour-text-form-value);\n}\n#ixv #inspector table.property-table tr.uri > td {\n white-space: nowrap;\n}\n#ixv #inspector table.property-table.numeric td {\n text-align: right;\n}\n#ixv .fact-link {\n cursor: pointer;\n color: var(--colour-primary);\n}\n#ixv .fact-link:hover {\n outline: solid 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n}\n#ixv .fact-list .fact-list-item {\n margin: 0.5rem 0;\n padding: 0.3rem 0.9rem;\n background-color: var(--colour-button-bg);\n cursor: pointer;\n position: relative;\n border-left: solid 0.4rem var(--colour-button-bg);\n border-right: none;\n border-top: none;\n border-bottom: none;\n border-radius: 0;\n text-align: left;\n width: 100%;\n}\n#ixv .fact-list .fact-list-item > * {\n margin: 0.8rem 0;\n}\n#ixv .fact-list .fact-list-item > .block-list-item-tags {\n margin: 0.6rem 0;\n}\n#ixv .fact-list .fact-list-item:hover {\n background-color: var(--colour-bg-selected);\n}\n#ixv .fact-list .fact-list-item.selected {\n border-left: solid 0.4rem var(--colour-primary);\n background-color: var(--colour-bg-selected);\n}\n#ixv .fact-list .fact-list-item.linked-highlight {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n#ixv .fact-list .fact-list-item .title {\n color: var(--colour-text-title);\n font-weight: bold;\n}\n#ixv .fact-list .fact-list-item .dimension {\n color: var(--colour-text);\n margin: 0.6rem 0;\n}\n#ixv .fact-list .fact-list-item .datatype {\n color: var(--colour-text);\n margin: 0.6rem 0;\n font-style: italic;\n}\n#ixv .fact-list .fact-list-item .hidden {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: var(--colour-bg-tag);\n padding: 0.15em 0.5em;\n color: var(--colour-bg);\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv .fact-list .fact-list-item.selected .title {\n font-weight: bold;\n}\n#ixv .fact-list .fact-list-item.selected .dimension {\n color: var(--colour-text);\n}\n#ixv .dialog-mask {\n background-color: var(--colour-bg-fade);\n position: fixed;\n inset: 0;\n z-index: 10;\n display: none;\n}\n#ixv .popup-content {\n display: none;\n}\n#ixv .copy-icon {\n color: var(--colour-primary);\n border-radius: 0.3rem;\n}\n#ixv .copy-icon:active {\n background-color: var(--colour-primary);\n color: var(--colour-bg);\n}\n#ixv .copy-icon::before {\n font-family: viewericons;\n content: "\\ea0a";\n cursor: pointer;\n}\n#ixv .has-tooltip {\n white-space: nowrap;\n}\n#ixv .has-tooltip > * {\n vertical-align: middle;\n}\n#ixv .has-tooltip .tooltip-icon {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n cursor: help;\n margin-left: -0.3rem;\n vertical-align: middle;\n}\n#ixv .has-tooltip .tooltip-icon::after {\n content: "\\24d8";\n}\n#ixv .has-tooltip button + .tooltip-icon {\n margin-left: -1rem;\n}\n#ixv .tooltip {\n position: fixed;\n visibility: hidden;\n transition: all 0.5s ease;\n background-color: var(--colour-bg);\n z-index: 1;\n border: solid 0.1rem var(--colour-border-grey);\n border-radius: 0.4rem;\n padding: 0.8rem;\n box-shadow: rgba(0, 0, 0, 0.3) 0.2rem 0.2rem 0.2rem;\n font-weight: normal;\n opacity: 0;\n cursor: default;\n color: var(--colour-text);\n text-align: left;\n}\n#ixv .tooltip.show,\n#ixv .tooltip.hover-show {\n visibility: visible;\n opacity: 1;\n transition: opacity 0.5s ease;\n}\n#ixv .tooltip.with-glossary-link .glossary-link {\n display: block;\n}\n#ixv .tooltip .glossary-link {\n margin-top: 0.8rem;\n font-size: smaller;\n display: none;\n}\n#ixv .fact-value.fact-value-invalid {\n font-style: italic;\n color: #f00;\n}\n#ixv .fact-value.fact-value-nil {\n font-style: italic;\n}\n#ixv .fact-value .measure {\n border-bottom: 1px dotted #737373;\n cursor: help;\n}\n`,""]),t.exports=a},95:(t,e,n)=>{var i=n(758),r=n(935),o=n(62),s=n(987),a=r(i),l=o(s);a.push([t.id,`@font-face {\n font-family: viewericons;\n src: url(${l});\n font-weight: normal;\n font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n}\n.linked-highlight-cell {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n:root {\n --colour-bg: #ffffff;\n --colour-highlight-1: #dd73ff;\n --colour-highlight-2: #ffac29;\n --colour-highlight-default: #beea8f;\n --colour-linked-fact: #026dce;\n --colour-primary-focus: #0094ff;\n --colour-primary: #026dce;\n --colour-secondary: #66cc00;\n --colour-related-fact: #0eb30e;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight) {\n background-color: var(--colour-highlight-default) !important;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-1 {\n background-color: var(--colour-highlight-1) !important;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-2 {\n background-color: var(--colour-highlight-2) !important;\n}\n.review.review-highlight-untagged-numbers .review-untagged-number {\n background-color: var(--colour-highlight-1);\n}\n.review.review-highlight-untagged-dates .review-untagged-date {\n background-color: var(--colour-highlight-2);\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight) {\n background-color: var(--colour-highlight-default) !important;\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-1 {\n background-color: var(--colour-highlight-default) !important;\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-2 {\n background-color: var(--colour-highlight-default) !important;\n}\ndiv:not(.ixbrl-no-highlight).ixbrl-selected,\nspan:not(.ixbrl-no-highlight).ixbrl-selected {\n outline: solid 0.125em var(--colour-primary-focus);\n outline-offset: 0.0625em;\n}\ndiv:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\nspan:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\ndiv:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected),\nspan:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected) {\n outline: dashed 0.125em var(--colour-primary-focus);\n outline-offset: 0.0625em;\n}\n:not(.ixbrl-no-highlight).ixbrl-element,\n:not(.ixbrl-no-highlight).ixbrl-sub-element {\n cursor: pointer;\n}\n:not(.ixbrl-no-highlight).ixbrl-element.ixbrl-related,\n:not(.ixbrl-no-highlight).ixbrl-sub-element.ixbrl-related {\n outline: dashed 0.125em var(--colour-related-fact);\n}\n:not(.ixbrl-no-highlight).ixbrl-element.ixbrl-related:not(td, th),\n:not(.ixbrl-no-highlight).ixbrl-sub-element.ixbrl-related:not(td, th) {\n outline-offset: 0.0625em;\n}\ntd:not(.ixbrl-no-highlight).ixbrl-selected,\nth:not(.ixbrl-no-highlight).ixbrl-selected {\n outline: solid 0.125em var(--colour-primary-focus) !important;\n outline-offset: -0.0625em !important;\n}\ntd:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\nth:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\ntd:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected),\nth:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected) {\n outline: dashed 0.125em var(--colour-primary-focus) !important;\n outline-offset: -0.0625em !important;\n}\ntd.ixbrl-related,\nth.ixbrl-related {\n outline-offset: -0.0625em !important;\n}\n.ixbrl-related.ixbrl-linked-highlight:not(.ixbrl-no-highlight),\n.ixbrl-linked-highlight:not(.ixbrl-no-highlight) {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n}\ntd.ixbrl-related.ixbrl-linked-highlight:not(.ixbrl-no-highlight),\ntd.ixbrl-linked-highlight:not(.ixbrl-no-highlight) {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\ndiv.ixbrl-table-handle {\n position: absolute;\n left: 0;\n cursor: pointer;\n width: 0;\n height: 0;\n border: 0.4rem solid transparent;\n border-bottom-color: var(--colour-secondary);\n top: -0.8rem;\n}\ndiv.ixbrl-table-handle::after {\n content: "";\n position: absolute;\n left: -0.4rem;\n top: 0.4rem;\n width: 0;\n height: 0;\n border: 0.4rem solid transparent;\n border-top-color: var(--colour-secondary);\n}\ndiv.ixbrl-table-handle > span {\n display: none;\n white-space: nowrap;\n}\ndiv.ixbrl-table-handle:hover {\n border: none;\n color: var(--colour-bg);\n transition: width 0.3s;\n width: 9rem;\n height: initial;\n left: -0.1rem;\n padding: 0;\n z-index: 1;\n}\ndiv.ixbrl-table-handle:hover::after {\n display: none;\n}\ndiv.ixbrl-table-handle:hover > span {\n border: solid 0.1rem var(--colour-bg);\n font-family: sans-serif;\n display: block;\n padding: 0.7rem 1.5rem 0.7rem 2.5rem;\n background-color: var(--colour-secondary);\n}\ndiv.ixbrl-table-handle:hover > span::before {\n font-family: viewericons;\n content: "\\ea10";\n position: absolute;\n left: 0.8rem;\n font-size: 1.2rem;\n}\n`,""]),t.exports=a},935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(i)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);i&&s[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},62:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},758:t=>{"use strict";t.exports=function(t){return t[1]}},60:function(t,e,n){var i,r;void 0===(r="function"==typeof(i=function(){"use strict";function e(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){a(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function r(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,n,s){var a=o.URL||o.webkitURL,l=document.createElement("a");n=n||t.name||"download",l.download=n,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?r(l):i(l.href)?e(t,n,s):r(l,l.target="_blank")):(l.href=a.createObjectURL(t),setTimeout((function(){a.revokeObjectURL(l.href)}),4e4),setTimeout((function(){r(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,o){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),n);else if(i(t))e(t,n,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){r(s)}))}}:function(t,n,i,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,i);var a="application/octet-stream"===t.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},u.readAsDataURL(t)}else{var d=o.URL||o.webkitURL,h=d.createObjectURL(t);r?r.location=h:location.href=h,r=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});o.saveAs=a.saveAs=a,t.exports=a})?i.apply(e,[]):i)||(t.exports=r)},793:t=>{t.exports='\x3c!--\nSee COPYRIGHT.md for copyright information\n--\x3e\n\n<div class="fact-details">\n <dl>\n <dt data-i18n="factDetails.concept">Concept</dt>\n <dd>\n <div class="std-label"></div>\n <div class="documentation"></div>\n </dd>\n <dt id="dimensions-label" class="has-tooltip">\n <span data-i18n="factDetails.dimensions">Dimensions</span>\n <button class="tooltip-icon" data-tooltip-name="dimension" data-tooltip-glossary-link="true"></button>\n </dt>\n <dd>\n <div id="dimensions"></div>\n </dd>\n <dt data-i18n="factDetails.properties">Properties</dt>\n <dd>\n <table class="property-table fact-properties">\n <tr class="period">\n <th class="has-tooltip">\n <span data-i18n="factDetails.date">Date</span>\n <button class="tooltip-icon" data-tooltip-name="period"></button>\n </th>\n <td></td>\n </tr>\n <tr class="value">\n <th data-i18n="factDetails.factValue">Fact Value</th>\n <td><span class="value"></span> <button class="show-all inline-button" aria-label="Show full text">[...]</button> <span class="expand-text-block"></span></td>\n </tr>\n <tr class="accuracy">\n <th class="has-tooltip">\n <span data-i18n="factDetails.accuracy">Accuracy</span>\n <button class="tooltip-icon" data-tooltip-name="accuracy"></button>\n </th>\n <td></td>\n </tr>\n <tr class="scale">\n <th class="has-tooltip">\n <span data-i18n="factDetails.scale">Scale</span>\n <button class="tooltip-icon" data-tooltip-name="scale"></button>\n </th>\n <td></td>\n </tr>\n <tr class="change">\n <th data-i18n="factDetails.change">Change</th>\n <td></td>\n </tr>\n <tr class="entity-identifier">\n <th data-i18n="factDetails.entity">Entity</th>\n <td></td>\n </tr>\n <tr class="concept">\n <th class="has-tooltip">\n <span data-i18n="factDetails.concept">Concept</span>\n <button class="tooltip-icon" data-tooltip-name="concept" data-tooltip-glossary-link="#concept"></button>\n </th>\n <td><div><span class="text"></span><span class="filler"></span><button class="clipboard-copy copy-icon inline-button" title="Copy concept to clipboard"></button></div></td>\n </tr>\n <tr class="datatype">\n <th data-i18n="factDetails.datatype">Type</th>\n <td></td>\n </tr>\n <tr class="balance">\n <th data-i18n="factDetails.balance">Balance</th>\n <td></td>\n </tr>\n </table>\n </dd>\n </dl>\n <div class="duplicates">\n <button class="prev" title="Show previous duplicate"></button> \n <span class="text"></span> \n <button class="next" title="Show next duplicate"></button>\n </div>\n</div>\n'},523:(t,e,n)=>{var i=`<a href="https://arelle.org" target="_blank" aria-label="Link to Arelle website">\n <img alt="Arelle logo" class="only-light" src="${n(59)}"/>\n <img alt="Arelle logo" class="only-dark" src="${n(600)}"/>\n</a>\n`;t.exports=i},643:t=>{t.exports='\x3c!--\nSee COPYRIGHT.md for copyright information\n--\x3e\n\n<div>\n <table class="fact-properties">\n <tr class="value">\n <th data-i18n="footnotes.footnote">Footnote</th>\n <td><span class="value"></span> <button class="show-all inline-button">[...]</button></td>\n </tr>\n </table>\n</div>\n'},87:(t,e,n)=>{var i=`\x3c!--\nSee COPYRIGHT.md for copyright information\n--\x3e\n\n<div id="ixv" xmlns="http://www.w3.org/1999/xhtml">\n <div class="loader loading">\n <span class="text" data-i18n="inspector.loadingViewer">Loading iXBRL Viewer</span>\n </div>\n <header id="top-bar">\n <img class="header only-light" alt="Inline Viewer logo" src="${n(778)}"/>\n <img class="header only-dark" alt="Inline Viewer logo" src="${n(587)}"/>\n <h1 class="document-title"></h1>\n <div class="top-bar-controls">\n <div id="toolbar-highlight-menu" class="horizontal-menu">\n <b data-i18n="inspector.highlight">Highlight:</b><span class="highlight-key popup-trigger"><div class="popup-content">\n <div class="arrow"></div>\n <div class="items"></div>\n </div></span><span class="content"></span>\n </div>\n <button id="toggle-dark-mode" data-i18n="[title]toolbar.toggleDarkMode" title="Toggle dark mode"></button>\n <button class="inline-button validation-warning" data-i18n="[aria-label]inspector.validationResults" aria-label="Validation Results" title="Report has validation errors"></button>\n <div class="menu" id="display-options-menu">\n <button data-i18n="[title]inspector.settingsMenu" title="Settings menu" class="menu-title"></button>\n <div class="content-container">\n <div class="content"></div>\n </div>\n </div>\n </div>\n </header>\n <section id="viewer-pane" data-i18n="[aria-label]viewer.ixbrlDocumentView" aria-label="iXBRL Document View">\n <div class="ixds-tabs"><div class="tab-area"></div></div>\n <div id="iframe-container">\n <div class="zoom-in">+</div>\n <div class="zoom-out">-</div>\n <div class="print" title="Print Document" data-i18n="[title]inspector.printDocument"></div>\n </div>\n <div id="viewer-resize-handle" class="resize"></div>\n <div class="resize-spacer"></div>\n </section>\n <section id="inspector" class="no-fact-selected" data-i18n="[aria-label]inspector.ixbrlInspector" aria-label="iXBRL Inspector">\n <div id="inspector-head">\n <nav class="controls">\n <button class="summary-button" data-i18n="[title]inspector.documentSummary" title="Document summary">\n </button>\n <button class="outline-button" data-i18n="[title]inspector.documentOutline" title="Document outline">\n </button>\n <button class="search-button" data-i18n="[title]inspector.searchTitle" title="Search">\n </button>\n <button class="ixbrl-prev-tag" data-i18n="[title]inspector.previousTag" title="Previous tag"></button>\n <button class="ixbrl-next-tag" data-i18n="[title]inspector.nextTag" title="Next tag"></button>\n </nav>\n </div>\n\n <div class="inspector-container fact-mode-only">\n <div class="inspector-title">\n <h2 class="footnote-mode-off" data-i18n="inspector.factProperties">Fact Properties</h2>\n <h2 class="footnote-mode-only" data-i18n="inspector.footnoteProperties">Footnote Properties</h2>\n </div>\n <div class="inspector-body" tabindex="1">\n <div class="no-fact-overlay">\n <div class="no-fact-overlay-icon"></div>\n <p class="title" data-i18n="inspector.noFactSelected">No Fact Selected</p>\n </div>\n <div class="fact-selected-only">\n <div class="tags">\n <div class="target-document-tag"></div>\n <div class="hidden-fact-tag" data-i18n="inspector.hiddenFact">Hidden Fact</div>\n <div class="html-hidden-fact-tag" data-i18n="inspector.concealedFact">Concealed Fact</div>\n </div>\n <div class="collapsible-section">\n <div class="fact-inspector collapsible-body">\n </div>\n </div>\n <div class="footnote-mode-off">\n <div class="collapsible-section anchoring">\n <h3 class="collapsible-header has-tooltip"><button data-i18n="inspector.anchoring">Anchoring</button> <button class="tooltip-icon" data-tooltip-name="anchoring" data-tooltip-glossary-link="#anchoring"></button></h3>\n <div class="collapsible-body">\n <h4 data-i18n="inspector.widerAnchor">Wider anchor</h4>\n <div class="anchors-wider">\n </div>\n <h4 data-i18n="inspector.narrowerAnchor">Narrower anchors</h4>\n <div class="anchors-narrower">\n </div>\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header"><button data-i18n="inspector.labels">Labels</button></h3>\n <div class="collapsible-body labels">\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header has-tooltip"><button data-i18n="inspector.references">References</button> <button class="tooltip-icon" data-tooltip-name="references" data-tooltip-glossary-link="#reference"></button></h3>\n <div class="collapsible-body references">\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header has-tooltip"><button data-i18n="inspector.calculations">Calculations</button> <button class="tooltip-icon" data-tooltip-name="calculations" data-tooltip-glossary-link="#calculation-tree"></button></h3>\n <div class="collapsible-body calculations">\n <div class="tree"></div>\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header"><button data-i18n="inspector.footnotes">Footnotes</button></h3>\n <div class="collapsible-body footnotes fact-list">\n </div>\n </div>\n <div class="collapsible-section footnote-facts-section">\n <h3 class="collapsible-header"><button data-i18n="inspector.associatedFacts">Associated Facts</button></h3>\n <div class="collapsible-body footnote-facts fact-list">\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header"><button data-i18n="inspector.fact-groups">Sections</button></h3>\n <div class="collapsible-body fact-groups fact-list">\n </div>\n </div>\n </div>\n <div class="footnote-details footnote-mode-only">\n <div class="collapsible-section">\n <h3 class="collapsible-header"><button data-i18n="inspector.associatedFacts">Associated facts</button></h3>\n <div class="collapsible-body footnote-facts fact-list">\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="inspector-container search-mode-only" role="search">\n <div class="inspector-title">\n <button class="back" title="Back">\n </button>\n <h2 data-i18n="inspector.search">Search</h2>\n </div>\n <div class="search-controls search-mode-only">\n <div class="search-input">\n <input id="ixbrl-search" type="text" data-i18n="[aria-label]inspector.searchReport" aria-label="Search iXBRL report" disabled="disabled"/>\n <button class="filter-toggle" data-i18n="[title]search.toggleFilterControls" title="Toggle filter controls"></button>\n </div>\n <div class="filter-info">\n <span id="matching-facts-summary"></span>\n <button class="reset" data-i18n="inspector.reset">Reset</button>\n </div>\n <div class="search-filters">\n <h3 data-i18n="search.filter">Filter</h3>\n <div class="filter-group">\n <label class="control-label" data-i18n="inspector.visibility" for="search-filter-visibility">\n Visibility\n </label>\n <select id="search-filter-visibility">\n <option value="*">-</option>\n <option value="visible" data-i18n="inspector.visible">Visible</option>\n <option value="hidden" data-i18n="inspector.hidden">Hidden</option>\n </select>\n </div>\n <div class="filter-group">\n <label class="control-label" data-i18n="inspector.conceptType" for="search-filter-concept-type">\n Concept Type\n </label>\n <select id="search-filter-concept-type">\n <option value="*">-</option>\n <option value="numeric" data-i18n="inspector.numericOption">Numeric</option>\n <option value="text" data-i18n="inspector.textOption">Text</option>\n </select>\n </div>\n\n <div class="filter-group">\n <label class="control-label" data-i18n="inspector.factValue" for="search-filter-fact-value">\n Fact Value\n </label>\n <select id="search-filter-fact-value">\n <option value="*">-</option>\n <option value="negative" data-i18n="inspector.negative">Negative</option>\n <option value="positive" data-i18n="inspector.positive">Positive</option>\n </select>\n </div>\n\n <div id="search-filter-period" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-period-multiselect">\n <button data-i18n="inspector.period">Period</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-period-multiselect">\n </select>\n </div>\n </div>\n\n <div id="search-filter-namespaces" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-namespace-multiselect">\n <button data-i18n="inspector.namespaces">Namespaces</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body namespaces resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-namespace-multiselect">\n </select>\n </div>\n </div>\n\n <div id="search-filter-datatypes" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-datatype-multiselect">\n <button data-i18n="inspector.datatypes">Types</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body datatypes resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-datatype-multiselect">\n </select>\n <div class="datatype-conflict-warning" data-i18n="search.dataTypeConflictWarning">Warning: selection conflicts with Concept Type filter</div>\n </div>\n </div>\n\n <div id="search-filter-target-document" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-target-document-multiselect">\n <button data-i18n="inspector.targetDocument">Target Document</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body target-document resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-target-document-multiselect">\n </select>\n </div>\n </div>\n\n <div id="search-filter-units" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-units-multiselect">\n <button data-i18n="inspector.units">Units</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body units resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-units-multiselect">\n </select>\n </div>\n </div>\n\n <div id="search-filter-scales" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-scales-multiselect">\n <button data-i18n="inspector.scales">Scales</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body scales resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-scales-multiselect">\n </select>\n </div>\n </div>\n\n <div id="search-filter-dimension-type" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-dimension-type-multiselect">\n <button data-i18n="inspector.dimensions">Dimension Type</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body dimensions resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" size="2" id="search-filter-dimension-type-multiselect">\n <option value="explicit" data-i18n="inspector.explicitDimension">Explicit Dimensions</option>\n <option value="typed" data-i18n="inspector.typedDimensions">Typed Dimensions</option>\n </select>\n </div>\n </div>\n\n <div id="search-filter-calculations" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-calculations-multiselect">\n <button data-i18n="inspector.calculations">Calculations</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body calculations resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" size="2" id="search-filter-calculations-multiselect">\n <option value="summation" data-i18n="inspector.summation">Summation</option>\n <option value="contributor" data-i18n="inspector.contributor">Contributor</option>\n </select>\n </div>\n </div>\n\n <div class="checkboxes">\n <div id="mandatory-fact-filter-checkbox">\n <label class="checkbox">\n <input id="search-mandatory-fact-filter" type="checkbox" style="display: none;"/> <span data-i18n="inspector.mandatoryFacts">Only Mandatory Facts</span>\n <span class="checkmark"></span>\n </label>\n </div>\n </div>\n\n </div>\n </div> \x3c!-- search controls --\x3e\n\n <div class="inspector-body">\n\n <section class="search-results search-mode-only" data-i18n="[aria-label]inspector.searchResults" aria-label="Search results">\n <div class="results fact-list">\n </div>\n <div class="search-overlay">\n <div class="search-overlay-icon"></div>\n <div class="search-overlay-text search-ready-only"><p class="title" data-i18n="inspector.factSearch">Fact Search</p><p class="text">Please enter some search terms</p></div>\n <div class="search-overlay-text search-not-ready-only"><p class="title" data-i18n="inspector.factSearch">Fact Search</p><p class="text">Please wait - building index...</p></div>\n </div>\n </section>\n </div> \n </div>\n\n <div class="inspector-container summary-mode-only summary">\n <div class="inspector-title">\n <button class="back" title="Back"></button>\n <h2 data-i18n="inspector.documentSummary">Document Summary</h2>\n </div>\n <div class="inspector-body">\n <div class="body">\n <div class="collapsible-section fact-summary">\n <h3 class="collapsible-header"><button data-i18n="inspector.summary.fact.header">Fact Summary</button></h3>\n <div class="collapsible-body">\n <table class="property-table numeric">\n <tr class="hidden-facts">\n <th class="has-tooltip">\n <span data-i18n="inspector.summary.fact.hidden">Hidden facts</span>\n <button class="tooltip-icon" data-tooltip-name="hiddenFacts"></button>\n </th>\n <td>\n <button class="hidden-facts-value"></button>\n </td>\n </tr>\n <tr class="mandatory-facts" id="mandatory-facts-row" style="display: none;">\n <th class="has-tooltip">\n <span data-i18n="inspector.summary.fact.mandatory">Mandatory Facts:</span>\n <button class="tooltip-icon" data-tooltip-name="mandatoryFacts"></button>\n <td>\n <button class="mandatory-facts-value"></button>\n </td>\n </th></tr>\n <tr class="total-facts">\n <th>\n <span data-i18n="inspector.summary.fact.total">Total facts</span>\n </th>\n <td>\n <button class="total-facts-value"></button>\n </td>\n </tr>\n </table>\n </div>\n </div>\n <div class="collapsible-section tag-summary">\n <h3 class="collapsible-header"><button data-i18n="inspector.summary.tag.header">Tag Summary</button></h3>\n <div class="collapsible-body">\n <div class="tag-summary-body">\n <table>\n <thead>\n <tr>\n <th scope="col" class="namespace has-tooltip">\n <span data-i18n="inspector.summary.tag.colNamespace">Namespace</span>\n <button class="tooltip-icon" data-tooltip-name="namespace"></button>\n </th>\n <th scope="col" class="figure">\n <div class="has-tooltip">\n <span data-i18n="inspector.summary.tag.colConcepts">Concepts</span>\n <button class="tooltip-icon" data-tooltip-name="conceptsCount"></button>\n </div>\n </th>\n <th scope="col" class="figure">\n <div class="has-tooltip">\n <span data-i18n="inspector.summary.tag.colDimensions">Dimensions</span>\n <button class="tooltip-icon" data-tooltip-name="dimensionsCount"></button>\n </div>\n </th>\n <th scope="col" class="figure">\n <div class="has-tooltip">\n <span data-i18n="inspector.summary.tag.colMembers">Members</span>\n <button class="tooltip-icon" data-tooltip-name="membersCount"></button>\n </div>\n </th>\n <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colTotal">Total</div></th>\n </tr>\n </thead>\n <tbody class="tag-summary-table-body">\n </tbody>\n <tfoot>\n <tr class="tag-summary-table-footer-row">\n <th scope="row" data-i18n="inspector.summary.tag.rowTotal">Total</th>\n </tr>\n </tfoot>\n </table>\n </div>\n </div>\n </div>\n <div class="collapsible-section files-summary">\n <h3 class="collapsible-header">\n <div class="has-tooltip">\n <button data-i18n="inspector.summary.file.header">File Summary</button>\n <button class="tooltip-icon" data-tooltip-name="fileSummary"></button>\n </div>\n </h3>\n <div class="collapsible-body">\n <div class="file-summary-container">\n <div class="files inline-docs">\n <span class="files-summary-title" data-i18n="inspector.summary.file.inline">Inline Documents</span>\n <ul></ul>\n </div>\n <div class="files schemas">\n <span class="files-summary-title" data-i18n="inspector.summary.file.schemas">Schemas</span>\n <ul></ul>\n </div>\n <div class="files pres-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.presentation">Presentation Linkbases</span>\n <ul></ul>\n </div>\n <div class="files calc-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.calculations">Calculation Linkbases</span>\n <ul></ul>\n </div>\n <div class="files def-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.definitions">Definition Linkbases</span>\n <ul></ul>\n </div>\n <div class="files label-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.labels">Label Linkbases</span>\n <ul></ul>\n </div>\n <div class="files ref-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.references">Reference Linkbases</span>\n <ul></ul>\n </div>\n <div class="files other-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.other">Other Linkbases</span>\n <ul></ul>\n </div>\n </div>\n </div>\n </div>\n <div class="collapsible-section report-creation">\n <h3 class="collapsible-header" data-i18n="inspector.summary.reportCreation">Report Creation</h3>\n <div class="collapsible-body">\n <ul></ul>\n </div>\n </div>\n </div>\n </div> \x3c!-- inspector-body --\x3e\n </div> \x3c!-- summary --\x3e\n\n <div class="inspector-container outline-mode-only outline">\n <div class="inspector-title">\n <button class="back" title="Back"></button>\n <h2 data-i18n="inspector.documentOutline">Document Outline</h2>\n </div>\n <div class="inspector-body">\n <div class="no-outline-overlay">\n <div class="no-outline-overlay-icon"></div>\n <p class="title" data-i18n="inspector.outlineUnavailable">Outline Unavailable</p>\n </div>\n <div class="body">\n </div>\n </div>\n </div>\n <footer class="inspector-foot powered-by">\n <div id="footer-logo"></div>\n <div class="version"></div>\n </footer>\n <div class="failed-to-load-mask"></div>\n </section>\n <div id="tooltip" class="tooltip">\n <span class="tooltip-text"></span> \n <div class="glossary-link">\n <a target="_blank" href="#" data-i18n="inspector.xbrlGlossaryOpensInNewTab"></a>\n </div>\n </div>\n <div class="dialog-mask">\n </div>\n <div id="dialog-container"></div>\n <div id="dialog-templates">\n <dialog class="dialog full-screen chart" role="dialog" data-i18n="[aria-label]chart.comparisonChart" aria-label="Comparison chart">\n <button title="Close" data-i18n="[title]dialog.close" class="close"></button>\n <div class="contents" role="figure" data-i18n="[aria-label]chart.comparisonChart" aria-label="Comparison chart">\n <div class="chart-container"><canvas id="chart-canvas"></canvas></div>\n <div class="other-aspects"></div>\n </div>\n </dialog>\n <dialog class="dialog validation-report" role="dialog" aria-labelledby="validation-results-title">\n <button title="Close" data-i18n="[title]dialog.close" class="close"></button>\n <div class="contents">\n <h2 id="validation-results-title" data-i18n="inspector.validationResults">Validation results</h2>\n <table>\n <thead>\n <th data-i18n="inspector.validationSeverity">Severity</th>\n <th data-i18n="inspector.validationCode">Code</th>\n <th data-i18n="inspector.validationMessage">Message</th>\n </thead>\n <tbody>\n\n </tbody>\n </table>\n <div class="buttons">\n </div>\n </div>\n </dialog>\n <dialog class="dialog calculation-inspector" role="dialog" aria-labelledby="calculation-inspector-title">\n <button title="Close" data-i18n="[title]dialog.close" class="close"></button>\n <div class="contents">\n <h2 id="calculation-inspector-title" data-i18n="inspector.calculationDetails">Calculation details</h2>\n <table class="calculation-trace">\n <thead>\n <tr>\n <th class="weight"></th>\n <th class="line-item" data-i18n="calculation.concept">Concept</th>\n <th class="value-column" data-i18n="calculation.reported-value">Reported Value</th>\n <th class="icons"></th>\n <th class="value-column calc11-only" data-i18n="calculation.minimum">Minimum</th>\n <th class="value-column calc11-only" data-i18n="calculation.maximum">Maximum</th>\n </tr>\n </thead>\n <tbody>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="6" class="status"><span class="icon"></span> <span class="message"></span></td>\n </tr>\n </tfoot>\n </table>\n <div class="buttons">\n </div>\n </div>\n </dialog>\n <dialog class="dialog text-block-viewer" role="dialog" aria-labelledby="text-block-viewer-title">\n <button title="Close" data-i18n="[title]dialog.close" class="close"></button>\n <div class="contents">\n <h2 id="text-block-viewer-title" class="title"></h2>\n <iframe id="text-block-viewer-iframe"></iframe>\n <div class="controls">\n <label class="checkbox">\n <input id="text-block-viewer-plain-text" type="checkbox"/> <span data-i18n="inspector.showTextOnly">Show text only</span>\n <span class="checkmark"></span>\n </label>\n </div>\n <div class="buttons">\n </div>\n </div>\n </dialog>\n <dialog class="dialog message-box" role="dialog" aria-labelledby="message-box-title">\n <button title="Close" data-i18n="[title]dialog.close" class="close"></button>\n <div class="contents">\n <h2 id="message-box-title" class="title"></h2>\n <div class="message">\n </div>\n <div class="buttons">\n </div>\n </div>\n </dialog></div>\n \n</div>\n`;t.exports=i},806:function(t,e,n){(t=n.nmd(t)).exports=function(){"use strict";function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function n(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function s(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}(this,n)}}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},p.apply(this,arguments)}function f(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}var g=function(t){return!(!t||!t.Window)&&t instanceof t.Window},m=void 0,v=void 0;function y(t){m=t;var e=t.document.createTextNode("");e.ownerDocument!==t.document&&"function"==typeof t.wrap&&t.wrap(e)===e&&(t=t.wrap(t)),v=t}function b(t){return g(t)?t:(t.ownerDocument||t).defaultView||v.window}"undefined"!=typeof window&&window&&y(window);var w=function(t){return!!t&&"object"===i(t)},A=function(t){return"function"==typeof t},x=function(t){return t===v||g(t)},C=function(t){return w(t)&&11===t.nodeType},M=w,L=A,I=function(t){return"number"==typeof t},_=function(t){return"boolean"==typeof t},S=function(t){return"string"==typeof t},k=function(t){if(!t||"object"!==i(t))return!1;var e=b(t)||v;return/object|function/.test("undefined"==typeof Element?"undefined":i(Element))?t instanceof Element||t instanceof e.Element:1===t.nodeType&&"string"==typeof t.nodeName},T=function(t){return w(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},D=function(t){return w(t)&&void 0!==t.length&&A(t.splice)};function j(t){var e=t.interaction;if("drag"===e.prepared.name){var n=e.prepared.axis;"x"===n?(e.coords.cur.page.y=e.coords.start.page.y,e.coords.cur.client.y=e.coords.start.client.y,e.coords.velocity.client.y=0,e.coords.velocity.page.y=0):"y"===n&&(e.coords.cur.page.x=e.coords.start.page.x,e.coords.cur.client.x=e.coords.start.client.x,e.coords.velocity.client.x=0,e.coords.velocity.page.x=0)}}function N(t){var e=t.iEvent,n=t.interaction;if("drag"===n.prepared.name){var i=n.prepared.axis;if("x"===i||"y"===i){var r="x"===i?"y":"x";e.page[r]=n.coords.start.page[r],e.client[r]=n.coords.start.client[r],e.delta[r]=0}}}var O={id:"actions/drag",install:function(t){var e=t.actions,n=t.Interactable,i=t.defaults;n.prototype.draggable=O.draggable,e.map.drag=O,e.methodDict.drag="draggable",i.actions.drag=O.defaults},listeners:{"interactions:before-action-move":j,"interactions:action-resume":j,"interactions:action-move":N,"auto-start:check":function(t){var e=t.interaction,n=t.interactable,i=t.buttons,r=n.options.drag;if(r&&r.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||i&n.options.drag.mouseButtons))return t.action={name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis},!1}},draggable:function(t){return M(t)?(this.options.drag.enabled=!1!==t.enabled,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):_(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:j,move:N,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return 0===t.search("drag")}},E=O,z={init:function(t){var e=t;z.document=e.document,z.DocumentFragment=e.DocumentFragment||F,z.SVGElement=e.SVGElement||F,z.SVGSVGElement=e.SVGSVGElement||F,z.SVGElementInstance=e.SVGElementInstance||F,z.Element=e.Element||F,z.HTMLElement=e.HTMLElement||z.Element,z.Event=e.Event,z.Touch=e.Touch||F,z.PointerEvent=e.PointerEvent||e.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function F(){}var R=z,P={init:function(t){var e=R.Element,n=t.navigator||{};P.supportsTouch="ontouchstart"in t||L(t.DocumentTouch)&&R.document instanceof t.DocumentTouch,P.supportsPointerEvent=!1!==n.pointerEnabled&&!!R.PointerEvent,P.isIOS=/iP(hone|od|ad)/.test(n.platform),P.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),P.isIe9=/MSIE 9/.test(n.userAgent),P.isOperaMobile="Opera"===n.appName&&P.supportsTouch&&/Presto/.test(n.userAgent),P.prefixedMatchesSelector="matches"in e.prototype?"matches":"webkitMatchesSelector"in e.prototype?"webkitMatchesSelector":"mozMatchesSelector"in e.prototype?"mozMatchesSelector":"oMatchesSelector"in e.prototype?"oMatchesSelector":"msMatchesSelector",P.pEventTypes=P.supportsPointerEvent?R.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,P.wheelEvent=R.document&&"onmousewheel"in R.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},Y=P;function U(t,e){if(t.contains)return t.contains(e);for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function B(t,e){for(;k(t);){if(Z(t,e))return t;t=W(t)}return null}function W(t){var e=t.parentNode;if(C(e)){for(;(e=e.host)&&C(e););return e}return e}function Z(t,e){return v!==m&&(e=e.replace(/\/deep\//g," ")),t[Y.prefixedMatchesSelector](e)}var H=function(t){return t.parentNode||t.host};function G(t,e){for(var n,i=[],r=t;(n=H(r))&&r!==e&&n!==r.ownerDocument;)i.unshift(r),r=n;return i}function V(t,e,n){for(;k(t);){if(Z(t,e))return!0;if((t=W(t))===n)return Z(t,e)}return!1}function Q(t){return t.correspondingUseElement||t}function J(t){var e=t instanceof R.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return e&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}function X(t){var e,n=J(t);if(!Y.isIOS7&&n){var i={x:(e=(e=b(t))||v).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop};n.left+=i.x,n.right+=i.x,n.top+=i.y,n.bottom+=i.y}return n}function K(t){for(var e=[];t;)e.push(t),t=W(t);return e}function q(t){return!!S(t)&&(R.document.querySelector(t),!0)}function $(t,e){for(var n in e)t[n]=e[n];return t}function tt(t,e,n){return"parent"===t?W(n):"self"===t?e.getRect(n):B(n,t)}function et(t,e,n,i){var r=t;return S(r)?r=tt(r,e,n):L(r)&&(r=r.apply(void 0,i)),k(r)&&(r=X(r)),r}function nt(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function it(t){return!t||"x"in t&&"y"in t||((t=$({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function rt(t,e,n){t.left&&(e.left+=n.x),t.right&&(e.right+=n.x),t.top&&(e.top+=n.y),t.bottom&&(e.bottom+=n.y),e.width=e.right-e.left,e.height=e.bottom-e.top}function ot(t,e,n){var i=n&&t.options[n];return nt(et(i&&i.origin||t.options.origin,t,e,[t&&e]))||{x:0,y:0}}function st(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t){return!0},i=arguments.length>3?arguments[3]:void 0;if(i=i||{},S(t)&&-1!==t.search(" ")&&(t=at(t)),D(t))return t.forEach((function(t){return st(t,e,n,i)})),i;if(M(t)&&(e=t,t=""),L(e)&&n(t))i[t]=i[t]||[],i[t].push(e);else if(D(e))for(var r=0,o=e;r<o.length;r++){var s=o[r];st(t,s,n,i)}else if(M(e))for(var a in e)st(at(a).map((function(e){return"".concat(t).concat(e)})),e[a],n,i);return i}function at(t){return t.trim().split(/ +/)}var lt=function(t,e){return Math.sqrt(t*t+e*e)},ct=["webkit","moz"];function ut(t,e){t.__set||(t.__set={});var n=function(n){if(ct.some((function(t){return 0===n.indexOf(t)})))return 1;"function"!=typeof t[n]&&"__set"!==n&&Object.defineProperty(t,n,{get:function(){return n in t.__set?t.__set[n]:t.__set[n]=e[n]},set:function(e){t.__set[n]=e},configurable:!0})};for(var i in e)n(i);return t}function dt(t,e){t.page=t.page||{},t.page.x=e.page.x,t.page.y=e.page.y,t.client=t.client||{},t.client.x=e.client.x,t.client.y=e.client.y,t.timeStamp=e.timeStamp}function ht(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function pt(t){return t instanceof R.Event||t instanceof R.Touch}function ft(t,e,n){return t=t||"page",(n=n||{}).x=e[t+"X"],n.y=e[t+"Y"],n}function gt(t,e){return e=e||{x:0,y:0},Y.isOperaMobile&&pt(t)?(ft("screen",t,e),e.x+=window.scrollX,e.y+=window.scrollY):ft("page",t,e),e}function mt(t){return I(t.pointerId)?t.pointerId:t.identifier}function vt(t){var e=[];return D(t)?(e[0]=t[0],e[1]=t[1]):"touchend"===t.type?1===t.touches.length?(e[0]=t.touches[0],e[1]=t.changedTouches[0]):0===t.touches.length&&(e[0]=t.changedTouches[0],e[1]=t.changedTouches[1]):(e[0]=t.touches[0],e[1]=t.touches[1]),e}function yt(t){for(var e={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<t.length;n++){var i=t[n];for(var r in e)e[r]+=i[r]}for(var o in e)e[o]/=t.length;return e}function bt(t){if(!t.length)return null;var e=vt(t),n=Math.min(e[0].pageX,e[1].pageX),i=Math.min(e[0].pageY,e[1].pageY),r=Math.max(e[0].pageX,e[1].pageX),o=Math.max(e[0].pageY,e[1].pageY);return{x:n,y:i,left:n,top:i,right:r,bottom:o,width:r-n,height:o-i}}function wt(t,e){var n=e+"X",i=e+"Y",r=vt(t),o=r[0][n]-r[1][n],s=r[0][i]-r[1][i];return lt(o,s)}function At(t,e){var n=e+"X",i=e+"Y",r=vt(t),o=r[1][n]-r[0][n],s=r[1][i]-r[0][i];return 180*Math.atan2(s,o)/Math.PI}function xt(t){return S(t.pointerType)?t.pointerType:I(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof R.Touch?"touch":"mouse"}function Ct(t){var e=L(t.composedPath)?t.composedPath():t.path;return[Q(e?e[0]:t.target),Q(t.currentTarget)]}var Mt=function(){function t(e){r(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=e}return s(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(Mt.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Lt=function(t,e){for(var n=0;n<e.length;n++){var i=e[n];t.push(i)}return t},It=function(t){return Lt([],t)},_t=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1},St=function(t,e){return t[_t(t,e)]},kt=function(t){l(n,t);var e=h(n);function n(t,i,o){var s;r(this,n),(s=e.call(this,i._interaction)).dropzone=void 0,s.dragEvent=void 0,s.relatedTarget=void 0,s.draggable=void 0,s.propagationStopped=!1,s.immediatePropagationStopped=!1;var a="dragleave"===o?t.prev:t.cur,l=a.element,c=a.dropzone;return s.type=o,s.target=l,s.currentTarget=l,s.dropzone=c,s.dragEvent=i,s.relatedTarget=i.target,s.draggable=i.interactable,s.timeStamp=i.timeStamp,s}return s(n,[{key:"reject",value:function(){var t=this,e=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&e.cur.dropzone===this.dropzone&&e.cur.element===this.target)if(e.prev.dropzone=this.dropzone,e.prev.element=this.target,e.rejected=!0,e.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var i=e.activeDrops,r=_t(i,(function(e){var n=e.dropzone,i=e.element;return n===t.dropzone&&i===t.target}));e.activeDrops.splice(r,1);var o=new n(e,this.dragEvent,"dropdeactivate");o.dropzone=this.dropzone,o.target=this.target,this.dropzone.fire(o)}else this.dropzone.fire(new n(e,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),n}(Mt);function Tt(t,e){for(var n=0,i=t.slice();n<i.length;n++){var r=i[n],o=r.dropzone,s=r.element;e.dropzone=o,e.target=s,o.fire(e),e.propagationStopped=e.immediatePropagationStopped=!1}}function Dt(t,e){for(var n=function(t,e){for(var n=[],i=0,r=t.interactables.list;i<r.length;i++){var o=r[i];if(o.options.drop.enabled){var s=o.options.drop.accept;if(!(k(s)&&s!==e||S(s)&&!Z(e,s)||L(s)&&!s({dropzone:o,draggableElement:e})))for(var a=0,l=o.getAllElements();a<l.length;a++){var c=l[a];c!==e&&n.push({dropzone:o,element:c,rect:o.getRect(c)})}}}return n}(t,e),i=0;i<n.length;i++){var r=n[i];r.rect=r.dropzone.getRect(r.element)}return n}function jt(t,e,n){for(var i=t.dropState,r=t.interactable,o=t.element,s=[],a=0,l=i.activeDrops;a<l.length;a++){var c=l[a],u=c.dropzone,d=c.element,h=c.rect,p=u.dropCheck(e,n,r,o,d,h);s.push(p?d:null)}var f=function(t){for(var e,n,i,r=[],o=0;o<t.length;o++){var s=t[o],a=t[e];if(s&&o!==e)if(a){var l=H(s),c=H(a);if(l!==s.ownerDocument)if(c!==s.ownerDocument)if(l!==c){r=r.length?r:G(a);var u=void 0;if(a instanceof R.HTMLElement&&s instanceof R.SVGElement&&!(s instanceof R.SVGSVGElement)){if(s===c)continue;u=s.ownerSVGElement}else u=s;for(var d=G(u,a.ownerDocument),h=0;d[h]&&d[h]===r[h];)h++;var p=[d[h-1],d[h],r[h]];if(p[0])for(var f=p[0].lastChild;f;){if(f===p[1]){e=o,r=d;break}if(f===p[2])break;f=f.previousSibling}}else i=a,(parseInt(b(n=s).getComputedStyle(n).zIndex,10)||0)>=(parseInt(b(i).getComputedStyle(i).zIndex,10)||0)&&(e=o);else e=o}else e=o}return e}(s);return i.activeDrops[f]||null}function Nt(t,e,n){var i=t.dropState,r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===n.type&&(r.activate=new kt(i,n,"dropactivate"),r.activate.target=null,r.activate.dropzone=null),"dragend"===n.type&&(r.deactivate=new kt(i,n,"dropdeactivate"),r.deactivate.target=null,r.deactivate.dropzone=null),i.rejected||(i.cur.element!==i.prev.element&&(i.prev.dropzone&&(r.leave=new kt(i,n,"dragleave"),n.dragLeave=r.leave.target=i.prev.element,n.prevDropzone=r.leave.dropzone=i.prev.dropzone),i.cur.dropzone&&(r.enter=new kt(i,n,"dragenter"),n.dragEnter=i.cur.element,n.dropzone=i.cur.dropzone)),"dragend"===n.type&&i.cur.dropzone&&(r.drop=new kt(i,n,"drop"),n.dropzone=i.cur.dropzone,n.relatedTarget=i.cur.element),"dragmove"===n.type&&i.cur.dropzone&&(r.move=new kt(i,n,"dropmove"),n.dropzone=i.cur.dropzone)),r}function Ot(t,e){var n=t.dropState,i=n.activeDrops,r=n.cur,o=n.prev;e.leave&&o.dropzone.fire(e.leave),e.enter&&r.dropzone.fire(e.enter),e.move&&r.dropzone.fire(e.move),e.drop&&r.dropzone.fire(e.drop),e.deactivate&&Tt(i,e.deactivate),n.prev.dropzone=r.dropzone,n.prev.element=r.element}function Et(t,e){var n=t.interaction,i=t.iEvent,r=t.event;if("dragmove"===i.type||"dragend"===i.type){var o=n.dropState;e.dynamicDrop&&(o.activeDrops=Dt(e,n.element));var s=i,a=jt(n,s,r);o.rejected=o.rejected&&!!a&&a.dropzone===o.cur.dropzone&&a.element===o.cur.element,o.cur.dropzone=a&&a.dropzone,o.cur.element=a&&a.element,o.events=Nt(n,0,s)}}var zt={id:"actions/drop",install:function(t){var e=t.actions,n=t.interactStatic,i=t.Interactable,r=t.defaults;t.usePlugin(E),i.prototype.dropzone=function(t){return function(t,e){if(M(e)){if(t.options.drop.enabled=!1!==e.enabled,e.listeners){var n=st(e.listeners),i=Object.keys(n).reduce((function(t,e){return t[/^(enter|leave)/.test(e)?"drag".concat(e):/^(activate|deactivate|move)/.test(e)?"drop".concat(e):e]=n[e],t}),{}),r=t.options.drop.listeners;r&&t.off(r),t.on(i),t.options.drop.listeners=i}return L(e.ondrop)&&t.on("drop",e.ondrop),L(e.ondropactivate)&&t.on("dropactivate",e.ondropactivate),L(e.ondropdeactivate)&&t.on("dropdeactivate",e.ondropdeactivate),L(e.ondragenter)&&t.on("dragenter",e.ondragenter),L(e.ondragleave)&&t.on("dragleave",e.ondragleave),L(e.ondropmove)&&t.on("dropmove",e.ondropmove),/^(pointer|center)$/.test(e.overlap)?t.options.drop.overlap=e.overlap:I(e.overlap)&&(t.options.drop.overlap=Math.max(Math.min(1,e.overlap),0)),"accept"in e&&(t.options.drop.accept=e.accept),"checker"in e&&(t.options.drop.checker=e.checker),t}return _(e)?(t.options.drop.enabled=e,t):t.options.drop}(this,t)},i.prototype.dropCheck=function(t,e,n,i,r,o){return function(t,e,n,i,r,o,s){var a=!1;if(!(s=s||t.getRect(o)))return!!t.options.drop.checker&&t.options.drop.checker(e,n,a,t,o,i,r);var l=t.options.drop.overlap;if("pointer"===l){var c=ot(i,r,"drag"),u=gt(e);u.x+=c.x,u.y+=c.y;var d=u.x>s.left&&u.x<s.right,h=u.y>s.top&&u.y<s.bottom;a=d&&h}var p=i.getRect(r);if(p&&"center"===l){var f=p.left+p.width/2,g=p.top+p.height/2;a=f>=s.left&&f<=s.right&&g>=s.top&&g<=s.bottom}return p&&I(l)&&(a=Math.max(0,Math.min(s.right,p.right)-Math.max(s.left,p.left))*Math.max(0,Math.min(s.bottom,p.bottom)-Math.max(s.top,p.top))/(p.width*p.height)>=l),t.options.drop.checker&&(a=t.options.drop.checker(e,n,a,t,o,i,r)),a}(this,t,e,n,i,r,o)},n.dynamicDrop=function(e){return _(e)?(t.dynamicDrop=e,n):t.dynamicDrop},$(e.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),e.methodDict.drop="dropzone",t.dynamicDrop=!1,r.actions.drop=zt.defaults},listeners:{"interactions:before-action-start":function(t){var e=t.interaction;"drag"===e.prepared.name&&(e.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,e){var n=t.interaction,i=(t.event,t.iEvent);if("drag"===n.prepared.name){var r=n.dropState;r.activeDrops=[],r.events={},r.activeDrops=Dt(e,n.element),r.events=Nt(n,0,i),r.events.activate&&(Tt(r.activeDrops,r.events.activate),e.fire("actions/drop:start",{interaction:n,dragEvent:i}))}},"interactions:action-move":Et,"interactions:after-action-move":function(t,e){var n=t.interaction,i=t.iEvent;if("drag"===n.prepared.name){var r=n.dropState;Ot(n,r.events),e.fire("actions/drop:move",{interaction:n,dragEvent:i}),r.events={}}},"interactions:action-end":function(t,e){if("drag"===t.interaction.prepared.name){var n=t.interaction,i=t.iEvent;Et(t,e),Ot(n,n.dropState.events),e.fire("actions/drop:end",{interaction:n,dragEvent:i})}},"interactions:stop":function(t){var e=t.interaction;if("drag"===e.prepared.name){var n=e.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:Dt,getDrop:jt,getDropEvents:Nt,fireDropEvents:Ot,filterEventType:function(t){return 0===t.search("drag")||0===t.search("drop")},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Ft=zt;function Rt(t){var e=t.interaction,n=t.iEvent,i=t.phase;if("gesture"===e.prepared.name){var r=e.pointers.map((function(t){return t.pointer})),o="start"===i,s="end"===i,a=e.interactable.options.deltaSource;if(n.touches=[r[0],r[1]],o)n.distance=wt(r,a),n.box=bt(r),n.scale=1,n.ds=0,n.angle=At(r,a),n.da=0,e.gesture.startDistance=n.distance,e.gesture.startAngle=n.angle;else if(s||e.pointers.length<2){var l=e.prevEvent;n.distance=l.distance,n.box=l.box,n.scale=l.scale,n.ds=0,n.angle=l.angle,n.da=0}else n.distance=wt(r,a),n.box=bt(r),n.scale=n.distance/e.gesture.startDistance,n.angle=At(r,a),n.ds=n.scale-e.gesture.scale,n.da=n.angle-e.gesture.angle;e.gesture.distance=n.distance,e.gesture.angle=n.angle,I(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(e.gesture.scale=n.scale)}}var Pt={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var e=t.actions,n=t.Interactable,i=t.defaults;n.prototype.gesturable=function(t){return M(t)?(this.options.gesture.enabled=!1!==t.enabled,this.setPerAction("gesture",t),this.setOnEvents("gesture",t),this):_(t)?(this.options.gesture.enabled=t,this):this.options.gesture},e.map.gesture=Pt,e.methodDict.gesture="gesturable",i.actions.gesture=Pt.defaults},listeners:{"interactions:action-start":Rt,"interactions:action-move":Rt,"interactions:action-end":Rt,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var e=t.interactable.options.gesture;if(e&&e.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return 0===t.search("gesture")}},Yt=Pt;function Ut(t,e,n,i,r,o,s){if(!e)return!1;if(!0===e){var a=I(o.width)?o.width:o.right-o.left,l=I(o.height)?o.height:o.bottom-o.top;if(s=Math.min(s,Math.abs(("left"===t||"right"===t?a:l)/2)),a<0&&("left"===t?t="right":"right"===t&&(t="left")),l<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t){var c=a>=0?o.left:o.right;return n.x<c+s}if("top"===t){var u=l>=0?o.top:o.bottom;return n.y<u+s}if("right"===t)return n.x>(a>=0?o.right:o.left)-s;if("bottom"===t)return n.y>(l>=0?o.bottom:o.top)-s}return!!k(i)&&(k(e)?e===i:V(i,e,r))}function Bt(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.resizeAxes){var i=e;n.interactable.options.resize.square?("y"===n.resizeAxes?i.delta.x=i.delta.y:i.delta.y=i.delta.x,i.axes="xy"):(i.axes=n.resizeAxes,"x"===n.resizeAxes?i.delta.y=0:"y"===n.resizeAxes&&(i.delta.x=0))}}var Wt,Zt,Ht={id:"actions/resize",before:["actions/drag"],install:function(t){var e=t.actions,n=t.browser,i=t.Interactable,r=t.defaults;Ht.cursors=function(t){return t.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),Ht.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,i.prototype.resizable=function(e){return function(t,e,n){return M(e)?(t.options.resize.enabled=!1!==e.enabled,t.setPerAction("resize",e),t.setOnEvents("resize",e),S(e.axis)&&/^x$|^y$|^xy$/.test(e.axis)?t.options.resize.axis=e.axis:null===e.axis&&(t.options.resize.axis=n.defaults.actions.resize.axis),_(e.preserveAspectRatio)?t.options.resize.preserveAspectRatio=e.preserveAspectRatio:_(e.square)&&(t.options.resize.square=e.square),t):_(e)?(t.options.resize.enabled=e,t):t.options.resize}(this,e,t)},e.map.resize=Ht,e.methodDict.resize="resizable",r.actions.resize=Ht.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){!function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=e,r=n.rect;n._rects={start:$({},r),corrected:$({},r),previous:$({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}}(t),Bt(t)},"interactions:action-move":function(t){!function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=e,r=n.interactable.options.resize.invert,o="reposition"===r||"negate"===r,s=n.rect,a=n._rects,l=a.start,c=a.corrected,u=a.delta,d=a.previous;if($(d,c),o){if($(c,s),"reposition"===r){if(c.top>c.bottom){var h=c.top;c.top=c.bottom,c.bottom=h}if(c.left>c.right){var p=c.left;c.left=c.right,c.right=p}}}else c.top=Math.min(s.top,l.bottom),c.bottom=Math.max(s.bottom,l.top),c.left=Math.min(s.left,l.right),c.right=Math.max(s.right,l.left);for(var f in c.width=c.right-c.left,c.height=c.bottom-c.top,c)u[f]=c[f]-d[f];i.edges=n.prepared.edges,i.rect=c,i.deltaRect=u}}(t),Bt(t)},"interactions:action-end":function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=e;i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}},"auto-start:check":function(t){var e=t.interaction,n=t.interactable,i=t.element,r=t.rect,o=t.buttons;if(r){var s=$({},e.coords.cur.page),a=n.options.resize;if(a&&a.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||o&a.mouseButtons)){if(M(a.edges)){var l={left:!1,right:!1,top:!1,bottom:!1};for(var c in l)l[c]=Ut(c,a.edges[c],s,e._latestPointer.eventTarget,i,r,a.margin||Ht.defaultMargin);l.left=l.left&&!l.right,l.top=l.top&&!l.bottom,(l.left||l.right||l.top||l.bottom)&&(t.action={name:"resize",edges:l})}else{var u="y"!==a.axis&&s.x>r.right-Ht.defaultMargin,d="x"!==a.axis&&s.y>r.bottom-Ht.defaultMargin;(u||d)&&(t.action={name:"resize",axes:(u?"x":"")+(d?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var e=t.edges,n=t.axis,i=t.name,r=Ht.cursors,o=null;if(n)o=r[i+n];else if(e){for(var s="",a=0,l=["top","bottom","left","right"];a<l.length;a++){var c=l[a];e[c]&&(s+=c)}o=r[s]}return o},filterEventType:function(t){return 0===t.search("resize")},defaultMargin:null},Gt=Ht,Vt={id:"actions",install:function(t){t.usePlugin(Yt),t.usePlugin(Gt),t.usePlugin(E),t.usePlugin(Ft)}},Qt=0,Jt=function(t){return Wt(t)},Xt=function(t){return Zt(t)},Kt=function(t){if(Wt=t.requestAnimationFrame,Zt=t.cancelAnimationFrame,!Wt)for(var e=["ms","moz","webkit","o"],n=0;n<e.length;n++){var i=e[n];Wt=t["".concat(i,"RequestAnimationFrame")],Zt=t["".concat(i,"CancelAnimationFrame")]||t["".concat(i,"CancelRequestAnimationFrame")]}Wt=Wt&&Wt.bind(t),Zt=Zt&&Zt.bind(t),Wt||(Wt=function(e){var n=Date.now(),i=Math.max(0,16-(n-Qt)),r=t.setTimeout((function(){e(n+i)}),i);return Qt=n+i,r},Zt=function(t){return clearTimeout(t)})},qt={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(t){qt.isScrolling=!0,Xt(qt.i),t.autoScroll=qt,qt.interaction=t,qt.prevTime=qt.now(),qt.i=Jt(qt.scroll)},stop:function(){qt.isScrolling=!1,qt.interaction&&(qt.interaction.autoScroll=null),Xt(qt.i)},scroll:function(){var t=qt.interaction,e=t.interactable,n=t.element,i=t.prepared.name,r=e.options[i].autoScroll,o=$t(r.container,e,n),s=qt.now(),a=(s-qt.prevTime)/1e3,l=r.speed*a;if(l>=1){var c={x:qt.x*l,y:qt.y*l};if(c.x||c.y){var u=te(o);x(o)?o.scrollBy(c.x,c.y):o&&(o.scrollLeft+=c.x,o.scrollTop+=c.y);var d=te(o),h={x:d.x-u.x,y:d.y-u.y};(h.x||h.y)&&e.fire({type:"autoscroll",target:n,interactable:e,delta:h,interaction:t,container:o})}qt.prevTime=s}qt.isScrolling&&(Xt(qt.i),qt.i=Jt(qt.scroll))},check:function(t,e){var n;return null==(n=t.options[e].autoScroll)?void 0:n.enabled},onInteractionMove:function(t){var e=t.interaction,n=t.pointer;if(e.interacting()&&qt.check(e.interactable,e.prepared.name))if(e.simulation)qt.x=qt.y=0;else{var i,r,o,s,a=e.interactable,l=e.element,c=e.prepared.name,u=a.options[c].autoScroll,d=$t(u.container,a,l);if(x(d))s=n.clientX<qt.margin,i=n.clientY<qt.margin,r=n.clientX>d.innerWidth-qt.margin,o=n.clientY>d.innerHeight-qt.margin;else{var h=J(d);s=n.clientX<h.left+qt.margin,i=n.clientY<h.top+qt.margin,r=n.clientX>h.right-qt.margin,o=n.clientY>h.bottom-qt.margin}qt.x=r?1:s?-1:0,qt.y=o?1:i?-1:0,qt.isScrolling||(qt.margin=u.margin,qt.speed=u.speed,qt.start(e))}}};function $t(t,e,n){return(S(t)?tt(t,e,n):t)||b(n)}function te(t){return x(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var ee={id:"auto-scroll",install:function(t){var e=t.defaults,n=t.actions;t.autoScroll=qt,qt.now=function(){return t.now()},n.phaselessTypes.autoscroll=!0,e.perAction.autoScroll=qt.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,qt.stop(),qt.interaction&&(qt.interaction=null)},"interactions:stop":qt.stop,"interactions:action-move":function(t){return qt.onInteractionMove(t)}}},ne=ee;function ie(t,e){var n=!1;return function(){return n||(v.console.warn(e),n=!0),t.apply(this,arguments)}}function re(t,e){return t.name=e.name,t.axis=e.axis,t.edges=e.edges,t}function oe(t){return _(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function se(t){return L(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}var ae={id:"auto-start/interactableMethods",install:function(t){var e=t.Interactable;e.prototype.getAction=function(e,n,i,r){var o=function(t,e,n,i,r){var o=t.getRect(i),s={action:null,interactable:t,interaction:n,element:i,rect:o,buttons:e.buttons||{0:1,1:4,3:8,4:16}[e.button]};return r.fire("auto-start:check",s),s.action}(this,n,i,r,t);return this.options.actionChecker?this.options.actionChecker(e,n,o,this,r,i):o},e.prototype.ignoreFrom=ie((function(t){return this._backCompatOption("ignoreFrom",t)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),e.prototype.allowFrom=ie((function(t){return this._backCompatOption("allowFrom",t)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),e.prototype.actionChecker=se,e.prototype.styleCursor=oe}};function le(t,e,n,i,r){return e.testIgnoreAllow(e.options[t.name],n,i)&&e.options[t.name].enabled&&he(e,n,t,r)?t:null}function ce(t,e,n,i,r,o,s){for(var a=0,l=i.length;a<l;a++){var c=i[a],u=r[a],d=c.getAction(e,n,t,u);if(d){var h=le(d,c,u,o,s);if(h)return{action:h,interactable:c,element:u}}}return{action:null,interactable:null,element:null}}function ue(t,e,n,i,r){var o=[],s=[],a=i;function l(t){o.push(t),s.push(a)}for(;k(a);){o=[],s=[],r.interactables.forEachMatch(a,l);var c=ce(t,e,n,o,s,i,r);if(c.action&&!c.interactable.options[c.action.name].manualStart)return c;a=W(a)}return{action:null,interactable:null,element:null}}function de(t,e,n){var i=e.action,r=e.interactable,o=e.element;i=i||{name:null},t.interactable=r,t.element=o,re(t.prepared,i),t.rect=r&&i.name?r.getRect(o):null,ge(t,n),n.fire("autoStart:prepared",{interaction:t})}function he(t,e,n,i){var r=t.options,o=r[n.name].max,s=r[n.name].maxPerElement,a=i.autoStart.maxInteractions,l=0,c=0,u=0;if(!(o&&s&&a))return!1;for(var d=0,h=i.interactions.list;d<h.length;d++){var p=h[d],f=p.prepared.name;if(p.interacting()){if(++l>=a)return!1;if(p.interactable===t){if((c+=f===n.name?1:0)>=o)return!1;if(p.element===e&&(u++,f===n.name&&u>=s))return!1}}}return a>0}function pe(t,e){return I(t)?(e.autoStart.maxInteractions=t,this):e.autoStart.maxInteractions}function fe(t,e,n){var i=n.autoStart.cursorElement;i&&i!==t&&(i.style.cursor=""),t.ownerDocument.documentElement.style.cursor=e,t.style.cursor=e,n.autoStart.cursorElement=e?t:null}function ge(t,e){var n=t.interactable,i=t.element,r=t.prepared;if("mouse"===t.pointerType&&n&&n.options.styleCursor){var o="";if(r.name){var s=n.options[r.name].cursorChecker;o=L(s)?s(r,n,i,t._interacting):e.actions.map[r.name].getCursor(r)}fe(t.element,o||"",e)}else e.autoStart.cursorElement&&fe(e.autoStart.cursorElement,"",e)}var me={id:"auto-start/base",before:["actions"],install:function(t){var e=t.interactStatic,n=t.defaults;t.usePlugin(ae),n.base.actionChecker=null,n.base.styleCursor=!0,$(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=function(e){return pe(e,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:he,cursorElement:null}},listeners:{"interactions:down":function(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget;n.interacting()||de(n,ue(n,i,r,o,e),e)},"interactions:move":function(t,e){!function(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget;"mouse"!==n.pointerType||n.pointerIsDown||n.interacting()||de(n,ue(n,i,r,o,e),e)}(t,e),function(t,e){var n=t.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){e.fire("autoStart:before-start",t);var i=n.interactable,r=n.prepared.name;r&&i&&(i.options[r].manualStart||!he(i,n.element,n.prepared,e)?n.stop():(n.start(n.prepared,i,n.element),ge(n,e)))}}(t,e)},"interactions:stop":function(t,e){var n=t.interaction,i=n.interactable;i&&i.options.styleCursor&&fe(n.element,"",e)}},maxInteractions:pe,withinInteractionLimit:he,validateAction:le},ve=me,ye={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,e){var n=t.interaction,i=t.eventTarget,r=t.dx,o=t.dy;if("drag"===n.prepared.name){var s=Math.abs(r),a=Math.abs(o),l=n.interactable.options.drag,c=l.startAxis,u=s>a?"x":s<a?"y":"xy";if(n.prepared.axis="start"===l.lockAxis?u[0]:l.lockAxis,"xy"!==u&&"xy"!==c&&c!==u){n.prepared.name=null;for(var d=i,h=function(t){if(t!==n.interactable){var r=n.interactable.options.drag;if(!r.manualStart&&t.testIgnoreAllow(r,d,i)){var o=t.getAction(n.downPointer,n.downEvent,n,d);if(o&&"drag"===o.name&&function(t,e){if(!e)return!1;var n=e.options.drag.startAxis;return"xy"===t||"xy"===n||n===t}(u,t)&&ve.validateAction(o,t,d,i,e))return t}}};k(d);){var p=e.interactables.forEachMatch(d,h);if(p){n.prepared.name="drag",n.interactable=p,n.element=d;break}d=W(d)}}}}}};function be(t){var e=t.prepared&&t.prepared.name;if(!e)return null;var n=t.interactable.options;return n[e].hold||n[e].delay}var we={id:"auto-start/hold",install:function(t){var e=t.defaults;t.usePlugin(ve),e.perAction.hold=0,e.perAction.delay=0},listeners:{"interactions:new":function(t){t.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(t){var e=t.interaction,n=be(e);n>0&&(e.autoStartHoldTimer=setTimeout((function(){e.start(e.prepared,e.interactable,e.element)}),n))},"interactions:move":function(t){var e=t.interaction,n=t.duplicate;e.autoStartHoldTimer&&e.pointerWasMoved&&!n&&(clearTimeout(e.autoStartHoldTimer),e.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var e=t.interaction;be(e)>0&&(e.prepared.name=null)}},getHoldDuration:be},Ae=we,xe={id:"auto-start",install:function(t){t.usePlugin(ve),t.usePlugin(Ae),t.usePlugin(ye)}},Ce=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):_(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function Me(t){var e=t.interaction,n=t.event;e.interactable&&e.interactable.checkAndPreventDefault(n)}var Le={id:"core/interactablePreventDefault",install:function(t){var e=t.Interactable;e.prototype.preventDefault=Ce,e.prototype.checkAndPreventDefault=function(e){return function(t,e,n){var i=t.options.preventDefault;if("never"!==i)if("always"!==i){if(e.events.supportsPassive&&/^touch(start|move)$/.test(n.type)){var r=b(n.target).document,o=e.getDocOptions(r);if(!o||!o.events||!1!==o.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(n.type)||k(n.target)&&Z(n.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||n.preventDefault()}else n.preventDefault()}(this,t,e)},t.interactions.docEvents.push({type:"dragstart",listener:function(e){for(var n=0,i=t.interactions.list;n<i.length;n++){var r=i[n];if(r.element&&(r.element===e.target||U(r.element,e.target)))return void r.interactable.checkAndPreventDefault(e)}}})},listeners:["down","move","up","cancel"].reduce((function(t,e){return t["interactions:".concat(e)]=Me,t}),{})};function Ie(t,e){if(e.phaselessTypes[t])return!0;for(var n in e.map)if(0===t.indexOf(n)&&t.substr(n.length)in e.phases)return!0;return!1}function _e(t){var e={};for(var n in t){var i=t[n];T(i)?e[n]=_e(i):D(i)?e[n]=It(i):e[n]=i}return e}var Se=function(){function t(e){r(this,t),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=e,this.result=ke(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return s(t,[{key:"start",value:function(t,e){var n,i,r=t.phase,o=this.interaction,s=function(t){var e=t.interactable.options[t.prepared.name],n=e.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(t){var n=e[t];return n&&n.enabled&&{options:n,methods:n._methods}})).filter((function(t){return!!t}))}(o);this.prepareStates(s),this.startEdges=$({},o.edges),this.edges=$({},this.startEdges),this.startOffset=(i=e,(n=o.rect)?{left:i.x-n.left,top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var a=this.fillArg({phase:r,pageCoords:e,preEnd:!1});return this.result=ke(),this.startAll(a),this.result=this.setAll(a)}},{key:"fillArg",value:function(t){var e=this.interaction;return t.interaction=e,t.interactable=e.interactable,t.element=e.element,t.rect||(t.rect=e.rect),t.edges||(t.edges=this.startEdges),t.startOffset=this.startOffset,t}},{key:"startAll",value:function(t){for(var e=0,n=this.states;e<n.length;e++){var i=n[e];i.methods.start&&(t.state=i,i.methods.start(t))}}},{key:"setAll",value:function(t){var e=t.phase,n=t.preEnd,i=t.skipModifiers,r=t.rect,o=t.edges;t.coords=$({},t.pageCoords),t.rect=$({},r),t.edges=$({},o);for(var s=i?this.states.slice(i):this.states,a=ke(t.coords,t.rect),l=0;l<s.length;l++){var c,u=s[l],d=u.options,h=$({},t.coords),p=null;null!=(c=u.methods)&&c.set&&this.shouldDo(d,n,e)&&(t.state=u,p=u.methods.set(t),rt(t.edges,t.rect,{x:t.coords.x-h.x,y:t.coords.y-h.y})),a.eventProps.push(p)}$(this.edges,t.edges),a.delta.x=t.coords.x-t.pageCoords.x,a.delta.y=t.coords.y-t.pageCoords.y,a.rectDelta.left=t.rect.left-r.left,a.rectDelta.right=t.rect.right-r.right,a.rectDelta.top=t.rect.top-r.top,a.rectDelta.bottom=t.rect.bottom-r.bottom;var f=this.result.coords,g=this.result.rect;if(f&&g){var m=a.rect.left!==g.left||a.rect.right!==g.right||a.rect.top!==g.top||a.rect.bottom!==g.bottom;a.changed=m||f.x!==a.coords.x||f.y!==a.coords.y}return a}},{key:"applyToInteraction",value:function(t){var e=this.interaction,n=t.phase,i=e.coords.cur,r=e.coords.start,o=this.result,s=this.startDelta,a=o.delta;"start"===n&&$(this.startDelta,o.delta);for(var l=0,c=[[r,s],[i,a]];l<c.length;l++){var u=c[l],d=u[0],h=u[1];d.page.x+=h.x,d.page.y+=h.y,d.client.x+=h.x,d.client.y+=h.y}var p=this.result.rectDelta,f=t.rect||e.rect;f.left+=p.left,f.right+=p.right,f.top+=p.top,f.bottom+=p.bottom,f.width=f.right-f.left,f.height=f.bottom-f.top}},{key:"setAndApply",value:function(t){var e=this.interaction,n=t.phase,i=t.preEnd,r=t.skipModifiers,o=this.setAll(this.fillArg({preEnd:i,phase:n,pageCoords:t.modifiedCoords||e.coords.cur.page}));if(this.result=o,!o.changed&&(!r||r<this.states.length)&&e.interacting())return!1;if(t.modifiedCoords){var s=e.coords.cur.page,a={x:t.modifiedCoords.x-s.x,y:t.modifiedCoords.y-s.y};o.coords.x+=a.x,o.coords.y+=a.y,o.delta.x+=a.x,o.delta.y+=a.y}this.applyToInteraction(t)}},{key:"beforeEnd",value:function(t){var e=t.interaction,n=t.event,i=this.states;if(i&&i.length){for(var r=!1,o=0;o<i.length;o++){var s=i[o];t.state=s;var a=s.options,l=s.methods,c=l.beforeEnd&&l.beforeEnd(t);if(c)return this.endResult=c,!1;r=r||!r&&this.shouldDo(a,!0,t.phase,!0)}r&&e.move({event:n,preEnd:!0})}}},{key:"stop",value:function(t){var e=t.interaction;if(this.states&&this.states.length){var n=$({states:this.states,interactable:e.interactable,element:e.element,rect:null},t);this.fillArg(n);for(var i=0,r=this.states;i<r.length;i++){var o=r[i];n.state=o,o.methods.stop&&o.methods.stop(n)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(t){this.states=[];for(var e=0;e<t.length;e++){var n=t[e],i=n.options,r=n.methods,o=n.name;this.states.push({options:i,methods:r,index:e,name:o})}return this.states}},{key:"restoreInteractionCoords",value:function(t){var e=t.interaction,n=e.coords,i=e.rect,r=e.modification;if(r.result){for(var o=r.startDelta,s=r.result,a=s.delta,l=s.rectDelta,c=0,u=[[n.start,o],[n.cur,a]];c<u.length;c++){var d=u[c],h=d[0],p=d[1];h.page.x-=p.x,h.page.y-=p.y,h.client.x-=p.x,h.client.y-=p.y}i.left-=l.left,i.right-=l.right,i.top-=l.top,i.bottom-=l.bottom}}},{key:"shouldDo",value:function(t,e,n,i){return!(!t||!1===t.enabled||i&&!t.endOnly||t.endOnly&&!e||"start"===n&&!t.setStart)}},{key:"copyFrom",value:function(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.startEdges=t.startEdges,this.edges=t.edges,this.states=t.states.map((function(t){return _e(t)})),this.result=ke($({},t.result.coords),$({},t.result.rect))}},{key:"destroy",value:function(){for(var t in this)this[t]=null}}]),t}();function ke(t,e){return{rect:e,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Te(t,e){var n=t.defaults,i={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},r=function(t){var r=t||{};for(var o in r.enabled=!1!==r.enabled,n)o in r||(r[o]=n[o]);var s={options:r,methods:i,name:e,enable:function(){return r.enabled=!0,s},disable:function(){return r.enabled=!1,s}};return s};return e&&"string"==typeof e&&(r._defaults=n,r._methods=i),r}function De(t){var e=t.iEvent,n=t.interaction.modification.result;n&&(e.modifiers=n.eventProps)}var je={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var e=t.interaction;e.modification=new Se(e)},"interactions:before-action-start":function(t){var e=t.interaction,n=t.interaction.modification;n.start(t,e.coords.start.page),e.edges=n.edges,n.applyToInteraction(t)},"interactions:before-action-move":function(t){var e=t.interaction,n=e.modification,i=n.setAndApply(t);return e.edges=n.edges,i},"interactions:before-action-end":function(t){var e=t.interaction,n=e.modification,i=n.beforeEnd(t);return e.edges=n.startEdges,i},"interactions:action-start":De,"interactions:action-move":De,"interactions:action-end":De,"interactions:after-action-start":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-move":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:stop":function(t){return t.interaction.modification.stop(t)}}},Ne=je,Oe={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Ee=function(t){l(n,t);var e=h(n);function n(t,i,o,s,a,l,c){var u;r(this,n),(u=e.call(this,t)).relatedTarget=null,u.screenX=void 0,u.screenY=void 0,u.button=void 0,u.buttons=void 0,u.ctrlKey=void 0,u.shiftKey=void 0,u.altKey=void 0,u.metaKey=void 0,u.page=void 0,u.client=void 0,u.delta=void 0,u.rect=void 0,u.x0=void 0,u.y0=void 0,u.t0=void 0,u.dt=void 0,u.duration=void 0,u.clientX0=void 0,u.clientY0=void 0,u.velocity=void 0,u.speed=void 0,u.swipe=void 0,u.axes=void 0,u.preEnd=void 0,a=a||t.element;var h=t.interactable,p=(h&&h.options||Oe).deltaSource,f=ot(h,a,o),g="start"===s,m="end"===s,v=g?d(u):t.prevEvent,y=g?t.coords.start:m?{page:v.page,client:v.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;return u.page=$({},y.page),u.client=$({},y.client),u.rect=$({},t.rect),u.timeStamp=y.timeStamp,m||(u.page.x-=f.x,u.page.y-=f.y,u.client.x-=f.x,u.client.y-=f.y),u.ctrlKey=i.ctrlKey,u.altKey=i.altKey,u.shiftKey=i.shiftKey,u.metaKey=i.metaKey,u.button=i.button,u.buttons=i.buttons,u.target=a,u.currentTarget=a,u.preEnd=l,u.type=c||o+(s||""),u.interactable=h,u.t0=g?t.pointers[t.pointers.length-1].downTime:v.t0,u.x0=t.coords.start.page.x-f.x,u.y0=t.coords.start.page.y-f.y,u.clientX0=t.coords.start.client.x-f.x,u.clientY0=t.coords.start.client.y-f.y,u.delta=g||m?{x:0,y:0}:{x:u[p].x-v[p].x,y:u[p].y-v[p].y},u.dt=t.coords.delta.timeStamp,u.duration=u.timeStamp-u.t0,u.velocity=$({},t.coords.velocity[p]),u.speed=lt(u.velocity.x,u.velocity.y),u.swipe=m||"inertiastart"===s?u.getSwipe():null,u}return s(n,[{key:"getSwipe",value:function(){var t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;var e=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;e<0&&(e+=360);var n=112.5<=e&&e<247.5,i=202.5<=e&&e<337.5;return{up:i,down:!i&&22.5<=e&&e<157.5,left:n,right:!n&&(292.5<=e||e<67.5),angle:e,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),n}(Mt);Object.defineProperties(Ee.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var ze=s((function t(e,n,i,o,s){r(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=e,this.pointer=n,this.event=i,this.downTime=o,this.downTarget=s})),Fe=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),Re=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),Pe=0,Ye=function(){function t(e){var n=this,i=e.pointerType,o=e.scopeFire;r(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=ie((function(t){this.move(t)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Pe++,this._scopeFire=o,this.pointerType=i;var s=this;this._proxy={};var a=function(t){Object.defineProperty(n._proxy,t,{get:function(){return s[t]}})};for(var l in Fe)a(l);var c=function(t){Object.defineProperty(n._proxy,t,{value:function(){return s[t].apply(s,arguments)}})};for(var u in Re)c(u);this._scopeFire("interactions:new",{interaction:this})}return s(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(t,e,n){var i=this.updatePointer(t,e,n,!0),r=this.pointers[i];this._scopeFire("interactions:down",{pointer:t,event:e,eventTarget:n,pointerIndex:i,pointerInfo:r,type:"down",interaction:this})}},{key:"start",value:function(t,e,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===t.name?2:1)||!e.options[t.name].enabled)&&(re(this.prepared,t),this.interactable=e,this.element=n,this.rect=e.getRect(n),this.edges=this.prepared.edges?$({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(t,e,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,e,n,!1);var i,r,o=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,r=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=lt(i,r)>this.pointerMoveTolerance);var s,a,l,c=this.getPointerIndex(t),u={pointer:t,pointerIndex:c,pointerInfo:this.pointers[c],event:e,type:"move",eventTarget:n,dx:i,dy:r,duplicate:o,interaction:this};o||(s=this.coords.velocity,a=this.coords.delta,l=Math.max(a.timeStamp/1e3,.001),s.page.x=a.page.x/l,s.page.y=a.page.y/l,s.client.x=a.client.x/l,s.client.y=a.client.y/l,s.timeStamp=l),this._scopeFire("interactions:move",u),o||this.simulation||(this.interacting()&&(u.type=null,this.move(u)),this.pointerWasMoved&&dt(this.coords.prev,this.coords.cur))}},{key:"move",value:function(t){t&&t.event||ht(this.coords.delta),(t=$({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{})).phase="move",this._doPhase(t)}},{key:"pointerUp",value:function(t,e,n,i){var r=this.getPointerIndex(t);-1===r&&(r=this.updatePointer(t,e,n,!1));var o=/cancel$/i.test(e.type)?"cancel":"up";this._scopeFire("interactions:".concat(o),{pointer:t,pointerIndex:r,pointerInfo:this.pointers[r],event:e,eventTarget:n,type:o,curEventTarget:i,interaction:this}),this.simulation||this.end(e),this.removePointer(t,e)}},{key:"documentBlur",value:function(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}},{key:"end",value:function(t){var e;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(e=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,!0===e&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(t){var e=mt(t);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:_t(this.pointers,(function(t){return t.id===e}))}},{key:"getPointerInfo",value:function(t){return this.pointers[this.getPointerIndex(t)]}},{key:"updatePointer",value:function(t,e,n,i){var r,o,s,a=mt(t),l=this.getPointerIndex(t),c=this.pointers[l];return i=!1!==i&&(i||/(down|start)$/i.test(e.type)),c?c.pointer=t:(c=new ze(a,t,e,null,null),l=this.pointers.length,this.pointers.push(c)),function(t,e,n){var i=e.length>1?yt(e):e[0];gt(i,t.page),function(t,e){e=e||{},Y.isOperaMobile&&pt(t)?ft("screen",t,e):ft("client",t,e)}(i,t.client),t.timeStamp=n}(this.coords.cur,this.pointers.map((function(t){return t.pointer})),this._now()),r=this.coords.delta,o=this.coords.prev,s=this.coords.cur,r.page.x=s.page.x-o.page.x,r.page.y=s.page.y-o.page.y,r.client.x=s.client.x-o.client.x,r.client.y=s.client.y-o.client.y,r.timeStamp=s.timeStamp-o.timeStamp,i&&(this.pointerIsDown=!0,c.downTime=this.coords.cur.timeStamp,c.downTarget=n,ut(this.downPointer,t),this.interacting()||(dt(this.coords.start,this.coords.cur),dt(this.coords.prev,this.coords.cur),this.downEvent=e,this.pointerWasMoved=!1)),this._updateLatestPointer(t,e,n),this._scopeFire("interactions:update-pointer",{pointer:t,event:e,eventTarget:n,down:i,pointerInfo:c,pointerIndex:l,interaction:this}),l}},{key:"removePointer",value:function(t,e){var n=this.getPointerIndex(t);if(-1!==n){var i=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:t,event:e,eventTarget:null,pointerIndex:n,pointerInfo:i,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(t,e,n){this._latestPointer.pointer=t,this._latestPointer.event=e,this._latestPointer.eventTarget=n}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(t,e,n,i){return new Ee(this,t,this.prepared.name,e,this.element,n,i)}},{key:"_fireEvent",value:function(t){var e;null==(e=this.interactable)||e.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}},{key:"_doPhase",value:function(t){var e=t.event,n=t.phase,i=t.preEnd,r=t.type,o=this.rect;if(o&&"move"===n&&(rt(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top),!1===this._scopeFire("interactions:before-action-".concat(n),t))return!1;var s=t.iEvent=this._createPreparedEvent(e,n,i,r);return this._scopeFire("interactions:action-".concat(n),t),"start"===n&&(this.prevEvent=s),this._fireEvent(s),this._scopeFire("interactions:after-action-".concat(n),t),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function Ue(t){Be(t.interaction)}function Be(t){if(!function(t){return!(!t.offset.pending.x&&!t.offset.pending.y)}(t))return!1;var e=t.offset.pending;return Ze(t.coords.cur,e),Ze(t.coords.delta,e),rt(t.edges,t.rect,e),e.x=0,e.y=0,!0}function We(t){var e=t.x,n=t.y;this.offset.pending.x+=e,this.offset.pending.y+=n,this.offset.total.x+=e,this.offset.total.y+=n}function Ze(t,e){var n=t.page,i=t.client,r=e.x,o=e.y;n.x+=r,n.y+=o,i.x+=r,i.y+=o}Re.offsetBy="";var He={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=We},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return function(t){t.pointerIsDown&&(Ze(t.coords.cur,t.offset.total),t.offset.pending.x=0,t.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":Ue,"interactions:before-action-move":Ue,"interactions:before-action-end":function(t){var e=t.interaction;if(Be(e))return e.move({offset:!0}),e.end(),!1},"interactions:stop":function(t){var e=t.interaction;e.offset.total.x=0,e.offset.total.y=0,e.offset.pending.x=0,e.offset.pending.y=0}}},Ge=He,Ve=function(){function t(e){r(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=e}return s(t,[{key:"start",value:function(t){var e=this.interaction,n=Qe(e);if(!n||!n.enabled)return!1;var i=e.coords.velocity.client,r=lt(i.x,i.y),o=this.modification||(this.modification=new Se(e));if(o.copyFrom(e.modification),this.t0=e._now(),this.allowResume=n.allowResume,this.v0=r,this.currentOffset={x:0,y:0},this.startCoords=e.coords.cur.page,this.modifierArg=o.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-e.coords.cur.timeStamp<50&&r>n.minSpeed&&r>n.endSpeed)this.startInertia();else{if(o.result=o.setAll(this.modifierArg),!o.result.changed)return!1;this.startSmoothEnd()}return e.modification.result.rect=null,e.offsetBy(this.targetOffset),e._doPhase({interaction:e,event:t,phase:"inertiastart"}),e.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),e.modification.result.rect=null,this.active=!0,e.simulation=this,!0}},{key:"startInertia",value:function(){var t=this,e=this.interaction.coords.velocity.client,n=Qe(this.interaction),i=n.resistance,r=-Math.log(n.endSpeed/this.v0)/i;this.targetOffset={x:(e.x-r)/i,y:(e.y-r)/i},this.te=r,this.lambda_v0=i/this.v0,this.one_ve_v0=1-n.endSpeed/this.v0;var o=this.modification,s=this.modifierArg;s.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},o.result=o.setAll(s),o.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+o.result.delta.x,y:this.targetOffset.y+o.result.delta.y}),this.onNextFrame((function(){return t.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var t=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return t.smoothEndTick()}))}},{key:"onNextFrame",value:function(t){var e=this;this.timeout=Jt((function(){e.active&&t()}))}},{key:"inertiaTick",value:function(){var t,e,n,i,r,o=this,s=this.interaction,a=Qe(s).resistance,l=(s._now()-this.t0)/1e3;if(l<this.te){var c,u=1-(Math.exp(-a*l)-this.lambda_v0)/this.one_ve_v0;this.isModified?(t=this.targetOffset.x,e=this.targetOffset.y,n=this.modifiedOffset.x,i=this.modifiedOffset.y,c={x:Xe(r=u,0,t,n),y:Xe(r,0,e,i)}):c={x:this.targetOffset.x*u,y:this.targetOffset.y*u};var d={x:c.x-this.currentOffset.x,y:c.y-this.currentOffset.y};this.currentOffset.x+=d.x,this.currentOffset.y+=d.y,s.offsetBy(d),s.move(),this.onNextFrame((function(){return o.inertiaTick()}))}else s.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var t=this,e=this.interaction,n=e._now()-this.t0,i=Qe(e).smoothEndDuration;if(n<i){var r={x:Ke(n,0,this.targetOffset.x,i),y:Ke(n,0,this.targetOffset.y,i)},o={x:r.x-this.currentOffset.x,y:r.y-this.currentOffset.y};this.currentOffset.x+=o.x,this.currentOffset.y+=o.y,e.offsetBy(o),e.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return t.smoothEndTick()}))}else e.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(t){var e=t.pointer,n=t.event,i=t.eventTarget,r=this.interaction;r.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),r.updatePointer(e,n,i,!0),r._doPhase({interaction:r,event:n,phase:"resume"}),dt(r.coords.prev,r.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Xt(this.timeout)}}]),t}();function Qe(t){var e=t.interactable,n=t.prepared;return e&&e.options&&n.name&&e.options[n.name].inertia}var Je={id:"inertia",before:["modifiers","actions"],install:function(t){var e=t.defaults;t.usePlugin(Ge),t.usePlugin(Ne),t.actions.phases.inertiastart=!0,t.actions.phases.resume=!0,e.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(t){var e=t.interaction;e.inertia=new Ve(e)},"interactions:before-action-end":function(t){var e=t.interaction,n=t.event;return(!e._interacting||e.simulation||!e.inertia.start(n))&&null},"interactions:down":function(t){var e=t.interaction,n=t.eventTarget,i=e.inertia;if(i.active)for(var r=n;k(r);){if(r===e.element){i.resume(t);break}r=W(r)}},"interactions:stop":function(t){var e=t.interaction.inertia;e.active&&e.stop()},"interactions:before-action-resume":function(t){var e=t.interaction.modification;e.stop(t),e.start(t,t.interaction.coords.cur.page),e.applyToInteraction(t)},"interactions:before-action-inertiastart":function(t){return t.interaction.modification.setAndApply(t)},"interactions:action-resume":De,"interactions:action-inertiastart":De,"interactions:after-action-inertiastart":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-resume":function(t){return t.interaction.modification.restoreInteractionCoords(t)}}};function Xe(t,e,n,i){var r=1-t;return r*r*e+2*r*t*n+t*t*i}function Ke(t,e,n,i){return-n*(t/=i)*(t-2)+e}var qe=Je;function $e(t,e){for(var n=0;n<e.length;n++){var i=e[n];if(t.immediatePropagationStopped)break;i(t)}}var tn=function(){function t(e){r(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=$({},e||{})}return s(t,[{key:"fire",value:function(t){var e,n=this.global;(e=this.types[t.type])&&$e(t,e),!t.propagationStopped&&n&&(e=n[t.type])&&$e(t,e)}},{key:"on",value:function(t,e){var n=st(t,e);for(t in n)this.types[t]=Lt(this.types[t]||[],n[t])}},{key:"off",value:function(t,e){var n=st(t,e);for(t in n){var i=this.types[t];if(i&&i.length)for(var r=0,o=n[t];r<o.length;r++){var s=o[r],a=i.indexOf(s);-1!==a&&i.splice(a,1)}}}},{key:"getRect",value:function(t){return null}}]),t}(),en=function(){function t(e){r(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=e,ut(this,e)}return s(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function nn(t){return M(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function rn(t,e){return t===e||("boolean"==typeof t?!!e.capture===t&&0==!!e.passive:!!t.capture==!!e.capture&&!!t.passive==!!e.passive)}var on={id:"events",install:function(t){var e,n=[],i={},r=[],o={add:s,remove:a,addDelegate:function(t,e,n,o,a){var u=nn(a);if(!i[n]){i[n]=[];for(var d=0;d<r.length;d++){var h=r[d];s(h,n,l),s(h,n,c,!0)}}var p=i[n],f=St(p,(function(n){return n.selector===t&&n.context===e}));f||(f={selector:t,context:e,listeners:[]},p.push(f)),f.listeners.push({func:o,options:u})},removeDelegate:function(t,e,n,r,o){var s,u=nn(o),d=i[n],h=!1;if(d)for(s=d.length-1;s>=0;s--){var p=d[s];if(p.selector===t&&p.context===e){for(var f=p.listeners,g=f.length-1;g>=0;g--){var m=f[g];if(m.func===r&&rn(m.options,u)){f.splice(g,1),f.length||(d.splice(s,1),a(e,n,l),a(e,n,c,!0)),h=!0;break}}if(h)break}}},delegateListener:l,delegateUseCapture:c,delegatedEvents:i,documents:r,targets:n,supportsOptions:!1,supportsPassive:!1};function s(t,e,i,r){if(t.addEventListener){var s=nn(r),a=St(n,(function(e){return e.eventTarget===t}));a||(a={eventTarget:t,events:{}},n.push(a)),a.events[e]||(a.events[e]=[]),St(a.events[e],(function(t){return t.func===i&&rn(t.options,s)}))||(t.addEventListener(e,i,o.supportsOptions?s:s.capture),a.events[e].push({func:i,options:s}))}}function a(t,e,i,r){if(t.addEventListener&&t.removeEventListener){var s=_t(n,(function(e){return e.eventTarget===t})),l=n[s];if(l&&l.events)if("all"!==e){var c=!1,u=l.events[e];if(u){if("all"===i){for(var d=u.length-1;d>=0;d--){var h=u[d];a(t,e,h.func,h.options)}return}for(var p=nn(r),f=0;f<u.length;f++){var g=u[f];if(g.func===i&&rn(g.options,p)){t.removeEventListener(e,i,o.supportsOptions?p:p.capture),u.splice(f,1),0===u.length&&(delete l.events[e],c=!0);break}}}c&&!Object.keys(l.events).length&&n.splice(s,1)}else for(e in l.events)l.events.hasOwnProperty(e)&&a(t,e,"all")}}function l(t,e){for(var n=nn(e),r=new en(t),o=i[t.type],s=Ct(t)[0],a=s;k(a);){for(var l=0;l<o.length;l++){var c=o[l],u=c.selector,d=c.context;if(Z(a,u)&&U(d,s)&&U(d,a)){var h=c.listeners;r.currentTarget=a;for(var p=0;p<h.length;p++){var f=h[p];rn(f.options,n)&&f.func(r)}}}a=W(a)}}function c(t){return l(t,!0)}return null==(e=t.document)||e.createElement("div").addEventListener("test",null,{get capture(){return o.supportsOptions=!0},get passive(){return o.supportsPassive=!0}}),t.events=o,o}},sn={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var e=0,n=sn.methodOrder;e<n.length;e++){var i=n[e],r=sn[i](t);if(r)return r}return null},simulationResume:function(t){var e=t.pointerType,n=t.eventType,i=t.eventTarget,r=t.scope;if(!/down|start/i.test(n))return null;for(var o=0,s=r.interactions.list;o<s.length;o++){var a=s[o],l=i;if(a.simulation&&a.simulation.allowResume&&a.pointerType===e)for(;l;){if(l===a.element)return a;l=W(l)}}return null},mouseOrPen:function(t){var e,n=t.pointerId,i=t.pointerType,r=t.eventType,o=t.scope;if("mouse"!==i&&"pen"!==i)return null;for(var s=0,a=o.interactions.list;s<a.length;s++){var l=a[s];if(l.pointerType===i){if(l.simulation&&!an(l,n))continue;if(l.interacting())return l;e||(e=l)}}if(e)return e;for(var c=0,u=o.interactions.list;c<u.length;c++){var d=u[c];if(!(d.pointerType!==i||/down/i.test(r)&&d.simulation))return d}return null},hasPointer:function(t){for(var e=t.pointerId,n=0,i=t.scope.interactions.list;n<i.length;n++){var r=i[n];if(an(r,e))return r}return null},idle:function(t){for(var e=t.pointerType,n=0,i=t.scope.interactions.list;n<i.length;n++){var r=i[n];if(1===r.pointers.length){var o=r.interactable;if(o&&(!o.options.gesture||!o.options.gesture.enabled))continue}else if(r.pointers.length>=2)continue;if(!r.interacting()&&e===r.pointerType)return r}return null}};function an(t,e){return t.pointers.some((function(t){return t.id===e}))}var ln=sn,cn=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function un(t,e){return function(n){var i=e.interactions.list,r=xt(n),o=Ct(n),s=o[0],a=o[1],l=[];if(/^touch/.test(n.type)){e.prevTouchTime=e.now();for(var c=0,u=n.changedTouches;c<u.length;c++){var d=u[c],h={pointer:d,pointerId:mt(d),pointerType:r,eventType:n.type,eventTarget:s,curEventTarget:a,scope:e},p=dn(h);l.push([h.pointer,h.eventTarget,h.curEventTarget,p])}}else{var f=!1;if(!Y.supportsPointerEvent&&/mouse/.test(n.type)){for(var g=0;g<i.length&&!f;g++)f="mouse"!==i[g].pointerType&&i[g].pointerIsDown;f=f||e.now()-e.prevTouchTime<500||0===n.timeStamp}if(!f){var m={pointer:n,pointerId:mt(n),pointerType:r,eventType:n.type,curEventTarget:a,eventTarget:s,scope:e},v=dn(m);l.push([m.pointer,m.eventTarget,m.curEventTarget,v])}}for(var y=0;y<l.length;y++){var b=l[y],w=b[0],A=b[1],x=b[2];b[3][t](w,n,A,x)}}}function dn(t){var e=t.pointerType,n=t.scope,i={interaction:ln.search(t),searchDetails:t};return n.fire("interactions:find",i),i.interaction||n.interactions.new({pointerType:e})}function hn(t,e){var n=t.doc,i=t.scope,r=t.options,o=i.interactions.docEvents,s=i.events,a=s[e];for(var l in i.browser.isIOS&&!r.events&&(r.events={passive:!1}),s.delegatedEvents)a(n,l,s.delegateListener),a(n,l,s.delegateUseCapture,!0);for(var c=r&&r.events,u=0;u<o.length;u++){var d=o[u];a(n,d.type,d.listener,c)}}var pn={id:"core/interactions",install:function(t){for(var e={},n=0;n<cn.length;n++){var i=cn[n];e[i]=un(i,t)}var o,a=Y.pEventTypes;function c(){for(var e=0,n=t.interactions.list;e<n.length;e++){var i=n[e];if(i.pointerIsDown&&"touch"===i.pointerType&&!i._interacting)for(var r=function(){var e=s[o];t.documents.some((function(t){return U(t.doc,e.downTarget)}))||i.removePointer(e.pointer,e.event)},o=0,s=i.pointers;o<s.length;o++)r()}}(o=R.PointerEvent?[{type:a.down,listener:c},{type:a.down,listener:e.pointerDown},{type:a.move,listener:e.pointerMove},{type:a.up,listener:e.pointerUp},{type:a.cancel,listener:e.pointerUp}]:[{type:"mousedown",listener:e.pointerDown},{type:"mousemove",listener:e.pointerMove},{type:"mouseup",listener:e.pointerUp},{type:"touchstart",listener:c},{type:"touchstart",listener:e.pointerDown},{type:"touchmove",listener:e.pointerMove},{type:"touchend",listener:e.pointerUp},{type:"touchcancel",listener:e.pointerUp}]).push({type:"blur",listener:function(e){for(var n=0,i=t.interactions.list;n<i.length;n++)i[n].documentBlur(e)}}),t.prevTouchTime=0,t.Interaction=function(e){l(i,e);var n=h(i);function i(){return r(this,i),n.apply(this,arguments)}return s(i,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(e){t.interactions.pointerMoveTolerance=e}},{key:"_now",value:function(){return t.now()}}]),i}(Ye),t.interactions={list:[],new:function(e){e.scopeFire=function(e,n){return t.fire(e,n)};var n=new t.Interaction(e);return t.interactions.list.push(n),n},listeners:e,docEvents:o,pointerMoveTolerance:1},t.usePlugin(Le)},listeners:{"scope:add-document":function(t){return hn(t,"add")},"scope:remove-document":function(t){return hn(t,"remove")},"interactable:unset":function(t,e){for(var n=t.interactable,i=e.interactions.list.length-1;i>=0;i--){var r=e.interactions.list[i];r.interactable===n&&(r.stop(),e.fire("interactions:destroy",{interaction:r}),r.destroy(),e.interactions.list.length>2&&e.interactions.list.splice(i,1))}}},onDocSignal:hn,doOnInteractions:un,methodNames:cn},fn=pn,gn=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(gn||{}),mn=function(){function t(e,n,i,o){r(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new tn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=n.actions,this.target=e,this._context=n.context||i,this._win=b(q(e)?this._context:e),this._doc=this._win.document,this._scopeEvents=o,this.set(n)}return s(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(t,e){return L(e.onstart)&&this.on("".concat(t,"start"),e.onstart),L(e.onmove)&&this.on("".concat(t,"move"),e.onmove),L(e.onend)&&this.on("".concat(t,"end"),e.onend),L(e.oninertiastart)&&this.on("".concat(t,"inertiastart"),e.oninertiastart),this}},{key:"updatePerActionListeners",value:function(t,e,n){var i,r=this,o=null==(i=this._actions.map[t])?void 0:i.filterEventType,s=function(t){return(null==o||o(t))&&Ie(t,r._actions)};(D(e)||M(e))&&this._onOff(gn.Off,t,e,void 0,s),(D(n)||M(n))&&this._onOff(gn.On,t,n,void 0,s)}},{key:"setPerAction",value:function(t,e){var n=this._defaults;for(var i in e){var r=i,o=this.options[t],s=e[r];"listeners"===r&&this.updatePerActionListeners(t,o.listeners,s),D(s)?o[r]=It(s):T(s)?(o[r]=$(o[r]||{},_e(s)),M(n.perAction[r])&&"enabled"in n.perAction[r]&&(o[r].enabled=!1!==s.enabled)):_(s)&&M(n.perAction[r])?o[r].enabled=s:o[r]=s}}},{key:"getRect",value:function(t){return t=t||(k(this.target)?this.target:null),S(this.target)&&(t=t||this._context.querySelector(this.target)),X(t)}},{key:"rectChecker",value:function(t){var e=this;return L(t)?(this.getRect=function(n){var i=$({},t.apply(e,n));return"width"in i||(i.width=i.right-i.left,i.height=i.bottom-i.top),i},this):null===t?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(t,e){if(q(e)||M(e)){for(var n in this.options[t]=e,this._actions.map)this.options[n][t]=e;return this}return this.options[t]}},{key:"origin",value:function(t){return this._backCompatOption("origin",t)}},{key:"deltaSource",value:function(t){return"page"===t||"client"===t?(this.options.deltaSource=t,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var t=this.target;return S(t)?Array.from(this._context.querySelectorAll(t)):L(t)&&t.getAllElements?t.getAllElements():k(t)?[t]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(t){return this._context===t.ownerDocument||U(this._context,t)}},{key:"testIgnoreAllow",value:function(t,e,n){return!this.testIgnore(t.ignoreFrom,e,n)&&this.testAllow(t.allowFrom,e,n)}},{key:"testAllow",value:function(t,e,n){return!t||!!k(n)&&(S(t)?V(n,t,e):!!k(t)&&U(t,n))}},{key:"testIgnore",value:function(t,e,n){return!(!t||!k(n))&&(S(t)?V(n,t,e):!!k(t)&&U(t,n))}},{key:"fire",value:function(t){return this.events.fire(t),this}},{key:"_onOff",value:function(t,e,n,i,r){M(e)&&!D(e)&&(i=n,n=null);var o=st(e,n,r);for(var s in o){"wheel"===s&&(s=Y.wheelEvent);for(var a=0,l=o[s];a<l.length;a++){var c=l[a];Ie(s,this._actions)?this.events[t===gn.On?"on":"off"](s,c):S(this.target)?this._scopeEvents[t===gn.On?"addDelegate":"removeDelegate"](this.target,this._context,s,c,i):this._scopeEvents[t===gn.On?"add":"remove"](this.target,s,c,i)}}return this}},{key:"on",value:function(t,e,n){return this._onOff(gn.On,t,e,n)}},{key:"off",value:function(t,e,n){return this._onOff(gn.Off,t,e,n)}},{key:"set",value:function(t){var e=this._defaults;for(var n in M(t)||(t={}),this.options=_e(e.base),this._actions.methodDict){var i=n,r=this._actions.methodDict[i];this.options[i]={},this.setPerAction(i,$($({},e.perAction),e.actions[i])),this[r](t[i])}for(var o in t)"getRect"!==o?L(this[o])&&this[o](t[o]):this.rectChecker(t.getRect);return this}},{key:"unset",value:function(){if(S(this.target))for(var t in this._scopeEvents.delegatedEvents)for(var e=this._scopeEvents.delegatedEvents[t],n=e.length-1;n>=0;n--){var i=e[n],r=i.selector,o=i.context,s=i.listeners;r===this.target&&o===this._context&&e.splice(n,1);for(var a=s.length-1;a>=0;a--)this._scopeEvents.removeDelegate(this.target,this._context,t,s[a][0],s[a][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),vn=function(){function t(e){var n=this;r(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=e,e.addListeners({"interactable:unset":function(t){var e=t.interactable,i=e.target,r=S(i)?n.selectorMap[i]:i[n.scope.id],o=_t(r,(function(t){return t===e}));r.splice(o,1)}})}return s(t,[{key:"new",value:function(t,e){e=$(e||{},{actions:this.scope.actions});var n=new this.scope.Interactable(t,e,this.scope.document,this.scope.events);return this.scope.addDocument(n._doc),this.list.push(n),S(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(n)):(n.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(n)),this.scope.fire("interactable:new",{target:t,options:e,interactable:n,win:this.scope._win}),n}},{key:"getExisting",value:function(t,e){var n=e&&e.context||this.scope.document,i=S(t),r=i?this.selectorMap[t]:t[this.scope.id];if(r)return St(r,(function(e){return e._context===n&&(i||e.inContext(t))}))}},{key:"forEachMatch",value:function(t,e){for(var n=0,i=this.list;n<i.length;n++){var r=i[n],o=void 0;if((S(r.target)?k(t)&&Z(t,r.target):t===r.target)&&r.inContext(t)&&(o=e(r)),void 0!==o)return o}}}]),t}(),yn=function(){function t(){var e=this;r(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=Y,this.defaults=_e(Oe),this.Eventable=tn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(t){var e=function e(n,i){var r=t.interactables.getExisting(n,i);return r||((r=t.interactables.new(n,i)).events.global=e.globalEvents),r};return e.getPointerAverage=yt,e.getTouchBBox=bt,e.getTouchDistance=wt,e.getTouchAngle=At,e.getElementRect=X,e.getElementClientRect=J,e.matchesSelector=Z,e.closest=B,e.globalEvents={},e.version="1.10.27",e.scope=t,e.use=function(t,e){return this.scope.usePlugin(t,e),this},e.isSet=function(t,e){return!!this.scope.interactables.get(t,e&&e.context)},e.on=ie((function(t,e,n){if(S(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),D(t)){for(var i=0,r=t;i<r.length;i++){var o=r[i];this.on(o,e,n)}return this}if(M(t)){for(var s in t)this.on(s,t[s],e);return this}return Ie(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(e):this.globalEvents[t]=[e]:this.scope.events.add(this.scope.document,t,e,{options:n}),this}),"The interact.on() method is being deprecated"),e.off=ie((function(t,e,n){if(S(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),D(t)){for(var i=0,r=t;i<r.length;i++){var o=r[i];this.off(o,e,n)}return this}if(M(t)){for(var s in t)this.off(s,t[s],e);return this}var a;return Ie(t,this.scope.actions)?t in this.globalEvents&&-1!==(a=this.globalEvents[t].indexOf(e))&&this.globalEvents[t].splice(a,1):this.scope.events.remove(this.scope.document,t,e,n),this}),"The interact.off() method is being deprecated"),e.debug=function(){return this.scope},e.supportsTouch=function(){return Y.supportsTouch},e.supportsPointerEvent=function(){return Y.supportsPointerEvent},e.stop=function(){for(var t=0,e=this.scope.interactions.list;t<e.length;t++)e[t].stop();return this},e.pointerMoveTolerance=function(t){return I(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance},e.addDocument=function(t,e){this.scope.addDocument(t,e)},e.removeDocument=function(t){this.scope.removeDocument(t)},e}(this),this.InteractEvent=Ee,this.Interactable=void 0,this.interactables=new vn(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(t){return e.removeDocument(t.target)};var n=this;this.Interactable=function(t){l(i,t);var e=h(i);function i(){return r(this,i),e.apply(this,arguments)}return s(i,[{key:"_defaults",get:function(){return n.defaults}},{key:"set",value:function(t){return p(c(i.prototype),"set",this).call(this,t),n.fire("interactable:set",{options:t,interactable:this}),this}},{key:"unset",value:function(){p(c(i.prototype),"unset",this).call(this);var t=n.interactables.list.indexOf(this);t<0||(n.interactables.list.splice(t,1),n.fire("interactable:unset",{interactable:this}))}}]),i}(mn)}return s(t,[{key:"addListeners",value:function(t,e){this.listenerMaps.push({id:e,map:t})}},{key:"fire",value:function(t,e){for(var n=0,i=this.listenerMaps;n<i.length;n++){var r=i[n].map[t];if(r&&!1===r(e,this,t))return!1}}},{key:"init",value:function(t){return this.isInitialized?this:function(t,e){return t.isInitialized=!0,x(e)&&y(e),R.init(e),Y.init(e),Kt(e),t.window=e,t.document=e.document,t.usePlugin(fn),t.usePlugin(on),t}(this,t)}},{key:"pluginIsInstalled",value:function(t){var e=t.id;return e?!!this._plugins.map[e]:-1!==this._plugins.list.indexOf(t)}},{key:"usePlugin",value:function(t,e){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,e),t.listeners&&t.before){for(var n=0,i=this.listenerMaps.length,r=t.before.reduce((function(t,e){return t[e]=!0,t[bn(e)]=!0,t}),{});n<i;n++){var o=this.listenerMaps[n].id;if(o&&(r[o]||r[bn(o)]))break}this.listenerMaps.splice(n,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}},{key:"addDocument",value:function(t,e){if(-1!==this.getDocIndex(t))return!1;var n=b(t);e=e?$({},e):{},this.documents.push({doc:t,options:e}),this.events.documents.push(t),t!==this.document&&this.events.add(n,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:n,scope:this,options:e})}},{key:"removeDocument",value:function(t){var e=this.getDocIndex(t),n=b(t),i=this.documents[e].options;this.events.remove(n,"unload",this.onWindowUnload),this.documents.splice(e,1),this.events.documents.splice(e,1),this.fire("scope:remove-document",{doc:t,window:n,scope:this,options:i})}},{key:"getDocIndex",value:function(t){for(var e=0;e<this.documents.length;e++)if(this.documents[e].doc===t)return e;return-1}},{key:"getDocOptions",value:function(t){var e=this.getDocIndex(t);return-1===e?null:this.documents[e].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),t}();function bn(t){return t&&t.replace(/\/.*$/,"")}var wn=new yn,An=wn.interactStatic,xn="undefined"!=typeof globalThis?globalThis:window;wn.init(xn);var Cn=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var e=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(e){var n=e[0],i=e[1];return n in t||i in t})),n=function(n,i){for(var r=t.range,o=t.limits,s=void 0===o?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:o,a=t.offset,l=void 0===a?{x:0,y:0}:a,c={range:r,grid:t,x:null,y:null},u=0;u<e.length;u++){var d=e[u],h=d[0],p=d[1],f=Math.round((n-l.x)/t[h]),g=Math.round((i-l.y)/t[p]);c[h]=Math.max(s.left,Math.min(s.right,f*t[h]+l.x)),c[p]=Math.max(s.top,Math.min(s.bottom,g*t[p]+l.y))}return c};return n.grid=t,n.coordFields=e,n}}),Mn={id:"snappers",install:function(t){var e=t.interactStatic;e.snappers=$(e.snappers||{},Cn),e.createSnapGrid=e.snappers.grid}},Ln=Mn,In={start:function(t){var e=t.state,i=t.rect,r=t.edges,o=t.pageCoords,s=e.options,a=s.ratio,l=s.enabled,c=e.options,u=c.equalDelta,d=c.modifiers;"preserve"===a&&(a=i.width/i.height),e.startCoords=$({},o),e.startRect=$({},i),e.ratio=a,e.equalDelta=u;var h=e.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(e.xIsPrimaryAxis=!(!r.left&&!r.right),e.equalDelta){var p=(h.left?1:-1)*(h.top?1:-1);e.edgeSign={x:p,y:p}}else e.edgeSign={x:h.left?-1:1,y:h.top?-1:1};if(!1!==l&&$(r,h),null!=d&&d.length){var f=new Se(t.interaction);f.copyFrom(t.interaction.modification),f.prepareStates(d),e.subModification=f,f.startAll(n({},t))}},set:function(t){var e=t.state,i=t.rect,r=t.coords,o=e.linkedEdges,s=$({},r),a=e.equalDelta?_n:Sn;if($(t.edges,o),a(e,e.xIsPrimaryAxis,r,i),!e.subModification)return null;var l=$({},i);rt(o,l,{x:r.x-s.x,y:r.y-s.y});var c=e.subModification.setAll(n(n({},t),{},{rect:l,edges:o,pageCoords:r,prevCoords:r,prevRect:l})),u=c.delta;return c.changed&&(a(e,Math.abs(u.x)>Math.abs(u.y),c.coords,c.rect),$(r,c.coords)),c.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function _n(t,e,n){var i=t.startCoords,r=t.edgeSign;e?n.y=i.y+(n.x-i.x)*r.y:n.x=i.x+(n.y-i.y)*r.x}function Sn(t,e,n,i){var r=t.startRect,o=t.startCoords,s=t.ratio,a=t.edgeSign;if(e){var l=i.width/s;n.y=o.y+(l-r.height)*a.y}else{var c=i.height*s;n.x=o.x+(c-r.width)*a.x}}var kn=Te(In,"aspectRatio"),Tn=function(){};Tn._defaults={};var Dn=Tn;function jn(t,e,n){return L(t)?et(t,e.interactable,e.element,[n.x,n.y,e]):et(t,e.interactable,e.element)}var Nn={start:function(t){var e=t.rect,n=t.startOffset,i=t.state,r=t.interaction,o=t.pageCoords,s=i.options,a=s.elementRect,l=$({left:0,top:0,right:0,bottom:0},s.offset||{});if(e&&a){var c=jn(s.restriction,r,o);if(c){var u=c.right-c.left-e.width,d=c.bottom-c.top-e.height;u<0&&(l.left+=u,l.right+=u),d<0&&(l.top+=d,l.bottom+=d)}l.left+=n.left-e.width*a.left,l.top+=n.top-e.height*a.top,l.right+=n.right-e.width*(1-a.right),l.bottom+=n.bottom-e.height*(1-a.bottom)}i.offset=l},set:function(t){var e=t.coords,n=t.interaction,i=t.state,r=i.options,o=i.offset,s=jn(r.restriction,n,e);if(s){var a=function(t){return!t||"left"in t&&"top"in t||((t=$({},t)).left=t.x||0,t.top=t.y||0,t.right=t.right||t.left+t.width,t.bottom=t.bottom||t.top+t.height),t}(s);e.x=Math.max(Math.min(a.right-o.right,e.x),a.left+o.left),e.y=Math.max(Math.min(a.bottom-o.bottom,e.y),a.top+o.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},On=Te(Nn,"restrict"),En={top:1/0,left:1/0,bottom:-1/0,right:-1/0},zn={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Fn(t,e){for(var n=0,i=["top","left","bottom","right"];n<i.length;n++){var r=i[n];r in t||(t[r]=e[r])}return t}var Rn={noInner:En,noOuter:zn,start:function(t){var e,n=t.interaction,i=t.startOffset,r=t.state,o=r.options;o&&(e=nt(jn(o.offset,n,n.coords.start.page))),e=e||{x:0,y:0},r.offset={top:e.y+i.top,left:e.x+i.left,bottom:e.y-i.bottom,right:e.x-i.right}},set:function(t){var e=t.coords,n=t.edges,i=t.interaction,r=t.state,o=r.offset,s=r.options;if(n){var a=$({},e),l=jn(s.inner,i,a)||{},c=jn(s.outer,i,a)||{};Fn(l,En),Fn(c,zn),n.top?e.y=Math.min(Math.max(c.top+o.top,a.y),l.top+o.top):n.bottom&&(e.y=Math.max(Math.min(c.bottom+o.bottom,a.y),l.bottom+o.bottom)),n.left?e.x=Math.min(Math.max(c.left+o.left,a.x),l.left+o.left):n.right&&(e.x=Math.max(Math.min(c.right+o.right,a.x),l.right+o.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Pn=Te(Rn,"restrictEdges"),Yn=$({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},Nn.defaults),Un=Te({start:Nn.start,set:Nn.set,defaults:Yn},"restrictRect"),Bn={width:-1/0,height:-1/0},Wn={width:1/0,height:1/0},Zn=Te({start:function(t){return Rn.start(t)},set:function(t){var e=t.interaction,n=t.state,i=t.rect,r=t.edges,o=n.options;if(r){var s=it(jn(o.min,e,t.coords))||Bn,a=it(jn(o.max,e,t.coords))||Wn;n.options={endOnly:o.endOnly,inner:$({},Rn.noInner),outer:$({},Rn.noOuter)},r.top?(n.options.inner.top=i.bottom-s.height,n.options.outer.top=i.bottom-a.height):r.bottom&&(n.options.inner.bottom=i.top+s.height,n.options.outer.bottom=i.top+a.height),r.left?(n.options.inner.left=i.right-s.width,n.options.outer.left=i.right-a.width):r.right&&(n.options.inner.right=i.left+s.width,n.options.outer.right=i.left+a.width),Rn.set(t),n.options=o}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Hn={start:function(t){var e,n=t.interaction,i=t.interactable,r=t.element,o=t.rect,s=t.state,a=t.startOffset,l=s.options,c=l.offsetWithOrigin?function(t){var e=t.interaction.element;return nt(et(t.state.options.origin,null,null,[e]))||ot(t.interactable,e,t.interaction.prepared.name)}(t):{x:0,y:0};if("startCoords"===l.offset)e={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var u=et(l.offset,i,r,[n]);(e=nt(u)||{x:0,y:0}).x+=c.x,e.y+=c.y}var d=l.relativePoints;s.offsets=o&&d&&d.length?d.map((function(t,n){return{index:n,relativePoint:t,x:a.left-o.width*t.x+e.x,y:a.top-o.height*t.y+e.y}})):[{index:0,relativePoint:null,x:e.x,y:e.y}]},set:function(t){var e=t.interaction,n=t.coords,i=t.state,r=i.options,o=i.offsets,s=ot(e.interactable,e.element,e.prepared.name),a=$({},n),l=[];r.offsetWithOrigin||(a.x-=s.x,a.y-=s.y);for(var c=0,u=o;c<u.length;c++)for(var d=u[c],h=a.x-d.x,p=a.y-d.y,f=0,g=r.targets.length;f<g;f++){var m,v=r.targets[f];(m=L(v)?v(h,p,e._proxy,d,f):v)&&l.push({x:(I(m.x)?m.x:h)+d.x,y:(I(m.y)?m.y:p)+d.y,range:I(m.range)?m.range:r.range,source:v,index:f,offset:d})}for(var y={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<l.length;b++){var w=l[b],A=w.range,x=w.x-a.x,C=w.y-a.y,M=lt(x,C),_=M<=A;A===1/0&&y.inRange&&y.range!==1/0&&(_=!1),y.target&&!(_?y.inRange&&A!==1/0?M/A<y.distance/y.range:A===1/0&&y.range!==1/0||M<y.distance:!y.inRange&&M<y.distance)||(y.target=w,y.distance=M,y.range=A,y.inRange=_,y.delta.x=x,y.delta.y=C)}return y.inRange&&(n.x=y.target.x,n.y=y.target.y),i.closest=y,y},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Gn=Te(Hn,"snap"),Vn={start:function(t){var e=t.state,n=t.edges,i=e.options;if(!n)return null;t.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:i.offset||"self",origin:{x:0,y:0},range:i.range}},e.targetFields=e.targetFields||[["width","height"],["x","y"]],Hn.start(t),e.offsets=t.state.offsets,t.state=e},set:function(t){var e=t.interaction,n=t.state,i=t.coords,r=n.options,o=n.offsets,s={x:i.x-o[0].x,y:i.y-o[0].y};n.options=$({},r),n.options.targets=[];for(var a=0,l=r.targets||[];a<l.length;a++){var c=l[a],u=void 0;if(u=L(c)?c(s.x,s.y,e):c){for(var d=0,h=n.targetFields;d<h.length;d++){var p=h[d],f=p[0],g=p[1];if(f in u||g in u){u.x=u[f],u.y=u[g];break}}n.options.targets.push(u)}}var m=Hn.set(t);return n.options=r,m},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Qn=Te(Vn,"snapSize"),Jn={aspectRatio:kn,restrictEdges:Pn,restrict:On,restrictRect:Un,restrictSize:Zn,snapEdges:Te({start:function(t){var e=t.edges;return e?(t.state.targetFields=t.state.targetFields||[[e.left?"left":"right",e.top?"top":"bottom"]],Vn.start(t)):null},set:Vn.set,defaults:$(_e(Vn.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Gn,snapSize:Qn,spring:Dn,avoid:Dn,transform:Dn,rubberband:Dn},Xn={id:"modifiers",install:function(t){var e=t.interactStatic;for(var n in t.usePlugin(Ne),t.usePlugin(Ln),e.modifiers=Jn,Jn){var i=Jn[n],r=i._defaults,o=i._methods;r._methods=o,t.defaults.perAction[n]=r}}},Kn=Xn,qn=function(t){l(n,t);var e=h(n);function n(t,i,o,s,a,l){var c;if(r(this,n),ut(d(c=e.call(this,a)),o),o!==i&&ut(d(c),i),c.timeStamp=l,c.originalEvent=o,c.type=t,c.pointerId=mt(i),c.pointerType=xt(i),c.target=s,c.currentTarget=null,"tap"===t){var u=a.getPointerIndex(i);c.dt=c.timeStamp-a.pointers[u].downTime;var h=c.timeStamp-a.tapTime;c.double=!!a.prevTap&&"doubletap"!==a.prevTap.type&&a.prevTap.target===c.target&&h<500}else"doubletap"===t&&(c.dt=i.timeStamp-a.tapTime,c.double=!0);return c}return s(n,[{key:"_subtractOrigin",value:function(t){var e=t.x,n=t.y;return this.pageX-=e,this.pageY-=n,this.clientX-=e,this.clientY-=n,this}},{key:"_addOrigin",value:function(t){var e=t.x,n=t.y;return this.pageX+=e,this.pageY+=n,this.clientX+=e,this.clientY+=n,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),n}(Mt),$n={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=$n,t.defaults.actions.pointerEvents=$n.defaults,$(t.actions.phaselessTypes,$n.types)},listeners:{"interactions:new":function(t){var e=t.interaction;e.prevTap=null,e.tapTime=0},"interactions:update-pointer":function(t){var e=t.down,n=t.pointerInfo;!e&&n.hold||(n.hold={duration:1/0,timeout:null})},"interactions:move":function(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget;t.duplicate||n.pointerIsDown&&!n.pointerWasMoved||(n.pointerIsDown&&ni(t),ti({interaction:n,pointer:i,event:r,eventTarget:o,type:"move"},e))},"interactions:down":function(t,e){!function(t,e){for(var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget,s=t.pointerIndex,a=n.pointers[s].hold,l=K(o),c={interaction:n,pointer:i,event:r,eventTarget:o,type:"hold",targets:[],path:l,node:null},u=0;u<l.length;u++){var d=l[u];c.node=d,e.fire("pointerEvents:collect-targets",c)}if(c.targets.length){for(var h=1/0,p=0,f=c.targets;p<f.length;p++){var g=f[p].eventable.options.holdDuration;g<h&&(h=g)}a.duration=h,a.timeout=setTimeout((function(){ti({interaction:n,eventTarget:o,pointer:i,event:r,type:"hold"},e)}),h)}}(t,e),ti(t,e)},"interactions:up":function(t,e){ni(t),ti(t,e),function(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget;n.pointerWasMoved||ti({interaction:n,eventTarget:o,pointer:i,event:r,type:"tap"},e)}(t,e)},"interactions:cancel":function(t,e){ni(t),ti(t,e)}},PointerEvent:qn,fire:ti,collectEventTargets:ei,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function ti(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget,s=t.type,a=t.targets,l=void 0===a?ei(t,e):a,c=new qn(s,i,r,o,n,e.now());e.fire("pointerEvents:new",{pointerEvent:c});for(var u={interaction:n,pointer:i,event:r,eventTarget:o,targets:l,type:s,pointerEvent:c},d=0;d<l.length;d++){var h=l[d];for(var p in h.props||{})c[p]=h.props[p];var f=ot(h.eventable,h.node);if(c._subtractOrigin(f),c.eventable=h.eventable,c.currentTarget=h.node,h.eventable.fire(c),c._addOrigin(f),c.immediatePropagationStopped||c.propagationStopped&&d+1<l.length&&l[d+1].node!==c.currentTarget)break}if(e.fire("pointerEvents:fired",u),"tap"===s){var g=c.double?ti({interaction:n,pointer:i,event:r,eventTarget:o,type:"doubletap"},e):c;n.prevTap=g,n.tapTime=g.timeStamp}return c}function ei(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget,s=t.type,a=n.getPointerIndex(i),l=n.pointers[a];if("tap"===s&&(n.pointerWasMoved||!l||l.downTarget!==o))return[];for(var c=K(o),u={interaction:n,pointer:i,event:r,eventTarget:o,type:s,path:c,targets:[],node:null},d=0;d<c.length;d++){var h=c[d];u.node=h,e.fire("pointerEvents:collect-targets",u)}return"hold"===s&&(u.targets=u.targets.filter((function(t){var e,i;return t.eventable.options.holdDuration===(null==(e=n.pointers[a])||null==(i=e.hold)?void 0:i.duration)}))),u.targets}function ni(t){var e=t.interaction,n=t.pointerIndex,i=e.pointers[n].hold;i&&i.timeout&&(clearTimeout(i.timeout),i.timeout=null)}var ii=Object.freeze({__proto__:null,default:$n});function ri(t){var e=t.interaction;e.holdIntervalHandle&&(clearInterval(e.holdIntervalHandle),e.holdIntervalHandle=null)}var oi={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin($n);var e=t.pointerEvents;e.defaults.holdRepeatInterval=0,e.types.holdrepeat=t.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(t,e){return t["pointerEvents:".concat(e)]=ri,t}),{"pointerEvents:new":function(t){var e=t.pointerEvent;"hold"===e.type&&(e.count=(e.count||0)+1)},"pointerEvents:fired":function(t,e){var n=t.interaction,i=t.pointerEvent,r=t.eventTarget,o=t.targets;if("hold"===i.type&&o.length){var s=o[0].eventable.options.holdRepeatInterval;s<=0||(n.holdIntervalHandle=setTimeout((function(){e.pointerEvents.fire({interaction:n,eventTarget:r,type:"hold",pointer:i,event:i},e)}),s))}}})},si=oi,ai={id:"pointer-events/interactableTargets",install:function(t){var e=t.Interactable;e.prototype.pointerEvents=function(t){return $(this.events.options,t),this};var n=e.prototype._backCompatOption;e.prototype._backCompatOption=function(t,e){var i=n.call(this,t,e);return i===this&&(this.events.options[t]=e),i}},listeners:{"pointerEvents:collect-targets":function(t,e){var n=t.targets,i=t.node,r=t.type,o=t.eventTarget;e.interactables.forEachMatch(i,(function(t){var e=t.events,s=e.options;e.types[r]&&e.types[r].length&&t.testIgnoreAllow(s,i,o)&&n.push({node:i,eventable:e,props:{interactable:t}})}))},"interactable:new":function(t){var e=t.interactable;e.events.getRect=function(t){return e.getRect(t)}},"interactable:set":function(t,e){var n=t.interactable,i=t.options;$(n.events.options,e.pointerEvents.defaults),$(n.events.options,i.pointerEvents||{})}}},li=ai,ci={id:"pointer-events",install:function(t){t.usePlugin(ii),t.usePlugin(si),t.usePlugin(li)}},ui=ci,di={id:"reflow",install:function(t){var e=t.Interactable;t.actions.phases.reflow=!0,e.prototype.reflow=function(e){return function(t,e,n){for(var i=t.getAllElements(),r=n.window.Promise,o=r?[]:null,s=function(){var s=i[a],l=t.getRect(s);if(!l)return 1;var c,u=St(n.interactions.list,(function(n){return n.interacting()&&n.interactable===t&&n.element===s&&n.prepared.name===e.name}));if(u)u.move(),o&&(c=u._reflowPromise||new r((function(t){u._reflowResolve=t})));else{var d=it(l),h=function(t){return{coords:t,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:d.x,y:d.y},client:{x:d.x,y:d.y},timeStamp:n.now()});c=function(t,e,n,i,r){var o=t.interactions.new({pointerType:"reflow"}),s={interaction:o,event:r,pointer:r,eventTarget:n,phase:"reflow"};o.interactable=e,o.element=n,o.prevEvent=r,o.updatePointer(r,r,n,!0),ht(o.coords.delta),re(o.prepared,i),o._doPhase(s);var a=t.window.Promise,l=a?new a((function(t){o._reflowResolve=t})):void 0;return o._reflowPromise=l,o.start(i,e,n),o._interacting?(o.move(s),o.end(r)):(o.stop(),o._reflowResolve()),o.removePointer(r,r),l}(n,t,s,e,h)}o&&o.push(c)},a=0;a<i.length&&!s();a++);return o&&r.all(o).then((function(){return t}))}(this,e,t)}},listeners:{"interactions:stop":function(t,e){var n=t.interaction;"reflow"===n.pointerType&&(n._reflowResolve&&n._reflowResolve(),function(t,e){t.splice(t.indexOf(e),1)}(e.interactions.list,n))}}},hi=di;if(An.use(Le),An.use(Ge),An.use(ui),An.use(qe),An.use(Kn),An.use(xe),An.use(Vt),An.use(ne),An.use(hi),An.default=An,"object"===i(t)&&t)try{t.exports=An}catch(e){}return An.default=An,An}()},194:(t,e)=>{"use strict";var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},i={tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",optionsAttr:"i18n-options",useOptionsAttr:!1,parseDefaultValueFromContent:!0};e.default={init:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function o(e,i,o){if(0!==i.length){var s="text";if(0===i.indexOf("[")){var a=i.split("]");i=a[1],s=a[0].substr(1,a[0].length-1)}if(i.indexOf(";")===i.length-1&&(i=i.substr(0,i.length-2)),"html"===s)e.html(t.t(i,u(o,e.html())));else if("text"===s)e.text(t.t(i,u(o,e.text())));else if("prepend"===s)e.prepend(t.t(i,u(o,e.html())));else if("append"===s)e.append(t.t(i,u(o,e.html())));else if(0===s.indexOf("data-")){var l=s.substr(5),c=t.t(i,u(o,e.data(l)));e.data(l,c),e.attr(s,c)}else e.attr(s,t.t(i,u(o,e.attr(s))))}function u(t,e){return r.parseDefaultValueFromContent?n({},t,{defaultValue:e}):t}}function s(t,i){var s=t.attr(r.selectorAttr);if(s||void 0===s||!1===s||(s=t.text()||t.val()),s){var a=t,l=t.data(r.targetAttr);if(l&&(a=t.find(l)||t),i||!0!==r.useOptionsAttr||(i=t.data(r.optionsAttr)),i=i||{},s.indexOf(";")>=0){var c=s.split(";");e.each(c,(function(t,e){""!==e&&o(a,e.trim(),i)}))}else o(a,s,i);if(!0===r.useOptionsAttr){var u={};delete(u=n({clone:u},i)).lng,t.data(r.optionsAttr,u)}}}r=n({},i,r),e[r.tName]=t.t.bind(t),e[r.i18nName]=t,e.fn[r.handleName]=function(t){return this.each((function(){s(e(this),t),e(this).find("["+r.selectorAttr+"]").each((function(){s(e(this),t)}))}))}}}},790:(t,e,n)=>{t.exports=n(194).default},651:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,l=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},c=o.push,u=o.indexOf,d={},h=d.toString,p=d.hasOwnProperty,f=p.toString,g=f.call(Object),m={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},b=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function A(t,e,n){var i,r,o=(n=n||b).createElement("script");if(o.text=t,e)for(i in w)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function x(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[h.call(t)]||"object":typeof t}var C="3.7.1",M=/HTML$/i,L=function(t,e){return new L.fn.init(t,e)};function I(t){var e=!!t&&"length"in t&&t.length,n=x(t);return!v(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function _(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}L.fn=L.prototype={jquery:C,constructor:L,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=L.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return L.each(this,t)},map:function(t){return this.pushStack(L.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(L.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(L.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},L.extend=L.fn.extend=function(){var t,e,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||v(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&s!==i&&(c&&i&&(L.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[e],o=r&&!Array.isArray(n)?[]:r||L.isPlainObject(n)?n:{},r=!1,s[e]=L.extend(c,o,i)):void 0!==i&&(s[e]=i));return s},L.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==h.call(t)||(e=s(t))&&("function"!=typeof(n=p.call(e,"constructor")&&e.constructor)||f.call(n)!==g))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){A(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(I(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(!r)for(;e=t[i++];)n+=L.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(I(Object(t))?L.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:u.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!M.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,s=!n;r<o;r++)!e(t[r],r)!==s&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,s=[];if(I(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&s.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&s.push(r);return l(s)},guid:1,support:m}),"function"==typeof Symbol&&(L.fn[Symbol.iterator]=o[Symbol.iterator]),L.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){d["[object "+e+"]"]=e.toLowerCase()}));var S=o.pop,k=o.sort,T=o.splice,D="[\\x20\\t\\r\\n\\f]",j=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");L.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var N=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function O(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}L.escapeSelector=function(t){return(t+"").replace(N,O)};var E=b,z=c;!function(){var t,e,n,r,s,l,c,d,h,f,g=z,v=L.expando,y=0,b=0,w=tt(),A=tt(),x=tt(),C=tt(),M=function(t,e){return t===e&&(s=!0),0},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",O="\\["+D+"*("+N+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+D+"*\\]",F=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",R=new RegExp(D+"+","g"),P=new RegExp("^"+D+"*,"+D+"*"),Y=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),U=new RegExp(D+"|>"),B=new RegExp(F),W=new RegExp("^"+N+"$"),Z={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},H=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,J=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),X=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},K=function(){lt()},q=ht((function(t){return!0===t.disabled&&_(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(o=a.call(E.childNodes),E.childNodes),o[E.childNodes.length].nodeType}catch(t){g={apply:function(t,e){z.apply(t,a.call(e))},call:function(t){z.apply(t,a.call(arguments,1))}}}function $(t,e,n,i){var r,o,s,a,c,u,p,f=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!i&&(lt(e),e=e||l,d)){if(11!==y&&(c=V.exec(t)))if(r=c[1]){if(9===y){if(!(s=e.getElementById(r)))return n;if(s.id===r)return g.call(n,s),n}else if(f&&(s=f.getElementById(r))&&$.contains(e,s)&&s.id===r)return g.call(n,s),n}else{if(c[2])return g.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&e.getElementsByClassName)return g.apply(n,e.getElementsByClassName(r)),n}if(!(C[t+" "]||h&&h.test(t))){if(p=t,f=e,1===y&&(U.test(t)||Y.test(t))){for((f=Q.test(t)&&at(e.parentNode)||e)==e&&m.scope||((a=e.getAttribute("id"))?a=L.escapeSelector(a):e.setAttribute("id",a=v)),o=(u=ut(t)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+dt(u[o]);p=u.join(",")}try{return g.apply(n,f.querySelectorAll(p)),n}catch(e){C(t,!0)}finally{a===v&&e.removeAttribute("id")}}}return yt(t.replace(j,"$1"),e,n,i)}function tt(){var t=[];return function n(i,r){return t.push(i+" ")>e.cacheLength&&delete n[t.shift()],n[i+" "]=r}}function et(t){return t[v]=!0,t}function nt(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return _(e,"input")&&e.type===t}}function rt(t){return function(e){return(_(e,"input")||_(e,"button"))&&e.type===t}}function ot(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&q(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function st(t){return et((function(e){return e=+e,et((function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var n,i=t?t.ownerDocument||t:E;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,d=!L.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&E!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",K),m.getById=nt((function(t){return c.appendChild(t).id=L.expando,!l.getElementsByName||!l.getElementsByName(L.expando).length})),m.disconnectedMatch=nt((function(t){return f.call(t,"*")})),m.scope=nt((function(){return l.querySelectorAll(":scope")})),m.cssHas=nt((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),m.getById?(e.filter.ID=function(t){var e=t.replace(J,X);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(J,X);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&d)return e.getElementsByClassName(t)},h=[],nt((function(t){var e;c.appendChild(t).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||h.push("\\["+D+"*(?:value|"+I+")"),t.querySelectorAll("[id~="+v+"-]").length||h.push("~="),t.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),t.querySelectorAll(":checked").length||h.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),c.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||h.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")})),m.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),M=function(t,e){if(t===e)return s=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!m.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument==E&&$.contains(E,t)?-1:e===l||e.ownerDocument==E&&$.contains(E,e)?1:r?u.call(r,t)-u.call(r,e):0:4&n?-1:1)},l):l}for(t in $.matches=function(t,e){return $(t,null,null,e)},$.matchesSelector=function(t,e){if(lt(t),d&&!C[e+" "]&&(!h||!h.test(e)))try{var n=f.call(t,e);if(n||m.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){C(e,!0)}return $(e,l,null,[t]).length>0},$.contains=function(t,e){return(t.ownerDocument||t)!=l&<(t),L.contains(t,e)},$.attr=function(t,n){(t.ownerDocument||t)!=l&<(t);var i=e.attrHandle[n.toLowerCase()],r=i&&p.call(e.attrHandle,n.toLowerCase())?i(t,n,!d):void 0;return void 0!==r?r:t.getAttribute(n)},$.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},L.uniqueSort=function(t){var e,n=[],i=0,o=0;if(s=!m.sortStable,r=!m.sortStable&&a.call(t,0),k.call(t,M),s){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)T.call(t,n[i],1)}return r=null,t},L.fn.uniqueSort=function(){return this.pushStack(L.uniqueSort(a.apply(this)))},e=L.expr={cacheLength:50,createPseudo:et,match:Z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(J,X),t[3]=(t[3]||t[4]||t[5]||"").replace(J,X),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||$.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&$.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Z.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&B.test(n)&&(e=ut(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(J,X).toLowerCase();return"*"===t?function(){return!0}:function(t){return _(t,e)}},CLASS:function(t){var e=w[t+" "];return e||(e=new RegExp("(^|"+D+")"+t+"("+D+"|$)"))&&w(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=$.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(R," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,h,p,f=o!==s?"nextSibling":"previousSibling",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),b=!l&&!a,w=!1;if(g){if(o){for(;f;){for(d=e;d=d[f];)if(a?_(d,m):1===d.nodeType)return!1;p=f="only"===t&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&b){for(w=(h=(c=(u=g[v]||(g[v]={}))[t]||[])[0]===y&&c[1])&&c[2],d=h&&g.childNodes[h];d=++h&&d&&d[f]||(w=h=0)||p.pop();)if(1===d.nodeType&&++w&&d===e){u[t]=[y,h,w];break}}else if(b&&(w=h=(c=(u=e[v]||(e[v]={}))[t]||[])[0]===y&&c[1]),!1===w)for(;(d=++h&&d&&d[f]||(w=h=0)||p.pop())&&(!(a?_(d,m):1===d.nodeType)||!++w||(b&&((u=d[v]||(d[v]={}))[t]=[y,w]),d!==e)););return(w-=r)===i||w%i==0&&w/i>=0}}},PSEUDO:function(t,n){var i,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||$.error("unsupported pseudo: "+t);return r[v]?r(n):r.length>1?(i=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var i,o=r(t,n),s=o.length;s--;)t[i=u.call(t,o[s])]=!(e[i]=o[s])})):function(t){return r(t,0,i)}):r}},pseudos:{not:et((function(t){var e=[],n=[],i=vt(t.replace(j,"$1"));return i[v]?et((function(t,e,n,r){for(var o,s=i(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))})):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return $(t,e).length>0}})),contains:et((function(t){return t=t.replace(J,X),function(e){return(e.textContent||L.text(e)).indexOf(t)>-1}})),lang:et((function(t){return W.test(t||"")||$.error("unsupported lang: "+t),t=t.replace(J,X).toLowerCase(),function(e){var n;do{if(n=d?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===c},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return _(t,"input")&&!!t.checked||_(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return G.test(t.nodeName)},input:function(t){return H.test(t.nodeName)},button:function(t){return _(t,"input")&&"button"===t.type||_(t,"button")},text:function(t){var e;return _(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:st((function(){return[0]})),last:st((function(t,e){return[e-1]})),eq:st((function(t,e,n){return[n<0?n+e:n]})),even:st((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:st((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:st((function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:st((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=rt(t);function ct(){}function ut(t,n){var i,r,o,s,a,l,c,u=A[t+" "];if(u)return n?0:u.slice(0);for(a=t,l=[],c=e.preFilter;a;){for(s in i&&!(r=P.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=Y.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(j," ")}),a=a.slice(i.length)),e.filter)!(r=Z[s].exec(a))||c[s]&&!(r=c[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?$.error(t):A(t,l).slice(0)}function dt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function ht(t,e,n){var i=e.dir,r=e.next,o=r||i,s=n&&"parentNode"===o,a=b++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||s)return t(e,n,r);return!1}:function(e,n,l){var c,u,d=[y,a];if(l){for(;e=e[i];)if((1===e.nodeType||s)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||s)if(u=e[v]||(e[v]={}),r&&_(e,r))e=e[i]||e;else{if((c=u[o])&&c[0]===y&&c[1]===a)return d[2]=c[2];if(u[o]=d,d[2]=t(e,n,l))return!0}return!1}}function pt(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function ft(t,e,n,i,r){for(var o,s=[],a=0,l=t.length,c=null!=e;a<l;a++)(o=t[a])&&(n&&!n(o,i,r)||(s.push(o),c&&e.push(a)));return s}function gt(t,e,n,i,r,o){return i&&!i[v]&&(i=gt(i)),r&&!r[v]&&(r=gt(r,o)),et((function(o,s,a,l){var c,d,h,p,f=[],m=[],v=s.length,y=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)$(t,e[i],n);return n}(e||"*",a.nodeType?[a]:a,[]),b=!t||!o&&e?y:ft(y,f,t,a,l);if(n?n(b,p=r||(o?t:v||i)?[]:s,a,l):p=b,i)for(c=ft(p,m),i(c,[],a,l),d=c.length;d--;)(h=c[d])&&(p[m[d]]=!(b[m[d]]=h));if(o){if(r||t){if(r){for(c=[],d=p.length;d--;)(h=p[d])&&c.push(b[d]=h);r(null,p=[],c,l)}for(d=p.length;d--;)(h=p[d])&&(c=r?u.call(o,h):f[d])>-1&&(o[c]=!(s[c]=h))}}else p=ft(p===s?p.splice(v,p.length):p),r?r(null,s,p,l):g.apply(s,p)}))}function mt(t){for(var i,r,o,s=t.length,a=e.relative[t[0].type],l=a||e.relative[" "],c=a?1:0,d=ht((function(t){return t===i}),l,!0),h=ht((function(t){return u.call(i,t)>-1}),l,!0),p=[function(t,e,r){var o=!a&&(r||e!=n)||((i=e).nodeType?d(t,e,r):h(t,e,r));return i=null,o}];c<s;c++)if(r=e.relative[t[c].type])p=[ht(pt(p),r)];else{if((r=e.filter[t[c].type].apply(null,t[c].matches))[v]){for(o=++c;o<s&&!e.relative[t[o].type];o++);return gt(c>1&&pt(p),c>1&&dt(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(j,"$1"),r,c<o&&mt(t.slice(c,o)),o<s&&mt(t=t.slice(o)),o<s&&dt(t))}p.push(r)}return pt(p)}function vt(t,i){var r,o=[],s=[],a=x[t+" "];if(!a){for(i||(i=ut(t)),r=i.length;r--;)(a=mt(i[r]))[v]?o.push(a):s.push(a);a=x(t,function(t,i){var r=i.length>0,o=t.length>0,s=function(s,a,c,u,h){var p,f,m,v=0,b="0",w=s&&[],A=[],x=n,C=s||o&&e.find.TAG("*",h),M=y+=null==x?1:Math.random()||.1,I=C.length;for(h&&(n=a==l||a||h);b!==I&&null!=(p=C[b]);b++){if(o&&p){for(f=0,a||p.ownerDocument==l||(lt(p),c=!d);m=t[f++];)if(m(p,a||l,c)){g.call(u,p);break}h&&(y=M)}r&&((p=!m&&p)&&v--,s&&w.push(p))}if(v+=b,r&&b!==v){for(f=0;m=i[f++];)m(w,A,a,c);if(s){if(v>0)for(;b--;)w[b]||A[b]||(A[b]=S.call(u));A=ft(A)}g.apply(u,A),h&&!s&&A.length>0&&v+i.length>1&&L.uniqueSort(u)}return h&&(y=M,n=x),w};return r?et(s):s}(s,o)),a.selector=t}return a}function yt(t,n,i,r){var o,s,a,l,c,u="function"==typeof t&&t,h=!r&&ut(t=u.selector||t);if(i=i||[],1===h.length){if((s=h[0]=h[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===n.nodeType&&d&&e.relative[s[1].type]){if(!(n=(e.find.ID(a.matches[0].replace(J,X),n)||[])[0]))return i;u&&(n=n.parentNode),t=t.slice(s.shift().value.length)}for(o=Z.needsContext.test(t)?0:s.length;o--&&(a=s[o],!e.relative[l=a.type]);)if((c=e.find[l])&&(r=c(a.matches[0].replace(J,X),Q.test(s[0].type)&&at(n.parentNode)||n))){if(s.splice(o,1),!(t=r.length&&dt(s)))return g.apply(i,r),i;break}}return(u||vt(t,h))(r,n,!d,i,!n||Q.test(t)&&at(n.parentNode)||n),i}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,m.sortStable=v.split("").sort(M).join("")===v,lt(),m.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))})),L.find=$,L.expr[":"]=L.expr.pseudos,L.unique=L.uniqueSort,$.compile=vt,$.select=yt,$.setDocument=lt,$.tokenize=ut,$.escape=L.escapeSelector,$.getText=L.text,$.isXML=L.isXMLDoc,$.selectors=L.expr,$.support=L.support,$.uniqueSort=L.uniqueSort}();var F=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&L(t).is(n))break;i.push(t)}return i},R=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},P=L.expr.match.needsContext,Y=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function U(t,e,n){return v(e)?L.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?L.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?L.grep(t,(function(t){return u.call(e,t)>-1!==n})):L.filter(e,t,n)}L.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?L.find.matchesSelector(i,t)?[i]:[]:L.find.matches(t,L.grep(e,(function(t){return 1===t.nodeType})))},L.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(L(t).filter((function(){for(e=0;e<i;e++)if(L.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)L.find(t,r[e],n);return i>1?L.uniqueSort(n):n},filter:function(t){return this.pushStack(U(this,t||[],!1))},not:function(t){return this.pushStack(U(this,t||[],!0))},is:function(t){return!!U(this,"string"==typeof t&&P.test(t)?L(t):t||[],!1).length}});var B,W=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(L.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||B,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:W.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof L?e[0]:e,L.merge(this,L.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),Y.test(i[1])&&L.isPlainObject(e))for(i in e)v(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=b.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(L):L.makeArray(t,this)}).prototype=L.fn,B=L(b);var Z=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function G(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}L.fn.extend({has:function(t){var e=L(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(L.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,o=[],s="string"!=typeof t&&L(t);if(!P.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&L.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?L.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?u.call(L(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(L.uniqueSort(L.merge(this.get(),L(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),L.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return F(t,"parentNode")},parentsUntil:function(t,e,n){return F(t,"parentNode",n)},next:function(t){return G(t,"nextSibling")},prev:function(t){return G(t,"previousSibling")},nextAll:function(t){return F(t,"nextSibling")},prevAll:function(t){return F(t,"previousSibling")},nextUntil:function(t,e,n){return F(t,"nextSibling",n)},prevUntil:function(t,e,n){return F(t,"previousSibling",n)},siblings:function(t){return R((t.parentNode||{}).firstChild,t)},children:function(t){return R(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(_(t,"template")&&(t=t.content||t),L.merge([],t.childNodes))}},(function(t,e){L.fn[t]=function(n,i){var r=L.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=L.filter(i,r)),this.length>1&&(H[t]||L.uniqueSort(r),Z.test(t)&&r.reverse()),this.pushStack(r)}}));var V=/[^\x20\t\r\n\f]+/g;function Q(t){return t}function J(t){throw t}function X(t,e,n,i){var r;try{t&&v(r=t.promise)?r.call(t).done(e).fail(n):t&&v(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}L.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return L.each(t.match(V)||[],(function(t,n){e[n]=!0})),e}(t):L.extend({},t);var e,n,i,r,o=[],s=[],a=-1,l=function(){for(r=r||t.once,i=e=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},c={add:function(){return o&&(n&&!e&&(a=o.length-1,s.push(n)),function e(n){L.each(n,(function(n,i){v(i)?t.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==x(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return L.each(arguments,(function(t,e){for(var n;(n=L.inArray(e,o,n))>-1;)o.splice(n,1),n<=a&&a--})),this},has:function(t){return t?L.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},L.extend({Deferred:function(t){var e=[["notify","progress",L.Callbacks("memory"),L.Callbacks("memory"),2],["resolve","done",L.Callbacks("once memory"),L.Callbacks("once memory"),0,"resolved"],["reject","fail",L.Callbacks("once memory"),L.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return L.Deferred((function(n){L.each(e,(function(e,i){var r=v(t[i[4]])&&t[i[4]];o[i[1]]((function(){var t=r&&r.apply(this,arguments);t&&v(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,r){var o=0;function s(t,e,n,r){return function(){var a=this,l=arguments,c=function(){var i,c;if(!(t<o)){if((i=n.apply(a,l))===e.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(c)?r?c.call(i,s(o,e,Q,r),s(o,e,J,r)):(o++,c.call(i,s(o,e,Q,r),s(o,e,J,r),s(o,e,Q,e.notifyWith))):(n!==Q&&(a=void 0,l=[i]),(r||e.resolveWith)(a,l))}},u=r?c:function(){try{c()}catch(i){L.Deferred.exceptionHook&&L.Deferred.exceptionHook(i,u.error),t+1>=o&&(n!==J&&(a=void 0,l=[i]),e.rejectWith(a,l))}};t?u():(L.Deferred.getErrorHook?u.error=L.Deferred.getErrorHook():L.Deferred.getStackHook&&(u.error=L.Deferred.getStackHook()),i.setTimeout(u))}}return L.Deferred((function(i){e[0][3].add(s(0,i,v(r)?r:Q,i.notifyWith)),e[1][3].add(s(0,i,v(t)?t:Q)),e[2][3].add(s(0,i,v(n)?n:J))})).promise()},promise:function(t){return null!=t?L.extend(t,r):r}},o={};return L.each(e,(function(t,i){var s=i[2],a=i[5];r[i[1]]=s.add,a&&s.add((function(){n=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=s.fireWith})),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=a.call(arguments),o=L.Deferred(),s=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?a.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(X(t,o.done(s(n)).resolve,o.reject,!e),"pending"===o.state()||v(r[n]&&r[n].then)))return o.then();for(;n--;)X(r[n],s(n),o.reject);return o.promise()}});var K=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;L.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&K.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},L.readyException=function(t){i.setTimeout((function(){throw t}))};var q=L.Deferred();function $(){b.removeEventListener("DOMContentLoaded",$),i.removeEventListener("load",$),L.ready()}L.fn.ready=function(t){return q.then(t).catch((function(t){L.readyException(t)})),this},L.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--L.readyWait:L.isReady)||(L.isReady=!0,!0!==t&&--L.readyWait>0||q.resolveWith(b,[L]))}}),L.ready.then=q.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(L.ready):(b.addEventListener("DOMContentLoaded",$),i.addEventListener("load",$));var tt=function(t,e,n,i,r,o,s){var a=0,l=t.length,c=null==n;if("object"===x(n))for(a in r=!0,n)tt(t,e,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,v(i)||(s=!0),c&&(s?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(L(t),n)})),e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return r?t:c?e.call(t):l?e(t[0],n):o},et=/^-ms-/,nt=/-([a-z])/g;function it(t,e){return e.toUpperCase()}function rt(t){return t.replace(et,"ms-").replace(nt,it)}var ot=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function st(){this.expando=L.expando+st.uid++}st.uid=1,st.prototype={cache:function(t){var e=t[this.expando];return e||(e={},ot(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[rt(e)]=n;else for(i in e)r[rt(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][rt(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(rt):(e=rt(e))in i?[e]:e.match(V)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||L.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!L.isEmptyObject(e)}};var at=new st,lt=new st,ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ut=/[A-Z]/g;function dt(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ut,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ct.test(t)?JSON.parse(t):t)}(n)}catch(t){}lt.set(t,e,n)}else n=void 0;return n}L.extend({hasData:function(t){return lt.hasData(t)||at.hasData(t)},data:function(t,e,n){return lt.access(t,e,n)},removeData:function(t,e){lt.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),L.fn.extend({data:function(t,e){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=lt.get(o),1===o.nodeType&&!at.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=rt(i.slice(5)),dt(o,i,r[i]));at.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){lt.set(this,t)})):tt(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=lt.get(o,t))||void 0!==(n=dt(o,t))?n:void 0;this.each((function(){lt.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){lt.remove(this,t)}))}}),L.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=at.get(t,e),n&&(!i||Array.isArray(n)?i=at.access(t,e,L.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=L.queue(t,e),i=n.length,r=n.shift(),o=L._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,(function(){L.dequeue(t,e)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:L.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),L.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?L.queue(this[0],t):void 0===e?this:this.each((function(){var n=L.queue(this,t,e);L._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&L.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){L.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=L.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=at.get(o[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var ht=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pt=new RegExp("^(?:([+-])=|)("+ht+")([a-z%]*)$","i"),ft=["Top","Right","Bottom","Left"],gt=b.documentElement,mt=function(t){return L.contains(t.ownerDocument,t)},vt={composed:!0};gt.getRootNode&&(mt=function(t){return L.contains(t.ownerDocument,t)||t.getRootNode(vt)===t.ownerDocument});var yt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&mt(t)&&"none"===L.css(t,"display")};function bt(t,e,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return L.css(t,e,"")},l=a(),c=n&&n[3]||(L.cssNumber[e]?"":"px"),u=t.nodeType&&(L.cssNumber[e]||"px"!==c&&+l)&&pt.exec(L.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)L.style(t,e,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),u/=o;u*=2,L.style(t,e,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var wt={};function At(t){var e,n=t.ownerDocument,i=t.nodeName,r=wt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=L.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),wt[i]=r,r)}function xt(t,e){for(var n,i,r=[],o=0,s=t.length;o<s;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=at.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&yt(i)&&(r[o]=At(i))):"none"!==n&&(r[o]="none",at.set(i,"display",n)));for(o=0;o<s;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}L.fn.extend({show:function(){return xt(this,!0)},hide:function(){return xt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){yt(this)?L(this).show():L(this).hide()}))}});var Ct,Mt,Lt=/^(?:checkbox|radio)$/i,It=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,_t=/^$|^module$|\/(?:java|ecma)script/i;Ct=b.createDocumentFragment().appendChild(b.createElement("div")),(Mt=b.createElement("input")).setAttribute("type","radio"),Mt.setAttribute("checked","checked"),Mt.setAttribute("name","t"),Ct.appendChild(Mt),m.checkClone=Ct.cloneNode(!0).cloneNode(!0).lastChild.checked,Ct.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!Ct.cloneNode(!0).lastChild.defaultValue,Ct.innerHTML="<option></option>",m.option=!!Ct.lastChild;var St={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function kt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&_(t,e)?L.merge([t],n):n}function Tt(t,e){for(var n=0,i=t.length;n<i;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}St.tbody=St.tfoot=St.colgroup=St.caption=St.thead,St.th=St.td,m.option||(St.optgroup=St.option=[1,"<select multiple='multiple'>","</select>"]);var Dt=/<|&#?\w+;/;function jt(t,e,n,i,r){for(var o,s,a,l,c,u,d=e.createDocumentFragment(),h=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===x(o))L.merge(h,o.nodeType?[o]:o);else if(Dt.test(o)){for(s=s||d.appendChild(e.createElement("div")),a=(It.exec(o)||["",""])[1].toLowerCase(),l=St[a]||St._default,s.innerHTML=l[1]+L.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;L.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(e.createTextNode(o));for(d.textContent="",p=0;o=h[p++];)if(i&&L.inArray(o,i)>-1)r&&r.push(o);else if(c=mt(o),s=kt(d.appendChild(o),"script"),c&&Tt(s),n)for(u=0;o=s[u++];)_t.test(o.type||"")&&n.push(o);return d}var Nt=/^([^.]*)(?:\.(.+)|)/;function Ot(){return!0}function Et(){return!1}function zt(t,e,n,i,r,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)zt(t,a,n,i,e[a],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Et;else if(!r)return t;return 1===o&&(s=r,r=function(t){return L().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=L.guid++)),t.each((function(){L.event.add(this,e,r,i,n)}))}function Ft(t,e,n){n?(at.set(t,e,!1),L.event.add(t,e,{namespace:!1,handler:function(t){var n,i=at.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(L.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=a.call(arguments),at.set(this,e,i),this[e](),n=at.get(this,e),at.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(at.set(this,e,L.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Ot)}})):void 0===at.get(t,e)&&L.event.add(t,e,Ot)}L.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,c,u,d,h,p,f,g,m=at.get(t);if(ot(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&L.find.matchesSelector(gt,r),n.guid||(n.guid=L.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(e){return void 0!==L&&L.event.triggered!==e.type?L.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(V)||[""]).length;c--;)p=g=(a=Nt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=L.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=L.event.special[p]||{},u=L.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&L.expr.match.needsContext.test(r),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,f,s)||t.addEventListener&&t.addEventListener(p,s)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),L.event.global[p]=!0)},remove:function(t,e,n,i,r){var o,s,a,l,c,u,d,h,p,f,g,m=at.hasData(t)&&at.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(V)||[""]).length;c--;)if(p=g=(a=Nt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=L.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)u=h[o],!r&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(t,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,f,m.handle)||L.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)L.event.remove(t,p+e[c],n,i,!0);L.isEmptyObject(l)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,s,a=new Array(arguments.length),l=L.event.fix(t),c=(at.get(this,"events")||Object.create(null))[l.type]||[],u=L.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=L.event.handlers.call(this,l,c),e=0;(r=s[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((L.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,r,o,s,a=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[r=(i=e[n]).selector+" "]&&(s[r]=i.needsContext?L(r,this).index(c)>-1:L.find(r,this,null,[c]).length),s[r]&&o.push(i);o.length&&a.push({elem:c,handlers:o})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(L.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[L.expando]?t:new L.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Lt.test(e.type)&&e.click&&_(e,"input")&&Ft(e,"click",!0),!1},trigger:function(t){var e=this||t;return Lt.test(e.type)&&e.click&&_(e,"input")&&Ft(e,"click"),!0},_default:function(t){var e=t.target;return Lt.test(e.type)&&e.click&&_(e,"input")&&at.get(e,"click")||_(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},L.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},L.Event=function(t,e){if(!(this instanceof L.Event))return new L.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Ot:Et,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&L.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[L.expando]=!0},L.Event.prototype={constructor:L.Event,isDefaultPrevented:Et,isPropagationStopped:Et,isImmediatePropagationStopped:Et,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Ot,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Ot,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Ot,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},L.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},L.event.addProp),L.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(b.documentMode){var n=at.get(this,"handle"),i=L.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else L.event.simulate(e,t.target,L.event.fix(t))}L.event.special[t]={setup:function(){var i;if(Ft(this,t,!0),!b.documentMode)return!1;(i=at.get(this,e))||this.addEventListener(e,n),at.set(this,e,(i||0)+1)},trigger:function(){return Ft(this,t),!0},teardown:function(){var t;if(!b.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,n),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},L.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=at.get(r,e);o||(b.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),at.set(r,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=at.get(r,e)-1;o?at.set(r,e,o):(b.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),at.remove(r,e))}}})),L.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){L.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||L.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),L.fn.extend({on:function(t,e,n,i){return zt(this,t,e,n,i)},one:function(t,e,n,i){return zt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,L(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Et),this.each((function(){L.event.remove(this,t,n,e)}))}});var Rt=/<script|<style|<link/i,Pt=/checked\s*(?:[^=]|=\s*.checked.)/i,Yt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ut(t,e){return _(t,"table")&&_(11!==e.nodeType?e:e.firstChild,"tr")&&L(t).children("tbody")[0]||t}function Bt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Wt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Zt(t,e){var n,i,r,o,s,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(r in at.remove(e,"handle events"),a)for(n=0,i=a[r].length;n<i;n++)L.event.add(e,r,a[r][n]);lt.hasData(t)&&(o=lt.access(t),s=L.extend({},o),lt.set(e,s))}}function Ht(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Lt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Gt(t,e,n,i){e=l(e);var r,o,s,a,c,u,d=0,h=t.length,p=h-1,f=e[0],g=v(f);if(g||h>1&&"string"==typeof f&&!m.checkClone&&Pt.test(f))return t.each((function(r){var o=t.eq(r);g&&(e[0]=f.call(this,r,o.html())),Gt(o,e,n,i)}));if(h&&(o=(r=jt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=(s=L.map(kt(r,"script"),Bt)).length;d<h;d++)c=r,d!==p&&(c=L.clone(c,!0,!0),a&&L.merge(s,kt(c,"script"))),n.call(t[d],c,d);if(a)for(u=s[s.length-1].ownerDocument,L.map(s,Wt),d=0;d<a;d++)c=s[d],_t.test(c.type||"")&&!at.access(c,"globalEval")&&L.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?L._evalUrl&&!c.noModule&&L._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):A(c.textContent.replace(Yt,""),c,u))}return t}function Vt(t,e,n){for(var i,r=e?L.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||L.cleanData(kt(i)),i.parentNode&&(n&&mt(i)&&Tt(kt(i,"script")),i.parentNode.removeChild(i));return t}L.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,s,a=t.cloneNode(!0),l=mt(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||L.isXMLDoc(t)))for(s=kt(a),i=0,r=(o=kt(t)).length;i<r;i++)Ht(o[i],s[i]);if(e)if(n)for(o=o||kt(t),s=s||kt(a),i=0,r=o.length;i<r;i++)Zt(o[i],s[i]);else Zt(t,a);return(s=kt(a,"script")).length>0&&Tt(s,!l&&kt(t,"script")),a},cleanData:function(t){for(var e,n,i,r=L.event.special,o=0;void 0!==(n=t[o]);o++)if(ot(n)){if(e=n[at.expando]){if(e.events)for(i in e.events)r[i]?L.event.remove(n,i):L.removeEvent(n,i,e.handle);n[at.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),L.fn.extend({detach:function(t){return Vt(this,t,!0)},remove:function(t){return Vt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?L.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Gt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ut(this,t).appendChild(t)}))},prepend:function(){return Gt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ut(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Gt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Gt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(L.cleanData(kt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return L.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Rt.test(t)&&!St[(It.exec(t)||["",""])[1].toLowerCase()]){t=L.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(L.cleanData(kt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Gt(this,arguments,(function(e){var n=this.parentNode;L.inArray(this,t)<0&&(L.cleanData(kt(this)),n&&n.replaceChild(e,this))}),t)}}),L.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){L.fn[t]=function(t){for(var n,i=[],r=L(t),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),L(r[s])[e](n),c.apply(i,n.get());return this.pushStack(i)}}));var Qt=new RegExp("^("+ht+")(?!px)[a-z%]+$","i"),Jt=/^--/,Xt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Kt=function(t,e,n){var i,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=o[r];return i},qt=new RegExp(ft.join("|"),"i");function $t(t,e,n){var i,r,o,s,a=Jt.test(e),l=t.style;return(n=n||Xt(t))&&(s=n.getPropertyValue(e)||n[e],a&&s&&(s=s.replace(j,"$1")||void 0),""!==s||mt(t)||(s=L.style(t,e)),!m.pixelBoxStyles()&&Qt.test(s)&&qt.test(e)&&(i=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=n.width,l.width=i,l.minWidth=r,l.maxWidth=o)),void 0!==s?s+"":s}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",gt.appendChild(c).appendChild(u);var t=i.getComputedStyle(u);n="1%"!==t.top,l=12===e(t.marginLeft),u.style.right="60%",s=36===e(t.right),r=36===e(t.width),u.style.position="absolute",o=12===e(u.offsetWidth/3),gt.removeChild(c),u=null}}function e(t){return Math.round(parseFloat(t))}var n,r,o,s,a,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,L.extend(m,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,n,r;return null==a&&(t=b.createElement("table"),e=b.createElement("tr"),n=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",gt.appendChild(t).appendChild(e).appendChild(n),r=i.getComputedStyle(e),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,gt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ne=b.createElement("div").style,ie={};function re(t){return L.cssProps[t]||ie[t]||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var oe=/^(none|table(?!-c[ea]).+)/,se={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function le(t,e,n){var i=pt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ce(t,e,n,i,r,o){var s="width"===e?1:0,a=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(c+=L.css(t,n+ft[s],!0,r)),i?("content"===n&&(l-=L.css(t,"padding"+ft[s],!0,r)),"margin"!==n&&(l-=L.css(t,"border"+ft[s]+"Width",!0,r))):(l+=L.css(t,"padding"+ft[s],!0,r),"padding"!==n?l+=L.css(t,"border"+ft[s]+"Width",!0,r):a+=L.css(t,"border"+ft[s]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-a-.5))||0),l+c}function ue(t,e,n){var i=Xt(t),r=(!m.boxSizingReliable()||n)&&"border-box"===L.css(t,"boxSizing",!1,i),o=r,s=$t(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(Qt.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&_(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===L.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===L.css(t,"boxSizing",!1,i),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+ce(t,e,n||(r?"border":"content"),o,i,s)+"px"}function de(t,e,n,i,r){return new de.prototype.init(t,e,n,i,r)}L.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=$t(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=rt(e),l=Jt.test(e),c=t.style;if(l||(e=re(a)),s=L.cssHooks[e]||L.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:c[e];"string"==(o=typeof n)&&(r=pt.exec(n))&&r[1]&&(n=bt(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(L.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var r,o,s,a=rt(e);return Jt.test(e)||(e=re(a)),(s=L.cssHooks[e]||L.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=$t(t,e,i)),"normal"===r&&e in ae&&(r=ae[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),L.each(["height","width"],(function(t,e){L.cssHooks[e]={get:function(t,n,i){if(n)return!oe.test(L.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ue(t,e,i):Kt(t,se,(function(){return ue(t,e,i)}))},set:function(t,n,i){var r,o=Xt(t),s=!m.scrollboxSize()&&"absolute"===o.position,a=(s||i)&&"border-box"===L.css(t,"boxSizing",!1,o),l=i?ce(t,e,i,a,o):0;return a&&s&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ce(t,e,"border",!1,o)-.5)),l&&(r=pt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=L.css(t,e)),le(0,n,l)}}})),L.cssHooks.marginLeft=te(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat($t(t,"marginLeft"))||t.getBoundingClientRect().left-Kt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),L.each({margin:"",padding:"",border:"Width"},(function(t,e){L.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+ft[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(L.cssHooks[t+e].set=le)})),L.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var i,r,o={},s=0;if(Array.isArray(e)){for(i=Xt(t),r=e.length;s<r;s++)o[e[s]]=L.css(t,e[s],!1,i);return o}return void 0!==n?L.style(t,e,n):L.css(t,e)}),t,e,arguments.length>1)}}),L.Tween=de,de.prototype={constructor:de,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||L.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(L.cssNumber[n]?"":"px")},cur:function(){var t=de.propHooks[this.prop];return t&&t.get?t.get(this):de.propHooks._default.get(this)},run:function(t){var e,n=de.propHooks[this.prop];return this.options.duration?this.pos=e=L.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):de.propHooks._default.set(this),this}},de.prototype.init.prototype=de.prototype,de.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=L.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){L.fx.step[t.prop]?L.fx.step[t.prop](t):1!==t.elem.nodeType||!L.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:L.style(t.elem,t.prop,t.now+t.unit)}}},de.propHooks.scrollTop=de.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},L.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},L.fx=de.prototype.init,L.fx.step={};var he,pe,fe=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function me(){pe&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(me):i.setTimeout(me,L.fx.interval),L.fx.tick())}function ve(){return i.setTimeout((function(){he=void 0})),he=Date.now()}function ye(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=ft[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function be(t,e,n){for(var i,r=(we.tweeners[e]||[]).concat(we.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,e,t))return i}function we(t,e,n){var i,r,o=0,s=we.prefilters.length,a=L.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=he||ve(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),o=0,s=c.tweens.length;o<s;o++)c.tweens[o].run(i);return a.notifyWith(t,[c,i,n]),i<1&&s?n:(s||a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:L.extend({},e),opts:L.extend(!0,{specialEasing:{},easing:L.easing._default},n),originalProperties:e,originalOptions:n,startTime:he||ve(),duration:n.duration,tweens:[],createTween:function(e,n){var i=L.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),u=c.props;for(function(t,e){var n,i,r,o,s;for(n in t)if(r=e[i=rt(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(s=L.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(u,c.opts.specialEasing);o<s;o++)if(i=we.prefilters[o].call(c,t,u,c.opts))return v(i.stop)&&(L._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return L.map(u,be,c),v(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),L.fx.timer(L.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}L.Animation=L.extend(we,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return bt(n.elem,t,pt.exec(e),n),n}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(V);for(var n,i=0,r=t.length;i<r;i++)n=t[i],we.tweeners[n]=we.tweeners[n]||[],we.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,s,a,l,c,u,d="width"in e||"height"in e,h=this,p={},f=t.style,g=t.nodeType&&yt(t),m=at.get(t,"fxshow");for(i in n.queue||(null==(s=L._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always((function(){h.always((function(){s.unqueued--,L.queue(t,"fx").length||s.empty.fire()}))}))),e)if(r=e[i],fe.test(r)){if(delete e[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}p[i]=m&&m[i]||L.style(t,i)}if((l=!L.isEmptyObject(e))||!L.isEmptyObject(p))for(i in d&&1===t.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=at.get(t,"display")),"none"===(u=L.css(t,"display"))&&(c?u=c:(xt([t],!0),c=t.style.display||c,u=L.css(t,"display"),xt([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===L.css(t,"float")&&(l||(h.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=at.access(t,"fxshow",{display:c}),o&&(m.hidden=!g),g&&xt([t],!0),h.done((function(){for(i in g||xt([t]),at.remove(t,"fxshow"),p)L.style(t,i,p[i])}))),l=be(g?m[i]:0,i,h),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?we.prefilters.unshift(t):we.prefilters.push(t)}}),L.speed=function(t,e,n){var i=t&&"object"==typeof t?L.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return L.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in L.fx.speeds?i.duration=L.fx.speeds[i.duration]:i.duration=L.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&L.dequeue(this,i.queue)},i},L.fn.extend({fadeTo:function(t,e,n,i){return this.filter(yt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=L.isEmptyObject(t),o=L.speed(e,n,i),s=function(){var e=we(this,L.extend({},t),o);(r||at.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=L.timers,s=at.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&ge.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||L.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=at.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=L.timers,s=i?i.length:0;for(n.finish=!0,L.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),L.each(["toggle","show","hide"],(function(t,e){var n=L.fn[e];L.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ye(e,!0),t,i,r)}})),L.each({slideDown:ye("show"),slideUp:ye("hide"),slideToggle:ye("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){L.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),L.timers=[],L.fx.tick=function(){var t,e=0,n=L.timers;for(he=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||L.fx.stop(),he=void 0},L.fx.timer=function(t){L.timers.push(t),L.fx.start()},L.fx.interval=13,L.fx.start=function(){pe||(pe=!0,me())},L.fx.stop=function(){pe=null},L.fx.speeds={slow:600,fast:200,_default:400},L.fn.delay=function(t,e){return t=L.fx&&L.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}}))},function(){var t=b.createElement("input"),e=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=b.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var Ae,xe=L.expr.attrHandle;L.fn.extend({attr:function(t,e){return tt(this,L.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){L.removeAttr(this,t)}))}}),L.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?L.prop(t,e,n):(1===o&&L.isXMLDoc(t)||(r=L.attrHooks[e.toLowerCase()]||(L.expr.match.bool.test(e)?Ae:void 0)),void 0!==n?null===n?void L.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=L.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&_(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(V);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),Ae={set:function(t,e,n){return!1===e?L.removeAttr(t,n):t.setAttribute(n,n),n}},L.each(L.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=xe[e]||L.find.attr;xe[e]=function(t,e,i){var r,o,s=e.toLowerCase();return i||(o=xe[s],xe[s]=r,r=null!=n(t,e,i)?s:null,xe[s]=o),r}}));var Ce=/^(?:input|select|textarea|button)$/i,Me=/^(?:a|area)$/i;function Le(t){return(t.match(V)||[]).join(" ")}function Ie(t){return t.getAttribute&&t.getAttribute("class")||""}function _e(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(V)||[]}L.fn.extend({prop:function(t,e){return tt(this,L.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[L.propFix[t]||t]}))}}),L.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&L.isXMLDoc(t)||(e=L.propFix[e]||e,r=L.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=L.find.attr(t,"tabindex");return e?parseInt(e,10):Ce.test(t.nodeName)||Me.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(L.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),L.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){L.propFix[this.toLowerCase()]=this})),L.fn.extend({addClass:function(t){var e,n,i,r,o,s;return v(t)?this.each((function(e){L(this).addClass(t.call(this,e,Ie(this)))})):(e=_e(t)).length?this.each((function(){if(i=Ie(this),n=1===this.nodeType&&" "+Le(i)+" "){for(o=0;o<e.length;o++)r=e[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");s=Le(n),i!==s&&this.setAttribute("class",s)}})):this},removeClass:function(t){var e,n,i,r,o,s;return v(t)?this.each((function(e){L(this).removeClass(t.call(this,e,Ie(this)))})):arguments.length?(e=_e(t)).length?this.each((function(){if(i=Ie(this),n=1===this.nodeType&&" "+Le(i)+" "){for(o=0;o<e.length;o++)for(r=e[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");s=Le(n),i!==s&&this.setAttribute("class",s)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,i,r,o,s=typeof t,a="string"===s||Array.isArray(t);return v(t)?this.each((function(n){L(this).toggleClass(t.call(this,n,Ie(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=_e(t),this.each((function(){if(a)for(o=L(this),r=0;r<n.length;r++)i=n[r],o.hasClass(i)?o.removeClass(i):o.addClass(i);else void 0!==t&&"boolean"!==s||((i=Ie(this))&&at.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":at.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Le(Ie(n))+" ").indexOf(e)>-1)return!0;return!1}});var Se=/\r/g;L.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=v(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,L(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=L.map(r,(function(t){return null==t?"":t+""}))),(e=L.valHooks[this.type]||L.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=L.valHooks[r.type]||L.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Se,""):null==n?"":n:void 0}}),L.extend({valHooks:{option:{get:function(t){var e=L.find.attr(t,"value");return null!=e?e:Le(L.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?o+1:r.length;for(i=o<0?l:s?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!_(n.parentNode,"optgroup"))){if(e=L(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,o=L.makeArray(e),s=r.length;s--;)((i=r[s]).selected=L.inArray(L.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),L.each(["radio","checkbox"],(function(){L.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=L.inArray(L(t).val(),e)>-1}},m.checkOn||(L.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var ke=i.location,Te={guid:Date.now()},De=/\?/;L.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||L.error("Invalid XML: "+(n?L.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var je=/^(?:focusinfocus|focusoutblur)$/,Ne=function(t){t.stopPropagation()};L.extend(L.event,{trigger:function(t,e,n,r){var o,s,a,l,c,u,d,h,f=[n||b],g=p.call(t,"type")?t.type:t,m=p.call(t,"namespace")?t.namespace.split("."):[];if(s=h=a=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!je.test(g+L.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[L.expando]?t:new L.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:L.makeArray(e,[t]),d=L.event.special[g]||{},r||!d.trigger||!1!==d.trigger.apply(n,e))){if(!r&&!d.noBubble&&!y(n)){for(l=d.delegateType||g,je.test(l+g)||(s=s.parentNode);s;s=s.parentNode)f.push(s),a=s;a===(n.ownerDocument||b)&&f.push(a.defaultView||a.parentWindow||i)}for(o=0;(s=f[o++])&&!t.isPropagationStopped();)h=s,t.type=o>1?l:d.bindType||g,(u=(at.get(s,"events")||Object.create(null))[t.type]&&at.get(s,"handle"))&&u.apply(s,e),(u=c&&s[c])&&u.apply&&ot(s)&&(t.result=u.apply(s,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),e)||!ot(n)||c&&v(n[g])&&!y(n)&&((a=n[c])&&(n[c]=null),L.event.triggered=g,t.isPropagationStopped()&&h.addEventListener(g,Ne),n[g](),t.isPropagationStopped()&&h.removeEventListener(g,Ne),L.event.triggered=void 0,a&&(n[c]=a)),t.result}},simulate:function(t,e,n){var i=L.extend(new L.Event,n,{type:t,isSimulated:!0});L.event.trigger(i,null,e)}}),L.fn.extend({trigger:function(t,e){return this.each((function(){L.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return L.event.trigger(t,e,n,!0)}});var Oe=/\[\]$/,Ee=/\r?\n/g,ze=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;function Re(t,e,n,i){var r;if(Array.isArray(e))L.each(e,(function(e,r){n||Oe.test(t)?i(t,r):Re(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==x(e))i(t,e);else for(r in e)Re(t+"["+r+"]",e[r],n,i)}L.param=function(t,e){var n,i=[],r=function(t,e){var n=v(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!L.isPlainObject(t))L.each(t,(function(){r(this.name,this.value)}));else for(n in t)Re(n,t[n],e,r);return i.join("&")},L.fn.extend({serialize:function(){return L.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=L.prop(this,"elements");return t?L.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!L(this).is(":disabled")&&Fe.test(this.nodeName)&&!ze.test(t)&&(this.checked||!Lt.test(t))})).map((function(t,e){var n=L(this).val();return null==n?null:Array.isArray(n)?L.map(n,(function(t){return{name:e.name,value:t.replace(Ee,"\r\n")}})):{name:e.name,value:n.replace(Ee,"\r\n")}})).get()}});var Pe=/%20/g,Ye=/#.*$/,Ue=/([?&])_=[^&]*/,Be=/^(.*?):[ \t]*([^\r\n]*)$/gm,We=/^(?:GET|HEAD)$/,Ze=/^\/\//,He={},Ge={},Ve="*/".concat("*"),Qe=b.createElement("a");function Je(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(V)||[];if(v(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Xe(t,e,n,i){var r={},o=t===Ge;function s(a){var l;return r[a]=!0,L.each(t[a]||[],(function(t,a){var c=a(e,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),s(c),!1)})),l}return s(e.dataTypes[0])||!r["*"]&&s("*")}function Ke(t,e){var n,i,r=L.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&L.extend(!0,t,i),t}Qe.href=ke.href,L.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ke.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ke.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ve,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":L.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ke(Ke(t,L.ajaxSettings),e):Ke(L.ajaxSettings,t)},ajaxPrefilter:Je(He),ajaxTransport:Je(Ge),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,o,s,a,l,c,u,d,h,p=L.ajaxSetup({},e),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?L(f):L.event,m=L.Deferred(),v=L.Callbacks("once memory"),y=p.statusCode||{},w={},A={},x="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=Be.exec(o);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=A[t.toLowerCase()]=A[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)C.always(t[C.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||x;return n&&n.abort(e),M(0,e),this}};if(m.promise(C),p.url=((t||p.url||ke.href)+"").replace(Ze,ke.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(V)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Qe.protocol+"//"+Qe.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=L.param(p.data,p.traditional)),Xe(He,p,e,C),c)return C;for(d in(u=L.event&&p.global)&&0==L.active++&&L.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!We.test(p.type),r=p.url.replace(Ye,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Pe,"+")):(h=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(De.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Ue,"$1"),h=(De.test(r)?"&":"?")+"_="+Te.guid+++h),p.url=r+h),p.ifModified&&(L.lastModified[r]&&C.setRequestHeader("If-Modified-Since",L.lastModified[r]),L.etag[r]&&C.setRequestHeader("If-None-Match",L.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ve+"; q=0.01":""):p.accepts["*"]),p.headers)C.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,C,p)||c))return C.abort();if(x="abort",v.add(p.complete),C.done(p.success),C.fail(p.error),n=Xe(Ge,p,e,C)){if(C.readyState=1,u&&g.trigger("ajaxSend",[C,p]),c)return C;p.async&&p.timeout>0&&(a=i.setTimeout((function(){C.abort("timeout")}),p.timeout));try{c=!1,n.send(w,M)}catch(t){if(c)throw t;M(-1,t)}}else M(-1,"No Transport");function M(t,e,s,l){var d,h,b,w,A,x=e;c||(c=!0,a&&i.clearTimeout(a),n=void 0,o=l||"",C.readyState=t>0?4:0,d=t>=200&&t<300||304===t,s&&(w=function(t,e,n){for(var i,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,C,s)),!d&&L.inArray("script",p.dataTypes)>-1&&L.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),w=function(t,e,n,i){var r,o,s,a,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(r in c)if((a=r.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[r]:!0!==c[r]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(p,w,C,d),d?(p.ifModified&&((A=C.getResponseHeader("Last-Modified"))&&(L.lastModified[r]=A),(A=C.getResponseHeader("etag"))&&(L.etag[r]=A)),204===t||"HEAD"===p.type?x="nocontent":304===t?x="notmodified":(x=w.state,h=w.data,d=!(b=w.error))):(b=x,!t&&x||(x="error",t<0&&(t=0))),C.status=t,C.statusText=(e||x)+"",d?m.resolveWith(f,[h,x,C]):m.rejectWith(f,[C,x,b]),C.statusCode(y),y=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[C,p,d?h:b]),v.fireWith(f,[C,x]),u&&(g.trigger("ajaxComplete",[C,p]),--L.active||L.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,n){return L.get(t,e,n,"json")},getScript:function(t,e){return L.get(t,void 0,e,"script")}}),L.each(["get","post"],(function(t,e){L[e]=function(t,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),L.ajax(L.extend({url:t,type:e,dataType:r,data:n,success:i},L.isPlainObject(t)&&t))}})),L.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),L._evalUrl=function(t,e,n){return L.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){L.globalEval(t,e,n)}})},L.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=L(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(e){L(this).wrapInner(t.call(this,e))})):this.each((function(){var e=L(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(n){L(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){L(this).replaceWith(this.childNodes)})),this}}),L.expr.pseudos.hidden=function(t){return!L.expr.pseudos.visible(t)},L.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},L.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var qe={0:200,1223:204},$e=L.ajaxSettings.xhr();m.cors=!!$e&&"withCredentials"in $e,m.ajax=$e=!!$e,L.ajaxTransport((function(t){var e,n;if(m.cors||$e&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(qe[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout((function(){e&&n()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),L.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),L.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return L.globalEval(t),t}}}),L.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),L.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=L("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),b.head.appendChild(e[0])},abort:function(){n&&n()}}}));var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;L.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||L.expando+"_"+Te.guid++;return this[t]=!0,t}}),L.ajaxPrefilter("json jsonp",(function(t,e,n){var r,o,s,a=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+r):!1!==t.jsonp&&(t.url+=(De.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||L.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=i[r],i[r]=function(){s=arguments},n.always((function(){void 0===o?L(i).removeProp(r):i[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,en.push(r)),s&&v(o)&&o(s[0]),s=o=void 0})),"script"})),m.createHTMLDocument=((tn=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),L.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?((i=(e=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,e.head.appendChild(i)):e=b),o=!n&&[],(r=Y.exec(t))?[e.createElement(r[1])]:(r=jt([t],e,o),o&&o.length&&L(o).remove(),L.merge([],r.childNodes)));var i,r,o},L.fn.load=function(t,e,n){var i,r,o,s=this,a=t.indexOf(" ");return a>-1&&(i=Le(t.slice(a)),t=t.slice(0,a)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&L.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,s.html(i?L("<div>").append(L.parseHTML(t)).find(i):t)})).always(n&&function(t,e){s.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},L.expr.pseudos.animated=function(t){return L.grep(L.timers,(function(e){return t===e.elem})).length},L.offset={setOffset:function(t,e,n){var i,r,o,s,a,l,c=L.css(t,"position"),u=L(t),d={};"static"===c&&(t.style.position="relative"),a=u.offset(),o=L.css(t,"top"),l=L.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(s=(i=u.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),v(e)&&(e=e.call(t,n,L.extend({},a))),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+r),"using"in e?e.using.call(t,d):u.css(d)}},L.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){L.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===L.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===L.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=L(t).offset()).top+=L.css(t,"borderTopWidth",!0),r.left+=L.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-L.css(i,"marginTop",!0),left:e.left-r.left-L.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===L.css(t,"position");)t=t.offsetParent;return t||gt}))}}),L.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;L.fn[t]=function(i){return tt(this,(function(t,i,r){var o;if(y(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r}),t,i,arguments.length)}})),L.each(["top","left"],(function(t,e){L.cssHooks[e]=te(m.pixelPosition,(function(t,n){if(n)return n=$t(t,e),Qt.test(n)?L(t).position()[e]+"px":n}))})),L.each({Height:"height",Width:"width"},(function(t,e){L.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){L.fn[i]=function(r,o){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return tt(this,(function(e,n,r){var o;return y(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?L.css(e,n,a):L.style(e,n,r,a)}),e,s?r:void 0,s)}}))})),L.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){L.fn[e]=function(t){return this.on(e,t)}})),L.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),L.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){L.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;L.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),v(t))return i=a.call(arguments,2),r=function(){return t.apply(e||this,i.concat(a.call(arguments)))},r.guid=t.guid=t.guid||L.guid++,r},L.holdReady=function(t){t?L.readyWait++:L.ready(!0)},L.isArray=Array.isArray,L.parseJSON=JSON.parse,L.nodeName=_,L.isFunction=v,L.isWindow=y,L.camelCase=rt,L.type=x,L.now=Date.now,L.isNumeric=function(t){var e=L.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},L.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return L}.apply(e,[]))||(t.exports=n);var on=i.jQuery,sn=i.$;return L.noConflict=function(t){return i.$===L&&(i.$=sn),t&&i.jQuery===L&&(i.jQuery=on),L},void 0===r&&(i.jQuery=i.$=L),L}))},461:(t,e,n)=>{t.exports=function t(e,n,i){function r(s,a){if(!n[s]){if(!e[s]){if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};e[s][0].call(c.exports,(function(t){return r(e[s][1][t]||t)}),c,c.exports,t,e,n,i)}return n[s].exports}for(var o=void 0,s=0;s<i.length;s++)r(i[s]);return r}({1:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,r,s,a,l,c,u=[],d=0,h=t.length,p=h,f="string"!==i.getTypeOf(t);d<t.length;)p=h-d,r=f?(e=t[d++],n=d<h?t[d++]:0,d<h?t[d++]:0):(e=t.charCodeAt(d++),n=d<h?t.charCodeAt(d++):0,d<h?t.charCodeAt(d++):0),s=e>>2,a=(3&e)<<4|n>>4,l=1<p?(15&n)<<2|r>>6:64,c=2<p?63&r:64,u.push(o.charAt(s)+o.charAt(a)+o.charAt(l)+o.charAt(c));return u.join("")},n.decode=function(t){var e,n,i,s,a,l,c=0,u=0,d="data:";if(t.substr(0,5)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,p=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&p--,t.charAt(t.length-2)===o.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=r.uint8array?new Uint8Array(0|p):new Array(0|p);c<t.length;)e=o.indexOf(t.charAt(c++))<<2|(s=o.indexOf(t.charAt(c++)))>>4,n=(15&s)<<4|(a=o.indexOf(t.charAt(c++)))>>2,i=(3&a)<<6|(l=o.indexOf(t.charAt(c++))),h[u++]=e,64!==a&&(h[u++]=n),64!==l&&(h[u++]=i);return h}},{"./support":30,"./utils":32}],2:[function(t,e,n){"use strict";var i=t("./external"),r=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),s=t("./stream/DataLengthProbe");function a(t,e,n,i,r){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=i,this.compressedContent=r}a.prototype={getContentWorker:function(){var t=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(t,e,n){return t.pipe(new o).pipe(new s("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new s("compressedSize")).withStreamInfo("compression",e)},e.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){"use strict";var i=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){"use strict";var i=t("./utils"),r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==i.getTypeOf(t)?function(t,e,n){var i=r,o=0+n;t^=-1;for(var s=0;s<o;s++)t=t>>>8^i[255&(t^e[s])];return~t}(0|e,t,t.length):function(t,e,n){var i=r,o=0+n;t^=-1;for(var s=0;s<o;s++)t=t>>>8^i[255&(t^e.charCodeAt(s))];return~t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){"use strict";var i;i="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:i}},{lie:37}],7:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=t("pako"),o=t("./utils"),s=t("./stream/GenericWorker"),a=i?"uint8array":"array";function l(t,e){s.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",o.inherits(l,s),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(a,t.data),!1)},l.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new l("Deflate",t)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){"use strict";function i(t,e){var n,i="";for(n=0;n<e;n++)i+=String.fromCharCode(255&t),t>>>=8;return i}function r(t,e,n,r,s,u){var d,h,p=t.file,f=t.compression,g=u!==a.utf8encode,m=o.transformTo("string",u(p.name)),v=o.transformTo("string",a.utf8encode(p.name)),y=p.comment,b=o.transformTo("string",u(y)),w=o.transformTo("string",a.utf8encode(y)),A=v.length!==p.name.length,x=w.length!==y.length,C="",M="",L="",I=p.dir,_=p.date,S={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(S.crc32=t.crc32,S.compressedSize=t.compressedSize,S.uncompressedSize=t.uncompressedSize);var k=0;e&&(k|=8),g||!A&&!x||(k|=2048);var T=0,D=0;I&&(T|=16),"UNIX"===s?(D=798,T|=function(t,e){var n=t;return t||(n=e?16893:33204),(65535&n)<<16}(p.unixPermissions,I)):(D=20,T|=function(t){return 63&(t||0)}(p.dosPermissions)),d=_.getUTCHours(),d<<=6,d|=_.getUTCMinutes(),d<<=5,d|=_.getUTCSeconds()/2,h=_.getUTCFullYear()-1980,h<<=4,h|=_.getUTCMonth()+1,h<<=5,h|=_.getUTCDate(),A&&(M=i(1,1)+i(l(m),4)+v,C+="up"+i(M.length,2)+M),x&&(L=i(1,1)+i(l(b),4)+w,C+="uc"+i(L.length,2)+L);var j="";return j+="\n\0",j+=i(k,2),j+=f.magic,j+=i(d,2),j+=i(h,2),j+=i(S.crc32,4),j+=i(S.compressedSize,4),j+=i(S.uncompressedSize,4),j+=i(m.length,2),j+=i(C.length,2),{fileRecord:c.LOCAL_FILE_HEADER+j+m+C,dirRecord:c.CENTRAL_FILE_HEADER+i(D,2)+j+i(b.length,2)+"\0\0\0\0"+i(T,4)+i(r,4)+m+C+b}}var o=t("../utils"),s=t("../stream/GenericWorker"),a=t("../utf8"),l=t("../crc32"),c=t("../signature");function u(t,e,n,i){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(u,s),u.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,s.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-i-1))/n:100}}))},u.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=r(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=r(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:function(t){return c.DATA_DESCRIPTOR+i(t.crc32,4)+i(t.compressedSize,4)+i(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var n=this.bytesWritten-t,r=function(t,e,n,r,s){var a=o.transformTo("string",s(r));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(t,2)+i(t,2)+i(e,4)+i(n,4)+i(a.length,2)+a}(this.dirRecords.length,n,t,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},u.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(t){var e=this._sources;if(!s.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch(t){}return!0},u.prototype.lock=function(){s.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){"use strict";var i=t("../compressions"),r=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var o=new r(e.streamFiles,n,e.platform,e.encodeFileName),s=0;try{t.forEach((function(t,n){s++;var r=function(t,e){var n=t||e,r=i[n];if(!r)throw new Error(n+" is not a valid compression method !");return r}(n.options.compression,e.compression),a=n.options.compressionOptions||e.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(r,a).withStreamInfo("file",{name:t,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=s}catch(t){o.error(t)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new i;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(i.prototype=t("./object")).loadAsync=t("./load"),i.support=t("./support"),i.defaults=t("./defaults"),i.version="3.10.1",i.loadAsync=function(t,e){return(new i).loadAsync(t,e)},i.external=t("./external"),e.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./external"),o=t("./utf8"),s=t("./zipEntries"),a=t("./stream/Crc32Probe"),l=t("./nodejsUtils");function c(t){return new r.Promise((function(e,n){var i=t.decompressed.getContentWorker().pipe(new a);i.on("error",(function(t){n(t)})).on("end",(function(){i.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var n=this;return e=i.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(t)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var n=new s(e);return n.load(t),n})).then((function(t){var n=[r.Promise.resolve(t)],i=t.files;if(e.checkCRC32)for(var o=0;o<i.length;o++)n.push(c(i[o]));return r.Promise.all(n)})).then((function(t){for(var r=t.shift(),o=r.files,s=0;s<o.length;s++){var a=o[s],l=a.fileNameStr,c=i.resolve(a.fileNameStr);n.file(c,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:e.createFolders}),a.dir||(n.file(c).unsafeOriginalName=l)}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../stream/GenericWorker");function o(t,e){r.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}i.inherits(o,r),o.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},o.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){"use strict";var i=t("readable-stream").Readable;function r(t,e,n){i.call(this,e),this._helper=t;var r=this;t.on("data",(function(t,e){r.push(t)||r._helper.pause(),n&&n(e)})).on("error",(function(t){r.emit("error",t)})).on("end",(function(){r.push(null)}))}t("../utils").inherits(r,i),r.prototype._read=function(){this._helper.resume()},e.exports=r},{"../utils":32,"readable-stream":16}],14:[function(t,e,n){"use strict";e.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(t,e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new Buffer(t,e)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var e=new Buffer(t);return e.fill(0),e},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){"use strict";function i(t,e,n){var i,r=o.getTypeOf(e),a=o.extend(n||{},l);a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(t=g(t)),a.createFolders&&(i=f(t))&&m.call(this,i,!0);var d="string"===r&&!1===a.binary&&!1===a.base64;n&&void 0!==n.binary||(a.binary=!d),(e instanceof c&&0===e.uncompressedSize||a.dir||!e||0===e.length)&&(a.base64=!1,a.binary=!0,e="",a.compression="STORE",r="string");var v;v=e instanceof c||e instanceof s?e:h.isNode&&h.isStream(e)?new p(t,e):o.prepareContent(t,e,a.binary,a.optimizedBinaryString,a.base64);var y=new u(t,v,a);this.files[t]=y}var r=t("./utf8"),o=t("./utils"),s=t("./stream/GenericWorker"),a=t("./stream/StreamHelper"),l=t("./defaults"),c=t("./compressedObject"),u=t("./zipObject"),d=t("./generate"),h=t("./nodejsUtils"),p=t("./nodejs/NodejsStreamInputAdapter"),f=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},m=function(t,e){return e=void 0!==e?e:l.createFolders,t=g(t),this.files[t]||i.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function v(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,i;for(e in this.files)i=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,i)},filter:function(t){var e=[];return this.forEach((function(n,i){t(n,i)&&e.push(i)})),e},file:function(t,e,n){if(1!==arguments.length)return t=this.root+t,i.call(this,t,e,n),this;if(v(t)){var r=t;return this.filter((function(t,e){return!e.dir&&r.test(t)}))}var o=this.files[this.root+t];return o&&!o.dir?o:null},folder:function(t){if(!t)return this;if(v(t))return this.filter((function(e,n){return n.dir&&t.test(e)}));var e=this.root+t,n=m.call(this,e),i=this.clone();return i.root=n.name,i},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter((function(e,n){return n.name.slice(0,t.length)===t})),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=o.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var i=n.comment||this.comment||"";e=d.generateWorker(this,n,i)}catch(t){(e=new s("error")).error(t)}return new a(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){"use strict";e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data[this.zero+t]},r.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===e&&this.data[o+1]===n&&this.data[o+2]===i&&this.data[o+3]===r)return o-this.zero;return-1},r.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),o=this.readData(4);return e===o[0]&&n===o[1]&&i===o[2]&&r===o[3]},r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){"use strict";var i=t("../utils");function r(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=r},{"../utils":32}],19:[function(t,e,n){"use strict";var i=t("./Uint8ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},r.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},r.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){"use strict";var i=t("./ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../support"),o=t("./ArrayReader"),s=t("./StringReader"),a=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=i.getTypeOf(t);return i.checkSupport(e),"string"!==e||r.uint8array?"nodebuffer"===e?new a(t):r.uint8array?new l(i.transformTo("uint8array",t)):new o(i.transformTo("array",t)):new s(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../utils");function o(t){i.call(this,"ConvertWorker to "+t),this.destType=t}r.inherits(o,i),o.prototype.processChunk=function(t){this.push({data:r.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../crc32");function o(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,i),o.prototype.processChunk=function(t){this.streamInfo.crc32=r(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}i.inherits(o,r),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}r.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=i.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}i.inherits(o,r),o.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){"use strict";function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=i},{}],29:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./ConvertWorker"),o=t("./GenericWorker"),s=t("../base64"),a=t("../support"),l=t("../external"),c=null;if(a.nodestream)try{c=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function u(t,e,n){var s=e;switch(e){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=e,this._mimeType=n,i.checkSupport(s),this._worker=t.pipe(new r(s)),t.lock()}catch(t){this._worker=new o("error"),this._worker.error(t)}}u.prototype={accumulate:function(t){return function(t,e){return new l.Promise((function(n,r){var o=[],a=t._internalType,l=t._outputType,c=t._mimeType;t.on("data",(function(t,n){o.push(t),e&&e(n)})).on("error",(function(t){o=[],r(t)})).on("end",(function(){try{var t=function(t,e,n){switch(t){case"blob":return i.newBlob(i.transformTo("arraybuffer",e),n);case"base64":return s.encode(e);default:return i.transformTo(t,e)}}(l,function(t,e){var n,i=0,r=null,o=0;for(n=0;n<e.length;n++)o+=e[n].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(r=new Uint8Array(o),n=0;n<e.length;n++)r.set(e[n],i),i+=e[n].length;return r;case"nodebuffer":return Buffer.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(a,o),c);n(t)}catch(t){r(t)}o=[]})).resume()}))}(this,t)},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,(function(t){e.call(n,t.data,t.meta)})):this._worker.on(t,(function(){i.delay(e,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},t)}},e.exports=u},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,e,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=0===new Blob([i],{type:"application/zip"}).size}catch(t){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),n.blob=0===r.getBlob("application/zip").size}catch(t){n.blob=!1}}}try{n.nodestream=!!t("readable-stream").Readable}catch(t){n.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){"use strict";for(var i=t("./utils"),r=t("./support"),o=t("./nodejsUtils"),s=t("./stream/GenericWorker"),a=new Array(256),l=0;l<256;l++)a[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){s.call(this,"utf-8 decode"),this.leftOver=null}function u(){s.call(this,"utf-8 encode")}a[254]=a[254]=1,n.utf8encode=function(t){return r.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var e,n,i,o,s,a=t.length,l=0;for(o=0;o<a;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=r.uint8array?new Uint8Array(l):new Array(l),o=s=0;s<l;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[s++]=n:(n<2048?e[s++]=192|n>>>6:(n<65536?e[s++]=224|n>>>12:(e[s++]=240|n>>>18,e[s++]=128|n>>>12&63),e[s++]=128|n>>>6&63),e[s++]=128|63&n);return e}(t)},n.utf8decode=function(t){return r.nodebuffer?i.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,r,o,s=t.length,l=new Array(2*s);for(e=n=0;e<s;)if((r=t[e++])<128)l[n++]=r;else if(4<(o=a[r]))l[n++]=65533,e+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&e<s;)r=r<<6|63&t[e++],o--;1<o?l[n++]=65533:r<65536?l[n++]=r:(r-=65536,l[n++]=55296|r>>10&1023,l[n++]=56320|1023&r)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),i.applyFromCharCode(l)}(t=i.transformTo(r.uint8array?"uint8array":"array",t))},i.inherits(c,s),c.prototype.processChunk=function(t){var e=i.transformTo(r.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=e;(e=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),e.set(o,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var s=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}(e),l=e;s!==e.length&&(r.uint8array?(l=e.subarray(0,s),this.leftOver=e.subarray(s,e.length)):(l=e.slice(0,s),this.leftOver=e.slice(s,e.length))),this.push({data:n.utf8decode(l),meta:t.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,i.inherits(u,s),u.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){"use strict";var i=t("./support"),r=t("./base64"),o=t("./nodejsUtils"),s=t("./external");function a(t){return t}function l(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}t("setimmediate"),n.newBlob=function(t,e){n.checkSupport("blob");try{return new Blob([t],{type:e})}catch(n){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(e)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(t,e,n){var i=[],r=0,o=t.length;if(o<=n)return String.fromCharCode.apply(null,t);for(;r<o;)"array"===e||"nodebuffer"===e?i.push(String.fromCharCode.apply(null,t.slice(r,Math.min(r+n,o)))):i.push(String.fromCharCode.apply(null,t.subarray(r,Math.min(r+n,o)))),r+=n;return i.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(t){return!1}}()}};function u(t){var e=65536,i=n.getTypeOf(t),r=!0;if("uint8array"===i?r=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=c.applyCanBeUsed.nodebuffer),r)for(;1<e;)try{return c.stringifyByChunk(t,i,e)}catch(t){e=Math.floor(e/2)}return c.stringifyByChar(t)}function d(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=u;var h={};h.string={string:a,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return h.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,o.allocBuffer(t.length))}},h.array={string:u,array:a,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},h.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return d(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:a,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},h.uint8array={string:u,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:a,nodebuffer:function(t){return o.newBufferFrom(t)}},h.nodebuffer={string:u,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return h.nodebuffer.uint8array(t).buffer},uint8array:function(t){return d(t,new Uint8Array(t.length))},nodebuffer:a},n.transformTo=function(t,e){if(e=e||"",!t)return e;n.checkSupport(t);var i=n.getTypeOf(e);return h[i][t](e)},n.resolve=function(t){for(var e=t.split("/"),n=[],i=0;i<e.length;i++){var r=e[i];"."===r||""===r&&0!==i&&i!==e.length-1||(".."===r?n.pop():n.push(r))}return n.join("/")},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":i.nodebuffer&&o.isBuffer(t)?"nodebuffer":i.uint8array&&t instanceof Uint8Array?"uint8array":i.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!i[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,i="";for(n=0;n<(t||"").length;n++)i+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return i},n.delay=function(t,e,n){setImmediate((function(){t.apply(n||null,e||[])}))},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,o,a,c){return s.Promise.resolve(e).then((function(t){return i.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new s.Promise((function(e,n){var i=new FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t.target.error)},i.readAsArrayBuffer(t)})):t})).then((function(e){var u=n.getTypeOf(e);return u?("arraybuffer"===u?e=n.transformTo("uint8array",e):"string"===u&&(c?e=r.decode(e):o&&!0!==a&&(e=function(t){return l(t,i.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):s.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),o=t("./signature"),s=t("./zipEntry"),a=t("./support");function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(e)+", expected "+r.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var i=this.reader.readString(4)===e;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=a.uint8array?"uint8array":"array",n=r.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,i=this.zip64EndOfCentralSize-44;0<i;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(t=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=e-n;if(0<i)this.isSignature(e,o.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(t){this.reader=i(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),o=t("./compressedObject"),s=t("./crc32"),a=t("./utf8"),l=t("./compressions"),c=t("./support");function u(t,e){this.options=t,this.loadOptions=e}u.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)&&l[e].magic===t)return l[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,n,i,r=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<r;)e=t.readInt(2),n=t.readInt(2),i=t.readData(n),this.extraFields[e]={id:e,length:n,value:i};t.setIndex(r)},handleUTF8:function(){var t=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=r.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var o=r.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=i(t.value);return 1!==e.readInt(1)||s(this.fileName)!==e.readInt(4)?null:a.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=i(t.value);return 1!==e.readInt(1)||s(this.fileComment)!==e.readInt(4)?null:a.utf8decode(e.readData(t.length-5))}return null}},e.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){"use strict";function i(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var r=t("./stream/StreamHelper"),o=t("./stream/DataWorker"),s=t("./utf8"),a=t("./compressedObject"),l=t("./stream/GenericWorker");i.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw new Error("No output type specified.");var i="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var o=!this._dataBinary;o&&!i&&(e=e.pipe(new s.Utf8EncodeWorker)),!o&&i&&(e=e.pipe(new s.Utf8DecodeWorker))}catch(t){(e=new l("error")).error(t)}return new r(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof a&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new s.Utf8EncodeWorker)),a.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)i.prototype[c[d]]=u;e.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,i){(function(t){"use strict";var n,i,r=t.MutationObserver||t.WebKitMutationObserver;if(r){var o=0,s=new r(u),a=t.document.createTextNode("");s.observe(a,{characterData:!0}),n=function(){a.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){u(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(u,0)};else{var l=new t.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var t,e;i=!0;for(var n=c.length;n;){for(e=c,c=[],t=-1;++t<n;)e[t]();n=c.length}i=!1}e.exports=function(t){1!==c.push(t)||i||n()}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,n){"use strict";var i=t("immediate");function r(){}var o={},s=["REJECTED"],a=["FULFILLED"],l=["PENDING"];function c(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==r&&p(this,t)}function u(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(t,e,n){i((function(){var i;try{i=e(n)}catch(i){return o.reject(t,i)}i===t?o.reject(t,new TypeError("Cannot resolve promise with itself")):o.resolve(t,i)}))}function h(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function p(t,e){var n=!1;function i(e){n||(n=!0,o.reject(t,e))}function r(e){n||(n=!0,o.resolve(t,e))}var s=f((function(){e(r,i)}));"error"===s.status&&i(s.value)}function f(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}(e.exports=c).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},c.prototype.catch=function(t){return this.then(null,t)},c.prototype.then=function(t,e){if("function"!=typeof t&&this.state===a||"function"!=typeof e&&this.state===s)return this;var n=new this.constructor(r);return this.state!==l?d(n,this.state===a?t:e,this.outcome):this.queue.push(new u(n,t,e)),n},u.prototype.callFulfilled=function(t){o.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){d(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){o.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){d(this.promise,this.onRejected,t)},o.resolve=function(t,e){var n=f(h,e);if("error"===n.status)return o.reject(t,n.value);var i=n.value;if(i)p(t,i);else{t.state=a,t.outcome=e;for(var r=-1,s=t.queue.length;++r<s;)t.queue[r].callFulfilled(e)}return t},o.reject=function(t,e){t.state=s,t.outcome=e;for(var n=-1,i=t.queue.length;++n<i;)t.queue[n].callRejected(e);return t},c.resolve=function(t){return t instanceof this?t:o.resolve(new this(r),t)},c.reject=function(t){var e=new this(r);return o.reject(e,t)},c.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,i=!1;if(!n)return this.resolve([]);for(var s=new Array(n),a=0,l=-1,c=new this(r);++l<n;)u(t[l],l);return c;function u(t,r){e.resolve(t).then((function(t){s[r]=t,++a!==n||i||(i=!0,o.resolve(c,s))}),(function(t){i||(i=!0,o.reject(c,t))}))}},c.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var e=t.length,n=!1;if(!e)return this.resolve([]);for(var i,s=-1,a=new this(r);++s<e;)i=t[s],this.resolve(i).then((function(t){n||(n=!0,o.resolve(a,t))}),(function(t){n||(n=!0,o.reject(a,t))}));return a}},{immediate:36}],38:[function(t,e,n){"use strict";var i={};(0,t("./lib/utils/common").assign)(i,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){"use strict";var i=t("./zlib/deflate"),r=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/messages"),a=t("./zlib/zstream"),l=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=r.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(s[n]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){var u;if(u="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=i.deflateSetDictionary(this.strm,u)))throw new Error(s[n]);this._dict_set=!0}}function u(t,e){var n=new c(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}c.prototype.push=function(t,e){var n,s,a=this.strm,c=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"==typeof t?a.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new r.Buf8(c),a.next_out=0,a.avail_out=c),1!==(n=i.deflate(a,s))&&0!==n)return this.onEnd(n),!(this.ended=!0);0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(a.output,a.next_out))):this.onData(r.shrinkBuf(a.output,a.next_out)))}while((0<a.avail_in||0===a.avail_out)&&1!==n);return 4===s?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==s||(this.onEnd(0),!(a.avail_out=0))},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=c,n.deflate=u,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,u(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,u(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){"use strict";var i=t("./zlib/inflate"),r=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/constants"),a=t("./zlib/messages"),l=t("./zlib/zstream"),c=t("./zlib/gzheader"),u=Object.prototype.toString;function d(t){if(!(this instanceof d))return new d(t);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&!(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,e.windowBits);if(n!==s.Z_OK)throw new Error(a[n]);this.header=new c,i.inflateGetHeader(this.strm,this.header)}function h(t,e){var n=new d(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}d.prototype.push=function(t,e){var n,a,l,c,d,h,p=this.strm,f=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof t?p.input=o.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?p.input=new Uint8Array(t):p.input=t,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new r.Buf8(f),p.next_out=0,p.avail_out=f),(n=i.inflate(p,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&g&&(h="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=i.inflateSetDictionary(this.strm,h)),n===s.Z_BUF_ERROR&&!0===m&&(n=s.Z_OK,m=!1),n!==s.Z_STREAM_END&&n!==s.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(0!==p.avail_out&&n!==s.Z_STREAM_END&&(0!==p.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(p.output,p.next_out),c=p.next_out-l,d=o.buf2string(p.output,l),p.next_out=c,p.avail_out=f-c,c&&r.arraySet(p.output,p.output,l,c,0),this.onData(d)):this.onData(r.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(m=!0)}while((0<p.avail_in||0===p.avail_out)&&n!==s.Z_STREAM_END);return n===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(p.avail_out=0))},d.prototype.onData=function(t){this.chunks.push(t)},d.prototype.onEnd=function(t){t===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=d,n.inflate=h,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},n.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,n,i,r){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),r);else for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){var e,n,i,r,o,s;for(e=i=0,n=t.length;e<n;e++)i+=t[e].length;for(s=new Uint8Array(i),e=r=0,n=t.length;e<n;e++)o=t[e],s.set(o,r),r+=o.length;return s}},o={arraySet:function(t,e,n,i,r){for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,r)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(i)},{}],42:[function(t,e,n){"use strict";var i=t("./common"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var s=new i.Buf8(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function l(t,e){if(e<65537&&(t.subarray&&o||!t.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(t,e));for(var n="",s=0;s<e;s++)n+=String.fromCharCode(t[s]);return n}s[254]=s[254]=1,n.string2buf=function(t){var e,n,r,o,s,a=t.length,l=0;for(o=0;o<a;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=new i.Buf8(l),o=s=0;s<l;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?e[s++]=n:(n<2048?e[s++]=192|n>>>6:(n<65536?e[s++]=224|n>>>12:(e[s++]=240|n>>>18,e[s++]=128|n>>>12&63),e[s++]=128|n>>>6&63),e[s++]=128|63&n);return e},n.buf2binstring=function(t){return l(t,t.length)},n.binstring2buf=function(t){for(var e=new i.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,i,r,o,a=e||t.length,c=new Array(2*a);for(n=i=0;n<a;)if((r=t[n++])<128)c[i++]=r;else if(4<(o=s[r]))c[i++]=65533,n+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&n<a;)r=r<<6|63&t[n++],o--;1<o?c[i++]=65533:r<65536?c[i++]=r:(r-=65536,c[i++]=55296|r>>10&1023,c[i++]=56320|1023&r)}return l(c,i)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+s[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){for(var r=65535&t,o=t>>>16&65535,s=0;0!==n;){for(n-=s=2e3<n?2e3:n;o=o+(r=r+e[i++]|0)|0,--s;);r%=65521,o%=65521}return r|o<<16}},{}],44:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){"use strict";var i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,r){var o=i,s=r+n;t^=-1;for(var a=r;a<s;a++)t=t>>>8^o[255&(t^e[a])];return~t}},{}],46:[function(t,e,n){"use strict";var i,r=t("../utils/common"),o=t("./trees"),s=t("./adler32"),a=t("./crc32"),l=t("./messages"),c=-2,u=258,d=262,h=113;function p(t,e){return t.msg=l[e],e}function f(t){return(t<<1)-(4<t?9:0)}function g(t){for(var e=t.length;0<=--e;)t[e]=0}function m(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(r.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function v(t,e){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,m(t.strm)}function y(t,e){t.pending_buf[t.pending++]=e}function b(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function w(t,e){var n,i,r=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,l=t.strstart>t.w_size-d?t.strstart-(t.w_size-d):0,c=t.window,h=t.w_mask,p=t.prev,f=t.strstart+u,g=c[o+s-1],m=c[o+s];t.prev_length>=t.good_match&&(r>>=2),a>t.lookahead&&(a=t.lookahead);do{if(c[(n=e)+s]===m&&c[n+s-1]===g&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<f);if(i=u-(f-o),o=f-u,s<i){if(t.match_start=e,a<=(s=i))break;g=c[o+s-1],m=c[o+s]}}}while((e=p[e&h])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead}function A(t){var e,n,i,o,l,c,u,h,p,f,g=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=g+(g-d)){for(r.arraySet(t.window,t.window,g,g,0),t.match_start-=g,t.strstart-=g,t.block_start-=g,e=n=t.hash_size;i=t.head[--e],t.head[e]=g<=i?i-g:0,--n;);for(e=n=g;i=t.prev[--e],t.prev[e]=g<=i?i-g:0,--n;);o+=g}if(0===t.strm.avail_in)break;if(c=t.strm,u=t.window,h=t.strstart+t.lookahead,f=void 0,(p=o)<(f=c.avail_in)&&(f=p),n=0===f?0:(c.avail_in-=f,r.arraySet(u,c.input,c.next_in,f,h),1===c.state.wrap?c.adler=s(c.adler,u,f,h):2===c.state.wrap&&(c.adler=a(c.adler,u,f,h)),c.next_in+=f,c.total_in+=f,f),t.lookahead+=n,t.lookahead+t.insert>=3)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+3-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<d&&0!==t.strm.avail_in)}function x(t,e){for(var n,i;;){if(t.lookahead<d){if(A(t),t.lookahead<d&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-d&&(t.match_length=w(t,n)),t.match_length>=3)if(i=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}function C(t,e){for(var n,i,r;;){if(t.lookahead<d){if(A(t),t.lookahead<d&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-d&&(t.match_length=w(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-3,i=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(v(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((i=o._tr_tally(t,0,t.window[t.strstart-1]))&&v(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}function M(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}function L(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),g(this.dyn_ltree),g(this.dyn_dtree),g(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),g(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),g(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function I(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:h,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):p(t,c)}function _(t){var e=I(t);return 0===e&&function(t){t.window_size=2*t.w_size,g(t.head),t.max_lazy_match=i[t.level].max_lazy,t.good_match=i[t.level].good_length,t.nice_match=i[t.level].nice_length,t.max_chain_length=i[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),e}function S(t,e,n,i,o,s){if(!t)return c;var a=1;if(-1===e&&(e=6),i<0?(a=0,i=-i):15<i&&(a=2,i-=16),o<1||9<o||8!==n||i<8||15<i||e<0||9<e||s<0||4<s)return p(t,c);8===i&&(i=9);var l=new L;return(t.state=l).strm=t,l.wrap=a,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=n,_(t)}i=[new M(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(A(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,v(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-d&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(v(t,!1),t.strm.avail_out),1)})),new M(4,4,8,4,x),new M(4,5,16,8,x),new M(4,6,32,32,x),new M(4,4,16,16,C),new M(8,16,32,32,C),new M(8,16,128,128,C),new M(8,32,128,256,C),new M(32,128,258,1024,C),new M(32,258,258,4096,C)],n.deflateInit=function(t,e){return S(t,e,8,15,8,0)},n.deflateInit2=S,n.deflateReset=_,n.deflateResetKeep=I,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?c:(t.state.gzhead=e,0):c},n.deflate=function(t,e){var n,r,s,l;if(!t||!t.state||5<e||e<0)return t?p(t,c):c;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&4!==e)return p(t,0===t.avail_out?-5:c);if(r.strm=t,n=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,y(r,31),y(r,139),y(r,8),r.gzhead?(y(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),y(r,255&r.gzhead.time),y(r,r.gzhead.time>>8&255),y(r,r.gzhead.time>>16&255),y(r,r.gzhead.time>>24&255),y(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),y(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(y(r,255&r.gzhead.extra.length),y(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=a(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(y(r,0),y(r,0),y(r,0),y(r,0),y(r,0),y(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),y(r,3),r.status=h);else{var d=8+(r.w_bits-8<<4)<<8;d|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(d|=32),d+=31-d%31,r.status=h,b(r,d),0!==r.strstart&&(b(r,t.adler>>>16),b(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(s=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),m(t),s=r.pending,r.pending!==r.pending_buf_size));)y(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),m(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,y(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),m(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,y(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&m(t),r.pending+2<=r.pending_buf_size&&(y(r,255&t.adler),y(r,t.adler>>8&255),t.adler=0,r.status=h)):r.status=h),0!==r.pending){if(m(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(n)&&4!==e)return p(t,-5);if(666===r.status&&0!==t.avail_in)return p(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&666!==r.status){var w=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(A(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var n,i,r,s,a=t.window;;){if(t.lookahead<=u){if(A(t),t.lookahead<=u&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(i=a[r=t.strstart-1])===a[++r]&&i===a[++r]&&i===a[++r]){s=t.strstart+u;do{}while(i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&r<s);t.match_length=u-(s-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}(r,e):i[r.level].func(r,e);if(3!==w&&4!==w||(r.status=666),1===w||3===w)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===w&&(1===e?o._tr_align(r):5!==e&&(o._tr_stored_block(r,0,0,!1),3===e&&(g(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),m(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(y(r,255&t.adler),y(r,t.adler>>8&255),y(r,t.adler>>16&255),y(r,t.adler>>24&255),y(r,255&t.total_in),y(r,t.total_in>>8&255),y(r,t.total_in>>16&255),y(r,t.total_in>>24&255)):(b(r,t.adler>>>16),b(r,65535&t.adler)),m(t),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?0:1)},n.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&e!==h&&666!==e?p(t,c):(t.state=null,e===h?p(t,-3):0):c},n.deflateSetDictionary=function(t,e){var n,i,o,a,l,u,d,h,p=e.length;if(!t||!t.state)return c;if(2===(a=(n=t.state).wrap)||1===a&&42!==n.status||n.lookahead)return c;for(1===a&&(t.adler=s(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===a&&(g(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new r.Buf8(n.w_size),r.arraySet(h,e,p-n.w_size,n.w_size,0),e=h,p=n.w_size),l=t.avail_in,u=t.next_in,d=t.input,t.avail_in=p,t.next_in=0,t.input=e,A(n);n.lookahead>=3;){for(i=n.strstart,o=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+3-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--o;);n.strstart=i,n.lookahead=2,A(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=u,t.input=d,t.avail_in=l,n.wrap=a,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){"use strict";e.exports=function(t,e){var n,i,r,o,s,a,l,c,u,d,h,p,f,g,m,v,y,b,w,A,x,C,M,L,I;n=t.state,i=t.next_in,L=t.input,r=i+(t.avail_in-5),o=t.next_out,I=t.output,s=o-(e-t.avail_out),a=o+(t.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,h=n.window,p=n.hold,f=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{f<15&&(p+=L[i++]<<f,f+=8,p+=L[i++]<<f,f+=8),b=g[p&v];e:for(;;){if(p>>>=w=b>>>24,f-=w,0==(w=b>>>16&255))I[o++]=65535&b;else{if(!(16&w)){if(!(64&w)){b=g[(65535&b)+(p&(1<<w)-1)];continue e}if(32&w){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}A=65535&b,(w&=15)&&(f<w&&(p+=L[i++]<<f,f+=8),A+=p&(1<<w)-1,p>>>=w,f-=w),f<15&&(p+=L[i++]<<f,f+=8,p+=L[i++]<<f,f+=8),b=m[p&y];n:for(;;){if(p>>>=w=b>>>24,f-=w,!(16&(w=b>>>16&255))){if(!(64&w)){b=m[(65535&b)+(p&(1<<w)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(x=65535&b,f<(w&=15)&&(p+=L[i++]<<f,(f+=8)<w&&(p+=L[i++]<<f,f+=8)),l<(x+=p&(1<<w)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(p>>>=w,f-=w,(w=o-s)<x){if(u<(w=x-w)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(M=h,(C=0)===d){if(C+=c-w,w<A){for(A-=w;I[o++]=h[C++],--w;);C=o-x,M=I}}else if(d<w){if(C+=c+d-w,(w-=d)<A){for(A-=w;I[o++]=h[C++],--w;);if(C=0,d<A){for(A-=w=d;I[o++]=h[C++],--w;);C=o-x,M=I}}}else if(C+=d-w,w<A){for(A-=w;I[o++]=h[C++],--w;);C=o-x,M=I}for(;2<A;)I[o++]=M[C++],I[o++]=M[C++],I[o++]=M[C++],A-=3;A&&(I[o++]=M[C++],1<A&&(I[o++]=M[C++]))}else{for(C=o-x;I[o++]=I[C++],I[o++]=I[C++],I[o++]=I[C++],2<(A-=3););A&&(I[o++]=I[C++],1<A&&(I[o++]=I[C++]))}break}}break}}while(i<r&&o<a);i-=A=f>>3,p&=(1<<(f-=A<<3))-1,t.next_in=i,t.next_out=o,t.avail_in=i<r?r-i+5:5-(i-r),t.avail_out=o<a?a-o+257:257-(o-a),n.hold=p,n.bits=f}},{}],49:[function(t,e,n){"use strict";var i=t("../utils/common"),r=t("./adler32"),o=t("./crc32"),s=t("./inffast"),a=t("./inftrees"),l=-2;function c(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new i.Buf32(852),e.distcode=e.distdyn=new i.Buf32(592),e.sane=1,e.back=-1,0):l}function h(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,d(t)):l}function p(t,e){var n,i;return t&&t.state?(i=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?l:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,h(t))):l}function f(t,e){var n,i;return t?(i=new u,(t.state=i).window=null,0!==(n=p(t,e))&&(t.state=null),n):l}var g,m,v=!0;function y(t){if(v){var e;for(g=new i.Buf32(512),m=new i.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(a(1,t.lens,0,288,g,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(2,t.lens,0,32,m,0,t.work,{bits:5}),v=!1}t.lencode=g,t.lenbits=9,t.distcode=m,t.distbits=5}function b(t,e,n,r){var o,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new i.Buf8(s.wsize)),r>=s.wsize?(i.arraySet(s.window,e,n-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(r<(o=s.wsize-s.wnext)&&(o=r),i.arraySet(s.window,e,n-r,o,s.wnext),(r-=o)?(i.arraySet(s.window,e,n-r,r,0),s.wnext=r,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}n.inflateReset=h,n.inflateReset2=p,n.inflateResetKeep=d,n.inflateInit=function(t){return f(t,15)},n.inflateInit2=f,n.inflate=function(t,e){var n,u,d,h,p,f,g,m,v,w,A,x,C,M,L,I,_,S,k,T,D,j,N,O,E=0,z=new i.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return l;12===(n=t.state).mode&&(n.mode=13),p=t.next_out,d=t.output,g=t.avail_out,h=t.next_in,u=t.input,f=t.avail_in,m=n.hold,v=n.bits,w=f,A=g,j=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(2&n.wrap&&35615===m){z[n.check=0]=255&m,z[1]=m>>>8&255,n.check=o(n.check,z,2,0),v=m=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&m)<<8)+(m>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&m)){t.msg="unknown compression method",n.mode=30;break}if(v-=4,D=8+(15&(m>>>=4)),0===n.wbits)n.wbits=D;else if(D>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<D,t.adler=n.check=1,n.mode=512&m?10:12,v=m=0;break;case 2:for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(n.flags=m,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=m>>8&1),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,n.check=o(n.check,z,2,0)),v=m=0,n.mode=3;case 3:for(;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.head&&(n.head.time=m),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,z[2]=m>>>16&255,z[3]=m>>>24&255,n.check=o(n.check,z,4,0)),v=m=0,n.mode=4;case 4:for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.head&&(n.head.xflags=255&m,n.head.os=m>>8),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,n.check=o(n.check,z,2,0)),v=m=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.length=m,n.head&&(n.head.extra_len=m),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,n.check=o(n.check,z,2,0)),v=m=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(f<(x=n.length)&&(x=f),x&&(n.head&&(D=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,u,h,x,D)),512&n.flags&&(n.check=o(n.check,u,x,h)),f-=x,h+=x,n.length-=x),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===f)break t;for(x=0;D=u[h+x++],n.head&&D&&n.length<65536&&(n.head.name+=String.fromCharCode(D)),D&&x<f;);if(512&n.flags&&(n.check=o(n.check,u,x,h)),f-=x,h+=x,D)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===f)break t;for(x=0;D=u[h+x++],n.head&&D&&n.length<65536&&(n.head.comment+=String.fromCharCode(D)),D&&x<f;);if(512&n.flags&&(n.check=o(n.check,u,x,h)),f-=x,h+=x,D)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(m!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}v=m=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}t.adler=n.check=c(m),v=m=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=p,t.avail_out=g,t.next_in=h,t.avail_in=f,n.hold=m,n.bits=v,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){m>>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}switch(n.last=1&m,v-=1,3&(m>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6!==e)break;m>>>=2,v-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}m>>>=2,v-=2;break;case 14:for(m>>>=7&v,v-=7&v;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if((65535&m)!=(m>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&m,v=m=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(x=n.length){if(f<x&&(x=f),g<x&&(x=g),0===x)break t;i.arraySet(d,u,h,x,p),f-=x,h+=x,g-=x,p+=x,n.length-=x;break}n.mode=12;break;case 17:for(;v<14;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(n.nlen=257+(31&m),m>>>=5,v-=5,n.ndist=1+(31&m),m>>>=5,v-=5,n.ncode=4+(15&m),m>>>=4,v-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.lens[F[n.have++]]=7&m,m>>>=3,v-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},j=a(0,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,j){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;I=(E=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,_=65535&E,!((L=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(_<16)m>>>=L,v-=L,n.lens[n.have++]=_;else{if(16===_){for(O=L+2;v<O;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(m>>>=L,v-=L,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}D=n.lens[n.have-1],x=3+(3&m),m>>>=2,v-=2}else if(17===_){for(O=L+3;v<O;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}v-=L,D=0,x=3+(7&(m>>>=L)),m>>>=3,v-=3}else{for(O=L+7;v<O;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}v-=L,D=0,x=11+(127&(m>>>=L)),m>>>=7,v-=7}if(n.have+x>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;x--;)n.lens[n.have++]=D}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,N={bits:n.lenbits},j=a(1,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,j){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},j=a(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,j){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=f&&258<=g){t.next_out=p,t.avail_out=g,t.next_in=h,t.avail_in=f,n.hold=m,n.bits=v,s(t,A),p=t.next_out,d=t.output,g=t.avail_out,h=t.next_in,u=t.input,f=t.avail_in,m=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;I=(E=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,_=65535&E,!((L=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(I&&!(240&I)){for(S=L,k=I,T=_;I=(E=n.lencode[T+((m&(1<<S+k)-1)>>S)])>>>16&255,_=65535&E,!(S+(L=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}m>>>=S,v-=S,n.back+=S}if(m>>>=L,v-=L,n.back+=L,n.length=_,0===I){n.mode=26;break}if(32&I){n.back=-1,n.mode=12;break}if(64&I){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&I,n.mode=22;case 22:if(n.extra){for(O=n.extra;v<O;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.length+=m&(1<<n.extra)-1,m>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;I=(E=n.distcode[m&(1<<n.distbits)-1])>>>16&255,_=65535&E,!((L=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(!(240&I)){for(S=L,k=I,T=_;I=(E=n.distcode[T+((m&(1<<S+k)-1)>>S)])>>>16&255,_=65535&E,!(S+(L=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}m>>>=S,v-=S,n.back+=S}if(m>>>=L,v-=L,n.back+=L,64&I){t.msg="invalid distance code",n.mode=30;break}n.offset=_,n.extra=15&I,n.mode=24;case 24:if(n.extra){for(O=n.extra;v<O;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.offset+=m&(1<<n.extra)-1,m>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===g)break t;if(x=A-g,n.offset>x){if((x=n.offset-x)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}C=x>n.wnext?(x-=n.wnext,n.wsize-x):n.wnext-x,x>n.length&&(x=n.length),M=n.window}else M=d,C=p-n.offset,x=n.length;for(g<x&&(x=g),g-=x,n.length-=x;d[p++]=M[C++],--x;);0===n.length&&(n.mode=21);break;case 26:if(0===g)break t;d[p++]=n.length,g--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===f)break t;f--,m|=u[h++]<<v,v+=8}if(A-=g,t.total_out+=A,n.total+=A,A&&(t.adler=n.check=n.flags?o(n.check,d,A,p-A):r(n.check,d,A,p-A)),A=g,(n.flags?m:c(m))!==n.check){t.msg="incorrect data check",n.mode=30;break}v=m=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(m!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}v=m=0}n.mode=29;case 29:j=1;break t;case 30:j=-3;break t;case 31:return-4;default:return l}return t.next_out=p,t.avail_out=g,t.next_in=h,t.avail_in=f,n.hold=m,n.bits=v,(n.wsize||A!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&b(t,t.output,t.next_out,A-t.avail_out)?(n.mode=31,-4):(w-=t.avail_in,A-=t.avail_out,t.total_in+=w,t.total_out+=A,n.total+=A,n.wrap&&A&&(t.adler=n.check=n.flags?o(n.check,d,A,t.next_out-A):r(n.check,d,A,t.next_out-A)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==w&&0===A||4===e)&&0===j&&(j=-5),j)},n.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,0},n.inflateGetHeader=function(t,e){var n;return t&&t.state&&2&(n=t.state).wrap?((n.head=e).done=!1,0):l},n.inflateSetDictionary=function(t,e){var n,i=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?l:11===n.mode&&r(1,e,i,0)!==n.check?-3:b(t,e,i,i)?(n.mode=31,-4):(n.havedict=1,0):l},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){"use strict";var i=t("../utils/common"),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,l,c,u,d,h){var p,f,g,m,v,y,b,w,A,x=h.bits,C=0,M=0,L=0,I=0,_=0,S=0,k=0,T=0,D=0,j=0,N=null,O=0,E=new i.Buf16(16),z=new i.Buf16(16),F=null,R=0;for(C=0;C<=15;C++)E[C]=0;for(M=0;M<l;M++)E[e[n+M]]++;for(_=x,I=15;1<=I&&0===E[I];I--);if(I<_&&(_=I),0===I)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(L=1;L<I&&0===E[L];L++);for(_<L&&(_=L),C=T=1;C<=15;C++)if(T<<=1,(T-=E[C])<0)return-1;if(0<T&&(0===t||1!==I))return-1;for(z[1]=0,C=1;C<15;C++)z[C+1]=z[C]+E[C];for(M=0;M<l;M++)0!==e[n+M]&&(d[z[e[n+M]]++]=M);if(y=0===t?(N=F=d,19):1===t?(N=r,O-=257,F=o,R-=257,256):(N=s,F=a,-1),C=L,v=u,k=M=j=0,g=-1,m=(D=1<<(S=_))-1,1===t&&852<D||2===t&&592<D)return 1;for(;;){for(b=C-k,A=d[M]<y?(w=0,d[M]):d[M]>y?(w=F[R+d[M]],N[O+d[M]]):(w=96,0),p=1<<C-k,L=f=1<<S;c[v+(j>>k)+(f-=p)]=b<<24|w<<16|A,0!==f;);for(p=1<<C-1;j&p;)p>>=1;if(0!==p?(j&=p-1,j+=p):j=0,M++,0==--E[C]){if(C===I)break;C=e[n+d[M]]}if(_<C&&(j&m)!==g){for(0===k&&(k=_),v+=L,T=1<<(S=C-k);S+k<I&&!((T-=E[S+k])<=0);)S++,T<<=1;if(D+=1<<S,1===t&&852<D||2===t&&592<D)return 1;c[g=j&m]=_<<24|S<<16|v-u}}return 0!==j&&(c[v+j]=C-k<<24|64<<16),h.bits=_,0}},{"../utils/common":41}],51:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){"use strict";var i=t("../utils/common");function r(t){for(var e=t.length;0<=--e;)t[e]=0}var o=256,s=286,a=30,l=15,c=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],u=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],h=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);r(p);var f=new Array(60);r(f);var g=new Array(512);r(g);var m=new Array(256);r(m);var v=new Array(29);r(v);var y,b,w,A=new Array(a);function x(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}function C(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function M(t){return t<256?g[t]:g[256+(t>>>7)]}function L(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function I(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,L(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function _(t,e,n){I(t,n[2*e],n[2*e+1])}function S(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function k(t,e,n){var i,r,o=new Array(16),s=0;for(i=1;i<=l;i++)o[i]=s=s+n[i-1]<<1;for(r=0;r<=e;r++){var a=t[2*r+1];0!==a&&(t[2*r]=S(o[a]++,a))}}function T(t){var e;for(e=0;e<s;e++)t.dyn_ltree[2*e]=0;for(e=0;e<a;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function D(t){8<t.bi_valid?L(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function j(t,e,n,i){var r=2*e,o=2*n;return t[r]<t[o]||t[r]===t[o]&&i[e]<=i[n]}function N(t,e,n){for(var i=t.heap[n],r=n<<1;r<=t.heap_len&&(r<t.heap_len&&j(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!j(e,i,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=i}function O(t,e,n){var i,r,s,a,l=0;if(0!==t.last_lit)for(;i=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],r=t.pending_buf[t.l_buf+l],l++,0===i?_(t,r,e):(_(t,(s=m[r])+o+1,e),0!==(a=c[s])&&I(t,r-=v[s],a),_(t,s=M(--i),n),0!==(a=u[s])&&I(t,i-=A[s],a)),l<t.last_lit;);_(t,256,e)}function E(t,e){var n,i,r,o=e.dyn_tree,s=e.stat_desc.static_tree,a=e.stat_desc.has_stree,c=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<c;n++)0!==o[2*n]?(t.heap[++t.heap_len]=u=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(r=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[r]=0,t.opt_len--,a&&(t.static_len-=s[2*r+1]);for(e.max_code=u,n=t.heap_len>>1;1<=n;n--)N(t,o,n);for(r=c;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],N(t,o,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,o[2*r]=o[2*n]+o[2*i],t.depth[r]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,o[2*n+1]=o[2*i+1]=r,t.heap[1]=r++,N(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,i,r,o,s,a,c=e.dyn_tree,u=e.max_code,d=e.stat_desc.static_tree,h=e.stat_desc.has_stree,p=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,g=e.stat_desc.max_length,m=0;for(o=0;o<=l;o++)t.bl_count[o]=0;for(c[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)g<(o=c[2*c[2*(i=t.heap[n])+1]+1]+1)&&(o=g,m++),c[2*i+1]=o,u<i||(t.bl_count[o]++,s=0,f<=i&&(s=p[i-f]),a=c[2*i],t.opt_len+=a*(o+s),h&&(t.static_len+=a*(d[2*i+1]+s)));if(0!==m){do{for(o=g-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[g]--,m-=2}while(0<m);for(o=g;0!==o;o--)for(i=t.bl_count[o];0!==i;)u<(r=t.heap[--n])||(c[2*r+1]!==o&&(t.opt_len+=(o-c[2*r+1])*c[2*r],c[2*r+1]=o),i--)}}(t,e),k(o,u,t.bl_count)}function z(t,e,n){var i,r,o=-1,s=e[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),e[2*(n+1)+1]=65535,i=0;i<=n;i++)r=s,s=e[2*(i+1)+1],++a<l&&r===s||(a<c?t.bl_tree[2*r]+=a:0!==r?(r!==o&&t.bl_tree[2*r]++,t.bl_tree[32]++):a<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=r,c=(a=0)===s?(l=138,3):r===s?(l=6,3):(l=7,4))}function F(t,e,n){var i,r,o=-1,s=e[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),i=0;i<=n;i++)if(r=s,s=e[2*(i+1)+1],!(++a<l&&r===s)){if(a<c)for(;_(t,r,t.bl_tree),0!=--a;);else 0!==r?(r!==o&&(_(t,r,t.bl_tree),a--),_(t,16,t.bl_tree),I(t,a-3,2)):a<=10?(_(t,17,t.bl_tree),I(t,a-3,3)):(_(t,18,t.bl_tree),I(t,a-11,7));o=r,c=(a=0)===s?(l=138,3):r===s?(l=6,3):(l=7,4)}}r(A);var R=!1;function P(t,e,n,r){I(t,0+(r?1:0),3),function(t,e,n){D(t),L(t,n),L(t,~n),i.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n)}n._tr_init=function(t){R||(function(){var t,e,n,i,r,o=new Array(16);for(i=n=0;i<28;i++)for(v[i]=n,t=0;t<1<<c[i];t++)m[n++]=i;for(m[n-1]=i,i=r=0;i<16;i++)for(A[i]=r,t=0;t<1<<u[i];t++)g[r++]=i;for(r>>=7;i<a;i++)for(A[i]=r<<7,t=0;t<1<<u[i]-7;t++)g[256+r++]=i;for(e=0;e<=l;e++)o[e]=0;for(t=0;t<=143;)p[2*t+1]=8,t++,o[8]++;for(;t<=255;)p[2*t+1]=9,t++,o[9]++;for(;t<=279;)p[2*t+1]=7,t++,o[7]++;for(;t<=287;)p[2*t+1]=8,t++,o[8]++;for(k(p,287,o),t=0;t<a;t++)f[2*t+1]=5,f[2*t]=S(t,5);y=new x(p,c,257,s,l),b=new x(f,u,0,a,l),w=new x(new Array(0),d,0,19,7)}(),R=!0),t.l_desc=new C(t.dyn_ltree,y),t.d_desc=new C(t.dyn_dtree,b),t.bl_desc=new C(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,T(t)},n._tr_stored_block=P,n._tr_flush_block=function(t,e,n,i){var r,s,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<o;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),E(t,t.l_desc),E(t,t.d_desc),a=function(t){var e;for(z(t,t.dyn_ltree,t.l_desc.max_code),z(t,t.dyn_dtree,t.d_desc.max_code),E(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*h[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=r&&(r=s)):r=s=n+5,n+4<=r&&-1!==e?P(t,e,n,i):4===t.strategy||s===r?(I(t,2+(i?1:0),3),O(t,p,f)):(I(t,4+(i?1:0),3),function(t,e,n,i){var r;for(I(t,e-257,5),I(t,n-1,5),I(t,i-4,4),r=0;r<i;r++)I(t,t.bl_tree[2*h[r]+1],3);F(t,t.dyn_ltree,e-1),F(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),O(t,t.dyn_ltree,t.dyn_dtree)),T(t),i&&D(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(m[n]+o+1)]++,t.dyn_dtree[2*M(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){I(t,2,3),_(t,256,p),function(t){16===t.bi_valid?(L(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,i){(function(t){!function(t){"use strict";if(!t.setImmediate){var e,n,i,r,o=1,s={},a=!1,l=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);c=c&&c.setTimeout?c:t,e="[object process]"==={}.toString.call(t.process)?function(t){process.nextTick((function(){d(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(r="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",h,!1):t.attachEvent("onmessage",h),function(e){t.postMessage(r+e,"*")}):t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){i.port2.postMessage(t)}):l&&"onreadystatechange"in l.createElement("script")?(n=l.documentElement,function(t){var e=l.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):function(t){setTimeout(d,0,t)},c.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var n=new Array(arguments.length-1),i=0;i<n.length;i++)n[i]=arguments[i+1];var r={callback:t,args:n};return s[o]=r,e(o),o++},c.clearImmediate=u}function u(t){delete s[t]}function d(t){if(a)setTimeout(d,0,t);else{var e=s[t];if(e){a=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(undefined,n)}}(e)}finally{u(t),a=!1}}}}function h(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(r)&&d(+e.data.slice(r.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},998:(t,e,n)=>{var i,r;!function(){var o,s,a,l,c,u,d,h,p,f,g,m,v,y,b,w,A,x,C,M,L,I,_,S,k,T,D,j,N,O,E=function(t){var e=new E.Builder;return e.pipeline.add(E.trimmer,E.stopWordFilter,E.stemmer),e.searchPipeline.add(E.stemmer),t.call(e,e),e.build()};E.version="2.3.9",E.utils={},E.utils.warn=(o=this,function(t){o.console&&console.warn&&console.warn(t)}),E.utils.asString=function(t){return null==t?"":t.toString()},E.utils.clone=function(t){if(null==t)return t;for(var e=Object.create(null),n=Object.keys(t),i=0;i<n.length;i++){var r=n[i],o=t[r];if(Array.isArray(o))e[r]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");e[r]=o}}return e},E.FieldRef=function(t,e,n){this.docRef=t,this.fieldName=e,this._stringValue=n},E.FieldRef.joiner="/",E.FieldRef.fromString=function(t){var e=t.indexOf(E.FieldRef.joiner);if(-1===e)throw"malformed field ref string";var n=t.slice(0,e),i=t.slice(e+1);return new E.FieldRef(i,n,t)},E.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+E.FieldRef.joiner+this.docRef),this._stringValue},E.Set=function(t){if(this.elements=Object.create(null),t){this.length=t.length;for(var e=0;e<this.length;e++)this.elements[t[e]]=!0}else this.length=0},E.Set.complete={intersect:function(t){return t},union:function(){return this},contains:function(){return!0}},E.Set.empty={intersect:function(){return this},union:function(t){return t},contains:function(){return!1}},E.Set.prototype.contains=function(t){return!!this.elements[t]},E.Set.prototype.intersect=function(t){var e,n,i,r=[];if(t===E.Set.complete)return this;if(t===E.Set.empty)return t;this.length<t.length?(e=this,n=t):(e=t,n=this),i=Object.keys(e.elements);for(var o=0;o<i.length;o++){var s=i[o];s in n.elements&&r.push(s)}return new E.Set(r)},E.Set.prototype.union=function(t){return t===E.Set.complete?E.Set.complete:t===E.Set.empty?this:new E.Set(Object.keys(this.elements).concat(Object.keys(t.elements)))},E.idf=function(t,e){var n=0;for(var i in t)"_index"!=i&&(n+=Object.keys(t[i]).length);var r=(e-n+.5)/(n+.5);return Math.log(1+Math.abs(r))},E.Token=function(t,e){this.str=t||"",this.metadata=e||{}},E.Token.prototype.toString=function(){return this.str},E.Token.prototype.update=function(t){return this.str=t(this.str,this.metadata),this},E.Token.prototype.clone=function(t){return t=t||function(t){return t},new E.Token(t(this.str,this.metadata),this.metadata)},E.tokenizer=function(t,e){if(null==t||null==t)return[];if(Array.isArray(t))return t.map((function(t){return new E.Token(E.utils.asString(t).toLowerCase(),E.utils.clone(e))}));for(var n=t.toString().toLowerCase(),i=n.length,r=[],o=0,s=0;o<=i;o++){var a=o-s;if(n.charAt(o).match(E.tokenizer.separator)||o==i){if(a>0){var l=E.utils.clone(e)||{};l.position=[s,a],l.index=r.length,r.push(new E.Token(n.slice(s,o),l))}s=o+1}}return r},E.tokenizer.separator=/[\s\-]+/,E.Pipeline=function(){this._stack=[]},E.Pipeline.registeredFunctions=Object.create(null),E.Pipeline.registerFunction=function(t,e){e in this.registeredFunctions&&E.utils.warn("Overwriting existing registered function: "+e),t.label=e,E.Pipeline.registeredFunctions[t.label]=t},E.Pipeline.warnIfFunctionNotRegistered=function(t){t.label&&t.label in this.registeredFunctions||E.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},E.Pipeline.load=function(t){var e=new E.Pipeline;return t.forEach((function(t){var n=E.Pipeline.registeredFunctions[t];if(!n)throw new Error("Cannot load unregistered function: "+t);e.add(n)})),e},E.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(t){E.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)}),this)},E.Pipeline.prototype.after=function(t,e){E.Pipeline.warnIfFunctionNotRegistered(e);var n=this._stack.indexOf(t);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,e)},E.Pipeline.prototype.before=function(t,e){E.Pipeline.warnIfFunctionNotRegistered(e);var n=this._stack.indexOf(t);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,e)},E.Pipeline.prototype.remove=function(t){var e=this._stack.indexOf(t);-1!=e&&this._stack.splice(e,1)},E.Pipeline.prototype.run=function(t){for(var e=this._stack.length,n=0;n<e;n++){for(var i=this._stack[n],r=[],o=0;o<t.length;o++){var s=i(t[o],o,t);if(null!=s&&""!==s)if(Array.isArray(s))for(var a=0;a<s.length;a++)r.push(s[a]);else r.push(s)}t=r}return t},E.Pipeline.prototype.runString=function(t,e){var n=new E.Token(t,e);return this.run([n]).map((function(t){return t.toString()}))},E.Pipeline.prototype.reset=function(){this._stack=[]},E.Pipeline.prototype.toJSON=function(){return this._stack.map((function(t){return E.Pipeline.warnIfFunctionNotRegistered(t),t.label}))},E.Vector=function(t){this._magnitude=0,this.elements=t||[]},E.Vector.prototype.positionForIndex=function(t){if(0==this.elements.length)return 0;for(var e=0,n=this.elements.length/2,i=n-e,r=Math.floor(i/2),o=this.elements[2*r];i>1&&(o<t&&(e=r),o>t&&(n=r),o!=t);)i=n-e,r=e+Math.floor(i/2),o=this.elements[2*r];return o==t||o>t?2*r:o<t?2*(r+1):void 0},E.Vector.prototype.insert=function(t,e){this.upsert(t,e,(function(){throw"duplicate index"}))},E.Vector.prototype.upsert=function(t,e,n){this._magnitude=0;var i=this.positionForIndex(t);this.elements[i]==t?this.elements[i+1]=n(this.elements[i+1],e):this.elements.splice(i,0,t,e)},E.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var t=0,e=this.elements.length,n=1;n<e;n+=2){var i=this.elements[n];t+=i*i}return this._magnitude=Math.sqrt(t)},E.Vector.prototype.dot=function(t){for(var e=0,n=this.elements,i=t.elements,r=n.length,o=i.length,s=0,a=0,l=0,c=0;l<r&&c<o;)(s=n[l])<(a=i[c])?l+=2:s>a?c+=2:s==a&&(e+=n[l+1]*i[c+1],l+=2,c+=2);return e},E.Vector.prototype.similarity=function(t){return this.dot(t)/this.magnitude()||0},E.Vector.prototype.toArray=function(){for(var t=new Array(this.elements.length/2),e=1,n=0;e<this.elements.length;e+=2,n++)t[n]=this.elements[e];return t},E.Vector.prototype.toJSON=function(){return this.elements},E.stemmer=(s={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},a={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(c="[^aeiou][^aeiouy]*")+")?"+(u=(l="[aeiouy]")+"[aeiou]*")+c+"("+u+")?$",h="^("+c+")?"+u+c+u+c,p="^("+c+")?"+l,f=new RegExp("^("+c+")?"+u+c),g=new RegExp(h),m=new RegExp(d),v=new RegExp(p),y=/^(.+?)(ss|i)es$/,b=/^(.+?)([^s])s$/,w=/^(.+?)eed$/,A=/^(.+?)(ed|ing)$/,x=/.$/,C=/(at|bl|iz)$/,M=new RegExp("([^aeiouylsz])\\1$"),L=new RegExp("^"+c+l+"[^aeiouwxy]$"),I=/^(.+?[^aeiou])y$/,_=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,S=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,k=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,T=/^(.+?)(s|t)(ion)$/,D=/^(.+?)e$/,j=/ll$/,N=new RegExp("^"+c+l+"[^aeiouwxy]$"),O=function(t){var e,n,i,r,o,l,c;if(t.length<3)return t;if("y"==(i=t.substr(0,1))&&(t=i.toUpperCase()+t.substr(1)),o=b,(r=y).test(t)?t=t.replace(r,"$1$2"):o.test(t)&&(t=t.replace(o,"$1$2")),o=A,(r=w).test(t)){var u=r.exec(t);(r=f).test(u[1])&&(r=x,t=t.replace(r,""))}else o.test(t)&&(e=(u=o.exec(t))[1],(o=v).test(e)&&(l=M,c=L,(o=C).test(t=e)?t+="e":l.test(t)?(r=x,t=t.replace(r,"")):c.test(t)&&(t+="e")));return(r=I).test(t)&&(t=(e=(u=r.exec(t))[1])+"i"),(r=_).test(t)&&(e=(u=r.exec(t))[1],n=u[2],(r=f).test(e)&&(t=e+s[n])),(r=S).test(t)&&(e=(u=r.exec(t))[1],n=u[2],(r=f).test(e)&&(t=e+a[n])),o=T,(r=k).test(t)?(e=(u=r.exec(t))[1],(r=g).test(e)&&(t=e)):o.test(t)&&(e=(u=o.exec(t))[1]+u[2],(o=g).test(e)&&(t=e)),(r=D).test(t)&&(e=(u=r.exec(t))[1],o=m,l=N,((r=g).test(e)||o.test(e)&&!l.test(e))&&(t=e)),o=g,(r=j).test(t)&&o.test(t)&&(r=x,t=t.replace(r,"")),"y"==i&&(t=i.toLowerCase()+t.substr(1)),t},function(t){return t.update(O)}),E.Pipeline.registerFunction(E.stemmer,"stemmer"),E.generateStopWordFilter=function(t){var e=t.reduce((function(t,e){return t[e]=e,t}),{});return function(t){if(t&&e[t.toString()]!==t.toString())return t}},E.stopWordFilter=E.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),E.Pipeline.registerFunction(E.stopWordFilter,"stopWordFilter"),E.trimmer=function(t){return t.update((function(t){return t.replace(/^\W+/,"").replace(/\W+$/,"")}))},E.Pipeline.registerFunction(E.trimmer,"trimmer"),E.TokenSet=function(){this.final=!1,this.edges={},this.id=E.TokenSet._nextId,E.TokenSet._nextId+=1},E.TokenSet._nextId=1,E.TokenSet.fromArray=function(t){for(var e=new E.TokenSet.Builder,n=0,i=t.length;n<i;n++)e.insert(t[n]);return e.finish(),e.root},E.TokenSet.fromClause=function(t){return"editDistance"in t?E.TokenSet.fromFuzzyString(t.term,t.editDistance):E.TokenSet.fromString(t.term)},E.TokenSet.fromFuzzyString=function(t,e){for(var n=new E.TokenSet,i=[{node:n,editsRemaining:e,str:t}];i.length;){var r=i.pop();if(r.str.length>0){var o,s=r.str.charAt(0);s in r.node.edges?o=r.node.edges[s]:(o=new E.TokenSet,r.node.edges[s]=o),1==r.str.length&&(o.final=!0),i.push({node:o,editsRemaining:r.editsRemaining,str:r.str.slice(1)})}if(0!=r.editsRemaining){if("*"in r.node.edges)var a=r.node.edges["*"];else a=new E.TokenSet,r.node.edges["*"]=a;if(0==r.str.length&&(a.final=!0),i.push({node:a,editsRemaining:r.editsRemaining-1,str:r.str}),r.str.length>1&&i.push({node:r.node,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)}),1==r.str.length&&(r.node.final=!0),r.str.length>=1){if("*"in r.node.edges)var l=r.node.edges["*"];else l=new E.TokenSet,r.node.edges["*"]=l;1==r.str.length&&(l.final=!0),i.push({node:l,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)})}if(r.str.length>1){var c,u=r.str.charAt(0),d=r.str.charAt(1);d in r.node.edges?c=r.node.edges[d]:(c=new E.TokenSet,r.node.edges[d]=c),1==r.str.length&&(c.final=!0),i.push({node:c,editsRemaining:r.editsRemaining-1,str:u+r.str.slice(2)})}}}return n},E.TokenSet.fromString=function(t){for(var e=new E.TokenSet,n=e,i=0,r=t.length;i<r;i++){var o=t[i],s=i==r-1;if("*"==o)e.edges[o]=e,e.final=s;else{var a=new E.TokenSet;a.final=s,e.edges[o]=a,e=a}}return n},E.TokenSet.prototype.toArray=function(){for(var t=[],e=[{prefix:"",node:this}];e.length;){var n=e.pop(),i=Object.keys(n.node.edges),r=i.length;n.node.final&&(n.prefix.charAt(0),t.push(n.prefix));for(var o=0;o<r;o++){var s=i[o];e.push({prefix:n.prefix.concat(s),node:n.node.edges[s]})}}return t},E.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var t=this.final?"1":"0",e=Object.keys(this.edges).sort(),n=e.length,i=0;i<n;i++){var r=e[i];t=t+r+this.edges[r].id}return t},E.TokenSet.prototype.intersect=function(t){for(var e=new E.TokenSet,n=void 0,i=[{qNode:t,output:e,node:this}];i.length;){n=i.pop();for(var r=Object.keys(n.qNode.edges),o=r.length,s=Object.keys(n.node.edges),a=s.length,l=0;l<o;l++)for(var c=r[l],u=0;u<a;u++){var d=s[u];if(d==c||"*"==c){var h=n.node.edges[d],p=n.qNode.edges[c],f=h.final&&p.final,g=void 0;d in n.output.edges?(g=n.output.edges[d]).final=g.final||f:((g=new E.TokenSet).final=f,n.output.edges[d]=g),i.push({qNode:p,output:g,node:h})}}}return e},E.TokenSet.Builder=function(){this.previousWord="",this.root=new E.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},E.TokenSet.Builder.prototype.insert=function(t){var e,n=0;if(t<this.previousWord)throw new Error("Out of order word insertion");for(var i=0;i<t.length&&i<this.previousWord.length&&t[i]==this.previousWord[i];i++)n++;for(this.minimize(n),e=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child,i=n;i<t.length;i++){var r=new E.TokenSet,o=t[i];e.edges[o]=r,this.uncheckedNodes.push({parent:e,char:o,child:r}),e=r}e.final=!0,this.previousWord=t},E.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},E.TokenSet.Builder.prototype.minimize=function(t){for(var e=this.uncheckedNodes.length-1;e>=t;e--){var n=this.uncheckedNodes[e],i=n.child.toString();i in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[i]:(n.child._str=i,this.minimizedNodes[i]=n.child),this.uncheckedNodes.pop()}},E.Index=function(t){this.invertedIndex=t.invertedIndex,this.fieldVectors=t.fieldVectors,this.tokenSet=t.tokenSet,this.fields=t.fields,this.pipeline=t.pipeline},E.Index.prototype.search=function(t){return this.query((function(e){new E.QueryParser(t,e).parse()}))},E.Index.prototype.query=function(t){for(var e=new E.Query(this.fields),n=Object.create(null),i=Object.create(null),r=Object.create(null),o=Object.create(null),s=Object.create(null),a=0;a<this.fields.length;a++)i[this.fields[a]]=new E.Vector;for(t.call(e,e),a=0;a<e.clauses.length;a++){var l,c=e.clauses[a],u=E.Set.empty;l=c.usePipeline?this.pipeline.runString(c.term,{fields:c.fields}):[c.term];for(var d=0;d<l.length;d++){var h=l[d];c.term=h;var p=E.TokenSet.fromClause(c),f=this.tokenSet.intersect(p).toArray();if(0===f.length&&c.presence===E.Query.presence.REQUIRED){for(var g=0;g<c.fields.length;g++)o[D=c.fields[g]]=E.Set.empty;break}for(var m=0;m<f.length;m++){var v=f[m],y=this.invertedIndex[v],b=y._index;for(g=0;g<c.fields.length;g++){var w=y[D=c.fields[g]],A=Object.keys(w),x=v+"/"+D,C=new E.Set(A);if(c.presence==E.Query.presence.REQUIRED&&(u=u.union(C),void 0===o[D]&&(o[D]=E.Set.complete)),c.presence!=E.Query.presence.PROHIBITED){if(i[D].upsert(b,c.boost,(function(t,e){return t+e})),!r[x]){for(var M=0;M<A.length;M++){var L,I=A[M],_=new E.FieldRef(I,D),S=w[I];void 0===(L=n[_])?n[_]=new E.MatchData(v,D,S):L.add(v,D,S)}r[x]=!0}}else void 0===s[D]&&(s[D]=E.Set.empty),s[D]=s[D].union(C)}}}if(c.presence===E.Query.presence.REQUIRED)for(g=0;g<c.fields.length;g++)o[D=c.fields[g]]=o[D].intersect(u)}var k=E.Set.complete,T=E.Set.empty;for(a=0;a<this.fields.length;a++){var D;o[D=this.fields[a]]&&(k=k.intersect(o[D])),s[D]&&(T=T.union(s[D]))}var j=Object.keys(n),N=[],O=Object.create(null);if(e.isNegated())for(j=Object.keys(this.fieldVectors),a=0;a<j.length;a++){_=j[a];var z=E.FieldRef.fromString(_);n[_]=new E.MatchData}for(a=0;a<j.length;a++){var F=(z=E.FieldRef.fromString(j[a])).docRef;if(k.contains(F)&&!T.contains(F)){var R,P=this.fieldVectors[z],Y=i[z.fieldName].similarity(P);if(void 0!==(R=O[F]))R.score+=Y,R.matchData.combine(n[z]);else{var U={ref:F,score:Y,matchData:n[z]};O[F]=U,N.push(U)}}}return N.sort((function(t,e){return e.score-t.score}))},E.Index.prototype.toJSON=function(){var t=Object.keys(this.invertedIndex).sort().map((function(t){return[t,this.invertedIndex[t]]}),this),e=Object.keys(this.fieldVectors).map((function(t){return[t,this.fieldVectors[t].toJSON()]}),this);return{version:E.version,fields:this.fields,fieldVectors:e,invertedIndex:t,pipeline:this.pipeline.toJSON()}},E.Index.load=function(t){var e={},n={},i=t.fieldVectors,r=Object.create(null),o=t.invertedIndex,s=new E.TokenSet.Builder,a=E.Pipeline.load(t.pipeline);t.version!=E.version&&E.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+E.version+"' does not match serialized index '"+t.version+"'");for(var l=0;l<i.length;l++){var c=(d=i[l])[0],u=d[1];n[c]=new E.Vector(u)}for(l=0;l<o.length;l++){var d,h=(d=o[l])[0],p=d[1];s.insert(h),r[h]=p}return s.finish(),e.fields=t.fields,e.fieldVectors=n,e.invertedIndex=r,e.tokenSet=s.root,e.pipeline=a,new E.Index(e)},E.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=E.tokenizer,this.pipeline=new E.Pipeline,this.searchPipeline=new E.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},E.Builder.prototype.ref=function(t){this._ref=t},E.Builder.prototype.field=function(t,e){if(/\//.test(t))throw new RangeError("Field '"+t+"' contains illegal character '/'");this._fields[t]=e||{}},E.Builder.prototype.b=function(t){this._b=t<0?0:t>1?1:t},E.Builder.prototype.k1=function(t){this._k1=t},E.Builder.prototype.add=function(t,e){var n=t[this._ref],i=Object.keys(this._fields);this._documents[n]=e||{},this.documentCount+=1;for(var r=0;r<i.length;r++){var o=i[r],s=this._fields[o].extractor,a=s?s(t):t[o],l=this.tokenizer(a,{fields:[o]}),c=this.pipeline.run(l),u=new E.FieldRef(n,o),d=Object.create(null);this.fieldTermFrequencies[u]=d,this.fieldLengths[u]=0,this.fieldLengths[u]+=c.length;for(var h=0;h<c.length;h++){var p=c[h];if(null==d[p]&&(d[p]=0),d[p]+=1,null==this.invertedIndex[p]){var f=Object.create(null);f._index=this.termIndex,this.termIndex+=1;for(var g=0;g<i.length;g++)f[i[g]]=Object.create(null);this.invertedIndex[p]=f}null==this.invertedIndex[p][o][n]&&(this.invertedIndex[p][o][n]=Object.create(null));for(var m=0;m<this.metadataWhitelist.length;m++){var v=this.metadataWhitelist[m],y=p.metadata[v];null==this.invertedIndex[p][o][n][v]&&(this.invertedIndex[p][o][n][v]=[]),this.invertedIndex[p][o][n][v].push(y)}}}},E.Builder.prototype.calculateAverageFieldLengths=function(){for(var t=Object.keys(this.fieldLengths),e=t.length,n={},i={},r=0;r<e;r++){var o=E.FieldRef.fromString(t[r]),s=o.fieldName;i[s]||(i[s]=0),i[s]+=1,n[s]||(n[s]=0),n[s]+=this.fieldLengths[o]}var a=Object.keys(this._fields);for(r=0;r<a.length;r++){var l=a[r];n[l]=n[l]/i[l]}this.averageFieldLength=n},E.Builder.prototype.createFieldVectors=function(){for(var t={},e=Object.keys(this.fieldTermFrequencies),n=e.length,i=Object.create(null),r=0;r<n;r++){for(var o=E.FieldRef.fromString(e[r]),s=o.fieldName,a=this.fieldLengths[o],l=new E.Vector,c=this.fieldTermFrequencies[o],u=Object.keys(c),d=u.length,h=this._fields[s].boost||1,p=this._documents[o.docRef].boost||1,f=0;f<d;f++){var g,m,v,y=u[f],b=c[y],w=this.invertedIndex[y]._index;void 0===i[y]?(g=E.idf(this.invertedIndex[y],this.documentCount),i[y]=g):g=i[y],m=g*((this._k1+1)*b)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[s]))+b),m*=h,m*=p,v=Math.round(1e3*m)/1e3,l.insert(w,v)}t[o]=l}this.fieldVectors=t},E.Builder.prototype.createTokenSet=function(){this.tokenSet=E.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},E.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new E.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},E.Builder.prototype.use=function(t){var e=Array.prototype.slice.call(arguments,1);e.unshift(this),t.apply(this,e)},E.MatchData=function(t,e,n){for(var i=Object.create(null),r=Object.keys(n||{}),o=0;o<r.length;o++){var s=r[o];i[s]=n[s].slice()}this.metadata=Object.create(null),void 0!==t&&(this.metadata[t]=Object.create(null),this.metadata[t][e]=i)},E.MatchData.prototype.combine=function(t){for(var e=Object.keys(t.metadata),n=0;n<e.length;n++){var i=e[n],r=Object.keys(t.metadata[i]);null==this.metadata[i]&&(this.metadata[i]=Object.create(null));for(var o=0;o<r.length;o++){var s=r[o],a=Object.keys(t.metadata[i][s]);null==this.metadata[i][s]&&(this.metadata[i][s]=Object.create(null));for(var l=0;l<a.length;l++){var c=a[l];null==this.metadata[i][s][c]?this.metadata[i][s][c]=t.metadata[i][s][c]:this.metadata[i][s][c]=this.metadata[i][s][c].concat(t.metadata[i][s][c])}}}},E.MatchData.prototype.add=function(t,e,n){if(!(t in this.metadata))return this.metadata[t]=Object.create(null),void(this.metadata[t][e]=n);if(e in this.metadata[t])for(var i=Object.keys(n),r=0;r<i.length;r++){var o=i[r];o in this.metadata[t][e]?this.metadata[t][e][o]=this.metadata[t][e][o].concat(n[o]):this.metadata[t][e][o]=n[o]}else this.metadata[t][e]=n},E.Query=function(t){this.clauses=[],this.allFields=t},E.Query.wildcard=new String("*"),E.Query.wildcard.NONE=0,E.Query.wildcard.LEADING=1,E.Query.wildcard.TRAILING=2,E.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},E.Query.prototype.clause=function(t){return"fields"in t||(t.fields=this.allFields),"boost"in t||(t.boost=1),"usePipeline"in t||(t.usePipeline=!0),"wildcard"in t||(t.wildcard=E.Query.wildcard.NONE),t.wildcard&E.Query.wildcard.LEADING&&t.term.charAt(0)!=E.Query.wildcard&&(t.term="*"+t.term),t.wildcard&E.Query.wildcard.TRAILING&&t.term.slice(-1)!=E.Query.wildcard&&(t.term=t.term+"*"),"presence"in t||(t.presence=E.Query.presence.OPTIONAL),this.clauses.push(t),this},E.Query.prototype.isNegated=function(){for(var t=0;t<this.clauses.length;t++)if(this.clauses[t].presence!=E.Query.presence.PROHIBITED)return!1;return!0},E.Query.prototype.term=function(t,e){if(Array.isArray(t))return t.forEach((function(t){this.term(t,E.utils.clone(e))}),this),this;var n=e||{};return n.term=t.toString(),this.clause(n),this},E.QueryParseError=function(t,e,n){this.name="QueryParseError",this.message=t,this.start=e,this.end=n},E.QueryParseError.prototype=new Error,E.QueryLexer=function(t){this.lexemes=[],this.str=t,this.length=t.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},E.QueryLexer.prototype.run=function(){for(var t=E.QueryLexer.lexText;t;)t=t(this)},E.QueryLexer.prototype.sliceString=function(){for(var t=[],e=this.start,n=this.pos,i=0;i<this.escapeCharPositions.length;i++)n=this.escapeCharPositions[i],t.push(this.str.slice(e,n)),e=n+1;return t.push(this.str.slice(e,this.pos)),this.escapeCharPositions.length=0,t.join("")},E.QueryLexer.prototype.emit=function(t){this.lexemes.push({type:t,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},E.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},E.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return E.QueryLexer.EOS;var t=this.str.charAt(this.pos);return this.pos+=1,t},E.QueryLexer.prototype.width=function(){return this.pos-this.start},E.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},E.QueryLexer.prototype.backup=function(){this.pos-=1},E.QueryLexer.prototype.acceptDigitRun=function(){var t,e;do{e=(t=this.next()).charCodeAt(0)}while(e>47&&e<58);t!=E.QueryLexer.EOS&&this.backup()},E.QueryLexer.prototype.more=function(){return this.pos<this.length},E.QueryLexer.EOS="EOS",E.QueryLexer.FIELD="FIELD",E.QueryLexer.TERM="TERM",E.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",E.QueryLexer.BOOST="BOOST",E.QueryLexer.PRESENCE="PRESENCE",E.QueryLexer.lexField=function(t){return t.backup(),t.emit(E.QueryLexer.FIELD),t.ignore(),E.QueryLexer.lexText},E.QueryLexer.lexTerm=function(t){if(t.width()>1&&(t.backup(),t.emit(E.QueryLexer.TERM)),t.ignore(),t.more())return E.QueryLexer.lexText},E.QueryLexer.lexEditDistance=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(E.QueryLexer.EDIT_DISTANCE),E.QueryLexer.lexText},E.QueryLexer.lexBoost=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(E.QueryLexer.BOOST),E.QueryLexer.lexText},E.QueryLexer.lexEOS=function(t){t.width()>0&&t.emit(E.QueryLexer.TERM)},E.QueryLexer.termSeparator=E.tokenizer.separator,E.QueryLexer.lexText=function(t){for(;;){var e=t.next();if(e==E.QueryLexer.EOS)return E.QueryLexer.lexEOS;if(92!=e.charCodeAt(0)){if(":"==e)return E.QueryLexer.lexField;if("~"==e)return t.backup(),t.width()>0&&t.emit(E.QueryLexer.TERM),E.QueryLexer.lexEditDistance;if("^"==e)return t.backup(),t.width()>0&&t.emit(E.QueryLexer.TERM),E.QueryLexer.lexBoost;if("+"==e&&1===t.width())return t.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if("-"==e&&1===t.width())return t.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if(e.match(E.QueryLexer.termSeparator))return E.QueryLexer.lexTerm}else t.escapeCharacter()}},E.QueryParser=function(t,e){this.lexer=new E.QueryLexer(t),this.query=e,this.currentClause={},this.lexemeIdx=0},E.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var t=E.QueryParser.parseClause;t;)t=t(this);return this.query},E.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},E.QueryParser.prototype.consumeLexeme=function(){var t=this.peekLexeme();return this.lexemeIdx+=1,t},E.QueryParser.prototype.nextClause=function(){var t=this.currentClause;this.query.clause(t),this.currentClause={}},E.QueryParser.parseClause=function(t){var e=t.peekLexeme();if(null!=e)switch(e.type){case E.QueryLexer.PRESENCE:return E.QueryParser.parsePresence;case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+e.type;throw e.str.length>=1&&(n+=" with value '"+e.str+"'"),new E.QueryParseError(n,e.start,e.end)}},E.QueryParser.parsePresence=function(t){var e=t.consumeLexeme();if(null!=e){switch(e.str){case"-":t.currentClause.presence=E.Query.presence.PROHIBITED;break;case"+":t.currentClause.presence=E.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+e.str+"'";throw new E.QueryParseError(n,e.start,e.end)}var i=t.peekLexeme();if(null==i)throw n="expecting term or field, found nothing",new E.QueryParseError(n,e.start,e.end);switch(i.type){case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:throw n="expecting term or field, found '"+i.type+"'",new E.QueryParseError(n,i.start,i.end)}}},E.QueryParser.parseField=function(t){var e=t.consumeLexeme();if(null!=e){if(-1==t.query.allFields.indexOf(e.str)){var n=t.query.allFields.map((function(t){return"'"+t+"'"})).join(", "),i="unrecognised field '"+e.str+"', possible fields: "+n;throw new E.QueryParseError(i,e.start,e.end)}t.currentClause.fields=[e.str];var r=t.peekLexeme();if(null==r)throw i="expecting term, found nothing",new E.QueryParseError(i,e.start,e.end);if(r.type===E.QueryLexer.TERM)return E.QueryParser.parseTerm;throw i="expecting term, found '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}},E.QueryParser.parseTerm=function(t){var e=t.consumeLexeme();if(null!=e){t.currentClause.term=e.str.toLowerCase(),-1!=e.str.indexOf("*")&&(t.currentClause.usePipeline=!1);var n=t.peekLexeme();if(null!=n)switch(n.type){case E.QueryLexer.TERM:return t.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return t.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return t.nextClause(),E.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+n.type+"'";throw new E.QueryParseError(i,n.start,n.end)}else t.nextClause()}},E.QueryParser.parseEditDistance=function(t){var e=t.consumeLexeme();if(null!=e){var n=parseInt(e.str,10);if(isNaN(n)){var i="edit distance must be numeric";throw new E.QueryParseError(i,e.start,e.end)}t.currentClause.editDistance=n;var r=t.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return t.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return t.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return t.nextClause(),E.QueryParser.parsePresence;default:throw i="Unexpected lexeme type '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}else t.nextClause()}},E.QueryParser.parseBoost=function(t){var e=t.consumeLexeme();if(null!=e){var n=parseInt(e.str,10);if(isNaN(n)){var i="boost must be numeric";throw new E.QueryParseError(i,e.start,e.end)}t.currentClause.boost=n;var r=t.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return t.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return t.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return t.nextClause(),E.QueryParser.parsePresence;default:throw i="Unexpected lexeme type '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}else t.nextClause()}},void 0===(r="function"==typeof(i=function(){return E})?i.call(e,n,e,t):i)||(t.exports=r)}()},420:function(t,e,n){(t=n.nmd(t)).exports=function(){"use strict";var e,n;function i(){return e.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(s(t,e))return!1;return!0}function l(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,e){var n,i=[],r=t.length;for(n=0;n<r;++n)i.push(e(t[n],n));return i}function h(t,e){for(var n in e)s(e,n)&&(t[n]=e[n]);return s(e,"toString")&&(t.toString=e.toString),s(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,n,i){return Ne(t,e,n,i,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function g(t){var e=null,i=!1,r=t._d&&!isNaN(t._d.getTime());return r&&(e=f(t),i=n.call(e.parsedDateParts,(function(t){return null!=t})),r=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i),t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t)?r:(t._isValid=r,t._isValid)}function m(t){var e=p(NaN);return null!=t?h(f(e),t):f(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),i=n.length>>>0;for(e=0;e<i;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var v=i.momentProperties=[],y=!1;function b(t,e){var n,i,r,o=v.length;if(l(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),l(e._i)||(t._i=e._i),l(e._f)||(t._f=e._f),l(e._l)||(t._l=e._l),l(e._strict)||(t._strict=e._strict),l(e._tzm)||(t._tzm=e._tzm),l(e._isUTC)||(t._isUTC=e._isUTC),l(e._offset)||(t._offset=e._offset),l(e._pf)||(t._pf=f(e)),l(e._locale)||(t._locale=e._locale),o>0)for(n=0;n<o;n++)l(r=e[i=v[n]])||(t[i]=r);return t}function w(t){b(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,i.updateOffset(this),y=!1)}function A(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function x(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function C(t,e){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){var r,o,a,l=[],c=arguments.length;for(o=0;o<c;o++){if(r="","object"==typeof arguments[o]){for(a in r+="\n["+o+"] ",arguments[0])s(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[o];l.push(r)}x(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var M,L={};function I(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),L[t]||(x(e),L[t]=!0)}function _(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function S(t,e){var n,i=h({},t);for(n in e)s(e,n)&&(o(t[n])&&o(e[n])?(i[n]={},h(i[n],t[n]),h(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)s(t,n)&&!s(e,n)&&o(t[n])&&(i[n]=h({},i[n]));return i}function k(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,M=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)s(t,e)&&n.push(e);return n};function T(t,e,n){var i=""+Math.abs(t),r=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|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,N={},O={};function E(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(O[t]=r),e&&(O[e[0]]=function(){return T(r.apply(this,arguments),e[1],e[2])}),n&&(O[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function z(t,e){return t.isValid()?(e=F(e,t.localeData()),N[e]=N[e]||function(t){var e,n,i,r=t.match(D);for(e=0,n=r.length;e<n;e++)O[r[e]]?r[e]=O[r[e]]:r[e]=(i=r[e]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(e){var i,o="";for(i=0;i<n;i++)o+=_(r[i])?r[i].call(e,t):r[i];return o}}(e),N[e](t)):t.localeData().invalidDate()}function F(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(j.lastIndex=0;n>=0&&j.test(t);)t=t.replace(j,i),j.lastIndex=0,n-=1;return t}var R={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function P(t){return"string"==typeof t?R[t]||R[t.toLowerCase()]:void 0}function Y(t){var e,n,i={};for(n in t)s(t,n)&&(e=P(n))&&(i[e]=t[n]);return i}var U={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var B,W=/\d/,Z=/\d\d/,H=/\d{3}/,G=/\d{4}/,V=/[+-]?\d{6}/,Q=/\d\d?/,J=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,K=/\d{1,3}/,q=/\d{1,4}/,$=/[+-]?\d{1,6}/,tt=/\d+/,et=/[+-]?\d+/,nt=/Z|[+-]\d\d:?\d\d/gi,it=/Z|[+-]\d\d(?::?\d\d)?/gi,rt=/[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,ot=/^[1-9]\d?/,st=/^([1-9]\d|\d)/;function at(t,e,n){B[t]=_(e)?e:function(t,i){return t&&n?n:e}}function lt(t,e){return s(B,t)?B[t](e._strict,e._locale):new RegExp(ct(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r}))))}function ct(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ut(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function dt(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=ut(e)),n}B={};var ht={};function pt(t,e){var n,i,r=e;for("string"==typeof t&&(t=[t]),c(e)&&(r=function(t,n){n[e]=dt(t)}),i=t.length,n=0;n<i;n++)ht[t[n]]=r}function ft(t,e){pt(t,(function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)}))}function gt(t,e,n){null!=e&&s(ht,t)&&ht[t](e,n._a,n,t)}function mt(t){return t%4==0&&t%100!=0||t%400==0}var vt=0,yt=1,bt=2,wt=3,At=4,xt=5,Ct=6,Mt=7,Lt=8;function It(t){return mt(t)?366:365}E("Y",0,0,(function(){var t=this.year();return t<=9999?T(t,4):"+"+t})),E(0,["YY",2],0,(function(){return this.year()%100})),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),at("Y",et),at("YY",Q,Z),at("YYYY",q,G),at("YYYYY",$,V),at("YYYYYY",$,V),pt(["YYYYY","YYYYYY"],vt),pt("YYYY",(function(t,e){e[vt]=2===t.length?i.parseTwoDigitYear(t):dt(t)})),pt("YY",(function(t,e){e[vt]=i.parseTwoDigitYear(t)})),pt("Y",(function(t,e){e[vt]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return dt(t)+(dt(t)>68?1900:2e3)};var _t,St=kt("FullYear",!0);function kt(t,e){return function(n){return null!=n?(Dt(this,t,n),i.updateOffset(this,e),this):Tt(this,t)}}function Tt(t,e){if(!t.isValid())return NaN;var n=t._d,i=t._isUTC;switch(e){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Dt(t,e,n){var i,r,o,s,a;if(t.isValid()&&!isNaN(n)){switch(i=t._d,r=t._isUTC,e){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}o=n,s=t.month(),a=29!==(a=t.date())||1!==s||mt(o)?a:28,r?i.setUTCFullYear(o,s,a):i.setFullYear(o,s,a)}}function jt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n,i=(e%(n=12)+n)%n;return t+=(e-i)/12,1===i?mt(t)?29:28:31-i%7%2}_t=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},E("M",["MM",2],"Mo",(function(){return this.month()+1})),E("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),E("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),at("M",Q,ot),at("MM",Q,Z),at("MMM",(function(t,e){return e.monthsShortRegex(t)})),at("MMMM",(function(t,e){return e.monthsRegex(t)})),pt(["M","MM"],(function(t,e){e[yt]=dt(t)-1})),pt(["MMM","MMMM"],(function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[yt]=r:f(n).invalidMonth=t}));var Nt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Et=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,zt=rt,Ft=rt;function Rt(t,e,n){var i,r,o,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=_t.call(this._shortMonthsParse,s))?r:null:-1!==(r=_t.call(this._longMonthsParse,s))?r:null:"MMM"===e?-1!==(r=_t.call(this._shortMonthsParse,s))||-1!==(r=_t.call(this._longMonthsParse,s))?r:null:-1!==(r=_t.call(this._longMonthsParse,s))||-1!==(r=_t.call(this._shortMonthsParse,s))?r:null}function Pt(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=dt(e);else if(!c(e=t.localeData().monthsParse(e)))return t;var n=e,i=t.date();return i=i<29?i:Math.min(i,jt(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,i):t._d.setMonth(n,i),t}function Yt(t){return null!=t?(Pt(this,t),i.updateOffset(this,!0),this):Tt(this,"Month")}function Ut(){function t(t,e){return e.length-t.length}var e,n,i,r,o=[],s=[],a=[];for(e=0;e<12;e++)n=p([2e3,e]),i=ct(this.monthsShort(n,"")),r=ct(this.months(n,"")),o.push(i),s.push(r),a.push(r),a.push(i);o.sort(t),s.sort(t),a.sort(t),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Bt(t,e,n,i,r,o,s){var a;return t<100&&t>=0?(a=new Date(t+400,e,n,i,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,i,r,o,s),a}function Wt(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Zt(t,e,n){var i=7+e-n;return-(7+Wt(t,0,i).getUTCDay()-e)%7+i-1}function Ht(t,e,n,i,r){var o,s,a=1+7*(e-1)+(7+n-i)%7+Zt(t,i,r);return a<=0?s=It(o=t-1)+a:a>It(t)?(o=t+1,s=a-It(t)):(o=t,s=a),{year:o,dayOfYear:s}}function Gt(t,e,n){var i,r,o=Zt(t.year(),e,n),s=Math.floor((t.dayOfYear()-o-1)/7)+1;return s<1?i=s+Vt(r=t.year()-1,e,n):s>Vt(t.year(),e,n)?(i=s-Vt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=s),{week:i,year:r}}function Vt(t,e,n){var i=Zt(t,e,n),r=Zt(t+1,e,n);return(It(t)-i+r)/7}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),at("w",Q,ot),at("ww",Q,Z),at("W",Q,ot),at("WW",Q,Z),ft(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=dt(t)}));function Qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}E("d",0,"do","day"),E("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),E("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),E("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),at("d",Q),at("e",Q),at("E",Q),at("dd",(function(t,e){return e.weekdaysMinRegex(t)})),at("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),at("dddd",(function(t,e){return e.weekdaysRegex(t)})),ft(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:f(n).invalidWeekday=t})),ft(["d","e","E"],(function(t,e,n,i){e[i]=dt(t)}));var Jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Kt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),qt=rt,$t=rt,te=rt;function ee(t,e,n){var i,r,o,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=_t.call(this._weekdaysParse,s))?r:null:"ddd"===e?-1!==(r=_t.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=_t.call(this._minWeekdaysParse,s))?r:null:"dddd"===e?-1!==(r=_t.call(this._weekdaysParse,s))||-1!==(r=_t.call(this._shortWeekdaysParse,s))||-1!==(r=_t.call(this._minWeekdaysParse,s))?r:null:"ddd"===e?-1!==(r=_t.call(this._shortWeekdaysParse,s))||-1!==(r=_t.call(this._weekdaysParse,s))||-1!==(r=_t.call(this._minWeekdaysParse,s))?r:null:-1!==(r=_t.call(this._minWeekdaysParse,s))||-1!==(r=_t.call(this._weekdaysParse,s))||-1!==(r=_t.call(this._shortWeekdaysParse,s))?r:null}function ne(){function t(t,e){return e.length-t.length}var e,n,i,r,o,s=[],a=[],l=[],c=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),i=ct(this.weekdaysMin(n,"")),r=ct(this.weekdaysShort(n,"")),o=ct(this.weekdays(n,"")),s.push(i),a.push(r),l.push(o),c.push(i),c.push(r),c.push(o);s.sort(t),a.sort(t),l.sort(t),c.sort(t),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function ie(){return this.hours()%12||12}function re(t,e){E(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function oe(t,e){return e._meridiemParse}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,ie),E("k",["kk",2],0,(function(){return this.hours()||24})),E("hmm",0,0,(function(){return""+ie.apply(this)+T(this.minutes(),2)})),E("hmmss",0,0,(function(){return""+ie.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)})),E("Hmm",0,0,(function(){return""+this.hours()+T(this.minutes(),2)})),E("Hmmss",0,0,(function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)})),re("a",!0),re("A",!1),at("a",oe),at("A",oe),at("H",Q,st),at("h",Q,ot),at("k",Q,ot),at("HH",Q,Z),at("hh",Q,Z),at("kk",Q,Z),at("hmm",J),at("hmmss",X),at("Hmm",J),at("Hmmss",X),pt(["H","HH"],wt),pt(["k","kk"],(function(t,e,n){var i=dt(t);e[wt]=24===i?0:i})),pt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),pt(["h","hh"],(function(t,e,n){e[wt]=dt(t),f(n).bigHour=!0})),pt("hmm",(function(t,e,n){var i=t.length-2;e[wt]=dt(t.substr(0,i)),e[At]=dt(t.substr(i)),f(n).bigHour=!0})),pt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[wt]=dt(t.substr(0,i)),e[At]=dt(t.substr(i,2)),e[xt]=dt(t.substr(r)),f(n).bigHour=!0})),pt("Hmm",(function(t,e,n){var i=t.length-2;e[wt]=dt(t.substr(0,i)),e[At]=dt(t.substr(i))})),pt("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[wt]=dt(t.substr(0,i)),e[At]=dt(t.substr(i,2)),e[xt]=dt(t.substr(r))}));var se=kt("Hours",!0);var ae,le={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Nt,monthsShort:Ot,week:{dow:0,doy:6},weekdays:Jt,weekdaysMin:Kt,weekdaysShort:Xt,meridiemParse:/[ap]\.?m?\.?/i},ce={},ue={};function de(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n<i;n+=1)if(t[n]!==e[n])return n;return i}function he(t){return t?t.toLowerCase().replace("_","-"):t}function pe(e){var n=null;if(void 0===ce[e]&&t&&t.exports&&function(t){return!(!t||!t.match("^[^/\\\\]*$"))}(e))try{n=ae._abbr,Object(function(){var t=new Error("Cannot find module 'undefined'");throw t.code="MODULE_NOT_FOUND",t}()),fe(n)}catch(t){ce[e]=null}return ce[e]}function fe(t,e){var n;return t&&((n=l(e)?me(t):ge(t,e))?ae=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ae._abbr}function ge(t,e){if(null!==e){var n,i=le;if(e.abbr=t,null!=ce[t])I("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."),i=ce[t]._config;else if(null!=e.parentLocale)if(null!=ce[e.parentLocale])i=ce[e.parentLocale]._config;else{if(null==(n=pe(e.parentLocale)))return ue[e.parentLocale]||(ue[e.parentLocale]=[]),ue[e.parentLocale].push({name:t,config:e}),null;i=n._config}return ce[t]=new k(S(i,e)),ue[t]&&ue[t].forEach((function(t){ge(t.name,t.config)})),fe(t),ce[t]}return delete ce[t],null}function me(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ae;if(!r(t)){if(e=pe(t))return e;t=[t]}return function(t){for(var e,n,i,r,o=0;o<t.length;){for(e=(r=he(t[o]).split("-")).length,n=(n=he(t[o+1]))?n.split("-"):null;e>0;){if(i=pe(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&de(r,n)>=e-1)break;e--}o++}return ae}(t)}function ve(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[yt]<0||n[yt]>11?yt:n[bt]<1||n[bt]>jt(n[vt],n[yt])?bt:n[wt]<0||n[wt]>24||24===n[wt]&&(0!==n[At]||0!==n[xt]||0!==n[Ct])?wt:n[At]<0||n[At]>59?At:n[xt]<0||n[xt]>59?xt:n[Ct]<0||n[Ct]>999?Ct:-1,f(t)._overflowDayOfYear&&(e<vt||e>bt)&&(e=bt),f(t)._overflowWeeks&&-1===e&&(e=Mt),f(t)._overflowWeekday&&-1===e&&(e=Lt),f(t).overflow=e),t}var ye=/^\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)?)?$/,be=/^\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)?)?$/,we=/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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xe=[["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/]],Ce=/^\/?Date\((-?\d+)/i,Me=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Le={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ie(t){var e,n,i,r,o,s,a=t._i,l=ye.exec(a)||be.exec(a),c=Ae.length,u=xe.length;if(l){for(f(t).iso=!0,e=0,n=c;e<n;e++)if(Ae[e][1].exec(l[1])){r=Ae[e][0],i=!1!==Ae[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,n=u;e<n;e++)if(xe[e][1].exec(l[3])){o=(l[2]||" ")+xe[e][0];break}if(null==o)return void(t._isValid=!1)}if(!i&&null!=o)return void(t._isValid=!1);if(l[4]){if(!we.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=r+(o||"")+(s||""),De(t)}else t._isValid=!1}function _e(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Se(t){var e,n,i,r,o,s,a,l,c=Me.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],i=c[3],r=c[2],o=c[5],s=c[6],a=c[7],l=[_e(n),Ot.indexOf(i),parseInt(r,10),parseInt(o,10),parseInt(s,10)],a&&l.push(parseInt(a,10)),e=l,!function(t,e,n){return!t||Xt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],e,t))return;t._a=e,t._tzm=function(t,e,n){if(t)return Le[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(c[8],c[9],c[10]),t._d=Wt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function ke(t,e,n){return null!=t?t:null!=e?e:n}function Te(t){var e,n,r,o,s,a=[];if(!t._d){for(r=function(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[bt]&&null==t._a[yt]&&function(t){var e,n,i,r,o,s,a,l,c;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,s=4,n=ke(e.GG,t._a[vt],Gt(Oe(),1,4).year),i=ke(e.W,1),((r=ke(e.E,1))<1||r>7)&&(l=!0)):(o=t._locale._week.dow,s=t._locale._week.doy,c=Gt(Oe(),o,s),n=ke(e.gg,t._a[vt],c.year),i=ke(e.w,c.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o),i<1||i>Vt(n,o,s)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(a=Ht(n,i,r,o,s),t._a[vt]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=ke(t._a[vt],r[vt]),(t._dayOfYear>It(s)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=Wt(s,0,t._dayOfYear),t._a[yt]=n.getUTCMonth(),t._a[bt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[wt]&&0===t._a[At]&&0===t._a[xt]&&0===t._a[Ct]&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?Wt:Bt).apply(null,a),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}function De(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],f(t).empty=!0;var e,n,r,o,s,a,l,c=""+t._i,u=c.length,d=0;for(l=(r=F(t._f,t._locale).match(D)||[]).length,e=0;e<l;e++)o=r[e],(n=(c.match(lt(o,t))||[])[0])&&((s=c.substr(0,c.indexOf(n))).length>0&&f(t).unusedInput.push(s),c=c.slice(c.indexOf(n)+n.length),d+=n.length),O[o]?(n?f(t).empty=!1:f(t).unusedTokens.push(o),gt(o,n,t)):t._strict&&!n&&f(t).unusedTokens.push(o);f(t).charsLeftOver=u-d,c.length>0&&f(t).unusedInput.push(c),t._a[wt]<=12&&!0===f(t).bigHour&&t._a[wt]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[wt]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[wt],t._meridiem),null!==(a=f(t).era)&&(t._a[vt]=t._locale.erasConvertYear(a,t._a[vt])),Te(t),ve(t)}else Se(t);else Ie(t)}function je(t){var e=t._i,n=t._f;return t._locale=t._locale||me(t._l),null===e||void 0===n&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),A(e)?new w(ve(e)):(u(e)?t._d=e:r(n)?function(t){var e,n,i,r,o,s,a=!1,l=t._f.length;if(0===l)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<l;r++)o=0,s=!1,e=b({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],De(e),g(e)&&(s=!0),o+=f(e).charsLeftOver,o+=10*f(e).unusedTokens.length,f(e).score=o,a?o<i&&(i=o,n=e):(null==i||o<i||s)&&(i=o,n=e,s&&(a=!0));h(t,n||e)}(t):n?De(t):function(t){var e=t._i;l(e)?t._d=new Date(i.now()):u(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Ce.exec(t._i);null===e?(Ie(t),!1===t._isValid&&(delete t._isValid,Se(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):r(e)?(t._a=d(e.slice(0),(function(t){return parseInt(t,10)})),Te(t)):o(e)?function(t){if(!t._d){var e=Y(t._i),n=void 0===e.day?e.date:e.day;t._a=d([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Te(t)}}(t):c(e)?t._d=new Date(e):i.createFromInputFallback(t)}(t),g(t)||(t._d=null),t))}function Ne(t,e,n,i,s){var l,c={};return!0!==e&&!1!==e||(i=e,e=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(o(t)&&a(t)||r(t)&&0===t.length)&&(t=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=s,c._l=n,c._i=t,c._f=e,c._strict=i,(l=new w(ve(je(c))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function Oe(t,e,n,i){return Ne(t,e,n,i,!1)}i.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Ee=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Oe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()})),ze=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Oe.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()}));function Fe(t,e){var n,i;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Oe();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Re=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pe(t){var e=Y(t),n=e.year||0,i=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,a=e.day||0,l=e.hour||0,c=e.minute||0,u=e.second||0,d=e.millisecond||0;this._isValid=function(t){var e,n,i=!1,r=Re.length;for(e in t)if(s(t,e)&&(-1===_t.call(Re,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<r;++n)if(t[Re[n]]){if(i)return!1;parseFloat(t[Re[n]])!==dt(t[Re[n]])&&(i=!0)}return!0}(e),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+a+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=me(),this._bubble()}function Ye(t){return t instanceof Pe}function Ue(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Be(t,e){E(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+T(~~(t/60),2)+e+T(~~t%60,2)}))}Be("Z",":"),Be("ZZ",""),at("Z",it),at("ZZ",it),pt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=Ze(it,t)}));var We=/([\+\-]|\d\d)/gi;function Ze(t,e){var n,i,r=(e||"").match(t);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(We)||["-",0,0])[1]+dt(n[2]))?0:"+"===n[0]?i:-i}function He(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(A(t)||u(t)?t.valueOf():Oe(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Oe(t).local()}function Ge(t){return-Math.round(t._d.getTimezoneOffset())}function Ve(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Qe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Je=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xe(t,e){var n,i,r,o,a,l,u=t,d=null;return Ye(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:c(t)||!isNaN(+t)?(u={},e?u[e]=+t:u.milliseconds=+t):(d=Qe.exec(t))?(n="-"===d[1]?-1:1,u={y:0,d:dt(d[bt])*n,h:dt(d[wt])*n,m:dt(d[At])*n,s:dt(d[xt])*n,ms:dt(Ue(1e3*d[Ct]))*n}):(d=Je.exec(t))?(n="-"===d[1]?-1:1,u={y:Ke(d[2],n),M:Ke(d[3],n),w:Ke(d[4],n),d:Ke(d[5],n),h:Ke(d[6],n),m:Ke(d[7],n),s:Ke(d[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=Oe(u.from),a=Oe(u.to),r=o.isValid()&&a.isValid()?(a=He(a,o),o.isBefore(a)?l=qe(o,a):((l=qe(a,o)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),i=new Pe(u),Ye(t)&&s(t,"_locale")&&(i._locale=t._locale),Ye(t)&&s(t,"_isValid")&&(i._isValid=t._isValid),i}function Ke(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function qe(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function $e(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(I(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),tn(this,Xe(n,i),t),this}}function tn(t,e,n,r){var o=e._milliseconds,s=Ue(e._days),a=Ue(e._months);t.isValid()&&(r=null==r||r,a&&Pt(t,Tt(t,"Month")+a*n),s&&Dt(t,"Date",Tt(t,"Date")+s*n),o&&t._d.setTime(t._d.valueOf()+o*n),r&&i.updateOffset(t,s||a))}Xe.fn=Pe.prototype,Xe.invalid=function(){return Xe(NaN)};var en=$e(1,"add"),nn=$e(-1,"subtract");function rn(t){return"string"==typeof t||t instanceof String}function on(t){return A(t)||u(t)||rn(t)||c(t)||function(t){var e=r(t),n=!1;return e&&(n=0===t.filter((function(e){return!c(e)&&rn(t)})).length),e&&n}(t)||function(t){var e,n,i=o(t)&&!a(t),r=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=l.length;for(e=0;e<c;e+=1)n=l[e],r=r||s(t,n);return i&&r}(t)||null==t}function sn(t,e){if(t.date()<e.date())return-sn(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function an(t){var e;return void 0===t?this._locale._abbr:(null!=(e=me(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ln=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function cn(){return this._locale}var un=1e3,dn=6e4,hn=36e5,pn=126227808e5;function fn(t,e){return(t%e+e)%e}function gn(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-pn:new Date(t,e,n).valueOf()}function mn(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-pn:Date.UTC(t,e,n)}function vn(t,e){return e.erasAbbrRegex(t)}function yn(){var t,e,n,i,r,o=[],s=[],a=[],l=[],c=this.eras();for(t=0,e=c.length;t<e;++t)n=ct(c[t].name),i=ct(c[t].abbr),r=ct(c[t].narrow),s.push(n),o.push(i),a.push(r),l.push(n),l.push(i),l.push(r);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function bn(t,e){E(0,[t,t.length],0,e)}function wn(t,e,n,i,r){var o;return null==t?Gt(this,i,r).year:(e>(o=Vt(t,i,r))&&(e=o),An.call(this,t,e,n,i,r))}function An(t,e,n,i,r){var o=Ht(t,e,n,i,r),s=Wt(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),at("N",vn),at("NN",vn),at("NNN",vn),at("NNNN",(function(t,e){return e.erasNameRegex(t)})),at("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),pt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?f(n).era=r:f(n).invalidEra=t})),at("y",tt),at("yy",tt),at("yyy",tt),at("yyyy",tt),at("yo",(function(t,e){return e._eraYearOrdinalRegex||tt})),pt(["y","yy","yyy","yyyy"],vt),pt(["yo"],(function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[vt]=n._locale.eraYearOrdinalParse(t,r):e[vt]=parseInt(t,10)})),E(0,["gg",2],0,(function(){return this.weekYear()%100})),E(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),bn("gggg","weekYear"),bn("ggggg","weekYear"),bn("GGGG","isoWeekYear"),bn("GGGGG","isoWeekYear"),at("G",et),at("g",et),at("GG",Q,Z),at("gg",Q,Z),at("GGGG",q,G),at("gggg",q,G),at("GGGGG",$,V),at("ggggg",$,V),ft(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=dt(t)})),ft(["gg","GG"],(function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)})),E("Q",0,"Qo","quarter"),at("Q",W),pt("Q",(function(t,e){e[yt]=3*(dt(t)-1)})),E("D",["DD",2],"Do","date"),at("D",Q,ot),at("DD",Q,Z),at("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),pt(["D","DD"],bt),pt("Do",(function(t,e){e[bt]=dt(t.match(Q)[0])}));var xn=kt("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),at("DDD",K),at("DDDD",H),pt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=dt(t)})),E("m",["mm",2],0,"minute"),at("m",Q,st),at("mm",Q,Z),pt(["m","mm"],At);var Cn=kt("Minutes",!1);E("s",["ss",2],0,"second"),at("s",Q,st),at("ss",Q,Z),pt(["s","ss"],xt);var Mn,Ln,In=kt("Seconds",!1);for(E("S",0,0,(function(){return~~(this.millisecond()/100)})),E(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),E(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),E(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),E(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),E(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),E(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),at("S",K,W),at("SS",K,Z),at("SSS",K,H),Mn="SSSS";Mn.length<=9;Mn+="S")at(Mn,tt);function _n(t,e){e[Ct]=dt(1e3*("0."+t))}for(Mn="S";Mn.length<=9;Mn+="S")pt(Mn,_n);Ln=kt("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var Sn=w.prototype;function kn(t){return t}Sn.add=en,Sn.calendar=function(t,e){1===arguments.length&&(arguments[0]?on(arguments[0])?(t=arguments[0],e=void 0):function(t){var e,n=o(t)&&!a(t),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)i=i||s(t,r[e]);return n&&i}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Oe(),r=He(n,this).startOf("day"),l=i.calendarFormat(this,r)||"sameElse",c=e&&(_(e[l])?e[l].call(this,n):e[l]);return this.format(c||this.localeData().calendar(l,this,Oe(n)))},Sn.clone=function(){return new w(this)},Sn.diff=function(t,e,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=He(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=P(e)){case"year":o=sn(this,i)/12;break;case"month":o=sn(this,i);break;case"quarter":o=sn(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:ut(o)},Sn.endOf=function(t){var e,n;if(void 0===(t=P(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mn:gn,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=hn-fn(e+(this._isUTC?0:this.utcOffset()*dn),hn)-1;break;case"minute":e=this._d.valueOf(),e+=dn-fn(e,dn)-1;break;case"second":e=this._d.valueOf(),e+=un-fn(e,un)-1}return this._d.setTime(e),i.updateOffset(this,!0),this},Sn.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=z(this,t);return this.localeData().postformat(e)},Sn.from=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Oe(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Sn.fromNow=function(t){return this.from(Oe(),t)},Sn.to=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Oe(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Sn.toNow=function(t){return this.to(Oe(),t)},Sn.get=function(t){return _(this[t=P(t)])?this[t]():this},Sn.invalidAt=function(){return f(this).overflow},Sn.isAfter=function(t,e){var n=A(t)?t:Oe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=P(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},Sn.isBefore=function(t,e){var n=A(t)?t:Oe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=P(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},Sn.isBetween=function(t,e,n,i){var r=A(t)?t:Oe(t),o=A(e)?e:Oe(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n))},Sn.isSame=function(t,e){var n,i=A(t)?t:Oe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=P(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},Sn.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Sn.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Sn.isValid=function(){return g(this)},Sn.lang=ln,Sn.locale=an,Sn.localeData=cn,Sn.max=ze,Sn.min=Ee,Sn.parsingFlags=function(){return h({},f(this))},Sn.set=function(t,e){if("object"==typeof t){var n,i=function(t){var e,n=[];for(e in t)s(t,e)&&n.push({unit:e,priority:U[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}(t=Y(t)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](t[i[n].unit])}else if(_(this[t=P(t)]))return this[t](e);return this},Sn.startOf=function(t){var e,n;if(void 0===(t=P(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mn:gn,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=fn(e+(this._isUTC?0:this.utcOffset()*dn),hn);break;case"minute":e=this._d.valueOf(),e-=fn(e,dn);break;case"second":e=this._d.valueOf(),e-=fn(e,un)}return this._d.setTime(e),i.updateOffset(this,!0),this},Sn.subtract=nn,Sn.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Sn.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Sn.toDate=function(){return new Date(this.valueOf())},Sn.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?z(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Sn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=r+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Sn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Sn.toJSON=function(){return this.isValid()?this.toISOString():null},Sn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Sn.unix=function(){return Math.floor(this.valueOf()/1e3)},Sn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Sn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Sn.eraName=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].name;if(i[t].until<=n&&n<=i[t].since)return i[t].name}return""},Sn.eraNarrow=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].narrow;if(i[t].until<=n&&n<=i[t].since)return i[t].narrow}return""},Sn.eraAbbr=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].abbr;if(i[t].until<=n&&n<=i[t].since)return i[t].abbr}return""},Sn.eraYear=function(){var t,e,n,r,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(n=o[t].since<=o[t].until?1:-1,r=this.clone().startOf("day").valueOf(),o[t].since<=r&&r<=o[t].until||o[t].until<=r&&r<=o[t].since)return(this.year()-i(o[t].since).year())*n+o[t].offset;return this.year()},Sn.year=St,Sn.isLeapYear=function(){return mt(this.year())},Sn.weekYear=function(t){return wn.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Sn.isoWeekYear=function(t){return wn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Sn.quarter=Sn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Sn.month=Yt,Sn.daysInMonth=function(){return jt(this.year(),this.month())},Sn.week=Sn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Sn.isoWeek=Sn.isoWeeks=function(t){var e=Gt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Sn.weeksInYear=function(){var t=this.localeData()._week;return Vt(this.year(),t.dow,t.doy)},Sn.weeksInWeekYear=function(){var t=this.localeData()._week;return Vt(this.weekYear(),t.dow,t.doy)},Sn.isoWeeksInYear=function(){return Vt(this.year(),1,4)},Sn.isoWeeksInISOWeekYear=function(){return Vt(this.isoWeekYear(),1,4)},Sn.date=xn,Sn.day=Sn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=Tt(this,"Day");return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Sn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Sn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},Sn.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Sn.hour=Sn.hours=se,Sn.minute=Sn.minutes=Cn,Sn.second=Sn.seconds=In,Sn.millisecond=Sn.milliseconds=Ln,Sn.utcOffset=function(t,e,n){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ze(it,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=Ge(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!e||this._changeInProgress?tn(this,Xe(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ge(this)},Sn.utc=function(t){return this.utcOffset(0,t)},Sn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ge(this),"m")),this},Sn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ze(nt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Sn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Oe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Sn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Sn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Sn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Sn.isUtc=Ve,Sn.isUTC=Ve,Sn.zoneAbbr=function(){return this._isUTC?"UTC":""},Sn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Sn.dates=C("dates accessor is deprecated. Use date instead.",xn),Sn.months=C("months accessor is deprecated. Use month instead",Yt),Sn.years=C("years accessor is deprecated. Use year instead",St),Sn.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),Sn.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t,e={};return b(e,this),(e=je(e))._a?(t=e._isUTC?p(e._a):Oe(e._a),this._isDSTShifted=this.isValid()&&function(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&dt(t[i])!==dt(e[i]))&&s++;return s+o}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Tn=k.prototype;function Dn(t,e,n,i){var r=me(),o=p().set(i,e);return r[n](o,t)}function jn(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return Dn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Dn(t,i,n,"month");return r}function Nn(t,e,n,i){"boolean"==typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var r,o=me(),s=t?o._week.dow:0,a=[];if(null!=n)return Dn(e,(n+s)%7,i,"day");for(r=0;r<7;r++)a[r]=Dn(e,(r+s)%7,i,"day");return a}Tn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return _(i)?i.call(e,n):i},Tn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(D).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Tn.invalidDate=function(){return this._invalidDate},Tn.ordinal=function(t){return this._ordinal.replace("%d",t)},Tn.preparse=kn,Tn.postformat=kn,Tn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return _(r)?r(t,e,n,i):r.replace(/%d/i,t)},Tn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return _(n)?n(e):n.replace(/%s/i,e)},Tn.set=function(t){var e,n;for(n in t)s(t,n)&&(_(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Tn.eras=function(t,e){var n,r,o,s=this._eras||me("en")._eras;for(n=0,r=s.length;n<r;++n)switch("string"==typeof s[n].since&&(o=i(s[n].since).startOf("day"),s[n].since=o.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":o=i(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s},Tn.erasParse=function(t,e,n){var i,r,o,s,a,l=this.eras();for(t=t.toUpperCase(),i=0,r=l.length;i<r;++i)if(o=l[i].name.toUpperCase(),s=l[i].abbr.toUpperCase(),a=l[i].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(s===t)return l[i];break;case"NNNN":if(o===t)return l[i];break;case"NNNNN":if(a===t)return l[i]}else if([o,s,a].indexOf(t)>=0)return l[i]},Tn.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*n},Tn.erasAbbrRegex=function(t){return s(this,"_erasAbbrRegex")||yn.call(this),t?this._erasAbbrRegex:this._erasRegex},Tn.erasNameRegex=function(t){return s(this,"_erasNameRegex")||yn.call(this),t?this._erasNameRegex:this._erasRegex},Tn.erasNarrowRegex=function(t){return s(this,"_erasNarrowRegex")||yn.call(this),t?this._erasNarrowRegex:this._erasRegex},Tn.months=function(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Et).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},Tn.monthsShort=function(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Et.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Tn.monthsParse=function(t,e,n){var i,r,o;if(this._monthsParseExact)return Rt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},Tn.monthsRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||Ut.call(this),t?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ft),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Tn.monthsShortRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||Ut.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=zt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Tn.week=function(t){return Gt(t,this._week.dow,this._week.doy).week},Tn.firstDayOfYear=function(){return this._week.doy},Tn.firstDayOfWeek=function(){return this._week.dow},Tn.weekdays=function(t,e){var n=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Qt(n,this._week.dow):t?n[t.day()]:n},Tn.weekdaysMin=function(t){return!0===t?Qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Tn.weekdaysShort=function(t){return!0===t?Qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Tn.weekdaysParse=function(t,e,n){var i,r,o;if(this._weekdaysParseExact)return ee.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},Tn.weekdaysRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=qt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Tn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$t),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Tn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=te),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Tn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Tn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},fe("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===dt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=C("moment.lang is deprecated. Use moment.locale instead.",fe),i.langData=C("moment.langData is deprecated. Use moment.localeData instead.",me);var On=Math.abs;function En(t,e,n,i){var r=Xe(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function zn(t){return t<0?Math.floor(t):Math.ceil(t)}function Fn(t){return 4800*t/146097}function Rn(t){return 146097*t/4800}function Pn(t){return function(){return this.as(t)}}var Yn=Pn("ms"),Un=Pn("s"),Bn=Pn("m"),Wn=Pn("h"),Zn=Pn("d"),Hn=Pn("w"),Gn=Pn("M"),Vn=Pn("Q"),Qn=Pn("y"),Jn=Yn;function Xn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Kn=Xn("milliseconds"),qn=Xn("seconds"),$n=Xn("minutes"),ti=Xn("hours"),ei=Xn("days"),ni=Xn("months"),ii=Xn("years");var ri=Math.round,oi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function si(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}var ai=Math.abs;function li(t){return(t>0)-(t<0)||+t}function ci(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,o,s,a,l=ai(this._milliseconds)/1e3,c=ai(this._days),u=ai(this._months),d=this.asSeconds();return d?(t=ut(l/60),e=ut(t/60),l%=60,t%=60,n=ut(u/12),u%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=li(this._months)!==li(d)?"-":"",s=li(this._days)!==li(d)?"-":"",a=li(this._milliseconds)!==li(d)?"-":"",r+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?s+c+"D":"")+(e||t||l?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(l?a+i+"S":"")):"P0D"}var ui=Pe.prototype;return ui.isValid=function(){return this._isValid},ui.abs=function(){var t=this._data;return this._milliseconds=On(this._milliseconds),this._days=On(this._days),this._months=On(this._months),t.milliseconds=On(t.milliseconds),t.seconds=On(t.seconds),t.minutes=On(t.minutes),t.hours=On(t.hours),t.months=On(t.months),t.years=On(t.years),this},ui.add=function(t,e){return En(this,t,e,1)},ui.subtract=function(t,e){return En(this,t,e,-1)},ui.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=P(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+Fn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Rn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},ui.asMilliseconds=Yn,ui.asSeconds=Un,ui.asMinutes=Bn,ui.asHours=Wn,ui.asDays=Zn,ui.asWeeks=Hn,ui.asMonths=Gn,ui.asQuarters=Vn,ui.asYears=Qn,ui.valueOf=Jn,ui._bubble=function(){var t,e,n,i,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*zn(Rn(a)+s),s=0,a=0),l.milliseconds=o%1e3,t=ut(o/1e3),l.seconds=t%60,e=ut(t/60),l.minutes=e%60,n=ut(e/60),l.hours=n%24,s+=ut(n/24),a+=r=ut(Fn(s)),s-=zn(Rn(r)),i=ut(a/12),a%=12,l.days=s,l.months=a,l.years=i,this},ui.clone=function(){return Xe(this)},ui.get=function(t){return t=P(t),this.isValid()?this[t+"s"]():NaN},ui.milliseconds=Kn,ui.seconds=qn,ui.minutes=$n,ui.hours=ti,ui.days=ei,ui.weeks=function(){return ut(this.days()/7)},ui.months=ni,ui.years=ii,ui.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=oi;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(o=Object.assign({},oi,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),i=function(t,e,n,i){var r=Xe(t).abs(),o=ri(r.as("s")),s=ri(r.as("m")),a=ri(r.as("h")),l=ri(r.as("d")),c=ri(r.as("M")),u=ri(r.as("w")),d=ri(r.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=e,h[3]=+t>0,h[4]=i,si.apply(null,h)}(this,!r,o,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ui.toISOString=ci,ui.toString=ci,ui.toJSON=ci,ui.locale=an,ui.localeData=cn,ui.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ci),ui.lang=ln,E("X",0,0,"unix"),E("x",0,0,"valueOf"),at("x",et),at("X",/[+-]?\d+(\.\d{1,3})?/),pt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),pt("x",(function(t,e,n){n._d=new Date(dt(t))})),i.version="2.30.1",e=Oe,i.fn=Sn,i.min=function(){return Fe("isBefore",[].slice.call(arguments,0))},i.max=function(){return Fe("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(t){return Oe(1e3*t)},i.months=function(t,e){return jn(t,e,"months")},i.isDate=u,i.locale=fe,i.invalid=m,i.duration=Xe,i.isMoment=A,i.weekdays=function(t,e,n){return Nn(t,e,n,"weekdays")},i.parseZone=function(){return Oe.apply(null,arguments).parseZone()},i.localeData=me,i.isDuration=Ye,i.monthsShort=function(t,e){return jn(t,e,"monthsShort")},i.weekdaysMin=function(t,e,n){return Nn(t,e,n,"weekdaysMin")},i.defineLocale=ge,i.updateLocale=function(t,e){if(null!=e){var n,i,r=le;null!=ce[t]&&null!=ce[t].parentLocale?ce[t].set(S(ce[t]._config,e)):(null!=(i=pe(t))&&(r=i._config),e=S(r,e),null==i&&(e.abbr=t),(n=new k(e)).parentLocale=ce[t],ce[t]=n),fe(t)}else null!=ce[t]&&(null!=ce[t].parentLocale?(ce[t]=ce[t].parentLocale,t===fe()&&fe(t)):null!=ce[t]&&delete ce[t]);return ce[t]},i.locales=function(){return M(ce)},i.weekdaysShort=function(t,e,n){return Nn(t,e,n,"weekdaysShort")},i.normalizeUnits=P,i.relativeTimeRounding=function(t){return void 0===t?ri:"function"==typeof t&&(ri=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==oi[t]&&(void 0===e?oi[t]:(oi[t]=e,"s"===t&&(oi.ss=e-1),!0))},i.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=Sn,i.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"},i}()},915:t=>{"use strict";t.exports=JSON.parse('{"http://www.xbrl.org/2009/utr":{"acre":{"n":"Acre","s":"a"},"sqft":{"n":"Square Foot","s":"ft²"},"sqmi":{"n":"Square Mile","s":"mi²"},"sqyd":{"n":"Square Yard","s":"yd²"},"Boe":{"n":"Barrel of Oil Equivalent","s":"Boe"},"Btu":{"n":"British Thermal Unit","s":"BTU"},"ft_lb":{"n":"Foot-Pound","s":"ft-lb"},"MBoe":{"n":"Thousand Barrels of Oil Equivalent","s":"MBoe"},"Mcfe":{"n":"Thousand Cubic Foot Equivalent","s":"Mcfe"},"MMBoe":{"n":"Millions of Barrels of Oil Equivalent","s":"MMBoe"},"MMBTU":{"n":"Millions of BTU","s":"MMBTU"},"ft":{"n":"Foot","s":"ft"},"in":{"n":"Inch","s":"in"},"mi":{"n":"Mile","s":"mi"},"nmi":{"n":"Nautical Mile","s":"nmi"},"yd":{"n":"Yard","s":"yd"},"lb":{"n":"Pound","s":"lb"},"oz":{"n":"Ounce","s":"oz"},"ozt":{"n":"Troy Ounce","s":"ozt"},"T":{"n":"Ton","s":"T"},"hp":{"n":"Horsepower","s":"hp"},"bbl":{"n":"Barrel","s":"bbl"},"ft3":{"n":"Cubic Foot","s":"ft³"},"gal":{"n":"Gallon","s":"gal"},"MBbls":{"n":"Thousand Barrels","s":"MBbls"},"Mcf":{"n":"Thousands Cubic Feet","s":"Mcf"},"MMBbls":{"n":"Million Barrels","s":"MMBbls"},"MMcf":{"n":"Millions Cubic Feet","s":"MMcf"},"Cal":{"n":"Calorie","s":"Cal"},"t":{"n":"Tonne","s":"t"},"B":{"n":"Byte","s":"B"},"GB":{"n":"Gigabyte","s":"GB"},"kB":{"n":"Kilobyte","s":"kB"},"MB":{"n":"Megabyte","s":"MB"},"TB":{"n":"Terabyte","s":"TB"},"ha":{"n":"Hectare","s":"ha"},"sqkm":{"n":"Square km","s":"km²"},"sqm":{"n":"Square metre","s":"m²"},"A":{"n":"Ampere","s":"A"},"J":{"n":"Joule","s":"J"},"kJ":{"n":"Kilojoule","s":"kJ"},"kWh":{"n":"Kilowatt-Hours","s":"kWh"},"mJ":{"n":"mJ","s":"mJ"},"MWh":{"n":"Megawatt-Hour","s":"MWh"},"V":{"n":"Volt","s":"V"},"Hz":{"n":"Hertz","s":"Hz"},"cm":{"n":"Centimetre","s":"cm"},"dm":{"n":"Decimetre","s":"dm"},"km":{"n":"Kilometre","s":"km"},"m":{"n":"Metre","s":"m"},"mm":{"n":"Millimetre","s":"mm"},"g":{"n":"Gram","s":"g"},"kg":{"n":"Kilogram","s":"kg"},"GW":{"n":"Gigawatt","s":"GW"},"kW":{"n":"Kilowatt","s":"kW"},"MW":{"n":"Megawatt","s":"MW"},"TW":{"n":"Terawatt","s":"TW"},"W":{"n":"Watt","s":"W"},"kV":{"n":"Kilovolt","s":"kV"},"l":{"n":"Litre","s":"l"},"m3":{"n":"Cubic Metre","s":"m³"},"bu":{"n":"Bushel","s":"bu"},"aft":{"n":"Acre-Foot","s":"acre ft"},"Rate":{"n":"Rate"},"Y":{"n":"Year","s":"yr"},"M":{"n":"Month","s":"mo"},"D":{"n":"Day","s":"d"},"H":{"n":"Hour","s":"h"},"MM":{"n":"Minute","s":"m"},"S":{"n":"Second","s":"s"},"MV":{"n":"Megavolt","s":"MV"},"GV":{"n":"Gigavolt","s":"GV"},"Bcf":{"n":"Billions of cubic feet","s":"Bcf"},"Tcf":{"n":"Trillions of cubic feet","s":"Tcf"},"GWh":{"n":"Gigawatt-Hour","s":"GWh"},"TWh":{"n":"Terawatt-Hour","s":"TWh"},"Q":{"n":"Quarter","s":"qtr"},"WK":{"n":"Week","s":"wk"},"MMcfe":{"n":"Million Cubic Foot Equivalent","s":"MMcfe"},"Bcfe":{"n":"Billion Cubic Foot Equivalent","s":"Bcfe"},"Tcfe":{"n":"Trillion Cubic Foot Equivalent","s":"Tcfe"},"kT":{"n":"Thousand Tons","s":"kT"},"MT":{"n":"Million Tons","s":"MT"},"GT":{"n":"Billion Tons","s":"GT"},"kt":{"n":"Kilotonne","s":"kt"},"Mt":{"n":"Megatonne","s":"Mt"},"Gt":{"n":"Gigatonne","s":"Gt"},"MWM":{"n":"Megawatt-Month","s":"MW-M"},"GWM":{"n":"Gigawatt-Month","s":"GW-M"},"Celsius":{"n":"Celsius","s":"°C"},"K":{"n":"Kelvin","s":"K"},"F":{"n":"Fahrenheit","s":"°F"},"Pa":{"n":"Pascal","s":"Pa"},"Bar":{"n":"Bar","s":"bar"},"psi":{"n":"Pounds Per Square Inch","s":"psi"},"atm":{"n":"Standard Atmosphere","s":"atm"},"N":{"n":"Newton","s":"N"},"var":{"n":"Volt-ampere reactive","s":"var"},"VA":{"n":"Volt-ampere","s":"VA"},"Wh":{"n":"Watt-Hours","s":"Wh"},"VAh":{"n":"Volt-ampere-hours","s":"VAh"},"Ah":{"n":"Ampere Hours","s":"Ah"},"C":{"n":"Coulomb","s":"C"},"Degree":{"n":"Degree","s":"°"},"rad":{"n":"Radian","s":"rad"},"dth":{"n":"Dekatherm","s":"dth"},"MWd":{"n":"Megawatt-Day","s":"MWd"},"GJ":{"n":"Gigajoule","s":"GJ"},"MJ":{"n":"Megajoule","s":"MJ"},"TJ":{"n":"Terajoule","s":"TJ"},"PB":{"n":"Petabyte","s":"PB"},"Mvar":{"n":"Million Volt-ampere reactive","s":"Mvar"},"MVA":{"n":"MegaVolt-ampere","s":"MVA"},"tCO2e":{"n":"Metric tonnes of CO2 equivalent","s":"tCO2e"},"ktCO2e":{"n":"Thousand metric tonnes of CO2 equivalent","s":"ktCO2e"},"MtCO2e":{"n":"Million metric tonnes of CO2 equivalent","s":"MtCO2e"},"GtCO2e":{"n":"Thousand million metric tonnes of CO2 equivalent","s":"GtCO2e"}},"http://www.xbrl.org/2003/iso4217":{"AED":{"n":"U.A.E. dirham","s":"د.إ"},"AFN":{"n":"Afghan afghani","s":"؋"},"ALL":{"n":"Albanian lek","s":"L"},"AMD":{"n":"Armenian dram","s":"֏"},"ANG":{"n":"Netherlands Antillean guilder","s":"NAƒ"},"AOA":{"n":"Angolan kwanza","s":"Kz"},"ARS":{"n":"Argentine peso","s":"$"},"AUD":{"n":"Australian dollar","s":"$"},"AWG":{"n":"Aruban florin","s":"ƒ"},"AZN":{"n":"Azerbaijani manat","s":"₼"},"BAM":{"n":"Bosnia and Herzegovina convertible mark","s":"KM"},"BBD":{"n":"Barbados dollar","s":"$"},"BDT":{"n":"Bangladeshi taka","s":"৳"},"BGN":{"n":"Bulgarian lev","s":"лв"},"BHD":{"n":"Bahraini dinar","s":".د.ب"},"BIF":{"n":"Burundian franc","s":"FBu"},"BMD":{"n":"Bermuda Dollar","s":"$"},"BND":{"n":"Brunei dollar","s":"$"},"BOB":{"n":"Boliviano","s":"Bs."},"BOV":{"n":"Bolivian Mvdol"},"BRL":{"n":"Brazilian real","s":"R$"},"BSD":{"n":"Bahamian dollar","s":"$"},"BTN":{"n":"Bhutanese ngultrum","s":"Ch."},"BWP":{"n":"Botswana pula","s":"P"},"BYN":{"n":"Belarusian ruble","s":"Br"},"BYR":{"n":"Belarusian ruble","s":"Br"},"BZD":{"n":"Belize dollar","s":"$"},"CAD":{"n":"Canadian dollar","s":"$"},"CDF":{"n":"Congolese franc","s":"CF"},"CHE":{"n":"WIR Bank"},"CHF":{"n":"Swiss franc","s":"SFr"},"CHW":{"n":"WIR Bank"},"CLF":{"n":"Unidad de Fomento"},"CLP":{"n":"Chilean peso","s":"$"},"CNY":{"n":"Chinese yuan","s":"¥"},"COP":{"n":"Colombian peso","s":"$"},"COU":{"n":"Unidad de Valor Real"},"CRC":{"n":"Costa Rican colon","s":"₡"},"CUC":{"n":"Cuban convertible peso","s":"CUC$"},"CUP":{"n":"Cuban peso","s":"$MN"},"CVE":{"n":"Cape Verde escudo","s":"Esc"},"CZK":{"n":"Czech koruna","s":"Kč"},"DJF":{"n":"Djiboutian franc","s":"Fdj"},"DKK":{"n":"Danish krone","s":"kr"},"DOP":{"n":"Dominican peso","s":"$"},"DZD":{"n":"Algerian dinar","s":"دج"},"EEK":{"n":"Estonian kroon"},"EGP":{"n":"Egyptian pound","s":"ج.م."},"ERN":{"n":"Eritrean nakfa","s":"Nfk"},"ETB":{"n":"Ethiopian birr","s":"Br"},"EUR":{"n":"Euro","s":"€"},"FJD":{"n":"Fiji dollar","s":"$"},"FKP":{"n":"Falkland Islands pound","s":"£"},"GBP":{"n":"Pound sterling","s":"£"},"GEL":{"n":"Georgian lari","s":"ლ"},"GHS":{"n":"Ghanaian cedi","s":"GH₵"},"GIP":{"n":"Gibraltar pound","s":"£"},"GMD":{"n":"Gambian dalasi","s":"D"},"GNF":{"n":"Guinean franc","s":"FG"},"GTQ":{"n":"Guatemalan quetzal","s":"Q"},"GYD":{"n":"Guyanese dollar","s":"$"},"HKD":{"n":"Hong Kong dollar","s":"$"},"HNL":{"n":"Honduran lempira","s":"L"},"HRK":{"n":"Croatian kuna","s":"kn"},"HTG":{"n":"Haitian gourde","s":"G"},"HUF":{"n":"Hungarian forint","s":"Ft"},"IDR":{"n":"Indonesian rupiah","s":"Rp"},"ILS":{"n":"Israeli new sheqel","s":"₪"},"INR":{"n":"Indian rupee","s":"₨"},"IQD":{"n":"Iraqi dinar","s":"د.ع"},"IRR":{"n":"Iranian rial","s":"﷼"},"ISK":{"n":"Icelandic króna","s":"kr"},"JMD":{"n":"Jamaican dollar","s":"$"},"JOD":{"n":"Jordanian dinar","s":"JD"},"JPY":{"n":"Japanese yen","s":"¥"},"KES":{"n":"Kenyan shilling","s":"Ksh"},"KGS":{"n":"Kyrgyzstani som","s":"сом"},"KHR":{"n":"Cambodian riel","s":"៛"},"KMF":{"n":"Comoro franc","s":"₣"},"KPW":{"n":"North Korean won","s":"₩"},"KRW":{"n":"South Korean won","s":"₩"},"KWD":{"n":"Kuwaiti dinar","s":"د.ك"},"KYD":{"n":"Cayman Islands dollar","s":"$"},"KZT":{"n":"Kazakhstani tenge","s":"₸"},"LAK":{"n":"Lao kip","s":"₭"},"LBP":{"n":"Lebanese pound","s":"LL"},"LKR":{"n":"Sri Lanka rupee","s":"රු"},"LRD":{"n":"Liberian dollar","s":"$"},"LSL":{"n":"Lesotho loti","s":"M"},"LTL":{"n":"Lithuanian litas","s":"Lt"},"LVL":{"n":"Latvian lats","s":"Ls"},"LYD":{"n":"Libyan dinar","s":"ل.د"},"MAD":{"n":"Moroccan dirham","s":"د.م."},"MDL":{"n":"Moldovan leu"},"MGA":{"n":"Malagasy ariary","s":"Ar"},"MKD":{"n":"Macedonian denar","s":"ден"},"MMK":{"n":"Myanma kyat","s":"K"},"MNT":{"n":"Mongolian tugrik","s":"₮"},"MOP":{"n":"Macanese pataca","s":"MOP$"},"MRO":{"n":"Mauritanian ouguiya","s":"UM"},"MRU":{"n":"Mauritanian ouguiya","s":"UM"},"MUR":{"n":"Mauritian rupee","s":"₨"},"MVR":{"n":"Maldivian rufiyaa","s":"Rf."},"MWK":{"n":"Malawian kwacha","s":"MK"},"MXN":{"n":"Mexican peso","s":"$"},"MXV":{"n":"Mexican UDI"},"MYR":{"n":"Malaysian ringgit","s":"RM"},"MZN":{"n":"Mozambican metical","s":"MT"},"NAD":{"n":"Namibian dollar","s":"$"},"NGN":{"n":"Nigerian naira","s":"₦"},"NIO":{"n":"Cordoba oro","s":"C$"},"NOK":{"n":"Norwegian krone","s":"kr"},"NPR":{"n":"Nepalese rupee","s":"₨"},"NZD":{"n":"New Zealand dollar","s":"$"},"OMR":{"n":"Omani rial","s":"ر.ع."},"PAB":{"n":"Panamanian balboa","s":"B/."},"PEN":{"n":"Peruvian nuevo sol","s":"S/"},"PGK":{"n":"Papua New Guinean kina","s":"K"},"PHP":{"n":"Philippine peso","s":"₱"},"PKR":{"n":"Pakistani rupee","s":"₨"},"PLN":{"n":"Polish złoty","s":"zł"},"PYG":{"n":"Paraguayan guaraní","s":"₲"},"QAR":{"n":"Qatari rial","s":"ر.ق"},"RON":{"n":"Romanian new leu"},"RSD":{"n":"Serbian dinar","s":"дин"},"RUB":{"n":"Rouble","s":"₽"},"RWF":{"n":"Rwandan franc","s":"FRw"},"SAR":{"n":"Riyal","s":"ر.س"},"SBD":{"n":"Solomon Islands dollar","s":"$"},"SCR":{"n":"Seychelles rupee","s":"SRe"},"SDG":{"n":"Sudanese pound"},"SEK":{"n":"Swedish krona","s":"kr"},"SGD":{"n":"Singapore dollar","s":"$"},"SHP":{"n":"Saint Helena pound","s":"£"},"SLL":{"n":"Leone","s":"Le"},"SLE":{"n":"Leone","s":"Le"},"SOS":{"n":"Somali shilling","s":"Sh.So"},"SRD":{"n":"Surinamese dollar","s":"$"},"SSP":{"n":"South Sudanese pound"},"STD":{"n":"São Tomé and Príncipe dobra","s":"Db"},"STN":{"n":"Dobra","s":"Db"},"SVC":{"n":"Salvadoran colón","s":"₡"},"SYP":{"n":"Syrian pound","s":"LS"},"SZL":{"n":"Lilangeni","s":"E"},"THB":{"n":"Baht","s":"฿"},"TJS":{"n":"Tajikistani somoni"},"TMT":{"n":"Turkmenistani manat"},"TND":{"n":"Tunisian dinar","s":"د.ت"},"TOP":{"n":"Pa\'anga","s":"T$"},"TRY":{"n":"Turkish lira","s":"₺"},"TTD":{"n":"Trinidad and Tobago dollar","s":"$"},"TWD":{"n":"New Taiwan dollar","s":"$"},"TZS":{"n":"Tanzanian shilling","s":"Tsh"},"UAH":{"n":"Hryvnia","s":"₴"},"UGX":{"n":"Ugandan shilling","s":"USh"},"USD":{"n":"US Dollar","s":"$"},"USN":{"n":"Next Day US Dollar","s":"$"},"USS":{"n":"Same Day US Dollar","s":"$"},"UYI":{"n":"Uruguay Peso en Unidades Indexadas"},"UYU":{"n":"Uruguayan peso","s":"$"},"UYW":{"n":"Unidad Previsional","s":"UP"},"UZS":{"n":"Som"},"VEB":{"n":"Venezualan Bolivar","s":"Bs."},"VEF":{"n":"Venezuelan Bolivar Fuerte","s":"Bs.F"},"VES":{"n":"Bolívar Soberano","s":"Bs.S"},"VED":{"n":"Bolívar Soberano","s":"Bs.D"},"VND":{"n":"đồng","s":"₫"},"VUV":{"n":"Vanuatu vatu","s":"VT"},"WST":{"n":"Samoan tala","s":"WS$"},"XAF":{"n":"CFA Franc BEAC"},"XAG":{"n":"Silver"},"XAU":{"n":"Gold"},"XBA":{"n":"EURCO"},"XBB":{"n":"E.M.U.-6"},"XBC":{"n":"E.U.A.-9"},"XBD":{"n":"E.U.A.-17"},"XCD":{"n":"East Caribbean dollar","s":"$"},"XDR":{"n":"Special Drawing Rights"},"XFU":{"n":"UIC Franc"},"XOF":{"n":"CFA Franc BCEAO"},"XPD":{"n":"Palladium"},"XPF":{"n":"CFP Franc"},"XPT":{"n":"Platinum"},"XSU":{"n":"SUCRE","s":"Sucre"},"XUA":{"n":"ADB Unit of Account"},"YER":{"n":"Yemeni rial"},"ZAR":{"n":"South African rand","s":"R"},"ZMK":{"n":"Zambian kwacha","s":"ZK"},"ZMW":{"n":"Zambian kwacha","s":"ZK"},"ZWG":{"n":"Zimbabwe Gold","s":"ZiG"},"ZWL":{"n":"Zimbabwe dollar","s":"$"}},"http://www.xbrl.org/2003/instance":{"pure":{"n":"pure"},"shares":{"n":"Share"}}}')},366:t=>{"use strict";t.exports={}},768:t=>{"use strict";t.exports=JSON.parse('{"unitFormatGBP":"£","unitFormatUSD":"UD$","unitFormatEUR":"€","unitFormatMXN":"MXN$","unitFormatUAH":"₴","centsUSD":"cents","centsEUR":"cents","centsAUD":"cents","centsZAR":"cents","centsMXN":"cents","centsGBP":"ceiniogau"}')},220:t=>{"use strict";t.exports=JSON.parse('{"booleanItemType":"","dateItemType":"","stringItemType":"Llinyn","monetaryItemType":"Arianol","decimalItemType":"Degol","pureItemType":"Pur","sharesItemType":"Cyfranddaliadau"}')},800:t=>{"use strict";t.exports=JSON.parse('{"label":"Label Safonol","documentation":"Label Dogfennaeth","terseLabel":"Label tense","verboseLabel":"Label Verbose","positiveLabel":"Label Cadarnhaol","positiveTerseLabel":"Label Terse Positif","positiveVerboseLabel":"Label Verbose positif","negativeLabel":"Label negyddol","negativeTerseLabel":"Label Terse negyddol","negativeVerboseLabel":"Label Verbose negyddol","zeroLabel":"Label sero","zeroTerseLabel":"Label Sero Terse","zeroVerboseLabel":"Label Verbose Sero","totalLabel":"Label Cyfanswm","periodStartLabel":"Label Dechrau Cyfnod","periodEndLabel":"Label Diwedd Cyfnod","definitionGuidance":"Arweiniad Diffiniad","disclosureGuidance":"Canllawiau Datgelu","presentationGuidance":"Arweiniad Cyflwyno","measurementGuidance":"Canllawiau Mesur","commentaryGuidance":"Arweiniad Sylwadau","exampleGuidance":"Arweiniad Enghreifftiol"}')},10:t=>{"use strict";t.exports=JSON.parse('{"Name":"Enw","Number":"Rhif","IssueDate":"Dyddiad Cyhoeddi","Paragraph":"Paragraff","Subparagraph":"Is-baragraff","URI":"URI","URIDate":"Dyddiad URI","Note":"Nodyn"}')},407:t=>{"use strict";t.exports=JSON.parse('{"0":"rhai","1":"degau","2":"cannoedd","3":"miloedd","4":"deg mil","5":"can miloedd","6":"miliynau","7":"deg miliwn","8":"can miliynau","9":"biliynau","-3":"miloedd","-2":"canfedau","-1":"degfedau"}')},711:t=>{"use strict";t.exports=JSON.parse('{"anchoring":"Mae perthnasoedd angori yn darparu cysylltiadau rhwng cysyniadau ymestyn cwmni-benodol a chysyniadau safonol a ddiffinnir yn y tacsonomeg sylfaenol.","dimension":"Mae dimensiwn yn nodwedd gymhwyso a ddefnyddir i ddiffinio pwynt data yn unigryw.","conceptsCount":"Nifer y cysyniadau unigryw a ddefnyddiwyd yn yr adroddiad hwn.","dimensionsCount":"Nifer y dimensiynau unigryw a ddefnyddir yn yr adroddiad hwn.","fileSummary":"Rhestr o\'r ffeiliau sydd yn y ffeilio.","membersCount":"Nifer yr aelodau dimensiwn unigryw a ddefnyddiwyd yn yr adroddiad hwn.","scale":"Ar gyfer ffeithiau rhifol, y swm a ddefnyddir i raddio\'r gwerth a gyflwynir.","accuracy":"Y cywirdeb yr adroddir ffaith rifol iddo.","concept":"Elfen sy\'n diffinio ystyr ffaith yw cysyniad.","period":"Y cyfnod yr adroddir y ffaith hon yn ei erbyn. Gall hyn fod yn amrantiad neu\'n hyd, yn dibynnu ar natur y cysyniad.","references":"Gwybodaeth am y diffiniad awdurdodol o gysyniad. Mae cyfeiriadau fel arfer yn cyfeirio at safon gyfrifyddu.","calculations":"Perthnasoedd cyfrifo rhwng ffeithiau rhifol mewn adroddiad. Gellir defnyddio cydberthnasau cyfrifo i olrhain sut mae ffigurau mewn adroddiad treigl, a gellir eu defnyddio hefyd i wirio cysondeb y niferoedd a adroddir.","hiddenFacts":"Nifer y ffeithiau cudd yn yr adroddiad hwn. Mae ffeithiau cudd yn ffeithiau a adroddir fel data XBRL, ond nad ydynt yn cael eu dangos yn yr adroddiad a gyflwynir.","mandatoryFacts":"Nifer y ffeithiau gorfodol yn yr adroddiad hwn. Mae ffeithiau gorfodol yn ffeithiau y mae\'n ofynnol i\'r awdurdodaeth ffeilio adrodd arnynt.","namespace":"Defnyddir bylchau enw i rannu cysyniad, dimensiwn a diffiniadau aelodau. Os bydd adroddiad yn defnyddio unrhyw gysyniadau, dimensiynau neu aelodau sy\'n benodol i gwmni, caiff y rhain eu diffinio mewn gofod enw ar wahân. Gellir defnyddio bylchau enw hefyd i rannu tacsonomegau mawr."}')},474:t=>{"use strict";t.exports=JSON.parse('{"calculation":{"calculated-total":"Wedi\'i gyfrifo","concept":"Cysyniad","consistent-duplicate-facts-present":"{{nfacts}} ffeithiau dyblyg cyson yn bresennol","does-not-bind":"Nid yw cyfrifo yn rhwymo","inconsistent-duplicate-facts-present":"{{nfacts}} ffeithiau dyblyg anghyson yn bresennol","maximum":"Uchafswm","minimum":"Isafswm","reported-total":"Adroddwyd","reported-value":"Gwerth a adroddwyd","useCalculations11":"Defnyddiwch Gyfrifiadau v1.1"},"chart":{"comparisonChart":""},"common":{"accuracyInfinite":"Anfeidrol drachywiredd","none":"Dim","notApplicable":"n/a","unscaled":"Heb raddfa","unspecified":"Amhenodol"},"dialog":{"close":""},"factDetails":{"accuracy":"Cywirdeb","balance":"","calculationIsConsistent":"Mae\'r cyfrifiad yn gyson","calculationIsInconsistent":"Mae\'r cyfrifiad yn anghyson","calculationUnchecked":"Nid yw\'r cyfrifiad wedi\'i wirio oherwydd presenoldeb ffeithiau dyblyg","calculationUncheckedIncorrectVersion":"Cyfrifiad 1.1 perthnasau heb eu gwirio yn y modd cyfrifo etifeddiaeth","change":"Newid","changeFromIn":"Oddiwrth {{from}} mewn ","changePercentageDecrease":"{{decrease}}gostyngiad % ar ","changePercentageIncrease":"{{increase}}cynnydd % ar ","concept":"Cysyniad","datatype":"Math","date":"Dyddiad","dimensions":"Dimensiynau","duplicatesCount":"{{current}} o {{total}}","entity":"Endid","factValue":"Gwerth Ffaith","nonNumericFact":"ffaith nad yw\'n rhifol","noPriorFactInThisReport":"Dim ffaith flaenorol yn yr adroddiad hwn","noUnit":"<NOUNIT>","properties":"Priodweddau","scale":"Graddfa","viewCalculationDetails":"Gweld manylion y cyfrifiad"},"footnotes":{"footnote":"Troednodyn"},"inspector":{"anchoring":"Angori","associatedFacts":"Ffeithiau cysylltiedig","calculationDetails":"Manylion cyfrifo","calculations":"Cyfrifiadau","concealedFact":"Ffaith guddiedig","conceptType":"Math o Gysyniad","contributor":"Cyfranwr","datatypes":"Mathau data","dimensions":"Math Dimensiwn","documentOutline":"Amlinelliad o\'r ddogfen","documentSummary":"Crynodeb o\'r ddogfen","explicitDimension":"Dimensiynau Penodol","fact-groups":"Adrannau","factProperties":"Priodweddau Ffaith","factSearch":"Chwiliad Ffeithiau","factValue":"Gwerth Ffaith","footnoteProperties":"Priodweddau Troednodyn","footnotes":"Troednodiadau","hidden":"Gudd","hiddenFact":"Ffaith Gudd","highlight":"Uchafbwynt","initializing":"Cychwyn","ixbrlInspector":"","labels":"","loadingViewer":"Wrthi\'n llwytho Gwyliwr iXBRL","mandatoryFacts":"Dim ond Ffeithiau Gorfodol","namespaces":"Gofodau Enw","narrowerAnchor":"Angorau culach","negative":"Negyddol","nextTag":"Tag nesaf","noFactSelected":"Dim Ffaith wedi\'i Dewis","numericOption":"Rhifol","outlineUnavailable":"Amlinelliad Ddim ar gael","period":"Cyfnod","positive":"Cadarnhaol","previousTag":"Tag blaenorol","printDocument":"Argraffu Dogfen","references":"Cyfeiriadau","reset":"Ailosod","scales":"Graddfeydd","search":"Chwiliwch","searchReport":"","searchResults":"","searchTitle":"Chwiliwch","settingsMenu":"","showAnalysisChart":"","showTextOnly":"Dangos testun yn unig","summary":{"fact":{"header":"Crynodeb o Ffeithiau","hidden":"Ffeithiau cudd","mandatory":"Ffeithiau Gorfodol","total":"Cyfanswm y Ffeithiau"},"file":{"calculations":"Cronfeydd Cyswllt Cyfrifo","definitions":"Diffiniad Basau Cyswllt","header":"Crynodeb Ffeil","inline":"Dogfennau Mewnol","labels":"Label Linkbases","other":"Cronfeydd Cyswllt Eraill","presentation":"Basau Cyswllt Cyflwyniad","references":"Basau Cyswllt Cyfeiriad","schemas":"Sgemâu"},"reportCreation":"Creu Adroddiad","tag":{"colConcepts":"Cysyniadau","colDimensions":"Dimensiynau","colMembers":"Aelodau","colNamespace":"Gofod Enw","colTotal":"Cyfanswm","header":"Crynodeb Tag","rowTotal":"Cyfanswm"}},"summation":"Crynhoad","targetDocument":"Dogfen Darged","textOption":"Testun","typedDimensions":"Dimensiynau wedi\'u Teipio","units":"Unedau","validationCode":"Cod","validationMessage":"Neges","validationResults":"Canlyniadau dilysu","validationSeverity":"Difrifoldeb","visibility":"Gwelededd","visible":"Gweladwy","widerAnchor":"Angor ehangach","xbrlGlossaryOpensInNewTab":"Geirfa XBRL (yn agor mewn tab newydd)"},"menu":{"actions":"Gweithredoedd","applicationLanguage":"Iaith Cais","documentLanguage":"Iaith Dogfen","help":"Cymorth","options":"Opsiynau","contactUs":"Cysylltwch â Ni","survey":"Arolwg","userGuide":"Canllaw Defnyddiwr"},"search":{"concealedFact":"Ffaith guddiedig","dataTypeConflictWarning":"","default":"rhagosodedig","filter":"Hidlo","hiddenFact":"Ffaith gudd","matchingFactsSummary":"","noMatchFound":"Heb ganfod cyfatebiaeth","reset":"","selected":"dethol","showMoreResults":"Dangos mwy o ganlyniadau","toggleFilterControls":"","tryAgainDifferentKeywords":"Ceisiwch eto gyda geiriau allweddol gwahanol","viewFact":""},"toolbar":{"homePage":"Hafan","toggleDarkMode":"Toggle modd tywyll","xbrlElements":"Elfennau XBRL"},"viewer":{"ixbrlDocumentView":""}}')},531:t=>{"use strict";t.exports=JSON.parse('{"debit":"Debit","credit":"Credit"}')},85:t=>{"use strict";t.exports=JSON.parse('{"unitFormatGBP":"£","unitFormatUSD":"US $","unitFormatEUR":"€","unitFormatMXN":"MXN $","unitFormatUAH":"₴","centsUSD":"cents","centsEUR":"cents","centsAUD":"cents","centsZAR":"cents","centsMXN":"cents","centsGBP":"pence"}')},335:t=>{"use strict";t.exports=JSON.parse('{"booleanItemType":"Boolean","dateItemType":"Date","stringItemType":"String","monetaryItemType":"Monetary","decimalItemType":"Decimal","pureItemType":"Pure","sharesItemType":"Shares"}')},113:t=>{"use strict";t.exports=JSON.parse('{"label":"Standard Label","documentation":"Documentation Label"}')},343:t=>{"use strict";t.exports=JSON.parse('{"Name":"Name","Number":"Number","IssueDate":"IssueDate","Paragraph":"Paragraph","Subparagraph":"Subparagraph","URI":"URI","URIDate":"URIDate","Note":"Note"}')},292:t=>{"use strict";t.exports=JSON.parse('{"0":"ones","1":"tens","2":"hundreds","3":"thousands","4":"ten thousands","5":"hundred thousands","6":"millions","7":"ten millions","8":"hundred millions","9":"billions","-3":"thousandths","-2":"hundredths","-1":"tenths"}')},694:t=>{"use strict";t.exports=JSON.parse('{"anchoring":"Anchoring relationships provide links between company-specific extension concepts and standard concepts defined in the base taxonomy.","dimension":"A dimension is a qualifying characteristic that is used to uniquely define a data point.","conceptsCount":"The number of unique concepts used in this report.","dimensionsCount":"The number of unique dimensions used in this report.","fileSummary":"A list of the files that are in the filing.","membersCount":"The number of unique dimension members used in this report.","scale":"For numeric facts, the amount by which the presented value is scaled.","accuracy":"The accuracy to which a numeric fact is reported.","concept":"A concept is an element that defines the meaning of a fact.","period":"The period against which this fact is reported. This can be either an instant or a duration, depending on the nature of the concept.","references":"Information about the authoritative definition of a concept. References typically refer to an accounting standard.","calculations":"Calculation relationships between numeric facts in a report. Calculation relationships can be used to trace how figures in a report roll-up, and can also be used to check the consistency of the reported numbers.","hiddenFacts":"The number of hidden facts in this report. Hidden facts are facts that are reported as XBRL data, but are not shown in the presented report.","mandatoryFacts":"The number of mandatory facts in this report. Mandatory facts are facts that are required to be reported by the filing jurisdiction.","namespace":"Namespaces are used to partition concept, dimension and member definitions. If a report uses any company-specific concepts, dimensions or members, these will be defined in a separate namespace. Namespaces can also be used to partition large taxonomies."}')},997:t=>{"use strict";t.exports=JSON.parse('{"calculation":{"calculated-total":"Calculated","concept":"Concept","consistent-duplicate-facts-present":"{{nfacts}} consistent duplicate facts present","does-not-bind":"Calculation does not bind","inconsistent-duplicate-facts-present":"{{nfacts}} inconsistent duplicate facts present","maximum":"Maximum","minimum":"Minimum","reported-total":"Reported","reported-value":"Reported value","useCalculations11":"Use Calculations v1.1"},"chart":{"comparisonChart":"Comparison chart"},"common":{"accuracyInfinite":"Infinite precision","none":"None","notApplicable":"n/a","unscaled":"Unscaled","unspecified":"Unspecified"},"dialog":{"close":"close"},"factDetails":{"accuracy":"Accuracy","balance":"Balance","calculationIsConsistent":"Calculation is consistent","calculationIsInconsistent":"Calculation is inconsistent","calculationUnchecked":"Calculation not checked due to presence of duplicate facts","calculationUncheckedIncorrectVersion":"Calculation 1.1 relationships not checked in legacy calculation mode","change":"Change","changeFromIn":"From {{from}} in ","changePercentageDecrease":"{{decrease}}% decrease on ","changePercentageIncrease":"{{increase}}% increase on ","concept":"Concept","datatype":"Type","date":"Date","dimensions":"Dimensions","duplicatesCount":"{{current}} of {{total}}","entity":"Entity","factValue":"Fact Value","nonNumericFact":"non-numeric fact","noPriorFactInThisReport":"No prior fact in this report","noUnit":"<NOUNIT>","properties":"Properties","scale":"Scale","viewCalculationDetails":"View calculation details"},"footnotes":{"footnote":"Footnote"},"inspector":{"anchoring":"Anchoring","associatedFacts":"Associated facts","calculationDetails":"Calculation details","calculations":"Calculations","concealedFact":"Concealed fact","conceptType":"Concept Type","contributor":"Contributor","datatypes":"Types","dimensions":"Dimension Type","documentOutline":"Document outline","documentSummary":"Document summary","explicitDimension":"Explicit Dimensions","fact-groups":"Sections","factProperties":"Fact Properties","factSearch":"Fact Search","factValue":"Fact Value","footnoteProperties":"Footnote Properties","footnotes":"Footnotes","hidden":"Hidden","hiddenFact":"Hidden Fact","highlight":"Highlight","initializing":"Initializing","ixbrlInspector":"iXBRL Inspector","labels":"","loadingViewer":"Loading iXBRL Viewer","mandatoryFacts":"Only Mandatory Facts","namespaces":"Namespaces","narrowerAnchor":"Narrower anchors","negative":"Negative","nextTag":"Next tag","noFactSelected":"No Fact Selected","numericOption":"Numeric","outlineUnavailable":"Outline Unavailable","period":"Period","positive":"Positive","previousTag":"Previous tag","printDocument":"Print Document","references":"References","reset":"Reset","scales":"Scales","search":"Search","searchReport":"Search iXBRL Report","searchResults":"Search Results","searchTitle":"Search","settingsMenu":"Settings Menu","showAnalysisChart":"Show analysis chart","showTextOnly":"Show text only","summary":{"fact":{"header":"Fact Summary","hidden":"Hidden facts","mandatory":"Mandatory facts","total":"Total facts"},"file":{"calculations":"Calculation Linkbases","definitions":"Definition Linkbases","header":"File Summary","inline":"Inline Documents","labels":"Label Linkbases","other":"Other Linkbases","presentation":"Presentation Linkbases","references":"Reference Linkbases","schemas":"Schemas"},"reportCreation":"Report creation","tag":{"colConcepts":"Concepts","colDimensions":"Dimensions","colMembers":"Members","colNamespace":"Namespace","colTotal":"Total","header":"Tag Summary","rowTotal":"Total"}},"summation":"Summation","targetDocument":"Target Document","textOption":"Text","typedDimensions":"Typed Dimensions","units":"Units","validationCode":"Code","validationMessage":"Message","validationResults":"Validation results","validationSeverity":"Severity","visibility":"Visibility","visible":"Visible","widerAnchor":"Wider anchor","xbrlGlossaryOpensInNewTab":"XBRL Glossary (opens in new tab)"},"menu":{"actions":"Actions","applicationLanguage":"Application Language","documentLanguage":"Document Language","help":"Help","options":"Options","contactUs":"Contact Us","survey":"Survey","userGuide":"User Guide"},"search":{"concealedFact":"Concealed fact","dataTypeConflictWarning":"Warning: selection conflicts with Concept Type filter","default":"default","filter":"Filter","hiddenFact":"Hidden fact","matchingFactsSummary":"Showing {{nMatches}} of {{nTotal}} facts","noMatchFound":"No match found","reset":"Reset","selected":"selected","showMoreResults":"Show more results","toggleFilterControls":"Toggler filter controls","tryAgainDifferentKeywords":"Try again with different keywords","viewFact":"View fact"},"toolbar":{"homePage":"Home","toggleDarkMode":"Toggle dark mode","xbrlElements":"XBRL Elements"},"viewer":{"ixbrlDocumentView":"iXBRL Document View"}}')},746:t=>{"use strict";t.exports=JSON.parse('{"debit":"","credit":""}')},476:t=>{"use strict";t.exports=JSON.parse('{"centsUSD":"centavos","centsEUR":"centavos","centsAUD":"centavos","centsZAR":"centavos","centsMXN":"centavos","centsGBP":"centavos"}')},120:t=>{"use strict";t.exports=JSON.parse('{"booleanItemType":"","dateItemType":"","stringItemType":"","monetaryItemType":"","decimalItemType":"","pureItemType":"","sharesItemType":""}')},364:t=>{"use strict";t.exports=JSON.parse('{"label":"Etiqueta estándar","documentation":"Etiqueta de documentación","terseLabel":"Etiqueta concisa","verboseLabel":"Etiqueta verbosa","positiveLabel":"Etiqueta positiva","positiveTerseLabel":"Etiqueta concisa positiva","positiveVerboseLabel":"Etiqueta verbosa positiva","negativeLabel":"Etiqueta negativa","negativeTerseLabel":"Etiqueta concisa negativa","negativeVerboseLabel":"Etiqueta verbosa negativa","zeroLabel":"Etiqueta cero","zeroTerseLabel":"Etiqueta Zero Terse","zeroVerboseLabel":"Etiqueta de verbosidad cero","totalLabel":"Etiqueta total","periodStartLabel":"Etiqueta de inicio del período","periodEndLabel":"Etiqueta de fin de período","definitionGuidance":"Orientación sobre la definición","disclosureGuidance":"Guía de divulgación","presentationGuidance":"Guía de presentación","measurementGuidance":"Guía de medición","commentaryGuidance":"Guía de comentarios","exampleGuidance":"Ejemplo de orientación"}')},6:t=>{"use strict";t.exports=JSON.parse('{"Name":"Nombre","Number":"Número","IssueDate":"Fecha de Emisión","Paragraph":"Párrafo","Subparagraph":"Subpárrafo","URI":"URI","URIDate":"Fecha de URI","Note":"Nota"}')},3:t=>{"use strict";t.exports=JSON.parse('{"0":"unidades","1":"décimos","2":"cientos","3":"miles","4":"diez miles","5":"cien miles","6":"millones","7":"diez millones","8":"cien millones","9":"billones","-3":"milésimos","-2":"centésimos","-1":"décimas"}')},971:t=>{"use strict";t.exports=JSON.parse('{"anchoring":"Las relaciones de anclaje proporcionan vínculos entre los conceptos de extensión específicos de la empresa y los conceptos estándar definidos en la taxonomía base.","dimension":"Una dimensión es una característica calificativa que se utiliza para definir de forma única un punto de datos.","conceptsCount":"TEl número de conceptos únicos utilizados en este informe.","dimensionsCount":"El número de dimensiones únicas utilizadas en este informe.","fileSummary":"Una lista de los archivos que se encuentran en el archivo.","membersCount":"El número de miembros de dimensión únicos utilizados en este informe.","scale":"Para hechos numéricos, la cantidad por la cual se escala el valor presentado.","accuracy":"La precisión con la que se informa un hecho numérico.","concept":"Un concepto es un elemento que define el significado de un hecho.","period":"El período en el que se informa sobre este hecho. Puede ser un instante o una duración, según la naturaleza del concepto.","references":"Información sobre la definición autorizada de un concepto. Las referencias suelen hacer referencia a una norma contable.","calculations":"Relaciones de cálculo entre hechos numéricos en un informe. Las relaciones de cálculo se pueden utilizar para rastrear cómo se acumulan las cifras en un informe y también se pueden utilizar para verificar la coherencia de los números informados.","hiddenFacts":"La cantidad de datos ocultos en este informe. Los datos ocultos son aquellos que se informan como datos XBRL, pero que no se muestran en el informe presentado.","mandatoryFacts":"Número de hechos obligatorios en este informe. Los hechos obligatorios son hechos que la jurisdicción que presenta la solicitud debe informar.","namespace":"Los espacios de nombres se utilizan para dividir definiciones de conceptos, dimensiones y miembros. Si un informe utiliza conceptos, dimensiones o miembros específicos de la empresa, estos se definirán en un espacio de nombres independiente. Los espacios de nombres también se pueden utilizar para dividir taxonomías grandes."}')},702:t=>{"use strict";t.exports=JSON.parse('{"calculation":{"calculated-total":"","concept":"","consistent-duplicate-facts-present":"","does-not-bind":"","inconsistent-duplicate-facts-present":"","maximum":"","minimum":"","reported-total":"","reported-value":"","useCalculations11":""},"chart":{"comparisonChart":""},"common":{"accuracyInfinite":"Precisió infinita","none":"Ninguno","notApplicable":"n/d","unscaled":"Sin escala","unspecified":"Sin especificar"},"dialog":{"close":""},"factDetails":{"accuracy":"Precisión","balance":"","calculationIsConsistent":"","calculationIsInconsistent":"","calculationUnchecked":"","calculationUncheckedIncorrectVersion":"","change":"Cambio","changeFromIn":"Anteriormente {{from}} en ","changePercentageDecrease":"{{decrease}}% menos que en ","changePercentageIncrease":"{{increase}}% más que en ","concept":"Concepto","datatype":"","date":"Fecha","dimensions":"Dimensiones","duplicatesCount":"{{current}} de {{total}}","entity":"Entidad","factValue":"Valor del hecho","nonNumericFact":"","noPriorFactInThisReport":"No hay un hecho previo","noUnit":"Sin unidad","properties":"Características","scale":"Escala","viewCalculationDetails":""},"footnotes":{"footnote":"Nota al pie de página"},"inspector":{"anchoring":"Anclaje","associatedFacts":"Hechos asociados","calculationDetails":"","calculations":"Cálculos","concealedFact":"","conceptType":"Tipo de concepto","contributor":"","datatypes":"Tipos de datos","dimensions":"Tipo de dimensión","documentOutline":"Esquema del documento","documentSummary":"Resumen del documento","explicitDimension":"","fact-groups":"","factProperties":"Propiedades del hecho","factSearch":"Búsqueda de hechos","factValue":"","footnoteProperties":"Propiedades de la nota al pie de página","footnotes":"Notas al pie de página","hidden":"Oculto","hiddenFact":"Hecho oculto","highlight":"Destacar","initializing":"","ixbrlInspector":"","labels":"","loadingViewer":"Preparando el visor iXBRL","mandatoryFacts":"Sólo hechos obligatorios","namespaces":"Espacios de nombres","narrowerAnchor":"Anclaje angosto","negative":"Negativo","nextTag":"","noFactSelected":"Ningún hecho seleccionado","numericOption":"Numérico","outlineUnavailable":"","period":"Periodo","positive":"Positivo","previousTag":"","printDocument":"","references":"Referencias","reset":"Limpiar","scales":"Escalas","search":"Buscar","searchReport":"","searchResults":"","searchTitle":"Búsqueda de hechos","settingsMenu":"","showAnalysisChart":"","showTextOnly":"","summary":{"fact":{"header":"Resumen de los hechos","hidden":"Hechos ocultos","mandatory":"Hechos obligatorios","total":"Hechos totales"},"file":{"calculations":"","definitions":"","header":"Resumen del archivo","inline":"Documentos en línea","labels":"","other":"","presentation":"","references":"","schemas":""},"reportCreation":"","tag":{"colConcepts":"Conceptos","colDimensions":"Dimensiones","colMembers":"Miembros","colNamespace":"Espacio de nombres","colTotal":"Total","header":"Resumen de la etiqueta","rowTotal":"Total"}},"summation":"","targetDocument":"","textOption":"Texto","typedDimensions":"","units":"Unidads","validationCode":"","validationMessage":"","validationResults":"","validationSeverity":"","visibility":"Visibilidad","visible":"Visible","widerAnchor":"Anclaje amplio","xbrlGlossaryOpensInNewTab":"Glosario XBRL (se abre en una pestaña nueva)"},"menu":{"actions":"Comportamientos","applicationLanguage":"Idioma de Aplicación","documentLanguage":"Idioma del Documento","help":"Ayuda","options":"Opciones","contactUs":"Contacta con nosotros","survey":"Encuesta","userGuide":"Guía del Usuario"},"search":{"concealedFact":"","dataTypeConflictWarning":"","default":"","filter":"Filtro","hiddenFact":"Hecho oculto","matchingFactsSummary":"","noMatchFound":"No se encontró ninguna coincidencia","reset":"","selected":"seleccionados","showMoreResults":"Mostrar más resultados","toggleFilterControls":"","tryAgainDifferentKeywords":"Intente nuevamente con palabras clave diferentes","viewFact":""},"toolbar":{"homePage":"Inicio","toggleDarkMode":"Alternar modo oscuro","xbrlElements":"Elementos XBRL"},"viewer":{"ixbrlDocumentView":""}}')}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={id:i,loaded:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";var t=n(651),e=n.n(t),i=n(806),r=n.n(i);const o=t=>"string"==typeof t,s=()=>{let t,e;const n=new Promise(((n,i)=>{t=n,e=i}));return n.resolve=t,n.reject=e,n},a=t=>null==t?"":""+t,l=/###/g,c=t=>t&&t.indexOf("###")>-1?t.replace(l,"."):t,u=t=>!t||o(t),d=(t,e,n)=>{const i=o(e)?e.split("."):e;let r=0;for(;r<i.length-1;){if(u(t))return{};const e=c(i[r]);!t[e]&&n&&(t[e]=new n),t=Object.prototype.hasOwnProperty.call(t,e)?t[e]:{},++r}return u(t)?{}:{obj:t,k:c(i[r])}},h=(t,e,n)=>{const{obj:i,k:r}=d(t,e,Object);if(void 0!==i||1===e.length)return void(i[r]=n);let o=e[e.length-1],s=e.slice(0,e.length-1),a=d(t,s,Object);for(;void 0===a.obj&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),a=d(t,s,Object),a&&a.obj&&void 0!==a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=n},p=(t,e)=>{const{obj:n,k:i}=d(t,e);if(n)return n[i]},f=(t,e,n)=>{for(const i in e)"__proto__"!==i&&"constructor"!==i&&(i in t?o(t[i])||t[i]instanceof String||o(e[i])||e[i]instanceof String?n&&(t[i]=e[i]):f(t[i],e[i],n):t[i]=e[i]);return t},g=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var m={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const v=t=>o(t)?t.replace(/[&<>"'\/]/g,(t=>m[t])):t,y=[" ",",","?","!",";"],b=new class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const e=this.regExpMap.get(t);if(void 0!==e)return e;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}(20),w=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!t)return;if(t[e])return t[e];const i=e.split(n);let r=t;for(let t=0;t<i.length;){if(!r||"object"!=typeof r)return;let e,o="";for(let s=t;s<i.length;++s)if(s!==t&&(o+=n),o+=i[s],e=r[o],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&s<i.length-1)continue;t+=s-t+1;break}r=e}return r},A=t=>t&&t.replace("_","-"),x={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class C{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(t,e)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||x,this.options=e,this.debug=e.debug}log(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}warn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}error(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}deprecate(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(t,e,n,i){return i&&!this.debug?null:(o(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[e](t))}create(t){return new C(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new C(this.logger,t)}}var M=new C;class L{constructor(){this.observers={}}on(t,e){return t.split(" ").forEach((t=>{this.observers[t]||(this.observers[t]=new Map);const n=this.observers[t].get(e)||0;this.observers[t].set(e,n+1)})),this}off(t,e){this.observers[t]&&(e?this.observers[t].delete(e):delete this.observers[t])}emit(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach((t=>{let[e,i]=t;for(let t=0;t<i;t++)e(...n)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((e=>{let[i,r]=e;for(let e=0;e<r;e++)i.apply(i,[t,...n])}))}}class I extends L{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}getResource(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,e],n&&(Array.isArray(n)?a.push(...n):o(n)&&r?a.push(...n.split(r)):a.push(n)));const l=p(this.data,a);return!l&&!e&&!n&&t.indexOf(".")>-1&&(t=a[0],e=a[1],n=a.slice(2).join(".")),!l&&s&&o(n)?w(this.data&&this.data[t]&&this.data[t][e],n,r):l}addResource(t,e,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator;let s=[t,e];n&&(s=s.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(s=t.split("."),i=e,e=s[1]),this.addNamespaces(e),h(this.data,s,i),r.silent||this.emit("added",t,e,n,i)}addResources(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in n)(o(n[i])||Array.isArray(n[i]))&&this.addResource(t,e,i,n[i],{silent:!0});i.silent||this.emit("added",t,e,n)}addResourceBundle(t,e,n,i,r){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[t,e];t.indexOf(".")>-1&&(s=t.split("."),i=n,n=e,e=s[1]),this.addNamespaces(e);let a=p(this.data,s)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?f(a,n,r):a={...a,...n},h(this.data,s,a),o.silent||this.emit("added",t,e,n)}removeResourceBundle(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}hasResourceBundle(t,e){return void 0!==this.getResource(t,e)}getResourceBundle(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(t,e)}:this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((t=>e[t]&&Object.keys(e[t]).length>0))}toJSON(){return this.data}}var _={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,i,r){return t.forEach((t=>{this.processors[t]&&(e=this.processors[t].process(e,n,i,r))})),e}};const S={};class k extends L{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,i;super(),n=t,i=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((t=>{n[t]&&(i[t]=n[t])})),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=M.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;const n=this.resolve(t,e);return n&&void 0!==n.res}extractFromKey(t,e){let n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const i=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let r=e.ns||this.options.defaultNS||[];const s=n&&t.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||((t,e,n)=>{e=e||"",n=n||"";const i=y.filter((t=>e.indexOf(t)<0&&n.indexOf(t)<0));if(0===i.length)return!0;const r=b.getRegExp(`(${i.map((t=>"?"===t?"\\?":t)).join("|")})`);let o=!r.test(t);if(!o){const e=t.indexOf(n);e>0&&!r.test(t.substring(0,e))&&(o=!0)}return o})(t,n,i));if(s&&!a){const e=t.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:t,namespaces:r};const o=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(o[0])>-1)&&(r=o.shift()),t=o.join(i)}return o(r)&&(r=[r]),{key:t,namespaces:r}}translate(t,e,n){if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);const i=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],e),l=a[a.length-1],c=e.lng||this.language,u=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(u){const t=e.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${t}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(e)}:`${l}${t}${s}`}return i?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(e)}:s}const d=this.resolve(t,e);let h=d&&d.res;const p=d&&d.usedKey||s,f=d&&d.exactUsedKey||s,g=Object.prototype.toString.apply(h),m=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!o(h)&&"boolean"!=typeof h&&"number"!=typeof h;if(!(v&&h&&y&&["[object Number]","[object Function]","[object RegExp]"].indexOf(g)<0)||o(m)&&Array.isArray(h))if(v&&o(m)&&Array.isArray(h))h=h.join(m),h&&(h=this.extendTranslation(h,t,e,n));else{let i=!1,a=!1;const u=void 0!==e.count&&!o(e.count),p=k.hasDefaultValue(e),f=u?this.pluralResolver.getSuffix(c,e.count,e):"",g=e.ordinal&&u?this.pluralResolver.getSuffix(c,e.count,{ordinal:!1}):"",m=u&&!e.ordinal&&0===e.count&&this.pluralResolver.shouldUseIntlApi(),v=m&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${f}`]||e[`defaultValue${g}`]||e.defaultValue;!this.isValidLookup(h)&&p&&(i=!0,h=v),this.isValidLookup(h)||(a=!0,h=s);const y=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:h,b=p&&v!==h&&this.options.updateMissing;if(a||i||b){if(this.logger.log(b?"updateKey":"missingKey",c,l,s,b?v:h),r){const t=this.resolve(s,{...e,keySeparator:!1});t&&t.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let t=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let e=0;e<n.length;e++)t.push(n[e]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(e.lng||this.language):t.push(e.lng||this.language);const i=(t,n,i)=>{const r=p&&i!==h?i:y;this.options.missingKeyHandler?this.options.missingKeyHandler(t,l,n,r,b,e):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(t,l,n,r,b,e),this.emit("missingKey",t,l,n,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?t.forEach((t=>{const n=this.pluralResolver.getSuffixes(t,e);m&&e[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{i([t],s+n,e[`defaultValue${n}`]||v)}))})):i(t,s,v))}h=this.extendTranslation(h,t,e,d,n),a&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${s}`),(a||i)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,i?h:void 0):this.options.parseMissingKeyHandler(h))}else{if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,{...e,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(d.res=t,d.usedParams=this.getUsedParamsDetails(e),d):t}if(r){const t=Array.isArray(h),n=t?[]:{},i=t?f:p;for(const t in h)if(Object.prototype.hasOwnProperty.call(h,t)){const o=`${i}${r}${t}`;n[t]=this.translate(o,{...e,joinArrays:!1,ns:a}),n[t]===o&&(n[t]=h[t])}h=n}}return i?(d.res=h,d.usedParams=this.getUsedParamsDetails(e),d):h}extendTranslation(t,e,n,i,r){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a=o(t)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(a){const e=t.match(this.interpolator.nestingRegexp);l=e&&e.length}let c=n.replace&&!o(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),t=this.interpolator.interpolate(t,c,n.lng||this.language||i.usedLng,n),a){const e=t.match(this.interpolator.nestingRegexp);l<(e&&e.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(n.lng=this.language||i.usedLng),!1!==n.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return r&&r[0]===i[0]&&!n.context?(s.logger.warn(`It seems you are nesting recursively key: ${i[0]} in key: ${e[0]}`),null):s.translate(...i,e)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,l=o(a)?[a]:a;return null!=t&&l&&l.length&&!1!==n.applyPostProcessor&&(t=_.handle(l,t,e,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let e,n,i,r,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(t)&&(t=[t]),t.forEach((t=>{if(this.isValidLookup(e))return;const l=this.extractFromKey(t,a),c=l.key;n=c;let u=l.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const d=void 0!==a.count&&!o(a.count),h=d&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==a.context&&(o(a.context)||"number"==typeof a.context)&&""!==a.context,f=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);u.forEach((t=>{this.isValidLookup(e)||(s=t,!S[`${f[0]}-${t}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(S[`${f[0]}-${t}`]=!0,this.logger.warn(`key "${n}" for languages "${f.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((n=>{if(this.isValidLookup(e))return;r=n;const o=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,n,t,a);else{let t;d&&(t=this.pluralResolver.getSuffix(n,a.count,a));const e=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(o.push(c+t),a.ordinal&&0===t.indexOf(i)&&o.push(c+t.replace(i,this.options.pluralSeparator)),h&&o.push(c+e)),p){const n=`${c}${this.options.contextSeparator}${a.context}`;o.push(n),d&&(o.push(n+t),a.ordinal&&0===t.indexOf(i)&&o.push(n+t.replace(i,this.options.pluralSeparator)),h&&o.push(n+e))}}let s;for(;s=o.pop();)this.isValidLookup(e)||(i=s,e=this.getResource(n,t,s,a))})))}))})),{res:e,usedKey:n,exactUsedKey:i,usedLng:r,usedNS:s}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,i):this.resourceStore.getResource(t,e,n,i)}getUsedParamsDetails(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!o(t.replace);let i=n?t.replace:t;if(n&&void 0!==t.count&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n){i={...i};for(const t of e)delete i[t]}return i}static hasDefaultValue(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&"defaultValue"===e.substring(0,12)&&void 0!==t[e])return!0;return!1}}const T=t=>t.charAt(0).toUpperCase()+t.slice(1);class D{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=M.create("languageUtils")}getScriptPartFromCode(t){if(!(t=A(t))||t.indexOf("-")<0)return null;const e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(t){if(!(t=A(t))||t.indexOf("-")<0)return t;const e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if(o(t)&&t.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let e=Intl.getCanonicalLocales(t)[0];if(e&&this.options.lowerCaseLng&&(e=e.toLowerCase()),e)return e}catch(t){}const e=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map((t=>t.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=T(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=T(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=T(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let e;return t.forEach((t=>{if(e)return;const n=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(n)||(e=n)})),!e&&this.options.supportedLngs&&t.forEach((t=>{if(e)return;const n=this.getLanguagePartFromCode(t);if(this.isSupportedCode(n))return e=n;e=this.options.supportedLngs.find((t=>t===n?t:t.indexOf("-")<0&&n.indexOf("-")<0?void 0:t.indexOf("-")>0&&n.indexOf("-")<0&&t.substring(0,t.indexOf("-"))===n||0===t.indexOf(n)&&n.length>1?t:void 0))})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),o(t)&&(t=[t]),Array.isArray(t))return t;if(!e)return t.default||[];let n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}toResolveHierarchy(t,e){const n=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],r=t=>{t&&(this.isSupportedCode(t)?i.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return o(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(t))):o(t)&&r(this.formatLanguageCode(t)),n.forEach((t=>{i.indexOf(t)<0&&r(this.formatLanguageCode(t))})),i}}let j=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],N={1:t=>Number(t>1),2:t=>Number(1!=t),3:t=>0,4:t=>Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),5:t=>Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5),6:t=>Number(1==t?0:t>=2&&t<=4?1:2),7:t=>Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),8:t=>Number(1==t?0:2==t?1:8!=t&&11!=t?2:3),9:t=>Number(t>=2),10:t=>Number(1==t?0:2==t?1:t<7?2:t<11?3:4),11:t=>Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3),12:t=>Number(t%10!=1||t%100==11),13:t=>Number(0!==t),14:t=>Number(1==t?0:2==t?1:3==t?2:3),15:t=>Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2),16:t=>Number(t%10==1&&t%100!=11?0:0!==t?1:2),17:t=>Number(1==t||t%10==1&&t%100!=11?0:1),18:t=>Number(0==t?0:1==t?1:2),19:t=>Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3),20:t=>Number(1==t?0:0==t||t%100>0&&t%100<20?1:2),21:t=>Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0),22:t=>Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)};const O=["v1","v2","v3"],E=["v4"],z={zero:0,one:1,two:2,few:3,many:4,other:5};class F{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=e,this.logger=M.create("pluralResolver"),this.options.compatibilityJSON&&!E.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const t={};return j.forEach((e=>{e.lngs.forEach((n=>{t[n]={numbers:e.nr,plurals:N[e.fc]}}))})),t})(),this.pluralRulesCache={}}addRule(t,e){this.rules[t]=e}clearCache(){this.pluralRulesCache={}}getRule(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{const n=A("dev"===t?"en":t),i=e.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:n,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];const o=new Intl.PluralRules(n,{type:i});return this.pluralRulesCache[r]=o,o}catch(t){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(t,e);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,n).map((t=>`${e}${t}`))}getSuffixes(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(t,e);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((t,e)=>z[t]-z[e])).map((t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`)):n.numbers.map((n=>this.getSuffix(t,n,e))):[]}getSuffix(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=this.getRule(t,n);return i?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(e)}`:this.getSuffixRetroCompatible(i,e):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,e){const n=t.noAbs?t.plurals(e):t.plurals(Math.abs(e));let i=t.numbers[n];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===i?i="plural":1===i&&(i=""));const r=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?`_plural_${i.toString()}`:r():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?r():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!O.includes(this.options.compatibilityJSON)}}const R=function(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=((t,e,n)=>{const i=p(t,n);return void 0!==i?i:p(e,n)})(t,e,n);return!s&&r&&o(n)&&(s=w(t,n,i),void 0===s&&(s=w(e,n,i))),s},P=t=>t.replace(/\$/g,"$$$$");class Y{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=M.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(t=>t),this.init(t)}init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:e,escapeValue:n,useRawValueToEscape:i,prefix:r,prefixEscaped:o,suffix:s,suffixEscaped:a,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:m,maxReplaces:y,alwaysFormat:b}=t.interpolation;this.escape=void 0!==e?e:v,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==i&&i,this.prefix=r?g(r):o||"{{",this.suffix=s?g(s):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?g(d):h||g("$t("),this.nestingSuffix=p?g(p):f||g(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(t,e)=>t&&t.source===e?(t.lastIndex=0,t):new RegExp(e,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,e,n,i){let r,s,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=t=>{if(t.indexOf(this.formatSeparator)<0){const r=R(e,c,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,n,{...i,...e,interpolationkey:t}):r}const r=t.split(this.formatSeparator),o=r.shift().trim(),s=r.join(this.formatSeparator).trim();return this.format(R(e,c,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,n,{...i,...e,interpolationkey:o})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>P(t)},{regex:this.regexp,safeValue:t=>this.escapeValue?P(this.escape(t)):P(t)}].forEach((e=>{for(l=0;r=e.regex.exec(t);){const n=r[1].trim();if(s=u(n),void 0===s)if("function"==typeof d){const e=d(t,r,i);s=o(e)?e:""}else if(i&&Object.prototype.hasOwnProperty.call(i,n))s="";else{if(h){s=r[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${t}`),s=""}else o(s)||this.useRawValueToEscape||(s=a(s));const c=e.safeValue(s);if(t=t.replace(r[0],c),h?(e.regex.lastIndex+=s.length,e.regex.lastIndex-=r[0].length):e.regex.lastIndex=0,l++,l>=this.maxReplaces)break}})),t}nest(t,e){let n,i,r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const l=(t,e)=>{const n=this.nestingOptionsSeparator;if(t.indexOf(n)<0)return t;const i=t.split(new RegExp(`${n}[ ]*{`));let o=`{${i[1]}`;t=i[0],o=this.interpolate(o,r);const s=o.match(/'/g),a=o.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{r=JSON.parse(o),e&&(r={...e,...r})}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,e),`${t}${n}${o}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,t};for(;n=this.nestingRegexp.exec(t);){let c=[];r={...s},r=r.replace&&!o(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const t=n[1].split(this.formatSeparator).map((t=>t.trim()));n[1]=t.shift(),c=t,u=!0}if(i=e(l.call(this,n[1].trim(),r),r),i&&n[0]===t&&!o(i))return i;o(i)||(i=a(i)),i||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${t}`),i=""),u&&(i=c.reduce(((t,e)=>this.format(t,e,s.lng,{...s,interpolationkey:n[1].trim()})),i.trim())),t=t.replace(n[0],i),this.regexp.lastIndex=0}return t}}const U=t=>{const e={};return(n,i,r)=>{let o=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(o={...o,[r.interpolationkey]:void 0});const s=i+JSON.stringify(o);let a=e[s];return a||(a=t(A(i),r),e[s]=a),a(n)}};class B{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=M.create("formatter"),this.options=t,this.formats={number:U(((t,e)=>{const n=new Intl.NumberFormat(t,{...e});return t=>n.format(t)})),currency:U(((t,e)=>{const n=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>n.format(t)})),datetime:U(((t,e)=>{const n=new Intl.DateTimeFormat(t,{...e});return t=>n.format(t)})),relativetime:U(((t,e)=>{const n=new Intl.RelativeTimeFormat(t,{...e});return t=>n.format(t,e.range||"day")})),list:U(((t,e)=>{const n=new Intl.ListFormat(t,{...e});return t=>n.format(t)}))},this.init(t)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=e.interpolation.formatSeparator||","}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=U(e)}format(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=e.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find((t=>t.indexOf(")")>-1))){const t=r.findIndex((t=>t.indexOf(")")>-1));r[0]=[r[0],...r.splice(1,t)].join(this.formatSeparator)}return r.reduce(((t,e)=>{const{formatName:r,formatOptions:o}=(t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const r=i[1].substring(0,i[1].length-1);"currency"===e&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):"relativetime"===e&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach((t=>{if(t){const[e,...i]=t.split(":"),r=i.join(":").trim().replace(/^'+|'+$/g,""),o=e.trim();n[o]||(n[o]=r),"false"===r&&(n[o]=!1),"true"===r&&(n[o]=!0),isNaN(r)||(n[o]=parseInt(r,10))}}))}return{formatName:e,formatOptions:n}})(e);if(this.formats[r]){let e=t;try{const s=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},a=s.locale||s.lng||i.locale||i.lng||n;e=this.formats[r](t,a,{...o,...i,...s})}catch(t){this.logger.warn(t)}return e}return this.logger.warn(`there was no format function for ${r}`),t}),t)}}class W extends L{constructor(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=t,this.store=e,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=M.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,i.backend,i)}queueLoad(t,e,n,i){const r={},o={},s={},a={};return t.forEach((t=>{let i=!0;e.forEach((e=>{const s=`${t}|${e}`;!n.reload&&this.store.hasResourceBundle(t,e)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,i=!1,void 0===o[s]&&(o[s]=!0),void 0===r[s]&&(r[s]=!0),void 0===a[e]&&(a[e]=!0)))})),i||(s[t]=!0)})),(Object.keys(r).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(t,e,n){const i=t.split("|"),r=i[0],o=i[1];e&&this.emit("failedLoading",r,o,e),!e&&n&&this.store.addResourceBundle(r,o,n,void 0,void 0,{skipCopy:!0}),this.state[t]=e?-1:2,e&&n&&(this.state[t]=0);const s={};this.queue.forEach((n=>{((t,e,n)=>{const{obj:i,k:r}=d(t,e,Object);i[r]=i[r]||[],i[r].push(n)})(n.loaded,[r],o),((t,e)=>{void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)})(n,t),e&&n.errors.push(e),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((t=>{s[t]||(s[t]={});const e=n.loaded[t];e.length&&e.forEach((e=>{void 0===s[t][e]&&(s[t][e]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((t=>!t.done))}read(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:e,fcName:n,tried:i,wait:r,callback:o});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}s&&a&&i<this.maxRetries?setTimeout((()=>{this.read.call(this,t,e,n,i+1,2*r,o)}),r):o(s,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(t,e,s);try{const n=a(t,e);n&&"function"==typeof n.then?n.then((t=>s(null,t))).catch(s):s(null,n)}catch(t){s(t)}}prepareLoading(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();o(t)&&(t=this.languageUtils.toResolveHierarchy(t)),o(e)&&(e=[e]);const r=this.queueLoad(t,e,n,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach((t=>{this.loadOne(t)}))}load(t,e,n){this.prepareLoading(t,e,{},n)}reload(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}loadOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=t.split("|"),i=n[0],r=n[1];this.read(i,r,"read",void 0,void 0,((n,o)=>{n&&this.logger.warn(`${e}loading namespace ${r} for language ${i} failed`,n),!n&&o&&this.logger.log(`${e}loaded namespace ${r} for language ${i}`,o),this.loaded(t,n,o)}))}saveMissing(t,e,n,i,r){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn(`did not save key "${n}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const a={...o,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let r;r=5===l.length?l(t,e,n,i,a):l(t,e,n,i),r&&"function"==typeof r.then?r.then((t=>s(null,t))).catch(s):s(null,r)}catch(t){s(t)}else l(t,e,n,i,s,a)}t&&t[0]&&this.store.addResource(t[0],e,n,i)}}}const Z=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if("object"==typeof t[1]&&(e=t[1]),o(t[1])&&(e.defaultValue=t[1]),o(t[2])&&(e.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){const n=t[3]||t[2];Object.keys(n).forEach((t=>{e[t]=n[t]}))}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),H=t=>(o(t.ns)&&(t.ns=[t.ns]),o(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),o(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),G=()=>{};class V extends L{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=H(t),this.services={},this.logger=M,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t=>{"function"==typeof n[t]&&(n[t]=n[t].bind(n))})),e&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,e),this;setTimeout((()=>{this.init(t,e)}),0)}}init(){var t=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof e&&(n=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&(o(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const i=Z();this.options={...i,...this.options,...H(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);const r=t=>t?"function"==typeof t?new t:t:null;if(!this.options.isClone){let e;this.modules.logger?M.init(r(this.modules.logger),this.options):M.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=B);const n=new D(this.options);this.store=new I(this.options.resources,this.options);const o=this.services;o.logger=M,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new F(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format||(o.formatter=r(e),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new Y(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new W(r(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.emit(e,...i)})),this.modules.languageDetector&&(o.languageDetector=r(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=r(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new k(this.services,this.options),this.translator.on("*",(function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.emit(e,...i)})),this.modules.external.forEach((t=>{t.init&&t.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=G),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((e=>{this[e]=function(){return t.store[e](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return t.store[e](...arguments),t}}));const a=s(),l=()=>{const t=(t,e)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(e),n(t,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),a}loadResources(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G;const n=o(t)?t:this.language;if("function"==typeof t&&(e=t),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const t=[],i=e=>{e&&"cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach((e=>{"cimode"!==e&&t.indexOf(e)<0&&t.push(e)}))};n?i(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((t=>i(t))),this.options.preload&&this.options.preload.forEach((t=>i(t))),this.services.backendConnector.load(t,this.options.ns,(t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(t)}))}else e(null)}reloadResources(t,e,n){const i=s();return"function"==typeof t&&(n=t,t=void 0),"function"==typeof e&&(n=e,e=void 0),t||(t=this.languages),e||(e=this.options.ns),n||(n=G),this.services.backendConnector.reload(t,e,(t=>{i.resolve(),n(t)})),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&_.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(t,e){var n=this;this.isLanguageChangingTo=t;const i=s();this.emit("languageChanging",t);const r=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},a=(t,o)=>{o?(r(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,i.resolve((function(){return n.t(...arguments)})),e&&e(t,(function(){return n.t(...arguments)}))},l=e=>{t||e||!this.services.languageDetector||(e=[]);const n=o(e)?e:this.services.languageUtils.getBestMatchFromCodes(e);n&&(this.language||r(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(t=>{a(t,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t):l(this.services.languageDetector.detect()),i}getFixedT(t,e,n){var i=this;const r=function(t,e){let o;if("object"!=typeof e){for(var s=arguments.length,a=new Array(s>2?s-2:0),l=2;l<s;l++)a[l-2]=arguments[l];o=i.options.overloadTranslationOptionHandler([t,e].concat(a))}else o={...e};o.lng=o.lng||r.lng,o.lngs=o.lngs||r.lngs,o.ns=o.ns||r.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||r.keyPrefix);const c=i.options.keySeparator||".";let u;return u=o.keyPrefix&&Array.isArray(t)?t.map((t=>`${o.keyPrefix}${c}${t}`)):o.keyPrefix?`${o.keyPrefix}${c}${t}`:t,i.t(u,o)};return o(t)?r.lng=t:r.lngs=t,r.ns=e,r.keyPrefix=n,r}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=e.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(t,e)=>{const n=this.services.backendConnector.state[`${t}|${e}`];return-1===n||0===n||2===n};if(e.precheck){const t=e.precheck(this,o);if(void 0!==t)return t}return!(!this.hasResourceBundle(n,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(n,t)||i&&!o(r,t)))}loadNamespaces(t,e){const n=s();return this.options.ns?(o(t)&&(t=[t]),t.forEach((t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)})),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}loadLanguages(t,e){const n=s();o(t)&&(t=[t]);const i=this.options.preload||[],r=t.filter((t=>i.indexOf(t)<0&&this.services.languageUtils.isSupportedCode(t)));return r.length?(this.options.preload=i.concat(r),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const e=this.services&&this.services.languageUtils||new D(Z());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new V(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},r=new V(i);return void 0===t.debug&&void 0===t.prefix||(r.logger=r.logger.clone(t)),["store","services","language"].forEach((t=>{r[t]=this[t]})),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},n&&(r.store=new I(this.store.data,i),r.services.resourceStore=r.store),r.translator=new k(r.services,i),r.translator.on("*",(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];r.emit(t,...n)})),r.init(i,e),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Q=V.createInstance();Q.createInstance=V.createInstance,Q.createInstance,Q.dir,Q.init,Q.loadResources,Q.reloadResources,Q.use,Q.changeLanguage,Q.getFixedT,Q.t,Q.exists,Q.setDefaultNamespace,Q.hasLoadedNamespace,Q.loadNamespaces,Q.loadLanguages;var J,X,K=n(420),q=n.n(K),$=9e15,tt=1e9,et="0123456789abcdef",nt="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",it="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",rt={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-$,maxE:$,crypto:!1},ot=!0,st="[DecimalError] ",at=st+"Invalid argument: ",lt=st+"Precision limit exceeded",ct=st+"crypto unavailable",ut="[object Decimal]",dt=Math.floor,ht=Math.pow,pt=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,ft=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,gt=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,mt=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,vt=1e7,yt=nt.length-1,bt=it.length-1,wt={toStringTag:ut};function At(t){var e,n,i,r=t.length-1,o="",s=t[0];if(r>0){for(o+=s,e=1;e<r;e++)(n=7-(i=t[e]+"").length)&&(o+=jt(n)),o+=i;(n=7-(i=(s=t[e])+"").length)&&(o+=jt(n))}else if(0===s)return"0";for(;s%10==0;)s/=10;return o+s}function xt(t,e,n){if(t!==~~t||t<e||t>n)throw Error(at+t)}function Ct(t,e,n,i){var r,o,s,a;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=7,r=0):(r=Math.ceil((e+1)/7),e%=7),o=ht(10,7-e),a=t[r]%o|0,null==i?e<3?(0==e?a=a/100|0:1==e&&(a=a/10|0),s=n<4&&99999==a||n>3&&49999==a||5e4==a||0==a):s=(n<4&&a+1==o||n>3&&a+1==o/2)&&(t[r+1]/o/100|0)==ht(10,e-2)-1||(a==o/2||0==a)&&!(t[r+1]/o/100|0):e<4?(0==e?a=a/1e3|0:1==e?a=a/100|0:2==e&&(a=a/10|0),s=(i||n<4)&&9999==a||!i&&n>3&&4999==a):s=((i||n<4)&&a+1==o||!i&&n>3&&a+1==o/2)&&(t[r+1]/o/1e3|0)==ht(10,e-3)-1,s}function Mt(t,e,n){for(var i,r,o=[0],s=0,a=t.length;s<a;){for(r=o.length;r--;)o[r]*=e;for(o[0]+=et.indexOf(t.charAt(s++)),i=0;i<o.length;i++)o[i]>n-1&&(void 0===o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}wt.absoluteValue=wt.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),It(t)},wt.ceil=function(){return It(new this.constructor(this),this.e+1,2)},wt.clampedTo=wt.clamp=function(t,e){var n=this,i=n.constructor;if(t=new i(t),e=new i(e),!t.s||!e.s)return new i(NaN);if(t.gt(e))throw Error(at+e);return n.cmp(t)<0?t:n.cmp(e)>0?e:new i(n)},wt.comparedTo=wt.cmp=function(t){var e,n,i,r,o=this,s=o.d,a=(t=new o.constructor(t)).d,l=o.s,c=t.s;if(!s||!a)return l&&c?l!==c?l:s===a?0:!s^l<0?1:-1:NaN;if(!s[0]||!a[0])return s[0]?l:a[0]?-c:0;if(l!==c)return l;if(o.e!==t.e)return o.e>t.e^l<0?1:-1;for(e=0,n=(i=s.length)<(r=a.length)?i:r;e<n;++e)if(s[e]!==a[e])return s[e]>a[e]^l<0?1:-1;return i===r?0:i>r^l<0?1:-1},wt.cosine=wt.cos=function(){var t,e,n=this,i=n.constructor;return n.d?n.d[0]?(t=i.precision,e=i.rounding,i.precision=t+Math.max(n.e,n.sd())+7,i.rounding=1,n=function(t,e){var n,i,r;if(e.isZero())return e;(i=e.d.length)<32?r=(1/Bt(4,n=Math.ceil(i/3))).toString():(n=16,r="2.3283064365386962890625e-10"),t.precision+=n,e=Ut(t,1,e.times(r),new t(1));for(var o=n;o--;){var s=e.times(e);e=s.times(s).minus(s).times(8).plus(1)}return t.precision-=n,e}(i,Wt(i,n)),i.precision=t,i.rounding=e,It(2==X||3==X?n.neg():n,t,e,!0)):new i(1):new i(NaN)},wt.cubeRoot=wt.cbrt=function(){var t,e,n,i,r,o,s,a,l,c,u=this,d=u.constructor;if(!u.isFinite()||u.isZero())return new d(u);for(ot=!1,(o=u.s*ht(u.s*u,1/3))&&Math.abs(o)!=1/0?i=new d(o.toString()):(n=At(u.d),(o=((t=u.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=ht(n,1/3),t=dt((t+1)/3)-(t%3==(t<0?-1:2)),(i=new d(n=o==1/0?"5e"+t:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+t)).s=u.s),s=(t=d.precision)+3;;)if(c=(l=(a=i).times(a).times(a)).plus(u),i=Lt(c.plus(u).times(a),c.plus(l),s+2,1),At(a.d).slice(0,s)===(n=At(i.d)).slice(0,s)){if("9999"!=(n=n.slice(s-3,s+1))&&(r||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(It(i,t+1,1),e=!i.times(i).times(i).eq(u));break}if(!r&&(It(a,t+1,0),a.times(a).times(a).eq(u))){i=a;break}s+=4,r=1}return ot=!0,It(i,t,d.rounding,e)},wt.decimalPlaces=wt.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=7*((t=e.length-1)-dt(this.e/7)),t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},wt.dividedBy=wt.div=function(t){return Lt(this,new this.constructor(t))},wt.dividedToIntegerBy=wt.divToInt=function(t){var e=this.constructor;return It(Lt(this,new e(t),0,1,1),e.precision,e.rounding)},wt.equals=wt.eq=function(t){return 0===this.cmp(t)},wt.floor=function(){return It(new this.constructor(this),this.e+1,3)},wt.greaterThan=wt.gt=function(t){return this.cmp(t)>0},wt.greaterThanOrEqualTo=wt.gte=function(t){var e=this.cmp(t);return 1==e||0===e},wt.hyperbolicCosine=wt.cosh=function(){var t,e,n,i,r,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;n=s.precision,i=s.rounding,s.precision=n+Math.max(o.e,o.sd())+4,s.rounding=1,(r=o.d.length)<32?e=(1/Bt(4,t=Math.ceil(r/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=Ut(s,1,o.times(e),new s(1),!0);for(var l,c=t,u=new s(8);c--;)l=o.times(o),o=a.minus(l.times(u.minus(l.times(u))));return It(o,s.precision=n,s.rounding=i,!0)},wt.hyperbolicSine=wt.sinh=function(){var t,e,n,i,r=this,o=r.constructor;if(!r.isFinite()||r.isZero())return new o(r);if(e=o.precision,n=o.rounding,o.precision=e+Math.max(r.e,r.sd())+4,o.rounding=1,(i=r.d.length)<3)r=Ut(o,2,r,r,!0);else{t=(t=1.4*Math.sqrt(i))>16?16:0|t,r=Ut(o,2,r=r.times(1/Bt(5,t)),r,!0);for(var s,a=new o(5),l=new o(16),c=new o(20);t--;)s=r.times(r),r=r.times(a.plus(s.times(l.times(s).plus(c))))}return o.precision=e,o.rounding=n,It(r,e,n,!0)},wt.hyperbolicTangent=wt.tanh=function(){var t,e,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+7,i.rounding=1,Lt(n.sinh(),n.cosh(),i.precision=t,i.rounding=e)):new i(n.s)},wt.inverseCosine=wt.acos=function(){var t,e=this,n=e.constructor,i=e.abs().cmp(1),r=n.precision,o=n.rounding;return-1!==i?0===i?e.isNeg()?Tt(n,r,o):new n(0):new n(NaN):e.isZero()?Tt(n,r+4,o).times(.5):(n.precision=r+6,n.rounding=1,e=e.asin(),t=Tt(n,r+4,o).times(.5),n.precision=r,n.rounding=o,t.minus(e))},wt.inverseHyperbolicCosine=wt.acosh=function(){var t,e,n=this,i=n.constructor;return n.lte(1)?new i(n.eq(1)?0:NaN):n.isFinite()?(t=i.precision,e=i.rounding,i.precision=t+Math.max(Math.abs(n.e),n.sd())+4,i.rounding=1,ot=!1,n=n.times(n).minus(1).sqrt().plus(n),ot=!0,i.precision=t,i.rounding=e,n.ln()):new i(n)},wt.inverseHyperbolicSine=wt.asinh=function(){var t,e,n=this,i=n.constructor;return!n.isFinite()||n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,i.rounding=1,ot=!1,n=n.times(n).plus(1).sqrt().plus(n),ot=!0,i.precision=t,i.rounding=e,n.ln())},wt.inverseHyperbolicTangent=wt.atanh=function(){var t,e,n,i,r=this,o=r.constructor;return r.isFinite()?r.e>=0?new o(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(t=o.precision,e=o.rounding,i=r.sd(),Math.max(i,t)<2*-r.e-1?It(new o(r),t,e,!0):(o.precision=n=i-r.e,r=Lt(r.plus(1),new o(1).minus(r),n+t,1),o.precision=t+4,o.rounding=1,r=r.ln(),o.precision=t,o.rounding=e,r.times(.5))):new o(NaN)},wt.inverseSine=wt.asin=function(){var t,e,n,i,r=this,o=r.constructor;return r.isZero()?new o(r):(e=r.abs().cmp(1),n=o.precision,i=o.rounding,-1!==e?0===e?((t=Tt(o,n+4,i).times(.5)).s=r.s,t):new o(NaN):(o.precision=n+6,o.rounding=1,r=r.div(new o(1).minus(r.times(r)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=i,r.times(2)))},wt.inverseTangent=wt.atan=function(){var t,e,n,i,r,o,s,a,l,c=this,u=c.constructor,d=u.precision,h=u.rounding;if(c.isFinite()){if(c.isZero())return new u(c);if(c.abs().eq(1)&&d+4<=bt)return(s=Tt(u,d+4,h).times(.25)).s=c.s,s}else{if(!c.s)return new u(NaN);if(d+4<=bt)return(s=Tt(u,d+4,h).times(.5)).s=c.s,s}for(u.precision=a=d+10,u.rounding=1,t=n=Math.min(28,a/7+2|0);t;--t)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(ot=!1,e=Math.ceil(a/7),i=1,l=c.times(c),s=new u(c),r=c;-1!==t;)if(r=r.times(l),o=s.minus(r.div(i+=2)),r=r.times(l),void 0!==(s=o.plus(r.div(i+=2))).d[e])for(t=e;s.d[t]===o.d[t]&&t--;);return n&&(s=s.times(2<<n-1)),ot=!0,It(s,u.precision=d,u.rounding=h,!0)},wt.isFinite=function(){return!!this.d},wt.isInteger=wt.isInt=function(){return!!this.d&&dt(this.e/7)>this.d.length-2},wt.isNaN=function(){return!this.s},wt.isNegative=wt.isNeg=function(){return this.s<0},wt.isPositive=wt.isPos=function(){return this.s>0},wt.isZero=function(){return!!this.d&&0===this.d[0]},wt.lessThan=wt.lt=function(t){return this.cmp(t)<0},wt.lessThanOrEqualTo=wt.lte=function(t){return this.cmp(t)<1},wt.logarithm=wt.log=function(t){var e,n,i,r,o,s,a,l,c=this,u=c.constructor,d=u.precision,h=u.rounding;if(null==t)t=new u(10),e=!0;else{if(n=(t=new u(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new u(NaN);e=t.eq(10)}if(n=c.d,c.s<0||!n||!n[0]||c.eq(1))return new u(n&&!n[0]?-1/0:1!=c.s?NaN:n?0:1/0);if(e)if(n.length>1)o=!0;else{for(r=n[0];r%10==0;)r/=10;o=1!==r}if(ot=!1,s=Ft(c,a=d+5),i=e?kt(u,a+10):Ft(t,a),Ct((l=Lt(s,i,a,1)).d,r=d,h))do{if(s=Ft(c,a+=10),i=e?kt(u,a+10):Ft(t,a),l=Lt(s,i,a,1),!o){+At(l.d).slice(r+1,r+15)+1==1e14&&(l=It(l,d+1,0));break}}while(Ct(l.d,r+=10,h));return ot=!0,It(l,d,h)},wt.minus=wt.sub=function(t){var e,n,i,r,o,s,a,l,c,u,d,h,p=this,f=p.constructor;if(t=new f(t),!p.d||!t.d)return p.s&&t.s?p.d?t.s=-t.s:t=new f(t.d||p.s!==t.s?p:NaN):t=new f(NaN),t;if(p.s!=t.s)return t.s=-t.s,p.plus(t);if(c=p.d,h=t.d,a=f.precision,l=f.rounding,!c[0]||!h[0]){if(h[0])t.s=-t.s;else{if(!c[0])return new f(3===l?-0:0);t=new f(p)}return ot?It(t,a,l):t}if(n=dt(t.e/7),u=dt(p.e/7),c=c.slice(),o=u-n){for((d=o<0)?(e=c,o=-o,s=h.length):(e=h,n=u,s=c.length),o>(i=Math.max(Math.ceil(a/7),s)+2)&&(o=i,e.length=1),e.reverse(),i=o;i--;)e.push(0);e.reverse()}else{for((d=(i=c.length)<(s=h.length))&&(s=i),i=0;i<s;i++)if(c[i]!=h[i]){d=c[i]<h[i];break}o=0}for(d&&(e=c,c=h,h=e,t.s=-t.s),s=c.length,i=h.length-s;i>0;--i)c[s++]=0;for(i=h.length;i>o;){if(c[--i]<h[i]){for(r=i;r&&0===c[--r];)c[r]=vt-1;--c[r],c[i]+=vt}c[i]-=h[i]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(t.d=c,t.e=St(c,n),ot?It(t,a,l):t):new f(3===l?-0:0)},wt.modulo=wt.mod=function(t){var e,n=this,i=n.constructor;return t=new i(t),!n.d||!t.s||t.d&&!t.d[0]?new i(NaN):!t.d||n.d&&!n.d[0]?It(new i(n),i.precision,i.rounding):(ot=!1,9==i.modulo?(e=Lt(n,t.abs(),0,3,1)).s*=t.s:e=Lt(n,t,0,i.modulo,1),e=e.times(t),ot=!0,n.minus(e))},wt.naturalExponential=wt.exp=function(){return zt(this)},wt.naturalLogarithm=wt.ln=function(){return Ft(this)},wt.negated=wt.neg=function(){var t=new this.constructor(this);return t.s=-t.s,It(t)},wt.plus=wt.add=function(t){var e,n,i,r,o,s,a,l,c,u,d=this,h=d.constructor;if(t=new h(t),!d.d||!t.d)return d.s&&t.s?d.d||(t=new h(t.d||d.s===t.s?d:NaN)):t=new h(NaN),t;if(d.s!=t.s)return t.s=-t.s,d.minus(t);if(c=d.d,u=t.d,a=h.precision,l=h.rounding,!c[0]||!u[0])return u[0]||(t=new h(d)),ot?It(t,a,l):t;if(o=dt(d.e/7),i=dt(t.e/7),c=c.slice(),r=o-i){for(r<0?(n=c,r=-r,s=u.length):(n=u,i=o,s=c.length),r>(s=(o=Math.ceil(a/7))>s?o+1:s+1)&&(r=s,n.length=1),n.reverse();r--;)n.push(0);n.reverse()}for((s=c.length)-(r=u.length)<0&&(r=s,n=u,u=c,c=n),e=0;r;)e=(c[--r]=c[r]+u[r]+e)/vt|0,c[r]%=vt;for(e&&(c.unshift(e),++i),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=St(c,i),ot?It(t,a,l):t},wt.precision=wt.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(at+t);return n.d?(e=Dt(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},wt.round=function(){var t=this,e=t.constructor;return It(new e(t),t.e+1,e.rounding)},wt.sine=wt.sin=function(){var t,e,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+Math.max(n.e,n.sd())+7,i.rounding=1,n=function(t,e){var n,i=e.d.length;if(i<3)return e.isZero()?e:Ut(t,2,e,e);n=(n=1.4*Math.sqrt(i))>16?16:0|n,e=Ut(t,2,e=e.times(1/Bt(5,n)),e);for(var r,o=new t(5),s=new t(16),a=new t(20);n--;)r=e.times(e),e=e.times(o.plus(r.times(s.times(r).minus(a))));return e}(i,Wt(i,n)),i.precision=t,i.rounding=e,It(X>2?n.neg():n,t,e,!0)):new i(NaN)},wt.squareRoot=wt.sqrt=function(){var t,e,n,i,r,o,s=this,a=s.d,l=s.e,c=s.s,u=s.constructor;if(1!==c||!a||!a[0])return new u(!c||c<0&&(!a||a[0])?NaN:a?s:1/0);for(ot=!1,0==(c=Math.sqrt(+s))||c==1/0?(((e=At(a)).length+l)%2==0&&(e+="0"),c=Math.sqrt(e),l=dt((l+1)/2)-(l<0||l%2),i=new u(e=c==1/0?"5e"+l:(e=c.toExponential()).slice(0,e.indexOf("e")+1)+l)):i=new u(c.toString()),n=(l=u.precision)+3;;)if(i=(o=i).plus(Lt(s,o,n+2,1)).times(.5),At(o.d).slice(0,n)===(e=At(i.d)).slice(0,n)){if("9999"!=(e=e.slice(n-3,n+1))&&(r||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(It(i,l+1,1),t=!i.times(i).eq(s));break}if(!r&&(It(o,l+1,0),o.times(o).eq(s))){i=o;break}n+=4,r=1}return ot=!0,It(i,l,u.rounding,t)},wt.tangent=wt.tan=function(){var t,e,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+10,i.rounding=1,(n=n.sin()).s=1,n=Lt(n,new i(1).minus(n.times(n)).sqrt(),t+10,0),i.precision=t,i.rounding=e,It(2==X||4==X?n.neg():n,t,e,!0)):new i(NaN)},wt.times=wt.mul=function(t){var e,n,i,r,o,s,a,l,c,u=this,d=u.constructor,h=u.d,p=(t=new d(t)).d;if(t.s*=u.s,!(h&&h[0]&&p&&p[0]))return new d(!t.s||h&&!h[0]&&!p||p&&!p[0]&&!h?NaN:h&&p?0*t.s:t.s/0);for(n=dt(u.e/7)+dt(t.e/7),(l=h.length)<(c=p.length)&&(o=h,h=p,p=o,s=l,l=c,c=s),o=[],i=s=l+c;i--;)o.push(0);for(i=c;--i>=0;){for(e=0,r=l+i;r>i;)a=o[r]+p[i]*h[r-i-1]+e,o[r--]=a%vt|0,e=a/vt|0;o[r]=(o[r]+e)%vt|0}for(;!o[--s];)o.pop();return e?++n:o.shift(),t.d=o,t.e=St(o,n),ot?It(t,d.precision,d.rounding):t},wt.toBinary=function(t,e){return Zt(this,2,t,e)},wt.toDecimalPlaces=wt.toDP=function(t,e){var n=this,i=n.constructor;return n=new i(n),void 0===t?n:(xt(t,0,tt),void 0===e?e=i.rounding:xt(e,0,8),It(n,t+n.e+1,e))},wt.toExponential=function(t,e){var n,i=this,r=i.constructor;return void 0===t?n=_t(i,!0):(xt(t,0,tt),void 0===e?e=r.rounding:xt(e,0,8),n=_t(i=It(new r(i),t+1,e),!0,t+1)),i.isNeg()&&!i.isZero()?"-"+n:n},wt.toFixed=function(t,e){var n,i,r=this,o=r.constructor;return void 0===t?n=_t(r):(xt(t,0,tt),void 0===e?e=o.rounding:xt(e,0,8),n=_t(i=It(new o(r),t+r.e+1,e),!1,t+i.e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},wt.toFraction=function(t){var e,n,i,r,o,s,a,l,c,u,d,h,p=this,f=p.d,g=p.constructor;if(!f)return new g(p);if(c=n=new g(1),i=l=new g(0),s=(o=(e=new g(i)).e=Dt(f)-p.e-1)%7,e.d[0]=ht(10,s<0?7+s:s),null==t)t=o>0?e:c;else{if(!(a=new g(t)).isInt()||a.lt(c))throw Error(at+a);t=a.gt(e)?o>0?e:c:a}for(ot=!1,a=new g(At(f)),u=g.precision,g.precision=o=7*f.length*2;d=Lt(a,e,0,1,1),1!=(r=n.plus(d.times(i))).cmp(t);)n=i,i=r,r=c,c=l.plus(d.times(r)),l=r,r=e,e=a.minus(d.times(r)),a=r;return r=Lt(t.minus(n),i,0,1,1),l=l.plus(r.times(c)),n=n.plus(r.times(i)),l.s=c.s=p.s,h=Lt(c,i,o,1).minus(p).abs().cmp(Lt(l,n,o,1).minus(p).abs())<1?[c,i]:[l,n],g.precision=u,ot=!0,h},wt.toHexadecimal=wt.toHex=function(t,e){return Zt(this,16,t,e)},wt.toNearest=function(t,e){var n=this,i=n.constructor;if(n=new i(n),null==t){if(!n.d)return n;t=new i(1),e=i.rounding}else{if(t=new i(t),void 0===e?e=i.rounding:xt(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(ot=!1,n=Lt(n,t,0,e,1).times(t),ot=!0,It(n)):(t.s=n.s,n=t),n},wt.toNumber=function(){return+this},wt.toOctal=function(t,e){return Zt(this,8,t,e)},wt.toPower=wt.pow=function(t){var e,n,i,r,o,s,a=this,l=a.constructor,c=+(t=new l(t));if(!(a.d&&t.d&&a.d[0]&&t.d[0]))return new l(ht(+a,c));if((a=new l(a)).eq(1))return a;if(i=l.precision,o=l.rounding,t.eq(1))return It(a,i,o);if((e=dt(t.e/7))>=t.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return r=Nt(l,a,n,i),t.s<0?new l(1).div(r):It(r,i,o);if((s=a.s)<0){if(e<t.d.length-1)return new l(NaN);if(1&t.d[e]||(s=1),0==a.e&&1==a.d[0]&&1==a.d.length)return a.s=s,a}return(e=0!=(n=ht(+a,c))&&isFinite(n)?new l(n+"").e:dt(c*(Math.log("0."+At(a.d))/Math.LN10+a.e+1)))>l.maxE+1||e<l.minE-1?new l(e>0?s/0:0):(ot=!1,l.rounding=a.s=1,n=Math.min(12,(e+"").length),(r=zt(t.times(Ft(a,i+n)),i)).d&&Ct((r=It(r,i+5,1)).d,i,o)&&(e=i+10,+At((r=It(zt(t.times(Ft(a,e+n)),e),e+5,1)).d).slice(i+1,i+15)+1==1e14&&(r=It(r,i+1,0))),r.s=s,ot=!0,l.rounding=o,It(r,i,o))},wt.toPrecision=function(t,e){var n,i=this,r=i.constructor;return void 0===t?n=_t(i,i.e<=r.toExpNeg||i.e>=r.toExpPos):(xt(t,1,tt),void 0===e?e=r.rounding:xt(e,0,8),n=_t(i=It(new r(i),t,e),t<=i.e||i.e<=r.toExpNeg,t)),i.isNeg()&&!i.isZero()?"-"+n:n},wt.toSignificantDigits=wt.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(xt(t,1,tt),void 0===e?e=n.rounding:xt(e,0,8)),It(new n(this),t,e)},wt.toString=function(){var t=this,e=t.constructor,n=_t(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},wt.truncated=wt.trunc=function(){return It(new this.constructor(this),this.e+1,1)},wt.valueOf=wt.toJSON=function(){var t=this,e=t.constructor,n=_t(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var Lt=function(){function t(t,e,n){var i,r=0,o=t.length;for(t=t.slice();o--;)i=t[o]*e+r,t[o]=i%n|0,r=i/n|0;return r&&t.unshift(r),t}function e(t,e,n,i){var r,o;if(n!=i)o=n>i?1:-1;else for(r=o=0;r<n;r++)if(t[r]!=e[r]){o=t[r]>e[r]?1:-1;break}return o}function n(t,e,n,i){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*i+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(i,r,o,s,a,l){var c,u,d,h,p,f,g,m,v,y,b,w,A,x,C,M,L,I,_,S,k=i.constructor,T=i.s==r.s?1:-1,D=i.d,j=r.d;if(!(D&&D[0]&&j&&j[0]))return new k(i.s&&r.s&&(D?!j||D[0]!=j[0]:j)?D&&0==D[0]||!j?0*T:T/0:NaN);for(l?(p=1,u=i.e-r.e):(l=vt,p=7,u=dt(i.e/p)-dt(r.e/p)),_=j.length,L=D.length,y=(v=new k(T)).d=[],d=0;j[d]==(D[d]||0);d++);if(j[d]>(D[d]||0)&&u--,null==o?(x=o=k.precision,s=k.rounding):x=a?o+(i.e-r.e)+1:o,x<0)y.push(1),f=!0;else{if(x=x/p+2|0,d=0,1==_){for(h=0,j=j[0],x++;(d<L||h)&&x--;d++)C=h*l+(D[d]||0),y[d]=C/j|0,h=C%j|0;f=h||d<L}else{for((h=l/(j[0]+1)|0)>1&&(j=t(j,h,l),D=t(D,h,l),_=j.length,L=D.length),M=_,w=(b=D.slice(0,_)).length;w<_;)b[w++]=0;(S=j.slice()).unshift(0),I=j[0],j[1]>=l/2&&++I;do{h=0,(c=e(j,b,_,w))<0?(A=b[0],_!=w&&(A=A*l+(b[1]||0)),(h=A/I|0)>1?(h>=l&&(h=l-1),1==(c=e(g=t(j,h,l),b,m=g.length,w=b.length))&&(h--,n(g,_<m?S:j,m,l))):(0==h&&(c=h=1),g=j.slice()),(m=g.length)<w&&g.unshift(0),n(b,g,w,l),-1==c&&(c=e(j,b,_,w=b.length))<1&&(h++,n(b,_<w?S:j,w,l)),w=b.length):0===c&&(h++,b=[0]),y[d++]=h,c&&b[0]?b[w++]=D[M]||0:(b=[D[M]],w=1)}while((M++<L||void 0!==b[0])&&x--);f=void 0!==b[0]}y[0]||y.shift()}if(1==p)v.e=u,J=f;else{for(d=1,h=y[0];h>=10;h/=10)d++;v.e=d+u*p-1,It(v,a?o+v.e+1:o,s,f)}return v}}();function It(t,e,n,i){var r,o,s,a,l,c,u,d,h,p=t.constructor;t:if(null!=e){if(!(d=t.d))return t;for(r=1,a=d[0];a>=10;a/=10)r++;if((o=e-r)<0)o+=7,s=e,l=(u=d[h=0])/ht(10,r-s-1)%10|0;else if((h=Math.ceil((o+1)/7))>=(a=d.length)){if(!i)break t;for(;a++<=h;)d.push(0);u=l=0,r=1,s=(o%=7)-7+1}else{for(u=a=d[h],r=1;a>=10;a/=10)r++;l=(s=(o%=7)-7+r)<0?0:u/ht(10,r-s-1)%10|0}if(i=i||e<0||void 0!==d[h+1]||(s<0?u:u%ht(10,r-s-1)),c=n<4?(l||i)&&(0==n||n==(t.s<0?3:2)):l>5||5==l&&(4==n||i||6==n&&(o>0?s>0?u/ht(10,r-s):0:d[h-1])%10&1||n==(t.s<0?8:7)),e<1||!d[0])return d.length=0,c?(e-=t.e+1,d[0]=ht(10,(7-e%7)%7),t.e=-e||0):d[0]=t.e=0,t;if(0==o?(d.length=h,a=1,h--):(d.length=h+1,a=ht(10,7-o),d[h]=s>0?(u/ht(10,r-s)%ht(10,s)|0)*a:0),c)for(;;){if(0==h){for(o=1,s=d[0];s>=10;s/=10)o++;for(s=d[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(t.e++,d[0]==vt&&(d[0]=1));break}if(d[h]+=a,d[h]!=vt)break;d[h--]=0,a=1}for(o=d.length;0===d[--o];)d.pop()}return ot&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function _t(t,e,n){if(!t.isFinite())return Rt(t);var i,r=t.e,o=At(t.d),s=o.length;return e?(n&&(i=n-s)>0?o=o.charAt(0)+"."+o.slice(1)+jt(i):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):r<0?(o="0."+jt(-r-1)+o,n&&(i=n-s)>0&&(o+=jt(i))):r>=s?(o+=jt(r+1-s),n&&(i=n-r-1)>0&&(o=o+"."+jt(i))):((i=r+1)<s&&(o=o.slice(0,i)+"."+o.slice(i)),n&&(i=n-s)>0&&(r+1===s&&(o+="."),o+=jt(i))),o}function St(t,e){var n=t[0];for(e*=7;n>=10;n/=10)e++;return e}function kt(t,e,n){if(e>yt)throw ot=!0,n&&(t.precision=n),Error(lt);return It(new t(nt),e,1,!0)}function Tt(t,e,n){if(e>bt)throw Error(lt);return It(new t(it),e,n,!0)}function Dt(t){var e=t.length-1,n=7*e+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function jt(t){for(var e="";t--;)e+="0";return e}function Nt(t,e,n,i){var r,o=new t(1),s=Math.ceil(i/7+4);for(ot=!1;;){if(n%2&&Ht((o=o.times(e)).d,s)&&(r=!0),0===(n=dt(n/2))){n=o.d.length-1,r&&0===o.d[n]&&++o.d[n];break}Ht((e=e.times(e)).d,s)}return ot=!0,o}function Ot(t){return 1&t.d[t.d.length-1]}function Et(t,e,n){for(var i,r=new t(e[0]),o=0;++o<e.length;){if(!(i=new t(e[o])).s){r=i;break}r[n](i)&&(r=i)}return r}function zt(t,e){var n,i,r,o,s,a,l,c=0,u=0,d=0,h=t.constructor,p=h.rounding,f=h.precision;if(!t.d||!t.d[0]||t.e>17)return new h(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(ot=!1,l=f):l=e,a=new h(.03125);t.e>-2;)t=t.times(a),d+=5;for(l+=i=Math.log(ht(2,d))/Math.LN10*2+5|0,n=o=s=new h(1),h.precision=l;;){if(o=It(o.times(t),l,1),n=n.times(++u),At((a=s.plus(Lt(o,n,l,1))).d).slice(0,l)===At(s.d).slice(0,l)){for(r=d;r--;)s=It(s.times(s),l,1);if(null!=e)return h.precision=f,s;if(!(c<3&&Ct(s.d,l-i,p,c)))return It(s,h.precision=f,p,ot=!0);h.precision=l+=10,n=o=a=new h(1),u=0,c++}s=a}}function Ft(t,e){var n,i,r,o,s,a,l,c,u,d,h,p=1,f=t,g=f.d,m=f.constructor,v=m.rounding,y=m.precision;if(f.s<0||!g||!g[0]||!f.e&&1==g[0]&&1==g.length)return new m(g&&!g[0]?-1/0:1!=f.s?NaN:g?0:f);if(null==e?(ot=!1,u=y):u=e,m.precision=u+=10,i=(n=At(g)).charAt(0),!(Math.abs(o=f.e)<15e14))return c=kt(m,u+2,y).times(o+""),f=Ft(new m(i+"."+n.slice(1)),u-10).plus(c),m.precision=y,null==e?It(f,y,v,ot=!0):f;for(;i<7&&1!=i||1==i&&n.charAt(1)>3;)i=(n=At((f=f.times(t)).d)).charAt(0),p++;for(o=f.e,i>1?(f=new m("0."+n),o++):f=new m(i+"."+n.slice(1)),d=f,l=s=f=Lt(f.minus(1),f.plus(1),u,1),h=It(f.times(f),u,1),r=3;;){if(s=It(s.times(h),u,1),At((c=l.plus(Lt(s,new m(r),u,1))).d).slice(0,u)===At(l.d).slice(0,u)){if(l=l.times(2),0!==o&&(l=l.plus(kt(m,u+2,y).times(o+""))),l=Lt(l,new m(p),u,1),null!=e)return m.precision=y,l;if(!Ct(l.d,u-10,v,a))return It(l,m.precision=y,v,ot=!0);m.precision=u+=10,c=s=f=Lt(d.minus(1),d.plus(1),u,1),h=It(f.times(f),u,1),r=a=1}l=c,r+=2}}function Rt(t){return String(t.s*t.s/0)}function Pt(t,e){var n,i,r;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(i=e.search(/e/i))>0?(n<0&&(n=i),n+=+e.slice(i+1),e=e.substring(0,i)):n<0&&(n=e.length),i=0;48===e.charCodeAt(i);i++);for(r=e.length;48===e.charCodeAt(r-1);--r);if(e=e.slice(i,r)){if(r-=i,t.e=n=n-i-1,t.d=[],i=(n+1)%7,n<0&&(i+=7),i<r){for(i&&t.d.push(+e.slice(0,i)),r-=7;i<r;)t.d.push(+e.slice(i,i+=7));i=7-(e=e.slice(i)).length}else i-=r;for(;i--;)e+="0";t.d.push(+e),ot&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function Yt(t,e){var n,i,r,o,s,a,l,c,u;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),mt.test(e))return Pt(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(ft.test(e))n=16,e=e.toLowerCase();else if(pt.test(e))n=2;else{if(!gt.test(e))throw Error(at+e);n=8}for((o=e.search(/p/i))>0?(l=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),s=(o=e.indexOf("."))>=0,i=t.constructor,s&&(o=(a=(e=e.replace(".","")).length)-o,r=Nt(i,new i(n),o,2*o)),o=u=(c=Mt(e,n,vt)).length-1;0===c[o];--o)c.pop();return o<0?new i(0*t.s):(t.e=St(c,u),t.d=c,ot=!1,s&&(t=Lt(t,r,4*a)),l&&(t=t.times(Math.abs(l)<54?ht(2,l):je.pow(2,l))),ot=!0,t)}function Ut(t,e,n,i,r){var o,s,a,l,c=t.precision,u=Math.ceil(c/7);for(ot=!1,l=n.times(n),a=new t(i);;){if(s=Lt(a.times(l),new t(e++*e++),c,1),a=r?i.plus(s):i.minus(s),i=Lt(s.times(l),new t(e++*e++),c,1),void 0!==(s=a.plus(i)).d[u]){for(o=u;s.d[o]===a.d[o]&&o--;);if(-1==o)break}o=a,a=i,i=s,s=o}return ot=!0,s.d.length=u+1,s}function Bt(t,e){for(var n=t;--e;)n*=t;return n}function Wt(t,e){var n,i=e.s<0,r=Tt(t,t.precision,1),o=r.times(.5);if((e=e.abs()).lte(o))return X=i?4:1,e;if((n=e.divToInt(r)).isZero())X=i?3:2;else{if((e=e.minus(n.times(r))).lte(o))return X=Ot(n)?i?2:3:i?4:1,e;X=Ot(n)?i?1:4:i?3:2}return e.minus(r).abs()}function Zt(t,e,n,i){var r,o,s,a,l,c,u,d,h,p=t.constructor,f=void 0!==n;if(f?(xt(n,1,tt),void 0===i?i=p.rounding:xt(i,0,8)):(n=p.precision,i=p.rounding),t.isFinite()){for(f?(r=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):r=e,(s=(u=_t(t)).indexOf("."))>=0&&(u=u.replace(".",""),(h=new p(1)).e=u.length-s,h.d=Mt(_t(h),10,r),h.e=h.d.length),o=l=(d=Mt(u,10,r)).length;0==d[--l];)d.pop();if(d[0]){if(s<0?o--:((t=new p(t)).d=d,t.e=o,d=(t=Lt(t,h,n,i,0,r)).d,o=t.e,c=J),s=d[n],a=r/2,c=c||void 0!==d[n+1],c=i<4?(void 0!==s||c)&&(0===i||i===(t.s<0?3:2)):s>a||s===a&&(4===i||c||6===i&&1&d[n-1]||i===(t.s<0?8:7)),d.length=n,c)for(;++d[--n]>r-1;)d[n]=0,n||(++o,d.unshift(1));for(l=d.length;!d[l-1];--l);for(s=0,u="";s<l;s++)u+=et.charAt(d[s]);if(f){if(l>1)if(16==e||8==e){for(s=16==e?4:3,--l;l%s;l++)u+="0";for(l=(d=Mt(u,r,e)).length;!d[l-1];--l);for(s=1,u="1.";s<l;s++)u+=et.charAt(d[s])}else u=u.charAt(0)+"."+u.slice(1);u=u+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)u="0"+u;u="0."+u}else if(++o>l)for(o-=l;o--;)u+="0";else o<l&&(u=u.slice(0,o)+"."+u.slice(o))}else u=f?"0p+0":"0";u=(16==e?"0x":2==e?"0b":8==e?"0o":"")+u}else u=Rt(t);return t.s<0?"-"+u:u}function Ht(t,e){if(t.length>e)return t.length=e,!0}function Gt(t){return new this(t).abs()}function Vt(t){return new this(t).acos()}function Qt(t){return new this(t).acosh()}function Jt(t,e){return new this(t).plus(e)}function Xt(t){return new this(t).asin()}function Kt(t){return new this(t).asinh()}function qt(t){return new this(t).atan()}function $t(t){return new this(t).atanh()}function te(t,e){t=new this(t),e=new this(e);var n,i=this.precision,r=this.rounding,o=i+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(n=e.s<0?Tt(this,i,r):new this(0)).s=t.s:!t.d||e.isZero()?(n=Tt(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,n=this.atan(Lt(t,e,o,1)),e=Tt(this,o,1),this.precision=i,this.rounding=r,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(Lt(t,e,o,1)):(n=Tt(this,o,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function ee(t){return new this(t).cbrt()}function ne(t){return It(t=new this(t),t.e+1,2)}function ie(t,e,n){return new this(t).clamp(e,n)}function re(t){if(!t||"object"!=typeof t)throw Error(st+"Object expected");var e,n,i,r=!0===t.defaults,o=["precision",1,tt,"rounding",0,8,"toExpNeg",-$,0,"toExpPos",0,$,"maxE",0,$,"minE",-$,0,"modulo",0,9];for(e=0;e<o.length;e+=3)if(n=o[e],r&&(this[n]=rt[n]),void 0!==(i=t[n])){if(!(dt(i)===i&&i>=o[e+1]&&i<=o[e+2]))throw Error(at+n+": "+i);this[n]=i}if(n="crypto",r&&(this[n]=rt[n]),void 0!==(i=t[n])){if(!0!==i&&!1!==i&&0!==i&&1!==i)throw Error(at+n+": "+i);if(i){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(ct);this[n]=!0}else this[n]=!1}return this}function oe(t){return new this(t).cos()}function se(t){return new this(t).cosh()}function ae(t,e){return new this(t).div(e)}function le(t){return new this(t).exp()}function ce(t){return It(t=new this(t),t.e+1,3)}function ue(){var t,e,n=new this(0);for(ot=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)n.d&&(n=n.plus(e.times(e)));else{if(e.s)return ot=!0,new this(1/0);n=e}return ot=!0,n.sqrt()}function de(t){return t instanceof je||t&&t.toStringTag===ut||!1}function he(t){return new this(t).ln()}function pe(t,e){return new this(t).log(e)}function fe(t){return new this(t).log(2)}function ge(t){return new this(t).log(10)}function me(){return Et(this,arguments,"lt")}function ve(){return Et(this,arguments,"gt")}function ye(t,e){return new this(t).mod(e)}function be(t,e){return new this(t).mul(e)}function we(t,e){return new this(t).pow(e)}function Ae(t){var e,n,i,r,o=0,s=new this(1),a=[];if(void 0===t?t=this.precision:xt(t,1,tt),i=Math.ceil(t/7),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(i));o<i;)(r=e[o])>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=r%1e7;else{if(!crypto.randomBytes)throw Error(ct);for(e=crypto.randomBytes(i*=4);o<i;)(r=e[o]+(e[o+1]<<8)+(e[o+2]<<16)+((127&e[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,o):(a.push(r%1e7),o+=4);o=i/4}else for(;o<i;)a[o++]=1e7*Math.random()|0;for(t%=7,(i=a[--o])&&t&&(r=ht(10,7-t),a[o]=(i/r|0)*r);0===a[o];o--)a.pop();if(o<0)n=0,a=[0];else{for(n=-1;0===a[0];n-=7)a.shift();for(i=1,r=a[0];r>=10;r/=10)i++;i<7&&(n-=7-i)}return s.e=n,s.d=a,s}function xe(t){return It(t=new this(t),t.e+1,this.rounding)}function Ce(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function Me(t){return new this(t).sin()}function Le(t){return new this(t).sinh()}function Ie(t){return new this(t).sqrt()}function _e(t,e){return new this(t).sub(e)}function Se(){var t=0,e=arguments,n=new this(e[t]);for(ot=!1;n.s&&++t<e.length;)n=n.plus(e[t]);return ot=!0,It(n,this.precision,this.rounding)}function ke(t){return new this(t).tan()}function Te(t){return new this(t).tanh()}function De(t){return It(t=new this(t),t.e+1,1)}wt[Symbol.for("nodejs.util.inspect.custom")]=wt.toString,wt[Symbol.toStringTag]="Decimal";var je=wt.constructor=function t(e){var n,i,r;function o(t){var e,n,i,r=this;if(!(r instanceof o))return new o(t);if(r.constructor=o,de(t))return r.s=t.s,void(ot?!t.d||t.e>o.maxE?(r.e=NaN,r.d=null):t.e<o.minE?(r.e=0,r.d=[0]):(r.e=t.e,r.d=t.d.slice()):(r.e=t.e,r.d=t.d?t.d.slice():t.d));if("number"==(i=typeof t)){if(0===t)return r.s=1/t<0?-1:1,r.e=0,void(r.d=[0]);if(t<0?(t=-t,r.s=-1):r.s=1,t===~~t&&t<1e7){for(e=0,n=t;n>=10;n/=10)e++;return void(ot?e>o.maxE?(r.e=NaN,r.d=null):e<o.minE?(r.e=0,r.d=[0]):(r.e=e,r.d=[t]):(r.e=e,r.d=[t]))}return 0*t!=0?(t||(r.s=NaN),r.e=NaN,void(r.d=null)):Pt(r,t.toString())}if("string"!==i)throw Error(at+t);return 45===(n=t.charCodeAt(0))?(t=t.slice(1),r.s=-1):(43===n&&(t=t.slice(1)),r.s=1),mt.test(t)?Pt(r,t):Yt(r,t)}if(o.prototype=wt,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=re,o.clone=t,o.isDecimal=de,o.abs=Gt,o.acos=Vt,o.acosh=Qt,o.add=Jt,o.asin=Xt,o.asinh=Kt,o.atan=qt,o.atanh=$t,o.atan2=te,o.cbrt=ee,o.ceil=ne,o.clamp=ie,o.cos=oe,o.cosh=se,o.div=ae,o.exp=le,o.floor=ce,o.hypot=ue,o.ln=he,o.log=pe,o.log10=ge,o.log2=fe,o.max=me,o.min=ve,o.mod=ye,o.mul=be,o.pow=we,o.random=Ae,o.round=xe,o.sign=Ce,o.sin=Me,o.sinh=Le,o.sqrt=Ie,o.sub=_e,o.sum=Se,o.tan=ke,o.tanh=Te,o.trunc=De,void 0===e&&(e={}),e&&!0!==e.defaults)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<r.length;)e.hasOwnProperty(i=r[n++])||(e[i]=this[i]);return o.config(e),o}(rt);nt=new je(nt),it=new je(it);const Ne=je,Oe="http://www.xbrl.org/2003/iso4217",Ee="calc",ze="guide_link",Fe="home_link_label",Re="home_link_url",Pe="support_link",Ye="survey_link",Ue="ixbrl-viewer-theme",Be="ixbrl-viewer-highlight-all-facts";function We(t,e){return t.hours()+t.minutes()+t.seconds()===0?(e&&(t=t.clone().subtract(1,"day")),t.format("D MMM Y")):t.format("D MMM Y HH:mm:ss")}function Ze(t,e){const n=Ne(t),i=(void 0===e?n.toFixed():n.toFixed(Math.max(0,e))).split(".");return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),i.join(".")}function He(t,e){const n=[],i=t.split(" ");let r="";return i.forEach(((t,o)=>{if(r.length>0){const s=r+" "+t;if(!(s.length>e))return o===i.length-1?void n.push(s):void(r=s);n.push(r),r=""}o!==i.length-1&&t.length<e?r=t:n.push(t)})),n}function Ge(t,e){let n=He(t,e),i=n[0];return n.length>1&&(i+=" …"),i}function Ve(t){return t=t.replace(/^(\d{4,}-\d{2}-\d{2})(?!T|$)/,((t,e)=>e+"T00:00:00")),q().utc(t)}function Qe(t,e,n){return t.hasOwnProperty(e)||(t[e]=n),t[e]}function Je(t){setTimeout((function e(){t.next().done||setTimeout(e,0)}),0)}function Xe(t,e){return null==e?null:t.toString()+"-"+e}class Ke{constructor(t,e){this.name=e,this.report=t,this.qname=t.qname(e)}label(){return"http://www.xbrl.org/2003/instance"==this.qname.namespace?Q.t(`dataTypes:${this.qname.localname}`,{defaultValue:this.qname.qname}):this.report.reportSet.taxonomyNamer.convertQName(this.qname)}}class qe{constructor(t){this.balance=t}label(){return Q.t(`balanceTypes:${this.balance}`,{defaultValue:this.balance})}}class $e{constructor(t,e){this._c=t.concepts()[e]||{},this.name=e,this.report=t}referenceValuesAsString(){return this._c.r?this._c.r.flatMap((t=>t.map((t=>t[1])))).join(" "):""}labels(){if(!this._c.labels)return{};const t=this.report.reportSet.viewerOptions.language;return Object.fromEntries(Object.entries(this._c.labels).map((([e,n])=>[e,n[t]])).filter((([t,e])=>void 0!==e)))}references(){return this._c.r?this._c.r.map((t=>t.map((t=>({part:t[0],value:t[1]}))))):[]}isTypedDimension(){return"t"===this._c.d}isExplicitDimension(){return"e"===this._c.d}isDimension(){return"d"in this._c}isEnumeration(){return Boolean(this._c&&this._c.e)}label(){return this.report.getLabelOrName(this.name)}isTextBlock(){return Boolean(this._c.t)}typedDomainElement(){return this._c.td}dataType(){if(void 0!==this._c.dt)return new Ke(this.report,this._c.dt)}balance(){if(void 0!==this._c.b)return new qe(this._c.b)}}class tn{constructor(t,e){this.reportSet=t,this._reportData=e,this._reverseRelationshipCache={}}availableLanguages(){if(!this._availableLanguages){this._availableLanguages=new Set;for(const t of Object.values(this._reportData.concepts))for(const e of Object.values(t.labels))for(const t of Object.keys(e))this._availableLanguages.add(t)}return this._availableLanguages}facts(){return this.reportSet.factsForReport(this)}targetDocument(){return this._reportData.target??null}getChildRelationships(t,e){const n={},i=this._reportData.rels[e]||{};for(const e in i)t in i[e]&&(n[e]=i[e][t]);return n}_reverseRelationships(t){if(!(t in this._reverseRelationshipCache)){const e={},n=this._reportData.rels[t]||{};for(const[t,i]of Object.entries(n))for(const[n,r]of Object.entries(i))for(const i of r)i.src=n,Qe(Qe(e,t,{}),i.t,[]).push(i);this._reverseRelationshipCache[t]=e}return this._reverseRelationshipCache[t]}getParentRelationships(t,e){const n={};for(const[i,r]of Object.entries(this._reverseRelationships(e)))t in r&&(n[i]=r[t]);return n}getParentRelationshipsInGroup(t,e,n){return(this._reverseRelationships(e)[n]||{})[t]||[]}dimensionDefault(t){for(const e of Object.values(this._reportData.rels["d-d"]||{}))if(t in e)return e[t][0].t}relationshipGroups(t){return Object.keys(this._reportData.rels[t]||{})}relationshipGroupRoots(t,e){const n=[];for(const i in this._reportData.rels[t][e])e in this.getParentRelationships(i,t)||n.push(i);return n}getAlignedFacts(t,e){const n=this.reportSet.facts(),i=[];e||(e={});for(const r of n)r.isAligned(t,e)&&i.push(r);return i}deduplicate(t){const e=[];for(const n of t){let t=!1;for(const i of e)i.isAligned(n,{})&&(t=!0);t||e.push(n)}return e}getConcept(t){return new $e(this,t)}getRoleLabel(t){const e=this._reportData.roleDefs[t];if(void 0!==e){const t=e.en;if(null!=t)return t}}getRoleLabelOrURI(t){return this.getRoleLabel(t)??this.reportSet.roleMap()[t]}getLabelRoleLabel(t){const e=this.reportSet.roleMap()[t];if(void 0===e)return;const n=e.split("/").pop();if(e.startsWith("http://www.xbrl.org/2003/role/")&&Q.exists(`labelRoles:${n}`))return Q.t(`labelRoles:${n}`);const i=this.getRoleLabel(t);return void 0!==i?i:n.replaceAll(/([A-Z][a-z]+)/g," $1").trim().replace(/^./,(t=>t.toUpperCase()))}localDocuments(){return void 0===this._reportData.localDocs?{}:this._reportData.localDocs}qname(t){return this.reportSet.qname(t)}getScaleLabel(t,e){let n=Q.t(`scale:${t}`,{defaultValue:"noName"});if(e&&e.isMonetary()&&-2===t){let t=e.value()??"";t&&(t=this.qname(t).localname),n=Q.t(`currencies:cents${t}`,{defaultValue:n})}return"noName"===n?null:n}concepts(){return this._reportData.concepts}getLabel(t,e,n){return this.getLabelAndLang(t,e,n).label}getLabelAndLang(t,e,n){e=e||"std";const i=this.reportSet.viewerOptions.language,r=this._reportData.concepts[t];if(void 0===r)return console.log("Attempt to get label for undefined concept: "+t),{label:"<no label>"};const o=r.labels[e];if(void 0===o||0==Object.keys(o).length)return{label:void 0};{let e,r;if(i&&o[i])e=o[i],r=i;else for(const t of["en","en-us",Object.keys(o).sort()[0]])if(void 0!==o[t]){e=o[t],r=t;break}if(void 0===e)return{label:void 0};let s="";return n&&this.reportSet.viewerOptions.showPrefixes&&(s="("+this.reportSet.taxonomyNamer.fromQName(this.qname(t)).prefix+") "),s+=e,{label:s,lang:r}}}getLabelOrName(t,e,n){const i=this.getLabel(t,e,n);return void 0===i?t:i}getLabelOrNameAndLang(t,e,n){const i=this.getLabelAndLang(t,e,n);return void 0===i.label?{label:t}:i}isCalculationContributor(t){return void 0===this._calculationContributors&&(this._reportData.rels?.calc?this._calculationContributors=new Set(Object.values(this._reportData.rels.calc).flatMap((t=>Object.values(t).flatMap((t=>t.map((t=>t.t))))))):this._calculationContributors=new Set),this._calculationContributors.has(t)}isCalculationSummation(t){return void 0===this._calculationSummations&&(this._reportData.rels?.calc?this._calculationSummations=new Set(Object.values(this._reportData.rels.calc).flatMap((t=>Object.keys(t)))):this._calculationSummations=new Set),this._calculationSummations.has(t)}softwareCredits(){return this._reportData.softwareCredits??[]}}class en{constructor(t){this._p=t}type(){if(this._p)return"f"==this._p?"f":this._p.includes("/")?"d":"i"}toString(){let t;return t=this._p?"f"===this._p?"None":this._p.includes("/")?We(this.from(),!1)+" to "+We(this.to(),!0):We(this.to(),!0):"Undefined",t}to(){return this._p&&"f"!==this._p?this._p.includes("/")?Ve(this._p.split("/")[1]):Ve(this._p):null}from(){return this._p&&this._p.includes("/")?Ve(this._p.split("/")[0]):null}isEquivalentDuration(t){const e=t.type(),n=this.type();if(!e||!n)return!1;if(e!==n)return!1;if("d"!==e)return!0;const i=t.to().toDate()-t.from().toDate(),r=this.to().toDate()-this.from().toDate();return Math.abs(i-r)<.1*(i+r)}key(){return this._p}}const nn={"http://standards.iso.org/iso/17442":{name:"LEI",url:"https://search.gleif.org/#/record/%s"},"http://www.sec.gov/CIK":{name:"CIK",url:"https://www.sec.gov/cgi-bin/browse-edgar?CIK=%s"},"http://www.companieshouse.gov.uk/":{name:"UK CRN",url:"https://beta.companieshouse.gov.uk/company/%08d"},"https://www.minfin.gov.ua":{name:"EDRPOU"}};class rn{static identifierURL(t){const e=nn[t.namespace];if(void 0!==e&&void 0!==e.url){let n=e.url.replace("%s",t.localname);return n=n.replace(/%0(\d+)d/,((e,n)=>t.localname.padStart(n,"0"))),n}}static identifierNameForFact(t){const e=nn[t.identifier().namespace];if(void 0!==e)return e.name}static readableName(t){const e=nn[t.namespace];return void 0!==e?"["+e.name+"] "+t.localname:t.qname}static readableNameHTML(t){const e=nn[t.namespace],n=document.createElement("span");if(void 0!==e){n.appendChild(document.createElement("span")).textContent="["+e.name+"] ";const i=rn.identifierURL(t);if(void 0!==i){const e=n.appendChild(document.createElement("a"));e.textContent=t.localname,e.setAttribute("target","_blank"),e.setAttribute("href",i)}else n.appendChild(document.createElement("span")).textContent=t.localname}else n.textContent=t.qname;return n}}const on={c:"Concept",e:"Entity",p:"Period",u:"Unit"};class sn{constructor(t,e,n){this._aspect=t,this._value=e,this._report=n}name(){return this._aspect}label(){return on[this._aspect]??this._report.getLabel(this._aspect)}labelOrNameAndLang(){return this._aspect in on?{label:on}:this._report.getLabelOrNameAndLang(this._aspect)}value(){return this._value}equalTo(t){return void 0!==t&&this._aspect===t._aspect&&this._value===t._value}isTaxonomyDefined(){return this._aspect.includes(":")}isNil(){return null===this._value}valueLabel(t){return this.valueLabelAndLang(t).label}valueLabelAndLang(t){return"c"===this._aspect?this._report.getLabelOrNameAndLang(this._value,t):this.isTaxonomyDefined()?this._report.getConcept(this._aspect).isTypedDimension()?{label:null===this._value?"nil":this._value}:this._report.getLabelOrNameAndLang(this._value,t):"u"===this._aspect?{label:this._report.reportSet.getUnit(this._value).label()}:"p"===this._aspect?{label:new en(this._value).toString()}:"e"===this._aspect?{label:rn.readableName(this._report.qname(this._value))}:{label:this._value}}}class an{constructor(t){this._aspectSet=t||[]}add(t){this._aspectSet.push(t)}uniqueValues(){let t={};for(const e of Object.values(this._aspectSet))t[e.value()]=e;return Object.values(t)}}class ln{constructor(t,e){this.a="object"==typeof t?t:new Ne(t),this.b="object"==typeof e?e:new Ne(e)}static fromFact(t){if(!t.isNumeric())return;const e=t.decimals();let n,i=0;void 0!==e&&(i=new Ne(10).pow(0-e).times(.5));const r=t.value();try{n=new Ne(r)}catch(t){if(t instanceof Error&&/DecimalError/.test(t.message))return;throw t}return new ln(n.minus(i),n.plus(i))}intersection(t){return ln.intersection(this,t)}static intersection(...t){if(t.includes(void 0)||0==t.length)return;const e=t.map((t=>t.a)),n=t.map((t=>t.b)),i=Ne.max(...e),r=Ne.min(...n);return r.lessThan(i)?void 0:new ln(i,r)}plus(t){return new ln(this.a.plus(t.a),this.b.plus(t.b))}times(t){return t>0?new ln(this.a.times(t),this.b.times(t)):new ln(this.b.times(t),this.a.times(t))}midpoint(){return Ne.add(this.a,this.b).div(2)}}class cn{constructor(t,e,n){this.f=n,this.ixNode=t.reportSet.getIXNodeForItemId(e),this.report=t,this.vuid=e,this.linkedFacts=[],this._footnotes=[]}localId(){return function(t){return t.replace(/^\d+-/,"")}(this.vuid)}isMandatory(){return this.f.a.m}getLabel(t,e){return this.report.getLabel(this.f.a.c,t,e)}getLabelAndLang(t,e){return this.report.getLabelAndLang(this.f.a.c,t,e)}getLabelOrName(t,e){return this.report.getLabelOrName(this.f.a.c,t,e)}getLabelOrNameAndLang(t,e){return this.report.getLabelOrNameAndLang(this.f.a.c,t,e)}conceptName(){return this.f.a.c}conceptDisplayName(){return this.report.reportSet.taxonomyNamer.convertQName(this.conceptQName())}concept(){return this.report.getConcept(this.f.a.c)}conceptQName(){return this.report.qname(this.f.a.c)}period(){return new en(this.f.a.p)}periodString(){return this.period().toString()}periodTo(){return this.period().to()}periodFrom(){return this.period().from()}value(){return this.f.v}readableValue(t){return this.readableValueHTML(t).textContent}readableValueHTML(t){let n=void 0===t?this.f.v:t;const i=document.createElement("span");if(i.classList.add("fact-value"),this.isInvalidIXValue())i.classList.add("fact-value-invalid"),i.append(document.createTextNode("Invalid value"));else if(this.isNumeric()){const t=this.decimals();let e;e=this.isNil()?"nil":Ze(n,t),this.isMonetaryValue()?(i.append(this.unitLabelHTML()),i.append(document.createTextNode(" "+e))):(i.append(document.createTextNode(e+" ")),i.append(this.unitLabelHTML()))}else if(this.isNil())i.classList.add("fact-value-nil"),i.append(document.createTextNode("nil"));else if(this.isTextBlock()){const t=e()("<div>").append(e()(e().parseHTML(n,null,!1)));t.find("p, td, th, h1, h2, h3, h4, ol, ul, pre, blockquote, dl, div").append(document.createTextNode(" ")).prepend(document.createTextNode(" ")),n=t.text().replace(/[\u00a0\s]+/g," ").trim(),i.append(document.createTextNode(n))}else if(this.isEnumeration()){const t=[];for(const e of n.split(" "))t.push(this.report.getLabelOrName(e,"std"));n=t.join(", "),i.append(document.createTextNode(n))}else i.append(document.createTextNode(n));return i}unit(){if(void 0===this._unit){const t=this.aspect("u")?.value();if(!t)return;this._unit=this.report.reportSet.getUnit(t)}return this._unit}unitLabel(){return this.unit()?.label()??Q.t("factDetails.noUnit")}unitLabelHTML(){return this.unit()?.html()??document.createTextNode(Q.t("factDetails.noUnit"))}getConceptPrefix(){return this.conceptName().split(":")[0]}isCalculationContributor(){return void 0===this._isCalculationContributor&&(this._isCalculationContributor=this.report.isCalculationContributor(this.f.a.c)),this._isCalculationContributor}isCalculationSummation(){return void 0===this._isCalculationSummation&&(this._isCalculationSummation=this.report.isCalculationSummation(this.f.a.c)),this._isCalculationSummation}isNumeric(){return void 0!==this.f.a.u}dimensions(){const t={};for(const[e,n]of Object.entries(this.f.a))e.indexOf(":")>-1&&(t[e]=n);return t}hasExplicitDimension(){return Object.keys(this.dimensions()).some((t=>!this.report.getConcept(t).isTypedDimension()))}hasTypedDimension(){return Object.keys(this.dimensions()).some((t=>this.report.getConcept(t).isTypedDimension()))}isMonetaryValue(){return this.unit()?.isMonetary()??!1}isTextBlock(){return this.concept().isTextBlock()}aspects(){return Object.keys(this.f.a).map((t=>this.aspect(t)))}aspect(t){return void 0===this._aspects&&(this._aspects={}),void 0===this._aspects[t]&&void 0!==this.f.a[t]&&(this._aspects[t]=new sn(t,this.f.a[t],this.report)),this._aspects[t]}isAligned(t,e){if(Object.keys(this.f.a).length!=Object.keys(t.f.a).length)return!1;for(const n in this.f.a)if(e.hasOwnProperty(n)){if(null!==e[n])if(e[n].constructor===Array){if(!e[n].includes(this.f.a[n]))return!1}else if(this.f.a[n]!=e[n])return!1}else if(this.f.a[n]!=t.f.a[n])return!1;return!0}isEquivalentDuration(t){return this.period().isEquivalentDuration(t.period())}decimals(){return this.f.d}scale(){return this.ixNode.scale}duplicates(){return this.report.getAlignedFacts(this)}isNil(){return null===this.f.v}isNegative(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Ne(this.value()).isNegative()&&!this.isZero()}isPositive(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Ne(this.value()).isPositive()&&!this.isZero()}isZero(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Ne(this.value()).isZero()}isInvalidIXValue(){return"INVALID_IX_VALUE"==this.f.err}getScaleLabel(t,e=!1){return this.report.getScaleLabel(e?-t:t,this.unit())}readableAccuracy(){if(!this.isNumeric()||this.isNil())return Q.t("common.notApplicable");const t=this.decimals();if(void 0===t)return Q.t("common.accuracyInfinite");if(null===t)return Q.t("common.unspecified");const e=this.getScaleLabel(t,!0);return null!=e?e:t.toString()}readableScale(){if(!this.isNumeric()||this.isNil())return Q.t("common.notApplicable");const t=this.scale();if(null==t)return Q.t("common.unscaled");const e=this.getScaleLabel(t);return null!=e?e:t.toString()}identifier(){return this.report.qname(this.f.a.e)}escaped(){return this.ixNode.escaped}isEnumeration(){return this.concept().isEnumeration()}addFootnote(t){this._footnotes.push(t)}footnotes(){return this._footnotes}isHidden(){return this.ixNode.isHidden}isHTMLHidden(){return this.ixNode.htmlHidden()}widerConcepts(){const t=[],n=this.report.getParentRelationships(this.conceptName(),"w-n");for(const i in n)t.push(...e().map(n[i],(t=>t.src)));return t}narrowerConcepts(){const t=[],n=this.report.getChildRelationships(this.conceptName(),"w-n");for(const i in n)t.push(...e().map(n[i],(t=>t.t)));return t}addLinkedFact(t){this.linkedFacts.push(t)}roundedValue(){Ne.rounding=Ne.ROUND_HALF_UP;const t=new Ne(this.value()),e=this.decimals();return void 0===e?t:t.mul(10**e).round().mul(10**(0-e))}isCompleteDuplicate(t){return this.value()===t.value()&&this.decimals()===t.decimals()}addLinkedFact(t){this.linkedFacts.push(t)}valueInterval(){return ln.fromFact(this)}isMorePrecise(t){return void 0!==t.decimals()&&(void 0===this.decimals()||this.decimals()>t.decimals())}targetDocument(){return this.report.targetDocument()}}class un{constructor(t,e,n){this.vuid=e,this.linkedFacts=[],this.title=n,this.ixNode=t.reportSet.getIXNodeForItemId(e)}addLinkedFact(t){this.linkedFacts.push(t)}textContent(){return this.ixNode.textContent()}readableValue(){return this.textContent()}isTextBlock(){return!1}}class dn{constructor(t,e){this.symbol=t,this.name=e}}const hn=new class{constructor(){self.entries=n(915)}get(t){const e=self.entries[t.namespace]?.[t.localname];if(void 0!==e)return new dn(e.s??e.n,e.n)}};function pn(t,e){const n=t.qname(e);if(n.namespace===Oe){const t=`currencies:unitFormat${n.localname}`;if(Q.exists(t))return Q.t(t);const e=hn.get(n);if(void 0!==e)return"$"==e.symbol?`${n.localname} $`:e.symbol}return e.includes(":")?e.split(":")[1]:e}class fn{constructor(t,e){this._reportSet=t,this._value=e;const n=e.split(/[()]/gi).join("").split("/");this._numerators=n[0].split("*"),this._denominators=n.length>1?n[1].split("*"):[],this._isMonetary=0===this._denominators.length&&1===this._numerators.length&&this._reportSet.qname(this._numerators[0]).namespace===Oe,this._label=n.map((t=>{const e=t.split("*").map((t=>pn(this._reportSet,t))).join("*");return e.includes("*")?`(${e})`:e})).join("/")}isMonetary(){return this._isMonetary}label(){return this._label}value(){return this._value}measureHTML(t){const e=document.createElement("span"),n=function(t,e){const n=t.qname(e),i=hn.get(n);return i?.name}(this._reportSet,t);return void 0!==n&&(e.setAttribute("title",n),e.classList.add("measure")),e.append(document.createTextNode(pn(this._reportSet,t))),e}partsHTML(t){const e=document.createElement("span");t.length>1&&e.appendChild(document.createTextNode("("));for(const[n,i]of t.entries())e.appendChild(this.measureHTML(i)),n<t.length-1&&e.appendChild(document.createTextNode(" * "));return t.length>1&&e.appendChild(document.createTextNode(")")),e}html(){const t=document.createElement("span");return t.append(this.partsHTML(this._numerators)),this._denominators.length>0&&(t.append(document.createTextNode(" / ")),t.append(this.partsHTML(this._denominators))),t}}class gn{constructor(t,e){const n=e.split(":",2);this.localname=n[1],this.prefix=n[0],this.namespace=t[n[0]],this.qname=e}}function mn(){this.showPrefixes=!0,this.language=null}class vn{constructor(t){this.map=new Map(Array.from(t.entries()).map((([t,e])=>[new RegExp(t),new yn(e[0],e[1])])))}getName(t,e){for(const[t,n]of this.map.entries())if(null!==e.match(t))return n;return new yn(t,t)}fromQName(t){return this.getName(t.prefix,t.namespace)}convertQName(t){return this.fromQName(t).prefix+":"+t.localname}}class yn{constructor(t,e){this.prefix=t,this.name=e}}class bn{constructor(t){this._data=t,this._ixNodeMap={},this.viewerOptions=new mn,this.taxonomyNamer=new vn(new Map)}setIXNodeMap(t){this._ixNodeMap=t,this._initialize()}_initialize(){this._items={},this.reports=[];const t=Object.keys(this._ixNodeMap).filter((t=>this._ixNodeMap[t].footnote));t.sort(((t,e)=>this._ixNodeMap[t].docOrderindex-this._ixNodeMap[e].docOrderindex));for(const[e,n]of(this._data.sourceReports??[{targetReports:[this._data]}]).entries())for(const i of n.targetReports){const n=new tn(this,i);this.reports.push(n);for(const[t,r]of Object.entries(i.facts)){const i=Xe(e,t);this._items[i]=new cn(n,i,r)}for(const[n,r]of Object.entries(i.facts)){const i=Xe(e,n),o=this._items[i];(r.fn||[]).forEach((n=>{const i=Xe(e,n);var r=this._items[i];void 0===r&&(r=new un(o.report,i,"Footnote "+(t.indexOf(i)+1)),this._items[i]=r),r.addLinkedFact(o),o.addFootnote(r)}))}}}availableLanguages(){return Array.from(this.reports.reduce(((t,e)=>new Set([...t,...e.availableLanguages()])),new Set))}getItemById(t){return this._items[t]}getIXNodeForItemId(t){return this._ixNodeMap[t]||{}}facts(){return Object.values(this._items).filter((t=>t instanceof cn))}filingDocuments(){return this._data.filingDocuments}prefixMap(){return this._data.prefixes}preferredPrefix(t){return this.taxonomyNamer.getName(t,this._data.prefixes[t]).prefix}namespaceGroups(){const t={};for(const e of this.facts())t[e.conceptQName().prefix]=(t[e.conceptQName().prefix]||0)+1;const e=Object.keys(t);return e.sort(((e,n)=>t[n]-t[e])),e}getUsedConceptPrefixes(){return void 0===this._usedPrefixes&&(this._usedPrefixes=new Set(Object.values(this._items).filter((t=>t instanceof cn)).map((t=>t.getConceptPrefix())))),this._usedPrefixes}getUsedConceptDataTypes(){if(void 0===this._usedDataTypes){const t=new Map;for(const e of Object.values(this._items).filter((t=>t instanceof cn)).map((t=>({dataType:t.concept().dataType(),isNumeric:t.isNumeric()}))).filter((t=>void 0!==t.dataType)))t.set(e.dataType.name,e);this._usedDataTypes=t.values().toArray()}return this._usedDataTypes}getSoftwareCredits(){let t=new Set(this.reports.flatMap((t=>t.softwareCredits())));return Array.from(t).sort()}getTargetDocuments(){return void 0===this._targetDocuments&&(this._targetDocuments=new Set(Object.values(this._items).filter((t=>t instanceof cn)).map((t=>t.targetDocument())))),this._targetDocuments}getUsedUnits(){return void 0===this._usedUnits&&(this._usedUnits=new Set(Object.values(this._items).filter((t=>t instanceof cn)).map((t=>t.unit()?.value())).filter((t=>t)).sort())),this._usedUnits}getUnit(t){return void 0===this._unitsMap&&(this._unitsMap={}),void 0===this._unitsMap[t]&&(this._unitsMap[t]=new fn(this,t)),this._unitsMap[t]}getUsedScalesMap(){const t={};return Object.values(this._items).filter((t=>t instanceof cn)).forEach((e=>{const n=e.scale();if(null!=n){n in t||(t[n]=new Set);const r=t[n],o=(i=e.getScaleLabel(n))?i.split(" ").map((t=>Array.from(t).map(((t,e)=>0===e?t.toUpperCase():t)).join(""))).join(" "):i;o&&!r.has(o)&&r.add(o)}var i})),t}roleMap(){return this._data.roles}qname(t){return new gn(this.prefixMap(),t)}reportsData(){return this._data.sourceReports?.flatMap((t=>t.targetReports))??[this._data]}reportFiles(){return(this._data.sourceReports??[this._data]).map(((t,e)=>(t.docSetFiles??[]).map((t=>({index:e,file:t}))))).flat()}isMultiDocumentViewer(){return this.reportFiles().length>1}usesAnchoring(){return this.reportsData().some((t=>void 0!==t.rels?.["w-n"]))}usesCalculations(){return this.reportsData().some((t=>Object.keys(t.rels?.calc??{}).length>0))}hasValidationErrors(){return void 0!==this._data.validation&&this._data.validation.length>0}validation(){return this._data.validation}factsForReport(t){return Object.values(this._items).filter((e=>e instanceof cn&&e.report==t))}}function wn(t){return"(?:"+t.join("|")+")"}function An(t){return"(?:"+t+")?"}function xn(t){return"(?:"+t+")*"}const Cn=wn(["$","¢","\\bUS$","€","£","¥","\\bC$","\\bA$","\\bNT$","\\bS$","₩","₱","₨","\\bkr","\\bFr.","\\bRM","\\bR$","\\bR"]).replace(/([$.])/g,"\\$1"),Mn="[ \t\n\r]",Ln=Mn+"*",In="[-—]",_n="(?:^|(?<=(?:[/“—([]|"+Mn+"|"+In+")))",Sn="(?:$|(?=(?:[/,.:;”—)\\]]|"+Mn+"|"+In+")))",kn="(?:st|nd|rd|th)",Tn="[123]?\\d"+kn+"?",Dn="(?:jan|january|feb|february|mar|march|apr|april|may|jun|june|jul|july|aug|august|sep|september|sept|oct|october|nov|november|dec|december)",jn="(?:[01]?\\d)",Nn="(?:19|20)\\d\\d",On="year"+Ln+Nn,En=Dn+Ln+Tn+Ln+","+Ln+Nn,zn=Nn+Ln+Dn+Ln+Tn,Fn="\\d{4}-\\d{2}-\\d{2}",Rn=wn([En,zn,Dn+Ln+Nn,Dn+Ln+Tn,Fn]),Pn=(wn([En,zn,Fn]),"\\b"+wn([Rn,Nn,On])+"\\b"),Yn="\\d+"+Ln+"months?",Un="(?:\\b(?:zero|one|two|three|four(?:teen)?|five|six(?:ty|teen)?|seven(?:ty|teen)?|eight(?:y|een)?|nine(?:ty|teen)?|ten|eleven|twelve|thirteen|fifteen|twenty|thirty|forty|fifty)\\b)",Bn="section"+Ln+"\\d{1,3}\\(?:?\\w\\)?",Wn="topic"+Ln+"\\d{1,3}(?:\\.[\\w\\d])*",Zn="form"+Ln+"\\d{1,2}-\\w",Hn="asc"+Ln+"\\w\\d{1,3}(?:-\\w?\\d{1,3})*",Gn="item"+Ln+"\\d{1,2}\\w?",Vn="rule"+Ln+"\\d{1,3}\\w?(?:-\\d{1,3}\\w?)*",Qn="note"+Ln+"\\d{1,3}",Jn="level"+Ln+"\\d{1,3}",Xn="page"+Ln+"\\d{1,3}",Kn="tier"+Ln+"\\d{1,3}",qn=wn([Un,"\\d+"])+Ln+"months ended",$n=wn([Bn,Wn,Zn,Hn,Gn,Vn,Qn,Jn,Xn,Kn,qn,jn+"/[0-3]?d/"+Nn,jn+"/\\d\\d"]),ti=wn([An(Ln+In+Ln),Ln]),ei=Un+xn(ti+Un),ni=ei+xn(ti+"(\\b(hundred|thousand|million|billion|trillion)\\b)"+An(ti+ei)),ii=wn([wn(["\\d{1,3}(?:,\\d{3})+","\\d+"])+An("\\.\\d+"),"\\.\\d+"]),ri=wn([An(Cn+Ln)+An("[-+(]"+Ln)+An(Cn+Ln)+ii+An(kn)+An(Ln+wn([Cn,"\\%"]))+Ln+"\\)?"+An(Ln+wn([Cn,"\\%"])),ni,"\\b(?:no|none)\\b","[-֊־‐-―﹘﹣]"]),oi=_n+wn(["("+Pn+")","("+$n+")",Yn,ri])+Sn,si=new RegExp(oi,"gi");var ai=n(461),li=n(60);function ci(t,e){var n=e.attribute;return t=t.replace(ui,"&").replace(di,">").replace(hi,"<"),n&&(t=t.replace(pi,"'").replace(fi,""")),t}var ui=/&/g,di=/>/g,hi=/</g,pi=/'/g,fi=/"/g,gi=/((?:[\0-\x08\x0B\f\x0E-\x1F\uFFFD\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g,mi=new RegExp("([\\x7F-\\x84]|[\\x86-\\x9F]|[\\uFDD0-\\uFDEF]|(?:\\uD83F[\\uDFFE\\uDFFF])|(?:\\uD87F[\\uDFFE\\uDFFF])|(?:\\uD8BF[\\uDFFE\\uDFFF])|(?:\\uD8FF[\\uDFFE\\uDFFF])|(?:\\uD93F[\\uDFFE\\uDFFF])|(?:\\uD97F[\\uDFFE\\uDFFF])|(?:\\uD9BF[\\uDFFE\\uDFFF])|(?:\\uD9FF[\\uDFFE\\uDFFF])|(?:\\uDA3F[\\uDFFE\\uDFFF])|(?:\\uDA7F[\\uDFFE\\uDFFF])|(?:\\uDABF[\\uDFFE\\uDFFF])|(?:\\uDAFF[\\uDFFE\\uDFFF])|(?:\\uDB3F[\\uDFFE\\uDFFF])|(?:\\uDB7F[\\uDFFE\\uDFFF])|(?:\\uDBBF[\\uDFFE\\uDFFF])|(?:\\uDBFF[\\uDFFE\\uDFFF])(?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]))","g");function vi(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).removeDiscouragedCharacters,n=void 0===e||e;return t=t.replace(gi,""),n&&(t=t.replace(mi,"")),t}function yi(t){return ci(vi(t),{attribute:!0})}function bi(t){return ci(vi(t),{attribute:!1})}function wi(t){return Object.keys(t).map((function(e){return"".concat(e,'="').concat(yi(String(t[e])),'"')})).reduce((function(t,e){return t+" "+e}),"")}function Ai(t,e){return"".concat(Ci(t)).concat(e)}var xi=26;function Ci(t){if("number"!=typeof t)return"";var e=Math.floor(t/xi),n=String.fromCharCode(97+t%xi).toUpperCase();return 0===e?n:Ci(e-1)+n}function Mi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Li(t,e,n,i,r,o){if(null===n&&!r)return"";var s={r:Ai(e,t)};if(r&&(s.s=r),null===n)return"<c".concat(wi(s),"/>");if(i===Date&&!r)throw new Error('No "format" has been specified for a Date cell');n=function(t,e,n){switch(t){case String:if("string"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a string"));return n(e);case Number:if("number"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a number"));return String(e);case Date:if(!(e instanceof Date))throw new Error("Invalid cell value: ".concat(e,". Expected a Date"));return String(function(t){return t.getTime()/864e5+25569}(e));case Boolean:if("boolean"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a boolean"));return e?"1":"0";case"Formula":if("string"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a string"));return bi(e);default:throw new Error("Unknown schema type: ".concat(t&&t.name||t))}}(i,n,o),(i=function(t){switch(t){case String:return"s";case Number:case Date:return;case Boolean:return"b";case"Formula":return"f";default:throw new Error("Unknown schema type: ".concat(t&&t.name||t))}}(i))&&(s.t=i);var a,l,c=function(t){var e=function(t){switch(t){case"inlineStr":return"<is><t>";case"f":return"<f>";default:return"<v>"}}(t),n=e.replace(Ii,"</");return[e,n]}(i),u=(l=2,function(t){if(Array.isArray(t))return t}(a=c)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}}(a,l)||function(t,e){if(t){if("string"==typeof t)return Mi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mi(t,e):void 0}}(a,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=u[0],h=u[1];return"<c".concat(wi(s),">")+d+n+h+"</c>"}var Ii=/</g;function _i(t){var e=t.align,n=t.alignVertical,i=t.textRotation,r=t.indent,o=t.wrap,s=t.fontFamily,a=t.fontSize,l=t.fontWeight,c=t.fontStyle,u=t.color,d=t.backgroundColor,h=t.borderColor,p=t.borderStyle,f=t.leftBorderColor,g=t.leftBorderStyle,m=t.rightBorderColor,v=t.rightBorderStyle,y=t.topBorderColor,b=t.topBorderStyle,w=t.bottomBorderColor,A=t.bottomBorderStyle;if(e||n||i||r||o||s||a||l||c||u||d||h||p||f||g||m||v||y||b||w||A)return function(t){var e={};for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e}({align:e,alignVertical:n,textRotation:i,indent:r,wrap:o,fontFamily:s,fontSize:a,fontWeight:l,fontStyle:c,color:u,backgroundColor:d,borderColor:h,borderStyle:p,leftBorderColor:f,leftBorderStyle:g,rightBorderColor:m,rightBorderStyle:v,topBorderColor:y,topBorderStyle:b,bottomBorderColor:w,bottomBorderStyle:A})}function Si(t){return Si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Si(t)}function ki(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ti(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ki(Object(n),!0).forEach((function(e){Di(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Di(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ji(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Ni={fontWeight:"bold"};function Oi(t,e){if(!t)return"";if(t.type!==Date||t.width||(t.width=14),!t.width)return"";var n=e+1;return'<col min="'.concat(n,'" max="').concat(n,'" width="').concat(t.width,'" customWidth="1"/>')}function Ei(t){var e=t.data,n=t.rowIndex,i=t.columnIndex,r=t.span,o=t.rowSpan,s=t.cloneData,a=_i(e[n][i]);a&&(e=s());for(var l=n;l<=n+(o-1);){for(var c=i;c<=i+(r-1);){var u=e[l][c];if(l>n||c>i){if(null!=u)throw new Error("[write-excel-file] When using `span` or `rowSpan` parameters, all hidden overlapped cells should be represented by `null`s or `undefined`s. Cell at row ".concat(n+1," and column ").concat(i+1," is configured with `span` ").concat(r," and `rowSpan` ").concat(o,". Cell at row ").concat(l+1," and column ").concat(c+1," is neither `null` nor `undefined`: ").concat(JSON.stringify(u)));a&&(e[l][c]=a)}c++}l++}}function zi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Fi(t,e){var n=e.schema,i=e.columns,r=e.getHeaderStyle,o=e.getStyle,s=e.getSharedString,a=e.customFont,l=e.dateFormat,c=e.orientation,u=e.stickyRowsCount,d=e.stickyColumnsCount,h=e.showGridLines,p=e.rightToLeft,f=e.sheetId;!function(t,e){if(e.schema){if(!Array.isArray(t))throw new TypeError("Expected an array of objects")}else{if(!Array.isArray(t))throw new TypeError("Expected an array of arrays");if(t.length>0&&!Array.isArray(t[0]))throw new TypeError("Expected an array of arrays")}}(t,{schema:n});var g=function(t,e){var n=[];if(e.schema)return{data:t,mergedCells:n};for(var i=function(){t=t.slice();for(var e=0;e<t.length;)t[e]=t[e].slice(),e++;return i=function(){return t},t},r=0;r<t.length;){for(var o=t[r],s=0;s<o.length;){var a=o[s];if(a){var l=a.span,c=void 0===l?1:l,u=a.rowSpan,d=void 0===u?1:u;(c>1||d>1)&&(Ei({data:t,rowIndex:r,columnIndex:s,span:c,rowSpan:d,cloneData:i}),n.push([[r,s],[r+(d?d-1:0),s+(c?c-1:0)]]))}s++}r++}return{data:t,mergedCells:n}}(t,{schema:n}),m=g.data,v=g.mergedCells;return'<?xml version="1.0" ?>\n<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">{views}{columnsDescription}<sheetData>{data}</sheetData>{mergedCellsDescription}{layout}</worksheet>'.replace("{data}",function(t,e){var n=e.schema,i=e.getHeaderStyle,r=e.getStyle,o=e.getSharedString,s=e.customFont,a=e.dateFormat;if(n){for(var l,c=[],u=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ji(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ji(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(l=u()).done;)if(l.value.column){c=[n.map((function(t){return Ti({type:String,value:t.column,align:t.align},i?i(t):Ni)}))];break}t=c.concat(t.map((function(t){return n.map((function(e){return Ti(Ti({},e),{},{value:e.value(t)})}))})))}return t.map((function(t,e){return function(t,e,n){var i,r=n.getStyle,o=n.getSharedString,s=n.customFont,a=n.dateFormat,l=n.usesSchema,c=e+1,u=t.map((function(t,e){if(null==t)return"";var n,u=t.height,d=_i(t),h=t.type,p=t.value,f=t.format;if(function(t){return null==t||""===t}(p)?p=null:void 0===h&&(l||(h=function(t){switch(Si(t)){case"string":return String;case"number":return Number;case"boolean":return Boolean;default:if(t instanceof Date)return Date}}(p)),void 0===h&&(h=String,p=String(p))),f){if(h!==Date&&h!==Number&&"Formula"!==h)throw new Error('`format` can only be used on `Date`, `Number` or `"Formula"` cells')}else h===Date&&(f=a);return(f||s||d)&&(n=r(d||{},{format:f})),u&&(void 0===i||i<u)&&(i=u),Li(c,e,p,h,n,o)})).join(""),d={r:c};return i&&(d.ht=i,d.customHeight=1),"<row".concat(wi(d),">")+u+"</row>"}(t,e,{getStyle:r,getSharedString:o,customFont:s,dateFormat:a,usesSchema:void 0!==n})})).join("")}(m,{schema:n,getHeaderStyle:r,getStyle:o,getSharedString:s,customFont:a,dateFormat:l})).replace("{views}",function(t){var e=t.stickyRowsCount,n=t.stickyColumnsCount,i=t.showGridLines,r=t.rightToLeft;if(!e&&!n&&!1!==i&&!r)return"";var o="",s={tabSelected:1,workbookViewId:0};!1===i&&(s.showGridLines=!1),r&&(s.rightToLeft=1);var a={ySplit:e||0,xSplit:n||0,topLeftCell:Ai(n||0,(e||0)+1),activePane:"bottomRight",state:"frozen"};return o+="<sheetViews>",o+="<sheetView".concat(wi(s),">"),o+="<pane".concat(wi(a),"/>"),(o+="</sheetView>")+"</sheetViews>"}({stickyRowsCount:u,stickyColumnsCount:d,showGridLines:h,rightToLeft:p})).replace("{columnsDescription}",function(t){var e=t.schema,n=t.columns;if(e||n){var i=(e||n).map(Oi).join("");if(i)return"<cols>".concat(i,"</cols>")}return""}({schema:n,columns:i})).replace("{mergedCellsDescription}",function(t){return 0===t.length?"":'<mergeCells count="'.concat(t.length,'">')+t.map((function(t){var e,n,i=(n=2,function(t){if(Array.isArray(t))return t}(e=t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}}(e,n)||function(t,e){if(t){if("string"==typeof t)return zi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zi(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=i[0],o=i[1],s=Ai(r[1],r[0]+1)+":"+Ai(o[1],o[0]+1);return'<mergeCell ref="'.concat(s,'"/>')})).join("")+"</mergeCells>"}(v)).replace("{layout}",function(t){var e=t.sheetId,n=t.orientation,i="";return n&&(i+="<pageMargins",i+=' left="'.concat(.7,'"'),i+=' right="'.concat(.7,'"'),i+=' top="'.concat(.75,'"'),i+=' bottom="'.concat(.75,'"'),i+=' header="'.concat(.3,'"'),i+=' footer="'.concat(.3,'"'),i+="/>"),n&&(i+="<pageSetup",i+=' paperSize="'.concat(9,'"'),i+=' orientation="'.concat(yi(n),'"'),i+=' r:id="rId'.concat(e,'"'),i+="/>"),i}({sheetId:f,orientation:c}))}function Ri(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Pi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Pi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Yi(t){if("#"!==t[0])throw new Error('Color "'.concat(t,'" must start with a "#"'));return"FF".concat(t.slice(1).toUpperCase())}function Ui(t){if(!(t>=-90&&t<=90))throw new Error("Unsupported text rotation angle: ".concat(t,". Values from -90 to 90 are supported."));return t}function Bi(t){return t<0?90-t:t}function Wi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Zi(){var t=[],e={};return{getSharedStringsXml:function(){return function(t){var e='<?xml version="1.0"?>';e+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';for(var n,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Wi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=i()).done;){var r=n.value,o=r.trim().length===r.length?"":' xml:space="preserve"';e+="<si><t".concat(o,">"),e+=bi(r),e+="</t></si>"}return e+"</sst>"}(t)},getSharedString:function(n){var i=e[n];return void 0===i&&(i=String(t.length),e[n]=i,t.push(n)),i}}}var Hi=/[\[\]\/\\:*?]+/;function Gi(t){if(!t)throw new Error("Sheet name can't be empty");if(t.length>31)throw new Error('Sheet name "'.concat(t,"\" can't be longer than 31 characters"));if(Hi.test(t))throw new Error('Sheet name "'.concat(t,'" contains illegal characters: []/\\:*?'))}function Vi(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Qi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Qi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Ji=["fileName"];function Xi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Ki(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.fileName;return function(t,e){var n=e.sheet,i=e.sheets,r=e.schema,o=e.columns,s=e.headerStyle,a=e.getHeaderStyle,l=e.fontFamily,c=e.fontSize,u=e.orientation,d=e.stickyRowsCount,h=e.stickyColumnsCount,p=e.showGridLines,f=e.rightToLeft,g=e.dateFormat,m=new ai;m.file("_rels/.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>'),m.file("[Content_Types].xml",'<?xml version="1.0" ?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default ContentType="application/xml" Extension="xml"/><Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" PartName="/xl/sharedStrings.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" PartName="/xl/styles.xml"/></Types>');var v=function(t){var e=t.data,n=t.sheetName,i=t.sheetNames,r=t.schema,o=t.columns,s=t.headerStyle,a=t.getHeaderStyle,l=t.fontFamily,c=t.fontSize,u=t.orientation,d=t.stickyRowsCount,h=t.stickyColumnsCount,p=t.showGridLines,f=t.rightToLeft,g=t.dateFormat,m=Zi(),v=m.getSharedStringsXml,y=m.getSharedString,b=function(t){var e=t.fontFamily,n=t.fontSize,i=Boolean(e||n);void 0===e&&(e="Calibri"),void 0===n&&(n=12);var r=[],o={},s=[],a={},l=[],c={},u=[],d={},h=[],p={};function f(t,f){var g,m=t.align,v=t.alignVertical,y=t.textRotation,b=t.indent,w=t.wrap,A=t.fontFamily,x=t.fontSize,C=t.fontWeight,M=t.fontStyle,L=t.color,I=t.backgroundColor,_=t.borderColor,S=t.borderStyle,k=t.leftBorderColor,T=t.leftBorderStyle,D=t.rightBorderColor,j=t.rightBorderStyle,N=t.topBorderColor,O=t.topBorderStyle,E=t.bottomBorderColor,z=t.bottomBorderStyle,F=f.format,R="".concat(A||"-",":").concat(x||"-",":").concat(C||"-",":").concat(M||"-",":").concat(L||"-"),P=I||"-",Y="".concat(N||_||"-",":").concat(O||S||"-")+"/"+"".concat(D||_||"-",":").concat(j||S||"-")+"/"+"".concat(E||_||"-",":").concat(z||S||"-")+"/"+"".concat(k||_||"-",":").concat(T||S||"-"),U="".concat(m||"-","/").concat(v||"-","/").concat(y||"-","/").concat(b||"-","/").concat(w||"-","/").concat(F||"-","/").concat(R,"/").concat(P,"/").concat(Y),B=a[U];if(void 0!==B)return B;F&&void 0===(g=o[F])&&(g=o[F]=String(100+r.length),r.push(F));var W,Z,H=i?0:void 0;return(A||x||C||M||L)&&void 0===(H=c[R])&&(H=c[R]=String(l.length),l.push({custom:!0,size:x||n,family:A||e,weight:C,style:M,color:L})),I&&void 0===(W=d[P])&&(W=d[P]=String(u.length),u.push({color:I})),(_||S||k||T||D||j||N||O||E||z)&&void 0===(Z=p[Y])&&(Z=p[Y]=String(h.length),h.push({left:{style:T||S,color:k||_},right:{style:j||S,color:D||_},top:{style:O||S,color:N||_},bottom:{style:z||S,color:E||_}})),s.push({fontId:H,fillId:W,borderId:Z,align:m,alignVertical:v,textRotation:y,indent:b,wrap:w,formatId:g}),a[U]=String(s.length-1)}return l.push({size:n,family:e,custom:i}),c["-:-"]=0,u.push({}),d["-"]=0,h.push({left:{},right:{},top:{},bottom:{}}),p["-:-/-:-/-:-/-:-"]=0,u.push({gray125:!0}),f({},{}),{getStylesXml:function(){return function(t){var e=t.formats,n=t.styles,i=t.fonts,r=t.fills,o=t.borders,s='<?xml version="1.0" ?>';if(s+='<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',e.length>0){s+='<numFmts count="'.concat(e.length,'">');for(var a=0;a<e.length;a++)s+='<numFmt numFmtId="'.concat(100+a,'" formatCode="').concat(yi(e[a]),'"/>');s+="</numFmts>"}s+='<fonts count="'.concat(i.length,'">');for(var l,c=Ri(i);!(l=c()).done;){var u=l.value,d=u.size,h=u.family,p=u.color,f=u.weight,g=u.style,m=u.custom;s+="<font>",s+='<sz val="'.concat(d,'"/>'),s+="<color ".concat(p?'rgb="'+yi(Yi(p))+'"':'theme="1"',"/>"),s+='<name val="'.concat(yi(h),'"/>'),s+='<family val="2"/>',m||(s+='<scheme val="minor"/>'),"bold"===f&&(s+="<b/>"),"italic"===g&&(s+="<i/>"),s+="</font>"}s+="</fonts>",s+='<fills count="'.concat(r.length,'">');for(var v,y=Ri(r);!(v=y()).done;){var b=v.value,w=b.color,A=b.gray125;s+="<fill>",w?(s+='<patternFill patternType="solid">',s+='<fgColor rgb="'.concat(yi(Yi(w)),'"/>'),s+='<bgColor indexed="64"/>',s+="</patternFill>"):s+=A?'<patternFill patternType="gray125"/>':'<patternFill patternType="none"/>',s+="</fill>"}s+="</fills>",s+='<borders count="'.concat(o.length,'">');for(var x,C=Ri(o);!(x=C()).done;){var M=x.value,L=M.left,I=M.right,_=M.top,S=M.bottom,k=function(t,e){var n=e.style,i=e.color;i&&!n&&(n="thin");var r=!!i;return"<".concat(t)+(n?' style="'.concat(yi(n),'"'):"")+(r?">":"/>")+(i?'<color rgb="'.concat(yi(Yi(i)),'"/>'):"")+(r?"</".concat(t,">"):"")};s+="<border>",s+=k("left",L),s+=k("right",I),s+=k("top",_),s+=k("bottom",S),s+="<diagonal/>",s+="</border>"}s+="</borders>",s+='<cellXfs count="'.concat(n.length,'">');for(var T,D=Ri(n);!(T=D()).done;){var j=T.value,N=j.fontId,O=j.fillId,E=j.borderId,z=j.align,F=j.alignVertical,R=j.textRotation,P=j.indent,Y=j.wrap,U=j.formatId;s+="<xf "+[void 0!==U?'numFmtId="'.concat(U,'"'):void 0,void 0!==U?'applyNumberFormat="1"':void 0,void 0!==N?'fontId="'.concat(N,'"'):void 0,void 0!==N?'applyFont="1"':void 0,void 0!==O?'fillId="'.concat(O,'"'):void 0,void 0!==O?'applyFill="1"':void 0,void 0!==E?'borderId="'.concat(E,'"'):void 0,void 0!==E?'applyBorder="1"':void 0,z||F||R||P||Y?'applyAlignment="1"':void 0].filter((function(t){return t})).join(" ")+">"+(z||F||R||P||Y?"<alignment"+(z?' horizontal="'.concat(yi(z),'"'):"")+(F?' vertical="'.concat(yi(F),'"'):"")+(R?' textRotation="'.concat(Bi(Ui(R)),'"'):"")+(P?' indent="'.concat(yi(String(P)),'"'):"")+(Y?' wrapText="1"':"")+"/>":"")+"</xf>"}return(s+="</cellXfs>")+"</styleSheet>"}({formats:r,styles:s,fonts:l,fills:u,borders:h})},getStyle:f}}({fontFamily:l,fontSize:c}),w=b.getStylesXml,A=b.getStyle;if(i&&o&&!Array.isArray(o[0]))throw new Error('In a "write multiple sheets" scenario, `columns` parameter must be an array of `columns` for each sheet.');i||(i=[n||"Sheet1"],e=[e],o&&(o=[o]),r&&(r=[r])),s&&!a&&(a=function(){return s});for(var x,C=Vi(i);!(x=C()).done;)Gi(x.value);for(var M,L=[],I=0,_=Vi(i);!(M=_()).done;)M.value,L.push(Fi(e[I],{schema:r&&r[I],columns:o&&o[I],getHeaderStyle:a,getStyle:A,getSharedString:y,customFont:l||c,dateFormat:g,orientation:u,stickyRowsCount:d,stickyColumnsCount:h,showGridLines:p,rightToLeft:f,sheetId:I+1})),I++;return{sheets:i.map((function(t,e){return{id:e+1,name:t,data:L[e]}})),getSharedStringsXml:v,getStylesXml:w}}({data:t,sheetName:n,sheetNames:i,schema:r,columns:o,headerStyle:s,getHeaderStyle:a,fontFamily:l,fontSize:c,orientation:u,stickyRowsCount:d,stickyColumnsCount:h,showGridLines:p,rightToLeft:f,dateFormat:g}),y=v.sheets,b=v.getSharedStringsXml,w=v.getStylesXml,A=m.folder("xl");A.file("_rels/workbook.xml.rels",function(t){var e=t.sheets;return'<?xml version="1.0" ?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+e.map((function(t){var e=t.id;return'<Relationship Id="rId'.concat(e,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet').concat(e,'.xml"/>')})).join("")+'<Relationship Id="rId'.concat(e.length+1,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/>')+'<Relationship Id="rId'.concat(e.length+2,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>')+"</Relationships>"}({sheets:y})),A.file("workbook.xml",function(t){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"><workbookPr/>'+(t.stickyRowsCount||t.stickyColumnsCount?"<bookViews><workbookView/></bookViews>":"")+"<sheets>"+t.sheets.map((function(t){var e=t.id,n=t.name;return'<sheet name="'.concat(yi(n),'" sheetId="').concat(e,'" r:id="rId').concat(e,'"/>')})).join("")+"</sheets><definedNames/><calcPr/></workbook>"}({sheets:y,stickyRowsCount:d,stickyColumnsCount:h})),A.file("styles.xml",w()),A.file("sharedStrings.xml",b());for(var x,C=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Xi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(y);!(x=C()).done;){var M=x.value,L=M.id,I=M.data;A.file("worksheets/sheet".concat(L,".xml"),I)}return m.generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",compression:"deflate"})}(t,function(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}(e,Ji)).then((function(t){return n?li.saveAs(t,n):t}))}class qi{constructor(t,e){this._table=t,this._reportSet=e}static addHandles(t,n){e()("table",t).each((function(){const t=e()(this);if(t.find("tr").filter(((t,n)=>e()(n).find(".ixbrl-element").length>0)).length>1){t.css("position","relative");const i=new qi(t,n);e()('<div class="ixbrl-table-handle"><span>Export table</span></div>').appendTo(t).on("click",(()=>i.exportTable()))}}))}_getRawTable(){const t=this._table,n=this._reportSet;let i=0;const r=[];t.find("tr").each((function(){const t=[];e()(this).find("td:visible, th:visible").each((function(){const i=e()(this).attr("colspan");if(i)for(let e=0;e<i-1;e++)t.push({type:"static",value:""});const r=e()(this).find(".ixbrl-element").addBack(".ixbrl-element");let o=null;if(r.length>0){const t=r.first().data("ivids");o=n.getItemById(t)}if(o instanceof cn){const n={type:"fact",fact:o},i=e()(this)[0];let s=r[0],a=s.textContent;for(;s!==i;)s=null!==s.previousSibling?s.previousSibling:s.parentNode,3==s.nodeType&&(a=s.textContent+a);null!==a.match(/[\(-]\s*\d/)&&(n.negative=!0),n.topBorder=null!==e()(this).css("border-top-style").match(/(solid|double)/),n.bottomBorder=null!==e()(this).css("border-bottom-style").match(/(solid|double)/),t.push(n)}else{const n=e()(this).text();t.push({type:"static",value:n})}})),t.length>i&&(i=t.length),r.push(t)}));for(const t of r)for(;t.length<i;)t.push({type:"static",value:""});return r}_getFactsInSlice(t){return t.filter((t=>"fact"===t.type)).map((t=>t.fact))}_getConstantAspectsForSlice(t,e){const n=this._getFactsInSlice(t);if(0==n.length)return null;const i=new Set;for(const t of n)for(const e of t.aspects())i.add(e.name());const r=new Map;for(const t of i){r.set(t,n[0].aspect(t));for(let e=1;e<n.length;e++)void 0!==r.get(t)&&r.get(t).equalTo(n[e].aspect(t))||r.delete(t)}return r}_writeTable(t){const e=[],n=[];for(const[i,r]of t.entries()){const t=[];for(const[e,i]of r.entries()){const r={};"fact"===i.type?(n[e]={width:18},r.value=Number(i.fact.value()),r.type=Number,r.format="#,##0",i.negative?r.value=-1*Math.abs(r.value):r.value=Math.abs(r.value),i.topBorder&&(r.topBorderStyle="medium",r.topBorderColor="#000000"),i.bottomBorder&&(r.bottomBorderStyle="medium",r.bottomBorderColor="#000000")):"aspectLabel"===i.type?(r.value=i.value,r.type=String):(r.value=i.value,r.type=String,r.color="#707070"),t.push(r)}e.push(t)}return{columns:n,data:e}}exportTable(){const t=this._getRawTable();let e=0;const n=[],i=new Set;for(const r of t){const t=this._getConstantAspectsForSlice(r);if(n.push(t),null!==t)for(const[e,n]of t)i.add(e);r.length>e&&(e=r.length)}const r=[],o=new Set;for(let n=0;n<e;n++){const e=t.map((t=>t[n])),i=this._getConstantAspectsForSlice(e);if(r.push(i),null!==i)for(const[t,e]of i)o.add(t)}const s=new Set(o);for(const t of o)for(const[e,n]of Object.entries(r))null===n||n.get(t)||s.delete(t);for(const t of o)i.delete(t);for(const n of o){const o=Array.from(i).map((()=>""));for(let t=0;t<e;t++){let e=(r[t]||new Map).get(n);void 0!==e&&(e=e.valueLabel("std")),o.push({type:"aspectLabel",value:e||""})}t.unshift(o)}for(let e=o.size;e<t.length;e++){const r=[];for(const t of i){let i=(n[e-o.size]||new Map).get(t);void 0!==i&&(i=i.valueLabel("std")),r.push({type:"aspectLabel",value:i||""})}t[e]=r.concat(t[e])}const a=this._writeTable(t);Ki(a.data,{columns:a.columns,fileName:"table.xlsx"})}}var $i=0;class tr{constructor(t,e,n){this.wrapperNodes=e,this.escaped=!1,this.continuations=[],this.docIndex=n,this.footnote=!1,this.id=t,this.isHidden=!1,this.docOrderindex=$i++}continuationIds(){return this.continuations.map((t=>t.id))}chainIXIds(){return[this.id].concat(this.continuationIds())}textContent(){return[this].concat(this.continuations).map((t=>t.wrapperNodes.first().text())).join(" ")}htmlHidden(){return this.wrapperNodes.filter(":not(.ixbrl-no-highlight)").is(":hidden")||this.wrapperNodes.is(((t,n)=>function(t){const e=parseFloat(t.split(",")[3]);return!isNaN(e)&&e<.1}(e()(n).css("color"))))}}class er{constructor(){this.index=[]}addItem(t,e){this.index.push({vuid:t,docIndex:e})}getAdjacentItem(t,e){const n=this.index.findIndex((e=>e.vuid===t)),i=this.index.length;return this.index[(n+e+i)%i].vuid}getFirstInDocument(t){return this.index.filter((e=>e.docIndex===t))[0].vuid}getLastInDocument(t){return this.index.filter((e=>e.docIndex===t)).at(-1).vuid}}class nr{constructor(t){this.node=e()("#dialog-templates").find(t).clone().appendTo("#ixv #dialog-container"),e()(".close",this.node).on("click",(()=>this.close())),e()(document).on("keyup",(t=>{27===t.which&&this.close()}))}addButton(t,n,i){const r=this.node.find(".buttons"),o=e()("<button></button>").text(t).addClass(n?"dialog-button-primary":"dialog-button-cancel");r.append(o),o.on("click",(()=>{i&&!i()||this.close()}))}close(){e()(".dialog-mask").hide(),this.node.get(0).close(),this.node.remove()}show(){e()(".dialog-mask").show(),this.node.get(0).showModal(),this.node.show()}}class ir extends nr{constructor(t,e,n,i){super(".dialog.message-box"),this.title=t,this.message=e,this.okText=n,this.cancelText=i}show(t,n){this.node.find(".title").text(this.title),this.node.find(".message").empty().append(this.message);const i=this.node.find(".buttons").empty(),r=e()("<button></button>").text(this.okText).addClass("dialog-button-primary");if(i.append(r),r.on("click",(()=>{this.close(),t&&t()})),this.cancelText){const t=e()("<button></button>").text(this.cancelText).addClass("dialog-button-cancel");i.append(t),t.on("click",(()=>{this.close(),n&&n()}))}super.show(this)}showAsync(){return new Promise(((t,e)=>{this.show((()=>t(!0)),(()=>t(!1)))}))}}class rr extends Error{}function or(t){return-1==t.indexOf(":")?t:t.substring(t.indexOf(":")+1)}class sr{constructor(t,n,i){this._iv=t,this._reportSet=i,this._iframes=n,this._contents=n.contents(),this.onSelect=e().Callbacks(),this.onMouseEnter=e().Callbacks(),this.onMouseLeave=e().Callbacks(),this._ixNodeMap={},this._docOrderItemIndex=new er,this._currentDocumentIndex=0}_checkContinuationCount(){const t=Object.keys(this.continuationOfMap).length;if(t>this._iv.options.continuationElementLimit){const n=e()("<div></div>").append(e()("<p></p>").text(`This document contains a very large number of iXBRL elements (found ${t} ix:continuation elements).`)).append(e()("<p></p>").text("You may experience performance problems viewing this document, or the viewer may not load at all.")).append(e()("<p></p>").text("Do you want to continue trying to load this document?"));return new ir("Large document warning",n,"Continue","Cancel").showAsync().then((t=>{if(!t)throw new rr("Too many continuations")}))}return Promise.resolve()}initialize(){return new Promise((async(t,n)=>{const i=this;i._buildContinuationMaps(),i._checkContinuationCount().catch((t=>{throw t})).then((()=>i._iv.setProgress("Pre-processing document"))).then((()=>{i._iframes.each((function(t){e()(this).data("selected",t==i._currentDocumentIndex);const n=e()(this).data("report-index");i._preProcessiXBRL(e()(this).contents().find("body").get(0),n,t,!1)})),async function(){for(const[t,n]of i._iframes.toArray().entries()){const r=e()(n).contents().find("body").get(0);await i._iv.pluginPromise("preProcessiXBRL",r,t),i._iv.isReviewModeEnabled()&&await new Promise(((n,o)=>{i._iv.setProgress("Finding untagged numbers and dates").then((()=>{const o=e()(r).children(":visible");o.hide(),e()(r).addClass("review"),i._wrapUntaggedNumbers(e()(r),t,!1),o.show(),n()}))}))}}().then((()=>i._iv.setProgress("Preparing document"))).then((()=>{this._reportSet.setIXNodeMap(this._ixNodeMap),this._applyStyles(),this._bindHandlers(),this.scale=1,this._setTitle(0),this._addDocumentSetTabs(),t()}))})).catch((t=>n(t)))}))}_addDocumentSetTabs(){if(this._reportSet.isMultiDocumentViewer()){e()("#ixv .ixds-tabs").show();for(const[t,n]of this._reportSet.reportFiles().entries())e()('<button class="tab"></button>').text(n.file).prop("title",n.file).data("ix-doc-id",t).on("click",(()=>this.selectDocument(t))).appendTo(e()("#ixv #viewer-pane .ixds-tabs .tab-area"));e()("#ixv #viewer-pane .ixds-tabs .tab-area .tab").eq(0).addClass("active")}}_wrapNode(t){let n="<span>";if("block"===getComputedStyle(t).getPropertyValue("display"))n="<div>";else{const e=t.getElementsByTagName("*");for(var i=0;i<e.length;i++)if("block"===getComputedStyle(e[i]).getPropertyValue("display")){n="<div>";break}}return e()(t).wrap(n),t.parentNode}_wrapUntaggedNumbers(t,n,i){const r=this,o=/(?:^|\s|;)-(?:sec|esef)-ix-hidden:\s*([^\s;]+)/;t.contents().each((function(){if(this.nodeType===Node.ELEMENT_NODE){const t=or(this.nodeName.toUpperCase());"NONFRACTION"===t||"NONNUMERIC"===t&&null!==this.getAttribute("format")||this.hasAttribute("style")&&this.getAttribute("style").match(o)||r._wrapUntaggedNumbers(e()(this),n,"NONNUMERIC"===t)}else if(this.nodeType===Node.TEXT_NODE){const n=this.nodeValue,r=e()("<div></div>");let o=0;!function(t,e){for(var n;null!==(n=si.exec(t));)e(n,void 0!==n[2],void 0!==n[1])}(n,(function(s,a,l){if(s.index>o&&r.append(document.createTextNode(n.substring(o,s.index))),a||i&&0===s.index&&s.index+s[0].length===n.length&&n===t.text())r.append(document.createTextNode(s[0]));else{const t=l?"review-untagged-date":"review-untagged-number";e()("<span></span>").text(s[0]).addClass(t).appendTo(r)}o=s.index+s[0].length})),o<n.length&&r.append(document.createTextNode(n.substring(o,n.length))),e()(this).replaceWith(r.contents())}}))}_showDocumentAndElement(t,n){if(this.selectDocument(t),void 0!==n&&""!=n)for(const i of[n,decodeURIComponent(n)]){const n=e().escapeSelector(i),r=this._iframes.eq(t).contents().find("#"+n+', a[name="'+n+'"]');if(r.length>0)return void this.showElement(r.eq(0))}}_updateLink(t){const n=e()(t).attr("href");if(void 0!==n){const[i,r]=n.split("#",2),o=this._reportSet.reportFiles().indexOf(i);n.includes("/")||-1==o?i&&e()(t).attr("target","_blank"):e()(t).on("click",(t=>{this._showDocumentAndElement(o,r),t.preventDefault()}))}}_findOrCreateWrapperNode(t,n){if(n)return e()(t).addClass("ixbrl-element-hidden");const i=t.closest("td,th"),r=[],o=e()(t).text();if(null!==i&&o.length>0){const t=e()(i).text(),n=t.indexOf(o),s=t.substring(0,n)+t.substring(n+o.length);/[0-9A-Za-z]/.test(s)||r.push(i)}0==r.length&&r.push(this._wrapNode(t));for(const t of r[0].querySelectorAll("*"))"absolute"===getComputedStyle(t).getPropertyValue("position")&&r.push(t);for(const[t,e]of r.entries())r.length>1&&e.classList.add("ixbrl-contains-absolute"),0==t?e.classList.add("ixbrl-element"):e.classList.add("ixbrl-sub-element");return e()(r)}_addIdToNode(t,e){const n=t.data("ivids")||[];n.push(e),t.data("ivids",n)}_buildContinuationMaps(){const t={},n={};this._iframes.each(((i,r)=>{const o=e()(r).data("report-index");e()(r).contents().find("body *").each(((e,i)=>{const r=or(i.nodeName).toUpperCase();if(["NONNUMERIC","NONFRACTION","FOOTNOTE","CONTINUATION"].includes(r)&&i.hasAttribute("id")){const e=Xe(o,i.getAttribute("id")),s=Xe(o,i.getAttribute("continuedAt"));null!==s&&(t[e]=s),"CONTINUATION"!=r&&(n[e]=[])}}))})),this.continuationOfMap={};for(const[e,r]of Object.entries(n))for(var i=e;void 0!==t[i];)i=t[i],r.push(i),void 0!==this.continuationOfMap[i]&&console.log("Continuation '"+i+"' is a continuation of multiple items."),this.continuationOfMap[i]=e;this.itemContinuationMap=n}_getOrCreateIXNode(t,e,n,i){let r=this._ixNodeMap[t];return r||(r=new tr(t,e,n),this._ixNodeMap[t]=r,r.isHidden=i),r}_preProcessiXBRL(t,e,n,i){const r=or(t.nodeName).toUpperCase(),o="FOOTNOTE"===r,s="CONTINUATION"===r,a="NONNUMERIC"===r,l="NONFRACTION"===r,c=a||l;if(1===t.nodeType){const u=Xe(e,t.getAttribute("id"));if(c||o){if(t.hasAttribute("id")){let e=this._findOrCreateWrapperNode(t,i);this._addIdToNode(e.first(),u);let r=this._getOrCreateIXNode(u,e,n,i);if(this._docOrderItemIndex.addItem(u,n),l&&(e.addClass("ixbrl-element-nonfraction"),t.hasAttribute("scale"))){const e=Number(t.getAttribute("scale"));Number.isNaN(e)||0===e||(r.scale=e)}a&&(e.addClass("ixbrl-element-nonnumeric"),t.hasAttribute("escape")&&t.getAttribute("escape").match(/^(true|1)$/)&&(r.escaped=!0)),o&&(e.addClass("ixbrl-element-footnote"),r.footnote=!0)}}else if(s){if(t.hasAttribute("id")&&void 0!==this.continuationOfMap[u]){let e=this._findOrCreateWrapperNode(t,i);this._addIdToNode(e.first(),this.continuationOfMap[u]),this._getOrCreateIXNode(u,e,n,i),e.addClass("ixbrl-continuation")}}else if("HIDDEN"==r)i=!0;else{const o=Xe(e,function(t){if(t.hasAttribute("style")){const e=/(?:^|\s|;)(?:-sec|-esef)?-ix-hidden:\s*([^\s;]+)/,n=t.getAttribute("style").match(e);if(n)return n[1]}return null}(t));if(null!==o){let e=this._findOrCreateWrapperNode(t,i);e.addClass("ixbrl-element").data("ivids",[o]),this._docOrderItemIndex.addItem(o,n);const r=this._ixNodeMap[o];r?(r.wrapperNodes=e,r.docIndex=n):this._ixNodeMap[o]=new tr(o,e,n)}"A"==r&&this._updateLink(t)}}this._preProcessChildNodes(t,e,n,i)}_preProcessChildNodes(t,e,n,i){for(const r of t.childNodes)this._preProcessiXBRL(r,e,n,i)}_applyStyles(){const t=e()("<style>").prop("type","text/css").text(n(95).toString()).appendTo(this._iframes.contents().find("head"));this._iv.callPluginMethod("updateViewerStyleElements",t)}contents(){return this._iframes.contents()}_selectAdjacentTag(t,e){var n;null!==e?(n=this._docOrderItemIndex.getAdjacentItem(e.vuid,t),this.showDocumentForItemId(n)):n=t>0?this._docOrderItemIndex.getFirstInDocument(this._currentDocumentIndex):this._docOrderItemIndex.getLastInDocument(this._currentDocumentIndex);const i=this.elementsForItemId(n);this.showElement(i),this.selectElement(n,this._ixIdsForElement(i))}_bindHandlers(){const t=this;e()(".ixbrl-element",this._contents).on("click",(function(n){n.stopPropagation(),t.selectElementByClick(e()(this))})).on("mouseenter",(function(n){t._mouseEnter(e()(this))})).on("mouseleave",(function(n){t._mouseLeave(e()(this))})),e()("body",this._contents).on("click",(()=>t.selectElement(null))),e()("#iframe-container .zoom-in").on("click",(()=>this.zoomIn())),e()("#iframe-container .zoom-out").on("click",(()=>this.zoomOut())),e()("#iframe-container .print").on("click",(()=>this.currentDocument().get(0).contentWindow.print())),qi.addHandles(this._contents,this._reportSet)}selectNextTag(t){this._selectAdjacentTag(1,t)}selectPrevTag(t){this._selectAdjacentTag(-1,t)}intersect(t,e){const n={left:Math.max(t.left,e.left),top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom)};return n.width=n.right-n.left,n.height=n.bottom-n.top,n}isScrollableElement(t){const n=e()(t).css("overflow-y");if(t.clientHeight>0&&t.clientHeight<t.scrollHeight&&("auto"==n||"scroll"==n))return!0;const i=e()(t).css("overflow-x");return t.clientWidth>0&&t.clientWidth<t.scrollWidth&&("auto"==i||"scroll"==i)}isFullyVisible(t){var n=t.getBoundingClientRect();const i=t.getBoundingClientRect();for(var r=e()(t.parentElement);!r.is("body");){if(this.isScrollableElement(r[0])&&(n=this.intersect(n,r[0].getBoundingClientRect())),n.width<i.width||n.height<i.height)return!1;r=r.parent()}const o="CSS1Compat"!=t.ownerDocument.compatMode?r:r.closest("html").get(0);return n.left>0&&n.top>0&&n.right<o.clientWidth&&n.bottom<o.clientHeight}showElement(t){const e=t.filter(":not(.ixbrl-no-highlight)").get(0);this.isFullyVisible(e)||e.scrollIntoView({block:"center",inline:"center"})}clearHighlighting(){e()("body",this._iframes.contents()).find(".ixbrl-element, .ixbrl-sub-element").removeClass("ixbrl-selected").removeClass("ixbrl-related").removeClass("ixbrl-linked-highlight")}_ixIdsForElement(t){return t.data("ivids")}selectElement(t,e,n){null!==t?this.onSelect.fire(t,e,n):this.onSelect.fire(null)}selectElementByClick(t){let n=[];const i=this;let r;t.hasClass(".ixbrl-element")||(t=t.closest(".ixbrl-element")),t.parents(".ixbrl-element").addBack().each((function(){const o=i._ixIdsForElement(e()(this));n=n.concat(o),e()(this).text()==t.text()&&void 0===r&&(r=o[0])})),this.selectElement(r,n,!0)}_mouseEnter(t){const e=t.data("ivids")[0];this.onMouseEnter.fire(e)}_mouseLeave(t){const e=t.data("ivids")[0];this.onMouseLeave.fire(e)}highlightRelatedFact(t){this.changeItemClass(t.vuid,"ixbrl-related")}highlightRelatedFacts(t){for(const e of t)this.changeItemClass(e.vuid,"ixbrl-related")}clearRelatedHighlighting(t){e()(".ixbrl-related",this._contents).removeClass("ixbrl-related")}elementsForItemId(t){if(!(t in this._ixNodeMap))throw new Error(`Attempting to retrieve IXNode with missing key: ${t}`);return this._ixNodeMap[t].wrapperNodes}elementsForItemIds(t){return e()(t.map((t=>this.elementsForItemId(t).get())).flat())}changeItemClass(t,e,n){const i=this.elementsForItemIds([t].concat(this.itemContinuationMap[t]));n?i.removeClass(e):i.addClass(e)}highlightItem(t){this.clearHighlighting(),this.changeItemClass(t,"ixbrl-selected")}showItemById(t){if(null!==t){let e=this.elementsForItemId(t);this.showDocumentForItemId(t),e.length>0&&this.showElement(e)}}highlightAllTags(t,n){const i={};e().each(n,(function(t,e){i[e]=t%3}));const r=this._reportSet,o=this;t?(e()(".ixbrl-element",this._contents).addClass("ixbrl-highlight").each((function(){const t=e()(this).data("ivids").map((t=>o._ixNodeMap[t])).filter((t=>!t.footnote))[0];if(void 0!==t){const e=r.getItemById(t.id);if(void 0!==e){const n=o.elementsForItemIds(t.chainIXIds()),r=i[e.conceptQName().prefix];void 0!==r&&n.addClass("ixbrl-highlight-"+r)}}})),e()(".ixbrl-sub-element",this._contents).addClass("ixbrl-highlight")):e()(".ixbrl-element, .ixbrl-sub-element",this._contents).removeClass(((t,e)=>(e.match(/(^|\s)ixbrl-highlight\S*/g)||[]).join(" ")))}_zoom(){const t=this._contents.scrollTop(),n=e()("html",this._contents).height();e()("body",this._contents).css("zoom",this.scale);const i=e()("html",this._contents).height();this._contents.scrollTop(i*t/n)}zoomIn(){this.scale*=1.1,this._zoom()}zoomOut(){this.scale/=1.1,this._zoom()}factsInSameTable(t){var n=[];return this.elementsForItemId(t.vuid).closest("table").find(".ixbrl-element").each((function(){n=n.concat(e()(this).data("ivids"))})),n}linkedHighlightFact(t){this.changeItemClass(t.vuid,"ixbrl-linked-highlight")}clearLinkedHighlightFact(t){this.changeItemClass(t.vuid,"ixbrl-linked-highlight",!0)}_setTitle(t){const n=e()("head title",this._iframes.eq(t).contents()).text();e()("#top-bar .document-title").text(n).attr("aria-label","Inline Viewer: "+n)}showDocumentForItemId(t){this.selectDocument(this._ixNodeMap[t].docIndex)}currentDocument(){return this._iframes.eq(this._currentDocumentIndex)}selectDocument(t){this._currentDocumentIndex=t,e()("#ixv #viewer-pane .ixds-tabs .tab").removeClass("active").eq(t).addClass("active"),this._iframes.height(0).data("selected",!1).eq(t).height("100%").data("selected",!0),this._setTitle(t)}*postProcess(){for(const t of this._iframes.get()){const n=e()(t).contents().get(0).querySelectorAll(".ixbrl-contains-absolute");for(const[t,e]of n.entries())"inline"!==getComputedStyle(e).getPropertyValue("display")&&e.getBoundingClientRect().height,t%100==0&&(yield);for(const[t,e]of n.entries())"inline"!==getComputedStyle(e).getPropertyValue("display")&&0==e.getBoundingClientRect().height&&e.classList.add("ixbrl-no-highlight"),t%100==0&&(yield)}}postLoadAsync(){Je(this.postProcess())}}var ar=n(790),lr=n.n(ar),cr=n(998),ur=n.n(cr);class dr{constructor(t){this._reportSet=t,this.ready=!1}*buildSearchIndex(t){var e=[],n={},i=this._reportSet.facts();this.periods={};for(const t of[!1,!0])for(var r=0;r<i.length;r++){var o=i[r];if(o.isHidden()!==t)continue;var s={id:o.vuid},a=o.getLabel("std");for(var l in s.concept=o.conceptQName().localname,s.doc=o.getLabel("doc"),s.date=o.periodTo(),s.startDate=o.periodFrom(),n=o.dimensions())o.report.getConcept(l).isTypedDimension()?null!==n[l]&&(a+=" "+n[l]):a+=" "+o.report.getLabel(n[l],"std");s.label=a,s.ref=o.concept().referenceValuesAsString();const u=o.widerConcepts();u.length>0&&(s.widerConcept=o.report.qname(u[0]).localname,s.widerLabel=o.report.getLabel(u[0],"std"),s.widerDoc=o.report.getLabel(u[0],"doc")),e.push(s);var c=o.period();c&&(this.periods[c.key()]=c.toString()),r%100==0&&(yield)}const u=new(ur().Builder);u.pipeline.add(ur().trimmer,ur().stopWordFilter,ur().stemmer),u.searchPipeline.add(ur().stemmer),u.ref("id"),u.field("label"),u.field("concept"),u.field("startDate"),u.field("date"),u.field("doc"),u.field("ref"),u.field("widerLabel"),u.field("widerDoc"),u.field("widerConcept");for(const[t,n]of e.entries())u.add(n),t%100==0&&(yield);this._searchIndex=u.build(),this.ready=!0,t()}visibilityFilter(t,e){return"*"===t.visibilityFilter||"visible"===t.visibilityFilter&&!e.isHidden()||"hidden"===t.visibilityFilter&&e.isHidden()}periodFilter(t,e){return 0===t.periodFilter.length||t.periodFilter.some((t=>e.period().key()===t))}conceptTypeFilter(t,e){return"*"===t.conceptTypeFilter||t.conceptTypeFilter===(e.isNumeric()?"numeric":"text")}dimensionTypeFilter(t,e){const n=t.dimensionTypeFilter.includes("typed"),i=t.dimensionTypeFilter.includes("explicit");return 0===t.dimensionTypeFilter.length||n&&e.hasTypedDimension()||i&&e.hasExplicitDimension()}factValueFilter(t,e){return"*"===t.factValueFilter||"positive"===t.factValueFilter&&e.isPositive()||"negative"===t.factValueFilter&&e.isNegative()}calculationsFilter(t,e){const n=t.calculationsFilter.includes("summation"),i=t.calculationsFilter.includes("contributor");return 0===t.calculationsFilter.length||n&&e.isCalculationSummation()||i&&e.isCalculationContributor()}namespacesFilter(t,e){return 0===t.namespacesFilter.length||t.namespacesFilter.some((t=>e.getConceptPrefix()===t))}dataTypesFilter(t,e){return null==t.dataTypesFilter||0===t.dataTypesFilter.length||t.dataTypesFilter.some((t=>e.concept().dataType()?.name===t))}unitsFilter(t,e){return 0===t.unitsFilter.length||t.unitsFilter.some((t=>e.unit()?.value()===t))}scalesFilter(t,e){return 0===t.scalesFilter.length||t.scalesFilter.some((t=>e.scale()===Number(t)))}targetDocumentFilter(t,e){return 0===t.targetDocumentFilter.length||t.targetDocumentFilter.some((t=>(e.targetDocument()??":default")===t))}mandatoryFactFilter(t,e){return!t.showMandatoryFacts||e.isMandatory()}search(t){if(!this.ready)return;const e=this._searchIndex.search(t.searchString),n=[],i=this,r=[this.visibilityFilter,this.periodFilter,this.conceptTypeFilter,this.dimensionTypeFilter,this.factValueFilter,this.calculationsFilter,this.namespacesFilter,this.dataTypesFilter,this.unitsFilter,this.scalesFilter,this.targetDocumentFilter,this.mandatoryFactFilter];return e.forEach(((e,o)=>{const s=i._reportSet.getItemById(e.ref);r.every((e=>e(t,s)))&&n.push({fact:s,score:e.score})})),n}}function hr(t){return t+.5|0}const pr=(t,e,n)=>Math.max(Math.min(t,n),e);function fr(t){return pr(hr(2.55*t),0,255)}function gr(t){return pr(hr(255*t),0,255)}function mr(t){return pr(hr(t/2.55)/100,0,1)}function vr(t){return pr(hr(100*t),0,100)}const yr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},br=[..."0123456789ABCDEF"],wr=t=>br[15&t],Ar=t=>br[(240&t)>>4]+br[15&t],xr=t=>(240&t)>>4==(15&t);const Cr=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Mr(t,e,n){const i=e*Math.min(n,1-n),r=(e,r=(e+t/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function Lr(t,e,n){const i=(i,r=(i+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function Ir(t,e,n){const i=Mr(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function _r(t){const e=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(e,n,i),o=Math.min(e,n,i),s=(r+o)/2;let a,l,c;return r!==o&&(c=r-o,l=s>.5?c/(2-r-o):c/(r+o),a=function(t,e,n,i,r){return t===r?(e-n)/i+(e<n?6:0):e===r?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,r),a=60*a+.5),[0|a,l||0,s]}function Sr(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(gr)}function kr(t,e,n){return Sr(Mr,t,e,n)}function Tr(t){return(t%360+360)%360}const Dr={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},jr={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Nr;const Or=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Er=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,zr=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Fr(t,e,n){if(t){let i=_r(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=kr(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Rr(t,e){return t?Object.assign(e||{},t):t}function Pr(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=gr(t[3]))):(e=Rr(t,{r:0,g:0,b:0,a:1})).a=gr(e.a),e}function Yr(t){return"r"===t.charAt(0)?function(t){const e=Or.exec(t);let n,i,r,o=255;if(e){if(e[7]!==n){const t=+e[7];o=e[8]?fr(t):pr(255*t,0,255)}return n=+e[1],i=+e[3],r=+e[5],n=255&(e[2]?fr(n):pr(n,0,255)),i=255&(e[4]?fr(i):pr(i,0,255)),r=255&(e[6]?fr(r):pr(r,0,255)),{r:n,g:i,b:r,a:o}}}(t):function(t){const e=Cr.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?fr(+e[5]):gr(+e[5]));const r=Tr(+e[2]),o=+e[3]/100,s=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return Sr(Ir,t,e,n)}(r,o,s):"hsv"===e[1]?function(t,e,n){return Sr(Lr,t,e,n)}(r,o,s):kr(r,o,s),{r:n[0],g:n[1],b:n[2],a:i}}(t)}class Ur{constructor(t){if(t instanceof Ur)return t;const e=typeof t;let n;var i,r,o;"object"===e?n=Pr(t):"string"===e&&(o=(i=t).length,"#"===i[0]&&(4===o||5===o?r={r:255&17*yr[i[1]],g:255&17*yr[i[2]],b:255&17*yr[i[3]],a:5===o?17*yr[i[4]]:255}:7!==o&&9!==o||(r={r:yr[i[1]]<<4|yr[i[2]],g:yr[i[3]]<<4|yr[i[4]],b:yr[i[5]]<<4|yr[i[6]],a:9===o?yr[i[7]]<<4|yr[i[8]]:255})),n=r||function(t){Nr||(Nr=function(){const t={},e=Object.keys(jr),n=Object.keys(Dr);let i,r,o,s,a;for(i=0;i<e.length;i++){for(s=a=e[i],r=0;r<n.length;r++)o=n[r],a=a.replace(o,Dr[o]);o=parseInt(jr[s],16),t[a]=[o>>16&255,o>>8&255,255&o]}return t}(),Nr.transparent=[0,0,0,0]);const e=Nr[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||Yr(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Rr(this._rgb);return t&&(t.a=mr(t.a)),t}set rgb(t){this._rgb=Pr(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${mr(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(t=this._rgb,e=(t=>xr(t.r)&&xr(t.g)&&xr(t.b)&&xr(t.a))(t)?wr:Ar,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=_r(t),n=e[0],i=vr(e[1]),r=vr(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${r}%, ${mr(t.a)})`:`hsl(${n}, ${i}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let r;const o=e===r?.5:e,s=2*o-1,a=n.a-i.a,l=((s*a==-1?s:(s+a)/(1+s*a))+1)/2;r=1-l,n.r=255&l*n.r+r*i.r+.5,n.g=255&l*n.g+r*i.g+.5,n.b=255&l*n.b+r*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=zr(mr(t.r)),r=zr(mr(t.g)),o=zr(mr(t.b));return{r:gr(Er(i+n*(zr(mr(e.r))-i))),g:gr(Er(r+n*(zr(mr(e.g))-r))),b:gr(Er(o+n*(zr(mr(e.b))-o))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Ur(this.rgb)}alpha(t){return this._rgb.a=gr(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=hr(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Fr(this._rgb,2,t),this}darken(t){return Fr(this._rgb,2,-t),this}saturate(t){return Fr(this._rgb,1,t),this}desaturate(t){return Fr(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=_r(t);n[0]=Tr(n[0]+e),n=kr(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}const Br=(()=>{let t=0;return()=>t++})();function Wr(t){return null==t}function Zr(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function Hr(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function Gr(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Vr(t,e){return Gr(t)?t:e}function Qr(t,e){return void 0===t?e:t}function Jr(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function Xr(t,e,n,i){let r,o,s;if(Zr(t))if(o=t.length,i)for(r=o-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r<o;r++)e.call(n,t[r],r);else if(Hr(t))for(s=Object.keys(t),o=s.length,r=0;r<o;r++)e.call(n,t[s[r]],s[r])}function Kr(t,e){let n,i,r,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(r=t[n],o=e[n],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function qr(t){if(Zr(t))return t.map(qr);if(Hr(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let r=0;for(;r<i;++r)e[n[r]]=qr(t[n[r]]);return e}return t}function $r(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function to(t,e,n,i){if(!$r(t))return;const r=e[t],o=n[t];Hr(r)&&Hr(o)?eo(r,o,i):e[t]=qr(o)}function eo(t,e,n){const i=Zr(e)?e:[e],r=i.length;if(!Hr(t))return t;const o=(n=n||{}).merger||to;let s;for(let e=0;e<r;++e){if(s=i[e],!Hr(s))continue;const r=Object.keys(s);for(let e=0,i=r.length;e<i;++e)o(r[e],t,s,n)}return t}function no(t,e){return eo(t,e,{merger:io})}function io(t,e,n){if(!$r(t))return;const i=e[t],r=n[t];Hr(i)&&Hr(r)?no(i,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=qr(r))}const ro={"":t=>t,x:t=>t.x,y:t=>t.y};function oo(t,e){const n=ro[e]||(ro[e]=function(t){const e=function(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function so(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ao=t=>void 0!==t,lo=t=>"function"==typeof t,co=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0},uo=Math.PI,ho=2*uo,po=Number.POSITIVE_INFINITY,fo=uo/2,go=Math.log10,mo=Math.sign;function vo(t,e,n){return Math.abs(t-e)<n}function yo(t){const e=Math.round(t);t=vo(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(go(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function bo(t){return!isNaN(parseFloat(t))&&isFinite(t)}function wo(t){return t*(uo/180)}function Ao(t){if(!Gr(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function xo(t){return(t%ho+ho)%ho}function Co(t,e,n){return Math.max(e,Math.min(n,t))}function Mo(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function Lo(t,e,n){n=n||(n=>t[n]<e);let i,r=t.length-1,o=0;for(;r-o>1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const Io=(t,e,n,i)=>Lo(t,n,i?i=>{const r=t[i][e];return r<n||r===n&&t[i+1][e]===n}:i=>t[i][e]<n),_o=(t,e,n)=>Lo(t,n,(i=>t[i][e]>=n)),So=["push","pop","shift","splice","unshift"];function ko(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(e);-1!==r&&i.splice(r,1),i.length>0||(So.forEach((e=>{delete t[e]})),delete t._chartjs)}const To="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Do(t,e){let n=[],i=!1;return function(...r){n=r,i||(i=!0,To.call(window,(()=>{i=!1,t.apply(e,n)})))}}const jo=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,No=t=>0===t||1===t,Oo=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*ho/n),Eo=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*ho/n)+1,zo={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*fo),easeOutSine:t=>Math.sin(t*fo),easeInOutSine:t=>-.5*(Math.cos(uo*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>No(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>No(t)?t:Oo(t,.075,.3),easeOutElastic:t=>No(t)?t:Eo(t,.075,.3),easeInOutElastic(t){const e=.1125;return No(t)?t:t<.5?.5*Oo(2*t,e,.45):.5+.5*Eo(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-zo.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*zo.easeInBounce(2*t):.5*zo.easeOutBounce(2*t-1)+.5};function Fo(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Ro(t){return Fo(t)?t:new Ur(t)}function Po(t){return Fo(t)?t:new Ur(t).saturate(.5).darken(.1).hexString()}const Yo=["x","y","borderWidth","radius","tension"],Uo=["color","borderColor","backgroundColor"],Bo=new Map;function Wo(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=Bo.get(n);return i||(i=new Intl.NumberFormat(t,e),Bo.set(n,i)),i}(e,n).format(t)}const Zo={values:t=>Zr(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let r,o=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(r="scientific"),o=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}(t,n)}const s=go(Math.abs(o)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Wo(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(go(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?Zo.numeric.call(this,t,e,n):""}};var Ho={formatters:Zo};const Go=Object.create(null),Vo=Object.create(null);function Qo(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function Jo(t,e,n){return"string"==typeof e?eo(Qo(t,e),n):eo(Qo(t,""),e)}class Xo{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Po(e.backgroundColor),this.hoverBorderColor=(t,e)=>Po(e.borderColor),this.hoverColor=(t,e)=>Po(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Jo(this,t,e)}get(t){return Qo(this,t)}describe(t,e){return Jo(Vo,t,e)}override(t,e){return Jo(Go,t,e)}route(t,e,n,i){const r=Qo(this,t),o=Qo(this,n),s="_"+e;Object.defineProperties(r,{[s]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[s],e=o[i];return Hr(t)?Object.assign({},e,t):Qr(t,e)},set(t){this[s]=t}}})}apply(t){t.forEach((t=>t(this)))}}var Ko=new Xo({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:Uo},numbers:{type:"number",properties:Yo}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ho.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function qo(t,e,n,i,r){let o=e[r];return o||(o=e[r]=t.measureText(r).width,n.push(r)),o>i&&(i=o),i}function $o(t,e,n){const i=t.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((e-r)*i)/i+r}function ts(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function es(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function ns(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function is(t){t.restore()}function rs(t,e,n,i,r){if(r.strikethrough||r.underline){const o=t.measureText(i),s=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(s,u),t.lineTo(a,u),t.stroke()}}function os(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function ss(t,e,n,i,r,o={}){const s=Zr(e)?e:[e],a=o.strokeWidth>0&&""!==o.strokeColor;let l,c;for(t.save(),t.font=r.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),Wr(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),l=0;l<s.length;++l)c=s[l],o.backdrop&&os(t,o.backdrop),a&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),Wr(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(c,n,i,o.maxWidth)),t.fillText(c,n,i,o.maxWidth),rs(t,n,i,c,o),i+=Number(r.lineHeight);t.restore()}function as(t,e){const{x:n,y:i,w:r,h:o,radius:s}=e;t.arc(n+s.topLeft,i+s.topLeft,s.topLeft,1.5*uo,uo,!0),t.lineTo(n,i+o-s.bottomLeft),t.arc(n+s.bottomLeft,i+o-s.bottomLeft,s.bottomLeft,uo,fo,!0),t.lineTo(n+r-s.bottomRight,i+o),t.arc(n+r-s.bottomRight,i+o-s.bottomRight,s.bottomRight,fo,0,!0),t.lineTo(n+r,i+s.topRight),t.arc(n+r-s.topRight,i+s.topRight,s.topRight,0,-fo,!0),t.lineTo(n+s.topLeft,i)}const ls=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,cs=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function us(t,e){const n=(""+t).match(ls);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function ds(t,e){const n={},i=Hr(e),r=i?Object.keys(e):e,o=Hr(t)?i?n=>Qr(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of r)n[t]=+o(t)||0;return n}function hs(t){return ds(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ps(t){const e=hs(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function fs(t,e){t=t||{},e=e||Ko.font;let n=Qr(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=Qr(t.style,e.style);i&&!(""+i).match(cs)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:Qr(t.family,e.family),lineHeight:us(Qr(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:Qr(t.weight,e.weight),string:""};return r.string=function(t){return!t||Wr(t.size)||Wr(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r}function gs(t,e,n,i){let r,o,s,a=!0;for(r=0,o=t.length;r<o;++r)if(s=t[r],void 0!==s&&(void 0!==e&&"function"==typeof s&&(s=s(e),a=!1),void 0!==n&&Zr(s)&&(s=s[n%s.length],a=!1),void 0!==s))return i&&!a&&(i.cacheable=!1),s}function ms(t,e){return Object.assign(Object.create(t),e)}function vs(t,e=[""],n,i,r=()=>t[0]){const o=n||t;void 0===i&&(i=Ss("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:i,_getTarget:r,override:n=>vs([n,...t],e,o,i)};return new Proxy(s,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>xs(n,i,(()=>function(t,e,n,i){let r;for(const o of e)if(r=Ss(ws(o,t),n),void 0!==r)return As(t,r)?Is(n,i,t,r):r}(i,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>ks(t).includes(e),ownKeys:t=>ks(t),set(t,e,n){const i=t._storage||(t._storage=r());return t[e]=i[e]=n,delete t._keys,!0}})}function ys(t,e,n,i){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:bs(t,i),setContext:e=>ys(t,e,n,i),override:r=>ys(t.override(r),e,n,i)};return new Proxy(r,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>xs(t,e,(()=>function(t,e,n){const{_proxy:i,_context:r,_subProxy:o,_descriptors:s}=t;let a=i[e];return lo(a)&&s.isScriptable(e)&&(a=function(t,e,n,i){const{_proxy:r,_context:o,_subProxy:s,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(o,s||i);return a.delete(t),As(t,l)&&(l=Is(r._scopes,r,t,l)),l}(e,a,t,n)),Zr(a)&&a.length&&(a=function(t,e,n,i){const{_proxy:r,_context:o,_subProxy:s,_descriptors:a}=n;if(void 0!==o.index&&i(t))return e[o.index%e.length];if(Hr(e[0])){const n=e,i=r._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=Is(i,r,t,l);e.push(ys(n,o,s&&s[t],a))}}return e}(e,a,t,s.isIndexable)),As(e,a)&&(a=ys(a,r,o&&o[e],s)),a}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function bs(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:i,isScriptable:lo(n)?n:()=>n,isIndexable:lo(i)?i:()=>i}}const ws=(t,e)=>t?t+so(e):e,As=(t,e)=>Hr(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function xs(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const i=n();return t[e]=i,i}function Cs(t,e,n){return lo(t)?t(e,n):t}const Ms=(t,e)=>!0===t?e:"string"==typeof t?oo(e,t):void 0;function Ls(t,e,n,i,r){for(const o of e){const e=Ms(n,o);if(e){t.add(e);const o=Cs(e._fallback,n,r);if(void 0!==o&&o!==n&&o!==i)return o}else if(!1===e&&void 0!==i&&n!==i)return null}return!1}function Is(t,e,n,i){const r=e._rootScopes,o=Cs(e._fallback,n,i),s=[...t,...r],a=new Set;a.add(i);let l=_s(a,s,n,o||n,i);return null!==l&&(void 0===o||o===n||(l=_s(a,s,o,l,i),null!==l))&&vs(Array.from(a),[""],r,o,(()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const r=i[e];return Zr(r)&&Hr(n)?n:r||{}}(e,n,i)))}function _s(t,e,n,i,r){for(;n;)n=Ls(t,e,n,i,r);return n}function Ss(t,e){for(const n of e){if(!n)continue;const e=n[t];if(void 0!==e)return e}}function ks(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Ts(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ds(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function js(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}Number.EPSILON;const Ns=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),Os=["top","right","bottom","left"];function Es(t,e,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const o=Os[r];i[o]=parseFloat(t[e+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function zs(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,r=Ns(n),o="border-box"===r.boxSizing,s=Es(r,"padding"),a=Es(r,"border","width"),{x:l,y:c,box:u}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:r,offsetY:o}=i;let s,a,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(r,o,t.target))s=r,a=o;else{const t=e.getBoundingClientRect();s=i.clientX-t.left,a=i.clientY-t.top,l=!0}return{x:s,y:a,box:l}}(t,n),d=s.left+(u&&a.left),h=s.top+(u&&a.top);let{width:p,height:f}=e;return o&&(p-=s.width+a.width,f-=s.height+a.height),{x:Math.round((l-d)/p*n.width/i),y:Math.round((c-h)/f*n.height/i)}}const Fs=t=>Math.round(10*t)/10;function Rs(t,e,n){const i=e||1,r=Math.floor(t.height*i),o=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||s.height!==r||s.width!==o)&&(t.currentDevicePixelRatio=i,s.height=r,s.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0)}const Ps=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Ts()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function Ys(t,e){const n=function(t,e){return Ns(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}class Us{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const r=e.listeners[i],o=e.duration;r.forEach((i=>i({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(n-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=To.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const r=n.items;let o,s=r.length-1,a=!1;for(;s>=0;--s)o=r[s],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(t),a=!0):(r[s]=r[r.length-1],r.pop());a&&(i.draw(),this._notify(i,n,t,"progress")),r.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=r.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Bs=new Us;const Ws="transparent",Zs={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=Ro(t||Ws),r=i.valid&&Ro(e||Ws);return r&&r.valid?r.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Hs{constructor(t,e,n,i){const r=e[n];i=gs([t.to,i,r,t.from]);const o=gs([t.from,r,i]);this._active=!0,this._fn=t.fn||Zs[t.type||typeof o],this._easing=zo[t.easing]||zo.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],r=n-this._start,o=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=gs([t.to,e,i,t.from]),this._from=gs([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,r=this._from,o=this._loop,s=this._to;let a;if(this._active=r!==s&&(o||e<n),!this._active)return this._target[i]=s,void this._notify(!0);e<0?this._target[i]=r:(a=e/n%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(r,s,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}class Gs{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Hr(t))return;const e=Object.keys(Ko.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const r=t[i];if(!Hr(r))return;const o={};for(const t of e)o[t]=r[t];(Zr(r.properties)&&r.properties||[i]).forEach((t=>{t!==i&&n.has(t)||n.set(t,o)}))}))}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}(t,n);if(!i)return[];const r=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const r=t[i[e]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),r}_createAnimations(t,e){const n=this._properties,i=[],r=t.$animations||(t.$animations={}),o=Object.keys(e),s=Date.now();let a;for(a=o.length-1;a>=0;--a){const l=o[a];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let u=r[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,s);continue}u.cancel()}d&&d.duration?(r[l]=u=new Hs(d,t,l,c),i.push(u)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(Bs.add(this._chart,n),!0):void 0}}function Vs(t,e){const n=t&&t.options||{},i=n.reverse,r=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:i?o:r,end:i?r:o}}function Qs(t,e){const n=[],i=t._getSortedDatasetMetas(e);let r,o;for(r=0,o=i.length;r<o;++r)n.push(i[r].index);return n}function Js(t,e,n,i={}){const r=t.keys,o="single"===i.mode;let s,a,l,c;if(null!==e){for(s=0,a=r.length;s<a;++s){if(l=+r[s],l===n){if(i.all)continue;break}c=t.values[l],Gr(c)&&(o||0===e||mo(e)===mo(c))&&(e+=c)}return e}}function Xs(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Ks(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function qs(t,e,n,i){for(const r of e.getMatchingVisibleMetas(i).reverse()){const e=t[r.index];if(n&&e>0||!n&&e<0)return r.index}return null}function $s(t,e){const{chart:n,_cachedMeta:i}=t,r=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=i,l=o.axis,c=s.axis,u=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(o,s,i),d=e.length;let h;for(let t=0;t<d;++t){const n=e[t],{[l]:o,[c]:d}=n;h=(n._stacks||(n._stacks={}))[c]=Ks(r,u,o),h[a]=d,h._top=qs(h,s,!0,i.type),h._bottom=qs(h,s,!1,i.type),(h._visualValues||(h._visualValues={}))[a]=d}}function ta(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function ea(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n],void 0!==e[i]._visualValues&&void 0!==e[i]._visualValues[n]&&delete e[i]._visualValues[n]}}}const na=t=>"reset"===t||"none"===t,ia=(t,e)=>e?t:Object.assign({},t);class ra{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Xs(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ea(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,r=e.xAxisID=Qr(n.xAxisID,ta(t,"x")),o=e.yAxisID=Qr(n.yAxisID,ta(t,"y")),s=e.rAxisID=Qr(n.rAxisID,ta(t,"r")),a=e.indexAxis,l=e.iAxisID=i(a,r,o,s),c=e.vAxisID=i(a,o,r,s);e.xScale=this.getScaleForId(r),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(s),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&ko(this._data,this),t._stacked&&ea(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(Hr(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:n,vScale:i}=e,r="x"===n.axis?"x":"y",o="x"===i.axis?"x":"y",s=Object.keys(t),a=new Array(s.length);let l,c,u;for(l=0,c=s.length;l<c;++l)u=s[l],a[l]={[r]:u,[o]:t[u]};return a}(e,t)}else if(n!==e){if(n){ko(n,this);const t=this._cachedMeta;ea(t),t._parsed=[]}e&&Object.isExtensible(e)&&((i=e)._chartjs?i._chartjs.listeners.push(this):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),So.forEach((t=>{const e="_onData"+so(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const r=n.apply(this,t);return i._chartjs.listeners.forEach((n=>{"function"==typeof n[e]&&n[e](...t)})),r}})})))),this._syncList=[],this._data=e}var i}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const r=e._stacked;e._stacked=Xs(e.vScale,e),e.stack!==n.stack&&(i=!0,ea(e),e.stack=n.stack),this._resyncElements(t),(i||r!==e._stacked)&&($s(this,e._parsed),e._stacked=Xs(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:r,_stacked:o}=n,s=r.axis;let a,l,c,u=0===t&&e===i.length||n._sorted,d=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=Zr(i[t])?this.parseArrayData(n,i,t,e):Hr(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const r=()=>null===l[s]||d&&l[s]<d[s];for(a=0;a<e;++a)n._parsed[a+t]=l=c[a],u&&(r()&&(u=!1),d=l);n._sorted=u}o&&$s(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:r,vScale:o}=t,s=r.axis,a=o.axis,l=r.getLabels(),c=r===o,u=new Array(i);let d,h,p;for(d=0,h=i;d<h;++d)p=d+n,u[d]={[s]:c||r.parse(l[p],p),[a]:o.parse(e[p],p)};return u}parseArrayData(t,e,n,i){const{xScale:r,yScale:o}=t,s=new Array(i);let a,l,c,u;for(a=0,l=i;a<l;++a)c=a+n,u=e[c],s[a]={x:r.parse(u[0],c),y:o.parse(u[1],c)};return s}parseObjectData(t,e,n,i){const{xScale:r,yScale:o}=t,{xAxisKey:s="x",yAxisKey:a="y"}=this._parsing,l=new Array(i);let c,u,d,h;for(c=0,u=i;c<u;++c)d=c+n,h=e[d],l[c]={x:r.parse(oo(h,s),d),y:o.parse(oo(h,a),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,r=this._cachedMeta,o=e[t.axis];return Js({keys:Qs(i,!0),values:e._stacks[t.axis]._visualValues},o,r.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const r=n[e.axis];let o=null===r?NaN:r;const s=i&&n._stacks[e.axis];i&&s&&(i.values=s,o=Js(i,r,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,r=n._sorted&&t===n.iScale,o=i.length,s=this._getOtherScale(t),a=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Qs(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(t){const{min:e,max:n,minDefined:i,maxDefined:r}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(s);let d,h;function p(){h=i[d];const e=h[s.axis];return!Gr(h[t.axis])||c>e||u<e}for(d=0;d<o&&(p()||(this.updateRangeFromParsed(l,t,h,a),!r));++d);if(r)for(d=o-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(l,t,h,a);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,r,o;for(i=0,r=e.length;i<r;++i)o=e[i][t.axis],Gr(o)&&n.push(o);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,r=this.getParsed(t);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,r;return Hr(t)?(e=t.top,n=t.right,i=t.bottom,r=t.left):e=n=i=r=t,{top:e,right:n,bottom:i,left:r,disabled:!1===t}}(Qr(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Vs(t,n),r=Vs(e,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],r=e.chartArea,o=[],s=this._drawStart||0,a=this._drawCount||i.length-s,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,r,s,a),c=s;c<s+a;++c){const e=i[c];e.hidden||(e.active&&l?o.push(e):e.draw(t,r))}for(c=0;c<o.length;++c)o[c].draw(t,r)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];r=e.$context||(e.$context=function(t,e,n){return ms(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),r.parsed=this.getParsed(t),r.raw=i.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=function(t,e){return ms(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!e,r.mode=n,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,r=this._cachedDataOpts,o=t+"-"+e,s=r[o],a=this.enableOptionSharing&&ao(n);if(s)return ia(s,a);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),u=i?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),c),h=Object.keys(Ko.elements[t]),p=l.resolveNamedOptions(d,h,(()=>this.getContext(n,i,e)),u);return p.$shared&&(p.$shared=a,r[o]=Object.freeze(ia(p,a))),p}_resolveAnimations(t,e,n){const i=this.chart,r=this._cachedDataOpts,o=`animation-${e}`,s=r[o];if(s)return s;let a;if(!1!==i.options.animation){const i=this.chart.config,r=i.datasetAnimationScopeKeys(this._type,e),o=i.getOptionScopes(this.getDataset(),r);a=i.createResolver(o,this.getContext(t,n,e))}const l=new Gs(i,a&&a.animations);return a&&a._cacheable&&(r[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||na(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,r=this.getSharedOptions(n),o=this.includeOptions(e,r)||r!==i;return this.updateSharedOptions(r,e,n),{sharedOptions:r,includeOptions:o}}updateElement(t,e,n,i){na(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!na(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const r=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,r=e.length,o=Math.min(r,i);o&&this.parse(0,o),r>i?this._insertElements(i,r-i,t):r<i&&this._removeElements(r,i-r)}_insertElements(t,e,n=!0){const i=this._cachedMeta,r=i.data,o=t+e;let s;const a=t=>{for(t.length+=e,s=t.length-1;s>=o;s--)t[s]=t[s-e]};for(a(r),s=t;s<o;++s)r[s]=new this.dataElementType;this._parsing&&a(i._parsed),this.parse(t,e),n&&this.updateElements(r,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&ea(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function oa(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,r=n.length;e<r;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=function(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}(i.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let i,r,o,s,a=e._length;const l=()=>{32767!==o&&-32768!==o&&(ao(s)&&(a=Math.min(a,Math.abs(o-s)||a)),s=o)};for(i=0,r=n.length;i<r;++i)o=e.getPixelForValue(n[i]),l();for(s=void 0,i=0,r=e.ticks.length;i<r;++i)o=e.getPixelForTick(i),l();return a}function sa(t,e,n,i){return Zr(t)?function(t,e,n,i){const r=n.parse(t[0],i),o=n.parse(t[1],i),s=Math.min(r,o),a=Math.max(r,o);let l=s,c=a;Math.abs(s)>Math.abs(a)&&(l=a,c=s),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:r,end:o,min:s,max:a}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function aa(t,e,n,i){const r=t.iScale,o=t.vScale,s=r.getLabels(),a=r===o,l=[];let c,u,d,h;for(c=n,u=n+i;c<u;++c)h=e[c],d={},d[r.axis]=a||r.parse(s[c],c),l.push(sa(h,d,o,c));return l}function la(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function ca(t,e,n,i){let r=e.borderSkipped;const o={};if(!r)return void(t.borderSkipped=o);if(!0===r)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:s,end:a,reverse:l,top:c,bottom:u}=function(t){let e,n,i,r,o;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(r="end",o="start"):(r="start",o="end"),{start:n,end:i,reverse:e,top:r,bottom:o}}(t);"middle"===r&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?r=c:(n._bottom||0)===i?r=u:(o[ua(u,s,a,l)]=!0,r=c)),o[ua(r,s,a,l)]=!0,t.borderSkipped=o}function ua(t,e,n,i){var r,o,s;return i?(s=n,t=da(t=(r=t)===(o=e)?s:r===s?o:r,n,e)):t=da(t,e,n),t}function da(t,e,n){return"start"===t?e:"end"===t?n:t}function ha(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class pa extends ra{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,n,i){return aa(t,e,n,i)}parseArrayData(t,e,n,i){return aa(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:r,vScale:o}=t,{xAxisKey:s="x",yAxisKey:a="y"}=this._parsing,l="x"===r.axis?s:a,c="x"===o.axis?s:a,u=[];let d,h,p,f;for(d=n,h=n+i;d<h;++d)f=e[d],p={},p[r.axis]=r.parse(oo(f,l),d),u.push(sa(oo(f,c),p,o,d));return u}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const r=n._custom;r&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,r=this.getParsed(t),o=r._custom,s=la(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(r[i.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const r="reset"===i,{index:o,_cachedMeta:{vScale:s}}=this,a=s.getBasePixel(),l=s.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(e,i);for(let h=e;h<e+n;h++){const e=this.getParsed(h),n=r||Wr(e[s.axis])?{base:a,head:a}:this._calculateBarValuePixels(h),p=this._calculateBarIndexPixels(h,c),f=(e._stacks||{})[s.axis],g={horizontal:l,base:n.base,enableBorderRadius:!f||la(e._custom)||o===f._top||o===f._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};d&&(g.options=u||this.resolveDataElementOptions(h,t[h].active?"active":i));const m=g.options||t[h].options;ca(g,m,f,o),ha(g,m,c.ratio),this.updateElement(t[h],h,g,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),r=n.options.stacked,o=[],s=this._cachedMeta.controller.getParsed(e),a=s&&s[n.axis],l=t=>{const e=t._parsed.find((t=>t[n.axis]===a)),i=e&&e[t.vScale.axis];if(Wr(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!l(n))&&((!1===r||-1===o.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&o.push(n.stack),n.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),r=void 0!==e?i.indexOf(e):-1;return-1===r?i.length-1:r}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let r,o;for(r=0,o=e.data.length;r<o;++r)i.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const s=t.barThickness;return{min:s||oa(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:i},options:{base:r,minBarLength:o}}=this,s=r||0,a=this.getParsed(t),l=a._custom,c=la(l);let u,d,h=a[e.axis],p=0,f=n?this.applyStack(e,a,n):h;f!==h&&(p=f-h,f=h),c&&(h=l.barStart,f=l.barEnd-l.barStart,0!==h&&mo(h)!==mo(l.barEnd)&&(p=0),p+=h);const g=Wr(r)||c?p:r;let m=e.getPixelForValue(g);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(p+f):m,d=u-m,Math.abs(d)<o){d=function(t,e,n){return 0!==t?mo(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,s)*o,h===s&&(m-=d/2);const t=e.getPixelForDecimal(0),r=e.getPixelForDecimal(1),l=Math.min(t,r),p=Math.max(t,r);m=Math.max(Math.min(m,p),l),u=m+d,n&&!c&&(a._stacks[e.axis]._visualValues[i]=e.getValueForPixel(u)-e.getValueForPixel(m))}if(m===e.getPixelForValue(s)){const t=mo(d)*e.getLineWidthForValue(s)/2;m+=t,d-=t}return{size:d,base:m,head:u,center:u+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,r=i.skipNull,o=Qr(i.maxBarThickness,1/0);let s,a;if(e.grouped){const n=r?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const r=e.pixels,o=r[t];let s=t>0?r[t-1]:null,a=t<r.length-1?r[t+1]:null;const l=n.categoryPercentage;null===s&&(s=o-(null===a?e.end-e.start:a-o)),null===a&&(a=o+o-s);const c=o-(o-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const r=n.barThickness;let o,s;return Wr(r)?(o=e.min*n.categoryPercentage,s=n.barPercentage):(o=r*i,s=1),{chunk:o/i,ratio:s,start:e.pixels[t]-o/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0);s=l.start+l.chunk*c+l.chunk/2,a=Math.min(o,l.chunk*l.ratio)}else s=n.getPixelForValue(this.getParsed(t)[n.axis],t),a=Math.min(o,e.min*e.ratio);return{base:s-a/2,head:s+a/2,center:s,size:a}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let r=0;for(;r<i;++r)null===this.getParsed(r)[e.axis]||n[r].hidden||n[r].draw(this._ctx)}}function fa(t,e,n,i){const{controller:r,data:o,_sorted:s}=t,a=r._cachedMeta.iScale;if(a&&e===a.axis&&"r"!==e&&s&&o.length){const t=a._reversePixels?_o:Io;if(!i)return t(o,e,n);if(r._sharedOptions){const i=o[0],r="function"==typeof i.getRange&&i.getRange(e);if(r){const i=t(o,e,n-r),s=t(o,e,n+r);return{lo:i.lo,hi:s.hi}}}}return{lo:0,hi:o.length-1}}function ga(t,e,n,i,r){const o=t.getSortedVisibleDatasetMetas(),s=n[e];for(let t=0,n=o.length;t<n;++t){const{index:n,data:a}=o[t],{lo:l,hi:c}=fa(o[t],e,s,r);for(let t=l;t<=c;++t){const e=a[t];e.skip||i(e,n,t)}}}function ma(t,e,n,i,r){const o=[];return r||t.isPointInArea(e)?(ga(t,n,e,(function(n,s,a){(r||es(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&o.push({element:n,datasetIndex:s,index:a})}),!0),o):o}function va(t,e,n,i,r,o){return o||t.isPointInArea(e)?"r"!==n||i?function(t,e,n,i,r,o){let s=[];const a=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const r=e?Math.abs(t.x-i.x):0,o=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}(n);let l=Number.POSITIVE_INFINITY;return ga(t,n,e,(function(n,c,u){const d=n.inRange(e.x,e.y,r);if(i&&!d)return;const h=n.getCenterPoint(r);if(!o&&!t.isPointInArea(h)&&!d)return;const p=a(e,h);p<l?(s=[{element:n,datasetIndex:c,index:u}],l=p):p===l&&s.push({element:n,datasetIndex:c,index:u})})),s}(t,e,n,i,r,o):function(t,e,n,i){let r=[];return ga(t,n,e,(function(t,n,o){const{startAngle:s,endAngle:a}=t.getProps(["startAngle","endAngle"],i),{angle:l}=function(t,e){const n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*uo&&(o+=ho),{angle:o,distance:r}}(t,{x:e.x,y:e.y});(function(t,e,n,i){const r=xo(t),o=xo(e),s=xo(n),a=xo(o-r),l=xo(s-r),c=xo(r-o),u=xo(r-s);return r===o||r===s||i&&o===s||a>l&&c<u})(l,s,a)&&r.push({element:t,datasetIndex:n,index:o})})),r}(t,e,n,r):[]}function ya(t,e,n,i,r){const o=[],s="x"===n?"inXRange":"inYRange";let a=!1;return ga(t,n,e,((t,i,l)=>{t[s]&&t[s](e[n],r)&&(o.push({element:t,datasetIndex:i,index:l}),a=a||t.inRange(e.x,e.y,r))})),i&&!a?[]:o}var ba={evaluateInteractionItems:ga,modes:{index(t,e,n,i){const r=zs(e,t),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?ma(t,r,o,i,s):va(t,r,o,!1,i,s),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=a[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,n,i){const r=zs(e,t),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?ma(t,r,o,i,s):va(t,r,o,!1,i,s);if(a.length>0){const e=a[0].datasetIndex,n=t.getDatasetMeta(e).data;a=[];for(let t=0;t<n.length;++t)a.push({element:n[t],datasetIndex:e,index:t})}return a},point:(t,e,n,i)=>ma(t,zs(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const r=zs(e,t),o=n.axis||"xy",s=n.includeInvisible||!1;return va(t,r,o,n.intersect,i,s)},x:(t,e,n,i)=>ya(t,zs(e,t),"x",n.intersect,i),y:(t,e,n,i)=>ya(t,zs(e,t),"y",n.intersect,i)}};const wa=["left","top","right","bottom"];function Aa(t,e){return t.filter((t=>t.pos===e))}function xa(t,e){return t.filter((t=>-1===wa.indexOf(t.pos)&&t.box.axis===e))}function Ca(t,e){return t.sort(((t,n)=>{const i=e?n:t,r=e?t:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function Ma(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function La(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Ia(t,e,n,i){const{pos:r,box:o}=n,s=t.maxPadding;if(!Hr(r)){n.size&&(t[r]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?o.height:o.width),n.size=e.size/e.count,t[r]+=n.size}o.getPadding&&La(s,o.getPadding());const a=Math.max(0,e.outerWidth-Ma(s,t,"left","right")),l=Math.max(0,e.outerHeight-Ma(s,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function _a(t,e){const n=e.maxPadding;return function(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],n[t])})),i}(t?["left","right"]:["top","bottom"])}function Sa(t,e,n,i){const r=[];let o,s,a,l,c,u;for(o=0,s=t.length,c=0;o<s;++o){a=t[o],l=a.box,l.update(a.width||e.w,a.height||e.h,_a(a.horizontal,e));const{same:s,other:d}=Ia(e,n,a,i);c|=s&&r.length,u=u||d,l.fullSize||r.push(a)}return c&&Sa(r,e,n,i)||u}function ka(t,e,n,i,r){t.top=n,t.left=e,t.right=e+i,t.bottom=n+r,t.width=i,t.height=r}function Ta(t,e,n,i){const r=n.padding;let{x:o,y:s}=e;for(const a of t){const t=a.box,l=i[a.stack]||{count:1,placed:0,weight:1},c=a.stackWeight/l.weight||1;if(a.horizontal){const i=e.w*c,o=l.size||t.height;ao(l.start)&&(s=l.start),t.fullSize?ka(t,r.left,s,n.outerWidth-r.right-r.left,o):ka(t,e.left+l.placed,s,i,o),l.start=s,l.placed+=i,s=t.bottom}else{const i=e.h*c,s=l.size||t.width;ao(l.start)&&(o=l.start),t.fullSize?ka(t,o,r.top,s,n.outerHeight-r.bottom-r.top):ka(t,o,e.top+l.placed,s,i),l.start=o,l.placed+=i,o=t.right}}e.x=o,e.y=s}var Da={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const r=ps(t.options.layout.padding),o=Math.max(e-r.width,0),s=Math.max(n-r.height,0),a=function(t){const e=function(t){const e=[];let n,i,r,o,s,a;for(n=0,i=(t||[]).length;n<i;++n)r=t[n],({position:o,options:{stack:s,stackWeight:a=1}}=r),e.push({index:n,box:r,pos:o,horizontal:r.isHorizontal(),weight:r.weight,stack:s&&o+s,stackWeight:a});return e}(t),n=Ca(e.filter((t=>t.box.fullSize)),!0),i=Ca(Aa(e,"left"),!0),r=Ca(Aa(e,"right")),o=Ca(Aa(e,"top"),!0),s=Ca(Aa(e,"bottom")),a=xa(e,"x"),l=xa(e,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:r.concat(l).concat(s).concat(a),chartArea:Aa(e,"chartArea"),vertical:i.concat(r).concat(l),horizontal:o.concat(s).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;Xr(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const u=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/u,hBoxMaxHeight:s/2}),h=Object.assign({},r);La(h,ps(i));const p=Object.assign({maxPadding:h,w:o,h:s,x:r.left,y:r.top},r),f=function(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:r}=n;if(!t||!wa.includes(i))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=e;let o,s,a;for(o=0,s=t.length;o<s;++o){a=t[o];const{fullSize:s}=a.box,l=n[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*i:s&&e.availableWidth,a.height=r):(a.width=i,a.height=c?c*r:s&&e.availableHeight)}return n}(l.concat(c),d);Sa(a.fullSize,p,d,f),Sa(l,p,d,f),Sa(c,p,d,f)&&Sa(l,p,d,f),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),Ta(a.leftAndTop,p,d,f),p.x+=p.w,p.y+=p.h,Ta(a.rightAndBottom,p,d,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Xr(a.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class ja{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class Na extends ja{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Oa="$chartjs",Ea={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},za=t=>null===t||""===t,Fa=!!Ps&&{passive:!0};function Ra(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Fa)}function Pa(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Ya(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Pa(n.addedNodes,i),e=e&&!Pa(n.removedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function Ua(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Pa(n.removedNodes,i),e=e&&!Pa(n.addedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const Ba=new Map;let Wa=0;function Za(){const t=window.devicePixelRatio;t!==Wa&&(Wa=t,Ba.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function Ha(t,e,n){const i=t.canvas,r=i&&Ds(i);if(!r)return;const o=Do(((t,e)=>{const i=r.clientWidth;n(t,e),i<r.clientWidth&&n()}),window),s=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||o(n,i)}));return s.observe(r),function(t,e){Ba.size||window.addEventListener("resize",Za),Ba.set(t,e)}(t,o),s}function Ga(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Ba.delete(t),Ba.size||window.removeEventListener("resize",Za)}(t)}function Va(t,e,n){const i=t.canvas,r=Do((e=>{null!==t.ctx&&n(function(t,e){const n=Ea[t.type]||t.type,{x:i,y:r}=zs(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==r?r:null}}(e,t))}),t);return function(t,e,n){t&&t.addEventListener(e,n,Fa)}(i,e,r),r}class Qa extends ja{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[Oa]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",za(r)){const e=Ys(t,"width");void 0!==e&&(t.width=e)}if(za(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Ys(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Oa])return!1;const n=e[Oa].initial;["height","width"].forEach((t=>{const i=n[t];Wr(i)?e.removeAttribute(t):e.setAttribute(t,i)}));const i=n.style||{};return Object.keys(i).forEach((t=>{e.style[t]=i[t]})),e.width=e.width,delete e[Oa],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),r={attach:Ya,detach:Ua,resize:Ha}[e]||Va;i[e]=r(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];i&&(({attach:Ga,detach:Ga,resize:Ga}[e]||Ra)(t,e,i),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return function(t,e,n,i){const r=Ns(t),o=Es(r,"margin"),s=js(r.maxWidth,t,"clientWidth")||po,a=js(r.maxHeight,t,"clientHeight")||po,l=function(t,e,n){let i,r;if(void 0===e||void 0===n){const o=t&&Ds(t);if(o){const t=o.getBoundingClientRect(),s=Ns(o),a=Es(s,"border","width"),l=Es(s,"padding");e=t.width-l.width-a.width,n=t.height-l.height-a.height,i=js(s.maxWidth,o,"clientWidth"),r=js(s.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||po,maxHeight:r||po}}(t,e,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const t=Es(r,"border","width"),e=Es(r,"padding");c-=e.width+t.width,u-=e.height+t.height}return c=Math.max(0,c-o.width),u=Math.max(0,i?c/i:u-o.height),c=Fs(Math.min(c,s,l.maxWidth)),u=Fs(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Fs(c/2)),(void 0!==e||void 0!==n)&&i&&l.height&&u>l.height&&(u=l.height,c=Fs(Math.floor(u*i))),{width:c,height:u}}(t,e,n,i)}isAttached(t){const e=t&&Ds(t);return!(!e||!e.isConnected)}}class Ja{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return bo(this.x)&&bo(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach((t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}function Xa(t,e,n,i,r){const o=Qr(i,0),s=Math.min(Qr(r,t.length),t.length);let a,l,c,u=0;for(n=Math.ceil(n),r&&(a=r-i,n=a/Math.floor(a/n)),c=o;c<0;)u++,c=Math.round(o+u*n);for(l=Math.max(o,0);l<s;l++)l===c&&(e.push(t[l]),u++,c=Math.round(o+u*n))}const Ka=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,qa=(t,e)=>Math.min(e||t,t);function $a(t,e){const n=[],i=t.length/e,r=t.length;let o=0;for(;o<r;o+=i)n.push(t[Math.floor(o)]);return n}function tl(t,e,n){const i=t.ticks.length,r=Math.min(e,i-1),o=t._startPixel,s=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(r);if(!(n&&(l=1===i?Math.max(c-o,s-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(r-1))/2,c+=r<e?l:-l,c<o-a||c>s+a)))return c}function el(t){return t.drawTicks?t.tickLength:0}function nl(t,e){if(!t.display)return 0;const n=fs(t.font,e),i=ps(t.padding);return(Zr(t.text)?t.text.length:1)*n.lineHeight+i.height}function il(t,e,n){let i=(t=>"start"===t?"left":"end"===t?"right":"center")(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class rl extends Ja{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=Vr(t,Number.POSITIVE_INFINITY),e=Vr(e,Number.NEGATIVE_INFINITY),n=Vr(n,Number.POSITIVE_INFINITY),i=Vr(i,Number.NEGATIVE_INFINITY),{min:Vr(t,n),max:Vr(e,i),minDefined:Gr(t),maxDefined:Gr(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:r,maxDefined:o}=this.getUserBounds();if(r&&o)return{min:n,max:i};const s=this.getMatchingVisibleMetas();for(let a=0,l=s.length;a<l;++a)e=s[a].controller.getMinMax(this,t),r||(n=Math.min(n,e.min)),o||(i=Math.max(i,e.max));return n=o&&n>i?i:n,i=r&&n>i?n:i,{min:Vr(n,Vr(i,n)),max:Vr(i,Vr(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Jr(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:r,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:r}=t,o=(l=(r-i)/2,"string"==typeof(a=e)&&a.endsWith("%")?parseFloat(a)/100*l:+a),s=(t,e)=>n&&0===t?0:t+e;var a,l;return{min:s(i,-Math.abs(o)),max:s(r,o)}}(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=s<this.ticks.length;this._convertTicksToLabels(a?$a(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=function(t,e){const n=t.options.ticks,i=function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),r=t._maxLength/n;return Math.floor(Math.min(i,r))}(t),r=Math.min(n.maxTicksLimit||i,i),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],s=o.length,a=o[0],l=o[s-1],c=[];if(s>r)return function(t,e,n,i){let r,o=0,s=n[0];for(i=Math.ceil(i),r=0;r<t.length;r++)r===s&&(e.push(t[r]),o++,s=n[o*i])}(e,c,o,s/r),c;const u=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),r=e.length/n;if(!i)return Math.max(r,1);const o=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i==0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}(i);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>r)return e}return Math.max(r,1)}(o,e,r);if(s>0){let t,n;const i=s>1?Math.round((l-a)/(s-1)):null;for(Xa(e,c,u,Wr(i)?0:a-i,a),t=0,n=s-1;t<n;t++)Xa(e,c,u,o[t],o[t+1]);return Xa(e,c,u,l,Wr(i)?e.length:l+i),c}return Xa(e,c,u),c}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Jr(this.options.afterUpdate,[this])}beforeSetDimensions(){Jr(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Jr(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Jr(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Jr(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,r;for(n=0,i=t.length;n<i;n++)r=t[n],r.label=Jr(e.callback,[r.value,n,t],this)}afterTickToLabelConversion(){Jr(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Jr(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=qa(this.ticks.length,t.ticks.maxTicksLimit),i=e.minRotation||0,r=e.maxRotation;let o,s,a,l=i;if(!this._isVisible()||!e.display||i>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=Co(this.chart.width-u,0,this.maxWidth);o=t.offset?this.maxWidth/n:h/(n-1),u+6>o&&(o=h/(n-(t.offset?.5:1)),s=this.maxHeight-el(t.grid)-e.padding-nl(t.title,this.chart.options.font),a=Math.sqrt(u*u+d*d),l=Math.min(Math.asin(Co((c.highest.height+6)/o,-1,1)),Math.asin(Co(s/a,-1,1))-Math.asin(Co(d/a,-1,1)))*(180/uo),l=Math.max(i,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){Jr(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Jr(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:r}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const o=nl(i,e.options.font);if(s?(t.width=this.maxWidth,t.height=el(r)+o):(t.height=this.maxHeight,t.width=el(r)+o),n.display&&this.ticks.length){const{first:e,last:i,widest:r,highest:o}=this._getLabelSizes(),a=2*n.padding,l=wo(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(s){const e=n.mirror?0:u*r.width+c*o.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=n.mirror?0:c*r.width+u*o.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,i,u,c)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:r,padding:o},position:s}=this.options,a=0!==this.labelRotation,l="top"!==s&&"x"===this.axis;if(this.isHorizontal()){const s=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;a?l?(u=i*t.width,d=n*e.height):(u=n*t.height,d=i*e.width):"start"===r?d=e.width:"end"===r?u=t.width:"inner"!==r&&(u=t.width/2,d=e.width/2),this.paddingLeft=Math.max((u-s+o)*this.width/(this.width-s),0),this.paddingRight=Math.max((d-c+o)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===r?(n=0,i=t.height):"end"===r&&(n=e.height,i=0),this.paddingTop=n+o,this.paddingBottom=i+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Jr(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)Wr(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=$a(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:i,_longestTextCache:r}=this,o=[],s=[],a=Math.floor(e/qa(e,n));let l,c,u,d,h,p,f,g,m,v,y,b=0,w=0;for(l=0;l<e;l+=a){if(d=t[l].label,h=this._resolveTickFontOptions(l),i.font=p=h.string,f=r[p]=r[p]||{data:{},gc:[]},g=h.lineHeight,m=v=0,Wr(d)||Zr(d)){if(Zr(d))for(c=0,u=d.length;c<u;++c)y=d[c],Wr(y)||Zr(y)||(m=qo(i,f.data,f.gc,m,y),v+=g)}else m=qo(i,f.data,f.gc,m,d),v=g;o.push(m),s.push(v),b=Math.max(m,b),w=Math.max(v,w)}!function(t,e){Xr(t,(t=>{const n=t.gc,i=n.length/2;let r;if(i>e){for(r=0;r<i;++r)delete t.data[n[r]];n.splice(0,i)}}))}(r,e);const A=o.indexOf(b),x=s.indexOf(w),C=t=>({width:o[t]||0,height:s[t]||0});return{first:C(0),last:C(e-1),widest:C(A),highest:C(x),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Co(this._alignToPixels?$o(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return ms(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=ms(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=wo(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),r=this._getLabelSizes(),o=t.autoSkipPadding||0,s=r?r.widest.width+o:0,a=r?r.highest.height+o:0;return this.isHorizontal()?a*n>s*i?s/n:a/i:a*i<s*n?a/n:s/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:r,position:o,border:s}=i,a=r.offset,l=this.isHorizontal(),c=this.ticks.length+(a?1:0),u=el(r),d=[],h=s.setContext(this.getContext()),p=h.display?h.width:0,f=p/2,g=function(t){return $o(n,t,p)};let m,v,y,b,w,A,x,C,M,L,I,_;if("top"===o)m=g(this.bottom),A=this.bottom-u,C=m-f,L=g(t.top)+f,_=t.bottom;else if("bottom"===o)m=g(this.top),L=t.top,_=g(t.bottom)-f,A=m+f,C=this.top+u;else if("left"===o)m=g(this.right),w=this.right-u,x=m-f,M=g(t.left)+f,I=t.right;else if("right"===o)m=g(this.left),M=t.left,I=g(t.right)-f,w=m+f,x=this.left+u;else if("x"===e){if("center"===o)m=g((t.top+t.bottom)/2+.5);else if(Hr(o)){const t=Object.keys(o)[0],e=o[t];m=g(this.chart.scales[t].getPixelForValue(e))}L=t.top,_=t.bottom,A=m+f,C=A+u}else if("y"===e){if("center"===o)m=g((t.left+t.right)/2);else if(Hr(o)){const t=Object.keys(o)[0],e=o[t];m=g(this.chart.scales[t].getPixelForValue(e))}w=m-f,x=w-u,M=t.left,I=t.right}const S=Qr(i.ticks.maxTicksLimit,c),k=Math.max(1,Math.ceil(c/S));for(v=0;v<c;v+=k){const t=this.getContext(v),e=r.setContext(t),i=s.setContext(t),o=e.lineWidth,c=e.color,u=i.dash||[],h=i.dashOffset,p=e.tickWidth,f=e.tickColor,g=e.tickBorderDash||[],m=e.tickBorderDashOffset;y=tl(this,v,a),void 0!==y&&(b=$o(n,y,o),l?w=x=M=I=b:A=C=L=_=b,d.push({tx1:w,ty1:A,tx2:x,ty2:C,x1:M,y1:L,x2:I,y2:_,width:o,color:c,borderDash:u,borderDashOffset:h,tickWidth:p,tickColor:f,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=c,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:r}=n,o=this.isHorizontal(),s=this.ticks,{align:a,crossAlign:l,padding:c,mirror:u}=r,d=el(n.grid),h=d+c,p=u?-c:h,f=-wo(this.labelRotation),g=[];let m,v,y,b,w,A,x,C,M,L,I,_,S="middle";if("top"===i)A=this.bottom-p,x=this._getXAxisLabelAlignment();else if("bottom"===i)A=this.top+p,x=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(d);x=t.textAlign,w=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(d);x=t.textAlign,w=t.x}else if("x"===e){if("center"===i)A=(t.top+t.bottom)/2+h;else if(Hr(i)){const t=Object.keys(i)[0],e=i[t];A=this.chart.scales[t].getPixelForValue(e)+h}x=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)w=(t.left+t.right)/2-h;else if(Hr(i)){const t=Object.keys(i)[0],e=i[t];w=this.chart.scales[t].getPixelForValue(e)}x=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===a?S="top":"end"===a&&(S="bottom"));const k=this._getLabelSizes();for(m=0,v=s.length;m<v;++m){y=s[m],b=y.label;const t=r.setContext(this.getContext(m));C=this.getPixelForTick(m)+r.labelOffset,M=this._resolveTickFontOptions(m),L=M.lineHeight,I=Zr(b)?b.length:1;const e=I/2,n=t.color,a=t.textStrokeColor,c=t.textStrokeWidth;let d,h=x;if(o?(w=C,"inner"===x&&(h=m===v-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),_="top"===i?"near"===l||0!==f?-I*L+L/2:"center"===l?-k.highest.height/2-e*L+L:-k.highest.height+L/2:"near"===l||0!==f?L/2:"center"===l?k.highest.height/2-e*L:k.highest.height-I*L,u&&(_*=-1),0===f||t.showLabelBackdrop||(w+=L/2*Math.sin(f))):(A=C,_=(1-I)*L/2),t.showLabelBackdrop){const e=ps(t.backdropPadding),n=k.heights[m],i=k.widths[m];let r=_-e.top,o=0-e.left;switch(S){case"middle":r-=n/2;break;case"bottom":r-=n}switch(x){case"center":o-=i/2;break;case"right":o-=i;break;case"inner":m===v-1?o-=i:m>0&&(o-=i/2)}d={left:o,top:r,width:i+e.width,height:n+e.height,color:t.backdropColor}}g.push({label:b,font:M,textOffset:_,options:{rotation:f,color:n,strokeColor:a,strokeWidth:c,textAlign:h,textBaseline:S,translation:[w,A],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-wo(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:r}}=this.options,o=t+r,s=this._getLabelSizes().widest.width;let a,l;return"left"===e?i?(l=this.right+r,"near"===n?a="left":"center"===n?(a="center",l+=s/2):(a="right",l+=s)):(l=this.right-o,"near"===n?a="right":"center"===n?(a="center",l-=s/2):(a="left",l=this.left)):"right"===e?i?(l=this.left+r,"near"===n?a="right":"center"===n?(a="center",l-=s/2):(a="left",l-=s)):(l=this.left+o,"near"===n?a="left":"center"===n?(a="center",l+=s/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:r,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,r,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,o;const s=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(r=0,o=i.length;r<o;++r){const t=i[r];e.drawOnChartArea&&s({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&s({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:i}}=this,r=n.setContext(this.getContext()),o=n.display?r.width:0;if(!o)return;const s=i.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=$o(t,this.left,o)-o/2,c=$o(t,this.right,s)+s/2,u=d=a):(u=$o(t,this.top,o)-o/2,d=$o(t,this.bottom,s)+s/2,l=c=a),e.save(),e.lineWidth=r.width,e.strokeStyle=r.color,e.beginPath(),e.moveTo(l,u),e.lineTo(c,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&ns(e,n);const i=this.getLabelItems(t);for(const t of i){const n=t.options,i=t.font;ss(e,t.label,0,t.textOffset,i,n)}n&&is(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const r=fs(n.font),o=ps(n.padding),s=n.align;let a=r.lineHeight/2;"bottom"===e||"center"===e||Hr(e)?(a+=o.bottom,Zr(n.text)&&(a+=r.lineHeight*(n.text.length-1))):a+=o.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(t,e,n,i){const{top:r,left:o,bottom:s,right:a,chart:l}=t,{chartArea:c,scales:u}=l;let d,h,p,f=0;const g=s-r,m=a-o;if(t.isHorizontal()){if(h=jo(i,o,a),Hr(n)){const t=Object.keys(n)[0],i=n[t];p=u[t].getPixelForValue(i)+g-e}else p="center"===n?(c.bottom+c.top)/2+g-e:Ka(t,n,e);d=a-o}else{if(Hr(n)){const t=Object.keys(n)[0],i=n[t];h=u[t].getPixelForValue(i)-m+e}else h="center"===n?(c.left+c.right)/2-m+e:Ka(t,n,e);p=jo(i,s,r),f="left"===n?-fo:fo}return{titleX:h,titleY:p,maxWidth:d,rotation:f}}(this,a,e,s);ss(t,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:il(s,e,i),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=Qr(t.grid&&t.grid.z,-1),i=Qr(t.border&&t.border.z,0);return this._isVisible()&&this.draw===rl.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let r,o;for(r=0,o=e.length;r<o;++r){const o=e[r];o[n]!==this.id||t&&o.type!==t||i.push(o)}return i}_resolveTickFontOptions(t){return fs(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class ol{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,r=t.id,o=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in i||(i[r]=t,function(t,e,n){const i=eo(Object.create(null),[n?Ko.get(n):{},Ko.get(e),t.defaults]);Ko.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const i=n.split("."),r=i.pop(),o=[t].concat(i).join("."),s=e[n].split("."),a=s.pop(),l=s.join(".");Ko.route(o,r,l,a)}))}(e,t.defaultRoutes),t.descriptors&&Ko.describe(e,t.descriptors)}(t,o,n),this.override&&Ko.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in Ko[i]&&(delete Ko[i][n],this.override&&delete Go[n])}}class sl{constructor(){this.controllers=new ol(ra,"datasets",!0),this.elements=new ol(Ja,"elements"),this.plugins=new ol(Object,"plugins"),this.scales=new ol(rl,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):Xr(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const i=so(t);Jr(n["before"+i],[],n),e[t](n),Jr(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}}var al=new sl;class ll{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(r,t,e,n);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,n,i){i=i||{};for(const r of t){const t=r.plugin;if(!1===Jr(t[n],[e,i,r.options],t)&&i.cancelable)return!1}return!0}invalidate(){Wr(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=Qr(n.options&&n.options.plugins,{}),r=function(t){const e={},n=[],i=Object.keys(al.plugins.items);for(let t=0;t<i.length;t++)n.push(al.getPlugin(i[t]));const r=t.plugins||[];for(let t=0;t<r.length;t++){const i=r[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,r){const o=[],s=t.getContext();for(const a of e){const e=a.id,l=cl(i[e],r);null!==l&&o.push({plugin:a,options:ul(t.config,{plugin:a,local:n[e]},l,s)})}return o}(t,r,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function cl(t,e){return e||!1!==t?!0===t?{}:t:null}function ul(t,{plugin:e,local:n},i,r){const o=t.pluginScopeKeys(e),s=t.getOptionScopes(i,o);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function dl(t,e){const n=Ko.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function hl(t){if("x"===t||"y"===t||"r"===t)return t}function pl(t,...e){if(hl(t))return t;for(const i of e){const e=i.axis||("top"===(n=i.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.length>1&&hl(t[0].toLowerCase());if(e)return e}var n;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function fl(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function gl(t){const e=t.options||(t.options={});e.plugins=Qr(e.plugins,{}),e.scales=function(t,e){const n=Go[t.type]||{scales:{}},i=e.scales||{},r=dl(t.type,e),o=Object.create(null);return Object.keys(i).forEach((e=>{const s=i[e];if(!Hr(s))return console.error(`Invalid scale configuration for scale: ${e}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const a=pl(e,s,function(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(n.length)return fl(t,"x",n[0])||fl(t,"y",n[0])}return{}}(e,t),Ko.scales[s.type]),l=function(t,e){return t===e?"_index_":"_value_"}(a,r),c=n.scales||{};o[e]=no(Object.create(null),[{axis:a},s,c[a],c[l]])})),t.data.datasets.forEach((n=>{const r=n.type||t.type,s=n.indexAxis||dl(r,e),a=(Go[r]||{}).scales||{};Object.keys(a).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,s),r=n[e+"AxisID"]||e;o[r]=o[r]||Object.create(null),no(o[r],[{axis:e},i[r],a[t]])}))})),Object.keys(o).forEach((t=>{const e=o[t];no(e,[Ko.scales[e.type],Ko.scale])})),o}(t,e)}function ml(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const vl=new Map,yl=new Set;function bl(t,e){let n=vl.get(t);return n||(n=e(),vl.set(t,n),yl.add(n)),n}const wl=(t,e,n)=>{const i=oo(e,n);void 0!==i&&t.add(i)};class Al{constructor(t){this._config=function(t){return(t=t||{}).data=ml(t.data),gl(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=ml(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),gl(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return bl(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return bl(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return bl(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return bl(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:r}=this,o=this._cachedScopes(t,n),s=o.get(e);if(s)return s;const a=new Set;e.forEach((e=>{t&&(a.add(t),e.forEach((e=>wl(a,t,e)))),e.forEach((t=>wl(a,i,t))),e.forEach((t=>wl(a,Go[r]||{},t))),e.forEach((t=>wl(a,Ko,t))),e.forEach((t=>wl(a,Vo,t)))}));const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),yl.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Go[e]||{},Ko.datasets[e]||{},{type:e},Ko,Vo]}resolveNamedOptions(t,e,n,i=[""]){const r={$shared:!0},{resolver:o,subPrefixes:s}=xl(this._resolverCache,t,i);let a=o;(function(t,e){const{isScriptable:n,isIndexable:i}=bs(t);for(const r of e){const e=n(r),o=i(r),s=(o||e)&&t[r];if(e&&(lo(s)||Cl(s))||o&&Zr(s))return!0}return!1})(o,e)&&(r.$shared=!1,a=ys(o,n=lo(n)?n():n,this.createResolver(t,n,s)));for(const t of e)r[t]=a[t];return r}createResolver(t,e,n=[""],i){const{resolver:r}=xl(this._resolverCache,t,n);return Hr(e)?ys(r,e,void 0,i):r}}function xl(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const r=n.join();let o=i.get(r);return o||(o={resolver:vs(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},i.set(r,o)),o}const Cl=t=>Hr(t)&&Object.getOwnPropertyNames(t).some((e=>lo(t[e]))),Ml=["top","bottom","left","right","chartArea"];function Ll(t,e){return"top"===t||"bottom"===t||-1===Ml.indexOf(t)&&"x"===e}function Il(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function _l(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Jr(n&&n.onComplete,[t],e)}function Sl(t){const e=t.chart,n=e.options.animation;Jr(n&&n.onProgress,[t],e)}function kl(t){return Ts()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Tl={},Dl=t=>{const e=kl(t);return Object.values(Tl).filter((t=>t.canvas===e)).pop()};function jl(t,e,n){const i=Object.keys(t);for(const r of i){const i=+r;if(i>=e){const o=t[r];delete t[r],(n>0||i>e)&&(t[i+n]=o)}}}function Nl(t,e,n){return t.options.clip?t[n]:e[n]}class Ol{static defaults=Ko;static instances=Tl;static overrides=Go;static registry=al;static version="4.4.5";static getChart=Dl;static register(...t){al.add(...t),El()}static unregister(...t){al.remove(...t),El()}constructor(t,e){const n=this.config=new Al(e),i=kl(t),r=Dl(i);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!Ts()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Na:Qa}(i)),this.platform.updateConfig(n);const s=this.platform.acquireContext(i,o.aspectRatio),a=s&&s.canvas,l=a&&a.height,c=a&&a.width;this.id=Br(),this.ctx=s,this.canvas=a,this.width=c,this.height=l,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new ll,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}((t=>this.update(t)),o.resizeDelay||0),this._dataChanges=[],Tl[this.id]=this,s&&a?(Bs.listen(this,"complete",_l),Bs.listen(this,"progress",Sl),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:r}=this;return Wr(t)?e&&r?r:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return al}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Rs(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ts(this.canvas,this.ctx),this}stop(){return Bs.stop(this),this}resize(t,e){Bs.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,e,r),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Rs(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),Jr(n.onResize,[this,o],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){Xr(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let r=[];e&&(r=r.concat(Object.keys(e).map((t=>{const n=e[t],i=pl(t,n),r="r"===i,o="x"===i;return{options:n,dposition:r?"chartArea":o?"bottom":"left",dtype:r?"radialLinear":o?"category":"linear"}})))),Xr(r,(e=>{const r=e.options,o=r.id,s=pl(o,r),a=Qr(r.type,e.dtype);void 0!==r.position&&Ll(r.position,s)===Ll(e.dposition)||(r.position=e.dposition),i[o]=!0;let l=null;o in n&&n[o].type===a?l=n[o]:(l=new(al.getScale(a))({id:o,type:a,ctx:this.ctx,chart:this}),n[l.id]=l),l.init(r,t)})),Xr(i,((t,e)=>{t||delete n[e]})),Xr(n,(t=>{Da.configure(this,t,t.options),Da.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(Il("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let r=this.getDatasetMeta(n);const o=i.type||this.config.type;if(r.type&&r.type!==o&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=o,r.indexAxis=i.indexAxis||dl(o,this.options),r.order=i.order||0,r.index=n,r.label=""+i.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const e=al.getController(o),{datasetElementType:i,dataElementType:s}=Ko.datasets[o];Object.assign(e,{dataElementType:al.getElement(s),datasetElementType:i&&al.getElement(i)}),r.controller=new e(this,n),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){Xr(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===r.indexOf(e);e.buildOrUpdateElements(n),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),i||Xr(r,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Il("z","_idx"));const{_active:s,_lastEvent:a}=this;a?this._eventHandler(a,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Xr(this.scales,(t=>{Da.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);co(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:r}of e)jl(t,i,"_removeElements"===n?-r:r)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),i=n(0);for(let t=1;t<e;t++)if(!co(i,n(t)))return;return Array.from(i).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Da.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],Xr(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,lo(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Bs.has(this)?this.attached&&!Bs.running(this)&&Bs.start(this):(this.draw(),_l({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,r;for(i=0,r=e.length;i<r;++i){const r=e[i];t&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,i=!n.disabled,r=function(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:Nl(n,e,"left"),right:Nl(n,e,"right"),top:Nl(i,e,"top"),bottom:Nl(i,e,"bottom")}:e}(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(i&&ns(e,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),t.controller.draw(),i&&is(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return es(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const r=ba.modes[e];return"function"==typeof r?r(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=ms(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",r=this.getDatasetMeta(t),o=r.controller._resolveAnimations(void 0,i);ao(e)?(r.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),o.update(r,{visible:n}),this.update((e=>e.datasetIndex===t?i:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Bs.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),ts(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Tl[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};Xr(this.options.events,(t=>n(t,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},r=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const s=()=>{i("attach",s),this.attached=!0,this.resize(),n("resize",r),n("detach",o)};o=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",s)},e.isAttached(this.canvas)?s():o()}unbindEvents(){Xr(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},Xr(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let r,o,s,a;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),s=0,a=t.length;s<a;++s){o=t[s];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!Kr(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,n){const i=this.options.hover,r=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=r(e,t),s=n?t:r(t,e);o.length&&this.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const r=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(r||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:r}=this,o=e,s=this._getActiveElements(t,i,n,o),a=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,a);n&&(this._lastEvent=null,Jr(r.onHover,[t,s,this],this),a&&Jr(r.onClick,[t,s,this],this));const c=!Kr(s,i);return(c||e)&&(this._active=s,this._updateHoverStyles(s,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,i)}}function El(){return Xr(Ol.instances,(t=>t._plugins.invalidate()))}function zl(t,e){const{x:n,y:i,base:r,width:o,height:s}=t.getProps(["x","y","base","width","height"],e);let a,l,c,u,d;return t.horizontal?(d=s/2,a=Math.min(n,r),l=Math.max(n,r),c=i-d,u=i+d):(d=o/2,a=n-d,l=n+d,c=Math.min(i,r),u=Math.max(i,r)),{left:a,top:c,right:l,bottom:u}}function Fl(t,e,n,i){return t?0:Co(e,n,i)}function Rl(t){const e=zl(t),n=e.right-e.left,i=e.bottom-e.top,r=function(t,e,n){const i=t.options.borderWidth,r=t.borderSkipped,o=hs(i);return{t:Fl(r.top,o.top,0,n),r:Fl(r.right,o.right,0,e),b:Fl(r.bottom,o.bottom,0,n),l:Fl(r.left,o.left,0,e)}}(t,n/2,i/2),o=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),r=t.options.borderRadius,o=function(t){return ds(t,["topLeft","topRight","bottomLeft","bottomRight"])}(r),s=Math.min(e,n),a=t.borderSkipped,l=i||Hr(r);return{topLeft:Fl(!l||a.top||a.left,o.topLeft,0,s),topRight:Fl(!l||a.top||a.right,o.topRight,0,s),bottomLeft:Fl(!l||a.bottom||a.left,o.bottomLeft,0,s),bottomRight:Fl(!l||a.bottom||a.right,o.bottomRight,0,s)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:o},inner:{x:e.left+r.l,y:e.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,o.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(r.b,r.r))}}}}function Pl(t,e,n,i){const r=null===e,o=null===n,s=t&&!(r&&o)&&zl(t,i);return s&&(r||Mo(e,s.left,s.right))&&(o||Mo(n,s.top,s.bottom))}function Yl(t,e){t.rect(e.x,e.y,e.w,e.h)}function Ul(t,e,n={}){const i=t.x!==n.x?-e:0,r=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-i,s=(t.y+t.h!==n.y+n.h?e:0)-r;return{x:t.x+i,y:t.y+r,w:t.w+o,h:t.h+s,radius:t.radius}}class Bl extends Ja{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:r,outer:o}=Rl(this),s=(a=o.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?as:Yl;var a;t.save(),o.w===r.w&&o.h===r.h||(t.beginPath(),s(t,Ul(o,e,r)),t.clip(),s(t,Ul(r,-e,o)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),s(t,Ul(r,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Pl(this,t,e,n)}inXRange(t,e){return Pl(this,t,null,e)}inYRange(t,e){return Pl(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(e+i)/2:e,y:r?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}function Wl(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}new WeakMap;class Zl extends rl{static id="category";static defaults={ticks:{callback:Wl}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Wr(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:Co(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:function(t,e,n,i){const r=t.indexOf(e);return-1===r?((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i):r!==t.lastIndexOf(e)?n:r}(n,t,Qr(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let r=this.getLabels();r=0===t&&e===r.length-1?r:r.slice(t,e+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){return Wl.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Hl(t,e,{horizontal:n,minRotation:i}){const r=wo(i),o=(n?Math.sin(r):Math.cos(r))||.001,s=.75*e*(""+t).length;return Math.min(e/o,s)}class Gl extends rl{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Wr(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this;const o=t=>i=e?i:t,s=t=>r=n?r:t;if(t){const t=mo(i),e=mo(r);t<0&&e<0?s(0):t>0&&e>0&&o(0)}if(i===r){let e=0===r?1:Math.abs(.05*r);s(r+e),t||o(i-e)}this.min=i,this.max=r}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=function(t,e){const n=[],{bounds:i,step:r,min:o,max:s,precision:a,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=t,h=r||1,p=c-1,{min:f,max:g}=e,m=!Wr(o),v=!Wr(s),y=!Wr(l),b=(g-f)/(u+1);let w,A,x,C,M=yo((g-f)/p/h)*h;if(M<1e-14&&!m&&!v)return[{value:f},{value:g}];C=Math.ceil(g/M)-Math.floor(f/M),C>p&&(M=yo(C*M/p/h)*h),Wr(a)||(w=Math.pow(10,a),M=Math.ceil(M*w)/w),"ticks"===i?(A=Math.floor(f/M)*M,x=Math.ceil(g/M)*M):(A=f,x=g),m&&v&&r&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((s-o)/r,M/1e3)?(C=Math.round(Math.min((s-o)/M,c)),M=(s-o)/C,A=o,x=s):y?(A=m?o:A,x=v?s:x,C=l-1,M=(x-A)/C):(C=(x-A)/M,C=vo(C,Math.round(C),M/1e3)?Math.round(C):Math.ceil(C));const L=Math.max(Ao(M),Ao(A));w=Math.pow(10,Wr(a)?L:a),A=Math.round(A*w)/w,x=Math.round(x*w)/w;let I=0;for(m&&(d&&A!==o?(n.push({value:o}),A<o&&I++,vo(Math.round((A+I*M)*w)/w,o,Hl(o,b,t))&&I++):A<o&&I++);I<C;++I){const t=Math.round((A+I*M)*w)/w;if(v&&t>s)break;n.push({value:t})}return v&&d&&x!==s?n.length&&vo(n[n.length-1].value,s,Hl(s,b,t))?n[n.length-1].value=s:n.push({value:s}):v&&x!==s||n.push({value:x}),n}({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&function(t,e,n){let i,r,o;for(i=0,r=t.length;i<r;i++)o=t[i][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return Wo(t,this.chart.options.locale,this.options.ticks.format)}}class Vl extends Gl{static id="linear";static defaults={ticks:{callback:Ho.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Gr(t)?t:0,this.max=Gr(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=wo(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,r.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Ho.formatters.logarithmic,Ho.formatters.numeric;const Ql="dark",Jl="light";function Xl(){return document.querySelector("html")}function Kl(t){const e=Xl();return getComputedStyle(e).getPropertyValue(t)}function ql(t){Xl().dataset.theme=`theme-${t}`}function $l(){const t=Xl().dataset.theme.replace("theme-","")===Jl?Ql:Jl;var e;ql(t),e=t,localStorage.setItem(Ue,e)}class tc extends nr{constructor(){super(".dialog.chart"),this.dataSetColours=[Kl("--colour-primary"),Kl("--colour-secondary"),Kl("--colour-warning")]}_multiplierDescription(t){return{0:"",3:"'000s",6:"millions",9:"billions"}[t]}_chooseMultiplier(t){let e=Math.max(...t.map((t=>Math.abs(Number(t.value()))))),n=0;for(;e>=1e3&&n<9;)e/=1e3,n+=3;return n}dataSetColour(t){return this.dataSetColours[t]}addAspect(t){this._analyseDims.push(t),this._showAnalyseDimensionChart()}removeAspect(t){this._analyseDims=this._analyseDims.filter((e=>e!=t)),this._showAnalyseDimensionChart()}analyseDimension(t,e){this._analyseFact=t,this._analyseDims=e,this._showAnalyseDimensionChart()}_showAnalyseDimensionChart(){const t=this._analyseFact,n=this._analyseDims,i=this.node;e()("canvas",i).remove(),e()("<canvas>").appendTo(e()(".chart-container",i)),this.show();const r={};n[0]&&(r[n[0]]=null),n[1]&&(r[n[1]]=null);const o=t.report.deduplicate(t.report.getAlignedFacts(t,r)),s=new an,a=new an;for(const t of o)n[0]&&s.add(t.aspect(n[0])),n[1]&&a.add(t.aspect(n[1]));const l=s.uniqueValues(),c=a.uniqueValues(),u=this._chooseMultiplier(o),d=t.unitLabel()+" "+this._multiplierDescription(u),h=[],p=[];for(let e=0;e<(n[0]?l.length:1);e++){h.push(n[0]?He(l[e].valueLabel("std")||"",40):"");for(let i=0;i<(n[1]?c.length:1);i++){p[i]=p[i]||{label:n[1]?c[i].valueLabel():"",data:[],backgroundColor:this.dataSetColour(i),borderColor:this.dataSetColour(i)};const r={};n[0]&&(r[n[0]]=l[e].value()),n[1]&&(r[n[1]]=c[i].value());const o=t.report.getAlignedFacts(t,r);o.length>0?p[i].data[e]=o[0].value()/10**u:p[i].data[e]=0}}e()(".other-aspects",i).empty();const f=[];for(const r of t.aspects())if("c"!=r.name()){const t=e()("<button>").addClass("other-aspect").appendTo(e()(".other-aspects",i));n.includes(r.name())?t.addClass("selected").text(r.label()+": *").on("click",(()=>this.removeAspect(r.name()))):("u"!=r.name()&&f.push(r.valueLabel()),t.text(r.label()+": "+r.valueLabel()),n.length<2&&t.addClass("addable").on("click",(()=>this.addAspect(r.name()))))}n[1]||(n[0]||(h[0]=f.join(", ")),p[0].label=f.join(", ")),this.setChartSize();const g=e()("canvas",i);Ol.register(pa,Bl,Zl,Vl);const m=new Ol(g,{type:"bar",data:{labels:h,datasets:p},options:{responsive:!0,maintainAspectRatio:!1,scales:{y:{beginAtZero:!0,title:{display:!0,text:d}},x:{ticks:{autoSkip:!1}}}}});e()(window).on("resize",(()=>{this.setChartSize(),m.resize()})),e()(".other-aspect",i).get(0)?.focus()}setChartSize(){const t=this.node,n=t.height()-e()(".other-aspects",this.node).outerHeight()-16;e()(".chart-container",t).height(n),e()("canvas",t).attr("height",n).height(n)}}class ec{constructor(t,n){this._elt=t,n=n||{},this.type=n.type||"dropdown",t.find(".menu-title").on("click",(e=>{t.find(".content-container").toggle(),e.stopPropagation()})),e()("html").on("click",(n=>{0===e()(".content",t).find(e()(n.target)).length&&this.close()}))}reset(){this._elt.find(".content").empty()}close(){"dropdown"==this.type&&this._elt.find(".content-container").hide()}_add(t,n){if(void 0!==n){const i=this._elt.find(".content > div").filter((()=>e()(this).data("iv-menu-item-name")===n));if(void 0!==i&&i.length>0)return void i.after(t)}t.appendTo(this._elt.find(".content"))}addDownloadButton(t,n){const i=this,r=e()("<a></a>").addClass("item").attr({href:n}).text(t).on("click",(()=>i.close()));this._add(r)}addCheckboxItem(t,n,i,r,o){const s=this,a=e()("<label></label>").addClass("menu-checkbox").addClass("item").text(t).data("iv-menu-item-name",i).prepend(e()('<input type="checkbox"></input>').prop("checked",o).change((function(){n(e()(this).prop("checked"),!0),s.close()}))).append(e()("<span></span>").addClass("checkmark"));this._add(a,r),o&&n(!0,!1)}addCheckboxGroup(t,n,i,r,o,s){const a=e()('<div class="group"></div>').data("iv-menu-item-name",o);this._add(a,s);for(const s of t){const t=e()("<label></label>").addClass("menu-checkbox").addClass("item").text(n[s]).prepend(e()('<input type="radio"></input>').attr({name:o,value:s}).on("change",(function(){r(e()(this).val())}))).append(e()("<span></span>").addClass("checkmark")).appendTo(a);s===i&&t.find("input").prop("checked",!0)}}addLabel(t){const n=e()("<div></div>").addClass("label").text(t);this._add(n)}addLink(t,n){const i=e()("<a></a>").attr("href",n).attr("target","_blank").attr("title",t).attr("aria-label",t).addClass("item").text(t);this._add(i)}}class nc{constructor(t){this._contents=e()('<div class="accordian"></div>'),this.onSelect=e().Callbacks(),this.options=t||{},this.options.onSelect&&this.onSelect.add(t.onSelect)}addCard(t,n,i,r){const o=this,s=e()('<div class="card"></div>').append(e()('<button class="title"></button>').attr("aria-label","Expand section").append(t).on("click",(function(){var t=e()(this).closest(".card");t.hasClass("active")?o.options.alwaysOpen||t.removeClass("active"):(t.closest(".accordian").find(".card").removeClass("active"),t.addClass("active"),o.onSelect.fire(t.data("accordian-card-id")))}))).append(e()('<div class="card-body"></div>').append(n)).appendTo(this._contents);null!==r&&s.data("accordian-card-id",r),i&&s.addClass("active")}contents(){return this.options.alwaysOpen&&0==this._contents.find(".card.active").length&&this._contents.find(".card").first().addClass("active"),this.options.dissolveSingle&&1==this._contents.children().length?this._contents.children().first().find(".card-body"):this._contents}}class ic{constructor(t){this.itemMap=new Map;for(const e of t??[])this.add(e)}add(t){this.itemMap.set(t.vuid,t)}items(){return Array.from(this.itemMap.values())}_allDimensions(){const t={},e=this.items().filter((t=>t instanceof cn));for(const i of e){const e=Object.keys(i.dimensions());for(var n=0;n<e.length;n++)t[e[n]]=!0}return Object.keys(t)}minimallyUniqueLabel(t){if(!this._minimallyUniqueLabels){for(var e=this.items().filter((t=>t instanceof cn)),n={},i=["c","p"].concat(this._allDimensions()),r=0;r<e.length;r++){var o=e[r];n[o.vuid]=[];for(var s=0;s<i.length;s++){var a=o.aspect(i[s]);n[o.vuid].push(a?a.valueLabel():null)}}var l={};for(s=0;s<i.length;s++){var c={};for(r=0;r<e.length;r++)c[n[e[r].vuid][s]]=!0;var u={};if(Object.keys(c).length>1){for(r=0;r<e.length;r++){var d=n[p=e[r].vuid][s],h=l[p]||[];null!==d&&h.push(d),h.length>0&&(l[p]=h,u[h.join(", ")]=!0)}if(Object.keys(u).length==e.length)break}}if(Object.keys(l).length<e.length)for(r=0;r<e.length;r++){var p=e[r].vuid;(h=l[p]||[]).unshift(n[p][0]),l[p]=h}this.items().filter((t=>t instanceof un)).forEach((t=>{l[t.vuid]=[t.title]})),this._minimallyUniqueLabels=l}return this._minimallyUniqueLabels[t.vuid].join(", ")}isEmpty(){return 0==this.itemMap.size}valueIntersection(){const t=this.items().map((t=>ln.fromFact(t)));return ln.intersection(...t)}completeDuplicates(){return this.items().every((t=>t.isCompleteDuplicate(this.items()[0])))}isConsistent(){if(0==this.itemMap.size)return!0;const t=this.items().map((t=>ln.fromFact(t)));return void 0!==ln.intersection(...t)}size(){return this.itemMap.size}mostPrecise(){return this.items().reduce(((t,e)=>e.isMorePrecise(t)?e:t))}}class rc extends nr{constructor(){super(".dialog.validation-report"),this.addButton("Dismiss",!0)}displayErrors(t){const n=this.node.find("tbody");n.empty();for(const i of t)e()("<tr></tr>").append(e()("<td></td>").text(i.sev)).append(e()("<td></td>").text(i.code)).append(e()("<td></td>").text(i.msg)).appendTo(n)}}class oc extends nr{constructor(t){super(".dialog.text-block-viewer"),this.addButton("Dismiss",!0),this.fact=t,this.node.find("#text-block-viewer-plain-text").off("change.dialog").on("change.dialog",(t=>this.displayTextBlock(t.target.checked)))}htmlWrapString(t){return"<!DOCTYPE html><html><head><title></title></head><body>"+t+"</body></html>"}static canRender(t){return t.isTextBlock()&&t.escaped()}textOnly(){return this.node.find("#text-block-viewer-plain-text").prop("checked")}displayTextBlock(){const t=this.node.find("iframe").get(0),e=t.contentDocument||t.contentWindow.document;if(e.open(),this.textOnly()){const t=document.createElement("div");t.append(document.createTextNode(this.fact.readableValue())),e.write(this.htmlWrapString(t.outerHTML))}else e.write(this.htmlWrapString(this.fact.value()));e.close()}}class sc{constructor(t,e){this.fact=t,this.calc11=e}calculationFacts(){const t=this.fact,e=t.report;if(!this._conceptToFact){const n={};for(const i of[Ee,"calc11"]){const r=e.getChildRelationships(t.conceptName(),i);for(const[o,s]of Object.entries(r))Qe(n,i,{}),n[i][o]={},s.length>0&&e.getAlignedFacts(t,{c:s.map((t=>t.t))}).forEach((t=>Qe(n[i][o],t.conceptName(),new ic).add(t)))}this._conceptToFact=n}return this._conceptToFact}hasCalculations(){const t=this.calculationFacts();return Object.keys(t).length>0}resolvedCalculations(){const t=[],e=this.calculationFacts();for(const[n,i]of Object.entries(e))for(const[e,r]of Object.entries(i))Object.keys(r).length>0&&t.push(this.resolvedCalculation(e,n));return t}bestELRForFactSet(t){const e=this.calculationFacts();let n="",i=-1;for(const[r,o]of Object.entries(e))for(const[e,r]of Object.entries(o)){let o=0;for(const[e,n]of Object.entries(r)){let e=0;for(const i of n.items())t.includes(i.vuid)&&(e=1);o+=e}o/Object.keys(r).length>i&&(i=o/Object.keys(r).length,n=e)}return n}resolvedCalculation(t,e){const n=this.calculationFacts()[e][t],i=this.fact.report,r=i.getChildRelationships(this.fact.conceptName(),e)[t],o=new(this.calc11?cc:uc)(t,this.fact,e);for(const t of r){const e=n[t.t]??new ic;o.addRow(new ac(i.getConcept(t.t),t.w,e))}return o}}class ac{constructor(t,e,n){this.concept=t,this.weight=e,this.facts=n,this.weightSign=1==e?"+":-1==e?"-":e.toString()}contributionInterval(){const t=this.facts.valueIntersection();if(void 0!==t)return t.times(this.weight)}}class lc{constructor(t,e,n){this.totalFact=e,this.totalFactSet=new ic(e.report.getAlignedFacts(e)),this.elr=t,this.rows=[],this.relationshipVersion=n}addRow(t){this.rows.push(t)}binds(){return this.rows.some((t=>!t.facts.isEmpty()))}unchecked(){return!1}}class cc extends lc{calculatedTotalInterval(){let t=new ln(0,0);for(const e of this.rows)if(!e.facts.isEmpty()){const n=e.contributionInterval();if(void 0===n)return;t=t.plus(n)}return t}isConsistent(){const t=this.calculatedTotalInterval(),e=this.totalFactSet.valueIntersection();return void 0!==t&&void 0!==t.intersection(e)}}class uc extends lc{binds(){return this.relationshipVersion==Ee&&super.binds()&&this.rows.every((t=>t.facts.completeDuplicates()))}unchecked(){return super.binds()&&!this.binds()}uncheckedDueToVersionMismatch(){return this.relationshipVersion!==Ee}calculatedTotal(){let t=new Ne(0);for(const e of this.rows){if(!e.facts.isConsistent())return;e.facts.isEmpty()||(t=t.plus(e.facts.items()[0].roundedValue().times(e.weight)))}return t}isConsistent(){return this.calculatedTotal().equals(this.totalFact.roundedValue())}}class dc extends nr{constructor(){super(".dialog.calculation-inspector"),this.addButton("Dismiss",!0)}duplicateFactIcons(t){const n=e()("<td></td>").addClass("icons");return t.size()>1&&!t.completeDuplicates()&&(t.isConsistent()?n.append(e()("<span></span>").addClass("duplicate-facts").attr("title",Q.t("calculation.consistent-duplicate-facts-present",{nfacts:t.size()}))):n.append(e()("<span></span>").addClass("duplicate-facts").attr("title",Q.t("calculation.inconsistent-duplicate-facts-present",{nfacts:t.size()})))),n}populateCalc11Table(t,n){n.addClass("calc11");const i=n.find("tbody");let r=!1;for(const n of t.rows){let t="",o="",s="";if(!n.facts.isEmpty()){let e=n.facts.items()[0];const i=n.facts.valueIntersection();if(void 0===i)t="n/a",o="n/a",s="n/a";else{t=e.readableValue(i.midpoint().toNumber());const r=n.contributionInterval();o=e.readableValue(r.a.toNumber()),s=e.readableValue(r.b.toNumber())}}const a=this.duplicateFactIcons(n.facts);r=r||a.find("span").length>0,e()("<tr></tr>").append(e()("<td></td>").addClass("weight").text(n.weightSign)).append(e()("<td></td>").text(n.concept.label()).addClass("line-item")).append(e()("<td></td>").addClass("figure").text(t)).append(a).append(e()("<td></td>").addClass("figure").text(o)).append(e()("<td></td>").addClass("figure").text(s)).appendTo(i)}const o=t.totalFact,s=t.calculatedTotalInterval();e()("<tr></tr>").addClass("total").append(e()("<td></td>")).append(e()("<td></td>").text(`${o.concept().label()} (${Q.t("calculation.calculated-total")})`).addClass("line-item")).append(e()("<td></td>").text(void 0===s?"n/a":o.readableValue(s.midpoint().toNumber())).addClass("figure")).append(e()("<td></td>").addClass("icons")).append(e()("<td></td>").text(void 0===s?"n/a":o.readableValue(s.a.toNumber())).addClass("figure")).append(e()("<td></td>").text(void 0===s?"n/a":o.readableValue(s.b.toNumber())).addClass("figure")).appendTo(i);const a=t.totalFactSet.valueIntersection(),l=this.duplicateFactIcons(t.totalFactSet);e()("<tr></tr>").append(e()("<td></td>")).append(e()("<td></td>").text(`${o.concept().label()} (${Q.t("calculation.reported-total")})`).addClass("line-item")).append(e()("<td></td>").text(void 0===a?"n/a":o.readableValue(a.midpoint().toNumber())).addClass("figure")).append(l).append(e()("<td></td>").text(void 0===a?"n/a":o.readableValue(a.a.toNumber())).addClass("figure")).append(e()("<td></td>").text(void 0===a?"n/a":o.readableValue(a.b.toNumber())).addClass("figure")).appendTo(i),r&&n.addClass("has-icons")}populateLegacyCalcTable(t,n){n.removeClass("calc11");const i=n.find("tbody");let r=!1;for(const n of t.rows){let t="";if(!n.facts.isEmpty()){let e=n.facts.items()[0];t=void 0===n.facts.valueIntersection()?"Inconsistent duplicates":n.facts.completeDuplicates()?e.readableValue():"Duplicate facts"}const o=this.duplicateFactIcons(n.facts);r=r||o.find("span").length>0,e()("<tr></tr>").append(e()("<td></td>").addClass("weight").text(n.weightSign)).append(e()("<td></td>").text(n.concept.label()).addClass("line-item")).append(e()("<td></td>").addClass("figure").text(t)).append(o).appendTo(i)}const o=t.totalFact,s=t.calculatedTotal();e()("<tr></tr>").addClass("total").append(e()("<td></td>")).append(e()("<td></td>").text(`${o.concept().label()} (${Q.t("calculation.calculated-total")})`).addClass("line-item")).append(e()("<td></td>").text(o.readableValue(s)).addClass("figure")).append(e()("<td></td>").addClass("icons")).appendTo(i),e()("<tr></tr>").append(e()("<td></td>")).append(e()("<td></td>").text(`${o.concept().label()} (${Q.t("calculation.reported-total")})`).addClass("line-item")).append(e()("<td></td>").text(o.readableValue()).addClass("figure")).append(e()("<td></td>").addClass("icons")).appendTo(i),r&&n.addClass("has-icons")}displayCalculation(t){const e=this.node.find("table.calculation-trace");e.find("tbody").empty(),e.removeClass("has-icons"),t instanceof cc?this.populateCalc11Table(t,e):this.populateLegacyCalcTable(t,e);const n=e.find("td.status");n.removeClass("inconsistent").removeClass("consistent").removeClass("unchecked"),t.unchecked()?n.addClass("unchecked").find(".message").text(Q.t("calculation.does-not-bind")):t.isConsistent()?n.addClass("consistent").find(".message").text(Q.t("factDetails.calculationIsConsistent")):n.addClass("inconsistent").find(".message").text(Q.t("factDetails.calculationIsInconsistent"))}}class hc{constructor(t){this._reportSet=t,this.outlines=t.reports.map((t=>new pc(t)))}hasOutline(){return this.outlines.some((t=>Object.keys(t.sections).length>0))}sortedSections(){return this.outlines.flatMap((t=>t.sortedSections()))}groupsForFact(t){return this.outlines.find((e=>e.report==t.report)).groupsForFact(t)}}class pc{constructor(t){this.report=t;const e=t.facts().sort(((t,e)=>t.ixNode.docOrderindex-e.ixNode.docOrderindex)),n={},i={},r={},o={};this._buildDimensionMap();const s=t.relationshipGroups("pres");for(const t of e)if(!t.isHidden())for(const e of s)this.factInGroup(t,e)?(e in n||(n[e]=0,i[e]=t),n[e]++):e in n&&((!(e in r)||r[e]<n[e])&&(r[e]=n[e],o[e]=i[e]),delete n[e],delete i[e]);for(const t in n)(!(t in r)||r[t]<n[t])&&(r[t]=n[t],o[t]=i[t]);this.sections=o}factInGroup(t,e){if(0==this.report.getParentRelationshipsInGroup(t.conceptName(),"pres",e).length)return!1;const n=t.dimensions(),i=this.dimensionMap[e];for(const[t,e]of Object.entries(i))if(e.typed){if(!(t in n))return!1}else if(t in n?!(n[t]in e.members):!e.allowDefault)return!1;return!0}_buildDimensionMap(){const t=this.report.relationshipGroups("pres");this.dimensionMap={};for(const e of t){this.dimensionMap[e]={};for(const t of this.report.relationshipGroupRoots("pres",e))this.buildDimensionMapFromSubTree("pres",e,null,t)}}buildDimensionMapFromSubTree(t,e,n,i){const r=this.report.getConcept(i);if(r.isTypedDimension())this.dimensionMap[e][i]={typed:!0};else{r.isExplicitDimension()&&(n=i,this.dimensionMap[e][n]={members:{},allowDefault:!1});var o=this.report.getChildRelationships(i,t);if(e in o)for(var s of o[e])n&&(this.report.dimensionDefault(n)==s.t?this.dimensionMap[e][n].allowDefault=!0:this.dimensionMap[e][n].members[s.t]=!0),this.buildDimensionMapFromSubTree(t,e,n,s.t)}}groupsForFact(t){const e=[];for(const n of this.report.relationshipGroups("pres"))this.factInGroup(t,n)&&e.push({elr:n,fact:this.sections[n],report:this.report});return e}hasOutline(){return Object.keys(this.sections).length>0}sortedSections(){const t=Object.keys(this.sections),e=/\(parenthetical\)\s*$/i;return t.filter((t=>!e.test(this.report.getRoleLabelOrURI(t)))).sort(((t,e)=>this.report.getRoleLabelOrURI(t).localeCompare(this.report.getRoleLabelOrURI(e)))).map((t=>({report:this.report,fact:this.sections[t],elr:t})))}}const fc="dimensions",gc="members",mc="primaryItems",vc="total";class yc{constructor(){this._dimensions=new Set,this._members=new Set,this._primaryItems=new Set}addDimension(t){this._dimensions.add(t)}addMember(t){this._members.add(t)}addPrimaryItem(t){this._primaryItems.add(t)}getCounts(){return{[fc]:this._dimensions.size,[gc]:this._members.size,[mc]:this._primaryItems.size,[vc]:this._dimensions.size+this._members.size+this._primaryItems.size}}}class bc{constructor(){this._documentsByType={inline:new Set,schema:new Set,calcLinkbase:new Set,defLinkbase:new Set,labelLinkbase:new Set,presLinkbase:new Set,refLinkbase:new Set,unrecognizedLinkbase:new Set}}addDocument(t,e){for(const n of e){if(!(n in this._documentsByType))throw new Error(`Document ${t} with unrecognized type ${n}.`);this._documentsByType[n].add(t)}}getDocuments(){const t={};for(const[e,n]of Object.entries(this._documentsByType))t[e]=[...n].sort();return t}}class wc{constructor(t){this._reportSet=t}_getTagCounter(t,e){const n=e.indexOf(":");if(-1===n)throw new Error(`Element ${e} is not a concept.`);const i=e.substring(0,n);return t.has(i)||t.set(i,new yc),t.get(i)}_buildTagCounts(){const t=new Map;for(const e of this._reportSet.facts()){let n=this._getTagCounter(t,e.conceptName());n.addPrimaryItem(e.conceptName());for(const[i,r]of Object.entries(e.dimensions())){n=this._getTagCounter(t,i),n.addDimension(i);const o=e.report.getConcept(i);if(o.isTypedDimension()){const e=o.typedDomainElement();e&&(n=this._getTagCounter(t,e),n.addMember(e))}else n=this._getTagCounter(t,r),n.addMember(r)}}this._tagCounts=new Map([...t].map((([t,e])=>[t,e.getCounts()])))}_buildLocalFileSummary(){this._localFileSummary=new bc;for(const[t,e]of this._reportSet.reports.flatMap((t=>Object.entries(t.localDocuments()))))this._localFileSummary.addDocument(t,e)}totalFacts(){return void 0===this._totalFacts&&(this._totalFacts=this._reportSet.facts().length),this._totalFacts}hiddenFacts(){return void 0===this._hiddenFacts&&(this._hiddenFacts=this._reportSet.facts().filter((t=>t.isHidden())).length),this._hiddenFacts}mandatoryFacts(){return void 0===this._mandatoryFacts&&(this._mandatoryFacts=this._reportSet.facts().filter((t=>t.isMandatory())).length),this._mandatoryFacts}tagCounts(){return void 0===this._tagCounts&&this._buildTagCounts(),this._tagCounts}getLocalDocuments(){return void 0===this._localFileSummary&&this._buildLocalFileSummary(),this._localFileSummary.getDocuments()}getSoftwareCredits(){return this._reportSet.getSoftwareCredits()}}const Ac={periodFilter:"search-filter-period",dimensionTypeFilter:"search-filter-dimension-type",namespacesFilter:"search-filter-namespaces",targetDocumentFilter:"search-filter-target-document",scalesFilter:"search-filter-scales",unitsFilter:"search-filter-units",calculationsFilter:"search-filter-calculations",dataTypesFilter:"search-filter-datatypes"};class xc{constructor(t){this._iv=t,this._viewerOptions=new mn,this._currentItem=null,this._useCalc11=!0}i18nInit(){const t=["translation","referenceParts","currencies","dataTypes","labelRoles","scale","balanceTypes","tooltips"];return Q.init({lng:this.preferredLanguages()[0],reloadOnLanguageChange:!0,returnEmptyString:!1,fallbackLng:"en",debug:!1,resources:Object.fromEntries(["en","cy","es"].map((e=>[e,Object.fromEntries(t.map((t=>[t,n(918)(`./${e}/${t.toLowerCase()}.json`)])))])))}).then((t=>{lr().init(Q,e(),{tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",useOptionsAttr:!1,parseDefaultValueFromContent:!0})}))}initialize(t,n){const i=this;return this._viewer=n,new Promise((function(n,r){i._chart=new tc,i._reportSet=t,i.i18nInit().then((r=>{e()(".collapsible-header button:first-of-type").on("click",(function(){const t=e()(this).closest(".collapsible-section");t.toggleClass("collapsed"),t.hasClass("collapsed")?t.find(".collapsible-body").slideUp(250):(t.find(".collapsible-body").slideDown(250),t.hasClass("collapsible-only")&&t.siblings(".collapsible-section:not(.collapsed)").each((function(){const t=e()(this);t.addClass("collapsed"),t.find(".collapsible-body").slideUp(250)})))})),e()("#inspector .controls .search-button").on("click",(()=>i.inspectorMode("search-mode",!0))),e()("#inspector .controls .summary-button").on("click",(()=>i.inspectorMode("summary-mode",!0))),e()("#inspector .controls .outline-button").on("click",(()=>i.inspectorMode("outline-mode",!0))),e()("#inspector .back").on("click",(()=>i.popInspectorMode())),e()(".popup-trigger").on("mouseenter",(function(){e()(this).find(".popup-content").show()})).on("mouseleave",(function(){e()(this).find(".popup-content").hide()})),e()("#inspector").on("click",".clipboard-copy",(function(){navigator.clipboard.writeText(e()(this).data("cb-text"))})),i.initializeTooltips(),i._toolbarMenu=new ec(e()("#toolbar-highlight-menu")),i.buildToolbarHighlightMenu(),i._optionsMenu=new ec(e()("#display-options-menu")),i.buildDisplayOptionsMenu(),i.buildHomeLink(),e()("#ixv").localize(),e()(window).on("message",(t=>i.handleMessage(t))),t.viewerOptions=i._viewerOptions,i.summary=new wc(t),i.createSummary(),i.outline=new hc(t),i.createOutline(),i._iv.setProgress(Q.t("inspector.initializing")).then((()=>{i._search=new dr(t),i.handleFactDeepLink(),i.rebuildViewer(),i.setupValidationReportIcon(),i.initializeViewer(),i.doInitialSelection(),n()}))}))}))}initializeTooltips(){e()("html").on("click",(t=>this.hideTooltip())),e()("#inspector .inspector-body").on("scroll",(t=>this.hideTooltip())),e()(document).on("keyup",(t=>{27==t.keyCode&&this.hideTooltip()})),e()("#ixv").on("click",".tooltip-icon",(t=>{this.toggleTooltip(e()(t.currentTarget)),t.stopPropagation()}));let t=0;e()("#ixv").on("mouseenter",".tooltip-icon",(n=>{t++,setTimeout((i=>{t>0&&this.showTooltip(e()(n.currentTarget),!0)}),250)})),e()("#ixv").on("mouseenter","#tooltip",(e=>t++)),e()("#ixv").on("mouseleave","#tooltip, .tooltip-icon",(e=>{t--,setTimeout((e=>{0==t&&this.hideTooltip(!0)}),500)}))}initializeViewer(){this._viewer.onSelect.add(((t,e,n)=>this.selectItem(t,e,n))),this._viewer.onMouseEnter.add((t=>this.viewerMouseEnter(t))),this._viewer.onMouseLeave.add((t=>this.viewerMouseLeave(t))),e()(".ixbrl-next-tag").on("click",(()=>this._viewer.selectNextTag(this._currentItem))),e()(".ixbrl-prev-tag").on("click",(()=>this._viewer.selectPrevTag(this._currentItem))),e()("#toggle-dark-mode").attr("title",Q.t("toolbar.toggleDarkMode")).attr("aria-label",Q.t("toolbar.toggleDarkMode")).on("click",$l)}postLoadAsync(){Je(this._search.buildSearchIndex((()=>this.searchReady())))}handleFactDeepLink(){const t=location.hash.match(/^#f([0-9]+)?-(.*)$/);if(null!==t){const e=Xe(t[1]??0,t[2]);void 0!==this._reportSet.getItemById(e)&&this.selectItem(e)}}doInitialSelection(){!this._currentItem&&this._iv.isFeatureEnabled("search_on_startup")&&this.inspectorMode("search-mode")}handleMessage(t){const e=t.originalEvent.data;let n;try{n=JSON.parse(e)}catch(t){return}if("SHOW_FACT"===n.task){let t=Number(n.docSetId);t||(t=0);const e=Xe(t,n.factId);this.selectItem(e)}else console.log("Not handling unsupported task message: "+e)}updateURLFragment(){this._currentItem?location.hash="#f"+this._currentItem.vuid.replace(/^0-/,"-"):location.hash=""}buildDisplayOptionsMenu(){if(this._optionsMenu.reset(),this._reportSet){const t=this.selectDefaultLanguage(),e=this._reportSet.availableLanguages(),n=new Intl.DisplayNames(this.preferredLanguages(),{type:"language"});this._optionsMenu.addLabel(Q.t("menu.documentLanguage")),this._optionsMenu.addCheckboxGroup(e,Object.fromEntries(e.map((t=>[t,n.of(t)]))),t,(t=>{this.setDocumentLanguage(t),this.update()}),"select-language"),this.setDocumentLanguage(t);const i=Q.language.substring(0,2),r=Object.keys(Q.options.resources),o=new Intl.DisplayNames(this.preferredLanguages(),{type:"language"});this._optionsMenu.addLabel(Q.t("menu.applicationLanguage")),this._optionsMenu.addCheckboxGroup(r,Object.fromEntries(r.map((t=>[t,o.of(t)]))),i,(t=>{this.changeApplicationLanguage(t)}),"select-user-language"),this._reportSet.filingDocuments()&&(this._optionsMenu.addLabel(Q.t("menu.actions")),this._optionsMenu.addDownloadButton("Download filing documents",this._reportSet.filingDocuments())),this._optionsMenu.addLabel(Q.t("menu.options")),this._reportSet.usesCalculations()&&this._optionsMenu.addCheckboxItem(Q.t("calculation.useCalculations11"),(t=>this.setCalculationMode(t)),"calculation-mode","select-language",this._useCalc11)}let t={},e=this._iv.getGuideLinkUrl();e&&(t[Q.t("menu.userGuide")]=e);let n=this._iv.getSupportLinkUrl();n&&(t[Q.t("menu.contactUs")]=n);let i=this._iv.getSurveyLinkUrl();if(i&&(t[Q.t("menu.survey")]=i),Object.entries(t).length>0){this._optionsMenu.addLabel(Q.t("menu.help"));for(const[e,n]of Object.entries(t))this._optionsMenu.addLink(e,n)}this._iv.callPluginMethod("extendDisplayOptionsMenu",this._optionsMenu)}buildHomeLink(){if(e()("#top-bar #home-link").remove(),!this._iv.isStaticFeatureEnabled(Re))return;e()("#top-bar img.header").remove();let t,n=this._iv.getStaticFeatureValue(Re);t=this._iv.isStaticFeatureEnabled(Fe)?this._iv.getStaticFeatureValue(Fe):Q.t("toolbar.homePage");const i=sessionStorage.getItem("ixbrl-viewer-home-link-query");i&&(n.includes("?")?n+="&":n+="?",n+=i);const r=e()("<a></a>").attr("href",n).attr("id","home-link").text(t);e()("#top-bar").prepend(r)}highlightTagsOnStartup(){const t=window.localStorage.getItem(Be);return null!==t?JSON.parse(t):this._iv.isFeatureEnabled("highlight_facts_on_startup")}buildToolbarHighlightMenu(){const t=this._iv;this._toolbarMenu.reset(),this._toolbarMenu.addCheckboxItem(Q.t("toolbar.xbrlElements"),((t,e)=>this.highlightAllTags(t,e)),"highlight-tags",null,this.highlightTagsOnStartup()),t.isReviewModeEnabled()&&(this._toolbarMenu.addCheckboxItem("Untagged Numbers",(function(e){const n=t.viewer.contents().find("body");e?n.addClass("review-highlight-untagged-numbers"):n.removeClass("review-highlight-untagged-numbers")}),"highlight-untagged-numbers","highlight-tags"),this._toolbarMenu.addCheckboxItem("Untagged Dates",(function(e){const n=t.viewer.contents().find("body");e?n.addClass("review-highlight-untagged-dates"):n.removeClass("review-highlight-untagged-dates")}),"highlight-untagged-dates","highlight-untagged-numbers")),this._iv.callPluginMethod("extendToolbarHighlightMenu",this._toolbarMenu)}buildHighlightKey(){let t;e()(".highlight-key .items").empty(),t=this._iv.isReviewModeEnabled()?["XBRL Elements","Untagged Numbers","Untagged Dates"]:this._reportSet.namespaceGroups().map((t=>this._reportSet.preferredPrefix(t))),this._iv.callPluginMethod("extendHighlightKey",t);for(const[n,i]of t.entries())e()("<div>").addClass("item").append(e()("<span></span>").addClass("sample").addClass("sample-"+n%3)).append(e()("<span></span>").text(i)).appendTo(e()(".highlight-key .items"))}changeApplicationLanguage(t){Q.changeLanguage(t),this.rebuildViewer()}rebuildViewer(){e()("#ixv").localize(),this.buildDisplayOptionsMenu(),this.buildHomeLink(),this.buildToolbarHighlightMenu(),this.buildHighlightKey(),this.update()}inspectorMode(t,n){const i=e()("#inspector").removeClass(["summary-mode","outline-mode","search-mode"].filter((e=>e!==t)));void 0!==t?n?i.toggleClass(t):i.addClass(t):this._prevInspectorMode=void 0}pushInspectorMode(t,e){this._prevInspectorMode=e,this.inspectorMode(t)}popInspectorMode(){this.inspectorMode(this._prevInspectorMode),this._prevInspectorMode=void 0}setCalculationMode(t){this._useCalc11=t,this._currentItem instanceof cn&&this.updateCalculation(this._currentItem)}highlightAllTags(t,e){e&&window.localStorage.setItem(Be,JSON.stringify(t)),this._viewer.highlightAllTags(t,this._reportSet.namespaceGroups())}factListRow(t){const n=e()('<button class="fact-list-item"></button>').on("click",(()=>this.selectItem(t.vuid,void 0,void 0,!0))).on("dblclick",(()=>this.selectItem(t.vuid))).on("mousedown",(t=>{t.detail>1&&t.preventDefault()})).on("mouseenter",(()=>this._viewer.linkedHighlightFact(t))).on("mouseleave",(()=>this._viewer.clearLinkedHighlightFact(t))).data("ivid",t.vuid);e()('<button class="select-icon"></button>').attr("title",Q.t("search.viewFact")).on("click",(()=>{this.selectItem(t.vuid)})).appendTo(n),this._setLabelWithLang(e()('<div class="title"></div>'),t.getLabelOrNameAndLang("std")).appendTo(n);const i=t.concept().dataType();void 0!==i&&e()('<div class="datatype"></div>').text(i.label()).appendTo(n),e()('<div class="dimension"></div>').text(t.period().toString()).appendTo(n);for(const i of t.aspects())i.isTaxonomyDefined()&&!i.isNil()&&this._setLabelWithLang(e()('<div class="dimension"></div>'),i.valueLabelAndLang()).appendTo(n);const r=e()("<div></div>").addClass("block-list-item-tags").appendTo(n);return null!==t.targetDocument()&&e()('<div class="hidden"></div>').text(t.targetDocument()).appendTo(r),t.isHidden()?e()('<div class="hidden"></div>').text(Q.t("search.hiddenFact")).appendTo(r):t.isHTMLHidden()&&e()('<div class="hidden"></div>').text(Q.t("search.concealedFact")).appendTo(r),n}addResults(t,n,i){e()(".more-results",t).remove();for(var r=i;r<n.length;r++){if(r-i>=100){e()('<div class="more-results"></div>').text(Q.t("search.showMoreResults")).on("click",(()=>this.addResults(t,n,r))).appendTo(t);break}this.factListRow(n[r].fact).appendTo(t)}}searchSpec(){const t={};t.searchString=e()("#ixbrl-search").val(),t.visibilityFilter=e()("#search-filter-visibility").val(),t.showMandatoryFacts=e()("#search-mandatory-fact-filter").prop("checked"),t.conceptTypeFilter=e()("#search-filter-concept-type").val();for(const[n,i]of Object.entries(Ac))t[n]=e()(`#${i} select`).val();const n=this._reportSet.getUsedConceptDataTypes().filter((e=>t.dataTypesFilter.includes(e.dataType.name)));return"numeric"==t.conceptTypeFilter&&n.some((t=>!t.isNumeric))||"text"==t.conceptTypeFilter&&n.some((t=>t.isNumeric))?e()("#search-filter-datatypes .datatype-conflict-warning").show():e()("#search-filter-datatypes .datatype-conflict-warning").hide(),t.factValueFilter=e()("#search-filter-fact-value").val(),t}hasActiveSearchFilters(t){return Object.keys(Ac).some((e=>t[e].length>0))||"*"!==t.visibilityFilter||t.showMandatoryFacts||"*"!==t.conceptTypeFilter||"*"!==t.factValueFilter}setupSearchControls(t){const n=this;e()(".search-controls input, .search-controls select").on("change",(()=>this.search())),e()(".search-controls button.filter-toggle").on("click",(()=>e()(".search-controls").toggleClass("show-filters"))),e()(".search-controls .reset").on("click",(()=>this.resetSearchFilters())),e()(".search-controls .search-filters .reset-multiselect").on("click",(function(){e()(this).siblings().children("select option:selected").prop("selected",!1),n.search()}));for(const t of Object.keys(this._search.periods))e()("<option>").attr("value",t).text(this._search.periods[t]).appendTo("#search-filter-period select");for(const t of this._reportSet.getUsedConceptPrefixes())e()("<option>").attr("value",t).text(`${this._reportSet.preferredPrefix(t)} (${this._reportSet.prefixMap()[t]})`).appendTo("#search-filter-namespaces select");if(this._reportSet.getUsedConceptDataTypes().length>0)for(const t of this._reportSet.getUsedConceptDataTypes())e()("<option>").attr("value",t.dataType.name).text(t.dataType.label()).appendTo("#search-filter-datatypes select");else e()("#search-filter-datatypes").hide();const i=Array.from(this._reportSet.getTargetDocuments());if(1==i.length&&null==i[0])e()("#search-filter-target-document").hide();else for(const t of i)e()("<option>").attr("value",t??":default").text(t??`<${Q.t("search.default")}>`).appendTo("#search-filter-target-document select");for(const t of this._reportSet.getUsedUnits())e()("<option>").attr("value",t).text(`${this._reportSet.getUnit(t)?.label()} (${t})`).appendTo("#search-filter-units select");const r=this._getScalesOptions();for(const t of Object.keys(r).sort())e()("<option>").attr("value",t).text(r[t]).appendTo("#search-filter-scales select")}_getScalesOptions(){const t={},e=this._reportSet.getUsedScalesMap();return Object.keys(e).sort().forEach((n=>{const i=Array.from(e[n]).sort();i.length>0?t[n]=i.join(", "):t[n]=n.toString()})),t}resetSearchFilters(t){t=t??{},e()("#search-filter-period select option:selected").prop("selected",!1),e()("#search-filter-visibility").val(t.visibility??"*"),e()("#search-filter-concept-type").val("*"),e()("#search-filter-fact-value").val("*"),e()("#search-mandatory-fact-filter").prop("checked",t.mandatoryFacts??!1);for(const t of Object.values(Ac))e()(`#${t} select option:selected`).prop("selected",!1);this.search()}searchReady(){this.setupSearchControls(),e()("#inspector").addClass("search-ready"),e()("#ixbrl-search").prop("disabled",!1),this.search()}search(){const t=this.searchSpec();this.hasActiveSearchFilters(t)?e()("#inspector .search-controls").addClass("active-filters"):e()("#inspector .search-controls").removeClass("active-filters");const n=this._search.search(t);if(void 0===n)return;const i=e()("#inspector .search-results .results");i.empty(),this._viewer.clearRelatedHighlighting();const r=e()("#inspector .search-results .search-overlay");n.length>0?(r.hide(),this.addResults(i,n,0)):(e()(".title",r).text(Q.t("search.noMatchFound")),e()(".text",r).text(Q.t("search.tryAgainDifferentKeywords")),r.show()),e()("#matching-facts-summary").text(Q.t("search.matchingFactsSummary",{nMatches:n.length,nTotal:this._reportSet.facts().length})),""!=t.searchString&&this._viewer.highlightRelatedFacts(n.map((t=>t.fact)));for(const t of Object.values(Ac))this.updateMultiSelectSubheader(t)}updateMultiSelectSubheader(t){const n=e()(`#${t} .collapsible-subheader`),i=e()(`#${t} select option:selected`);if(1===i.length)n.text(` ${i.text()}`);else if(i.length>0){const r=e()(`#${t} select option`).length;n.text(` (${i.length}/${r} ${Q.t("search.selected")})`)}else n.empty()}updateCalculation(t,n){e()(".calculations .tree").empty().append(this._calculationHTML(t))}createSummary(){const t=e()("#inspector .summary .body");this._populateFactSummary(t),this._populateTagSummary(t),this._populateFileSummary(t),this._populateReportCreation(t)}_populateFactSummary(t){const n=this.summary.totalFacts();e()(".total-facts-value",t).text(n).on("click",(()=>{this.resetSearchFilters(),this.pushInspectorMode("search-mode","summary-mode")}));const i=this.summary.hiddenFacts();e()(".hidden-facts-value",t).text(i).on("click",(()=>{this.resetSearchFilters({visibility:"hidden"}),this.pushInspectorMode("search-mode","summary-mode")}));const r=this.summary.mandatoryFacts();r?(e()("#mandatory-facts-row").show(),e()("#mandatory-fact-filter-checkbox").show(),e()(".mandatory-facts-value",t).text(r).on("click",(()=>{this.resetSearchFilters({mandatoryFacts:!0}),this.pushInspectorMode("search-mode","summary-mode")}))):(e()("#mandatory-facts-row").hide(),e()("#mandatory-fact-filter-checkbox").hide())}_populateTagSummary(t){const n=t.find(".tag-summary-table-body"),i=this.summary.tagCounts();let r=0,o=0,s=0,a=0;for(const t of i.values())r+=t[mc],o+=t[fc],s+=t[gc],a+=t[vc];function l(t,n,i){let r=0;i>0&&(r=n/i);let o=r.toLocaleString(void 0,{style:"percent"});o=` (${o})`,e()("<td></td>").text(n).addClass("figure").append(e()("<sup></sup>").text(o)).appendTo(t)}const c=[...i.entries()].sort(((t,e)=>t[0].localeCompare(e[0])));for(const[t,i]of c){const c=e()("<tr></tr>").appendTo(n);c.append(e()("<th></th>").attr("scope","row").text(this._reportSet.preferredPrefix(t))),l(c,i[mc],r),l(c,i[fc],o),l(c,i[gc],s),l(c,i[vc],a)}const u=t.find(".tag-summary-table-footer-row");l(u,r,r),l(u,o,o),l(u,s,s),l(u,a,a)}_populateFileSummary(t){const{inline:n,schema:i,calcLinkbase:r,defLinkbase:o,labelLinkbase:s,presLinkbase:a,refLinkbase:l,unrecognizedLinkbase:c}=this.summary.getLocalDocuments(),u=t.find(".files-summary");let d=0;function h(t,n){if(0===t.length)u.find(n).hide();else{const i=u.find(n+" ul");d+=1;for(const n of t)i.append(e()("<li></li>").text(n))}}h(n,".inline-docs"),h(i,".schemas"),h(a,".pres-links"),h(r,".calc-links"),h(o,".def-links"),h(s,".label-links"),h(l,".ref-links"),h(c,".other-links"),0==d&&u.hide()}_populateReportCreation(t){const n=this.summary.getSoftwareCredits(),i=t.find(".report-creation");if(n.length>0){const t=i.find("ul");for(const i of n)t.append(e()("<li></li>").text(i))}else i.hide()}createOutline(){if(this.outline.hasOutline()){e()(".outline .no-outline-overlay").hide();const t=e()('<div class="fact-list"></div>').appendTo(e()(".outline .body"));for(const n of this.outline.sortedSections())e()('<button class="fact-list-item"></button>').text(n.report.getRoleLabelOrURI(n.elr)).on("click",(()=>this.selectItem(n.fact.vuid))).on("dblclick",(()=>e()("#inspector").removeClass("outline-mode"))).on("mousedown",(t=>{t.detail>1&&t.preventDefault()})).appendTo(t)}}updateOutline(t){e()(".fact-groups").empty();for(const n of this.outline.groupsForFact(t))e()('<button class="fact-list-item"></button>').text(t.report.getRoleLabelOrURI(n.elr)).on("click",(()=>this.selectItem(n.fact.vuid))).appendTo(e()(".fact-groups"))}updateFootnotes(t){e()(".footnotes").empty().append(this._footnotesHTML(t)),t.linkedFacts.length>0?e()("#inspector .footnote-facts-section").show().find(".footnote-facts").empty().append(this._footnoteFactsHTML(t)):e()("#inspector .footnote-facts-section").hide()}_anchorList(t,n){const i=e()("<ul></ul>");if(n.length>0)for(const r of n){const n=t.report.getAlignedFacts(t,{c:r}),o=t.report.getLabelAndLang(r,"std",!0);e()("<li></li>").appendTo(i).append(this.factLinkHTML(o,n))}else e()("<li></li>").append(e()("<i></i>").text(Q.t("common.none"))).appendTo(i);return i}updateAnchoring(t){this._reportSet.usesAnchoring()?(e()(".anchoring").show(),e()(".anchoring .collapsible-body .anchors-wider").empty().append(this._anchorList(t,t.widerConcepts())),e()(".anchoring .collapsible-body .anchors-narrower").empty().append(this._anchorList(t,t.narrowerConcepts()))):e()(".anchoring").hide()}labelRoleSort([t,e,n],[i,r,o]){const s=["std","doc"].reverse(),a=s.indexOf(t),l=s.indexOf(i);return a!=l?l-a:e.localeCompare(r)}updateLabels(t){const n=e()("div.labels").empty(),i=e()("<dl></dl>").appendTo(n);for(const[n,r,o]of Object.entries(t.concept().labels()).map((([e,n])=>[e,t.report.getLabelRoleLabel(e),n])).sort(this.labelRoleSort))e()("<dt></dt>").text(r).appendTo(i),e()("<dd></dd>").text(o).appendTo(i);return i}_referencesHTML(t){const n=new nc;for(const[i,r]of t.concept().references().entries()){const t=e()("<span></span>").text(r[0].value),o=e()('<table class="fact-properties"><tbody></tbody></table>'),s=o.find("tbody");for(const t of r){const n=e()("<tr>").append(e()("<th></th>").text(Q.t(`referenceParts:${t.part}`,{defaultValue:t.part}))).append(e()("<td></td>").text(t.value)).appendTo(s);"URI"==t.part&&(n.addClass("uri"),n.find("td").wrapInner(e()("<a>").attr("href",t.value)))}n.addCard(t,o,0==i)}return n.contents()}_calculationHTML(t,n){const i=new sc(t,this._useCalc11);if(!i.hasCalculations())return"";const r=this._viewer.factsInSameTable(t),o=i.bestELRForFactSet(r),s=t.report,a=new nc;for(const n of i.resolvedCalculations()){const i=s.getRoleLabelOrURI(n.elr),r=e()("<div></div>"),l=e()("<table></table>").addClass("calculation-table").appendTo(r);for(const t of n.rows){const n=e()("<tr></tr>").addClass("item").append(e()("<td></td>").addClass("weight").text(t.weightSign)).append(e()("<td></td>").addClass("concept-name").text(t.concept.label())).append(e()("<td></td>").addClass("value")).appendTo(l);t.facts.isEmpty()||(n.addClass("calc-fact-link"),n.find(".concept-name").contents().wrap(e()("<button></button>").addClass("inline-button")),n.data("ivids",t.facts.items().map((t=>t.vuid))),n.on("click",(()=>this.selectItem(t.facts.items()[0].vuid))),n.on("mouseenter",(()=>t.facts.items().forEach((t=>this._viewer.linkedHighlightFact(t))))),n.on("mouseleave",(()=>t.facts.items().forEach((t=>this._viewer.clearLinkedHighlightFact(t))))),t.facts.items().forEach((t=>this._viewer.highlightRelatedFact(t))),n.find(".value").text(t.facts.mostPrecise().readableValue()))}e()("<tr></tr>").addClass("item").addClass("total").append(e()("<td></td>").addClass("weight")).append(e()("<td></td>").addClass("concept-name").text(t.concept().label())).append(e()("<td></td>").addClass("value").text(t.readableValue())).appendTo(l);const c=e()("<span></span>"),u=e()("<span></span>").append(c).append(e()("<span></span>").text(i)),d=e()("<span></span>"),h=e()("<button></button>").addClass("calculation-details-link").attr("title",Q.t("factDetails.viewCalculationDetails")).text("details").on("click",(t=>{const e=new dc;e.displayCalculation(n),e.show(),t.stopPropagation()}));e()("<p></p>").append(d).append(e()("<span></span>").text(" (")).append(h).append(e()("<span></span>").text(")")).appendTo(r),n.binds()?n.isConsistent()?(c.addClass("consistent-flag").attr("title",Q.t("factDetails.calculationIsConsistent")),d.text(Q.t("factDetails.calculationIsConsistent"))):(c.addClass("inconsistent-flag").attr("title",Q.t("factDetails.calculationIsInconsistent")),d.text(Q.t("factDetails.calculationIsInconsistent"))):n.unchecked()&&(c.addClass("unchecked-flag").attr("title",Q.t("factDetails.calculationUnchecked")),n.uncheckedDueToVersionMismatch()?d.text(Q.t("factDetails.calculationUncheckedIncorrectVersion")):d.text(Q.t("factDetails.calculationUnchecked"))),a.addCard(u,r,n.elr==o)}return a.contents()}_footnotesHTML(t){const n=e()("<div></div>").addClass("fact-list");for(const i of t.footnotes())i instanceof un?e()("<button></button>").addClass("block-list-item").text(Ge(i.textContent(),120)).on("mouseenter",(()=>this._viewer.linkedHighlightFact(i))).on("mouseleave",(()=>this._viewer.clearLinkedHighlightFact(i))).on("click",(()=>this.selectItem(i.vuid))).appendTo(n):i instanceof cn&&n.append(this.factListRow(i));return n}viewerMouseEnter(t){e()(".calculations .item").filter(((n,i)=>(e()(i).data("ivids")??[]).includes(t))).addClass("linked-highlight"),e()("#inspector .search .results tr").filter(((n,i)=>e()(i).data("ivid")==t)).addClass("linked-highlight")}viewerMouseLeave(t){e()(".calculations .item").removeClass("linked-highlight"),e()("#inspector .search .results tr").removeClass("linked-highlight")}describeChange(t,e){if(e.value()>0==t.value()>0&&Math.abs(t.value())+Math.abs(e.value())>0){const n=100*(e.value()-t.value())/t.value();let i=0;return i=n>=0?Q.t("factDetails.changePercentageIncrease",{increase:Ze(n,1)}):Q.t("factDetails.changePercentageDecrease",{decrease:Ze(-1*n,1)}),i}return Q.t("factDetails.changeFromIn",{from:t.readableValue()})}factLinkHTML(t,n){const i=e()("<span></span>");return this._setLabelWithLang(i,t),n.length>0&&i.addClass("fact-link").on("click",(()=>this.selectItem(n[0].vuid))).on("mouseenter",(()=>n.forEach((t=>this._viewer.linkedHighlightFact(t))))).on("mouseleave",(()=>n.forEach((t=>this._viewer.clearLinkedHighlightFact(t))))),i}getPeriodIncrease(t){let n="";if(t.isNumeric()){const r=t.report.getAlignedFacts(t,{p:null});var i;if(t.periodTo())for(const e of r)e.periodTo()&&e.periodTo()<t.periodTo()&&(!i||e.periodTo()>i.periodTo())&&t.isEquivalentDuration(e)&&(i=e);if(i){const r=t.report.getAlignedFacts(i);n=e()("<span></span>").text(this.describeChange(i,t)).append(this.factLinkHTML({label:i.periodString()},r))}else n=e()("<i>").text(Q.t("factDetails.noPriorFactInThisReport"))}else n=e()("<i>").text("n/a").attr("title",Q.t("factDetails.nonNumericFact"));e()(".fact-properties tr.change td").html(n)}_updateValue(t,n,i){const r=t.readableValueHTML(),o=e()("tr.value",i),s=o.find("td .value").empty();if(t.isNumeric()||n)o.removeClass("truncated"),s.append(r);else{const e=He(r.textContent,120);e.length>1?(o.addClass("truncated"),o.find(".show-all").off("click").on("click",(()=>this._updateValue(t,!0,i)))):o.removeClass("truncated"),s.text(e[0])}oc.canRender(t)?o.addClass("text-block").find(".expand-text-block").off().on("click",(()=>this.showTextBlock(t))):o.removeClass("text-block")}showTextBlock(t){const e=new oc(t);e.displayTextBlock(),e.show()}_updateDataType(t,n){const i=t.concept()?.dataType();void 0!==i?e()("tr.datatype td",n).text(i.label()):e()("tr.datatype",n).hide()}_updateBalance(t,n){const i=t.concept()?.balance();void 0!==i?e()("tr.balance td",n).text(i.label()):e()("tr.balance",n).hide()}_updateConcept(t,n){e()("tr.concept td",n).find(".text").text(t.conceptDisplayName()).attr("title",t.conceptDisplayName()).end().find(".clipboard-copy").data("cb-text",t.conceptDisplayName()).end()}_updateEntityIdentifier(t,n){e()("tr.entity-identifier td",n).empty().append(rn.readableNameHTML(t.identifier()))}_footnoteFactsHTML(t){const n=e()("<div></div>");return t.linkedFacts.forEach((t=>{n.append(this.factListRow(t))})),n}_setLabelWithLang(t,e){return t.removeAttr("lang"),void 0!==e.label?(t.text(e.label),void 0!==e.lang&&t.attr("lang",e.lang)):t.text(""),t}_selectionSummaryAccordian(){const t=this._currentItem,i=new nc({onSelect:t=>this.switchItem(t),alwaysOpen:!0,dissolveSingle:!0}),r=new ic(this._currentItemList);for(const o of this._currentItemList){let s;const a=r.minimallyUniqueLabel(o);if(o instanceof cn){s=e()(n(793)),this._setLabelWithLang(e()(".std-label",s),o.getLabelOrNameAndLang("std",!0)),this._setLabelWithLang(e()(".documentation",s),o.getLabelAndLang("doc")),this._updateConcept(o,s),e()("tr.period td",s).text(o.periodString()),o.isNumeric()&&e()("tr.period td",s).append(e()("<button></button>").addClass(["analyse","inline-button"]).attr("title",Q.t("inspector.showAnalysisChart")).text("").on("click",(()=>this.analyseDimension(o,["p"])))),this._updateDataType(o,s),this._updateBalance(o,s),this._updateEntityIdentifier(o,s),this._updateValue(o,!1,s);const t=e()("tr.accuracy td",s).empty().append(o.readableAccuracy());o.isNumeric()&&!o.isNil()||t.wrapInner("<i></i>");const i=e()("tr.scale td",s).empty().append(o.readableScale());o.isNumeric()&&!o.isNil()||i.wrapInner("<i></i>"),e()("#dimensions",s).empty();const r=o.aspects().filter((t=>t.isTaxonomyDefined()));0===r.length&&e()("#dimensions-label",s).hide();for(const t of r){const n=this._setLabelWithLang(e()('<div class="dimension"></div>'),t.labelOrNameAndLang()).appendTo(e()("#dimensions",s));o.isNumeric()&&n.append(e()("<button></button>").addClass(["analyse","inline-button"]).attr("title",Q.t("inspector.showAnalysisChart")).text("").on("click",(()=>this.analyseDimension(o,[t.name()]))));const i=this._setLabelWithLang(e()('<div class="dimension-value"></div>'),t.valueLabelAndLang()).appendTo(n);t.isNil()&&i.wrapInner("<i></i>")}}else o instanceof un&&(s=e()(n(643)),this._updateValue(o,!1,s));i.addCard(a,s,o.vuid==t.vuid,o.vuid)}return i}analyseDimension(t,e){(new tc).analyseDimension(t,e)}toggleTooltip(t){e()("#tooltip").hasClass("show")?this.hideTooltip():this.showTooltip(t)}showTooltip(t,n){t.closest(".has-tooltip").attr("aria-describedby","tooltip"),e()("#tooltip .tooltip-text").text(Q.t(`tooltips:${t.data("tooltip-name")}`)),e()("#tooltip").addClass(n?"hover-show":"show");const i=t.data("tooltip-glossary-link");if(i){e()("#tooltip").addClass("with-glossary-link");const t=new URL("https://xbrl.org/glossary/");"string"==typeof i&&i.startsWith("#")&&(t.hash=i),e()("#tooltip .glossary-link a").attr("href",t.href)}else e()("#tooltip").removeClass("with-glossary-link");this.positionTooltip(t)}hideTooltip(t){const n=e()("#tooltip");n.removeClass(t?"hover-show":"show"),n.hasClass("hover-show")||n.hasClass("show")||e()(".has-tooltip").removeAttr("aria-describedby")}positionTooltip(t){const n=t.offset(),i=document.documentElement.clientWidth,r=i-Math.min(i-30,n.left+300),o=Math.min(i-300,n.left);e()("#tooltip").css("inset","").css("position","fixed").css("left",o).css("right",r).css("top",n.top+30),e()("#tooltip").get(0).getBoundingClientRect().bottom>document.documentElement.clientHeight&&e()("#tooltip").css("top","").css("bottom",30)}update(){const t=this._currentItem;if(t){if(e()("#inspector").removeClass("no-fact-selected").removeClass("hidden-fact").removeClass("html-hidden-fact"),e()("#inspector .fact-inspector").empty().append(this._selectionSummaryAccordian().contents()),t instanceof cn){e()("#inspector").removeClass("footnote-mode"),this.updateCalculation(t),this.updateOutline(t),this.updateFootnotes(t),this.updateAnchoring(t),e()("div.references").empty().append(this._referencesHTML(t)),this.updateLabels(t),e()("#inspector .search-results .fact-list-item").removeClass("selected"),e()("#inspector .search-results .fact-list-item").filter(((n,i)=>e()(i).data("ivid")==t.vuid)).addClass("selected");const i=t.duplicates();let r=0;const o=i.length;for(var n=0;n<o;n++)t.vuid==i[n].vuid&&(r=n);e()(".duplicates .text").text(Q.t("factDetails.duplicatesCount",{current:r+1,total:o})),e()(".duplicates .prev").off().on("click",(()=>{this.selectItem(i[(r+o-1)%o].vuid),e()(".duplicates .prev").get(0).focus()})),e()(".duplicates .next").off().on("click",(()=>{this.selectItem(i[(r+1)%o].vuid),e()(".duplicates .next").get(0).focus()})),this.getPeriodIncrease(t),t.isHidden()?e()("#inspector").addClass("hidden-fact"):t.isHTMLHidden()&&e()("#inspector").addClass("html-hidden-fact");const s=t.targetDocument();null!==s?e()("#inspector .target-document-tag").text(s).show():e()("#inspector .target-document-tag").hide()}else t instanceof un&&(e()("#inspector").addClass("footnote-mode"),e()("#inspector .footnote-details .footnote-facts").empty().append(this._footnoteFactsHTML(t)));e()(".fact-details").localize()}else e()("#inspector").removeClass("footnote-mode"),e()("#inspector").addClass("no-fact-selected");this.updateURLFragment()}selectItem(t,e,n,i){if(void 0===e)this._currentItemList=[this._reportSet.getItemById(t)];else{this._currentItemList=[];for(const t of e)this._currentItemList.push(this._reportSet.getItemById(t))}this.switchItem(t,n),i||this.inspectorMode(void 0)}switchItem(t,e){null!==t?(this._currentItem=this._reportSet.getItemById(t),e||this._viewer.showItemById(t),this._viewer.highlightItem(t)):(this._currentItem=null,this._viewer.clearHighlighting()),this.update()}preferredLanguages(){const t=new URLSearchParams(window.location.search);if(t.has("lang"))return[t.get("lang")];const e=window.navigator.languages||[window.navigator.language||window.navigator.userLanguage];return 0!=e.length&&e[0]?e:["en"]}selectDefaultLanguage(){const t=this._reportSet.availableLanguages();for(const e of this.preferredLanguages())for(const n of t)if(n.toLowerCase()==e.toLowerCase())return n;return this._reportSet.availableLanguages()[0]}setDocumentLanguage(t){this._viewerOptions.language=t}showValidationReport(){const t=new rc;t.displayErrors(this._reportSet.validation()),t.show()}setupValidationReportIcon(){this._reportSet.hasValidationErrors()&&e()("#ixv .validation-warning").show().on("click",(()=>this.showValidationReport()))}showValidationWarning(){if(this._reportSet.hasValidationErrors()){const t=e()("<div></div>").append("<p>This report contains <b>XBRL validation errors</b>. These errors may prevent this document from opening correctly in other XBRL software.</p>");new ir("Validation errors",t,"View Details","Dismiss").show((()=>this.showValidationReport()))}}}const Cc=new Set([void 0,null,"","false",!1]);class Mc{constructor(t){this._staticFeatures={},this._dynamicFeatures={},this._plugins=[],this.inspector=new xc(this),this.viewer=null,t=t||{},this.options={continuationElementLimit:1e4,showValidationWarningOnStart:!1,...t}}registerPlugin(t){this._plugins.push(t)}callPluginMethod(t,...e){for(const n of this._plugins)"function"==typeof n[t]&&n[t](...e)}pluginPromise(t,...e){return new Promise(((n,i)=>{(async()=>{for(const n of this._plugins)"function"==typeof n[t]&&await n[t](...e)})().then((()=>{n()}))}))}setFeatures(t,e){this._staticFeatures={};for(const[e,n]of Object.entries(t))this._staticFeatures[e]=n;const n=new URLSearchParams(e);this._dynamicFeatures={},n.forEach(((t,e)=>{if(""===t){if(void 0!==this._dynamicFeatures[e])return;t="true"}this._dynamicFeatures[e]=t}))}getStaticFeatureValue(t){return this._staticFeatures[t]}getFeatureValue(t){return this._dynamicFeatures[t]?this._dynamicFeatures[t]:this.getStaticFeatureValue(t)}isFeatureEnabled(t){return!Cc.has(this.getFeatureValue(t))}isStaticFeatureEnabled(t){return!Cc.has(this.getStaticFeatureValue(t))}isReviewModeEnabled(){return this.isFeatureEnabled("review")}getGuideLinkUrl(){return this.isStaticFeatureEnabled(ze)?this.resolveRelativeUrl(this.getStaticFeatureValue(ze)):null}getSupportLinkUrl(){return this.isStaticFeatureEnabled(Pe)?this.resolveRelativeUrl(this.getStaticFeatureValue(Pe)):null}getSurveyLinkUrl(){return this.isStaticFeatureEnabled(Ye)?this.resolveRelativeUrl(this.getStaticFeatureValue(Ye)):null}isViewerEnabled(){return"false"===(new URLSearchParams(window.location.search).get("disable-viewer")??"false")}resolveRelativeUrl(t){return void 0===this.options.configUrl?t:new URL(t,this.options.configUrl.href).href}_loadInspectorHTML(){const t=this.runtimeConfig.skin?.footerLogoHtml??n(523);e()(n(87)).prependTo("body").find("#footer-logo").html(t);const i=n(864).toString();e()('<style id="ixv-style"></style>').prop("type","text/css").text(i).appendTo("head"),void 0!==this.runtimeConfig.skin?.stylesheetUrl&&e()('<link rel="stylesheet" id="ixv-style-skin" />').attr("href",this.resolveRelativeUrl(this.runtimeConfig.skin.stylesheetUrl)).appendTo("head");const r=void 0!==this.runtimeConfig.skin?.faviconUrl?this.resolveRelativeUrl(this.runtimeConfig.skin.faviconUrl):n(285);e()('<link id="ixv-favicon" type="image/x-icon" rel="shortcut icon" />').attr("href",r).appendTo("head");try{e()(".inspector-foot .version").text("1.4.49")}catch(t){}}_reparentDocument(){const t=e()("#ixv #iframe-container"),n=e()('<iframe title="iXBRL document view" tabindex="0"/>').data("report-index",0).appendTo(t)[0],i=n.contentDocument||n.contentWindow.document;i.open(),i.write("<!DOCTYPE html><html><head><title></title></head><body></body></html>"),i.close();let r=e()("title").text();r=""!=r?"Inline Viewer - "+r:"Inline Viewer",void 0===e()("html").attr("lang")&&e()("html").attr("lang","en-US"),e()("head").children().not("script, style#ixv-style, link#ixv-style-skin, link#ixv-favicon").appendTo(e()(n).contents().find("head")),e()("<title>").text(r).appendTo(e()("head")),e()("body script").appendTo(e()("body"));const o=e()(n).contents().find("body");e()("body").children().not("script").not("#ixv").not(t).appendTo(o);for(const t of[...e()("body").prop("attributes")])o.attr(t.name,t.value),e()("body").removeAttr(t.name);return e()("body").removeAttr("style"),n}_getTaxonomyData(){for(let t=document.body.children.length-1;t>=0;t--){const e=document.body.children[t];if("SCRIPT"==e.tagName.toUpperCase()&&"application/x.ixbrl-viewer+json"==e.getAttribute("type"))return e.innerHTML}return null}_checkDocumentSetBrowserSupport(){"file:"==document.location.protocol&&alert("Displaying iXBRL document sets from local files is not supported. Please view the viewer files using a web server.")}_loadRuntimeConfig(){return new Promise(((t,e)=>{void 0===this.options.configUrl?t({}):fetch(this.options.configUrl).then((t=>404==t.status?Promise.resolve({}):200!=t.status?Promise.reject("Fetch failed: "+t.status):t.json())).then((e=>{t(e)})).catch((e=>{console.log(e),t({})}))}))}load(){const t=this,n=this.inspector;this._loadRuntimeConfig().then((i=>{this.runtimeConfig=i,function(){const t=localStorage.getItem(Ue);ql(null!==t?t:window.matchMedia(`(prefers-color-scheme: ${Ql})`).matches?Ql:Jl)}();const o=e()("body").hasClass("ixv-stub-viewer");if(!t.isViewerEnabled()&&!o)return;t._loadInspectorHTML();let s=e()();const a=t._getTaxonomyData(),l=a&&JSON.parse(a);let c=l&&l.features;c?Array.isArray(c)&&(c=c.reduce(((t,e)=>(t[e]=!0,t)),{})):c={},void 0!==this.runtimeConfig.features&&(c={...this.runtimeConfig.features,features:c}),t.setFeatures(c,window.location.search);const u=new bn(l);if(u.taxonomyNamer=new vn(new Map(Object.entries(this.runtimeConfig.taxonomyNames??{}))),!t.isViewerEnabled())return void window.location.replace(u.reportFiles()[0].file);if(null===l)return e()("#ixv .loader .text").text("Error: Could not find viewer data"),void e()("#ixv .loader").removeClass("loading");o||(s=e()(t._reparentDocument()));const d=u.reportFiles();let h=!1;for(let t=o?0:1;t<d.length;t++){const n=e()('<iframe tabindex="0" />').attr("src",d[t].file).data("report-index",d[t].index).appendTo("#ixv #iframe-container");s=s.add(n),h=!0}h&&t._checkDocumentSetBrowserSupport();const p=o?"Loading iXBRL Report":"Loading iXBRL Viewer";t.setProgress(p).then((()=>{let i=setInterval((function(){let o=!0;if(s.each((function(t){const n=this,i=n.contentDocument||n.contentWindow.document;("complete"!=i.readyState&&"interactive"!=i.readyState||0==e()(n).contents().find("body").children().length)&&(o=!1)})),o){clearInterval(i);const o=t.viewer=new sr(t,s,u);o.initialize().then((()=>n.initialize(u,o))).then((()=>{r()("#viewer-pane").resizable({edges:{left:!1,right:".resize",bottom:!1,top:!1},restrictEdges:{outer:"parent",endOnly:!0},restrictSize:{min:{width:100}}}).on("resizestart",(()=>e()("#ixv").css("pointer-events","none"))).on("resizemove",(t=>{const n=t.target,i=100*t.rect.width/e()(n).parent().width();n.style.width=i+"%",e()("#inspector").css("width",100-i+"%")})).on("resizeend",(t=>e()("#ixv").css("pointer-events","auto"))),e()("#ixv .loader").remove(),t.options.showValidationWarningOnStart&&n.showValidationWarning(),o.postLoadAsync(),n.postLoadAsync()})).catch((t=>{if(!(t instanceof rr))throw t;e()("#ixv .loader").remove(),e()("#inspector").addClass("failed-to-load")}))}}),250)}))}),0)}setProgress(t){return new Promise(((n,i)=>{window.requestAnimationFrame((function(){console.log(`%c [Progress] ${t} `,"background: #77d1c8; color: black;"),e()("#ixv .loader .text").text(t),window.requestAnimationFrame((()=>n()))}))}))}}const Lc=document.currentScript.src;e()((()=>{const t={showValidationWarningOnStart:!0},e=new URL("ixbrlviewer.config.json",Lc);"file:"!=e.protocol&&(t.configUrl=e),new Mc(t).load()}))})()})();
|